# Patent

## Title
System and method for managing out of order packets in a network environment

## Abstract

A method is provided in one example and includes receiving a request packet associated with a flow; designating an out of order sequence number range associated with the flow; creating an entry that designates the out of order sequence number range; receiving a subsequent packet that includes a particular sequence number range; referencing the out of order sequence number range; resolving a portion of the entry corresponding to the particular sequence number range for the subsequent packet; and forwarding the subsequent packet. In other embodiments, the request packet includes a content length field indicating the out of order sequence number range associated with the flow. Creating the entry can include creating a segment within a queue for the out of order sequence number range, which reflects expected sequence numbers for packets associated with the flow.

## Background
TECHNICAL FIELD
This disclosure relates in general to the field of communications and, more particularly, to managing out of order packets in a network environment.
BACKGROUND
Networking architectures have grown increasingly complex in communication environments. As the subscriber base of end users increases and/or becomes mobile, proper routing and efficient management of communication sessions and data flows becomes critical. Typically, subscribers seek to access content from various locations in the network. Certain subscribers may seek to access content in which the subsequent ordering of packets is inconsequential. In some instances, unnecessarily queuing packets can reduce throughput and, more generally, inhibit performance. The ability to properly manage out of order packets and to accurately bill for data presents a significant challenge to component manufacturers, network operators, and system administrators.



BRIEF DESCRIPTION OF THE DRAWINGS
To provide a more complete understanding of the present disclosure and features and advantages thereof, reference is made to the following description, taken in conjunction with the accompanying figures, wherein like reference numerals represent like parts, in which:
FIG. 1 is a simplified block diagram of a communication system for managing out of order packets in a network environment in accordance with one embodiment of the present disclosure;
FIG. 2 is a simplified flow diagram illustrating potential operations associated with the communication system; and
FIGS. 3-14 are simplified block diagrams illustrating packets associated with example flows propagating in the communication system.



DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
Overview
A method is provided in one example and includes receiving a request packet associated with a flow; designating an out of order sequence number range associated with the flow; creating an entry that designates the out of order sequence number range; receiving a subsequent packet that includes a particular sequence number range; referencing the out of order sequence number range; resolving a portion of the entry corresponding to the particular sequence number range for the subsequent packet; and forwarding the subsequent packet. Note that the out of order servicing can equally apply to response packets and request packets. In other embodiments, the request packet includes a content length field indicating the out of order sequence number range associated with the flow. Creating the entry can include creating a segment within a queue for the out of order sequence number range, which reflects expected sequence numbers for packets associated with the flow. The method can also include receiving an additional packet associated with the flow; referencing a queue that includes a plurality of entries associated with the out of order sequence number range; and identifying no match associated with the additional packet such that the additional packet is classified as being a retransmission. The method can further include accounting for a number of transmission control protocol (TCP) bytes passing through a network element; and accounting for packets received at the network element. In addition, the method can include updating the out of order sequence number range after resolving the portion of the entry associated with the subsequent packet.
Example Embodiments
Turning to FIG. 1, FIG. 1 is a simplified block diagram of a communication system 10 for managing out of order packets in a network environment. FIG. 1 may include a subscriber 12, a service gateway 14, a radio access network (RAN) 16, multiple serving general packet radio service (GPRS) support nodes (SGSNs) 18a and 18b, and an Internet protocol (IP) network 20. Additionally, communication system 10 may include multiple gateway GPRS support nodes (GGSNs) 32a and 32b. In addition, service gateway 14 may include a loggen element 24, a known user table (KUT) 26, and multiple traffic processors 36, which have a logical connection to a control processor 38.
Service gateway 14 may additionally include a sequence number tracking module 48 (that can include a number of queues 42), a hypertext transfer protocol (HTTP) protocol handler 62, and a session services module 64. Service gateway 14 may also include a quality of service (QoS) module 54, a policy control enforcement function (PCEF) module 56, and a memory element 34. Communication system 10 may also include a policy and charging rules function (PCRF) element 40, which includes a processor 44, and a memory element 46. Additionally, communication system 10 includes a server 60, which may provide content or services sought by subscriber 12. Additionally, communication system 10 may include multiple inline service nodes (ISNs) 50, which have a logical connection to an Internet 22. In this particular instance, each ISN 50 is part of respective network paths directed toward server 60. Server 60 can be a web server responsible for traffic destined for various hostnames (e.g., having various uniform resource locators (URLs)) such as Google.com, Yahoo.com, ESPN.com, etc.
Communication system 10 may include a configuration capable of transmission control protocol/internet protocol (TCP/IP) communications for the transmission and/or reception of packets in a network. Communication system 10 may also operate in conjunction with a user datagram protocol/IP (UDP/IP) or any other suitable protocol where appropriate and based on particular needs. Communication system 10 may be generally configured or arranged to represent a 2G, a 2.5G, or a 3 G communication architecture applicable to a Global System for Mobile (GSM) environment in accordance with a particular embodiment of the present disclosure. Communication system 10 may also be configured to operate with any version of any suitable GPRS tunneling protocol.
For purposes of illustrating certain example techniques of communication system 10, it is important to understand the communications that may be traversing the network. The following foundational information may be viewed as a basis from which the present disclosure may be properly explained. Packets are typically parsed in order, as they are received by a given network device. In some instances, a request may involve a large HTTP data stream (e.g., a video stream or a JPEG), where parsing is not necessarily required over the length of that aggregate data. Typically, network devices will parse a portion of the HTTP traffic. In many scenarios, HTTP requests and response headers are parsed, but the payloads are not parsed. For example, the payload of a response, whose headers indicate that it is not a multipart or chunked response, (and that also includes a valid Content-Length field) is often not parsed. A large amount of unparsed HTTP data (e.g., binary data, Joint Photographic Experts Group (JPEG or JPG) files, etc.) can cross a given network device.
Communication system 10 can resolve these coordination issues (and others) by configuring service gateway 14 to properly manage out of order packets, while maintaining accurate byte counts and while accurately billing for information propagating through service gateway 14. Service gateway 14 can execute HTTP out of order packet processing to allow HTTP unparsed packets to be processed out of order. Service gateway 14 enables out of order forwarding of a parsed protocol. This feature can occur during segments in which packets being out of order are not problematic. In addition, it should be noted that service gateway 14 has the intelligence to move in and out of its queuing state activities. Stated otherwise, for segments in which sequence number ordering is important, service gateway 14 can understand that this particular request needs to be treated differently.
In one generic example, service gateway 14 can be configured to indicate that certain portions (e.g., Point A through Point B) of a given stream are unparsed and, therefore, packets can be received out of order (OOO). Once Point B in this example is reached, then a more ordered set of packets can be received. Within this portion of unordered packets, service gateway 14 has the intelligence to account for packets (e.g., for billing, for charging, etc.) passing through it. This can include accounting for the exact number of TCP bytes passing through service gateway 14, as well as properly accounting for the packets that are received.
As a practical matter, it should also be noted that there are resource limitations with any type of network appliance. Stated in different terms, packets can consume space, where a given device can only queue so many packets before packets become susceptible to being dropped. When a packet is queued, a far end network device does not receive its expected acknowledgment (ACK message). In many cases, when the ACK message is not timely received, the far end network device can begin to reduce its respective window size. This could lead to a flow control mechanism causing the throughput to drop for this particular session (e.g., a presumption is made that some type of network congestion exists). Service gateway 14 can accommodate this issue (and others) by allowing packets to flow through it even though the packets may be received out of order. This would alleviate the potential for throttling that would otherwise occur due to perceived congestion. Note that in the instance where packets are indeed dropped due to some type of overflow in the queues, then actual congestion occurs and throttling would be initiated, which would be problematic for the reasons outlined above. Service gateway 14 can resolve these issues and increase throughput, even though it may be incurring some additional processing in its operations.
Thus, service gateway 14 can improve throughput for individual streams by eliminating certain queuing techniques for specific types of flows. Such a protocol could be particularly applicable to layer-7 (L7) routing and/or dispatching. Service gateway 14 can have other applicability to TCP selective acknowledgment (SACK) instances, or in cases involving large windows. In a general sense, processing the unparsed portions of HTTP traffic without enforcing packet ordering can improve performance for the TCP flow and, therefore, prevent the throttling of HTTP flows. Some of these possible packet flows are discussed below and, further, are illustrated in an example set of configurations depicted in FIGS. 2-14. Before turning to some of the operations of these arrangements, a brief discussion is provided about some of the possible infrastructure of FIG. 1.
Subscriber 12 can be associated with clients, customers, or end users wishing to initiate a communication in communication system 10 via some network. The term ‘subscriber’ is inclusive of devices used to initiate a communication, such as a computer, a personal digital assistant (PDA), a laptop or electronic notebook, a cellular telephone, an iPhone, an IP phone, or any other device, component, element, or object capable of initiating voice, audio, video, media, or data exchanges within communication system 10. Subscriber 12 may also be inclusive of a suitable interface to the human user, such as a microphone, a display, or a keyboard or other terminal equipment. Subscriber 12 may also be any device that seeks to initiate a communication on behalf of another entity or element, such as a program, a database, or any other component, device, element, or object capable of initiating an exchange within communication system 10. Data, as used herein in this document, refers to any type of numeric, voice, video, media, or script data, or any type of source or object code, or any other suitable information in any appropriate format that may be communicated from one point to another.
Service gateway 14 and PCRF element 40 are network elements that facilitate service flows between endpoints and a given network (e.g., for networks such as those illustrated in FIG. 1). As used herein in this Specification, the term ‘network element’ is meant to encompass routers, switches, gateways, bridges, loadbalancers, firewalls, inline service nodes, proxies, servers, processors, modules, or any other suitable device, component, element, or object operable to exchange information in a network environment. This network element may include sequence number tracking module 48 to support the activities related to out of order packet management for particular flows, as outlined herein. Moreover, the network element may include any suitable hardware, software, components, modules, interfaces, or objects that facilitate the operations thereof. This may be inclusive of appropriate algorithms and communication protocols that allow for the effective exchange of data or information.
In one implementation, service gateway 14 includes software to achieve (or to foster) the out of order packet management operations, as outlined herein in this Specification. Note that in one example, this network element can have an internal structure (e.g., a processor, a memory element, etc.) to facilitate some of the operations described herein. In other embodiments, these packet management features may be provided externally to these elements or included in some other network element to achieve this intended functionality. Alternatively, service gateway 14 may include this software (or reciprocating software) that can coordinate with other network elements in order to achieve the operations, as outlined herein. In still other embodiments, one or several devices may include any suitable algorithms, hardware, software, components, modules, interfaces, or objects that facilitate the operations thereof.
In a Gx-enabled network, service gateway 14 can act as a PCEF, either as part of an enhanced GGSN (eGGSN) node, where service gateway 14 and a GGSN are provided as separate cards in a given network element. Alternatively, service gateway 14 can be configured to operate as a standalone Gi-node, with interoperability from external GGSNs. In eGGSN mode, service gateway 14 can act as a Gx interface endpoint, while the GGSN manages packet data protocol (PDP) contexts. Service gateway 14 and a given GGSN can communicate with each other using a remote authentication dial in user service (RADIUS) protocol, or any other suitable protocol where appropriate. Other protocols to be used in such communications can include Diameter, service gateway interface (SGI), terminal access controller access-control system (TACACS), TACACS+, etc.
Service gateway 14 can offer basic Gx support with enhancements for per-user layer 7 rules, dynamic policy loading, and per-user service policies. In a Gi-node mode, a standalone service gateway 14 can act as a Gx interface endpoint. The Gi-node mode can support the same functions as the eGGSN mode. To enable Gx support for a particular subscriber, service gateway 14 can define a user profile and associate that profile with the subscriber. For example, the user profile can enable Gx for associated subscribers. The user profile can also define the actions that service gateway 14 can take if a PCRF fails. In addition, the user profile can define the mobile policy control and charging (MPCC) profile to be used by service gateway 14 when sending per-user credit control requests (CCRs) to PCRF element 40.
Service gateway 14 can determine that a user is a Gx user in several ways. For example, a given GGSN can send a RADIUS accounting start request or a RADIUS accounting interim request: both of which can indicate that the user is a Gx user. Alternatively, service gateway 14 can compare the access point name (APN) name in an attribute (e.g., a Called-Station-Id attribute) of the RADIUS accounting start against a configured list of APN names to determine that the user is a Gx user. In regards to a dynamic loading of policies, service gateway 14 can dynamically load global contents, maps, policies, billing plans, and services from PCRF element 40. If configured to do so, service gateway 14 can dynamically load policies as it boots up (i.e., preloading of policies). Service gateway 14 also supports exporting the IP and TCP headers from a subscriber TCP SYN (or SYN-ACK) packet to PCRF element 40 via the Gx protocol.
RAN 16 is a communication interface between subscriber 12 and SGSNs 18a and 18b. RAN 16 may comprise a base transceiver station and a base station controller in one embodiment. The communication interface provided by RAN 16 may allow data to be exchanged between subscriber 12 and any number of selected elements within communication system 10. RAN 16 may facilitate the delivery of a request packet generated by subscriber 12 and the reception of information sought by subscriber 12. RAN 16 is only one example of a communication interface between subscriber 12 and SGSNs 18a and 18b. Other suitable types of communication interfaces may be used for any appropriate network design and these may be based on specific communication architectures.
SGSNs 18a, 18b, and GGSNs 32a, 32b are communication nodes or elements that cooperate in order to facilitate a communication session involving subscriber 12. GGSNs 32a-b are communication nodes operating in a GPRS environment that may be working in conjunction with multiple SGSNs 18a and 18b to provide a communication medium in a GPRS service network. GGSNs 32a and 32b can provide a GPRS tunneling protocol (GTP), any PDP authentication, authorization, and accounting (AAA) operations, and QoS RAN signaling. GPRS may support multiple internet communication protocols and may enable existing IP, point-to-point protocol (PPP), or any other suitable applications or platforms to operate over a given network.
IP network 20 represents a series of points or nodes of interconnected communication paths for receiving and transmitting packets of information that propagate through communication system 10. IP network 20 offers a communicative interface between subscriber 12 and selected GGSNs 32a-b, and may be any local area network (LAN), wireless local area network (WLAN), metropolitan area network (MAN), Intranet, Extranet, wide area network (WAN), virtual private network (VPN), or any other appropriate architecture or system that facilitates communications in a network environment. IP network 20 may implement a UDP/IP connection and use a TCP/IP communication language protocol in particular embodiments of the present disclosure. However, IP network 20 may alternatively implement any other suitable communication protocol for transmitting and receiving data packets within communication system 10. Internet 22 offers a communicative interface between server 60 and ISNs 50. Internet 22 may foster any communications involving services, content, video, voice, or data more generally, as it is exchanged between subscriber 12 and various network elements.
PCRF element 40 can be configured to act as a Diameter server and perform the following functions: 1) use the Gx interface to provision PCC rules to (and remove PCC rules from) PCEF module 56; 2) manage policy control decisions; 3) provide network control regarding the service data flow detection, QoS, and flow-based charging towards PCEF module 56; 4) receive session and media-related information from application functions (AFs); and 5) inform the AFs of traffic plane events.
PCEF module 56 can act as a Diameter client and perform the following functions: 1) use the Gx interface to send traffic plane events to PCRF element 40; 2) enforce policy, handle flow-based charging, control QoS and the handling of user plane traffic; 3) provide service data flow detection, counting for online and offline charging interactions; and 4) report changes in the status of service data flows. In a Gx-enabled network, the PCC rules can be used to: 1) detect a packet that belongs to a service data flow; 2) identify the service to which the service data flow contributes; and 3) provide applicable charging parameters and policy control for a service data flow. PCC rules can be dynamically provisioned by PCRF element 40 to PCEF module 56 over the Gx interface. Dynamic PCC rules can be dynamically generated in PCRF element 40. Dynamic PCC rules can be activated, modified, and deactivated at any time.
Loggen element 24 is a storage element operable to build billing records and communicate the billing records to a billing system based on information provided by KUT 26. Loggen element 24 may also operate to store data for later use and execute all formatting for billing records to be communicated to a billing system. Loggen element 24 may be implemented using hardware, software, or any other suitable element or object operable to store information and to generate a billing record to be communicated to a billing system. Loggen element 24 may generate logging records or billing records and additionally send messages to a billing system element associated with a change in SGSN.
KUT 26 is a data storage element that manages one or more correlations between the ID of subscriber 12 and a corresponding IP address. KUT 26 could be simply part of any memory element within service gateway 14. KUT 26 may also store information relating to billing, previously designated for subscriber 12, and the billing system may be invoked when additional information associated with subscriber 12 is communicated to service gateway 14. KUT 26 may be consulted as additional billing records are created in order to determine that a billing system should receive selected billing records. KUT 26 may also include an application program interface (API) that may be implemented in order to obtain user ID information for an IP address from a data flow.
KUT 26 is provided with the capability of mapping the source IP address (or any other subscriber 12 parameter) to a user ID. The user ID may be obtained from an external database, where appropriate, or any other suitable location. Alternatively, the user ID may be extracted from a RADIUS flow, a TACACS communication flow, a Diameter communication flow, or any other suitable communication protocol flow, communication session, or data exchange. The database may be populated at any suitable time and updated using any suitable mechanism, such as via the sniffing of RADIUS or TACACS flows.
In one example implementation, HTTP protocol handler 62 and session services module 64 cooperate in order to achieve an effective management of out of order packets being received by service gateway 14. For example, software within HTTP protocol handler 62 can parse incoming headers and determine the out of order range for the particular flow. Determining the out of order range can more generally include interpreting the protocol. Comparing incoming packets to the out of order range (e.g., along with executing decisions about when to forward or when to queue certain packets) can be performed by session services module 64. One or more application program interfaces (APIs) may be used in order to foster, or otherwise facilitate, any of these described operations. In addition, both HTTP protocol handler 62 and session services module 64 can be configured within (or be capable of interfacing with) one or more traffic processors 36, which can manage individual sessions. For example, an individual session exists for each TCP flow on an individual traffic processor 36.
In operation, session services module 64 can operate in the following manner. The OOO TCP counting implementation can be configured to react to OOO packets by recording the missing sequence numbers in an OOO missing queue (e.g., within queues 42). In addition, the session sequence number position can be moved to the end of the out of order packet sequence number, as though it had started with the expected sequence number. Since the protocols that use this implementation do not parse the content, problems are not encountered as the late packets arrive.
HTTP protocol handler 62 is configured to provide session services module 64 with a range of sequence numbers where OOO processing is allowed. In one example implementation, an application program interface (API) can be used such that an OOO missing queue entry will be created for the OOO allowed range. The session current sequence number can be set to the sequence number after the OOO allowed range. As packets arrive for the OOO allowed range, service gateway 14 can count the TCP bytes and remove those sequence numbers from the OOO missing queue such that packets within that range may arrive in any order.
A packet that arrives with a sequence number beyond the current expected sequence number can be handled as an OOO packet. The packet can be queued in the OOO queue and held until the TCP stream position effectively catches up to it. A packet that contains the current expected sequence number, either at the beginning or somewhere else within the packet, can be parsed starting with the byte at the next expected sequence number.
In one example implementation, OOO packets received by a session operating in this mode would not create new missing OOO queue entries. OOO missing queue entries can be created by HTTP protocol handler 62. As an additional optimization, fragmented packets are not reassembled if all of the TCP payload bytes are within the OOO allowed range. In one example implementation, an API can be provided to allow parsed sessions that undergo an L4 downgrade to forgo all further OOO queuing in a specific direction. The session can be flagged for OOO processing in that direction, and packets in the OOO queue can be handed to HTTP protocol handler 62.
In one particular implementation, HTTP protocol handler 62 can consider the following situations as eligible for OOO forwarding: 1) a request or response that has a content length header and that additionally is not a multipart/chunked response; 2) a request or response that HTTP parsing code is marked FIN terminated (no parsing until end of session); and 3) a request or response that HTTP parsing code has downgraded to L4.
In the first identified scenario, HTTP can request session services to perform OOO forwarding until the end of the request/response in question. Parser state can be updated to indicate that the “End of Message Body” has been encountered and the subsequent packets belonging to that specific request/response can be treated as retransmits. In scenarios 2) and 3) identified above, session services can be asked to disable OOO queuing completely. For HA instances, on the standby, the request and response are already marked for downgrade when setting up the session. Adding a call to session services to disable OOO queuing for both request and response directions is sufficient to handle this scenario.
Inline service nodes (ISNs) 50 represent different types of network elements (e.g., routers, switches, gateways, etc.) that can offer various services and capabilities for subscriber 12. Thus, particular ISNs can offer different services for incoming flows. For example, one ISN may be associated with video compression such that any flow associated with this particular technology or protocol would be routed to that ISN. Another ISN may be tasked with content filtering operations, while still another ISN may be associated with voice data associated with a VPN connection. Thus, in changing the path for a particular communication flow, the packets can be processed or implicated differently depending on which ISN is processing the particular flow. In one example, there is a default route associated with particular web servers, and this particular default could be the shortest path between two network points. In another example, particular routing decisions are executed such that particular flows are directed to specific paths that can accommodate specific subscriber needs. In one example, ISNs 50 may not be simple routers in a more traditional sense. ISNs 50 can be more complex service nodes operating on network flows at much higher levels, rather than providing simple routing and forwarding operations. For example, these nodes may implement specialized inline services such as image and video optimization, wireless TCP optimizations, protocol transformations (WAP/HTTP), content filtering controls, etc.
Quality of service module 54 is configured to execute quality of service decisions for particular subscribers. This may include referencing or accessing a given profile for particular subscribers. Additionally, quality of service module 54 can interface with PCEF module 56 in order to render or to execute quality of service decisions. Quality of service module 54 can also interface with sequence number tracking module 48 in order to properly manage and track the forwarding and/or billing activities for particular packets.
Turning to additional details associated with particular QoS activities of communication system 10, QoS actions (e.g., to be performed by quality of service module 54) can be specified by configuring a QoS profile for each particular subscriber. Such a profile can be stored within service gateway 14, provided in a table external to service gateway 14, provided in a database, or otherwise suitably stored, maintained, cached, or referenced in order to execute quality of service decisions. The profile can be attached to a billing plan (per-user) and/or a service (per-user service). The QoS profile configuration can describe the various parameters for policing and marking traffic. Traffic actions can include taking no action, marking Differentiated Services Code Point (DSCP) bits, dropping the traffic, etc. Note that service gateway 14 can be employed on a per-user basis, or on a per-user service. The per-user basis implies that the QoS is applied to traffic to/from a particular subscriber. The per-user service implies that the QoS can be applied to traffic to/from a particular subscriber and that also matches a specific service. Stated differently, the QoS can be applied to each service instance in certain examples.
Server 60 can be a web server offering content or services to any subscriber or any group of subscribers. For example, server 60 could be any network element associated with www.ESPN.com or www.yahoo.com: both of which could offer content for their end users. Alternatively, server 60 can be any destination, location, or node that is sought to be accessed or used by subscriber 12. Server 60 may provide the requested service/content, or provide a portal, pathway, or gateway to another location that includes the desired data. In other embodiments, server 60 could simply be a data storage location or a processor that can store or deliver content or services to one or more subscribers 12.
Turning to FIG. 2, FIG. 2 illustrates an example flow associated with HTTP pipelined requests. One behavior of HTTP protocol handler 62 is to close out a transaction when the first response packet for the next transaction is received. This leads to potentially more slop bytes when pipelining is prevalent. Note that slop activities are specific to a particular implementation only and, therefore, are not applicable to all configurations outlined herein. Note also that communication system 10 includes counting TCP bytes correctly, while dynamically switching between parsed (order-enforced) and unparsed (order-agnostic) modes. Transactions and slop can be associated with specific implementation artifacts of service gateway 14 in which the counted bytes are then divvied up and charged. Thus, communication system 10 has relevance independent of how the counted bytes are charged.
FIG. 2 considers this particular slop issue in the following sequence. At step 100, a packet with two pipelined GET requests is received at service gateway 14. The requests are labeled as GET1 and GET2 in the following discussion. At step 110, two transactions are opened: one for each GET request. At step 120, the first response packet for GET1 is received. Upon parsing this, HTTP can decide that the rest of the GET1 response packets can be forwarded out of order, where it informs session services module 64 accordingly.
At step 130, before the rest of GET1 response packets are received, the first response packet of GET2 is received. Since this packet is contiguous with the out-of-order range, session services module 64 can send this packet to HTTP protocol handler 62 for parsing. At step 140, upon parsing the packet, HTTP protocol handler 62 can close the transaction corresponding to GET1 and generate a call detail record (CDR). At step 150, the remaining response packets of GET1 arrive and are counted within some slop segment, as there is no matching transaction present.
A potential solution to this issue above is to delay closing the transaction if there are missing packets. Such missing packets can be detected by checking the session services sequence number queue for any elements in the sequence number range of interest. An alternative would be to compare the HTTP TCP byte count for the transaction against the sequence number range for that same transaction. If the count were less than the sequence number range, that would indicate missing packets.
FIGS. 3-8 illustrate how certain HTTP flows can be managed when out of order packets are received by service gateway 14. FIGS. 3-8 depict an emphasis on queuing out of order packets before allowing the packets to be forwarded to their intended destination. In contrast, FIGS. 9-14 illustrate how service gateway 14 can take a different approach to resolving out of order packets, where queuing is minimized and forwarding occurs more systematically.
Turning to the first set of example illustrations, FIG. 3 illustrates an HTTP request being received by service gateway 14. The HTTP request is forwarded to a given server, which can provide content being sought by a particular subscriber. FIG. 4 illustrates a response packet being received by service gateway 14 from the server. Again, the response packet is forwarded by service gateway 14 back toward the subscriber in this particular example, although it should be noted that service gateway 14 is bidirectional, as it can accommodate flows emanating from various directions. FIG. 5 illustrates a response packet #3 (having a sequence number range 2001-3000) being received by service gateway 14. In actuality, service gateway 14 was anticipating the reception of response packet #2 before response packet #3 arrived. In this instance, service gateway 14 queues response packet #3 (e.g., within queue #3). In theory, packet #3 is maintained until the missing packet #2 is received, in which case both packets are forwarded to their intended destination.
FIG. 6 illustrates service gateway 14 receiving the missing response packet #2, which has a sequence number range of 1001-2000. Response packet #2 is forwarded by service gateway 14, which subsequently forwards the previously queued response packet #3. FIG. 7 illustrates service gateway 14 receiving response packet #5 instead of the anticipated response packet #4. Response packet #5 has a sequence number range of 4001-5000 and it is properly queued (e.g., queue #5) for subsequent transmission. FIG. 8 illustrates response packet #4 being received by service gateway 14, which again forwards this packet, along with response packet #5 toward its proper destination.
FIGS. 9-14 illustrate an alternative manner in which out of order packets can be properly handled. FIG. 9 depicts a request packet being received by service gateway 14, which properly forwards the request packet to its intended destination. FIG. 10 illustrates a response packet #1 being received by service gateway 14, which establishes an out of order sequence number range of 1001-11,000 (e.g., for the response body). Note that response packet #1 includes a content length element field designating 10,000 bytes as the out of order range to be used for this particular HTTP flow. Service gateway 14 can effectively maintain an internal state for this particular range. The range can be updated (i.e., adjusted) with beginning and ending sequence numbers. Response packet #1 is subsequently forwarded to its intended destination.
Note also that the sequence number order range (designated as 1001-11,000 in this particular example) represents an individual entry within a queue. Each individual element (or node) within the queue corresponds to a range of sequence numbers, which can be handled in any suitable order. In essence, any data arriving at service gateway 14 and which falls within this specified range can be handled out of order. There can be multiple entries within the queue and each entry could represent a certain sequence number range that is different from the other entries in the queue. Note that there could be sub-ranges within the designated range, as new packets arrive at service gateway 14 and other sequence number ranges are resolved, removed, or adjusted. Note that as used herein in this Specification, the term ‘resolve’ is meant to include any type of removal, adjustment, modification, deletion, clearing, marking, changing, or otherwise addressing a given entry that is maintained in the queue. The term ‘queue’ is meant to include any type of cache, memory, database, table, etc. in which sequence number entries can be appropriately maintained for subsequent reference.
Thus, as packets are received, portions within the sequence number range can be removed or otherwise resolved in the queue such that they are acknowledged as being received. The out of order range can continue to be adjusted as packets arrive at service gateway 14 such that ultimately, there is an empty queue for the out of order sequence number range (i.e., reflecting that all of the packets have been properly received and accounted for). In this sense, an accurate counting of these packets can be performed, where unnecessary queuing is avoided and the throughput is maximized.
FIG. 11 illustrates service gateway 14 receiving response packet #3 having a sequence number range from 2001-3000. Note that response packet #3 is being received out of order for this particular HTTP flow. Service gateway 14 understands that this particular packet is within the designated range that was previously established in the out of order range queue. For this reason, it does not have to queue this packet and instead, and as illustrated, it forwards response packet #3 to its intended destination. Note that response packet #3 represents sequence numbers not yet seen by service gateway 14. For this reason, this packet is counted (e.g., TCP bytes are counted), as it is forwarded along to a next network location. In addition, when response packet #3 is forwarded, this particular sequence number range is effectively resolved (i.e., removed) in the out of sequence number range queue. In a general sense, this particular sequence number range is being marked as having already been seen by service gateway 14. If for whatever reason this particular response packet #3 is received at service gateway 14 (representing the same range of sequence numbers 2001-3000), then a simple lookup could be performed in the queue to search for this range. When that range is not found and there is no match found for this particular sequence number range, service gateway 14 understands that this represents a retransmission and, therefore, is not to be counted a second time.
FIG. 12 illustrates response packet #2 (having a sequence number range of 1001-2000) being received by service gateway 14. Service gateway 14 understands that this range falls within the previously established range such that it can forward this packet along to its intended destination. More specifically, service gateway 14 can reference its out of order sequence number queue and eliminate a particular node (i.e., entry) associated with sequence numbers 1001-2000. The remaining sequence number range would effectively cover packets having sequence numbers not yet seen by service gateway 14 (i.e., from the originally allotted out of order sequence number range). In this particular example, and at this specific junction, service gateway 14 has seen sequence numbers 1-1000 (for response packet #1), 2001-3000 (for response packet #3), and 1001-2000 (for response packet #2). Thus, from the removal of these sequence numbers in the queue, the remaining sequence number range being maintained by service gateway 14 would be 3001-11,000. In this general sense, service gateway 14 continues to evaluate incoming packets such that ultimately this previously designated range of sequence numbers is effectively extinguished. Stated otherwise, service gateway 14 systematically evaluates sequence numbers (after being given a designated sequence number range) until the queue is empty, where all sequence numbers have been appropriately counted and acknowledged by service gateway 14.
FIG. 13 illustrates service gateway 14 receiving response packet #5, which is out of order. Response packet #5 has a sequence number range of 4001-5000 and this falls within the previously designated sequence number range. Instead of queuing this particular packet, service gateway 14 forwards response packet #5 to its intended destination. FIG. 14 illustrates response packet #4 (having a sequence number range of 3001-4000) being received by service gateway 14, which would promptly forward this packet to its intended destination.
As demonstrated by the previous flow, service gateway 14 has the intelligence to simply forward along packets even though they are being received out of order. This is in contrast to forced queuing that would occur when packets are received out of order. The forced queuing would dictate that service gateway 14 would have to wait on previous packets (that would essentially fill the missing gaps of packets) before forwarding along the out of order packets. Instead, and as shown in FIGS. 9-14, service gateway 14 can quickly forward packets as they are received and, thereby, avoid unnecessarily queuing out of order packets. This can improve the overall throughput for service gateway 14. In addition, service gateway 14 has the intelligence to treat individual requests differently. For example, if a particular request is associated with a data flow where the sequence number order range is not important, then service gateway 14 can spring into action and perform the operations highlighted in FIGS. 9-14. Service gateway 14 can concurrently service other types of requests in which sequence numbering is important. For example, if service gateway 14 were to receive a contiguous sequence number range of 14,001-15,000 after receiving response packet #4 (of FIG. 14), then service gateway 14 would understand that this is associated with a new request. If the designated out of order sequence number range has not been established for this request, then service gateway 14 can quickly modify its behavior to accommodate a different technique for queuing packets (e.g., until they are properly ordered) before sending the packets along to their next intended destination.
Note that in certain example implementations, the out of order packet management functions outlined herein may be implemented by logic encoded in one or more tangible media (e.g., embedded logic provided in an application specific integrated circuit [ASIC], digital signal processor [DSP] instructions, software [potentially inclusive of object code and source code] to be executed by a processor, or other similar machine, etc.). In some of these instances, a memory element [as shown in FIG. 1] can store data used for the operations described herein. This includes the memory element being able to store software, logic, code, or processor instructions that are executed to carry out the activities described in this Specification. A processor can execute any type of instructions associated with the data to achieve the operations detailed herein in this Specification. In one example, the processor [as shown in FIG. 1] could transform an element or an article (e.g., data) from one state or thing to another state or thing. In another example, the activities outlined herein may be implemented with fixed logic or programmable logic (e.g., software/computer instructions executed by a processor) and the elements identified herein could be some type of a programmable processor, programmable digital logic (e.g., a field programmable gate array [FPGA], an erasable programmable read only memory (EPROM), an electrically erasable programmable ROM (EEPROM)) or an ASIC that includes digital logic, software, code, electronic instructions, or any suitable combination thereof.
In one example implementation, service gateway 14 may include software in order to achieve the out of order packet management functions outlined herein. These activities can be facilitated by sequence number tracking module 48 (and/or any of its associated internal components). Service gateway 14 can include memory elements for storing information to be used in achieving the intelligent out of order packet management, as outlined herein. Additionally, service gateway 14 may include a processor that can execute software or an algorithm to perform the out of order packet management, as discussed in this Specification. This device may further keep information in any suitable memory element [random access memory (RAM), ROM, EPROM, EEPROM, ASIC, etc.], software, hardware, or in any other suitable component, device, element, or object where appropriate and based on particular needs. Any of the memory items discussed herein (e.g., database, lookup table, cache, etc.) should be construed as being encompassed within the broad term ‘memory element.’ Similarly, any of the potential processing elements, modules, and machines described in this Specification should be construed as being encompassed within the broad term ‘processor.’ Each of the network elements can also include suitable interfaces for receiving, transmitting, and/or otherwise communicating data or information in a network environment.
Note that with the example provided above, as well as numerous other examples provided herein, interaction may be described in terms of two, three, or four network elements. However, this has been done for purposes of clarity and example only. In certain cases, it may be easier to describe one or more of the functionalities of a given set of flows by only referencing a limited number of network elements. It should be appreciated that communication system 10 (and its teachings) are readily scalable and can accommodate a large number of components, as well as more complicated/sophisticated arrangements and configurations. Accordingly, the examples provided should not limit the scope or inhibit the broad teachings of communication system 10 as potentially applied to a myriad of other architectures.
It is also important to note that the steps in the preceding flow diagrams illustrate only some of the possible signaling scenarios and patterns that may be executed by, or within, communication system 10. Some of these steps may be deleted or removed where appropriate, or these steps may be modified or changed considerably without departing from the scope of the present disclosure. In addition, a number of these operations have been described as being executed concurrently with, or in parallel to, one or more additional operations. However, the timing of these operations may be altered considerably. The preceding operational flows have been offered for purposes of example and discussion. Substantial flexibility is provided by communication system 10 in that any suitable arrangements, chronologies, configurations, and timing mechanisms may be provided without departing from the teachings of the present disclosure.
Although the present disclosure has been described in detail with reference to particular arrangements and configurations, these example configurations and arrangements may be changed significantly without departing from the scope of the present disclosure. For example, although the present disclosure has been described with reference to particular communication exchanges involving certain GGSN components, communication system 10 may be applicable to other protocols and arrangements such as any type of network access server (NAS), GPRS entry point, etc. Moreover, the present disclosure is equally applicable to various wireless technologies including Wi-Fi, WiMax, etc. In addition, other example environments that could use the features defined herein include Pico and femto architectures, where an appropriate out of order packet management would occur for one or more packets. Moreover, although communication system 10 has been illustrated with reference to particular elements and operations that facilitate the communication process, these elements and operations may be replaced by any suitable architecture or process that achieves the intended functionality of communication system 10.

## Claims

1. A method, comprising:
receiving at a network element a request packet associated with a flow;
creating at the network element an entry that designates an out of order sequence number range associated with the flow;
receiving at the network element a subsequent packet that includes a particular sequence number range;
resolving at the network element a portion of the entry corresponding to the particular sequence number range for the subsequent packet by removing numbers comprising the particular sequence number range from the out of order sequence number range; and
forwarding from the network element the subsequent packet without awaiting receipt of any other packets associated with the flow;
wherein the request packet includes a content length field indicating the out of order sequence number range associated with the flow.

2. The method of claim 1, further comprising:
receiving an additional packet associated with the flow;
referencing a queue that includes a plurality of entries associated with the out of order sequence number range; and
identifying no match associated with the additional packet such that the additional packet is classified as being a retransmission.

3. The method of claim 1, wherein creating the entry includes creating a segment within a queue for the out of order sequence number range, which reflects expected sequence numbers for packets associated with the flow.

4. The method of claim 1, further comprising:
accounting for a number of transmission control protocol (TCP) bytes passing through a network element; and
accounting for packets received at the network element.

5. The method of claim 1, further comprising:
updating the out of order sequence number range after resolving the portion of the entry associated with the subsequent packet.

6. The method of claim 1, further comprising:
billing a first set of packets associated with the flow in response to forwarding the first set of packets, wherein the request packet is associated with a data type in which out of order processing for packets within the flow is permissible.

7. One or more non-transitory tangible media that includes code for execution and when executed by a processor causes performance of operations comprising:
receiving a request packet associated with a flow;
creating an entry that designates an out of order sequence number range associated with the flow;
receiving a subsequent packet that includes a particular sequence number range;
resolving a portion of the entry corresponding to the particular sequence number range for the subsequent packet by removing numbers comprising the particular sequence number range from the out of order sequence number range; and
forwarding the subsequent packet without awaiting receipt of any other packets associated with the flow;
wherein the request packet includes a content length field indicating the out of order sequence number range associated with the flow.

8. The one or more non-transitory tangible media of claim 7, the operations further comprising:
receiving an additional packet associated with the flow;
referencing a queue that includes a plurality of entries associated with the out of order sequence number range; and
identifying no match associated with the additional packet such that the additional packet is classified as being a retransmission.

9. The one or more non-transitory tangible media of claim 7, wherein creating the entry includes creating a segment within a queue for the out of order sequence number range, which reflects expected sequence numbers for packets associated with the flow.

10. The one or more non-transitory tangible media of claim 7, the operations further comprising:
accounting for a number of transmission control protocol (TCP) bytes passing through a network element; and
accounting for packets received at the network element.

11. The one or more non-transitory tangible media of claim 7, the operations further comprising:
updating the out of order sequence number range after resolving the portion of the entry associated with the subsequent packet.

12. An apparatus, comprising:
a memory element configured to store data,
a processor to execute instructions associated with the data, and
a tracking module configured to:
receive a request packet associated with a flow;
create an entry that designates an out of order sequence number range associated with the flow;
receive a subsequent packet that includes a particular sequence number range;
resolve a portion of the entry corresponding to the particular sequence number range for the subsequent packet by removing numbers comprising the particular sequence number range from the out of order sequence number range; and
forward the subsequent packet without awaiting receipt of any other packets associated with the flow;

wherein the request packet includes a content length field indicating the out of order sequence number range associated with the flow.

13. The apparatus of claim 12, further comprising:
a policy control enforcement function (PCEF) module configured to render policy decisions associated with the flow.

14. The apparatus of claim 12, further comprising:
a queue that includes one or more entries that can be updated as additional packets are received and that are associated with expected sequence numbers associated with the flow.

15. The apparatus of claim 12, further comprising:
a hypertext transfer protocol (HTTP) protocol handler configured to parse incoming headers for incoming packets and to determine the out of order sequence number range associated with the flow.

16. The apparatus of claim 12, further comprising:
a session services module configured to compare incoming packets to the out of order sequence number range and to execute decisions concerning forwarding or queuing certain incoming packets.

17. The apparatus of claim 12, wherein the tracking module is further configured to:
update the out of order sequence number range after resolving the portion of the entry associated with the subsequent packet.