The technology relates generally to network communications and, more particularly, to prioritizing network traffic at the Layer-7 application layer.
The enormous growth in network communications has been due in part to software applications' increased abilities to interact with each other across Wide Area Networks (“WANs”). The transmission of large amounts of data across WANs, however, creates special challenges for achieving a high degree of application and network performance. To fully appreciate the extent of these challenges, a brief primer on basic network concepts will now be provided for background purposes, beginning with a discussion on the Open Systems Interconnection (“OSI”) conceptual network model.
The OSI model is commonly used to define the flow of data, or “network traffic,” over a network between network applications and/or devices. The OSI model has seven layers including the application layer (“Layer-7”), the presentation layer (“Layer-6”), the session layer (“Layer-5”), the transport layer (“Layer-4”), the network layer (“Layer-3”), the data link layer (“Layer-2”), and the physical layer (“Layer-1”). Each OSI layer communicates with a layer above and/or below it and with corresponding layer(s) on other applications and/or devices in the network through specific protocols. The network layers are often referred to as “the network stack,” and the most common protocols in which these layers are implemented are the TCP/IP protocols.
The TCP portion of the protocol corresponds to the Layer-4 transport layer in the OSI model. The IP portion of the protocol defines standards for data packets that may comprise data message(s) at the Layer-7 application layer. The TCP/IP protocols ensure the reliable, in order delivery of data. For instance, an application on a first device (e.g., client) may request that data be sent to another application at a second device (e.g., server).
The client's TCP/IP stack, typically implemented in the operating system kernel, may eventually partition the data into Layer-7 application layer messages to be transmitted over a Layer-1 physical connection. The data transmitted is typically acknowledged as it is received in a specified order, and lack of an acknowledgement from its intended recipient often results in portions of the data being resent. When portions of data are received out of sequence, however, the TCP/IP regime nevertheless requires waiting for the remaining portions of data before any processing can be performed by the recipient upon the data, a condition known as “head of line blocking.”
The growing complexity and sophistication of more elegant network application solutions recently, however, have been increasingly frustrated by the rigidity of the TCP/IP approach. For instance, while the TCP/IP protocols ensure the reliable, in order delivery of data, they do not recognize acceptable exceptions for violating the in order delivery of data maxim. As network applications become ever more sophisticated, the ability to send data out of order may help overcome TCP/IP's limitations and sustain their continued growth.
Broadly stated, application layer message classification techniques are disclosed, which at a high-level may involve classifying otherwise unclassified incoming Layer-7 application layer messages (“messages”) in network bound traffic, received by a network traffic management device through a first TCP/IP connection, according to some criteria. The network traffic management device may transmit the classified messages pertaining to selected message classifications ahead of other classified messages pertaining to unselected classifications through one of the several second TCP/IP connections.
Further, the messages may be classified independent of any packet-level prioritization information included in the data packets forming the messages. Furthermore, the criteria upon which the messages may be classified to create the different message classifications may include prioritization, such as prioritizing certain messages ahead of others based on one or more message characteristics, although the messages could be prioritized based on any number of other factors, such as network conditions, message content, and the like.
The same reference numerals and/or other reference designations employed throughout the ensuing drawings are used to identify identical components, except as provided otherwise.
Referring to
Referring now specifically to
First LAN 110 may include one or more first server devices 112, one or more first client devices 114, and one or more first network traffic management devices 200, although the LAN 110 may also include one or more additional intermediary network devices in communication with each other via one or more wired and/or wireless network links, such as switches, routers, modems, or gateways (not shown), and the like, as well as other types of network devices including network storage devices.
Furthermore, the various devices in the first LAN 110 (e.g., first server device 112, first client device 114) may communicate and interact with other devices in second LAN 120 (e.g., second server device 122, second client device 124) over WAN 130 via the first network traffic management device 200. In other words, the first network traffic management device 200 may be said to sit “at the edge” of the first LAN 110. That way, all or portions of in-bound and/or out-bound network traffic to/from the devices in LAN 110 may pass through the first traffic management device 200 onto WAN 130 eventually to the devices in LAN 120 through the second traffic management device 500. However, if one of network management devices 200, 500 is not present in either the first and second LANs 110, 120, respectively, then the LAN 120, 130 devices may communicate over the WAN 130 directly as they would in any conventional network environment absent one of the devices 200, 500.
As will be described in greater detail herein, the devices in at least one of the first and second LANs 110, 120 (i.e., first and second clients 114, 124; first and second servers 112, 122) may send network bound un-prioritized message level network traffic through at least one of network traffic management devices 200, 500, respectively, which in turn may prioritize and send the prioritized messages over the WAN 130. In the example in
Second LAN 120 is identical to first LAN 110 in this example, except LAN 120 instead includes second server devices 122 and second client devices 124, although LAN 120 may include a fewer or greater number of the same or different devices (e.g., network devices, network storage devices, etc.).
It should be noted that in the example message prioritization system environment 100 shown in
Finally, each of the first LAN 110, second LAN 120 and WAN 130 illustrated in
Referring specifically to
Processor 202 may include one or more microprocessors configured to execute one or more machine readable and executable instructions stored in memory 204 to implement network traffic related management functions of the first traffic management device 200 in addition to prioritizing messages as described herein in connection with
Memory 204 may include volatile storage, non-volatile storage and/or disk storage that may store one or more machine readable and executable instructions, programs and/or data, which when retrieved or read and executed by processor 202, may implement at least a portion of the message prioritization module 210 and/or the message prioritization processes illustrated and described herein in connection with
The I/O interface 206 may include one or more device and/or peripheral ports that communicatively couple the first management device 200 with one or more other devices, such as first server devices 112 and first client devices 114, and/or peripherals, such as keyboards, mice and display devices (not illustrated), for enabling operators to control the management device 200 for performing configuration operations and the like, for example, although other types and numbers of devices and peripherals could be used for controlling the device to perform a variety of other operations.
The network interface 208 may include one or more host bus adapters (“HBAs”) or controllers, such as network cards (e.g., Ethernet and Novell network interface cards), which may communicatively couple the first network management device 200 to the first LAN 110 and the second LAN 120 over the WAN 110, although other types of network HBAs could be used, including Fibre channel, SCSI and/or iSCSI storage networking HBAs, and the like.
It should be noted that one or more of the above-described components in first network management device 200 could be implemented by software, hardware, firmware and combinations thereof. Also, some or all of the machine readable and executable instructions represented by the functional block diagrams and flowcharts depicted in
Referring back specifically to
Referring generally to
Beginning in step 510, the message prioritization module 210 may obtain one or more incoming un-prioritized messages 212 (i.e., MESSAGE 1, MESSAGE 2) received by the first network management device 200 over an un-prioritized TCP/IP connection 214. The incoming un-prioritized messages 212 may originate from one or more of the first server devices 112 and/or the first client devices 114, and their destination may include one or more of the second server devices 122 and/or second client devices 124 in the second LAN 120 by way of the second network management device 500 and/or the WAN 130.
In step 520, the message prioritization module 210 may store one of the received incoming un-prioritized messages 212, such as MESSAGE 1, in any one of the first and second buffers 306(1), 306(2) that may be free or otherwise have storage capacity within the message buffer pool 304. Accordingly, the message prioritization module 210 may retrieve one of the free first or second buffers 306(1), 306(2) from the message buffer pool 304, and the module 210 may read one of the incoming un-prioritized messages 212 (e.g., MESSAGE 1) into the buffer.
As the message prioritization module 210 receives one or more other incoming un-prioritized messages 212 (e.g., MESSAGE 2), the module 210 may likewise store the messages 212 in an available one of the first and second buffers 306(1), 306(2) maintained in memory 204. If there are no available first and second buffers 306(1), 306(2) within the message buffer pool 304, however, then one or more of the other incoming un-prioritized messages 212 may be dropped.
In step 530, the message prioritization module 210 may classify the un-prioritized messages 212 (e.g., MESSAGE 1, MESSAGE 2) from the first and second buffers 306(1), 306(2) in the message buffer pool 304 in some manner. Examples include prioritizing each of the messages 212 based on one or more factors including characteristics of the messages themselves with respect to each other (e.g., every other message is high priority, etc.), although the messages could be classified based on any number of other factors including network conditions, payload message content, protocol header values or any other Layer-7 characteristic of the network traffic, and the like.
The message prioritization module 210 may specify the classification (e.g., prioritization) information in the data packet headers of each data packet forming each message. In this example, prioritizing the un-prioritized messages 212 may result in first priority messages 216 and second priority messages 218. Whichever method the message prioritization module 210 employs to classify the un-prioritized messages 212, however, the module 210 may simply maintain these message classifications (e.g., prioritizations) in memory 204 for each of the messages 212 in the message buffer pool 304 for subsequent processing as described herein.
Furthermore, the message prioritization module 210 may optionally enhance the classification effects by marking or coloring the DSCP, ToS bits, and/or MPLS bits in the headers of each data packet forming the classified messages (e.g., first and second priority messages 216, 218), although other coloring methods could be utilized. By coloring the first and second priority messages 216, 218, intermediary network devices in the example message prioritization system environment 100 may be able to make intelligent QoS decisions without requiring Layer-7 processing capabilities.
In step 540, the message prioritization module 210 may queue one of the first priority messages 216 and second priority messages 218 from the message buffer pool 304 onto the appropriate one of the corresponding first and second TCP/IP socket handlers 310, 312, for transmitting over the WAN 130. For instance, MESSAGE 2 may be prioritized as one of the first priority messages 216 and MESSAGE 1 may be prioritized as one of the second priority messages 218, although MESSAGE 1 could instead be prioritized as a first priority message 216 and MESSAGE 2 could be prioritized as a second priority message 218, both MESSAGE 1 and MESSAGE 2 could be prioritized as first priority messages 216, or both MESSAGE 1 and MESSAGE 2 could be prioritized as second priority messages 218.
In this example, the message prioritization module 210 may then instruct the network interface 208 to transmit the first priority messages 216 (e.g., MESSAGE 2) ahead of the second priority messages 218 (e.g., MESSAGE 1) through the first priority TCP/IP connection 217, and the network interface 208 may begin transmitting as described in greater detail below in connection with
It should be noted, however, that the recipient of the transmitted first or second priority messages 216, 218, which in this example include one or more devices in the second LAN 120 (i.e., second network traffic management device 500, second server devices 122, second client devices 124, and/or applications operating on any of the foregoing), may read the messages 216, 218 from the established first and second priority TCP/IP connections 217, 219, respectively, in the same manner as they would any other messages transmitted over TCP/IP connections. Alternatively, the second traffic management device 500 could be configured to instead read the messages 216, 218 from the first and second priority TCP/IP connections 217, 219, respectively, and then write the messages back to a single TCP connection established with the intended recipient (i.e., second server 122, second client 124, and/or applications operating on any of the foregoing) in such a fashion as to preserve message boundaries.
Referring now specifically to
Beginning in step 610, the message prioritization module 210 may select one of the priority assigned TCP/IP socket handlers 308 selected to represent the highest priority socket, such the first priority TCP/IP socket handler 310 in this example, although other TCP/IP sockets could instead be initially selected, such as the second priority TCP/IP socket handler 312.
In decision block 620, the message prioritization module 210 determines whether there are one or more prioritized messages queued on the selected one of the priority assigned TCP/IP socket handlers 308 (e.g., first priority TCP/IP socket handler 310) for transmitting onto the WAN 130. If there is at least one queued message remaining on the selected one of the priority assigned TCP/IP socket handlers 380 (e.g., first priority socket 310), then the YES branch is followed to step 630, otherwise if there are no remaining messages queued on the selected socket handlers, the NO branch is followed to step 640.
In step 630, the message prioritization module 210 selects one or more messages queued on the selected one of the priority assigned TCP/IP socket handlers 308 for transmitting over the WAN 130, and transmits them. In this example, the prioritization module 212 may select first priority messages 216 queued on the first priority TCP/IP socket handlers 310 for transmitting over a first priority TCP/IP connection 217 before selecting any other prioritized messages queued on any other socket handlers 308, such as second priority messages 218.
By permitting the priority assigned TCP/IP socket handler 308 having the highest priority with one or more queued messages to transmit its queued messages onto the WAN 130 ahead of the other (e.g., lower) priority socket handlers, high priority messages are expedited over low priority messages without requiring rate shaping of any kind. Furthermore, with each classification or priority corresponding to a TCP connection (e.g., first and second TCP/IP connections 217, 219), intermediary QoS network devices in the example message prioritization system environment 100 may now apply data packet based quality of service techniques to the distinct TCP/IP streams without incurring head of line blocking problems.
In decision block 640, the message prioritization module 210 may determine whether the selected one of the priority assigned TCP/IP socket handlers 308 has the lowest priority among the other sockets. If the selected one of the socket handlers 308 does not have the lowest priority, then the NO branch is followed to step 650, otherwise if the selected socket has the lowest priority, then the YES branch is followed back up to step 610 where the highest priority socket is reselected and steps 620-630 may be repeated as described above.
In step 650, the message prioritization module 210 may select one of the priority assigned TCP/IP socket handlers 308 selected to represent the next lower priority socket, such as the second priority TCP/IP socket handler 312 in this example. Once the next lower priority assigned TCP/IP socket handler 308 is selected, steps 620-630 may be repeated as described above. Thus, higher priority messages may be selected and transmitted before lower priority messages.
In decision block 660, the message prioritization module 210 may determine at any time during steps 620-650, as well as during any of the steps 510-540 from the first portion of the prioritization process 500 described earlier, that there are newly queued messages on another one of the priority assigned
TCP/IP socket handlers 308 having a higher priority than the presently selected one of the priority assigned TCP/IP socket handlers 308 (e.g., first and second priority socket handlers 310, 312), as indicated by the dashed lines. If there are newly queued messages on another one of the priority assigned TCP/IP socket handlers 308 having a higher priority than the presently selected one of the priority assigned TCP socket handlers 308, then one of steps 520-540 and/or 620-650 may be interrupted when the determination is made, and the YES branch followed to step 670.
A potential problem or adverse condition may arise from always selecting or at least favoring one or more of the priority assigned TCP/IP socket handlers 308 having queued messages and being assigned a higher or highest priority than a presently selected TCP/IP socket handler 308, however, in that the other lesser priority socket handlers could wind up being “starved” under certain conditions. For instance, if a relatively small number of first priority messages 216 with a higher priority than the second priority messages 218 are consistently queued in the first priority TCP/IP socket handler 310, then the lower priority second priority messages 218 may be substantially less likely to be transmitted.
While such a condition could be desired in some environments, it may create adverse effects in others. Where mitigating these effects is a concern, however, the amount of time that the message prioritization module 210 may dedicate towards transmitting prioritized messages queued on any one or more of the priority assigned socket handlers 308 may be metered out, for example, although a variety of other methods could be employed to prevent any one or more of the sockets 308 from being overly monopolized.
In step 670, the message prioritization module 210 may select the higher priority one of the assigned TCP/IP socket handlers 308 determined to have one or more newly queued messages, and steps 620-650 may be performed in the same manner described above.
In conclusion, the portions of the message prioritization processes 500 and 600 described above, as implemented by the message prioritization module 210 employed in at least one of the network traffic management devices 200, 500 shown in
It should be appreciated that some portions of the detailed description have been presented in terms of procedures, steps, logic blocks, processing, and other symbolic representations of operations on data bits that can be performed on computer memory. A procedure, computer/machine executed step, action, logic block, process, etc., are here conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those utilizing physical manipulations of physical quantities. These quantities can take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer and/or processing system. Further, these signals may have been referred to at times as bits, values, elements, symbols, characters, terms, numbers, or the like. Finally, each step may be performed by hardware, software, firmware, or combinations thereof.
Thus, it will be rather apparent to those skilled in the computer, software and networking arts that the foregoing detailed disclosure is intended to be presented by way of example only, and is not limiting. Various alterations, improvements, and modifications will occur and are intended to those skilled in the art, though not expressly stated herein. These alterations, improvements, and modifications are intended to be suggested hereby, and are within the spirit and scope of this disclosure. Additionally, the recited order of processing elements or sequences, or the use of numbers, letters, or other designations therefore, is not intended to limit the claimed processes to any order except as may be specified in the claims. Accordingly, the claim scope and coverage is to be limited only by the following claims and equivalents thereto.
This application is a continuation of U.S. patent application Ser. No. 13/250,556, filed Sep. 30, 2011, which is a continuation of U.S. patent application Ser. No. 12/209,968, filed Sep. 12, 2008, now U.S. Pat. No. 8,121,117, issued Feb. 21, 2012, and claims the benefit of U.S. Provisional Patent Application No. 60/976,645, filed Oct. 1, 2007, each of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
60976645 | Oct 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13250556 | Sep 2011 | US |
Child | 13750188 | US | |
Parent | 12209968 | Sep 2008 | US |
Child | 13250556 | US |