Traffic Optimization Method, Device, Equipment and Storage Medium for Peer Links of Multi-Link Aggregation Group Protocol
Through detection and priority determination of target traffic, and combining network load adjustment bandwidth allocation, the problem of insufficient processing of Peerlink isolation direction in MLAG technology is solved, and efficient traffic optimization and performance improvement is achieved.
Patent Information
- Application Number
- CN202510081406.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-01-20
AI Technical Summary
The existing MLAG technology lacks flexibility in the peer-link isolation direction, resulting in network performance degradation and ignoring the isolation requirements of different network traffic, resulting in redundant traffic and performance conflicts.
By detecting the type and direction of the target traffic, determining its priority, and adjusting the bandwidth allocation strategy in real time in combination with network load, monitoring the operating status to redirect traffic or isolate links, and optimizing traffic transmission.
Improve the performance of multi-link aggregation group protocol peer links, avoid network overload and failure impacts, and ensure that traffic is transmitted according to priority.
Smart Images

Figure CN119520294B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of traffic control, and particularly to a method, device, equipment, and storage medium for optimizing the traffic of peer links in a multi-link aggregation group protocol. Background Art
[0002] With the popularization of data centers and large-scale networks, the Multi-Chassis Link Aggregation Group (MLAG) technology has become a common solution for improving network redundancy and reliability. Through the MLAG protocol, redundancy and load balancing of links between multiple switches can be achieved, enhancing network stability without reducing network performance. However, existing MLAG technologies have some defects in certain network topologies, especially in the processing of the isolation direction of peer links. Currently, the Peerlink connections between multiple switches in the MLAG protocol are mainly used for state synchronization and load balancing, but the processing of the isolation direction of Peerlink lacks flexibility, affecting the normal operation of the network. In addition, existing MLAG implementations usually ignore the isolation requirements of different network traffic, resulting in redundant traffic and performance conflicts when data flows through Peerlink. In some application scenarios, the failure or performance bottleneck of Peerlink will lead to a decline in the performance of the entire MLAG link. Therefore, how to improve the performance of peer links in the multi-link aggregation group protocol is still a problem to be solved.
[0003] The above content is only used to assist in understanding the technical solution of this application, and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a method, device, equipment, and storage medium for optimizing the traffic of peer links in a multi-link aggregation group protocol, aiming to solve the technical problem of how to improve the performance of peer links in the multi-link aggregation group protocol.
[0005] To achieve the above purpose, this application proposes a method for optimizing the traffic of peer links in a multi-link aggregation group protocol, and the method includes:
[0006] Detect the target traffic entering the peer link of the multi-link aggregation group protocol;
[0007] Obtain the traffic type and traffic direction of the target traffic, and determine the priority of the target traffic according to the traffic type and the traffic direction;
[0008] Obtain the network load in real time, and determine the bandwidth allocation strategy according to the network load and the priority to complete traffic optimization.
[0009] In one embodiment, the step of determining the priority of the target traffic according to the traffic type and the traffic direction includes:
[0010] Determine whether the target traffic is data traffic according to the traffic type;
[0011] Determine whether the target traffic is in a preset direction according to the traffic direction;
[0012] Determine the target traffic with the traffic type being data traffic and the traffic direction being the preset direction as high priority.
[0013] In one embodiment, the step of determining the bandwidth allocation policy according to the network load and the priority includes:
[0014] Obtain the network congestion information of the peer link according to the network load;
[0015] Determine the bandwidth requirement of the target traffic according to the priority;
[0016] Determine the bandwidth allocation policy of the target traffic according to the network congestion information and the bandwidth requirement.
[0017] In one embodiment, after determining the bandwidth allocation policy of the target traffic according to the network congestion information and the bandwidth requirement, it further includes:
[0018] Real-time obtain the bandwidth utilization rate of the multi-link aggregation group protocol peer link;
[0019] When the bandwidth utilization rate reaches a preset threshold, adjust the bandwidth allocation policy to avoid overloading the peer link.
[0020] In one embodiment, after determining the bandwidth allocation policy according to the network load and the priority to complete traffic optimization, it further includes:
[0021] Monitor the operating status of the multi-link aggregation group protocol peer link;
[0022] When the operating status is traffic overload, redirect part of the target traffic to the backup link;
[0023] When the operating status is link failure, isolate the multi-link aggregation group protocol peer link and redirect the target traffic to the backup link.
[0024] In one embodiment, after isolating the multi-link aggregation group protocol peer link and redirecting the target traffic to the backup link when the operating status is link failure, it further includes:
[0025] Monitor the link failure condition of the multi-link aggregation group protocol peer link;
[0026] When it is detected that the link failure is recovered, then readjust the traffic routing of the multi-link aggregation group protocol peer link.
[0027] In one embodiment, after the step of monitoring the running state of the multi-link aggregation group protocol peer link, it further includes:
[0028] Generate an operation log of the multi-link aggregation group protocol peer link according to the running state;
[0029] When the running state is traffic overload or link failure, then generate an alarm message according to the operation log.
[0030] In addition, to achieve the above object, the present application also proposes a traffic optimization device for a multi-link aggregation group protocol peer link, and the traffic optimization device for the multi-link aggregation group protocol peer link includes:
[0031] A detection module, configured to detect target traffic entering the multi-link aggregation group protocol peer link;
[0032] A determination module, configured to obtain the traffic type and traffic direction of the target traffic, and determine the priority of the target traffic according to the traffic type and the traffic direction;
[0033] An allocation module, configured to obtain the network load in real time, and determine a bandwidth allocation policy according to the network load and the priority to complete traffic optimization.
[0034] In addition, to achieve the above object, the present application also proposes a traffic optimization device for a multi-link aggregation group protocol peer link, and the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the traffic optimization method for the multi-link aggregation group protocol peer link as described above.
[0035] In addition, to achieve the above object, the present application also proposes a storage medium, the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, it implements the steps of the traffic optimization method for the multi-link aggregation group protocol peer link as described above.
[0036] In addition, to achieve the above object, the present application also provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps of the traffic optimization method for the multi-link aggregation group protocol peer link as described above.
[0037] The present application provides a method for optimizing the traffic of peer links in a multi-link aggregation group protocol. The present application detects the target traffic entering the peer links of the multi-link aggregation group protocol; obtains the traffic type and traffic direction of the target traffic, and determines the priority of the target traffic according to the traffic type and the traffic direction; obtains the network load in real time, and determines the bandwidth allocation policy according to the network load and the priority, so as to complete traffic optimization.
[0038] In summary, the present application performs bandwidth allocation based on the network load and the priority of the traffic in the peer link, improving the performance of the peer link of the multi-link aggregation group protocol. Description of the Drawings
[0039] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0041] Figure 1 It is a schematic flowchart provided for Embodiment 1 of the method for optimizing the traffic of peer links in the multi-link aggregation group protocol of the present application;
[0042] Figure 2 It is a schematic network topology diagram of the peer link of the multi-link aggregation group protocol provided for an embodiment of the method for optimizing the traffic of the peer link in the multi-link aggregation group protocol of the present application;
[0043] Figure 3 It is a schematic flowchart provided for Embodiment 2 of the method for optimizing the traffic of peer links in the multi-link aggregation group protocol of the present application;
[0044] Figure 4 It is a schematic module structure diagram of the device for optimizing the traffic of peer links in the multi-link aggregation group protocol for the embodiments of the present application;
[0045] Figure 5 It is a schematic device structure diagram of the hardware operating environment involved in the method for optimizing the traffic of peer links in the multi-link aggregation group protocol for the embodiments of the present application.
[0046] The realization of the purpose, functional features and advantages of the present application will be further described in conjunction with the embodiments with reference to the drawings. Detailed Embodiments
[0047] It should be understood that the specific embodiments described here are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0048] To better understand the technical solution of this application, the following will be described in detail in conjunction with the accompanying drawings of the specification and specific implementation manners.
[0049] The main solution of this application is to detect the target traffic entering the peer link of the multi-link aggregation group protocol; obtain the traffic type and traffic direction of the target traffic, and determine the priority of the target traffic according to the traffic type and the traffic direction; obtain the network load in real time, and determine the bandwidth allocation policy according to the network load and the priority to complete traffic optimization.
[0050] Currently, the Peerlink connection between multiple switches in the MLAG protocol is mainly used for status synchronization and load balancing, but it lacks flexibility in handling the isolation direction of Peerlink, which affects the normal operation of the network. In addition, existing MLAG implementations usually ignore the isolation requirements of different network traffic, resulting in redundant traffic and performance conflicts when data flows through Peerlink. In some application scenarios, the failure or performance bottleneck of Peerlink will cause the performance of the entire MLAG link to decline. Therefore, how to improve the performance of the peer link of the multi-link aggregation group protocol is still a problem to be solved.
[0051] This application performs bandwidth allocation based on the network load and the priority of the traffic in the peer link, improving the performance of the peer link of the multi-link aggregation group protocol.
[0052] Based on this, an embodiment of this application provides a traffic optimization method for the peer link of the multi-link aggregation group protocol. Refer to Figure 1 , Figure 1 This is a schematic flowchart of the first embodiment of the traffic optimization method for the peer link of the multi-link aggregation group protocol of this application.
[0053] In this embodiment, the traffic optimization method for the peer link of the multi-link aggregation group protocol includes steps S10 to S30:
[0054] Step S10: Detect the target traffic entering the peer link of the multi-link aggregation group protocol;
[0055] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device or a traffic optimization device for the peer link of the multi-link aggregation group protocol that can implement the above functions. The following takes the traffic optimization device for the peer link of the multi-link aggregation group protocol as an example to illustrate this embodiment and the following embodiments.
[0056] It should be noted that a multi-link aggregation group, namely MLAG, is a network technology mainly used to improve network reliability and bandwidth. It allows two or more network devices (such as switches or routers) to form a logically aggregated link through multiple physical links, thereby providing higher throughput and redundancy. A peer link, namely Peerlink, is a key link in the MLAG configuration and is used to connect two MLAG peer switches (or other network devices). It is a direct and must-be-aggregated link used to exchange negotiation messages and transmit part of the traffic. The traffic entering the Peerlink can be detected and classified according to the traffic type and traffic direction.
[0057] Step S20: Obtain the traffic type and traffic direction of the target traffic, and determine the priority of the target traffic according to the traffic type and the traffic direction;
[0058] It can be understood that the traffic passing through the peer link of the multi-link aggregation group protocol has different types, such as data traffic, control traffic, etc. In different scenarios, the priorities of different types of traffic are also different, and the priority can be determined according to the traffic type; in addition, the traffic passing through the peer link of the multi-link aggregation group protocol can also be classified according to the traffic direction and jointly determine the priority with the traffic type. Specifically, a traffic monitoring algorithm can be used to detect and identify traffic patterns in real time. For example, the traffic flowing into a certain Peerlink may have a priority and is given preferential treatment according to the traffic type. For reference Figure 2 , Figure 2 is a schematic diagram of the network topology of the peer link of the multi-link aggregation group protocol. Figure 2 In, the function of the heartbeat link is to detect whether the device status is normal. When Host 1 sends data to Host 2, the traffic is first analyzed. If it is identified as a data traffic and it is determined that its flow direction is through the peer link from Switch A to Switch B. And the data traffic is marked as high priority to ensure that the data can pass through the idle link preferentially.
[0059] In a feasible manner, the step of determining the priority of the target traffic according to the traffic type and the traffic direction includes:
[0060] Judge whether the target traffic is data traffic according to the traffic type;
[0061] Judge whether the target traffic is in a preset direction according to the traffic direction;
[0062] Determine the target traffic with the traffic type being data traffic and the traffic direction being the preset direction as high priority.
[0063] It is understandable that in different scenarios, the criteria for determining priorities are different. For example, the target traffic with the traffic type being data traffic and the traffic direction being a preset direction can be determined as having a high priority, while other traffic is determined as having a low priority.
[0064] Step S30: Obtain the network load in real time, and determine a bandwidth allocation strategy based on the network load and the priority to complete traffic optimization.
[0065] It is understandable that after obtaining the network load and the priority, a bandwidth allocation strategy can be formulated through the network load and the priority to ensure that traffic with a high priority can be processed first. Adjust the bandwidth allocation of the Peerlink link according to the real-time network load. Allocate bandwidth for different traffic to ensure that the network bandwidth will not be overloaded and the traffic can be transmitted according to the priority.
[0066] In a feasible manner, the step of determining the bandwidth allocation strategy according to the network load and the priority includes:
[0067] Obtain the network congestion information of the peer link according to the network load;
[0068] Determine the bandwidth requirement of the target traffic according to the priority;
[0069] Determine the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth requirement.
[0070] It is understandable that according to the network congestion information, the traffic situation of the peerlink link can be obtained, and the bandwidth allocation can be carried out in combination with the bandwidth requirement of the target traffic, which can make full use of the peerlink link to complete traffic optimization.
[0071] In a feasible manner, after determining the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth requirement, it further includes:
[0072] Obtain the bandwidth usage rate of the multi-link aggregation group protocol peer link in real time;
[0073] When the bandwidth usage rate reaches a preset threshold, adjust the bandwidth allocation strategy to avoid overloading the peer link.
[0074] It is understandable that during the process of traffic passing through the Peerlink link, the bandwidth usage situation is monitored in real time. If it is found that the bandwidth usage rate of a certain link is too high, the bandwidth allocation strategy can be dynamically adjusted to ensure reasonable traffic allocation and avoid link overloading.
[0075] This embodiment detects the target traffic entering the peer link of the multi-link aggregation group protocol; obtains the traffic type and traffic direction of the target traffic, and determines the priority of the target traffic according to the traffic type and the traffic direction; obtains the network load in real time, and determines the bandwidth allocation strategy according to the network load and the priority, so as to complete traffic optimization.
[0076] In summary, this embodiment allocates bandwidth based on the network load and the priority of the traffic in the peer link, improving the performance of the peer link of the multi-link aggregation group protocol.
[0077] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar content as in the above-mentioned first embodiment can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 3 , after step S30, the traffic optimization method for the peer link of the multi-link aggregation group protocol further includes steps S301 to S303:
[0078] Step S301: Monitor the running state of the peer link of the multi-link aggregation group protocol;
[0079] It can be understood that by monitoring the running state of the peer link of the multi-link aggregation group protocol, the traffic changes in the peer link can be obtained in a timely manner, so as to perform fault handling in a timely manner.
[0080] Step S302: When the running state is traffic overload, redirect part of the target traffic to the standby link;
[0081] It can be understood that when the running state is traffic overload, it means that there is too much traffic on the peerlink, and the standby link of the peerlink can be enabled to share the traffic pressure of the peerlink, and part of the target traffic is redirected to the standby link. For reference, see Figure 2 , assuming that there is congestion in the peer link between switch A and switch B, after detecting the link congestion, part of the traffic can be redirected to other standby links (for example, through another physical link or standby port).
[0082] Step S303: When the running state is a link failure, isolate the peer link of the multi-link aggregation group protocol and redirect the target traffic to the standby link.
[0083] It can be understood that if a link failure occurs, the link needs to be isolated to prevent interference to other traffic. See Figure 2 , if a peer link detects a fault, the health status of the link will be identified through a heartbeat mechanism. Once a fault occurs, the fault recovery function will be immediately started, and the traffic will be guided to the standby link (for example, the second peer standby link from switch A to switch B).
[0084] In a feasible manner, after isolating the multi-link aggregation group protocol peer link and redirecting the target traffic to the standby link when the operating state is a link failure, the following steps are further included:
[0085] Monitor the link failure condition of the multi-link aggregation group protocol peer link;
[0086] When it is detected that the link failure is recovered, readjust the traffic routing of the multi-link aggregation group protocol peer link.
[0087] It is understandable that after the failed link is recovered, the traffic routing will be readjusted to ensure balanced load on the link. Refer to Figure 2 , the normal traffic transmission is from Host 1 to Switch A to the peer link to Switch B to Host 2. After detecting the peer link failure, the traffic between Switch A and Switch B automatically switches to the standby link. When the peer link is recovered, the traffic is redistributed back to the original link. And a success confirmation or failure feedback message will be sent to the M-LAG module so that the M-LAG module can update the internal configuration synchronization status and take corresponding subsequent measures.
[0088] In a feasible manner, after the step of monitoring the operating state of the multi-link aggregation group protocol peer link, the following steps are further included:
[0089] Generate an operating log of the multi-link aggregation group protocol peer link according to the operating state;
[0090] When the operating state is traffic overload or link failure, generate an alarm message according to the operating log.
[0091] It is understandable that by generating the operating log, the historical operating conditions of the link can be recorded for subsequent traceability, and an alarm message can be generated according to the operating log when the operating state is traffic overload or link failure for timely handling.
[0092] This embodiment monitors the operating state of the multi-link aggregation group protocol peer link; when the operating state is traffic overload, redirect part of the target traffic to the standby link; when the operating state is a link failure, isolate the multi-link aggregation group protocol peer link and redirect the target traffic to the standby link.
[0093] In summary, this embodiment improves the performance of the multi-link aggregation group protocol peer link by monitoring the operating state of the peer link and performing corresponding processing according to the change of the operating state.
[0094] This application further provides a traffic optimization device for the multi-link aggregation group protocol peer link. Please refer to Figure 4, the traffic optimization device for the multi-link aggregation group protocol peer link includes:
[0095] A detection module 10, configured to detect the target traffic entering the multi-link aggregation group protocol peer link;
[0096] A determination module 20, configured to obtain the traffic type and traffic direction of the target traffic, and determine the priority of the target traffic according to the traffic type and the traffic direction;
[0097] An allocation module 30, configured to obtain the network load in real time, and determine a bandwidth allocation policy according to the network load and the priority, so as to complete traffic optimization.
[0098] In this embodiment, the target traffic entering the multi-link aggregation group protocol peer link is detected; the traffic type and traffic direction of the target traffic are obtained, and the priority of the target traffic is determined according to the traffic type and the traffic direction; the network load is obtained in real time, and a bandwidth allocation policy is determined according to the network load and the priority, so as to complete traffic optimization.
[0099] In summary, in this embodiment, bandwidth allocation is performed through the network load and the priority of the traffic in the peer link, improving the performance of the multi-link aggregation group protocol peer link.
[0100] In one embodiment, the determination module 20 is further configured to determine whether the target traffic is data traffic according to the traffic type; determine whether the target traffic is in a preset direction according to the traffic direction; and determine the target traffic with the traffic type being data traffic and the traffic direction being the preset direction as high priority.
[0101] In one embodiment, the allocation module 30 is further configured to obtain network congestion information of the peer link according to the network load; determine the bandwidth requirement of the target traffic according to the priority; and determine the bandwidth allocation policy of the target traffic according to the network congestion information and the bandwidth requirement.
[0102] In one embodiment, the allocation module 30 is further configured to obtain the bandwidth utilization rate of the multi-link aggregation group protocol peer link in real time; when the bandwidth utilization rate reaches a preset threshold, adjust the bandwidth allocation policy to avoid overloading the peer link.
[0103] In one embodiment, the allocation module 30 is further configured to monitor the operating state of the multi-link aggregation group protocol peer link; when the operating state is traffic overload, redirect some of the target traffic to a standby link; when the operating state is a link failure, isolate the multi-link aggregation group protocol peer link and redirect the target traffic to a standby link.
[0104] In one embodiment, the allocation module 30 is further configured to monitor the link failure condition of the multi-link aggregation group protocol peer link; when it is detected that the link failure is restored, the traffic routing of the multi-link aggregation group protocol peer link is readjusted.
[0105] In one embodiment, the allocation module 30 is further configured to generate an operation log of the multi-link aggregation group protocol peer link according to the operation state; when the operation state is traffic overload or link failure, an alarm message is generated according to the operation log.
[0106] The traffic optimization device for the multi-link aggregation group protocol peer link provided by the present application adopts the traffic optimization method for the multi-link aggregation group protocol peer link in the above embodiment, and can solve the technical problem of how to improve the performance of the multi-link aggregation group protocol peer link. Compared with the prior art, the beneficial effects of the traffic optimization device for the multi-link aggregation group protocol peer link provided by the present application are the same as those of the traffic optimization method for the multi-link aggregation group protocol peer link provided by the above embodiment, and other technical features in the traffic optimization device for the multi-link aggregation group protocol peer link are the same as the features disclosed in the method of the above embodiment, and will not be elaborated herein.
[0107] The present application provides a traffic optimization device for a multi-link aggregation group protocol peer link. The traffic optimization device for the multi-link aggregation group protocol peer link includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the traffic optimization method for the multi-link aggregation group protocol peer link in the first embodiment above.
[0108] Next, refer to Figure 5 , which shows a schematic structural diagram of a traffic optimization device for a multi-link aggregation group protocol peer link suitable for implementing the embodiments of the present application. The traffic optimization device for the multi-link aggregation group protocol peer link in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The traffic optimization device for the multi-link aggregation group protocol peer link shown is only an example, and should not impose any limitation on the functions and usage scope of the embodiments of the present application.
[0109] As shown Figure 5 in the figure, the traffic optimization device for the multi-link aggregation group protocol peer link may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the traffic optimization device for the multi-link aggregation group protocol peer link are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the traffic optimization device for the multi-link aggregation group protocol peer link to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a traffic optimization device for the multi-link aggregation group protocol peer link with various systems, it should be understood that it is not required to implement or have all the shown systems. Instead, more or fewer systems may be implemented or had.
[0110] Specifically, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above functions defined in the methods of the embodiments disclosed in the present application are executed.
[0111] The traffic optimization device for the peer link of the multi-link aggregation group protocol provided by this application adopts the traffic optimization method for the peer link of the multi-link aggregation group protocol in the above embodiment, and can solve the technical problem of how to improve the performance of the peer link of the multi-link aggregation group protocol. Compared with the prior art, the beneficial effects of the traffic optimization device for the peer link of the multi-link aggregation group protocol provided by this application are the same as those of the traffic optimization method for the peer link of the multi-link aggregation group protocol provided by the above embodiment, and other technical features in the traffic optimization device for the peer link of the multi-link aggregation group protocol are the same as the features disclosed in the method of the previous embodiment, which will not be elaborated here.
[0112] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0113] As mentioned above, the above are only specific embodiments of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed in this application can easily think of changes or substitutions, which should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
[0114] This application provides a computer-readable storage medium with computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the traffic optimization method for the peer link of the multi-link aggregation group protocol in the above embodiment.
[0115] The computer-readable storage medium provided by the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0116] The above computer-readable storage medium may be included in a traffic optimization device for multi-link aggregation group protocol peer links; or it may exist separately and not be assembled into a traffic optimization device for multi-link aggregation group protocol peer links.
[0117] The above computer-readable storage medium carries one or more programs. When the one or more programs are executed by a traffic optimization device for multi-link aggregation group protocol peer links, the traffic optimization device for multi-link aggregation group protocol peer links is caused to: detect target traffic entering the multi-link aggregation group protocol peer link; obtain the traffic type and traffic direction of the target traffic, and determine the priority of the target traffic according to the traffic type and the traffic direction; obtain the network load in real time, and determine a bandwidth allocation policy according to the network load and the priority to complete traffic optimization.
[0118] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN: Local Area Network) or a wide area network (WAN: Wide Area Network), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0120] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.
[0121] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above-mentioned traffic optimization method for peer links of a multi-link aggregation group protocol, and can solve the technical problem of how to improve the performance of peer links of a multi-link aggregation group protocol. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the traffic optimization method for peer links of a multi-link aggregation group protocol provided in the above embodiments, and will not be elaborated here.
[0122] The present application also provides a computer program product, including a computer program, where when the computer program is executed by a processor, the steps of the traffic optimization method for the peer links of the multi-link aggregation group protocol as described above are implemented.
[0123] The computer program product provided by the present application can solve the technical problem of how to improve the performance of the peer links of the multi-link aggregation group protocol. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the traffic optimization method for the peer links of the multi-link aggregation group protocol provided in the above embodiments, and will not be elaborated here.
[0124] The foregoing are only partial embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.
Claims
1. A method for optimizing traffic of peer links in a multi-link aggregation group protocol, characterized in that The method described above includes: Detecting target traffic entering the peer links of the multi-link aggregation group protocol; Obtaining the traffic type and traffic direction of the target traffic, and determining the priority of the target traffic according to the traffic type and the traffic direction; Obtaining the network load in real time, and determining a bandwidth allocation strategy according to the network load and the priority to complete traffic optimization; Among them, the step of determining the bandwidth allocation strategy according to the network load and the priority includes: Obtaining network congestion information of the peer link according to the network load; Determining the bandwidth requirement of the target traffic according to the priority; Determining the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth requirement; Among them, after determining the bandwidth allocation strategy according to the network load and the priority to complete traffic optimization, it further includes: Monitoring the running state of the peer links of the multi-link aggregation group protocol; When the running state is traffic overload, redirecting part of the target traffic to the backup link; When the running state is link failure, isolating the peer links of the multi-link aggregation group protocol and redirecting the target traffic to the backup link.
2. The method according to claim 1, characterized in that, The step of determining the priority of the target traffic according to the traffic type and the traffic direction includes: Judging whether the target traffic is data traffic according to the traffic type; Judging whether the target traffic is in a preset direction according to the traffic direction; Determining the target traffic with the traffic type being data traffic and the traffic direction being the preset direction as high priority.
3. The method according to claim 1, wherein After determining the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth requirement, it further includes: Obtaining the bandwidth utilization rate of the peer links of the multi-link aggregation group protocol in real time; When the bandwidth utilization rate reaches a preset threshold, adjusting the bandwidth allocation strategy to avoid overload of the peer link.
4. The method according to claim 1, wherein After isolating the peer links of the multi-link aggregation group protocol and redirecting the target traffic to the backup link when the running state is link failure, it further includes: Monitoring the link failure situation of the peer links of the multi-link aggregation group protocol; When it is detected that the link failure is recovered, readjusting the traffic routing of the peer links of the multi-link aggregation group protocol.
5. The method according to claim 1, wherein After the step of monitoring the running state of the peer links of the multi-link aggregation group protocol, it further includes: Generating a running log of the peer links of the multi-link aggregation group protocol according to the running state; When the running state is traffic overload or link failure, generating an alarm message according to the running log.
6. A traffic optimization device for peer links of a multi-link aggregation group protocol, characterized in that, The device includes: A detection module for detecting target traffic entering the peer links of the multi-link aggregation group protocol; A determination module for obtaining the traffic type and traffic direction of the target traffic, and determining the priority of the target traffic according to the traffic type and the traffic direction; An allocation module for obtaining the network load in real time, and determining a bandwidth allocation strategy according to the network load and the priority to complete traffic optimization; Among them, the step of determining the bandwidth allocation strategy according to the network load and the priority includes: Obtain the network congestion information of the peer link according to the network load; Determine the bandwidth requirement of the target traffic according to the priority; Determine the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth requirement; Wherein, after determining the bandwidth allocation strategy according to the network load and the priority to complete traffic optimization, it further includes: Monitor the running state of the multi-link aggregation group protocol peer link; When the running state is traffic overload, redirect part of the target traffic to the backup link; When the running state is link failure, isolate the multi-link aggregation group protocol peer link and redirect the target traffic to the backup link.
7. A traffic optimization device for peer links of a multi-link aggregation group protocol, characterized in that The device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of a method for optimizing the traffic of a multi-link aggregation group protocol peer link as described in any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, it implements a method for optimizing the traffic of a multi-link aggregation group protocol peer link as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Traffic sending method and device
CN112152933A
Link aggregation method of flow forwarding equipment and flow forwarding equipment
CN112688798A