Communication speed limiting method, communication system, network device, readable storage medium and program product

By detecting and adjusting the upper bandwidth threshold of the M-LAG port in the M-LAG system, the problem of waste of communication resources in the existing technology is solved, and precise speed limiting and resource saving at the device level are achieved.

CN118784487APending Publication Date: 2024-10-15CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410997806.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing cross-device link aggregation technology relies on intermediate link forwarding, resulting in a waste of communication resources and the inability to achieve precise device-level speed limiting.

Method used

In the M-LAG system, the first device detects the real-time occupied bandwidth according to the preset detection frequency, determines the remaining available bandwidth based on the speed limit bandwidth of the target service, and sends it to the second device, and adjusts the second device for forwarding the target The bandwidth upper limit of the M-LAG port for business association packets is the remaining available bandwidth, enabling precise speed limiting across device link ports.

Benefits of technology

It achieves precise speed limit across device link ports, reduces the occupation of communication resources between devices, avoids business traffic forwarding, and saves link bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784487A_ABST
    Figure CN118784487A_ABST
Patent Text Reader

Abstract

The invention relates to a communication speed limiting method, a communication system, network equipment, a readable storage medium and a program product. The method comprises the following steps: a first device detects a real-time occupied bandwidth of a first M-LAG port used for forwarding a target service associated message on the first device according to a preset detection frequency; determining a residual available bandwidth based on the real-time occupied bandwidth and a speed-limiting bandwidth corresponding to the target service; and the first device sends the remaining available bandwidth to the second device to indicate the second device to adjust the bandwidth upper limit threshold of a second M-LAG port used for forwarding the target service associated message on the second device to the remaining available bandwidth. According to the invention, accurate speed limitation of the cross-device binding link port is realized, and the first device only needs to send the control signaling to the second device without forwarding the service flow, so that the bandwidth of the link between the two devices is not excessively occupied, and the communication resources between the two devices are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication speed limiting method, a communication system, a network device, a readable storage medium and a program product. Background Art

[0002] Ordinary aggregated links can only be on one device and can only provide link-level protection. When a device fails, ordinary aggregation will not work, so device-level protection technology is needed. M-LAG (Multichassis link aggregation) is a cross-device link aggregation technology based on the IEEE P802.1AX protocol. M-LAG virtualizes two physical devices into one device to achieve cross-device link aggregation, thereby providing device-level redundancy protection and traffic load sharing.

[0003] In the related technology, the traffic is unified to one device through the link between two physical devices, and then the Quality of Service (QOS) is configured on this device to limit the speed. This method relies on forwarding on the intermediate link. As the business expands, the bandwidth demand for the intermediate link gradually increases, resulting in a waste of communication resources. Summary of the invention

[0004] Based on this, it is necessary to provide a communication speed limiting method, apparatus, computer equipment, computer-readable storage medium and computer program product that can save communication resources in response to the above technical problems.

[0005] In a first aspect, the present application provides a communication rate limiting method, which is applied to a first device in an inter-device link aggregation M-LAG system, the M-LAG system including a first device and a second device, one of the first device and the second device being a master device, and the other device being a backup device, including:

[0006] The first device detects the real-time occupied bandwidth of the first M-LAG port on the first device for forwarding the target service-related message according to a preset detection frequency; determines the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service;

[0007] The first device sends the remaining available bandwidth to the second device to instruct the second device to adjust the bandwidth upper limit threshold of the second M-LAG port on the second device used for forwarding the target service-associated message to the remaining available bandwidth.

[0008] In a second aspect, the present application provides a communication speed limiting method, which is applied to a second device in a cross-device link aggregation M-LAG system, the M-LAG system including a first device and a second device, one of the first device and the second device being a primary device, and the other device being a backup device, the method including:

[0009] The second device receives the remaining available bandwidth sent by the first device, where the remaining available bandwidth is determined by the first device based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, and the real-time occupied bandwidth is obtained by the first device detecting the first M-LAG port on the first device for forwarding messages associated with the target service according to a preset detection frequency;

[0010] The second device adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device used for forwarding the target service-related message to the remaining available bandwidth.

[0011] In a third aspect, a communication system is provided, including a first device and a second device, wherein one of the first device and the second device is a master device and the other device is a backup device;

[0012] The first device is used to detect the real-time occupied bandwidth of the first M-LAG port used to forward the target service-related message on the first device according to a preset detection frequency; determine the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service; and send the remaining available bandwidth to the second device;

[0013] The second device is configured to adjust the bandwidth upper limit threshold of the second M-LAG port on the second device used for forwarding the target service-associated message to the remaining available bandwidth.

[0014] In a fourth aspect, a network device is provided. The network device belongs to an inter-device link aggregation M-LAG system. The M-LAG system includes a network device and a peer device. One of the network device and the peer device is a master device, and the other device is a backup device. The network device includes:

[0015] A detection module, configured to detect the real-time occupied bandwidth of the first M-LAG port on the first device for forwarding the target service-related message according to a preset detection frequency; and determine the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service;

[0016] The sending module is used to send the remaining available bandwidth to the opposite device to instruct the opposite device to adjust the bandwidth upper limit threshold of the second M-LAG port on the opposite device used to forward the target service-related message to the remaining available bandwidth.

[0017] In a fifth aspect, a network device is provided. The network device belongs to an inter-device link aggregation M-LAG system. The M-LAG system includes a network device and a peer device. One of the network device and the peer device is a master device, and the other device is a backup device. The network device includes:

[0018] A receiving module, used for receiving the remaining available bandwidth sent by the opposite device, where the remaining available bandwidth is determined by the opposite device based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, and the real-time occupied bandwidth is obtained by the opposite device detecting the first M-LAG port on the opposite device for forwarding the target service-related message according to a preset detection frequency;

[0019] The adjustment module is used to adjust the bandwidth upper limit threshold of the second M-LAG port on the network device used to forward the target service-related message to the remaining available bandwidth.

[0020] In a sixth aspect, the present application further provides a network device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the first aspect or the second aspect when executing the computer program.

[0021] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the method of the first aspect or the second aspect when the computer program is executed by a processor.

[0022] In an eighth aspect, the present application further provides a computer program product, comprising a computer program, which implements the method of the first aspect or the second aspect when executed by a processor.

[0023] In the above communication speed limiting method, communication system, network device, readable storage medium and program product, the first device detects the real-time occupied bandwidth of the first M-LAG port on the first device used to forward target service-related messages according to a preset detection frequency; determines the remaining available bandwidth based on the real-time occupied bandwidth and the speed-limited bandwidth corresponding to the target service; the first device sends the remaining available bandwidth to the second device, and the second device adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device used to forward target service-related messages to the remaining available bandwidth. Accurate speed limiting of cross-device bundled link ports is achieved, and the first device only needs to send control signaling to the second device without forwarding service traffic, and will not occupy too much bandwidth of the link between the two devices, saving communication resources between the two devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments of the present application or the related technologies are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0025] FIG1 is an application framework diagram of a communication speed limiting method in one embodiment;

[0026] Figure 2 It is an application framework diagram of a communication speed limiting method in another embodiment;

[0027] Figure 3 1 is a flow chart of a communication speed limiting method in one embodiment;

[0028] Figure 4 Schematic diagram of the principle of a communication speed limiting method in one embodiment;

[0029] Figure 5 is a flow chart of a communication speed limiting method in another embodiment;

[0030] Figure 6 An example diagram of a communication speed limiting method in an embodiment;

[0031] Figure 7 is a schematic diagram of the structure of a communication system in one embodiment;

[0032] Figure 8 is a structural block diagram of a network device in one embodiment;

[0033] Fig. 9 It is a structural block diagram of a network device in another embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] The communication speed limiting method provided in the embodiment of the present application can be applied to the framework shown in Figure 1. The framework shown in Figure 1 includes a target network device and a multichassis link aggregation group (M-LAG) system. The target network device carries a target service, and the target service is dual-homed to two devices in the M-LAG system. For the convenience of description, the two devices in the M-LAG system are referred to as the first device and the second device. The port on the first device used to forward the target service-related message is the first port, and the port on the second device used to forward the target service-related message is the second port. According to the relevant protocol, the first device and the second device will perform Distributed Relay Control Protocol (DRCP) negotiation, M-LAG pairing, master-slave negotiation, dual-master detection, data synchronization and other interactions. The communication speed limiting method provided in the embodiment of the present application can be executed after the master-slave negotiation. The communication speed limiting method provided in the embodiment of the present application can be executed by the first device or by the second device. Taking the first device as an example, the first device can detect the real-time occupied bandwidth of the first M-LAG port on the first device used to forward the target service-related message according to the preset detection frequency; determine the remaining available bandwidth based on the real-time occupied bandwidth and the speed-limited bandwidth corresponding to the target service; send the remaining available bandwidth to the second device, and the second device adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device used to forward the target service-related message to the remaining available bandwidth. Accurate speed limiting of the cross-device bundled link port (the above-mentioned first M-LAG port and the second M-LAG port) is achieved, and the first device only needs to send control signaling to the second device, without forwarding service traffic, and will not occupy too much bandwidth of the link between the two devices, saving communication resources between the two devices.

[0036] Optional, see Figure 2 As shown, the target network device can be an optical line terminal (OLT), and the first device and the second device can be two A-Leaf network elements in a leaf-spine network architecture. In this case, the two A-Leaf network elements can be connected to the Spine1 network element and the Spine2 network element respectively, and the Spine1 network element and the Spine2 network element are connected to the core router (CR), and the CR is connected to the public computer Internet.

[0037] The communication speed limiting method provided by the present application is described in detail below with reference to specific embodiments.

[0038] In an exemplary embodiment, Figure 3As shown, a communication speed limiting method is provided, which is described by taking the method applied to the first device in FIG. 1 as an example, and includes the following steps 302 to 304. Among them:

[0039] Step 302: The first device detects the real-time occupied bandwidth of the first M-LAG port on the first device for forwarding messages associated with the target service at a preset detection frequency; and determines the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service.

[0040] Among them, the first device and the second device will perform DRCP negotiation, M-LAG pairing, master-slave negotiation, dual-master detection, data synchronization and other interactions. The communication speed limit method provided in the embodiment of the present application can be executed after the master-slave negotiation. After the master-slave negotiation, the first device may be the master device and the second device may be the backup device; or the first device may be the backup device and the second device may be the master device.

[0041] Among them, the preset detection frequency can be flexibly set according to actual conditions, for example, once per second, once every 2 seconds, etc., and the embodiments of the present application do not limit this.

[0042] Among them, the target service can be any service with a speed limit requirement. For example, the target service can be an Internet dedicated line service, a VPN service, etc. The VPN service can be an L2 VPN service, an L3 VPN service, etc., which is not limited in this embodiment of the present application.

[0043] Among them, in the process of dual-homing the target service to two devices in the M-LAG system, the target service and the M-LAG port can be bound, and the port bound to the target service is used to forward messages associated with the target service. For the convenience of explanation, the M-LAG port bound to the target service on the first device is called the first M-LAG port, and the M-LAG port bound to the target service on the second device is called the second M-LAG port.

[0044] Among them, the speed limit bandwidth corresponding to the target service can be configured on the first device, and the first device can subsequently calculate the remaining available bandwidth based on the speed limit bandwidth. Specifically, the first device can detect the real-time occupied bandwidth of the first M-LAG port according to a preset detection frequency, and after detecting the real-time occupied bandwidth, calculate the remaining available bandwidth based on the speed limit bandwidth and the real-time occupied bandwidth.

[0045] In a possible implementation, after the first device detects the real-time occupied bandwidth, it subtracts the real-time occupied bandwidth from the speed-limited bandwidth to obtain the remaining available bandwidth.

[0046] Optionally, the target service-associated messages are divided into uplink messages and downlink messages. The uplink speed limit bandwidth and downlink speed limit bandwidth corresponding to the target service can be configured on the first device. The first device can detect the uplink real-time occupied bandwidth and the downlink real-time occupied bandwidth of the first M-LAG port according to a preset detection frequency. The uplink remaining bandwidth can be obtained by subtracting the uplink real-time occupied bandwidth from the uplink speed limit bandwidth, and the downlink remaining bandwidth can be obtained by subtracting the downlink real-time occupied bandwidth from the downlink speed limit bandwidth.

[0047] Step 304: The first device sends the remaining available bandwidth to the second device to instruct the second device to adjust the bandwidth upper limit threshold of the second M-LAG port on the second device used for forwarding target service-related messages to the remaining available bandwidth.

[0048] Among them, after the first device calculates the remaining available bandwidth, it can send the remaining available bandwidth to the second device through the link between the first device and the second device. After the second device receives the remaining available bandwidth, the bandwidth upper limit threshold of the second M-LAG port on the second device used to forward the target service associated message is adjusted to the remaining available bandwidth.

[0049] For example, see Figure 4 As shown, after the master-slave negotiation between A-Leaf1 and A-Leaf2, A-Leaf1 becomes the master device and A-Leaf2 becomes the standby device. The speed limit bandwidth corresponding to the target service can be configured on A-Leaf1, that is, the M-LAG master device speed limit policy is configured on A-Leaf1. A-Leaf1 detects the real-time occupied bandwidth of the first M-LAG port according to the preset detection frequency. The first M-LAG port is a port on A-Leaf1 used to forward target service-related messages. Then, based on the master device speed limit policy and the real-time occupied bandwidth, the remaining available bandwidth is calculated as the M-LAG standby device speed limit policy. A-Leaf1 notifies the M-LAG standby device speed limit policy to A-Leaf2 through the peer-link link.

[0050] In the above embodiment, the first device detects the real-time occupied bandwidth of the first M-LAG port on the first device used to forward the target service-related message according to the preset detection frequency; determines the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service; the first device sends the remaining available bandwidth to the second device, and the second device adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device used to forward the target service-related message to the remaining available bandwidth. Accurate speed limit of the cross-device bundled link port is achieved, and the first device only needs to send control signaling to the second device without forwarding service traffic, which will not occupy too much bandwidth of the link between the two devices, saving communication resources between the two devices.

[0051] In some embodiments, the first device is a master device and the second device is a backup device; or, the second device is a master device and the first device is a backup device.

[0052] As described above, the first device and the second device may perform DRCP negotiation, M-LAG pairing, master-slave negotiation, dual-master detection, data synchronization, etc. After the master-slave negotiation, the first device may be the master device and the second device may be the slave device; or the first device may be the slave device and the second device may be the master device.

[0053] Optionally, the communication speed limiting method provided in the embodiment of the present application may be executed by a master device or a backup device.

[0054] In the above embodiment, after the master-slave negotiation between the first device and the second device, the first device may be the master device and the second device may be the backup device; or the first device may be the backup device and the second device may be the master device. The communication speed limiting method provided in the embodiment of the present application can be executed by selecting one of the master and backup devices, and the execution method is more flexible and more feasible.

[0055] In some embodiments, the speed limit bandwidth corresponding to the target service includes: at least one of the uplink speed limit bandwidth or the downlink speed limit bandwidth; accordingly, the real-time occupied bandwidth includes: at least one of the uplink real-time occupied bandwidth or the downlink real-time occupied bandwidth; accordingly, the remaining available bandwidth includes: at least one of the uplink remaining bandwidth or the downlink remaining bandwidth; accordingly, the bandwidth upper limit threshold includes: at least one of the uplink bandwidth threshold or the downlink bandwidth threshold.

[0056] Among them, considering that the target service-related messages are divided into uplink messages and downlink messages, the speed limit bandwidth corresponding to the target service may only have the uplink speed limit bandwidth, or only have the downlink speed limit bandwidth, or include both the uplink speed limit bandwidth and the downlink speed limit bandwidth.

[0057] In the case where the speed limit bandwidth corresponding to the target service may only be the uplink speed limit bandwidth, the first device only needs to detect the uplink real-time occupied bandwidth of the first M-LAG port, and only needs to calculate the uplink remaining bandwidth based on the uplink speed limit bandwidth and the uplink real-time occupied bandwidth; the second device only needs to adjust the uplink bandwidth threshold of the second M-LAG port to the above-mentioned uplink remaining bandwidth.

[0058] In the case where the speed limit bandwidth corresponding to the target service may only be the downlink speed limit bandwidth, the first device only needs to detect the downlink real-time occupied bandwidth of the first M-LAG port, and only needs to calculate the downlink remaining bandwidth based on the downlink speed limit bandwidth and the downlink real-time occupied bandwidth; the second device only needs to adjust the downlink bandwidth threshold of the second M-LAG port to the above-mentioned downlink remaining bandwidth.

[0059] In the case where the speed limit bandwidth corresponding to the target service includes both an uplink speed limit bandwidth and a downlink speed limit bandwidth, the first device needs to detect the uplink real-time occupied bandwidth and the downlink real-time occupied bandwidth of the first M-LAG port, and subtract the uplink real-time occupied bandwidth from the uplink speed limit bandwidth to obtain the uplink residual bandwidth, and subtract the downlink real-time occupied bandwidth from the downlink speed limit bandwidth to obtain the downlink residual bandwidth; the second device needs to adjust the uplink bandwidth threshold of the second M-LAG port to the above-mentioned uplink residual bandwidth, and adjust the downlink bandwidth threshold to the above-mentioned downlink residual bandwidth.

[0060] In the above embodiment, the speed limit bandwidth corresponding to the target service includes: at least one of the uplink speed limit bandwidth or the downlink speed limit bandwidth; correspondingly, the real-time occupied bandwidth includes: at least one of the uplink real-time occupied bandwidth or the downlink real-time occupied bandwidth; correspondingly, the remaining available bandwidth includes: at least one of the uplink remaining bandwidth or the downlink remaining bandwidth; correspondingly, the bandwidth upper limit threshold includes: at least one of the uplink bandwidth threshold or the downlink bandwidth threshold. Accurate speed limit can be achieved for uplink messages and / or downlink messages respectively, which is more flexible.

[0061] In some embodiments, the remaining available bandwidth may be determined in the following manner: the difference between the speed-limited bandwidth corresponding to the target service and the real-time occupied bandwidth is calculated to obtain the remaining available bandwidth.

[0062] The first device detects the real-time occupied bandwidth of the first M-LAG port at a preset detection frequency. Each time the real-time occupied bandwidth is detected, the speed limit bandwidth corresponding to the target service is subtracted from the real-time occupied bandwidth, and the difference is used as the remaining available bandwidth.

[0063] Among them, when the speed limit bandwidth corresponding to the target service includes an uplink speed limit bandwidth and a downlink speed limit bandwidth, the first device detects the uplink real-time occupied bandwidth and the downlink real-time occupied bandwidth of the first M-LAG port according to a preset detection frequency. Each time the uplink real-time occupied bandwidth and the downlink real-time occupied bandwidth are detected, the uplink remaining bandwidth is obtained by subtracting the uplink real-time occupied bandwidth from the uplink speed limit bandwidth, and the downlink remaining bandwidth is obtained by subtracting the downlink real-time occupied bandwidth from the downlink speed limit bandwidth.

[0064] In the above embodiment, the first device uses the speed limit bandwidth corresponding to the target service minus the real-time occupied bandwidth to obtain the remaining available bandwidth. The first device can send the remaining available bandwidth to the second device, and the second device can adjust the bandwidth upper limit threshold of the second M-LAG port based on the remaining available bandwidth, thereby achieving accurate speed limiting of the cross-device bundled link ports.

[0065] In some embodiments, the first device may send the remaining available bandwidth to the second device in the following manner: the first device adds the remaining available bandwidth to a data synchronization message, and sends it to the second device via a direct aggregation link peer-link between the first device and the second device. The data synchronization message is a message used to synchronize peer information in the cross-device link aggregation M-LAG technology.

[0066] As described above, the first device and the second device will perform DRCP negotiation, M-LAG pairing, master-slave negotiation, dual master detection, data synchronization and other interactions. During the data synchronization process, the first device needs to send a data synchronization message to the second device to synchronize the information of the peer (i.e., the second device). The first device sends the data synchronization message to the second device through the direct aggregated link peer-link between the first device and the second device.

[0067] Among them, each time the first device detects the real-time occupied bandwidth and calculates the remaining available bandwidth based on the real-time occupied bandwidth, the remaining available bandwidth can be added to the data synchronization message to be sent to the second device, and the above-mentioned added data synchronization message can be sent to the second device through the direct aggregation link peer-link between the first device and the second device.

[0068] In the above embodiment, after calculating the remaining available bandwidth, the first device adds the remaining available bandwidth to the data synchronization message, and sends it to the second device through the direct aggregation link peer-link between the first device and the second device. This method expands the M-LAG interaction protocol and realizes real-time adjustment of the bandwidth speed limit of the cross-device bundled link port. Moreover, the first device only needs to send control signaling to the second device without forwarding business traffic, and will not occupy too much bandwidth of the link between the two devices, thereby saving communication resources between the two devices.

[0069] In an exemplary embodiment, Figure 5 As shown, a communication speed limiting method is provided, which is described by taking the method applied to the second device in FIG. 1 as an example, and includes the following steps 502 to 504. Among them:

[0070] Step 502: The second device receives the remaining available bandwidth sent by the first device, where the remaining available bandwidth is determined by the first device based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, and the real-time occupied bandwidth is obtained by the first device detecting the first M-LAG port on the first device for forwarding messages associated with the target service according to a preset detection frequency.

[0071] Step 504: The second device adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device used for forwarding the target service-related message to the remaining available bandwidth.

[0072] Among them, the first device can detect the real-time occupied bandwidth of the first M-LAG port on the first device used to forward the target service-related message according to the preset detection frequency; determine the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service; the specific implementation method is described above and will not be repeated here.

[0073] Among them, after the second device receives the remaining available bandwidth, it adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device used to forward the target service-related message to the remaining available bandwidth. In the case where the speed limit bandwidth corresponding to the target service includes both the uplink speed limit bandwidth and the downlink speed limit bandwidth, the remaining available bandwidth sent by the first device includes the uplink remaining bandwidth and the downlink remaining bandwidth. The second device can adjust the uplink bandwidth threshold of the second M-LAG port to the above-mentioned uplink remaining bandwidth, and adjust the downlink bandwidth threshold to the above-mentioned downlink remaining bandwidth.

[0074] In the above embodiment, the second device receives the remaining available bandwidth sent by the first device, and adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device for forwarding target service-related messages to the remaining available bandwidth. This achieves accurate speed limiting of the cross-device bundled link port, and the first device only needs to send control signaling to the second device without forwarding service traffic, which will not occupy too much bandwidth of the link between the two devices, saving communication resources between the two devices.

[0075] In some embodiments, the second device can obtain the remaining available bandwidth in the following manner: the second device receives a data synchronization message sent by the first device through the direct aggregation link peer-link, the data synchronization message includes the remaining available bandwidth added by the first device, and the data synchronization message is a message used to synchronize peer information in the cross-device link aggregation M-LAG technology; the data synchronization message is parsed to obtain the remaining available bandwidth.

[0076] As described above, the first device may add the remaining available bandwidth to the data synchronization message to be sent to the second device, and send the added data synchronization message to the second device via the direct aggregate link peer-link between the first device and the second device.

[0077] In this way, the second device needs to parse the data synchronization message to obtain the remaining available bandwidth, and adjust the bandwidth upper limit threshold of the second M-LAG port on the second device for forwarding target service-related messages to the remaining available bandwidth.

[0078] In the above embodiment, the second device receives the data synchronization message sent by the first device through the direct aggregation link peer-link, and parses the data synchronization message to obtain the remaining available bandwidth. This method expands the capacity of the M-LAG interaction protocol, realizes real-time adjustment of the bandwidth speed limit of the cross-device bundled link port, and the first device only needs to send control signaling to the second device without forwarding business traffic, which will not occupy too much bandwidth of the link between the two devices, saving communication resources between the two devices.

[0079] Here are some examples:

[0080] Assuming that the target service is an Internet dedicated line service, the speed limit bandwidth corresponding to the Internet dedicated line service is: 100M for upstream and 200M for downstream. The communication speed limit method provided in the embodiment of the present application is executed by the main device, see Figure 6 As shown in the figure, the master device detects that the real-time occupied bandwidth of the upstream is 0M and the real-time occupied bandwidth of the downstream is 0M at detection time 1, then the calculated residual bandwidth of the upstream is 100M and the residual bandwidth of the downstream is 200M. In this case, the speed limit strategy of the standby device is: the upstream bandwidth threshold is 100M and the downstream bandwidth threshold is 200M. The master device detects that the real-time occupied bandwidth of the upstream is 20M and the real-time occupied bandwidth of the downstream is 50M at detection time 2, then the calculated residual bandwidth of the upstream is 80M and the residual bandwidth of the downstream is 150M. In this case, the speed limit strategy of the standby device is: the upstream bandwidth threshold is 80M and the downstream bandwidth threshold is 150M. The master device detects that the real-time occupied bandwidth of the upstream is 60M and the real-time occupied bandwidth of the downstream is 150M at detection time 3, then the calculated residual bandwidth of the upstream is 40M and the residual bandwidth of the downstream is 50M. In this case, the speed limit strategy of the standby device is: the upstream bandwidth threshold is 40M and the downstream bandwidth threshold is 50M. At detection time 4, the master device detects that the real-time occupied bandwidth of the upstream is 40M, and the real-time occupied bandwidth of the downstream is 100M. Then, the calculated remaining bandwidth of the upstream is 60M, and the remaining bandwidth of the downstream is 100M. In this case, the speed limit strategy of the backup device is: the upstream bandwidth threshold is 60M, and the downstream bandwidth threshold is 100M. When the overall speed limit is met, the communication resources between the two devices are saved.

[0081] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0082] In some embodiments, see Figure 7 As shown, a communication system is also provided, also called an M-LAG system, including a first device and a second device, one of which is a main device and the other is a backup device; the first device is used to detect the real-time occupied bandwidth of the first M-LAG port on the first device used to forward the target service-related message according to a preset detection frequency; based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, determine the remaining available bandwidth; send the remaining available bandwidth to the second device; the second device is used to adjust the bandwidth upper limit threshold of the second M-LAG port on the second device used to forward the target service-related message to the remaining available bandwidth. The first device and the second device cooperate with each other to implement the principle of the communication speed limit method provided in the present application, see the above description, and will not be repeated here.

[0083] Based on the same inventive concept, the embodiment of the present application also provides a network device for implementing the communication speed limiting method involved above. The implementation scheme for solving the problem provided by the network device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more network device embodiments provided below can refer to the limitations on the communication speed limiting method above, and will not be repeated here.

[0084] In an exemplary embodiment, Figure 8 As shown, a network device is provided, the network device belongs to an inter-device link aggregation M-LAG system, the M-LAG system includes a network device and a peer device, one of the network device and the peer device is a master device, and the other device is a standby device, the network device includes:

[0085] The detection module 801 is used to detect the real-time occupied bandwidth of the first M-LAG port on the first device for forwarding the target service-related message according to a preset detection frequency; based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, determine the remaining available bandwidth;

[0086] The sending module 802 is configured to send the remaining available bandwidth to the peer device to instruct the peer device to adjust the bandwidth upper limit threshold of the second M-LAG port on the peer device used for forwarding target service-related messages to the remaining available bandwidth.

[0087] In some embodiments, the network device is a master device and the peer device is a backup device; or, the network device is a backup device and the peer device is a master device.

[0088] In some embodiments, the speed limit bandwidth corresponding to the target service includes: at least one of the uplink speed limit bandwidth or the downlink speed limit bandwidth; accordingly, the real-time occupied bandwidth includes: at least one of the uplink real-time occupied bandwidth or the downlink real-time occupied bandwidth; accordingly, the remaining available bandwidth includes: at least one of the uplink remaining bandwidth or the downlink remaining bandwidth; accordingly, the bandwidth upper limit threshold includes: at least one of the uplink bandwidth threshold or the downlink bandwidth threshold.

[0089] In some embodiments, the detection module 801 is used to obtain the difference between the speed-limited bandwidth corresponding to the target service and the real-time occupied bandwidth to obtain the remaining available bandwidth.

[0090] In some embodiments, the sending module 802 is used to add the remaining available bandwidth to the data synchronization message and send it to the peer device through the direct aggregation link peer-link between the peer device. The data synchronization message is a message used to synchronize peer information in the cross-device link aggregation M-LAG technology.

[0091] Each module in the above network device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0092] In an exemplary embodiment, Fig. 9 As shown, a network device is provided, the network device belongs to an inter-device link aggregation M-LAG system, the M-LAG system includes a network device and a peer device, one of the network device and the peer device is a master device, and the other device is a standby device, the network device includes:

[0093] The receiving module 901 is used to receive the remaining available bandwidth sent by the opposite device, where the remaining available bandwidth is determined by the opposite device based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, and the real-time occupied bandwidth is obtained by the opposite device detecting the first M-LAG port on the opposite device for forwarding the target service-related message according to a preset detection frequency;

[0094] The adjustment module 902 is configured to adjust the bandwidth upper limit threshold of the second M-LAG port on the network device used for forwarding target service-related messages to the remaining available bandwidth.

[0095] In some embodiments, the receiving module 901 is used to receive a data synchronization message sent by a peer device through a direct aggregation link peer-link, where the data synchronization message includes the remaining available bandwidth added by the peer device, and the data synchronization message is a message used to synchronize peer information in the cross-device link aggregation M-LAG technology; the data synchronization message is parsed to obtain the remaining available bandwidth.

[0096] Each module in the above network device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0097] In an exemplary embodiment, a network device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps on the first device side or the steps on the second device side in the above embodiment are implemented.

[0098] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps on the first device side or the steps on the second device side in the above embodiment are implemented.

[0099] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps on the first device side or the steps on the second device side in the above-mentioned embodiment.

[0100] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0101] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0102] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A communication speed limiting method, characterized in that: The method is applied to a first device in an inter-device link aggregation M-LAG system, wherein the M-LAG system includes a first device and a second device, wherein one of the first device and the second device is a primary device and the other device is a secondary device, and wherein the method includes: The first device detects, according to a preset detection frequency, a real-time occupied bandwidth of a first M-LAG port on the first device used to forward a target service-related message; and determines a remaining available bandwidth based on the real-time occupied bandwidth and a speed-limited bandwidth corresponding to the target service; The first device sends the remaining available bandwidth to the second device to instruct the second device to adjust the bandwidth upper limit threshold of the second M-LAG port on the second device used for forwarding the target service-related message to the remaining available bandwidth.

2. The method according to claim 1, characterized in that: The first device is a primary device, and the second device is a secondary device; or, The second device is a master device, and the first device is a backup device.

3. The method according to claim 1, characterized in that The speed limit bandwidth corresponding to the target service includes: at least one of an uplink speed limit bandwidth or a downlink speed limit bandwidth; Accordingly, the real-time occupied bandwidth includes: at least one of the uplink real-time occupied bandwidth and the downlink real-time occupied bandwidth; Accordingly, the remaining available bandwidth includes: at least one of an uplink remaining bandwidth or a downlink remaining bandwidth; Correspondingly, the bandwidth upper limit threshold includes: at least one of an uplink bandwidth threshold or a downlink bandwidth threshold.

4. The method according to claim 1, characterized in that: The determining the remaining available bandwidth based on the real-time occupied bandwidth and the speed-limited bandwidth corresponding to the target service includes: The difference between the speed limit bandwidth corresponding to the target service and the real-time occupied bandwidth is calculated to obtain the remaining available bandwidth.

5. The method according to claim 1, characterized in that The first device sending the remaining available bandwidth to the second device includes: The first device adds the remaining available bandwidth to a data synchronization message, and sends it to the second device via a direct aggregation link peer-link between the first device and the second device. The data synchronization message is a message used to synchronize peer information in the cross-device link aggregation M-LAG technology.

6. A communication speed limiting method, characterized in that: Applied to a second device in an inter-device link aggregation M-LAG system, the M-LAG system comprising a first device and a second device, one of the first device and the second device being a primary device and the other being a secondary device, the method comprising: The second device receives the remaining available bandwidth sent by the first device, where the remaining available bandwidth is determined by the first device based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, and the real-time occupied bandwidth is obtained by the first device detecting, according to a preset detection frequency, a first M-LAG port on the first device used to forward the target service-related message; The second device adjusts the bandwidth upper limit threshold of the second M-LAG port on the second device used for forwarding the target service-related message to the remaining available bandwidth.

7. The method according to claim 6, characterized in that The second device receiving the remaining available bandwidth sent by the first device includes: The second device receives a data synchronization message sent by the first device through the direct aggregation link peer-link, where the data synchronization message includes the remaining available bandwidth added by the first device, and the data synchronization message is a message used to synchronize peer information in the cross-device link aggregation M-LAG technology; The data synchronization message is parsed to obtain the remaining available bandwidth.

8. A communication system, characterized in that: It includes a first device and a second device, wherein one of the first device and the second device is a main device and the other device is a backup device; The first device is used to detect the real-time occupied bandwidth of the first M-LAG port used to forward the target service-related message on the first device according to a preset detection frequency; determine the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service; sending the remaining available bandwidth to the second device; The second device is configured to adjust a bandwidth upper limit threshold of a second M-LAG port on the second device used for forwarding the target service-related message to the remaining available bandwidth.

9. A network device, characterized in that: The network device belongs to an inter-device link aggregation M-LAG system, the M-LAG system includes the network device and a peer device, one of the network device and the peer device is a primary device, and the other is a backup device, and the network device includes: A detection module, configured to detect the real-time occupied bandwidth of the first M-LAG port used to forward the target service-related message on the first device according to a preset detection frequency; and determine the remaining available bandwidth based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service; The sending module is used to send the remaining available bandwidth to the opposite device to instruct the opposite device to adjust the bandwidth upper limit threshold of the second M-LAG port on the opposite device used for forwarding the target service-related message to the remaining available bandwidth.

10. A network device, characterized in that: The network device belongs to an inter-device link aggregation M-LAG system, the M-LAG system includes the network device and a peer device, one of the network device and the peer device is a primary device, and the other is a backup device, and the network device includes: a receiving module, configured to receive a remaining available bandwidth sent by the opposite device, wherein the remaining available bandwidth is determined by the opposite device based on the real-time occupied bandwidth and the speed limit bandwidth corresponding to the target service, and the real-time occupied bandwidth is obtained by the opposite device detecting a first M-LAG port on the opposite device for forwarding a message associated with the target service according to a preset detection frequency; The adjustment module is used to adjust the bandwidth upper limit threshold of the second M-LAG port on the network device used to forward the target service-related message to the remaining available bandwidth.

11. A network device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • MLAG environment flow load balancing method, equipment and medium

    CN119383138A