Data packet processing apparatus and data packet processing method

By introducing a bandwidth regulator into the packet processing device and utilizing congestion detection and progressive bandwidth adjustment, the problems of low efficiency and instability of network bandwidth regulators during network congestion are solved, achieving more stable and efficient network transmission.

CN117675707BActive Publication Date: 2026-11-24REALTEK SEMICON CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211014444.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2026-11-24
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

Existing network bandwidth regulators suffer from low efficiency, instability, and buffer bloat when addressing network congestion.

Method used

By introducing a bandwidth regulator into the packet processing device, the congestion detection module detects the congestion status, and the bandwidth allocation module performs progressive constraint and relaxation processing to dynamically adjust the bandwidth of different packet streams in order to prioritize the processing of high-priority packet streams.

Benefits of technology

It effectively solves network congestion, improves the stability and efficiency of network transmission, avoids buffer bloat, and provides a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117675707B_ABST
    Figure CN117675707B_ABST
Patent Text Reader

Abstract

A packet processing apparatus includes a first inbound port, a second inbound port, a first outbound port, a second outbound port, and a bandwidth regulator. A first packet stream and a second packet stream conform to a first protocol, and a third packet stream and a fourth packet stream conform to a second protocol, with the first protocol having lower priority than the second protocol. The first packet stream and the third packet stream are transmitted from the first inbound port to the first outbound port, and the second packet stream and the fourth packet stream are transmitted from the second inbound port to the second outbound port. When the packet processing apparatus is in a congested state, the bandwidth regulator performs a first constraint processing on the first packet stream at the first inbound port, and performs a second constraint processing on the second packet stream at the second outbound port or on the third packet stream at the first inbound port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to a data packet processing technique. More particularly, it relates to a data packet processing apparatus and a data packet processing method. Background Technology

[0002] With the development of technology, various network technologies have been developed. However, when the network is excessively congested, users will have a poor experience. Current practices utilize network bandwidth regulators to address this problem. However, existing network bandwidth regulators still have some shortcomings that need improvement. Summary of the Invention

[0003] Some embodiments of this disclosure relate to a packet processing apparatus. The packet processing apparatus includes a first inbound port, a second inbound port, a first outbound port, a second outbound port, and a bandwidth regulator. A first packet stream and a second packet stream conform to a first protocol, and a third packet stream and a fourth packet stream conform to a second protocol, with the first protocol having lower priority than the second protocol. The first packet stream and the third packet stream are transmitted from the first inbound port to the first outbound port, and the second packet stream and the fourth packet stream are transmitted from the second inbound port to the second outbound port. When the packet processing apparatus is in a congested state, the bandwidth regulator performs a first constraint processing on the first packet stream at the first inbound port, and performs a second constraint processing on the second packet stream at the second outbound port or on the third packet stream at the first inbound port.

[0004] Some embodiments of this disclosure relate to a packet processing method. The packet processing method is applied to a packet processing apparatus. The packet processing apparatus includes a first inbound port, a second inbound port, a first outbound port, and a second outbound port. A first packet stream and a second packet stream conform to a first protocol, and a third packet stream and a fourth packet stream conform to a second protocol, with the first protocol having lower priority than the second protocol. The first packet stream and the third packet stream are transmitted from the first inbound port to the first outbound port, and the second packet stream and the fourth packet stream are transmitted from the second inbound port to the second outbound port. The packet processing method includes the following operations: when the packet processing apparatus is in a congested state, a bandwidth regulator in the packet processing apparatus performs a first constraint processing on the first packet stream at the first inbound port; and the bandwidth regulator performs a second constraint processing on the second packet stream at the second outbound port or on the third packet stream at the first inbound port. Attached Figure Description

[0005] To make the above and other objects, features, advantages and embodiments of this disclosure more apparent and understandable, the accompanying drawings are described below:

[0006] Figure 1These are schematic diagrams of a data packet processing apparatus illustrated according to some embodiments of the present disclosure; and

[0007] Figure 2 This is a flowchart illustrating a data packet processing method according to some embodiments of the present disclosure. Detailed Implementation

[0008] The term "coupled" as used in this article can also refer to "electrical coupling," and the term "connection" can also refer to "electrical connection." "Coupled" and "connection" can also refer to the cooperation or interaction of two or more components.

[0009] refer to Figure 1 . Figure 1 This is a schematic diagram illustrating a packet processing apparatus 100 according to some embodiments of the present disclosure. The packet processing apparatus 100 may be a router or a switch, or may be included in a router or switch. The packet processing apparatus 100 can be used to solve network congestion problems.

[0010] by Figure 1 For example, packet processing device 100 includes ingress port IP1, ingress port IP2, egress port EP1, egress port EP2, and bandwidth conditioner 110.

[0011] In this example, the inbound port IP1 coupled to the server S is a wide area network (WAN) port, and the outbound port EP1 coupled to the client C is a local area network (LAN) port. Data packet streams F1 and F3 from the server S can be sequentially transmitted to the client C via inbound port IP1, bandwidth regulator 110, and outbound port EP1. Inbound port IP2 coupled to the client C is a LAN port, and outbound port EP2 coupled to the server S is a wide area network (WAN) port. Data packet streams F2 and F4 from the client C can be sequentially transmitted to the server S via inbound port IP2, bandwidth regulator 110, and outbound port EP2. However, this disclosure is not limited to the above.

[0012] In some embodiments, data packet streams F1 and F2 conform to a first protocol, and data packet streams F3 and F4 conform to a second protocol, with the first protocol having lower priority than the second protocol. In this example, data packet streams F1 and F2 conform to the File Transfer Protocol (FTP), and data packet streams F3 and F4 conform to the Voice over Internet Protocol (VoIP), with the File Transfer Protocol having lower priority than VoIP. Both the File Transfer Protocol and the VoIP are response-based protocols. In a response-based protocol architecture, client C can send a request to server S. For a valid request, server S will send a reply to client C. However, this disclosure is not limited to the File Transfer Protocol and the VoIP. For example, the Hypertext Transfer Protocol (HTTP) is also a response-based protocol.

[0013] by Figure 1 For example, the bandwidth regulator 110 includes a congestion detection module 111, a bandwidth allocation module 112, a coordination detection module 113, and a bandwidth allocation module 114. In some embodiments, the bandwidth regulator 110 may be implemented using hardware circuitry (e.g., a processor) in conjunction with software programs (stored in memory). For example, the processor may execute program code in memory to perform the functions of the congestion detection module 111, the bandwidth allocation module 112, the coordination detection module 113, and the bandwidth allocation module 114.

[0014] In this example, the congestion detection module 111 can perform bandwidth detection on the inbound port IP1. The inbound port IP1 can correspond to either a congested state or a smooth state.

[0015] In some embodiments, when the congestion detection module 111 determines that the average bandwidth of N (N is a positive integer) data packet streams F1 and F3 is greater than the bandwidth threshold, the inbound port IP1 enters a congested state. Conversely, when the congestion detection module 111 determines that the average bandwidth of M (M is a positive integer, M can be the same as or different from N) data packet streams F1 and F3 is equal to or less than the bandwidth threshold, the inbound port IP1 enters a non-congested state.

[0016] In some embodiments, when the congestion detection module 111 determines that the average bandwidth of data packet streams F1 and F3 within a time period is greater than the bandwidth threshold, the inbound port IP1 enters a congested state. Conversely, when the congestion detection module 111 determines that the average bandwidth of data packet streams F1 and F3 within a time period is equal to or less than the bandwidth threshold, the inbound port IP1 enters a non-congested state.

[0017] When the congestion detection module 111 determines that the inbound port IP1 has entered a congested state, the bandwidth allocation module 112 may begin a constraint process. This constraint process, as referred to hereafter, may be implemented by dropping packets or temporarily storing packets in a queue, but this disclosure is not limited to these actions.

[0018] For example, the bandwidth allocation module 112 may first perform a first constraint process on the inbound port IP1 for the packet flow F1 with lower priority.

[0019] After the first constraint processing is completed, the consistency detection module 113 can determine the consistency of the first constraint processing. The term "consistency" here reflects the constraint result. For example, when the difference between the actual bandwidth after constraint processing and the target bandwidth is greater than a threshold, it indicates that the constraint processing has low consistency (the constraint result is poor). When the difference between the actual bandwidth after constraint processing and the target bandwidth is equal to or less than this threshold, it indicates that the constraint processing has high consistency (the constraint result is good). This difference can also be called the steady-state error.

[0020] When the coordination degree detection module 113 determines that the first constraint processing is of low coordination degree, the coordination degree detection module 113 will notify the bandwidth allocation module 114. Then, the bandwidth allocation module 114 can perform the second constraint processing on the outbound port EP2 for the data packet flow F2, which also has a low priority.

[0021] In this example, data packet streams F1 and F2 are File Transfer Protocol (FTP) protocols, and FTP is a response-based protocol. That is, data packet stream F1 can be a response in FTP, while data packet stream F2 can be a request in FTP. In other words, the first constraint process can constrain the FTP traffic related to responses, while the aforementioned second constraint process can constrain the FTP traffic related to requests.

[0022] After the second constraint processing, if the inbound port IP1 is still congested, the bandwidth allocation module 112 can perform the third constraint processing on the inbound port IP1 for the data packet flow F3 with higher priority.

[0023] After the third constraint processing, if the coordination degree detection module 113 determines that the third constraint processing results in low coordination degree, the coordination degree detection module 113 will notify the bandwidth allocation module 114 again. Then, the bandwidth allocation module 114 can perform the fourth constraint processing on the data packet flow F4, which also has a higher priority, at the outbound port EP2.

[0024] In this example, data packet streams F3 and F4 are Voice over Internet Protocol (VIP) protocols, and VIP is a response-based protocol. That is, data packet stream F3 can be a response in VIP, and data packet stream F4 can be a request in VIP. In other words, the third constraint process can constrain the traffic related to responses in VIP, and the aforementioned fourth constraint process can constrain the traffic related to requests in VIP.

[0025] In some embodiments, these constraint processes can be adjusted gradually. For example, data packet flows F1-F4 each have a corresponding lower bandwidth limit. The first constraint process involves the bandwidth allocation module 112 gradually reducing the bandwidth of data packet flow F1 at the inbound port IP1 by a certain proportion until the bandwidth of data packet flow F1 drops to its lower bandwidth limit. Then, the bandwidth allocation module 114 begins the next constraint process. The second, third, and fourth constraint processes have similar working principles and will not be described in detail here. The aforementioned proportions are positive numbers less than 1 and can be preset or dynamically adjustable.

[0026] However, when the congestion detection module 111 determines that the inbound port IP1 has entered a non-congested state, the bandwidth allocation modules 112 and 114 can begin the relaxation process. This "relaxation process," as referred to hereafter, can be achieved by not performing the aforementioned constraint processing. That is, packets are not dropped or temporarily stored in a queue, but this disclosure is not limited to these actions.

[0027] The order of the relaxation processing can be the reverse of the order of the aforementioned constraint processing. For example, the bandwidth allocation module 114 can first perform a first relaxation processing on packet flow F4 at the outbound port EP2. Then, the bandwidth allocation module 112 can perform a second relaxation processing on packet flow F3 at the inbound port IP1. Next, the bandwidth allocation module 114 can perform a third relaxation processing on packet flow F2 at the outbound port EP2. Then, the bandwidth allocation module 112 can perform a fourth relaxation processing on packet flow F1 at the inbound port IP1.

[0028] In some embodiments, these relaxation processes can also be progressively adjusted. For example, data packet streams F1-F4 each have a corresponding bandwidth limit. The first relaxation process involves the bandwidth allocation module 114 progressively increasing the bandwidth of data packet stream F4 at the outbound port EP2 at a certain ratio until the bandwidth of data packet stream F4 reaches its bandwidth limit. Then, the bandwidth allocation module 112 begins the next relaxation process. The second, third, and fourth relaxation processes have similar operating principles and will not be described in detail here. The aforementioned ratio is greater than 1 and can be preset or dynamically adjustable.

[0029] By employing these constraint and relaxation measures, the bandwidth of the packet processing device 100 can be appropriately adjusted to resolve network congestion issues.

[0030] It should be noted that the congestion detection module 111, bandwidth allocation module 112, coordination detection module 113, and bandwidth allocation module 114 are... Figure 1 The positions and coupling relationships described above are for convenience in describing the embodiments only and are not intended to limit this disclosure.

[0031] The above embodiment first constrains the two transmission directions (from server S to user C, and from user C to server S) of data packet flows F1 and F2, which have lower priority. After constraining data packet flows F1 and F2, constraints are then applied to the two directions of data packet flows F3 and F4, which have higher priority.

[0032] However, in some other embodiments, constraints are first applied to data packet streams F1 and F3 with different priorities in the same transmission direction (from server S to user C). After constraining data packet streams F1 and F3, constraints are then applied to data packet streams F2 and F4 with different priorities in another transmission direction (from user C to server S).

[0033] For example, after bandwidth allocation module 112 performs a first constraint on the low-priority data packet flow F1 at inbound port IP1, bandwidth allocation module 112 can perform a second constraint on the high-priority data packet flow F3 at inbound port IP1. After the second constraint, bandwidth allocation module 114 performs a third constraint on the low-priority data packet flow F2 at outbound port EP2. After the third constraint, bandwidth allocation module 114 performs a fourth constraint on the high-priority data packet flow F4 at outbound port EP2.

[0034] Similarly, when the congestion detection module 111 determines that the inbound port IP1 has entered a non-congested state, the bandwidth allocation modules 112 and 114 can begin to perform relaxation processing. The order of relaxation processing can be the reverse of the order of the aforementioned constraint processing. For example, the bandwidth allocation module 114 performs a first relaxation process on the outbound port EP2 for packet flow F4. Then, the bandwidth allocation module 114 performs a second relaxation process on the outbound port EP2 for packet flow F2. Next, the bandwidth allocation module 112 can perform a third relaxation process on the inbound port IP1 for packet flow F3. Then, the bandwidth allocation module 112 performs a fourth relaxation process on the inbound port IP1 for packet flow F1.

[0035] In some embodiments, these constraint processing and relaxation processing described above may be progressive adjustments. Details of "progressive adjustments" have been described in the foregoing embodiments and will not be repeated here.

[0036] Although in the above embodiments, the congestion detection module 111, bandwidth allocation module 112, and coordination detection module 113 operate on the inbound port IP1, and the bandwidth allocation module 114 operates on the outbound port EP2, in some other embodiments, the congestion detection module 111, bandwidth allocation module 112, and coordination detection module 113 may operate on the inbound port IP2, while the bandwidth allocation module 114 may operate on the outbound port EP1.

[0037] In addition, although Figure 1 In this example, outbound port EP1 receives only a packet stream from one inbound port (e.g., inbound port IP1). In some other embodiments, outbound port EP1 may receive packet streams from multiple inbound ports. In these embodiments, the bandwidth allocation module 114 may also allocate bandwidth to these inbound ports.

[0038] In some embodiments, the bandwidth allocation module 112 can simultaneously constrain both the lower-priority packet flow F1 and the higher-priority packet flow F3 at the inbound port IP1. Then, the bandwidth allocation module 114 simultaneously constrains both the lower-priority packet flow F2 and the higher-priority packet flow F4 at the outbound port EP2. However, in these embodiments, a constraint weight mechanism can be used. A higher constraint weight results in a stronger constraint, while a lower constraint weight results in a weaker constraint. For example, the bandwidth allocation module 112 can use a first constraint weight to constrain the lower-priority packet flow F1 at the inbound port IP1, and simultaneously use a second constraint weight smaller than the first constraint weight to constrain the higher-priority packet flow F3 at the inbound port IP1. Similarly, the bandwidth allocation module 114 can use a third constraint weight to constrain the data packet flow F2 with lower priority at the outbound port EP2, and at the same time use a fourth constraint weight, which is less than the third constraint weight, to constrain the data packet flow F4 with higher priority at the outbound port EP2.

[0039] In some related technologies, bandwidth may be monopolized by a specific data packet stream, or the packet processing device may drop packets randomly, making network transmission unstable. Additionally, in some related technologies, queue capacity is set too large, leading to buffer bloat.

[0040] Compared to the aforementioned related technologies, this disclosure can detect the congestion state of the packet processing apparatus 100 and dynamically constrain or relax different packet streams to control bandwidth more efficiently. In some embodiments, a gradual approach to constraining or relaxing bandwidth can avoid drastic bandwidth changes, thereby achieving a better user experience.

[0041] refer to Figure 2 . Figure 2 This is a flowchart illustrating a data packet processing method 200 according to some embodiments of the present disclosure. Figure 2 For example, packet processing method 200 includes operation S210 and operation S220.

[0042] In some embodiments, the packet processing method 200 can be applied to Figure 1 The data packet processing device 100 is described herein, but this disclosure is not limited thereto. For ease of understanding, the following will be used in conjunction with... Figure 1 The packet processing apparatus 100 describes the packet processing method 200.

[0043] In operation S210, when the packet processing device 100 is in a congested state, the bandwidth regulator 110 performs a first constraint processing on the packet flow F1 at the inbound port IP1. In some embodiments, the inbound port IP1 is a wide area network port, but this disclosure is not limited thereto.

[0044] In operation S220, the bandwidth conditioner 110 performs a second constraint process on the outbound port EP2 for packet flow F2 or on the inbound port IP1 for packet flow F3. In some embodiments, the outbound port EP2 is also a WAN port.

[0045] Other details regarding the packet processing method 200 can be found in the foregoing embodiments and will not be repeated here.

[0046] In summary, this disclosure can detect the congestion status of a packet processing device and dynamically constrain or relax different packet streams to control bandwidth more efficiently.

[0047] Although this disclosure has been described above with reference to embodiments, it is not intended to limit this disclosure. Any person skilled in the art may make various modifications and refinements without departing from the spirit and scope of this disclosure. Therefore, the scope of protection of this disclosure shall be determined by the scope defined in the appended claims.

[0048] Explanation of reference numerals in the attached figures:

[0049] 100: Data packet processing device

[0050] 110: Bandwidth regulator

[0051] 111: Congestion Detection Module

[0052] 112, 114: Bandwidth allocation module

[0053] 113: Coordination Detection Module

[0054] 200: Data Packet Processing Method

[0055] IP1, IP2: Inbound ports

[0056] EP1, EP2: Outbound ports

[0057] F1, F2, F3, F4: Data packet stream

[0058] S: Server side

[0059] C: User end

[0060] S210, S220: Operation

Claims

1. A data packet processing apparatus, comprising: First inbound port; Second inbound port; First exit port; The second outbound port, wherein the first data packet stream and the second data packet stream conform to the first protocol, the third data packet stream and the fourth data packet stream conform to the second protocol, and the first protocol has a lower priority than the second protocol, wherein the first data packet stream and the third data packet stream are transmitted from the first inbound port to the first outbound port, and the second data packet stream and the fourth data packet stream are transmitted from the second inbound port to the second outbound port; as well as A bandwidth regulator, wherein when the packet processing device is in a congested state, the bandwidth regulator performs a first constraint processing on the first packet stream at the first inbound port, and performs a second constraint processing on the second packet stream at the second outbound port or on the third packet stream at the first inbound port. After the first constraint processing, the bandwidth regulator performs the second constraint processing on the second outbound port for the second data packet stream. After the first constraint processing, when the difference between the first actual result bandwidth and the first target bandwidth is greater than the first difference threshold, the bandwidth regulator performs the second constraint processing on the second data packet stream at the second outbound port. If the packet processing device remains in a congested state after the second constraint processing, the bandwidth regulator performs a third constraint processing on the third packet flow at the first inbound port. When the difference between the second actual result bandwidth and the second target bandwidth of the third constraint processing is greater than the second difference threshold, the bandwidth regulator performs the fourth constraint processing on the fourth data packet stream at the second outbound port. When the packet processing device is in a non-congested state, the bandwidth regulator performs a first relaxation process on the fourth packet stream at the second outbound port. Following the first relaxation process, the bandwidth regulator performs a second relaxation process on the third data packet stream at the first inbound port. Following the second relaxation process, the bandwidth regulator performs a third relaxation process on the second outbound port for the second data packet stream. After the third relaxation process, the bandwidth regulator performs a fourth relaxation process on the first inbound port for the first data packet stream.

2. The packet processing apparatus as claimed in claim 1, wherein when the bandwidth regulator determines that the average bandwidth of the first packet stream and the third packet stream N times is greater than a bandwidth threshold, the packet processing apparatus enters the congestion state, where N is a positive integer. When the bandwidth regulator determines that the average bandwidth of the first data packet stream and the third data packet stream M times is equal to or less than the bandwidth threshold, the data packet processing device enters the non-congestion state, where M is a positive integer.

3. The packet processing apparatus of claim 1, wherein when the bandwidth regulator determines that the average bandwidth of the first packet stream and the third packet stream over a time period is greater than a bandwidth threshold, the packet processing apparatus enters the congestion state. When the bandwidth regulator determines that the average bandwidth of the first data packet stream and the third data packet stream during the time period is equal to or less than the bandwidth threshold, the data packet processing device enters the non-congestion state.

4. The packet processing apparatus of claim 1, wherein when the bandwidth regulator performs the first relaxation process, the bandwidth regulator progressively increases the bandwidth of the fourth packet stream at the second outbound port, wherein the bandwidth regulator performs the second relaxation process until the bandwidth of the fourth packet stream is the upper limit of bandwidth; wherein when the bandwidth regulator performs the first constraint process, the bandwidth regulator progressively decreases the bandwidth of the first packet stream at the first inbound port, wherein the bandwidth regulator performs the second constraint process until the bandwidth of the first packet stream is the lower limit of bandwidth.

5. The packet processing apparatus of claim 1, wherein after the first constraint processing, the bandwidth regulator performs the second constraint processing on the third packet stream at the first inbound port. Following the second constraint processing, the bandwidth regulator performs a third constraint processing on the second outbound port for the second data packet stream. After the third constraint processing, the bandwidth regulator performs the fourth constraint processing on the fourth data packet stream at the second outbound port.

6. The packet processing apparatus of claim 1, wherein the bandwidth regulator performs the first constraint processing on the first packet stream at the first inbound port using a constraint weighting mechanism and simultaneously performs the second constraint processing on the third packet stream at the first inbound port.

7. A data packet processing method applied to a data packet processing apparatus, wherein the data packet processing apparatus includes a first inbound port, a second inbound port, a first outbound port, and a second outbound port, wherein a first data packet stream and a second data packet stream conform to a first protocol, and a third data packet stream and a fourth data packet stream conform to a second protocol, and the first protocol has a lower priority than the second protocol, wherein the first data packet stream and the third data packet stream are transmitted from the first inbound port to the first outbound port, and the second data packet stream and the fourth data packet stream are transmitted from the second inbound port to the second outbound port, wherein the data packet processing method includes: When the packet processing device is in a congested state, the bandwidth regulator in the packet processing device performs a first constraint processing on the first packet flow at the first inbound port; as well as The bandwidth conditioner performs a second constraint on the second data packet stream at the second outbound port or on the third data packet stream at the first inbound port. After the first constraint processing, the bandwidth regulator performs the second constraint processing on the second outbound port for the second data packet stream. After the first constraint processing, when the difference between the first actual result bandwidth and the first target bandwidth is greater than the first difference threshold, the bandwidth regulator performs the second constraint processing on the second data packet stream at the second outbound port. If the packet processing device remains in a congested state after the second constraint processing, the bandwidth regulator performs a third constraint processing on the third packet flow at the first inbound port. When the difference between the second actual result bandwidth and the second target bandwidth of the third constraint processing is greater than the second difference threshold, the bandwidth regulator performs the fourth constraint processing on the fourth data packet stream at the second outbound port. When the packet processing device is in a non-congested state, the bandwidth regulator performs a first relaxation process on the fourth packet stream at the second outbound port. Following the first relaxation process, the bandwidth regulator performs a second relaxation process on the third data packet stream at the first inbound port. Following the second relaxation process, the bandwidth regulator performs a third relaxation process on the second outbound port for the second data packet stream. After the third relaxation process, the bandwidth regulator performs a fourth relaxation process on the first inbound port for the first data packet stream.

Citation Information

Patent Citations

  • Network flow control system and network flow control method

    CN102946360A

  • Message processing method and device

    CN111108728A

  • Flow control technologies

    US20210320866A1