Traffic optimization method, device and equipment for peer-to-peer link of multi-link aggregation group protocol, and storage medium

By detecting and optimizing the traffic of the multi-link aggregation group protocol peer link, adjusting bandwidth allocation in real time according to network load and traffic priority, the problem of peer link performance in the existing technology is solved and a more efficient network is achieved Traffic management.

CN119520294AActive Publication Date: 2025-02-25SHENZHEN FENGRUNDA TECH CO LTD

Patent Information

Application Number
CN202510081406.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-02-25
Estimated Expiration
2045-01-20

AI Technical Summary

Technical Problem

The lack of flexibility in existing multi-link aggregation group protocol peer links in the network topology leads to degradation of network performance, especially in the event of Peerlink failure or performance bottlenecks, the performance of the entire MLAG link will be affected.

Method used

By detecting the target traffic entering the multi-link aggregation group protocol peer link, obtaining traffic types and directions, determining priority, and adjusting bandwidth allocation policies in real time according to network load and priority to complete traffic optimization.

Benefits of technology

The performance of multi-link aggregation group protocol peer link is improved, ensuring efficient allocation and optimization of network traffic, and avoiding performance degradation caused by Peerlink overload and failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520294A_ABST
    Figure CN119520294A_ABST
Patent Text Reader

Abstract

The invention discloses a flow optimization method, device and equipment for a multi-link aggregation group protocol peer-to-peer link and a storage medium, and relates to the technical field of flow control, and the flow optimization method for the multi-link aggregation group protocol peer-to-peer link comprises the steps: detecting target flow entering the multi-link aggregation group protocol peer-to-peer link; acquiring the flow type and the flow direction of the target flow, and determining the priority of the target flow according to the flow type and the flow direction; and acquiring a network load in real time, and determining a bandwidth allocation strategy according to the network load and the priority to complete flow optimization. According to the invention, the performance of the peer-to-peer link of the multi-link aggregation group protocol can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of flow control, and in particular to a flow optimization method, device, equipment and storage medium for a peer link of a multi-link aggregation group protocol. Background Art

[0002] With the popularity of data centers and large-scale networks, Multi-Chassis Link Aggregation Group (MLAG) technology has become a common solution to improve network redundancy and reliability. Through the MLAG protocol, redundancy and load balancing of links between multiple switches can be achieved, which enhances the stability of the network without reducing network performance. However, the existing MLAG technology has some defects in some network topologies, especially in the processing of peer link isolation direction. At present, the MLAG protocol is mainly used for synchronization status and load balancing in the peer link connection between multiple switches, but the processing of the peer link isolation direction lacks flexibility, which affects the normal operation of the network. In addition, the existing MLAG implementation usually ignores the isolation requirements of different network traffic, resulting in redundant traffic and performance conflicts when the data flow passes through the peer link. In some application scenarios, the failure or performance bottleneck of the peer link will cause the performance of the entire MLAG link to degrade. Therefore, how to improve the performance of the multi-link aggregation group protocol peer link is a problem that still needs to be solved.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present application is to provide a traffic optimization method, device, equipment and storage medium for a multi-link aggregation group protocol peer link, aiming to solve the technical problem of how to improve the performance of a multi-link aggregation group protocol peer link.

[0005] To achieve the above object, the present application proposes a method for optimizing the traffic of a multi-link aggregation group protocol peer link, the method comprising: Detect target traffic entering a multi-link aggregation group protocol peer link; Acquire 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; The network load is acquired in real time, and a bandwidth allocation strategy is determined according to the network load and the priority to achieve traffic optimization.

[0006] In one embodiment, the step of determining the priority of the target traffic according to the traffic type and the traffic direction includes: Determining whether the target traffic is data traffic according to the traffic type; Determining whether the target flow is in a preset direction according to the flow direction; The target traffic whose traffic type is data traffic and whose traffic direction is a preset direction is determined as a high priority.

[0007] In one embodiment, the step of determining the bandwidth allocation strategy according to the network load and the priority includes: Obtaining network congestion information of a peer link according to the network load; Determining the bandwidth requirement of the target traffic according to the priority; A bandwidth allocation strategy for the target traffic is determined according to the network congestion information and the bandwidth demand.

[0008] In one embodiment, after determining the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth demand, the method further includes: Obtain the bandwidth usage of multi-link aggregation group protocol peer links in real time; When the bandwidth usage reaches a preset threshold, the bandwidth allocation strategy is adjusted to avoid overloading of the peer link.

[0009] In one embodiment, after determining the bandwidth allocation strategy according to the network load and the priority to complete the traffic optimization, the method further includes: Monitor the operating status of multi-link aggregation group protocol peer links; When the operating state is traffic overload, redirecting part of the target traffic to a standby link; When the operating state is a link failure, the multi-link aggregation group protocol peer link is isolated, and the target traffic is redirected to a standby link.

[0010] In one embodiment, when the operating state is a link failure, the multi-link aggregation group protocol peer link is isolated, and the target traffic is redirected to the standby link, further comprising: Monitor link failures of multi-link aggregation group protocol peer links; When link failure recovery is detected, the traffic routing of the multi-link aggregation group protocol peer link is readjusted.

[0011] In one embodiment, after the step of monitoring the running status of the multi-link aggregation group protocol peer link, the method further includes: Generate an operation log of the multi-link aggregation group protocol peer link according to the operation status; When the operation status is traffic overload or link failure, alarm information is generated according to the operation log.

[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a traffic optimization device for a multi-link aggregation group protocol peer link, and the traffic optimization device for a multi-link aggregation group protocol peer link includes: A detection module, used for detecting target traffic entering a multi-link aggregation group protocol peer link; A determination module, used 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; The allocation module is used to obtain the network load in real time and determine the bandwidth allocation strategy according to the network load and the priority to achieve traffic optimization.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a traffic optimization device for a multi-link aggregation group protocol peer link, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the traffic optimization method for a multi-link aggregation group protocol peer link as described above.

[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the traffic optimization method of the multi-link aggregation group protocol peer link as described above are implemented.

[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the traffic optimization method of the multi-link aggregation group protocol peer link as described above.

[0016] The present application provides a method for traffic optimization of a multi-link aggregation group protocol peer link. The present application detects target traffic entering the multi-link aggregation group protocol peer link; 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 to complete traffic optimization.

[0017] In summary, the present application allocates bandwidth according to the network load and the priority of the traffic in the peer link, thereby improving the performance of the multi-link aggregation group protocol peer link. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 A flow chart of a method for optimizing traffic of a peer link of a multi-link aggregation group protocol according to an embodiment of the present invention; Figure 2 A schematic diagram of a network topology of a multi-link aggregation group protocol peer link provided in accordance with an embodiment of a method for optimizing traffic flow of a multi-link aggregation group protocol peer link of the present application; Figure 3 A flow chart of the second embodiment of the method for optimizing the traffic of a peer link of a multi-link aggregation group protocol of the present application; Figure 4 A schematic diagram of the module structure of a traffic optimization device for a multi-link aggregation group protocol peer link according to an embodiment of the present application; Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the traffic optimization method of the multi-link aggregation group protocol peer link in the embodiment of the present application.

[0021] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0023] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0024] The main solution of the present application is to detect the 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 the bandwidth allocation strategy according to the network load and the priority to complete traffic optimization.

[0025] At present, the MLAG protocol is mainly used for synchronization and load balancing of Peerlink connections between multiple switches, but the isolation direction of Peerlink lacks flexibility, 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, Peerlink failures or performance bottlenecks will cause the performance of the entire MLAG link to degrade. Therefore, how to improve the performance of the multi-link aggregation group protocol peer link is a problem that still needs to be solved.

[0026] The present application allocates bandwidth by comparing network load with the priority of traffic in peer links, thereby improving the performance of multi-link aggregation group protocol peer links.

[0027] Based on this, the embodiment of the present application provides a method for optimizing the traffic of a multi-link aggregation group protocol peer link, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for traffic optimization of peer links of a multi-link aggregation group protocol of the present application.

[0028] In this embodiment, the traffic optimization method of the multi-link aggregation group protocol peer link includes steps S10 to S30: Step S10: Detecting target traffic entering the multi-link aggregation group protocol peer link; 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 capable of realizing the above functions, a traffic optimization device for a multi-link aggregation group protocol peer link, etc. The following takes a traffic optimization device for a multi-link aggregation group protocol peer link as an example to illustrate this embodiment and the following embodiments.

[0029] It should be noted that multi-link aggregation group, or MLAG, is a network technology that is mainly used to improve network reliability and bandwidth. It allows two or more network devices (such as switches or routers) to form a logical aggregate link through multiple physical links, thereby providing higher throughput and redundancy. Peerlink is a key link in the MLAG configuration, used to connect two MLAG peer switches (or other network devices). It is a direct link that must be aggregated, 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.

[0030] Step S20: 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; It is understandable that there are different types of traffic through the multi-link aggregation group protocol peer link, such as data traffic, control traffic, etc. In different scenarios, different types of traffic have different priorities, and the priority can be determined based on the traffic type; in addition, the traffic on the multi-link aggregation group protocol peer link can also be classified by traffic direction, and the priority can be determined together 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 be given priority treatment based on the traffic type. For reference Figure 2 , Figure 2 The figure is a schematic diagram of the network topology of the multi-link aggregation group protocol peer link. Figure 2 In the example, the heartbeat link is used 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 data traffic, it is determined to flow through the peer link from switch A to switch B. The data traffic is marked as high priority to ensure that the data can pass through the idle link first.

[0031] In a feasible manner, the step of determining the priority of the target traffic according to the traffic type and the traffic direction includes: Determining whether the target traffic is data traffic according to the traffic type; Determining whether the target flow is in a preset direction according to the flow direction; The target traffic whose traffic type is data traffic and whose traffic direction is a preset direction is determined as a high priority.

[0032] It is understandable that in different scenarios, the priority determination criteria are different. For example, the target traffic whose traffic type is data traffic and whose traffic direction is a preset direction can be determined as a high priority, while other traffic can be determined as a low priority.

[0033] Step S30: Acquire the network load in real time, and determine the bandwidth allocation strategy according to the network load and the priority to achieve traffic optimization.

[0034] It is understandable that after obtaining the network load and priority, a bandwidth allocation strategy can be formulated based on the network load and the priority to ensure that high-priority traffic can be processed first. The bandwidth allocation of the Peerlink link is adjusted according to the real-time network load. Bandwidth is allocated to different traffic to ensure that the network bandwidth is not overloaded and that traffic can be transmitted according to priority.

[0035] In a feasible manner, the step of determining the bandwidth allocation strategy according to the network load and the priority includes: Obtaining network congestion information of a peer link according to the network load; Determining the bandwidth requirement of the target traffic according to the priority; A bandwidth allocation strategy for the target traffic is determined according to the network congestion information and the bandwidth demand.

[0036] It is understandable that, based on the network congestion information, the traffic situation of the peerlink link can be obtained, and bandwidth allocation can be performed in combination with the bandwidth demand of the target traffic, so that the peerlink link can be fully utilized to complete traffic optimization.

[0037] In a feasible manner, after determining the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth demand, the method further includes: Obtain the bandwidth usage of multi-link aggregation group protocol peer links in real time; When the bandwidth usage reaches a preset threshold, the bandwidth allocation strategy is adjusted to avoid overloading of the peer link.

[0038] It is understandable that in the process of traffic passing through the Peerlink link, the bandwidth usage is monitored in real time. If it is found that the bandwidth usage of a link is too high, the bandwidth allocation strategy can be dynamically adjusted to ensure reasonable traffic allocation and avoid link overload.

[0039] This embodiment detects target traffic entering a multi-link aggregation group protocol peer link; obtains the traffic type and traffic direction of the target traffic, and determines the priority of the target traffic based on the traffic type and the traffic direction; obtains the network load in real time, and determines a bandwidth allocation strategy based on the network load and the priority to complete traffic optimization.

[0040] In summary, this embodiment allocates bandwidth according to the network load and the priority of the traffic in the peer link, thereby improving the performance of the multi-link aggregation group protocol peer link.

[0041] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 After step S30, the traffic optimization method of the multi-link aggregation group protocol peer link further includes steps S301 to S303: Step S301: monitoring the operating status of the multi-link aggregation group protocol peer link; It is understandable that by monitoring the running status of the multi-link aggregation group protocol peer link, the traffic changes in the peer link can be obtained in time, so as to perform fault processing in time.

[0042] Step S302: when the operation state is traffic overload, redirecting part of the target traffic to a standby link; It is understandable that when the operating state is traffic overload, it means that the traffic of peerlink is too much, and the peerlink backup link can be enabled to share the traffic pressure of peerlink and redirect part of the target traffic to the backup link. Figure 2 ,Assume that congestion occurs on the peer link between switch A and switch B, after detecting the link congestion, part of the traffic can be redirected to other backup links (e.g., through another physical link or backup port).

[0043] Step S303: When the operating state is a link failure, the LAPG peer link is isolated and the target traffic is redirected to a standby link.

[0044] It is understandable that if a link failure occurs, the link needs to be isolated to prevent interference with other traffic. Figure 2 If a peer link detects a failure, the heartbeat mechanism will be used to identify the health of the link. Once a failure occurs, the fault recovery function will be immediately activated and the traffic will be directed to the backup link (for example, the second peer backup link from switch A to switch B).

[0045] In a feasible manner, when the operating state is a link failure, the multi-link aggregation group protocol peer link is isolated, and the target traffic is redirected to the standby link, further comprising: Monitor link failures of multi-link aggregation group protocol peer links; When link failure recovery is detected, the traffic routing of the multi-link aggregation group protocol peer link is readjusted.

[0046] It is understandable that when the failed link is restored, the traffic routing will be readjusted to ensure balanced load on the link. Figure 2 , the normal traffic transmission is from host 1 to switch A to peer link to switch B to host 2. After detecting the peer link failure, the traffic of switch A and switch B is automatically switched to the backup link. When the peer link is restored, the traffic is redistributed back to the original link. 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 follow-up measures.

[0047] In a feasible manner, after the step of monitoring the running status of the multi-link aggregation group protocol peer link, the method further includes: Generate an operation log of the multi-link aggregation group protocol peer link according to the operation status; When the operation status is traffic overload or link failure, alarm information is generated according to the operation log.

[0048] It is understandable that by generating an operation log, the historical operation status of the link can be recorded for subsequent backtracking, and alarm information can be generated based on the operation log when the operation status is traffic overload or link failure for timely processing.

[0049] This embodiment monitors the operating status of the multi-link aggregation group protocol peer link; when the operating status is traffic overload, part of the target traffic is redirected to the backup link; when the operating status is link failure, the multi-link aggregation group protocol peer link is isolated and the target traffic is redirected to the backup link.

[0050] In summary, this embodiment improves the performance of the multi-link aggregation group protocol peer link by monitoring the running status of the peer link and performing corresponding processing according to the change of the running status.

[0051] The present application also provides a traffic optimization device for a multi-link aggregation group protocol peer link, please refer to Figure 4 , the traffic optimization device of the multi-link aggregation group protocol peer link includes: A detection module 10, configured to detect target traffic entering a multi-link aggregation group protocol peer link; A determination module 20, configured to obtain a traffic type and a traffic direction of the target traffic, and determine a priority of the target traffic according to the traffic type and the traffic direction; The allocation module 30 is used to obtain the network load in real time and determine the bandwidth allocation strategy according to the network load and the priority to achieve traffic optimization.

[0052] This embodiment detects target traffic entering a multi-link aggregation group protocol peer link; obtains the traffic type and traffic direction of the target traffic, and determines the priority of the target traffic based on the traffic type and the traffic direction; obtains the network load in real time, and determines a bandwidth allocation strategy based on the network load and the priority to complete traffic optimization.

[0053] In summary, this embodiment allocates bandwidth according to the network load and the priority of the traffic in the peer link, thereby improving the performance of the multi-link aggregation group protocol peer link.

[0054] In one embodiment, the determination module 20 is also used to determine whether the target traffic is data traffic based on the traffic type; determine whether the target traffic is a preset direction based on the traffic direction; and determine the target traffic whose traffic type is data traffic and whose traffic direction is a preset direction as a high priority.

[0055] In one embodiment, the allocation module 30 is further used 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 strategy of the target traffic according to the network congestion information and the bandwidth requirement.

[0056] In one embodiment, the allocation module 30 is further used to obtain bandwidth usage of the MLAG peer link in real time; when the bandwidth usage reaches a preset threshold, the bandwidth allocation strategy is adjusted to avoid peer link overload.

[0057] In one embodiment, the allocation module 30 is also used to monitor the operating status of the multi-link aggregation group protocol peer link; when the operating status is traffic overload, part of the target traffic is redirected to the backup link; when the operating status is link failure, the multi-link aggregation group protocol peer link is isolated and the target traffic is redirected to the backup link.

[0058] In one embodiment, the allocation module 30 is further configured to monitor link failures of the LAPG peer links; and when link failure recovery is detected, readjust the traffic routing of the LAPG peer links.

[0059] In one embodiment, the allocation module 30 is further configured to generate an operation log of the MLAG peer link according to the operation status; and generate alarm information according to the operation log when the operation status is traffic overload or link failure.

[0060] 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-mentioned embodiment, which 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 the beneficial effects of the traffic optimization method for the multi-link aggregation group protocol peer link provided by the above-mentioned 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 above-mentioned embodiment method, which will not be repeated here.

[0061] The present application provides a traffic optimization device for a multi-link aggregation group protocol peer link, and the traffic optimization device for a 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 that can be executed 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 above-mentioned embodiment one.

[0062] Reference below Figure 5 , which shows a schematic diagram of the structure of a traffic optimization device for a multi-link aggregation group protocol peer link suitable for implementing an embodiment of the present application. The traffic optimization device for a multi-link aggregation group protocol peer link in an embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted 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 bring any limitation to the functions and scope of use of the embodiments of the present application.

[0063] like Figure 5As shown, 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 processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, 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, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the traffic optimization device of the multi-link aggregation group protocol peer link to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a traffic optimization device of 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 systems shown. More or fewer systems may be implemented or have alternatively.

[0064] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can 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 a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0065] 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-mentioned embodiment, which 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 the beneficial effects of the traffic optimization method for the multi-link aggregation group protocol peer link provided by the above-mentioned 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 previous embodiment, which will not be repeated here.

[0066] It should be understood that the various parts 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 any one or more embodiments or examples in a suitable manner.

[0067] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0068] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the traffic optimization method for a multi-link aggregation group protocol peer link in the above-mentioned embodiment.

[0069] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. 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: Radio Frequency), etc., or any suitable combination of the above.

[0070] The computer-readable storage medium may be included in the traffic optimization device for the multi-link aggregation group protocol peer link; or may exist independently without being assembled into the traffic optimization device for the multi-link aggregation group protocol peer link.

[0071] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the traffic optimization device of the multi-link aggregation group protocol peer link, the traffic optimization device of the multi-link aggregation group protocol peer link: detects the target traffic entering the multi-link aggregation group protocol peer link; 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 to complete the traffic optimization.

[0072] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0073] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0074] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0075] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned traffic optimization method for the multi-link aggregation group protocol peer link, 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 computer-readable storage medium provided by the present application are the same as the beneficial effects of the traffic optimization method for the multi-link aggregation group protocol peer link provided by the above-mentioned embodiment, and will not be repeated here.

[0076] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the traffic optimization method for a multi-link aggregation group protocol peer link as described above.

[0077] The computer program product provided by the present application 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 computer program product provided by the present application are the same as the beneficial effects of the traffic optimization method of the multi-link aggregation group protocol peer link provided by the above embodiment, which will not be repeated here.

[0078] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for optimizing the traffic of a multi-link aggregation group protocol peer link, characterized in that: The method includes: Detect target traffic entering a multi-link aggregation group protocol peer link; Acquire 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; The network load is acquired in real time, and a bandwidth allocation strategy is determined according to the network load and the priority to achieve traffic optimization.

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 comprises: Determining whether the target traffic is data traffic according to the traffic type; Determining whether the target flow is in a preset direction according to the flow direction; The target traffic whose traffic type is data traffic and whose traffic direction is a preset direction is determined as a high priority.

3. The method according to claim 1, characterized in that The step of determining the bandwidth allocation strategy according to the network load and the priority includes: Obtaining network congestion information of a peer link according to the network load; Determining the bandwidth requirement of the target traffic according to the priority; A bandwidth allocation strategy for the target traffic is determined according to the network congestion information and the bandwidth demand.

4. The method according to claim 3, characterized in that After determining the bandwidth allocation strategy of the target traffic according to the network congestion information and the bandwidth demand, the method further includes: Obtain the bandwidth usage of multi-link aggregation group protocol peer links in real time; When the bandwidth usage reaches a preset threshold, the bandwidth allocation strategy is adjusted to avoid overloading of the peer link.

5. The method according to claim 1, characterized in that After the bandwidth allocation strategy is determined according to the network load and the priority to complete the traffic optimization, the method further includes: Monitor the operating status of multi-link aggregation group protocol peer links; When the operating state is traffic overload, redirecting part of the target traffic to a standby link; When the operating state is a link failure, the multi-link aggregation group protocol peer link is isolated, and the target traffic is redirected to a standby link.

6. The method according to claim 5, characterized in that When the operating state is a link failure, the multi-link aggregation group protocol peer link is isolated, and the target traffic is redirected to the standby link, and further includes: Monitor link failures of multi-link aggregation group protocol peer links; When link failure recovery is detected, the traffic routing of the multi-link aggregation group protocol peer link is readjusted.

7. The method according to claim 5, characterized in that After the step of monitoring the running status of the multi-link aggregation group protocol peer link, the method further includes: Generate an operation log of the multi-link aggregation group protocol peer link according to the operation status; When the operation status is traffic overload or link failure, alarm information is generated according to the operation log.

8. A traffic optimization device for a multi-link aggregation group protocol peer link, characterized in that: The device comprises: A detection module, used for detecting target traffic entering a multi-link aggregation group protocol peer link; A determination module, used 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; The allocation module is used to obtain the network load in real time and determine the bandwidth allocation strategy according to the network load and the priority to achieve traffic optimization.

9. A traffic optimization device for a multi-link aggregation group protocol peer link, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of a traffic optimization method for a multi-link aggregation group protocol peer link as described in any one of claims 1 to 7.

10. 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. When the computer program is executed by the processor, a traffic optimization method for a multi-link aggregation group protocol peer link is implemented as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • QoS control method of distinguishing service priorities in SDN

    CN107896192A

  • Traffic sending method and device

    CN112152933A

  • Link aggregation method of flow forwarding equipment and flow forwarding equipment

    CN112688798A

  • Traffic forwarding method and device and storage medium

    CN114268589A

  • Method and system to predict the ingress interface of internet traffic

    US20240039851A1

Cited By

  • Multi-protocol label switching optimization method and device, equipment and storage medium

    CN120675935A