usee's oio c3oS p"va
vi-"
To "f^l f /Lee. e>5^AJ<^
USE OF PRECEDENCE BITS FOR QUALITY OF SERVICE
BACKGROUND OF THE INVENTION [0001] 1. Field of the Invention
[0002] The present invention relates to the field of data communications networks. More particularly, this invention relates to a method and apparatus for implementing a quality of service (QoS) policy in a data communications network so as to thereby prioritize network traffic into a plurality of service levels and provide preferential treatment of different classes of data traffic on the data communications network. A number of priority levels may be implemented in accordance with the invention.
[0003] 2. The Background
[0004] This invention relates to switched packet data communications networks. There are a number of different packet types which are used in modern switched packet data communications networks.
[0005] FIG. 1A depicts a generic packet 8 using Layer 2 encapsulation. A number of different Layer 2 encapsulation protocols are recognized. Each includes a MAC (media access control) destination address 10 and a MAC source address 12. The data 14 may include Layer 3 encapsulated packet information. A CRC (cyclic redundancy check) 16 is also provided at the end of the Layer 2 encapsulation. The unlabeled block 18 may include an Ethernet type for Ethernet V 2.0 (ARPA) packets. The Ethernet type may include IPv4 (IP) (in the future, IPv6), IPX, AppleTalk, DEC Net, Vines IP/Vines Echo, XNS, ARP or RARP. Other known encapsulations include SAP, SAP1, SNAP and the like. The meaning of the bits in block 18 differs among the different encapsulation protocols. This information is sometimes referred to as the Layer 2 Flow Information.
[0006] FIG. IB depicts a typical IP packet (Layer 3) structure. The IP packet format is presently one of the most common Layer 3 packet types. The fields of importance to this disclosure are the "ToS value" or type of service 26 which is a preferably 8-bit field also known as Differentiated Services ("DS"), "prot-typ" or IP protocol type 28 (typically either TCP (transmission control protocol) or UDP (user datagram protocol), the Source IP address 30 (usually the IP address of the originating station), the Destination IP address 32 (usually the IP address of the ultimate destination station), the Layer 4 source port number 34 (available for TCP and UDP packets only) and the Layer 4 destination port number 36 (available for TCP and UDP packets only). The Layer 4 flow information may be used to identify a particular packet flow as being the product of (source port) or directed to (destination port) a particular application. The ToS/Differentiated Services field is used by routers of the data communications network to provide priority/delay/dropping services.
[0007] As the use of data communications networks increases worldwide, congestion of those networks has become a problem. A given data communications network, a given node on a data communications network, or a given link connecting two nodes has a certain capacity to pass data packets and that capacity cannot be exceeded. When data traffic on the data communications network becomes heavy enough that one can anticipate congestion problems which
might lead to packets being dropped, it is desirable to implement a "Quality of Service" or QoS policy so as to give priority to certain types of traffic and/or customers so as not to drop their packets, thus assuring that critical communications are able to pass through the data communications network and/or providing a guaranteed service level, albeit at the expense of less critical communications.
[0008] The QoS level mapped into the ToS/Differentiated Services precedence bits (or other bits of the packet) is used by devices such as routers, gateways and switches within a data communications network in a number of ways. For example, packet rate limiting may be imposed to cap a user's throughput of packets to a given contract level specified in a service agreement with the user. In this way limited system services may not be over-used by those paying the least for those services. In another example, packet rate limiting may be imposed under congested network conditions to drop or modify packets based, at least in part, upon the QoS level associated with the packet. Those with a "higher" QoS level will do better in getting their communications through in congested conditions than those with a "lower" QoS level.
[0009] One way in which the ToS bits of the IP header are presently used is to use edge routers 38 as shown in FIG. 2 to interface between users 40 and core routers 42, 44, 46. In accordance with this approach the edge routers are used to set the ToS precedence bits (the highest order three bits of the eight-bit ToS/Differentiated Services field) based upon the source IP address of the packet. While this can be effective in some environments, it is rather inflexible since it is based solely on pre-programmed IP addresses and creates administrative burdens in programming all of the edge routers. It is also ineffective in handling many types of roaming users and/or users with dynamically assigned IP addresses such as those obtained or leased from DHCP (dynamic host control protocol) servers.
[0010] Accordingly, a need exists for a QoS system which can provide for the QoS needs of roaming or DHCP users while simplifying the task of programming QoS levels associated with the user. Furthermore, it would be desirable to provide a QoS system that provides on-demand QoS rather than a fixed QoS for each user to better accommodate the shifting needs of users.
SUMMARY OF THE INVENTION
[0011] Certain bits of a packet, such as bits in the IP header of an IP packet, are used to designate the type of service or Quality of Service (QoS) level to be afforded to the packet as it passes through a data communications network. A user entitled to a certain QoS level logs into a service selection gateway SSG. The SSG queries an authentication, authorization and accounting (AAA) server in response to a log-in attempt by the user. Upon authorization, the AAA server returns an access accept signal in addition to an indication from the user's service profile (user profile) as to the QoS level to be afforded the user. While the user is logged in, all packets are routed through the SSG. The SSG sets the certain bits of the packet in accordance with the user's assigned QoS level so that as the packets are routed through the data communications network, they are consistently afforded the assigned Quality of Service level. In another aspect of the invention, on-demand QoS may be provided by the SSG and accounted for by communications with the AAA server.
BRIEF DESCRIPTION OF THE DRAWINGS
[0012] FIG. 1A is a diagram showing the structure of a typical Ethernet packet.
[0013] FIG. IB is a diagram showing the basic structure of a Layer 3 IP packet.
[0014] FIG. 2 is a system block diagram of a typical network interface to a user.
[0015] FIG. 3 is a system block diagram of a data communications network in accordance with a presently preferred embodiment of the present invention.
[0016] FIG. 4 is a flow diagram of a first method of setting QoS for an IP packet in accordance with one embodiment of the present invention.
[0017] FIG. 5 is a flow diagram of a second method of setting QoS for an IP packet in accordance with another embodiment of the present invention.
DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT
[0018] Those of ordinary skill in the art will realize that the following description of the present invention is illustrative only and not in any way limiting. Other embodiments of the invention will readily suggest themselves to such skilled persons after a perusal of the within disclosure.
[0019] In accordance with a presently preferred embodiment of the present invention, the components, processes and/or data structures are implemented using a gateway device implemented using C++ programs running on an Enterprise 2000TM server running Sun SolarisTM as its operating system. The Enterprise 2000TM server and Sun SolarisTM operating system are products available from Sun Microsystems, Inc. of Mountain View, Calif. Different implementations may be used and may include other types of operating systems, computing platforms, computer programs, firmware and/or general purpose machines. In addition, those of ordinary skill in the art will readily recognize that devices of a less general purpose nature, such as hardwired devices, devices relying on FPGA (field programmable gate array) or ASIC (Application Specific Integrated Circuit) technology, or the like, may also be used without departing from the scope and spirit of the inventive concepts disclosed herein.
[0020] In accordance with a presently preferred embodiment of the present invention, the three Precedence bits (the three highest order or most significant bits of the 8-bit Type of Service (ToS)/Differentiated Services field 26 of the IP packet header) are used to designate the type of service or Quality of Service (QoS) level to be given to packets sourced from a particular user. Those of ordinary skill in the art will realize that the particular bits used are not particularly critical, for example, the CoS (Class of Services) bits of an IEEE 802. lq encapsulated frame could be used as could the CoS bits in an ISL frame. Other bits or fields could also be designated to carry the QoS level information. A 3-bit ToS permits up to 8 levels of service. Initially, more than three bits could be used, if desired.
[0021] The present invention makes use of a user's service profile. A service profile, sometimes referred to as a user profile, contains information relating to a particular user's
network access account. For example, it may include an identification of the user's last known home PoP (point of presence) or home gateway located in a PoP. It may include the identification of one or more domain name server(s) (DNS) to use in resolving domain names to IP addresses. It may include details about the user's service agreement with the ISP (internet service provider) servicing the user's account. Such information may include an identification of the QoS level to be provided to the user. For example, if the user is a "Platinum" user, he or she might receive a level 8 ToS thus granting his/her packets the best service. A normal user not paying a premium for a higher QoS might be afforded a level 1 ToS.
[0022] The user profile is stored in AAA (authentication, authorization and accounting) servers disposed in various locations in the data communications network.
[0023] The authentication, authorization and accounting (AAA) server performs user authentication, user authorization and user accounting functions. It may be a Cisco ACS or product such as Cisco Secure, available from Cisco Systems, Inc. of San Jose, Calif., or an equivalent product. In accordance with a presently preferred embodiment of the present invention, the Remote Authentication Dial-In User Service (RADIUS) protocol is used as the communication protocol between the service selection gateway and the AAA server. RADIUS is an Internet standard track protocol for carrying authentication, authorization, accounting and configuration information between a gateway device that desires to authenticate its links and a shared AAA server. Those of ordinary skill in the art will realize that other Internet protocols such as TACSCS+ can be used as acceptable authentication communications links between the various communications devices that encompass the data communications network and still be within the inventive concepts disclosed herein.
[0024] The service selection gateway (SSG) is a device which couples the user to the data communications network. The user may log directly into the service selection gateway or may do so via an intermediate server such as a network access server. The term gateway is not meant to be limited to a single type of device, as any device, hardware or software, that may act as a bridge between the user and the network may be considered a gateway for the purposes of this application. In accordance with a presently preferred embodiment of the present invention, the service selection gateway is a model 6510 service selection gateway available from Cisco Systems, Inc. of San Jose, Calif.
[0025] Turning now to FIG. 3, when the user 48 logs-in to the SSG 50, either directly or through one or more intermediate devices, the SSG 50 obtains the user's service profile from an AAA server 52. The user profile will contain an additional field detailing the QoS level to be afforded the user in accordance with a presently preferred embodiment of the present invention. The SSG 50 stores the QoS level associated with the user in a local memory or cache associated with the user and, in effect, acts as an edge router for the user in all subsequent outbound communications forwarded to the Internet 54 or other data communications network during the session. The SSG 50 simply replaces the ToS/Differentiated Services with a bit pattern corresponding to the user's QoS level.
[0026] This approach provides a number of important advantages. First, the QoS level for the user need only be set
« ZurückWeiter » |