A method of managing communication of messages via a network includes storing messages received from an application in a queue at a transport layer. The transport layer monitors the amount of information stored at the queue. When the amount of information exceeds a threshold amount, the transport layer provides a warning message to the application. In an embodiment, the transport layer provides the warning message before the queue assigned to store messages from the application is full, so that the application can continue to provide messages to the transport layer after the warning message. The application can take appropriate action in response to the message, such as reducing the amount or frequency of information provided at the transport layer, thereby reducing the likelihood of a communication bottleneck at the transport layer.
|
19. A method comprising:
obtaining a first message at a transport layer of a communication device from a first application being executed at the communication device;
comparing an amount of data stored in a first queue at the transport layer with a plurality of backlog thresholds in response to obtaining the first message;
determining at the transport layer a potential communication bottleneck associated with a target node of the first message in response to determining the amount of data stored in the first queue at the transport layer exceeds at least one of the plurality of backlog thresholds;
in response to determining the potential communication bottleneck at the transport layer,
selecting a type of warning message from a plurality of types of warning messages based on which one or more of the plurality of backlog thresholds were exceeded;
providing the selected type of warning message from the transport layer to the first application to cause the first application to reduce a rate of communicating messages to the transport layer, wherein an amount the first application reduces the rate of communicating messages to the transport layer is determined based on the type of warning message received by the first application; and
in response to providing the selected type of warning message to the first application, obtaining subsequent messages at the transport layer from the first application at the reduced rate of message communication dependent on the selected type of warning message.
21. A non-transitory machine-readable storage media having instructions stored therein, which when executed by one or more processors causes the one or more processors to perform operations that comprise:
obtaining a first message at a transport layer of a communication device from a first application being executed at the communication device;
comparing an amount of data stored in a first queue at the transport layer with a plurality of backlog thresholds in response to obtaining the first message;
determining at the transport layer a potential communication bottleneck associated with a target node of the first message in response to determining the amount of data stored in the first queue at the transport layer exceeds at least one of the plurality of backlog thresholds;
in response to determining the potential communication bottleneck at the transport layer,
selecting a type of warning message from a plurality of types of warning messages based on which one or more of the plurality of backlog thresholds were exceeded;
providing the selected type of warning message from the transport layer to the first application to cause the first application to reduce a rate of communicating messages to the transport layer, wherein an amount the first application reduces the rate of communicating messages to the transport layer is determined based on the type of warning message received by the first application; and
in response to providing the selected type of warning message to the first application, obtaining subsequent messages at the transport layer from the first application at the reduced rate of message communication dependent on the selected type of warning message.
15. A network device, comprising:
a processor operable to execute a first application; and
a network interface device coupled with the processor, the network interface device operable to:
obtain a first message at a transport layer from the first application executing at the processor;
compare an amount of data stored in a first queue at the transport layer with a plurality of backlog thresholds in response to obtaining the first message;
determine at the transport layer a potential communication bottleneck associated with a target node of the first message in response to determining the amount of data stored in the first queue at the transport layer exceeds at least one of the plurality of backlog thresholds;
in response to determining the potential communication bottleneck at the transport layer,
select a type of warning message from a plurality of types of warning messages based on which one or more of the plurality of backlog thresholds were exceeded;
provide the selected type of warning message from the transport layer to the first application to cause the first application to reduce a rate of communicating messages to the transport layer, wherein an amount the first application reduces the rate of communicating messages to the transport layer is determined based on the type of warning message received by the first application;
send the first message to the target node via a network external to the network device; and
in response to providing the selected type of warning message to the first application, obtain subsequent messages at the transport layer from the first application at the reduced rate of message communication dependent on the selected type of warning message.
1. A method, comprising:
obtaining a first message at a transport layer of a communication device from a first application being executed at the communication device;
comparing an amount of data stored in a first queue at the transport layer with a first threshold value;
determining at the transport layer a first potential communication bottleneck associated with a target node of the first message in response to determining the amount of data stored in the first queue at the transport layer exceeds the first threshold value;
in response to determining the first potential communication bottleneck,
providing a first warning message from the transport layer to the first application indicating a reduced amount of transmission resources available at the transport layer to cause the first application to reduce a rate of communicating messages to the transport layer by a first predefined amount, wherein the first predefined amount is associated with the first threshold value;
obtaining subsequent messages at the transport layer from the first application at the reduced rate of message communication determined based on the first warning message;
determining at the transport layer a second potential communication bottleneck associated with the target node based on a comparison of the amount of data stored at the first queue with a second threshold value, the second threshold value different from the first threshold value;
in response to determining the second potential communication bottleneck,
providing a second warning message from the transport layer to the first application to cause the first application to reduce the rate of communicating messages to the transport layer by a second predefined amount, wherein the second predefined amount is associated with the second threshold value, and the second predefined amount is different from the first predefined amount; and
obtaining subsequent messages at the transport layer from the first application at the reduced rate of message communication determined based on the second warning message.
7. A method comprising:
obtaining a first message at a transport layer of a communication device from a first application being executed at the communication device;
comparing an amount of data stored in a first queue at the transport layer with a first threshold value;
determining at the transport layer a first potential communication bottleneck associated with a target node of the first message in response to determining the amount of data stored in the first queue at the transport layer exceeds the first threshold value;
in response to determining the first potential communication bottleneck associated with the target node of the first message,
providing a first warning message from the transport layer to the first application indicating a reduced amount of transmission resources available at the transport layer to cause the first application to reduce a rate of communicating messages to the transport layer;
obtaining subsequent messages at the transport layer from the first application at the reduced rate of message communication determined based on the first warning message;
obtaining a second message at the transport layer from a second application;
determining at the transport layer a second potential communication bottleneck associated with a target node of the second message, the target node of the second message different than the target node of the first message;
in response to determining the second potential communication bottleneck associated with the target node of the second message,
providing a second warning message from the transport layer to the second application indicating a reduced amount of transmission resources available at the transport layer to cause the second application to reduce a rate of communicating messages to the transport layer; and
obtaining subsequent messages at the transport layer from the second application at the reduced rate of message communication associated with the second warning message that is different that the reduced rate of message communication associated with the first warning message.
10. A network device, comprising:
a processor operable to execute a first application; and
a network interface device coupled with the processor, the network interface device operable to:
obtain a first message at a transport layer from the first application executing at the processor;
compare an amount of data stored in a first queue at the transport layer with a first threshold value;
determine at the transport layer a first potential communication bottleneck associated with a target node of the first message in response to determining the amount of data stored in the first queue at the transport layer exceeds the first threshold value;
in response to determining the first potential communication bottleneck,
provide a first warning message from the transport layer to the first application to cause the first application to reduce a rate of communicating messages to the transport layer by a first predefined amount, wherein the first predefined amount is associated with the first threshold value;
transmit the first message to the target node via a network external to the network device; and
obtain subsequent messages at the transport layer from the first application at the reduced rate of message communication determined based on the first warning message;
determine at the transport layer a second potential communication bottleneck associated with the target node based on a comparison of the amount of data stored at the first queue with a second threshold value, the second threshold value different from the first threshold value;
in response to determining the second potential communication bottleneck,
provide a second warning message from the transport layer to the first application to cause the first application to reduce the rate of communicating messages to the transport layer by a second predefined amount, wherein the second predefined amount is associated with the second threshold value, and the second predefined amount is different from the first predefined amount; and
obtain subsequent messages at the transport layer from the first application at the reduced rate of message communication determined based on the second warning message.
14. A network device comprising:
a processor operable to execute a first application and a second application; and
a network interface device coupled with the processor, the network interface device operable to:
obtain a first message at a transport layer from a first application being executed at the processor;
compare an amount of data stored in a first queue at the transport layer with a first threshold value;
determine at the transport layer a first potential communication bottleneck associated with a target node of the first message in response to determining the amount of data stored in the first queue at the transport layer exceeds the first threshold value;
in response to determining the first potential communication bottleneck associated with the target node of the first message,
provide a first warning message from the transport layer to the first application indicating a reduced amount of transmission resources available at the transport layer to cause the first application to reduce a rate of communicating messages to the transport layer;
obtain subsequent messages at the transport layer from the first application at the reduced rate of message communication determined based on the first warning message;
obtain a second message at the transport layer from a second application being executed at the processor;
determine at the transport layer a second potential communication bottleneck associated with a target node of the second message, the target node of the second message different than the target node of the first message;
in response to determining the second potential communication bottleneck associated with the target node of the second message,
provide a second warning message from the transport layer to the second application indicating a reduced amount of transmission resources available at the transport layer to cause the second application to reduce a rate of communicating messages to the transport layer; and
obtain subsequent messages at the transport layer from the second application at the reduced rate of message communication associated with the second warning message that is different that the reduced rate of message communication associated with the first warning message.
2. The method of
determining the first threshold value based on a request from the first application.
3. The method of
determining the first threshold value based on a request from the target node.
4. The method of
5. The method of
6. The method of
8. The method of
comparing an amount of data stored in a second queue at the transport layer with a second threshold value; and
determining the second potential communication bottleneck in response to determining the amount of data stored in the second queue at the transport layer exceeds the second threshold value.
9. The method of
11. The network device of
determine the first threshold value based on a request from the first application.
12. The network device of
determine the first threshold value based on a request from the target node.
13. The network device of
16. The network device of
compare the amount of data stored in the first queue at the transport layer with at least a first backlog threshold and a second backlog threshold in response to obtaining the first message;
determine at the transport layer the potential communication bottleneck in response to determining the amount of data stored in the first queue at the transport layer exceeds at least one of the first backlog threshold and the second backlog threshold;
in response to determining the amount of data stored in the first queue at the transport layer exceeds the first backlog threshold,
select a first type of warning message from the plurality of types of warning messages;
provide the first type of warning message from the transport layer to the first application to cause the first application to begin communicating messages to the transport layer at a first reduced rate of message communication; and
in response to determining the amount of data stored in the first queue at the transport layer exceeds the first and second backlog thresholds,
select a second type of warning message from the plurality of types of warning messages; and
provide the second type of warning message from the transport layer to the first application to cause the first application to begin communicating messages to the transport layer at a second reduced rate of message communication that is less than the first reduced rate of message communication.
17. The network device of
determine the plurality of backlog thresholds based on a request from the first application.
18. The network device of
determine the plurality of backlog thresholds based on a request from the target node.
20. The method of
comparing the amount of data stored in the first queue at the transport layer with at least a first backlog threshold and a second backlog threshold in response to obtaining the first message;
determining at the transport layer the potential communication bottleneck in response to determining the amount of data stored in the first queue at the transport layer exceeds at least one of the first backlog threshold and the second backlog threshold;
in response to determining the amount of data stored in the first queue at the transport layer exceeds the first backlog threshold,
selecting a first type of warning message from the plurality of types of warning messages;
providing the first type of warning message from the transport layer to the first application to cause the first application to begin communicating messages to the transport layer at a first reduced rate of message communication; and
in response to determining the amount of data stored in the first queue at the transport layer exceeds the first and second backlog thresholds,
selecting a second type of warning message from the plurality of types of warning messages; and
providing the second type of warning message from the transport layer to the first application to cause the first application to begin communicating messages to the transport layer at a second reduced rate of message communication that is less than the first reduced rate of message communication.
22. The non-transitory computer readable storage media of
comparing the amount of data stored in the first queue at the transport layer with at least a first backlog threshold and a second backlog threshold in response to obtaining the first message;
determining at the transport layer the potential communication bottleneck in response to determining the amount of data stored in the first queue at the transport layer exceeds at least one of the first backlog threshold and the second backlog threshold;
in response to determining the amount of data stored in the first queue at the transport layer exceeds the first backlog threshold,
selecting a first type of warning message from the plurality of types of warning messages;
providing the first type of warning message from the transport layer to the first application to cause the first application to begin communicating messages to the transport layer at a first reduced rate of message communication; and
in response to determining the amount of data stored in the first queue at the transport layer exceeds the first and second backlog thresholds,
selecting a second type of warning message from the plurality of types of warning messages; and
providing the second type of warning message from the transport layer to the first application to cause the first application to begin communicating messages to the transport layer at a second reduced rate of message communication that is less than the first reduced rate of message communication.
|
This application claims priority to U.S. Provisional Patent Application No. 61/021,890, entitled “Method For Exerting Back Pressure on Network Applications Via Predefined Transmission Backlog Thresholds” filed on Jan. 17, 2008, which is assigned to the current assignee hereof and is incorporated herein by reference in its entirety.
1. Field of the Disclosure
The present disclosure relates to network communication, and more particularly to management of communication flow between electronic devices.
2. Description of the Related Art
In network communication, such as communication between peers in a peer-to-peer network, an application at a source communication node sends messages to a destination node via a network layer. In one configuration, the application provides each message to a transport layer, which parses each message into a set of packets, and provides the packets to the network layer for communication to the destination node. The transport layer thus provides a layer of abstraction for the application, so that the application does not have to manage packet communications with the destination node.
However, the transport layer typically has a limited number of resources, such as memory resources, to prepare and communicate packets. This can become problematic when the messages are provided by the application much more quickly than packets can be reliably communicated by the transport layer. For example, if the transport layer is implementing an ordered communication protocol, such as TCP/IP, the transport layer typically stores a transmitted packet in a queue until an acknowledgement is received from the destination node indicating that the packet has been properly received at the destination node, thereby allowing the transport layer to retire the packet from the queue. The queue is typically limited in size, so that if the application provides messages such that packets cannot be retired quickly enough, a bottleneck can result, causing loss of packets or other communication problems. The bottleneck problem can be addressed by having the application set the rate of communications of messages at a fixed rate that is known to avoid bottleneck of the queue. However, this can result in underutilization of resources at the transport layer.
The present disclosure may be better understood, and its numerous features and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
A method of managing communication of messages via a network includes storing messages received from an application in a queue at a transport layer. The transport layer monitors the amount of information stored at the queue. When the amount of information exceeds a threshold amount, the transport layer provides a warning message to the application. In an embodiment, the transport layer provides the warning message before the queue assigned to store messages from the application is full, so that the application can continue to provide messages to the transport layer after the warning message. The application can take appropriate action in response to the message, such as reducing the amount or frequency of information provided at the transport layer, thereby reducing the likelihood of a communication bottleneck at the transport layer.
Referring to
Transmitting peer 102 includes an application 120 and a transport layer 125. The application 120 is a software application embodied on a computer readable medium including instructions to manipulate a processor in order to execute specified tasks. One such task includes creating messages for communication to receiving peer 115. In particular, in response to specified conditions, such as a user input, request from another application, or other condition, the application 120 can create one or more messages including one or more data payloads for communication to receiving peer 115. The application 120 provides the messages to the transport layer 125 for communication via the network 110.
The transport layer 125 is configured to receive messages from the application 120 and form packets based on the messages. The transport layer 125 then provides the packets to the network 110 for communication to the target node for each packet. In an embodiment, the transport layer 125 can provide each packet to another communication layer, such as a logical or physical communication layer, for provision to the network 110.
The transport layer 125 includes a transmit queue 130, which is configured to store each packet that has been provided to the network 110 for communication. The transport layer 125 awaits an acknowledgement message for each packet from the target node of each packet and, in response to receiving the acknowledgement message, retires the packet from the transmit queue 130. If the transport layer receives an warning message associated with a particular packet from the target node of that packet, the transport layer 125 can retransmit the packet. The transmit queue 130 thereby improves the reliability of communications with target nodes.
This can be better understood with reference to an example. The transport layer 125 can receive messages from application 120 targeted to receiving peer 115. In response, the transport layer 125 forms packets including the data payloads of the received messages. The transport layer provides each packet to the network 110 for communication to the receiving peer 115. In addition, the transport layer stores each packet at the transmit queue 130.
The receiving peer 115 monitors the network 110 for packets targeted to the peer. In response to receiving such a packet, the receiving peer stores the packet at a local queue (not shown). For each packet received, the receiving peer 115 sends an acknowledgement message to the source node via the network 110. The receiving peer can also monitor received packets to determine if an expected packet has not been received. For example, if packets are being communicated to the receiving peer 115 according to an ordered protocol, the transport layer at the receiving peer 115 can determine that an packet expected in the order has not been received. In response, the receiving peer 115 can communicate an warning message to indicate the expected packet has not been received.
The transport layer 125 receives the acknowledgment messages and warning messages provided by the receiving peer 115. In response to receiving an acknowledgment message, the transport layer 125 retires the packet associated with the acknowledgement message from the transmit queue 130, thereby freeing space in the queue. In response to receiving an warning message, the transport layer 125 retransmits the packet associated with the warning message.
The transport layer 125 includes a flow control module 135 that monitors the amount of unretired data that has been communicated to the receiving node 115. That is, the flow control module 135 monitors the amount of data associated with packets at the transmit queue 130. The amount of unretired data communicated to a target node is referred to for purposes of discussion as the “backlog” for the target node. The flow control module 130 compares the amount of backlog to a backlog threshold 131. If the amount of backlog exceeds the backlog threshold, the flow control module 130 can communicate an warning message to the application 120. In response to receiving the warning message, the application 120 can take appropriate action, such as throttling (e.g. reducing) the rate at which messages targeted to the receiving peer 115 are communicated to the transport layer. The flow control module 135 thereby reduces the likelihood of a communication bottleneck at the transport layer 125 or the receiving peer 115. As used herein, a communication bottleneck refers to a situation at the transport layer 125 where the layer is unable to communicate messages quickly enough so that layer resources, such as memory, reach a defined or programmable threshold.
The backlog threshold 131 indicates an amount of available resources, such as memory space, at the transport layer 125 or the receiving peer 115. In an embodiment, the backlog threshold 131 is set so that the flow control module communicates an warning message before the amount of available resources indicated by the threshold is exhausted. For example, the backlog threshold 131 can be set so that a warning message is communicated before the transmit queue 130 is full. This reduces the likelihood of a bottleneck at the queue. In particular, the transport layer can continue to receive messages from the application 120 after the warning message is communicated, as resources are still available to store the messages.
In one embodiment, the backlog threshold 131 can be a programmable value that is set based on a request from the application 120. In another embodiment, the backlog threshold 131 is set based on a request from the receiving peer 115. For example, during negotiation of a communication session, the receiving peer 115 can determine an amount of resources, such as memory, available for communications from the transmitting peer 102. Based on the amount of resources, the receiving peer 115 requests the backlog threshold be set to a value that reduces the likelihood of a communication bottleneck at the receiving peer 115.
Accordingly, as discussed above and further herein, the communication flow, such as the rate of messages being provided by the application 120, is managed or influenced at the transport layer 125. This allows for a reduced likelihood of communication bottleneck without the application 120 having to monitor communication overhead. This can provide for simplification of the application 120, as well as increased communication bandwidth. Further, this allows for a reduced use of memory resources and computer cycles for the application 120. For example, in response to an indication from the flow control module 135 that the threshold has been reached, the application 120, or a processor executing the application 120, can enter a low power mode for a defined amount of time, rather than continue to attempt to send messages via transport layer 125. The power consumption of peer 402 can thereby be reduced.
The operation of the communication network 100 can be better understood with reference to
In operation, applications 620 and 621 can establish independent communication sessions with receiving peers 615 and 616 respectively. In response, transport layer 625 assigns memory space for each connection to establish transmit queues 630 and 638, respectively, for the corresponding communication session. Thus, transmit queue 630 is associated with the communication session between application 620 and receiving peer 615, while transmit queue 638 is associated with the communication session between application 621 and receiving peer 616. The transport layer 625 also establishes backlog thresholds for each communication session, illustrated as backlog thresholds 631 and 632, respectively. Specifically, transport layer 625 establishes the backlog threshold 631 for the communication session between application 620 and receiving peer 615, while backlog threshold 632 is established for the communication session between application 621 and receiving peer 616.
The transport layer 625 receives messages from each of the applications 620 and 621 and stores each received message in the associated transmit queue. As the messages are retired (in response to an acknowledgement from the associated receiving peer), they are removed from the respective queue. When the number of stored messages at a transmit queue reaches the associated backlog threshold, the transport layer 625 provides a warning message to the associated application. Thus, in the illustrated embodiment of
It will be appreciated that the methods disclosed herein can be performed by a computer program stored on a computer readable medium that tangibly embodies the program. The computer program can include instructions to manipulate a processor to perform one or more of the methods described herein.
The above disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover all such modifications, enhancements, and other embodiments that fall within the true spirit and scope of the present invention. Thus, to the maximum extent allowed by law, the scope of the present invention is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description.
Beverly, Harlan T., Musta, Charles A.
Patent | Priority | Assignee | Title |
10111176, | Mar 14 2013 | T-Mobile USA, Inc. | High power channel state notification for mobile applications |
9565637, | Mar 14 2013 | T-Mobile USA, Inc | High power channel state notification for mobile applications |
Patent | Priority | Assignee | Title |
5892754, | Jun 07 1996 | NORTH CAROLINA, UNIVERSITY OF, AT CHAPEL HILL | User controlled adaptive flow control for packet networks |
6320846, | Aug 05 1997 | PACKET INTELLIGENCE LLC | Method and apparatus for controlling network bandwidth |
6490251, | Apr 14 1997 | RPX CLEARINGHOUSE LLC | Method and apparatus for communicating congestion information among different protocol layers between networks |
6851008, | Mar 06 2002 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Adaptive flow control method and apparatus |
6975876, | Nov 17 2000 | AT&T MOBILITY II LLC | System and method for performing throttle control in a SMPP gateway |
20030236827, | |||
20040205231, | |||
20040218617, | |||
20050021804, | |||
20050120090, | |||
20060248582, | |||
20070025255, | |||
20070223379, | |||
20080181108, | |||
WO13442, | |||
WO2007091941, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jan 16 2009 | Qualcomm Incorporated | (assignment on the face of the patent) | / | |||
Jan 16 2009 | BEVERLY, HARLAN T | BIGFOOT NETWORKS, INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 022124 | /0871 | |
Jan 16 2009 | MUSTA, CHARLES A | BIGFOOT NETWORKS, INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 022124 | /0871 | |
Aug 31 2011 | BIGFOOT NETWORKS, INC | Qualcomm Atheros, Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026990 | /0280 | |
Oct 22 2012 | Qualcomm Atheros, Inc | Qualcomm Incorporated | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 029503 | /0936 |
Date | Maintenance Fee Events |
Oct 28 2013 | ASPN: Payor Number Assigned. |
Apr 26 2017 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jul 12 2021 | REM: Maintenance Fee Reminder Mailed. |
Dec 27 2021 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Nov 19 2016 | 4 years fee payment window open |
May 19 2017 | 6 months grace period start (w surcharge) |
Nov 19 2017 | patent expiry (for year 4) |
Nov 19 2019 | 2 years to revive unintentionally abandoned end. (for year 4) |
Nov 19 2020 | 8 years fee payment window open |
May 19 2021 | 6 months grace period start (w surcharge) |
Nov 19 2021 | patent expiry (for year 8) |
Nov 19 2023 | 2 years to revive unintentionally abandoned end. (for year 8) |
Nov 19 2024 | 12 years fee payment window open |
May 19 2025 | 6 months grace period start (w surcharge) |
Nov 19 2025 | patent expiry (for year 12) |
Nov 19 2027 | 2 years to revive unintentionally abandoned end. (for year 12) |