[go: up one dir, main page]

WO2022121079A1 - Link aggregation method for traffic forwarding device and traffic forwarding device - Google Patents

Link aggregation method for traffic forwarding device and traffic forwarding device Download PDF

Info

Publication number
WO2022121079A1
WO2022121079A1 PCT/CN2021/071099 CN2021071099W WO2022121079A1 WO 2022121079 A1 WO2022121079 A1 WO 2022121079A1 CN 2021071099 W CN2021071099 W CN 2021071099W WO 2022121079 A1 WO2022121079 A1 WO 2022121079A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
flow rate
current
links
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/071099
Other languages
French (fr)
Chinese (zh)
Inventor
陈凯林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Publication of WO2022121079A1 publication Critical patent/WO2022121079A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to a link aggregation method of a traffic forwarding device and a traffic forwarding device.
  • packets can usually be distributed among multiple links according to the load balancing strategy, so that the load of each link can be effectively utilized and the waste of idle resources can be avoided.
  • the packets to be forwarded can be distributed to each link in turn by means of packet polling; the packets with the same hash characteristics can also be distributed according to the hash characteristics.
  • the message is forwarded to the same link.
  • this link aggregation technology based on load balancing usually has a premise that the communication quality of each link is equivalent.
  • this precondition is difficult to guarantee, resulting in poor link aggregation effect.
  • the purpose of the present application is to provide a link aggregation method of a traffic forwarding device and a traffic forwarding device, which can improve the effect of link aggregation.
  • an embodiment of the present application provides a link aggregation method for a traffic forwarding device, where the traffic forwarding device has at least two links to be selected, each of the links has its own priority, and the The method includes: calculating the historical packet flow rate of the packets forwarded by the traffic forwarding device to the at least two links in the current period, and predicting the packet flow rate corresponding to the next period based on the packet flow rate; The priority compares the packet flow rate with the limited bandwidth of each link in turn, and determines the traffic distribution ratio of each link in the next cycle according to the comparison result; in the next cycle, according to The traffic distribution ratio forwards packets to each of the links.
  • an embodiment of the present application further provides a traffic forwarding device, the traffic forwarding device includes a processor and a memory, and the memory is used to store a computer program, and when the computer program is executed by the processor, the The above link aggregation method.
  • multiple links to be selected may have respective priorities, and the priorities may represent the quality of link communication.
  • the traffic distribution ratio of each link in the next cycle can be determined. Since the comparison is performed according to the priority, packets with higher communication quality can be preferentially transmitted in the next cycle. In this way, when the packets of the next cycle are forwarded according to the traffic distribution ratio, the link with higher priority can provide sufficient data transmission resources, so that when dealing with the link with uneven communication quality, it can make full use of the High-quality resources for links with better communication quality, thereby improving the effect of link aggregation.
  • the packet flow rate is calculated in the following manner: identifying the duration of the current period, and counting the total amount of packets forwarded by the traffic forwarding device to the at least two links in the current period. ; Use the ratio of the total amount of the packets to the duration as the packet flow rate.
  • sequentially comparing the statistics of the packet flow rate with the limited bandwidth of each link according to the priority includes: sorting the links according to the priority, and sorting all the links according to the priority.
  • the packet flow rate is sequentially compared with the limited bandwidth of each of the links; for the current link in the comparison process, determine the redundant flow rate of the packet flow rate and the limit bandwidth of the current link. relationship, and according to the size relationship, it is judged whether it is necessary to compare with the limited bandwidth of the next link.
  • judging whether it is necessary to compare with the limited bandwidth of the next link according to the magnitude relationship includes: if the redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, stopping the comparison. process; if the redundant flow rate of the message flow rate is greater than the limited bandwidth of the current link, update the redundant flow rate of the message flow rate, and compare the updated redundant flow rate with the limited bandwidth of the next link. Compared.
  • the method further includes: if the updated redundant flow rate is less than or equal to the limited bandwidth of the next link, stopping the comparison process; if the updated redundant flow rate is greater than the next link The limited bandwidth of the link, the redundant flow rate of the packet flow rate is updated again, and the redundant flow rate updated again is compared with the limited bandwidth of the next link.
  • the comparison result is used to represent the deployment flow rate that each link undertakes from the packet flow rate; determining the traffic distribution ratio of each link in the next cycle according to the comparison result includes: The proportion of the provisioning flow rate corresponding to each link is used as the traffic distribution proportion of each link in the next cycle.
  • the deployment flow rate is determined in the following manner: for the current link in the comparison process, if the current redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, the current The redundant flow rate of the packet flow rate is used as the deployment flow rate of the current link; if the current redundant flow rate of the packet flow rate is greater than the limited bandwidth of the current link, the limited bandwidth of the current link is used as the current link. Describes the provisioning flow rate of the current link.
  • each of the links has its own token bucket; when forwarding packets to each of the links according to the traffic distribution ratio, the method further includes: when preparing to send the current packet When forwarding to the target link, determine whether the current number of tokens remaining in the token bucket of the target link is greater than or equal to the data volume of the current packet; if so, forward the current packet to the target link; if not, select a link from other links whose priority is lower than the target link, and forward the current packet to the selected link.
  • selecting a link among other links with a priority lower than the target link includes: searching for tokens in order of priority for other links with a priority lower than the target link The number of tokens currently remaining in the bucket is greater than or equal to the link of the data volume of the current packet, and the first link found is used as the selected link.
  • the method further includes: if a link that meets the requirements cannot be found after traversing each of the other links, forwarding the current packet to the link with the lowest priority.
  • the packets forwarded by the traffic forwarding device in the current period are classified according to the packet type, and each type of packet has its own priority; the method further includes: according to the priority of the packet Sort various types of packets, and after determining the traffic distribution ratio of the current type of packets in each of the links in the sorting result, then determine the next type of packets in the sorting result in each link. The proportion of traffic distribution in the link.
  • the packet flow rate when calculating the packet flow rate, according to the packet type, separately calculate the packet flow rate of the packets forwarded to the at least two links for various types of packets in the current cycle, so as to calculate the packet flow rate according to the separately calculated packet flow rate.
  • the packet flow rate of the forwarded packets determines the traffic distribution ratio of various types of packets in each of the links in the next period.
  • determining the traffic distribution ratio of various types of packets in each of the links in the next cycle includes: for the current type of packets, identifying the existence of the next cycle in each of the links. A link with redundant bandwidth, and by comparing the packet flow rate of the current type of packet with the identified redundant bandwidth of each link, to determine the next packet of the current type according to the comparison result. The proportion of traffic distribution in each of the links in the period.
  • FIG. 1 is a schematic diagram of a system for traffic forwarding in an embodiment of the present application
  • FIG. 2 is a schematic diagram of steps of a link aggregation method in an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a traffic forwarding device in an embodiment of the present application.
  • the present application provides a link aggregation method for a traffic forwarding device, where the traffic forwarding device may be a device responsible for packet forwarding under different network architectures.
  • the traffic forwarding device may be a switch in a layer-2 network architecture, or a routing device in a layer-3 network architecture.
  • the traffic forwarding device may have at least two links to be selected, and the at least two links may be responsible for transmitting data packets forwarded by the traffic forwarding device.
  • the client needs to send a data packet to the server, which needs to be relayed through a router.
  • the router may then be the above-mentioned traffic forwarding device.
  • the router can communicate with the server through two links, and the router can flexibly forward the data packets sent by the client to the two links according to the link aggregation method provided in this application, so as to pass the two links.
  • the link transmits data packets to the server.
  • multiple links to be selected may have different priorities, and the priorities may be set according to different service requirements.
  • the priorities may be It is determined based on the communication quality.
  • the priority can be determined based on cost calculation. Specifically, it can be determined by one or more of parameters such as packet loss rate, delay, cost, and bandwidth.
  • a combination of each link is used to characterize, and the specific determination method is not limited in this application, as long as the priority of each link can be determined. In this way, each link can have its own priority, wherein a higher priority can indicate a better adaptation to the requirements of a service scenario, for example, better communication quality.
  • the link aggregation method provided by an embodiment of the present application may include the following steps.
  • S1 Calculate the historical packet flow rate of the packets forwarded by the traffic forwarding device to the at least two links in the current period, and predict the packet flow rate corresponding to the next period based on the historical packet flow rate.
  • the link aggregation solution may be a dynamic process that is constantly adjusted.
  • the adjustment period can be preset, for example, it can be adjusted every 500ms.
  • the preset adjustment period can be stored in the traffic forwarding device, so that the traffic forwarding device can obtain the total amount of packets forwarded by the traffic forwarding device to these links in the current cycle according to the duration of the cycle, and based on the packets in the current cycle The total amount predicts the total amount of packets in the next cycle, and then determines the amount of packets that each link is responsible for in the next cycle according to the predicted total amount of packets.
  • the traffic forwarding device may count the total amount of packets forwarded to the at least two links in the current period.
  • the total amount of the packets can be represented by the total length of the packets.
  • the traffic forwarding device forwards a total of 10M packets to the above at least two links.
  • the traffic forwarding device can use the ratio of the total amount of packets to the duration as the packet flow rate of the current cycle. For example, if the current cycle is 500ms, and the traffic forwarding device forwards a total of 10M packets to the above at least two links, the packet flow rate in the current cycle can be 20Mbps.
  • the traffic forwarding device can predict the packet flow rate of the next period according to the packet flow rate of the current period.
  • the predicted packet flow rate of the next period is the same as the packet flow rate of the current period.
  • the calculation may be performed based on the predicted parameters and the message flow rate of the current cycle, so as to obtain the predicted value of the message flow of the next cycle.
  • the prediction parameter may be obtained based on the change trend of the flow rate of multiple historical periods, specifically, the change amount of the packet flow rate of the current period and the previous period (or multiple consecutive periods) of the current period may be calculated.
  • the packet flow rate of the current cycle is 20Mbps
  • the rate of change of the packet flow rate in each time period can be obtained by analyzing the historical traffic data, so that the predicted packet rate of the next period can be obtained based on the rate of change corresponding to the time period of the next period and the packet flow rate of the current period.
  • S3 Compare the packet flow rate with the limited bandwidth of each of the links in turn according to the priority, and determine the traffic distribution ratio of each of the links in the next cycle according to the comparison result.
  • each link may have a limited bandwidth, and the limited bandwidth may represent the highest packet flow rate when the link transmits packets.
  • the unit of the limited bandwidth may be the same as the unit of the packet flow rate calculated in step S1.
  • the limited bandwidth of the first link may be 15 Mbps
  • the limited bandwidth of the second link may be 10 Mbps.
  • the calculated packet flow rate may be sequentially compared with the limited bandwidth of each link according to the priority of the link. Specifically, in order to allow links with higher communication quality to allocate more traffic in the next cycle, the links can be sorted in order of priority from high to low, and then the packet flow rates can be sorted in order. Compare with the limited bandwidth of each link in turn.
  • the packet flow rate can be compared with the limited bandwidth of the link with the highest priority.
  • the packet flow rate is 20 Mbps
  • the limited bandwidth of link 1 with the highest priority is 15 Mbps.
  • the redundant flow rate of the packet flow rate may be 20 Mbps, wherein the redundant flow rate may represent the flow rate that is not allocated in the packet flow rate. It can be seen that the current redundant flow rate of the packet flow rate of 20 Mbps is greater than the limited bandwidth of link 1, which is 15 Mbps, which means that in the next cycle, the limited bandwidth of link 1 can be full, and the provisioning flow rate allocated to link 1 can be 15 Mbps. .
  • the redundant flow rate of the packet flow rate needs to be updated, and the updated redundant flow rate is only 5 Mbps.
  • the updated redundant flow rate can be compared with the limited bandwidth of link 2 with lower priority. It can be seen that the updated redundant flow rate is less than the limited bandwidth of link 2.
  • all the remaining redundant flow rates can be allocated to link 2 as the deployment flow rate, and the flow rate allocation can be completed, thereby stopping the comparison process.
  • the redundant flow rate of the current packet flow rate and the limited bandwidth of the current link can be determined. relationship, and according to the magnitude relationship, it can be judged whether it is necessary to compare with the limited bandwidth of the next link. For example, if the redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, all the redundant flow rates of the packet flow rate can be allocated to the current link, and the comparison process is stopped.
  • the redundant flow rate of the packet flow rate is greater than the limited bandwidth of the current link, after the corresponding provisioned flow rate is allocated to the current link, the redundant flow rate of the packet flow rate needs to be updated, and the updated redundant flow rate needs to be updated. Compare with the limited bandwidth of the next slightly lower priority link.
  • the updated redundant flow rate when comparing the updated redundant flow rate with the limit bandwidth of the next link, if the updated redundant flow rate is less than or equal to the limit bandwidth of the next link, then the updated redundant flow rate can be compared to the limit bandwidth of the next link. All are assigned to the next link and the comparison process is stopped. However, if the updated redundant flow rate is still greater than the limited bandwidth of the next link, after the provisioned flow rate is allocated to the next link, the redundant flow rate of the packet flow rate can be updated again, and the updated redundant flow rate can be updated again. The remaining flow rate is compared with the limited bandwidth of the next link. By analogy, until the redundant flow rate of the packet flow rate is allocated or all links are traversed. It is worth noting that if there are still redundant flow rates after traversing all the links, the traffic forwarding device can send a request for a new link to the management device, so that the management device can add a new link to the traffic forwarding device in time. road.
  • the current packet flow rate when determining the allocation flow rate of each link, for the current link in the comparison process, if the redundant flow rate of the current packet flow rate is less than or equal to the limited bandwidth of the current link, the current packet flow rate can be The redundant flow rate of the flow rate is all used as the deployment flow rate of the current link. However, if the redundant flow rate of the current packet flow rate is greater than the limited bandwidth of the current link, the limited bandwidth of the current link can be used as the provisioned flow rate of the current link, and the redundant flow rate of the packet flow rate can be updated for the following steps. a comparison.
  • the comparison result can be used to characterize the deployment flow rate assumed by each link from the packet flow rate.
  • the proportion of the allocated flow rate corresponding to each link can be used as the traffic distribution proportion of each link in the next cycle.
  • the above-mentioned deployment flow rate of link 1 is 15Mbps (that is, the limited bandwidth of link 1)
  • the deployment flow rate of link 2 is 5Mbps
  • the traffic distribution ratio of these two links in the next cycle can be 3:1.
  • the traffic forwarding device can forward packets according to the traffic distribution ratio in the next cycle. For example, if the traffic distribution ratio of link 1 and link 2 is 3:1, in every 4 packets, 3 packets can be forwarded to link 1, and the remaining 1 packet can be forwarded to link 1. The message is forwarded to link 2. It can be seen that during the process of forwarding packets, the traffic forwarding device can forward packets according to the proportion of traffic distribution, so as to ensure that all corresponding links can transmit packets, instead of concentrating packets on a certain link first. To a certain extent, the link with high priority can be prevented from being overloaded or congested.
  • the traffic forwarding device can mark the link ID of the corresponding link in the packet, so that the packets with the same link ID are all forwarded to the same corresponding link .
  • the traffic forwarding device may use the iptables technology to add the preset link identifier of the link in the packet, so as to forward the packet to the corresponding link according to the added preset link identifier.
  • the flow rate is allocated to each link in the order of priority, so that the link with better communication quality can be preferentially allocated to a sufficient flow rate, so that when packets are forwarded in the next cycle , the transmission resources of the link with better communication quality can be used preferentially to ensure the best link aggregation effect.
  • the traffic forwarding device forwards the received packets by referring to the traffic distribution ratio, so that the whole process of the forwarding cycle can be achieved. In each forwarding link, a corresponding proportion of the number of packets will be transmitted, which can avoid the phenomenon that some lines are overloaded while other lines are idle, thus ensuring the transmission rate of the packets.
  • a token bucket can be set for each link in advance based on the token bucket algorithm, and the token bucket can replenish tokens at a certain speed. Whenever a link needs to receive a packet, it can first try to obtain the number of tokens from the corresponding token bucket that matches the data volume of the packet. If the corresponding number of tokens can be obtained, it means that the link can Receive messages.
  • the token bucket can replenish tokens at the same rate as the link's limited bandwidth. That is to say, if the limited bandwidth of a link is 10 Mbps, the speed at which the token bucket of the link replenishes tokens can also be 10 Mbps.
  • the current packet when the current packet is to be forwarded to the target link, it can be determined whether the number of tokens currently remaining in the token bucket of the target link is greater than or equal to the data volume of the current packet. If so, the current packet can be forwarded to the target link. If not, a link may be selected from other links with a lower priority than the target link, and the current packet may be forwarded to the selected link.
  • a link when a link is reselected, it is still possible to search for a link that meets the requirements in other links in the order of priority from high to low. For other links with a priority lower than the target link, you can search for the link with the number of tokens remaining in the token bucket that is greater than or equal to the data volume of the current packet in the order of priority, and use the first link found. link as the selected link. For example, there are currently 5 links. When the second link is about to receive a packet, it finds that the data volume of the packet is greater than the number of tokens remaining in the token bucket of the second link. In this case, you can Find the link that meets the requirements from the third to fifth links with lower priority than the second link.
  • the link identifier of the packet can be changed to the fourth link. The link identifier of the link, so that the packet can be forwarded to the fourth link.
  • the link that meets the requirements can be re-searched according to the priority order of the links.
  • the traffic forwarded by the traffic forwarding device may have multiple types
  • different types of traffic may have different priorities themselves. For example, traffic such as games and voice may have a higher priority, while traffic such as text and links may have a slightly lower priority.
  • traffic such as games and voice may have a higher priority
  • traffic such as text and links may have a slightly lower priority.
  • various types of packets may be sorted in descending order of priority of the packets, and then, the various types of packets in the sorting result may be processed in order one by one. For example, according to the method in steps S1 to S5, first determine the traffic distribution ratio of the traffic with the highest priority in each link in the next cycle, and then determine the traffic with a slightly lower priority in each link in the next cycle.
  • the proportion of traffic distribution in the road that is to say, when determining the traffic distribution ratio, it is not determined by mixing all types of traffic together, but after determining the traffic distribution ratio of the current type of packets in each of the links in the sorting result. , and then determine the traffic distribution ratio of the packets of the next type in each of the links in the sorting result.
  • a link with redundant bandwidth in the next period can be identified in each link.
  • the redundant bandwidth of the link may refer to the idle bandwidth that has not been allocated to traffic in the next cycle.
  • the limited bandwidth of link 1 is 15 Mbps, of which 10 Mbps has been allocated to the traffic with the highest priority.
  • the redundant bandwidth of link 1 is only 5 Mbps.
  • by comparing the packet flow rate of the current type of packet with the identified redundant bandwidth of each link it can be determined according to the comparison result that the current type of packet will be sent to each link in the next cycle.
  • the proportion of traffic distribution in the road The specific comparison process can refer to the description in step S3.
  • the priority of the traffic is sorted according to ABC from high to low, and the priority of the links is from high to low. Low is sorted according to link 1 and link 2.
  • the packet flow rate of traffic A is 5 Mbps
  • the packet flow rate of traffic B is 8 Mbps
  • the packet flow rate of traffic C is 3 Mbps
  • the limited bandwidth of link 1 and link 2 is 10 Mbps.
  • the traffic A with the highest priority is compared first: since both links 1 and 2 have not yet allocated traffic, all 5Mbps of traffic A can be allocated to link 1, then link 1 has 5Mbps left unallocated, and link 2 10Mbps left unallocated.
  • the traffic B with the second priority since there is only 5 Mbps left on link 1, 5 Mbps of traffic B is allocated to link 1, and 3 Mbps is allocated to link 2, that is to say, traffic B should be based on 5:3 traffic
  • the distribution ratio is forwarded to link 1 and link 2. At this time, link 1 still has 0 Mbps unassigned, and link 2 has 7 Mbps unassigned.
  • the traffic C with the lowest priority is compared: Since only link 2 has 7 Mbps left unallocated, all 3 Mbps of traffic C should be sent to link 2.
  • the present application further provides a traffic forwarding device, the traffic forwarding device includes a processor and a memory, and the memory is used for storing a computer program, and when the computer program is executed by the processor, the above chain is implemented Road aggregation method.
  • the memory may include a physical device for storing information, usually after digitizing the information and storing it in a medium using electrical, magnetic or optical methods.
  • the memory can also include: a device that uses electrical energy to store information, such as a random access memory (Random Access Memory, RAM) or a read-only memory (Read-Only Memory, ROM), etc.; a device that uses magnetic energy to store information, such as Hard disk, floppy disk, magnetic tape, magnetic core memory, magnetic bubble memory or U disk; a device that uses optical means to store information, such as compact disc (CD) or digital versatile disc (Digital Versatile Disc, DVD).
  • RAM Random Access Memory
  • ROM read-only memory
  • the processor may be implemented in any suitable manner.
  • the processor may take the form of, for example, a microprocessor or a processor and a computer readable medium storing computer readable program code (eg software or firmware) executable by the (micro)processor, logic gates, switches, application specific integrated Circuit (Application Specific Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller form, etc.
  • computer readable program code eg software or firmware
  • multiple links to be selected may have respective priorities, and the priorities may represent the quality of link communication.
  • the traffic distribution ratio of each link in the next cycle can be determined. Since the comparison is performed according to the priority, packets with higher communication quality can be preferentially transmitted in the next cycle. In this way, when the packets of the next cycle are forwarded according to the traffic distribution ratio, the link with a higher priority can provide sufficient data transmission resources. High-quality resources for links with better communication quality, thereby improving the effect of link aggregation.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may employ one or more computer-usable storage media (including but not limited to magnetic disk storage, Compact Disc Read-Only Memory (CD-ROM), optical storage medium) having computer-usable program code embodied therein etc.) in the form of a computer program product implemented thereon.
  • CD-ROM Compact Disc Read-Only Memory
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include forms of non-persistent memory, random access memory (RAM) and/or non-volatile memory in computer readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (Parallel Random Access Memory, PRAM), static random access memory (Static Random Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM) , other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other memory technology, only CD-ROM, Digital Versatile Disc (DVD) or other optical storage, magnetic cassette, magnetic tape-disk storage or other magnetic storage device or any other non-transmission medium that can be used to store data that can be accessed by a computing device information.
  • computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed in the present application are a link aggregation method for a traffic forwarding device and the traffic forwarding device. The traffic forwarding device has at least two links to be selected, and each link has a respective priority. The method comprises: calculating a historical packet flow rate at which the traffic forwarding device forwards packets to the at least two links within a current cycle, and on the basis of the packet flow rate, predicting a packet flow rate corresponding to the next cycle; comparing the packet flow rate with restricted bandwidths of the links in sequence according to the priorities, and according to the comparison result, determining a traffic distribution ratio of the links in the next cycle; and forwarding the packets to the links according to the traffic distribution ratio within the next cycle.

Description

一种流量转发设备的链路聚合方法及流量转发设备A link aggregation method of a traffic forwarding device and a traffic forwarding device

交叉引用cross reference

本申请要求于2020年12月11日递交的名称为“一种流量转发设备的链路聚合方法及流量转发设备”、申请号为202011459626.0的中国专利申请的优先权,其通过引用被全部并入本申请。This application claims the priority of the Chinese patent application entitled "A Link Aggregation Method for Traffic Forwarding Device and Traffic Forwarding Device", filed on December 11, 2020, with application number 202011459626.0, which is incorporated by reference in its entirety this application.

技术领域technical field

本申请涉及互联网技术领域,特别涉及一种流量转发设备的链路聚合方法及流量转发设备。The present application relates to the field of Internet technologies, and in particular, to a link aggregation method of a traffic forwarding device and a traffic forwarding device.

背景技术Background technique

在当前的链路聚合技术中,通常可以根据负载均衡的策略,将报文在多条链路之间进行分配,从而可以有效地利用各条链路的负载,避免闲置资源的浪费。In the current link aggregation technology, packets can usually be distributed among multiple links according to the load balancing strategy, so that the load of each link can be effectively utilized and the waste of idle resources can be avoided.

在利用负载均衡策略实现链路聚合时,可以通过报文轮询的方式,依次向各条链路分发待转发的报文;也可以按照哈希特征的方式,将具备相同哈希特征的报文转发至同一条链路中。When link aggregation is implemented by using the load balancing strategy, the packets to be forwarded can be distributed to each link in turn by means of packet polling; the packets with the same hash characteristics can also be distributed according to the hash characteristics. The message is forwarded to the same link.

然而,这种基于负载均衡的链路聚合技术,通常都有一个前提,那就是各条链路的通信质量相当。然而在实际应用中,这一前提条件很难保证,从而导致链路聚合的效果不佳。However, this link aggregation technology based on load balancing usually has a premise that the communication quality of each link is equivalent. However, in practical applications, this precondition is difficult to guarantee, resulting in poor link aggregation effect.

发明内容SUMMARY OF THE INVENTION

本申请的目的在于提供一种流量转发设备的链路聚合方法及流量转发设备,能够提高链路聚合的效果。The purpose of the present application is to provide a link aggregation method of a traffic forwarding device and a traffic forwarding device, which can improve the effect of link aggregation.

为实现上述目的,本申请实施例提供一种流量转发设备的链路聚合方法,所述流量转发设备具备待选的至少两条链路,各条所述链路具备各自的优先级,所述方法包括:计算所述流量转发设备在当前周期内向所述至少两条链路转发 报文的历史报文流速,并基于所述报文流速预测得到下个周期对应的报文流速;按照所述优先级将所述报文流速依次与各条所述链路的限制带宽进行对比,并根据对比结果确定下个周期各条所述链路的流量分发比例;在所述下个周期内,按照所述流量分发比例向各条所述链路转发报文。In order to achieve the above purpose, an embodiment of the present application provides a link aggregation method for a traffic forwarding device, where the traffic forwarding device has at least two links to be selected, each of the links has its own priority, and the The method includes: calculating the historical packet flow rate of the packets forwarded by the traffic forwarding device to the at least two links in the current period, and predicting the packet flow rate corresponding to the next period based on the packet flow rate; The priority compares the packet flow rate with the limited bandwidth of each link in turn, and determines the traffic distribution ratio of each link in the next cycle according to the comparison result; in the next cycle, according to The traffic distribution ratio forwards packets to each of the links.

为实现上述目的,本申请实施例还提供一种流量转发设备,所述流量转发设备包括处理器和存储器,所述存储器用于存储计算机程序,所述计算机程序被所述处理器执行时,实现上述的链路聚合方法。In order to achieve the above object, an embodiment of the present application further provides a traffic forwarding device, the traffic forwarding device includes a processor and a memory, and the memory is used to store a computer program, and when the computer program is executed by the processor, the The above link aggregation method.

由上可见,本申请一个或者多个实施例提供的技术方案,待选的多条链路可以具备各自的优先级,该优先级可以表征链路通信质量的好坏。在进行链路聚合时,可以先在当前周期内计算这些链路转发报文的报文流速。然后根据当前周期的报文流速,可以对下个周期的报文转发进行动态调节。具体地,可以根据优先级的顺序,将计算得到的报文流速依次与各条链路的限制带宽进行对比。其中,限制带宽可以表征链路传输报文时的最高报文流速。对比结果可以表征各条链路能否足够承担当前周期内的报文流速。通过对比结果,可以确定下个周期各条链路的流量分发比例。由于是按照优先级进行对比,因此下个周期可以优先在通信质量较高的链路中传输报文。这样,按照流量分发比例对下个周期的报文进行转发时,可以使得优先级较高的链路能够提供足够的数据传输资源,这样在应对通信质量参差不齐的链路时,能够充分利用通信质量较好的链路的优质资源,进而提高了链路聚合的效果。It can be seen from the above that, in the technical solutions provided by one or more embodiments of the present application, multiple links to be selected may have respective priorities, and the priorities may represent the quality of link communication. During link aggregation, you can first calculate the packet flow rate of the packets forwarded by these links in the current period. Then, according to the packet flow rate in the current period, the packet forwarding in the next period can be dynamically adjusted. Specifically, the calculated packet flow rate may be compared with the limited bandwidth of each link in sequence according to the priority order. Among them, the limited bandwidth can represent the maximum packet flow rate when the link transmits packets. The comparison results can indicate whether each link can sufficiently handle the packet flow rate in the current period. By comparing the results, the traffic distribution ratio of each link in the next cycle can be determined. Since the comparison is performed according to the priority, packets with higher communication quality can be preferentially transmitted in the next cycle. In this way, when the packets of the next cycle are forwarded according to the traffic distribution ratio, the link with higher priority can provide sufficient data transmission resources, so that when dealing with the link with uneven communication quality, it can make full use of the High-quality resources for links with better communication quality, thereby improving the effect of link aggregation.

在一实施例中,所述报文流速按照以下方式计算:识别所述当前周期的时长,并统计所述流量转发设备在所述当前周期内向所述至少两条链路转发的报文总量;将所述报文总量与所述时长的比值作为所述报文流速。In an embodiment, the packet flow rate is calculated in the following manner: identifying the duration of the current period, and counting the total amount of packets forwarded by the traffic forwarding device to the at least two links in the current period. ; Use the ratio of the total amount of the packets to the duration as the packet flow rate.

在一实施例中,按照所述优先级将统计的所述报文流速依次与各条所述链路的限制带宽进行对比包括:按照优先级对各条所述链路进行排序,并将所述报文流速按序与各条所述链路的限制带宽依次进行对比;对于对比过程中的当前链路,确定所述报文流速的冗余流速与所述当前链路的限制带宽的大小关系,并根据所述大小关系判断是否需要与下一条链路的限制带宽进行对比。In an embodiment, sequentially comparing the statistics of the packet flow rate with the limited bandwidth of each link according to the priority includes: sorting the links according to the priority, and sorting all the links according to the priority. The packet flow rate is sequentially compared with the limited bandwidth of each of the links; for the current link in the comparison process, determine the redundant flow rate of the packet flow rate and the limit bandwidth of the current link. relationship, and according to the size relationship, it is judged whether it is necessary to compare with the limited bandwidth of the next link.

在一实施例中,根据所述大小关系判断是否需要与下一条链路的限制带宽进行对比包括:若所述报文流速的冗余流速小于或者等于所述当前链路的限制带宽,停止对比过程;若所述报文流速的冗余流速大于所述当前链路的限制 带宽,更新所述报文流速的冗余流速,并将更新后的冗余流速与下一条链路的限制带宽进行对比。In one embodiment, judging whether it is necessary to compare with the limited bandwidth of the next link according to the magnitude relationship includes: if the redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, stopping the comparison. process; if the redundant flow rate of the message flow rate is greater than the limited bandwidth of the current link, update the redundant flow rate of the message flow rate, and compare the updated redundant flow rate with the limited bandwidth of the next link. Compared.

在一实施例中,所述方法还包括:若更新后的冗余流速小于或者等于所述下一条链路的限制带宽,停止对比过程;若所述更新后的冗余流速大于所述下一条链路的限制带宽,再次更新所述报文流速的冗余流速,并将再次更新的冗余流速与再下一条链路的限制带宽进行对比。In one embodiment, the method further includes: if the updated redundant flow rate is less than or equal to the limited bandwidth of the next link, stopping the comparison process; if the updated redundant flow rate is greater than the next link The limited bandwidth of the link, the redundant flow rate of the packet flow rate is updated again, and the redundant flow rate updated again is compared with the limited bandwidth of the next link.

在一实施例中,所述对比结果用于表征各条链路从所述报文流速中承担的调配流速;根据对比结果确定下个周期各条所述链路的流量分发比例包括:将各条链路对应的调配流速的比例作为下个周期各条链路的流量分发比例。In an embodiment, the comparison result is used to represent the deployment flow rate that each link undertakes from the packet flow rate; determining the traffic distribution ratio of each link in the next cycle according to the comparison result includes: The proportion of the provisioning flow rate corresponding to each link is used as the traffic distribution proportion of each link in the next cycle.

在一实施例中,所述调配流速按照以下方式确定:对于对比过程中的当前链路,若当前所述报文流速的冗余流速小于或者等于所述当前链路的限制带宽,将当前所述报文流速的冗余流速作为所述当前链路的调配流速;若当前所述报文流速的冗余流速大于所述当前链路的限制带宽,将所述当前链路的限制带宽作为所述当前链路的调配流速。In one embodiment, the deployment flow rate is determined in the following manner: for the current link in the comparison process, if the current redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, the current The redundant flow rate of the packet flow rate is used as the deployment flow rate of the current link; if the current redundant flow rate of the packet flow rate is greater than the limited bandwidth of the current link, the limited bandwidth of the current link is used as the current link. Describes the provisioning flow rate of the current link.

在一实施例中,各条所述链路具备各自的令牌桶;在按照所述流量分发比例向各条所述链路转发报文时,所述方法还包括:在准备将当前报文转发至目标链路时,判断所述目标链路的令牌桶中当前剩余的令牌数量是否大于或者等于所述当前报文的数据量;若是,将所述当前报文转发至所述目标链路;若否,在优先级低于所述目标链路的其它链路中选择一条链路,并将所述当前报文转发至选择的所述链路中。In an embodiment, each of the links has its own token bucket; when forwarding packets to each of the links according to the traffic distribution ratio, the method further includes: when preparing to send the current packet When forwarding to the target link, determine whether the current number of tokens remaining in the token bucket of the target link is greater than or equal to the data volume of the current packet; if so, forward the current packet to the target link; if not, select a link from other links whose priority is lower than the target link, and forward the current packet to the selected link.

在一实施例中,在优先级低于所述目标链路的其它链路中选择一条链路包括:针对优先级低于所述目标链路的其它链路,按照优先级的顺序查找令牌桶中当前剩余的令牌数量大于或者等于所述当前报文的数据量的链路,并将查找到的首条链路作为选择的链路。In one embodiment, selecting a link among other links with a priority lower than the target link includes: searching for tokens in order of priority for other links with a priority lower than the target link The number of tokens currently remaining in the bucket is greater than or equal to the link of the data volume of the current packet, and the first link found is used as the selected link.

在一实施例中,所述方法还包括:若遍历各条所述其它链路,均无法查找到符合要求的链路,将所述当前报文转发至优先级最低的链路中。In an embodiment, the method further includes: if a link that meets the requirements cannot be found after traversing each of the other links, forwarding the current packet to the link with the lowest priority.

在一实施例中,所述流量转发设备在当前周期内转发的报文按照报文类型进行分类,并且各类报文均具备自身的优先级;所述方法还包括:按照报文的优先级对各类报文进行排序,并在确定了排序结果中当前类型的报文在各条所述链路中的流量分发比例之后,再确定所述排序结果中下一个类型的报文在 各条所述链路中的流量分发比例。In an embodiment, the packets forwarded by the traffic forwarding device in the current period are classified according to the packet type, and each type of packet has its own priority; the method further includes: according to the priority of the packet Sort various types of packets, and after determining the traffic distribution ratio of the current type of packets in each of the links in the sorting result, then determine the next type of packets in the sorting result in each link. The proportion of traffic distribution in the link.

在一实施例中,在计算报文流速时,按照报文类型,单独计算各种类型的报文在当前周期内向所述至少两条链路转发报文的报文流速,以根据单独计算的所述转发报文的报文流速,确定各种类型的报文下个周期在各条所述链路中的流量分发比例。In one embodiment, when calculating the packet flow rate, according to the packet type, separately calculate the packet flow rate of the packets forwarded to the at least two links for various types of packets in the current cycle, so as to calculate the packet flow rate according to the separately calculated packet flow rate. The packet flow rate of the forwarded packets determines the traffic distribution ratio of various types of packets in each of the links in the next period.

在一实施例中,确定各种类型的报文下个周期在各条所述链路中的流量分发比例包括:针对当前类型的报文,在各条所述链路中识别下个周期存在冗余带宽的链路,并通过将所述当前类型的报文的报文流速与识别出的各条链路的冗余带宽进行对比,以根据对比结果确定所述当前类型的报文下个周期在各条所述链路中的流量分发比例。In an embodiment, determining the traffic distribution ratio of various types of packets in each of the links in the next cycle includes: for the current type of packets, identifying the existence of the next cycle in each of the links. A link with redundant bandwidth, and by comparing the packet flow rate of the current type of packet with the identified redundant bandwidth of each link, to determine the next packet of the current type according to the comparison result. The proportion of traffic distribution in each of the links in the period.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例中流量转发的系统示意图;1 is a schematic diagram of a system for traffic forwarding in an embodiment of the present application;

图2是本申请实施例中链路聚合方法的步骤示意图;FIG. 2 is a schematic diagram of steps of a link aggregation method in an embodiment of the present application;

图3是本申请实施例中流量转发设备的结构示意图。FIG. 3 is a schematic structural diagram of a traffic forwarding device in an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

本申请提供一种流量转发设备的链路聚合方法,该流量转发设备可以是不同网络架构下负责进行报文转发的设备。例如,该流量转发设备可以是二层网络架构中的交换机,也可以是三层网络架构中的路由设备。The present application provides a link aggregation method for a traffic forwarding device, where the traffic forwarding device may be a device responsible for packet forwarding under different network architectures. For example, the traffic forwarding device may be a switch in a layer-2 network architecture, or a routing device in a layer-3 network architecture.

在本申请中,流量转发设备可以具备待选的至少两条链路,该至少两条 链路可以负责传输流量转发设备转发的数据报文。例如,在图1中,客户端需要向服务端发送数据报文,其中需要经过路由器进行中转。该路由器便可以是上述的流量转发设备。该路由器可通过两条链路与服务端进行通信,路由器可以按照本申请提供的链路聚合方法,将客户端发来的数据报文灵活地转发至这两条链路上,以通过这两条链路将数据报文传输至服务端。In this application, the traffic forwarding device may have at least two links to be selected, and the at least two links may be responsible for transmitting data packets forwarded by the traffic forwarding device. For example, in Figure 1, the client needs to send a data packet to the server, which needs to be relayed through a router. The router may then be the above-mentioned traffic forwarding device. The router can communicate with the server through two links, and the router can flexibly forward the data packets sent by the client to the two links according to the link aggregation method provided in this application, so as to pass the two links. The link transmits data packets to the server.

在一个实施例中,待选的多条链路可能会具备不同的优先级,该优先级可根据不同的业务需求进行设定,例如,在对通信质量要求高的场景中,该优先级可以是基于通信质量进行确定的,而在对重视成本管控的场景中,该优先级可以是基于成本计算进行确定的,具体可通过丢包率、时延、成本、带宽等参数中的一个或多个的组合进行表征,在本申请中并不限制具体的确定方式,只要能够确定出各条链路的优先级即可。这样,每条链路都可以具备各自的优先级,其中,优先级越高,可以表示越适配业务场景需求,例如,通信质量越好。In one embodiment, multiple links to be selected may have different priorities, and the priorities may be set according to different service requirements. For example, in a scenario requiring high communication quality, the priorities may be It is determined based on the communication quality. In scenarios where cost control is important, the priority can be determined based on cost calculation. Specifically, it can be determined by one or more of parameters such as packet loss rate, delay, cost, and bandwidth. A combination of each link is used to characterize, and the specific determination method is not limited in this application, as long as the priority of each link can be determined. In this way, each link can have its own priority, wherein a higher priority can indicate a better adaptation to the requirements of a service scenario, for example, better communication quality.

请参阅图2,本申请一个实施例提供的链路聚合方法,可以包括以下多个步骤。Referring to FIG. 2 , the link aggregation method provided by an embodiment of the present application may include the following steps.

S1:计算所述流量转发设备在当前周期内向所述至少两条链路转发报文的历史报文流速,并基于所述历史报文流速预测得到下个周期对应的报文流速。S1: Calculate the historical packet flow rate of the packets forwarded by the traffic forwarding device to the at least two links in the current period, and predict the packet flow rate corresponding to the next period based on the historical packet flow rate.

在本实施例中,链路聚合的方案可以是一个不断调节的动态过程。可以预先设置调节的周期,例如可以每500ms调节一次。该预先设置的调节周期可以存储于流量转发设备中,以便流量转发设备根据周期的时长,获取在当前周期内,流量转发设备向这些链路转发的报文总量,并基于当前周期内报文总量预测下个周期的报文总量,进而根据预测出的报文总量来确定下个周期各条链路负责承担的报文量。In this embodiment, the link aggregation solution may be a dynamic process that is constantly adjusted. The adjustment period can be preset, for example, it can be adjusted every 500ms. The preset adjustment period can be stored in the traffic forwarding device, so that the traffic forwarding device can obtain the total amount of packets forwarded by the traffic forwarding device to these links in the current cycle according to the duration of the cycle, and based on the packets in the current cycle The total amount predicts the total amount of packets in the next cycle, and then determines the amount of packets that each link is responsible for in the next cycle according to the predicted total amount of packets.

具体地,在每个周期结束时,流量转发设备可以统计在当前周期内向上述的至少两条链路转发的报文总量。该报文总量可以通过报文的总长度来表示,例如,在当前周期,流量转发设备向上述的至少两条链路总计转发了10M的报文。然后,通过识别当前周期的时长,流量转发设备便可以将报文总量与该时长的比值作为当前周期的报文流速。举例来说,当前周期是500ms,流量转发设备向上述的至少两条链路总计转发了10M的报文,那么当前周期的报文流速便可以是20Mbps。Specifically, at the end of each period, the traffic forwarding device may count the total amount of packets forwarded to the at least two links in the current period. The total amount of the packets can be represented by the total length of the packets. For example, in the current period, the traffic forwarding device forwards a total of 10M packets to the above at least two links. Then, by identifying the duration of the current cycle, the traffic forwarding device can use the ratio of the total amount of packets to the duration as the packet flow rate of the current cycle. For example, if the current cycle is 500ms, and the traffic forwarding device forwards a total of 10M packets to the above at least two links, the packet flow rate in the current cycle can be 20Mbps.

同样的,流量转发设备可根据当前周期的报文流速,对下个周期的报文流速进行预测,在本实施例中,预测出的下个周期的报文流速与当前周期的报文流速相同,而在本申请的其他实施例中,可基于预测参数与当前周期的报文流速进行计算,从而得到对下个周期的报文流程的预测值。在一个实施中,预测参数可以是基于多个历史周期的流速变化趋势得到的,具体地,可对当前周期及当前周期的上一个周期(或多个连续周期)的报文流速变化量进行计算,基于变化量对下个周期的变化量进行预测,进而根据预测的变化量和当前周期的报文流速进行计算,得到下个周期的报文流速,例如,当前周期的报文流速为20Mbps,相较于上一个周期的流速增长了10%,基于此可设定预测参数的值为1.1,乘以当前周期的报文流速,得到下个周期的报文流速为20*1.1=22Mbps,可以理解的是,在计算过程中还可以设置权重值及变化常量来对预测结果进行优化;在另一个实施中,预测参数可以是下个周期所在时间对应的历史流速变化趋势,具体地,可基于历史流量数据分析得到报文流速在各个时间段的的变化率,从而可基于下个周期所在时间段对应的变化率和当前周期的报文流速进行计算,得到下个周期的预测报文速率。Similarly, the traffic forwarding device can predict the packet flow rate of the next period according to the packet flow rate of the current period. In this embodiment, the predicted packet flow rate of the next period is the same as the packet flow rate of the current period. , while in other embodiments of the present application, the calculation may be performed based on the predicted parameters and the message flow rate of the current cycle, so as to obtain the predicted value of the message flow of the next cycle. In one implementation, the prediction parameter may be obtained based on the change trend of the flow rate of multiple historical periods, specifically, the change amount of the packet flow rate of the current period and the previous period (or multiple consecutive periods) of the current period may be calculated. , based on the amount of change to predict the amount of change in the next cycle, and then calculate according to the predicted amount of change and the packet flow rate of the current cycle to obtain the packet flow rate of the next cycle. For example, the packet flow rate of the current cycle is 20Mbps, Compared with the flow rate of the previous cycle, the flow rate has increased by 10%. Based on this, the value of the prediction parameter can be set to 1.1, multiplied by the packet flow rate of the current period, and the packet flow rate of the next period is 20*1.1=22Mbps, which can be It is understood that in the calculation process, the weight value and the change constant can also be set to optimize the prediction result; in another implementation, the prediction parameter can be the historical flow rate change trend corresponding to the time of the next cycle. Specifically, it can be based on The rate of change of the packet flow rate in each time period can be obtained by analyzing the historical traffic data, so that the predicted packet rate of the next period can be obtained based on the rate of change corresponding to the time period of the next period and the packet flow rate of the current period.

S3:按照所述优先级将所述报文流速依次与各条所述链路的限制带宽进行对比,并根据对比结果确定下个周期各条所述链路的流量分发比例。S3: Compare the packet flow rate with the limited bandwidth of each of the links in turn according to the priority, and determine the traffic distribution ratio of each of the links in the next cycle according to the comparison result.

在本实施例中,每条链路都可以具备限制带宽,该限制带宽可以表示链路在传输报文时的最高报文流速。通常而言,该限制带宽的单位与步骤S1中统计出的报文流速的单位可以一致。例如,当前一共有两条链路,第一条链路的限制带宽可以是15Mbps,第二条链路的限制带宽可以是10Mbps。In this embodiment, each link may have a limited bandwidth, and the limited bandwidth may represent the highest packet flow rate when the link transmits packets. Generally speaking, the unit of the limited bandwidth may be the same as the unit of the packet flow rate calculated in step S1. For example, there are currently two links, the limited bandwidth of the first link may be 15 Mbps, and the limited bandwidth of the second link may be 10 Mbps.

在本实施例中,在确定下个周期的报文转发策略时,可以按照链路的优先级,将计算的报文流速依次与各条链路的限制带宽进行对比。具体地,为了让通信质量越高的链路能够在下个周期分配到越多的流量,可以按照优先级从高到低的顺序,对各条链路进行排序,然后可以将报文流速按序与各条链路的限制带宽依次进行对比。In this embodiment, when determining the packet forwarding policy for the next period, the calculated packet flow rate may be sequentially compared with the limited bandwidth of each link according to the priority of the link. Specifically, in order to allow links with higher communication quality to allocate more traffic in the next cycle, the links can be sorted in order of priority from high to low, and then the packet flow rates can be sorted in order. Compare with the limited bandwidth of each link in turn.

首先,可以将报文流速与优先级最高的链路的限制带宽进行对比。例如,报文流速为20Mbps,优先级最高的链路1的限制带宽为15Mbps。此时,由于报文流速没有进行任何分配,因此该报文流速的冗余流速就可以是20Mbps,其中,冗余流速可以表征报文流速中没有进行分配的流速。可见,当前该报文流 速的冗余流速20Mbps大于链路1的限制带宽15Mbps,那么表示在下个周期,链路1中的限制带宽可以跑满,分配给链路1的调配流速便可以是15Mbps。此时,由于已经将冗余流速中的15Mbps分配给了链路1,因此需要更新报文流速的冗余流速,更新后的冗余流速便只剩5Mbps。接着,可以将更新后的冗余流速与优先级低一些的链路2的限制带宽进行对比。可见,更新后的冗余流速小于链路2的限制带宽,此时,可以将剩余的冗余流速全部作为调配流速分配给链路2,便可以完成流速的分配,从而停止对比过程。First, the packet flow rate can be compared with the limited bandwidth of the link with the highest priority. For example, the packet flow rate is 20 Mbps, and the limited bandwidth of link 1 with the highest priority is 15 Mbps. At this time, since the packet flow rate is not allocated, the redundant flow rate of the packet flow rate may be 20 Mbps, wherein the redundant flow rate may represent the flow rate that is not allocated in the packet flow rate. It can be seen that the current redundant flow rate of the packet flow rate of 20 Mbps is greater than the limited bandwidth of link 1, which is 15 Mbps, which means that in the next cycle, the limited bandwidth of link 1 can be full, and the provisioning flow rate allocated to link 1 can be 15 Mbps. . At this time, since 15 Mbps of the redundant flow rate has been allocated to link 1, the redundant flow rate of the packet flow rate needs to be updated, and the updated redundant flow rate is only 5 Mbps. Next, the updated redundant flow rate can be compared with the limited bandwidth of link 2 with lower priority. It can be seen that the updated redundant flow rate is less than the limited bandwidth of link 2. At this time, all the remaining redundant flow rates can be allocated to link 2 as the deployment flow rate, and the flow rate allocation can be completed, thereby stopping the comparison process.

通过上述的描述可见,对于对比过程中的当前链路(该当前链路就是当前正在进行流速对比的链路),可以确定当前报文流速的冗余流速与该当前链路的限制带宽的大小关系,并根据该大小关系可以判断是否需要与下一条链路的限制带宽进行对比。例如,如果报文流速的冗余流速小于或者等于当前链路的限制带宽,则可以将报文流速的冗余流速全部分配给当前链路,并停止对比过程。但如果报文流速的冗余流速大于当前链路的限制带宽,则在向当前链路分配了对应的调配流速之后,还需要更新报文流速的冗余流速,并将更新后的冗余流速与下一条优先级稍低一些的链路的限制带宽进行对比。As can be seen from the above description, for the current link in the comparison process (the current link is the link currently undergoing flow rate comparison), the redundant flow rate of the current packet flow rate and the limited bandwidth of the current link can be determined. relationship, and according to the magnitude relationship, it can be judged whether it is necessary to compare with the limited bandwidth of the next link. For example, if the redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, all the redundant flow rates of the packet flow rate can be allocated to the current link, and the comparison process is stopped. However, if the redundant flow rate of the packet flow rate is greater than the limited bandwidth of the current link, after the corresponding provisioned flow rate is allocated to the current link, the redundant flow rate of the packet flow rate needs to be updated, and the updated redundant flow rate needs to be updated. Compare with the limited bandwidth of the next slightly lower priority link.

类似的,在将更新后的冗余流速与下一条链路的限制带宽进行对比时,如果更新后的冗余流速小于或者等于下一条链路的限制带宽,那么可以将更新后的冗余流速全部分配给下一条链路,并停止对比过程。但如果更新后的冗余流速依然大于该下一条链路的限制带宽,那么在向该下一条链路分配了调配流速之后,可以再次更新报文流速的冗余流速,并将再次更新的冗余流速与再下一条链路的限制带宽进行对比。以此类推,直至报文流速的冗余流速都被分配完或者遍历完所有的链路为止。值得注意的是,若遍历完所有的链路后,依然存在剩余的冗余流速,流量转发设备可向管理设备发出新增链路的请求,使得管理设备可及时为流量转发设备增设新的链路。Similarly, when comparing the updated redundant flow rate with the limit bandwidth of the next link, if the updated redundant flow rate is less than or equal to the limit bandwidth of the next link, then the updated redundant flow rate can be compared to the limit bandwidth of the next link. All are assigned to the next link and the comparison process is stopped. However, if the updated redundant flow rate is still greater than the limited bandwidth of the next link, after the provisioned flow rate is allocated to the next link, the redundant flow rate of the packet flow rate can be updated again, and the updated redundant flow rate can be updated again. The remaining flow rate is compared with the limited bandwidth of the next link. By analogy, until the redundant flow rate of the packet flow rate is allocated or all links are traversed. It is worth noting that if there are still redundant flow rates after traversing all the links, the traffic forwarding device can send a request for a new link to the management device, so that the management device can add a new link to the traffic forwarding device in time. road.

通过以上描述可见,在确定每条链路的调配流速时,对于对比过程中的当前链路,若当前报文流速的冗余流速小于或者等于当前链路的限制带宽,则可以将当前报文流速的冗余流速全部作为当前链路的调配流速。而如果当前报文流速的冗余流速大于当前链路的限制带宽,那么可以将当前链路的限制带宽作为当前链路的调配流速,并对报文流速的冗余流速进行更新,以进行下一次的对比。It can be seen from the above description that when determining the allocation flow rate of each link, for the current link in the comparison process, if the redundant flow rate of the current packet flow rate is less than or equal to the limited bandwidth of the current link, the current packet flow rate can be The redundant flow rate of the flow rate is all used as the deployment flow rate of the current link. However, if the redundant flow rate of the current packet flow rate is greater than the limited bandwidth of the current link, the limited bandwidth of the current link can be used as the provisioned flow rate of the current link, and the redundant flow rate of the packet flow rate can be updated for the following steps. a comparison.

在本实施例中,在完成对比过程之后,对比结果可以用于表征各条链路从报文流速中承担的调配流速。这样,各条链路对应的调配流速的比例便可以作为下个周期各条链路的流量分发比例。举例来说,上述的链路1的调配流速为15Mbps(也就是链路1的限制带宽),链路2的调配流速为5Mbps,那么这两条链路在下个周期的流量分发比例便可以是3:1。In this embodiment, after the comparison process is completed, the comparison result can be used to characterize the deployment flow rate assumed by each link from the packet flow rate. In this way, the proportion of the allocated flow rate corresponding to each link can be used as the traffic distribution proportion of each link in the next cycle. For example, the above-mentioned deployment flow rate of link 1 is 15Mbps (that is, the limited bandwidth of link 1), and the deployment flow rate of link 2 is 5Mbps, then the traffic distribution ratio of these two links in the next cycle can be 3:1.

S5:在所述下个周期内,按照所述流量分发比例向各条所述链路转发报文。S5: In the next period, forward packets to each of the links according to the traffic distribution ratio.

在本实施例中,流量转发设备在确定了各条链路的流量分发比例之后,在下个周期便可以按照该流量分发比例对报文进行转发。例如,链路1和链路2的流量分发比例为3:1,那么在每4个报文中,便可以将其中的3个报文转发至链路1,而将剩下的1个报文转发至链路2。由此可见,流量转发设备在对报文进行转发过程中可按照流量分发比例对报文进行转发,从而保证对应的链路均有进行报文传输,而并非将报文先集中在某一条链路上进行传输,从而在一定程度上避免优先级高的链路发生过载或拥塞。In this embodiment, after determining the traffic distribution ratio of each link, the traffic forwarding device can forward packets according to the traffic distribution ratio in the next cycle. For example, if the traffic distribution ratio of link 1 and link 2 is 3:1, in every 4 packets, 3 packets can be forwarded to link 1, and the remaining 1 packet can be forwarded to link 1. The message is forwarded to link 2. It can be seen that during the process of forwarding packets, the traffic forwarding device can forward packets according to the proportion of traffic distribution, so as to ensure that all corresponding links can transmit packets, instead of concentrating packets on a certain link first. To a certain extent, the link with high priority can be prevented from being overloaded or congested.

在实际应用中,为了区分不同链路的报文,流量转发设备可以在报文中标注对应链路的链路标识,从而使得具备相同链路标识的报文都转发至同一条对应的链路。举例来说,流量转发设备可以利用iptables技术,在报文中添加链路的预设链路标识,从而将报文按照添加的预设链路标识转发至对应的链路中。In practical applications, in order to distinguish the packets of different links, the traffic forwarding device can mark the link ID of the corresponding link in the packet, so that the packets with the same link ID are all forwarded to the same corresponding link . For example, the traffic forwarding device may use the iptables technology to add the preset link identifier of the link in the packet, so as to forward the packet to the corresponding link according to the added preset link identifier.

通过上述的方式,由于是按照优先级的顺序依次为各条链路分配调配流速,从而使得通信质量较好的链路能够被优先分配到足够的调配流速,这样在下个周期进行报文转发时,能够优先利用通信质量较好的链路的传输资源,以保证链路聚合效果达到最佳,同时流量转发设备通过参照流量分发比例对接收到的报文进行分流转发,使得转发周期的整个过程中,各转发链路上都会有对应比例的报文数量进行传输,可避免出现某些线路过载,而其他线路空闲的现象,从而保证报文的传输速率。Through the above method, the flow rate is allocated to each link in the order of priority, so that the link with better communication quality can be preferentially allocated to a sufficient flow rate, so that when packets are forwarded in the next cycle , the transmission resources of the link with better communication quality can be used preferentially to ensure the best link aggregation effect. At the same time, the traffic forwarding device forwards the received packets by referring to the traffic distribution ratio, so that the whole process of the forwarding cycle can be achieved. In each forwarding link, a corresponding proportion of the number of packets will be transmitted, which can avoid the phenomenon that some lines are overloaded while other lines are idle, thus ensuring the transmission rate of the packets.

在一个实施例中,考虑到不同周期的报文数量可能会发生突变,那么当报文数量突增时,如果依然按照当前周期制定的流量分发比例进行报文转发,可能会导致下个周期某些链路实际承担的调配流速会超过自身的限制带宽。为了避免这种情况的发生,可基于令牌桶算法,预先为每条链路设置令牌桶,并且该令牌桶可以按照一定的速度补充令牌。每当链路需要接收报文时,可以先 尝试从对应的令牌桶中获取与报文的数据量相匹配的令牌数量,如果能够获取到对应数量的令牌,则表示该链路能够接收报文。而如果令牌桶中已经不足以提供对应数量的令牌,则表示该链路无法接收报文。通常而言,令牌桶补充令牌的速度,可以与链路的限制带宽相同。也就是说,如果链路的限制带宽为10Mbps,那么该链路的令牌桶补充令牌的速度也可以是10Mbps。In one embodiment, considering that the number of packets in different periods may change abruptly, when the number of packets increases suddenly, if the packet forwarding is still performed according to the traffic distribution ratio set in the current period, it may lead to certain problems in the next period. The provisioning flow rate actually undertaken by some links will exceed their own limited bandwidth. In order to avoid this situation, a token bucket can be set for each link in advance based on the token bucket algorithm, and the token bucket can replenish tokens at a certain speed. Whenever a link needs to receive a packet, it can first try to obtain the number of tokens from the corresponding token bucket that matches the data volume of the packet. If the corresponding number of tokens can be obtained, it means that the link can Receive messages. If the token bucket is not enough to provide the corresponding number of tokens, it means that the link cannot receive packets. Generally speaking, the token bucket can replenish tokens at the same rate as the link's limited bandwidth. That is to say, if the limited bandwidth of a link is 10 Mbps, the speed at which the token bucket of the link replenishes tokens can also be 10 Mbps.

在本实施例中,在准备将当前报文转发至目标链路时,可以判断目标链路的令牌桶中当前剩余的令牌数量是否大于或者等于当前报文的数据量。若是,则可以将当前报文转发至目标链路。若否,则可以在优先级低于目标链路的其它链路中选择一条链路,并将当前报文转发至选择的链路中。In this embodiment, when the current packet is to be forwarded to the target link, it can be determined whether the number of tokens currently remaining in the token bucket of the target link is greater than or equal to the data volume of the current packet. If so, the current packet can be forwarded to the target link. If not, a link may be selected from other links with a lower priority than the target link, and the current packet may be forwarded to the selected link.

具体地,在重新选择链路时,依然可以按照优先级从高到低的顺序在其它链路中查找符合要求的链路。针对优先级低于目标链路的其它链路,可以按照优先级的顺序查找令牌桶中当前剩余的令牌数量大于或者等于当前报文的数据量的链路,并将查找到的首条链路作为选择的链路。例如,当前具备5条链路,其中第二条链路在准备接收报文时,发现该报文的数据量大于第二条链路的令牌桶中剩余的令牌数量,此时,可以从优先级比第二条链路低的第三至第五条链路中查找符合要求的链路。在按照优先级进行依次对比时,发现第四条链路的令牌桶中剩余的令牌数大于该报文的数据量,此时便可以将该报文的链路标识修改为第四条链路的链路标识,从而可以将该报文转发至第四条链路中。Specifically, when a link is reselected, it is still possible to search for a link that meets the requirements in other links in the order of priority from high to low. For other links with a priority lower than the target link, you can search for the link with the number of tokens remaining in the token bucket that is greater than or equal to the data volume of the current packet in the order of priority, and use the first link found. link as the selected link. For example, there are currently 5 links. When the second link is about to receive a packet, it finds that the data volume of the packet is greater than the number of tokens remaining in the token bucket of the second link. In this case, you can Find the link that meets the requirements from the third to fifth links with lower priority than the second link. When comparing according to the priority, it is found that the number of tokens remaining in the token bucket of the fourth link is greater than the data volume of the packet. At this time, the link identifier of the packet can be changed to the fourth link. The link identifier of the link, so that the packet can be forwarded to the fourth link.

在一个实施例中,在依次查询各条链路的令牌桶中剩余的令牌数时,如果遍历完剩余的各条其它链路,依然无法查找到符合要求的链路,此时可以直接将当前报文转发至优先级最低的链路中,从而避免对优先级高的链路产生影响,在其他实施例中,可按照链路的优先级顺序,重新查找符合要求的链路。In one embodiment, when querying the number of tokens remaining in the token buckets of each link in turn, if the remaining links are traversed and still unable to find a link that meets the requirements, you can directly The current packet is forwarded to the link with the lowest priority, so as to avoid affecting the link with a higher priority. In other embodiments, the link that meets the requirements can be re-searched according to the priority order of the links.

在一个实施例中,考虑到流量转发设备转发的流量有可能有多种类型,不同类型的流量可能本身就具备不同的优先级。例如,对于游戏、语音等流量可能具备较高的优先级,而对于文字、链接等流量可以具备稍低一些的优先级。这样,在进行流量转发时,可以首先将优先级较高的流量转发至通信质量较好的链路中。具体地,可以按照报文的优先级从高到低的顺序对各类报文进行排序,然后,对于排序结果中的各类报文可以逐一按序进行处理。例如,可以按照步骤S1至S5中的方式,先确定优先级最高的流量下个周期在各条链路中的流量分发比例,然后再确定优先级稍低一些的流量下个周期在各条链路中的流 量分发比例。也就是说,在确定流量分发比例时,并非是将所有类型的流量混合在一起进行确定,而是在确定了排序结果中当前类型的报文在各条所述链路中的流量分发比例之后,再确定排序结果中下一个类型的报文在各条所述链路中的流量分发比例。In one embodiment, considering that the traffic forwarded by the traffic forwarding device may have multiple types, different types of traffic may have different priorities themselves. For example, traffic such as games and voice may have a higher priority, while traffic such as text and links may have a slightly lower priority. In this way, when the traffic is forwarded, the traffic with higher priority can be forwarded to the link with better communication quality first. Specifically, various types of packets may be sorted in descending order of priority of the packets, and then, the various types of packets in the sorting result may be processed in order one by one. For example, according to the method in steps S1 to S5, first determine the traffic distribution ratio of the traffic with the highest priority in each link in the next cycle, and then determine the traffic with a slightly lower priority in each link in the next cycle. The proportion of traffic distribution in the road. That is to say, when determining the traffic distribution ratio, it is not determined by mixing all types of traffic together, but after determining the traffic distribution ratio of the current type of packets in each of the links in the sorting result. , and then determine the traffic distribution ratio of the packets of the next type in each of the links in the sorting result.

同时,计算报文流速时,也可以按照报文类型,单独计算各种类型的报文在当前周期内的报文流速,从而可以根据单独计算的报文流速,确定各种类型的报文下个周期在各条所述链路中的流量分发比例。At the same time, when calculating the packet flow rate, you can also separately calculate the packet flow rate of various types of packets in the current period according to the packet type. The traffic distribution ratio of each cycle in each of the links.

在确定各种类型的报文的流量分发比例时,针对当前类型的报文,可以在各条链路中识别下个周期存在冗余带宽的链路。其中,链路的冗余带宽可以指下个周期尚未分配给流量的闲置带宽。举例来说,链路1的限制带宽为15Mbps,其中有10Mbps的带宽已经被分配给了优先级最高的流量,那么此时,链路1的冗余带宽就只剩5Mbps。在本实施例中,通过将当前类型的报文的报文流速与识别出的各条链路的冗余带宽进行对比,从而可以根据对比结果确定当前类型的报文下个周期在各条链路中的流量分发比例。具体的对比过程可以参见步骤S3中的描述。When determining the traffic distribution ratio of various types of packets, for the current type of packets, a link with redundant bandwidth in the next period can be identified in each link. The redundant bandwidth of the link may refer to the idle bandwidth that has not been allocated to traffic in the next cycle. For example, the limited bandwidth of link 1 is 15 Mbps, of which 10 Mbps has been allocated to the traffic with the highest priority. At this time, the redundant bandwidth of link 1 is only 5 Mbps. In this embodiment, by comparing the packet flow rate of the current type of packet with the identified redundant bandwidth of each link, it can be determined according to the comparison result that the current type of packet will be sent to each link in the next cycle. The proportion of traffic distribution in the road. The specific comparison process can refer to the description in step S3.

举例来说,当前具备三种不同的流量A、B、C,以及两条不同的链路1和2,流量的优先级从高到低就按照ABC进行排序,链路的优先级从高到低就按照链路1、链路2进行排序。其中,流量A的报文流速为5Mbps,流量B的报文流速为8Mbps,流量C的报文流速为3Mbps,链路1和链路2的限制带宽为10Mbps,那么可以按照以下方式进行下个周期的流速分配。For example, there are currently three different flows A, B, C, and two different links 1 and 2. The priority of the traffic is sorted according to ABC from high to low, and the priority of the links is from high to low. Low is sorted according to link 1 and link 2. The packet flow rate of traffic A is 5 Mbps, the packet flow rate of traffic B is 8 Mbps, the packet flow rate of traffic C is 3 Mbps, and the limited bandwidth of link 1 and link 2 is 10 Mbps. Periodic flow distribution.

首先,优先级最高的流量A先进行比较:由于链路1、2都还未分配流量,所以流量A的5Mbps可以全部分配到链路1,那么链路1还剩5Mbps未分配,链路2还剩10Mbps未分配。其次,优先级第二的流量B进行比较:由于链路1只剩5Mbps,所以流量B的5Mbps分配到链路1,3Mbps分配到链路2,也就是说流量B应该按照5:3的流量分发比例分配转发到链路1和链路2。此时链路1还剩0Mbps未分配,链路2还剩7Mbps未分配。然后,优先级最低的流量C进行比较:由于只有链路2还剩7Mbps未分配,所以流量C的3Mbps应该全部发到链路2。First of all, the traffic A with the highest priority is compared first: since both links 1 and 2 have not yet allocated traffic, all 5Mbps of traffic A can be allocated to link 1, then link 1 has 5Mbps left unallocated, and link 2 10Mbps left unallocated. Secondly, compare the traffic B with the second priority: since there is only 5 Mbps left on link 1, 5 Mbps of traffic B is allocated to link 1, and 3 Mbps is allocated to link 2, that is to say, traffic B should be based on 5:3 traffic The distribution ratio is forwarded to link 1 and link 2. At this time, link 1 still has 0 Mbps unassigned, and link 2 has 7 Mbps unassigned. Then, the traffic C with the lowest priority is compared: Since only link 2 has 7 Mbps left unallocated, all 3 Mbps of traffic C should be sent to link 2.

最后,在下个周期进行报文转发时,还是要结合各条链路的令牌桶中剩余的令牌数来决定具体发往哪条链路。该过程与前文的描述一致,这里就不再 赘述了。Finally, when the packet is forwarded in the next cycle, it is still necessary to determine which link to send the packet to based on the number of tokens remaining in the token bucket of each link. This process is consistent with the previous description, and will not be repeated here.

通过上述的方案,可保证优先级高的链路能够优先分配到优先级高的报文,从而充分利用了较好的传输资源。此外,优先级稍低一些的链路也能够有效利用,从而提高了链路聚合的效果。通过结合令牌桶策略,可以应对流量突发时链路超载的问题,进一步提升了链路聚合的稳定性。此外,针对不同优先级的流量,可以依次独立进行流量分发,从而保证了高优先级的流量能够优先在通优先级高的链路传输。Through the above solution, it can be ensured that a link with a high priority can be preferentially allocated to a packet with a high priority, thereby making full use of better transmission resources. In addition, links with a slightly lower priority can also be used effectively, thereby improving the effect of link aggregation. Combined with the token bucket policy, it can cope with the problem of link overload when traffic bursts, and further improve the stability of link aggregation. In addition, for traffic of different priorities, traffic distribution can be performed independently in sequence, thereby ensuring that high-priority traffic can be preferentially transmitted over links with high-priority.

请参阅图3,本申请还提供一种流量转发设备,所述流量转发设备包括处理器和存储器,所述存储器用于存储计算机程序,所述计算机程序被所述处理器执行时,实现上述链路聚合方法。Referring to FIG. 3 , the present application further provides a traffic forwarding device, the traffic forwarding device includes a processor and a memory, and the memory is used for storing a computer program, and when the computer program is executed by the processor, the above chain is implemented Road aggregation method.

在本申请中,所述存储器可以包括用于存储信息的物理装置,通常是将信息数字化后再以利用电、磁或者光学等方法的媒体加以存储。所述存储器又可以包括:利用电能方式存储信息的装置,如随机存取存储器(Random Access Memory,RAM)或只读存储器(Read-Only Memory,ROM)等;利用磁能方式存储信息的装置,如硬盘、软盘、磁带、磁芯存储器、磁泡存储器或U盘;利用光学方式存储信息的装置,如光盘(Compact Disc,CD)或数字多功能光盘(Digital Versatile Disc,DVD)。当然,还有其他方式的存储器,例如量子存储器或石墨烯存储器等等。In this application, the memory may include a physical device for storing information, usually after digitizing the information and storing it in a medium using electrical, magnetic or optical methods. The memory can also include: a device that uses electrical energy to store information, such as a random access memory (Random Access Memory, RAM) or a read-only memory (Read-Only Memory, ROM), etc.; a device that uses magnetic energy to store information, such as Hard disk, floppy disk, magnetic tape, magnetic core memory, magnetic bubble memory or U disk; a device that uses optical means to store information, such as compact disc (CD) or digital versatile disc (Digital Versatile Disc, DVD). Of course, there are other ways of memory, such as quantum memory or graphene memory and so on.

在本申请中,所述处理器可以按任何适当的方式实现。例如,所述处理器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。In this application, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or a processor and a computer readable medium storing computer readable program code (eg software or firmware) executable by the (micro)processor, logic gates, switches, application specific integrated Circuit (Application Specific Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller form, etc.

由上可见,本申请一个或者多个实施例提供的技术方案,待选的多条链路可以具备各自的优先级,该优先级可以表征链路通信质量的好坏。在进行链路聚合时,可以先在当前周期内计算这些链路转发报文的报文流速。然后根据当前周期的报文流速,可以对下个周期的报文转发进行动态调节。具体地,可以根据优先级的顺序,将计算得到的报文流速依次与各条链路的限制带宽进行对比。其中,限制带宽可以表征链路传输报文时的最高报文流速。对比结果可以表征各条链路能否足够承担当前周期内的报文流速。通过对比结果,可以确 定下个周期各条链路的流量分发比例。由于是按照优先级进行对比,因此下个周期可以优先在通信质量较高的链路中传输报文。这样,按照流量分发比例对下个周期的报文进行转发时,可以使得优先级较高的链路能够提供足够的数据传输资源,这样在应对通信质量参差不齐的链路时,能够充分利用通信质量较好的链路的优质资源,进而提高了链路聚合的效果。It can be seen from the above that, in the technical solutions provided by one or more embodiments of the present application, multiple links to be selected may have respective priorities, and the priorities may represent the quality of link communication. During link aggregation, you can first calculate the packet flow rate of the packets forwarded by these links in the current period. Then, according to the packet flow rate in the current period, the packet forwarding in the next period can be dynamically adjusted. Specifically, the calculated packet flow rate may be compared with the limited bandwidth of each link in sequence according to the priority order. Among them, the limited bandwidth can represent the maximum packet flow rate when the link transmits packets. The comparison results can indicate whether each link can sufficiently handle the packet flow rate in the current period. By comparing the results, the traffic distribution ratio of each link in the next cycle can be determined. Since the comparison is performed according to the priority, packets with higher communication quality can be preferentially transmitted in the next cycle. In this way, when the packets of the next cycle are forwarded according to the traffic distribution ratio, the link with a higher priority can provide sufficient data transmission resources. High-quality resources for links with better communication quality, thereby improving the effect of link aggregation.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,针对流量转发设备的实施例来说,均可以参照前述方法的实施例的介绍对照解释。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the traffic forwarding device, reference may be made to the description of the foregoing method embodiments for comparison and explanation.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、只读光盘存储器(Compact Disc Read-Only Memory,CD-ROM)、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may employ one or more computer-usable storage media (including but not limited to magnetic disk storage, Compact Disc Read-Only Memory (CD-ROM), optical storage medium) having computer-usable program code embodied therein etc.) in the form of a computer program product implemented thereon.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include forms of non-persistent memory, random access memory (RAM) and/or non-volatile memory in computer readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(Parallel Random Access Memory,PRAM)、静态随机存取存储器(Static Random Access Memory,SRAM)、动态随机存取存储器(Dynamic Random Access Memory,DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、快闪记忆体或其他内存技术、只读光盘存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (Parallel Random Access Memory, PRAM), static random access memory (Static Random Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM) , other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other memory technology, only CD-ROM, Digital Versatile Disc (DVD) or other optical storage, magnetic cassette, magnetic tape-disk storage or other magnetic storage device or any other non-transmission medium that can be used to store data that can be accessed by a computing device information. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or inherent to such a process, method, article of manufacture or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.

Claims (14)

一种流量转发设备的链路聚合方法,所述流量转发设备具备待选的至少两条链路,各条所述链路具备各自的优先级,所述方法包括:A link aggregation method for a traffic forwarding device, the traffic forwarding device has at least two links to be selected, each of the links has its own priority, and the method includes: 计算所述流量转发设备在当前周期内向所述至少两条链路转发报文的历史报文流速,并基于所述报文流速预测得到下个周期对应的报文流速;Calculate the historical packet flow rate of the packets forwarded by the traffic forwarding device to the at least two links in the current period, and predict the packet flow rate corresponding to the next period based on the packet flow rate; 按照所述优先级将所述报文流速依次与各条所述链路的限制带宽进行对比,并根据对比结果确定下个周期各条所述链路的流量分发比例;Compare the packet flow rate with the limited bandwidth of each of the links in turn according to the priority, and determine the traffic distribution ratio of each of the links in the next cycle according to the comparison result; 在所述下个周期内,按照所述流量分发比例向各条所述链路转发报文。In the next period, packets are forwarded to each of the links according to the traffic distribution ratio. 根据权利要求1所述的方法,其中,所述报文流速按照以下方式计算:The method of claim 1, wherein the packet flow rate is calculated in the following manner: 识别所述当前周期的时长,并统计所述流量转发设备在所述当前周期内向所述至少两条链路转发的报文总量;Identify the duration of the current period, and count the total amount of packets forwarded by the traffic forwarding device to the at least two links in the current period; 将所述报文总量与所述时长的比值作为所述报文流速。The ratio of the total amount of packets to the duration is used as the packet flow rate. 根据权利要求1所述的方法,其中,按照所述优先级将统计的所述报文流速依次与各条所述链路的限制带宽进行对比包括:The method according to claim 1, wherein sequentially comparing the statistics of the packet flow rate with the limited bandwidth of each link according to the priority comprises: 按照优先级对各条所述链路进行排序,并将所述报文流速按序与各条所述链路的限制带宽依次进行对比;Sort each of the links according to priority, and compare the packet flow rate with the limited bandwidth of each of the links in order; 对于对比过程中的当前链路,确定所述报文流速的冗余流速与所述当前链路的限制带宽的大小关系,并根据所述大小关系判断是否需要与下一条链路的限制带宽进行对比。For the current link in the comparison process, determine the size relationship between the redundant flow rate of the packet flow rate and the limited bandwidth of the current link, and determine whether it is necessary to perform a comparison with the limited bandwidth of the next link according to the size relationship. Compared. 根据权利要求3所述的方法,其中,根据所述大小关系判断是否需要与下一条链路的限制带宽进行对比包括:The method according to claim 3, wherein judging whether it is necessary to compare with the limited bandwidth of the next link according to the magnitude relationship comprises: 若所述报文流速的冗余流速小于或者等于所述当前链路的限制带宽,停止对比过程;If the redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, stop the comparison process; 若所述报文流速的冗余流速大于所述当前链路的限制带宽,更新所述报文流速的冗余流速,并将更新后的冗余流速与下一条链路的限制带宽进行对比。If the redundant flow rate of the packet flow rate is greater than the limited bandwidth of the current link, the redundant flow rate of the packet flow rate is updated, and the updated redundant flow rate is compared with the limited bandwidth of the next link. 根据权利要求4所述的方法,还包括:The method of claim 4, further comprising: 若更新后的冗余流速小于或者等于所述下一条链路的限制带宽,停止对比过程;If the updated redundant flow rate is less than or equal to the limited bandwidth of the next link, stop the comparison process; 若所述更新后的冗余流速大于所述下一条链路的限制带宽,再次更新所述报文流速的冗余流速,并将再次更新的冗余流速与再下一条链路的限制带宽进行对比。If the updated redundant flow rate is greater than the limited bandwidth of the next link, update the redundant flow rate of the packet flow rate again, and compare the updated redundant flow rate with the limited bandwidth of the next link. Compared. 根据权利要求1或3所述的方法,其中,所述对比结果用于表征各条链路从所述报文流速中承担的调配流速;根据对比结果确定下个周期各条所述链路的流量分发比例包括:The method according to claim 1 or 3, wherein the comparison result is used to represent the deployment flow rate assumed by each link from the packet flow rate; and the comparison result is used to determine the flow rate of each link in the next cycle. The proportion of traffic distribution includes: 将各条链路对应的调配流速的比例作为下个周期各条链路的流量分发比例。The proportion of the provisioned flow rate corresponding to each link is taken as the traffic distribution proportion of each link in the next cycle. 根据权利要求6所述的方法,其中,所述调配流速按照以下方式确定:The method of claim 6, wherein the compounded flow rate is determined in the following manner: 对于对比过程中的当前链路,若当前所述报文流速的冗余流速小于或者等于所述当前链路的限制带宽,将当前所述报文流速的冗余流速作为所述当前链路的调配流速;For the current link in the comparison process, if the current redundant flow rate of the packet flow rate is less than or equal to the limited bandwidth of the current link, the current redundant flow rate of the packet flow rate is used as the current link's redundant flow rate. adjust the flow rate; 若当前所述报文流速的冗余流速大于所述当前链路的限制带宽,将所述当前链路的限制带宽作为所述当前链路的调配流速。If the current redundant flow rate of the packet flow rate is greater than the limited bandwidth of the current link, the limited bandwidth of the current link is used as the provisioned flow rate of the current link. 根据权利要求1所述的方法,其中,各条所述链路具备各自的令牌桶;在按照所述流量分发比例向各条所述链路转发报文时,所述方法还包括:The method according to claim 1, wherein each of the links has its own token bucket; when forwarding packets to each of the links according to the traffic distribution ratio, the method further comprises: 在准备将当前报文转发至目标链路时,判断所述目标链路的令牌桶中当前剩余的令牌数量是否大于或者等于所述当前报文的数据量;When preparing to forward the current message to the target link, determine whether the number of tokens currently remaining in the token bucket of the target link is greater than or equal to the data volume of the current message; 若是,将所述当前报文转发至所述目标链路;If so, forward the current message to the target link; 若否,在优先级低于所述目标链路的其它链路中选择一条链路,并将所述当前报文转发至选择的所述链路中。If not, select a link from other links whose priority is lower than the target link, and forward the current packet to the selected link. 根据权利要求8所述的方法,其中,在优先级低于所述目标链路的其它链路中选择一条链路包括:The method of claim 8, wherein selecting a link among other links having a lower priority than the target link comprises: 针对优先级低于所述目标链路的其它链路,按照优先级的顺序查找令牌桶中当前剩余的令牌数量大于或者等于所述当前报文的数据量的链路,并将查找到的首条链路作为选择的链路。For other links with a priority lower than the target link, search for links whose current number of tokens remaining in the token bucket is greater than or equal to the data volume of the current packet in the order of priority, and find the The first link of the selected link is selected. 根据权利要求9所述的方法,还包括:The method of claim 9, further comprising: 若遍历各条所述其它链路,均无法查找到符合要求的链路,将所述当前报文转发至优先级最低的链路中。If each of the other links is traversed, a link that meets the requirements cannot be found, and the current packet is forwarded to the link with the lowest priority. 根据权利要求1所述的方法,其中,所述流量转发设备在当前周期内转发的报文按照报文类型进行分类,并且各类报文均具备自身的优先级;所述方法还包括:The method according to claim 1, wherein the packets forwarded by the traffic forwarding device in the current cycle are classified according to the packet type, and each type of packet has its own priority; the method further comprises: 按照报文的优先级对各类报文进行排序,并在确定了排序结果中当前类型的报文在各条所述链路中的流量分发比例之后,再确定所述排序结果中下一个类型的报文在各条所述链路中的流量分发比例。Sort various types of packets according to their priorities, and after determining the traffic distribution ratio of the current type of packets in each link in the sorting result, then determine the next type in the sorting result The traffic distribution ratio of the packets in each of the links. 根据权利要求11所述的方法,其中,在计算报文流速时,按照报文类型,单独计算各种类型的报文在当前周期内向所述至少两条链路转发报文的报文流速,以根据单独计算的所述转发报文的报文流速,确定各种类型的报文下个周期在各条所述链路中的流量分发比例。The method according to claim 11, wherein, when calculating the packet flow rate, according to the packet type, the packet flow rate of the packets forwarded to the at least two links for various types of packets in the current period is separately calculated, According to the separately calculated packet flow rate of the forwarded packets, the traffic distribution ratio of various types of packets in each of the links in the next period is determined. 根据权利要求12所述的方法,其中,确定各种类型的报文下个周期在各条所述链路中的流量分发比例包括:The method according to claim 12, wherein determining the traffic distribution ratio of various types of packets in each of the links in the next period comprises: 针对当前类型的报文,在各条所述链路中识别下个周期存在冗余带宽的链路,并通过将所述当前类型的报文的报文流速与识别出的各条链路的冗余带宽进行对比,以根据对比结果确定所述当前类型的报文下个周期在各条所述链路中的流量分发比例。For the current type of packet, identify the link with redundant bandwidth in the next period in each of the links, and compare the packet flow rate of the current type of packet with the identified link of each link. The redundant bandwidths are compared, so as to determine the traffic distribution ratio of the current type of packets in each of the links in the next period according to the comparison result. 一种流量转发设备,包括处理器和存储器,所述存储器用于存储计算机程序,所述计算机程序被所述处理器执行时,实现如权利要求1至13中任一权利要求所述的方法。A traffic forwarding device includes a processor and a memory, wherein the memory is used for storing a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 13 is implemented.
PCT/CN2021/071099 2020-12-11 2021-01-11 Link aggregation method for traffic forwarding device and traffic forwarding device Ceased WO2022121079A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011459626.0 2020-12-11
CN202011459626.0A CN112688798A (en) 2020-12-11 2020-12-11 Link aggregation method of traffic forwarding equipment and traffic forwarding equipment

Publications (1)

Publication Number Publication Date
WO2022121079A1 true WO2022121079A1 (en) 2022-06-16

Family

ID=75449256

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071099 Ceased WO2022121079A1 (en) 2020-12-11 2021-01-11 Link aggregation method for traffic forwarding device and traffic forwarding device

Country Status (2)

Country Link
CN (1) CN112688798A (en)
WO (1) WO2022121079A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016357A (en) * 2022-12-09 2023-04-25 中国电信股份有限公司 Data transmission method, device, storage medium and electronic equipment
WO2024040959A1 (en) * 2022-08-22 2024-02-29 中兴通讯股份有限公司 Packet forwarding processing method and apparatus, storage medium, and electronic device
CN119789176A (en) * 2025-03-10 2025-04-08 广东奥飞新能源股份有限公司 Data transmission method and system for multi-radio link aggregation

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115776464A (en) * 2022-11-22 2023-03-10 苏州浪潮智能科技有限公司 Link aggregation method and device, computer equipment and storage medium
CN117076094B (en) * 2023-10-16 2024-01-16 中国船舶集团有限公司第七〇七研究所 Method for concurrently processing multiple tasks of cryptographic operation
CN119520294B (en) * 2025-01-20 2025-07-18 深圳市丰润达科技有限公司 Traffic optimization method, device, equipment and storage medium for multi-link aggregation group protocol peer-to-peer link

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094185A (en) * 2007-07-27 2007-12-26 杭州华三通信技术有限公司 Method and device for forwarding message based on multilink
CN101695050A (en) * 2009-10-19 2010-04-14 浪潮电子信息产业股份有限公司 Dynamic load balancing method based on self-adapting prediction of network flow
CN104869076A (en) * 2014-02-24 2015-08-26 中兴通讯股份有限公司 Load balance adjusting method and device
US20160057659A1 (en) * 2014-08-20 2016-02-25 Hitachi, Ltd. Traffic management system and wireless network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841487A (en) * 2010-05-24 2010-09-22 中兴通讯股份有限公司 Configuration method for aggregating link service flow and packet switching device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094185A (en) * 2007-07-27 2007-12-26 杭州华三通信技术有限公司 Method and device for forwarding message based on multilink
CN101695050A (en) * 2009-10-19 2010-04-14 浪潮电子信息产业股份有限公司 Dynamic load balancing method based on self-adapting prediction of network flow
CN104869076A (en) * 2014-02-24 2015-08-26 中兴通讯股份有限公司 Load balance adjusting method and device
US20160057659A1 (en) * 2014-08-20 2016-02-25 Hitachi, Ltd. Traffic management system and wireless network system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024040959A1 (en) * 2022-08-22 2024-02-29 中兴通讯股份有限公司 Packet forwarding processing method and apparatus, storage medium, and electronic device
CN116016357A (en) * 2022-12-09 2023-04-25 中国电信股份有限公司 Data transmission method, device, storage medium and electronic equipment
CN119789176A (en) * 2025-03-10 2025-04-08 广东奥飞新能源股份有限公司 Data transmission method and system for multi-radio link aggregation

Also Published As

Publication number Publication date
CN112688798A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
WO2022121079A1 (en) Link aggregation method for traffic forwarding device and traffic forwarding device
CN100426733C (en) System for realizing resource distribution in network communication and its method
US10965614B2 (en) Negotiating quality of service for data flows
GB2540647A (en) Negotiating quality of service for data flows
CN102238068B (en) Message transmitting method and system
US10355974B2 (en) Admission control in a packet network
US11616728B2 (en) Modifying quality of service treatment for data flows
US9806987B2 (en) Method and apparatus for reducing response time in information-centric networks
US10341224B2 (en) Layer-3 flow control information routing system
US11843543B2 (en) Alleviating flow congestion at forwarding elements
CN115175265A (en) Transmission path determination method and device, computer equipment and storage medium
WO2019148569A1 (en) Method and system for sending request for acquiring data resource
JP2013507089A (en) Method and apparatus for policing and prioritizing data services
CN102845032A (en) System and method for dynamically adjusting quality of service configuration based on real-time traffic
Ye et al. Delay-based network utility maximization modelling for congestion control in named data networking
WO2013000116A1 (en) Method and device for leaky bucket speed-limitation
US20250227073A1 (en) Scheduling policy determining method and related apparatus
US9001651B2 (en) Method for call admission control in MPLS networks
CN114500388A (en) Method, device and storage medium for distribution circuit by load balancing
AU2015307190A1 (en) Improved network utilization in policy-based networks
US11012378B2 (en) Methods and apparatus for shared buffer allocation in a transport node
CN116545935A (en) Method, device, equipment and storage medium for scheduling anti-affinity service flow
CN114968391A (en) Application program acceleration method and device
Budiardjo et al. Delay based bandwidth allocation in aggregate traffic
Phinjirapong CAFFEINE: Congestion Avoidance For Fairness & Efficiency In Network Entities

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21901798

Country of ref document: EP

Kind code of ref document: A1