State updating method for link aggregation port, electronic device, storage medium, and program product

By detecting port status changes and updating the corresponding port status in cross-device link aggregation, the packet loss problem caused by insufficient bandwidth is solved, ensuring network stability and normal service operation.

WO2026001582A1PCT designated stage Publication Date: 2026-01-02ZTE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/098787
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-24
Filing Date
2025-06-03
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

In cross-device link aggregation, packet loss due to insufficient bandwidth, especially when the port status of one side of the aggregated link changes but the other side does not change accordingly, leads to reduced bandwidth and packet loss.

Method used

By detecting port status changes in the first-side aggregated link of the first switch device, the number of second ports whose status needs to be updated is determined, and their status is updated to the corresponding open or closed state to match the working bandwidth of the first and second sides, thus avoiding packet loss caused by insufficient bandwidth.

Benefits of technology

It achieves bandwidth matching in cross-device link aggregation, avoids packet loss issues, and ensures network stability and normal service operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025098787_02012026_PF_FP_ABST
    Figure CN2025098787_02012026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a state updating method for a link aggregation port, an electronic device, a storage medium, and a program product. The method comprises: when a state of at least one first port in a first-side aggregated link of a first switch device changes, determining, on the basis of the first port, a target number of second ports requiring a state update, wherein the second port is a port in a first state in a second-side aggregated link of the first switch device, the first port is a sending port of target data, and the second port is a receiving port of the target data; updating the state of the target number of second ports to a second state, wherein the first state is one of an either on state or an off state, the second state is the other of the on state or the off state, and accordingly, when the at least one first port state changes from a normal state to an abnormal state, the second state is the off state.
Need to check novelty before this filing date? Find Prior Art

Description

Method for updating status of link aggregation port, electronic device, storage medium and program product

[0001] Cross-reference to related applications

[0002] The present application claims priority from the Chinese patent application No. 202410820694.7 and titled "Method for updating status of link aggregation port, electronic device, storage medium and program product", filed on June 24, 2024, with the China Patent Office, the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] Embodiments of the present application relate to the field of communication technology, in particular to a method for updating status of link aggregation port, an electronic device, a storage medium and a program product. BACKGROUND

[0004] In the related art, multiple switches in multi-chassis link aggregation (MCLAG) can achieve load balancing and backup for each other when transmitting data, so as to quickly adapt to link faults and achieve automatic link protection switching.

[0005] In the related art, in the case of networking of multiple devices in multi-chassis link aggregation, in order to increase bandwidth, most of the upper connection ports use the method of multi-port link aggregation. However, in the related art, when the state of some ports of one side of the aggregation link of one of the devices in multi-chassis link aggregation changes and the ports of the other side of the aggregation link of the device do not change accordingly, it may cause the side link to have a packet loss problem due to insufficient bandwidth. SUMMARY

[0006] Embodiments of the present application provide a method for updating status of link aggregation port, an electronic device, a storage medium and a program product, which can solve the problem of packet loss due to insufficient bandwidth in multi-chassis link aggregation.

[0007] In a first aspect, a method for updating a state of a link aggregation port is provided. The method includes: in a case where a state of at least one first port in a first side aggregation link of a first switch device changes, determining a target number of second ports whose states need to be updated based on the first port whose state changes in the first side aggregation link, wherein the second ports are ports in a second side aggregation link of the first switch device that are in a first state, the first port is a sending port of target data, and the second port is a receiving port of the target data; and updating the states of the target number of second ports to a second state, wherein the first state is one of an open state and a closed state, the second state is the other of the open state and the closed state, the second state is the closed state corresponding to a case where the state of the at least one first port changes from a normal state to an abnormal state, and the second state is the open state corresponding to a case where the state of the at least one first port changes from the abnormal state to the normal state.

[0008] In a second aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory stores a program or instructions executable on the processor. The program or instructions, when executed by the processor, implement the steps of the method for updating a state of a link aggregation port described above.

[0009] In a third aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores at least one computer program. The computer program is loaded and executed by a processor to implement the method for updating a state of a link aggregation port described above.

[0010] In a fourth aspect, a computer program product is provided. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the method for updating a state of a link aggregation port described above. BRIEF DESCRIPTION OF DRAWINGS

[0011] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles behind the application.

[0012] FIG. 1 shows a flowchart of a method for updating a state of a link aggregation port according to an embodiment of the present application;

[0013] FIG. 2 shows a bandwidth protection forwarding diagram according to an embodiment of the present application;

[0014] FIG. 3 shows a structural block diagram of an electronic device according to an embodiment of the present application;

[0015] FIG. 4 shows a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0016] The exemplary embodiments will be described in detail herein below with reference to the drawings. The following description refers to the accompanying drawings which show by way of examples specific embodiments of the application. In the drawings, like reference numerals indicate like elements, and in which:

[0017] In the related art, in the case of networking of a plurality of devices in a cross-device link aggregation, the uplink port is generally used in a multi-port link aggregation method to increase bandwidth. However, in the related art, when the state of some ports of the aggregation link on one side of one of the devices in the cross-device link aggregation changes and the ports of the aggregation link on the other side of the device do not change accordingly, it can cause the link on the side to have a packet loss problem due to insufficient bandwidth. For example, if some of the aggregation ports of the uplink port of one of the devices are abnormal, but there are other normal ports in the entire aggregation port, the entire MCLAG system will not be triggered to switch, only the bandwidth of the uplink port will be reduced, and the uplink port will not be down. However, in this case, if the uplink traffic is sent to the device with reduced bandwidth (because some of the aggregation links are abnormal), the packet loss due to insufficient bandwidth can occur. To solve the above problem, the embodiments of the present application provide a solution, which will be described below.

[0018] The embodiments of the present application are mainly applied to the scene of link aggregation of a switch device and docking of a server, and the key application scene is the docking scene of the core network of an operator in a cross-device link aggregation network. It is especially suitable for the scene in which the uplink port is an aggregation link port.

[0019] FIG. 1 shows a state updating method of a link aggregation port according to an exemplary embodiment of the present application. The method 100 can be performed by a switch device. As shown in FIG. 1, the method mainly includes the following steps.

[0020] S101: In the case that the state of at least one first port in the first side aggregation link of the first switch device changes, determining the target number of second ports that need to be updated based on the first port whose state changes in the first side aggregation link.

[0021] The second port is a port in a second side aggregation link of the first switch device and in the first state, the first port is a sending port of the target data, and the second port is a receiving port of the target data.

[0022] In the embodiment of the application, the first switch device is used for forwarding target data, and the first switch device can be one of a plurality of switch devices in a network formed by the plurality of devices in a cross-device link aggregation. The network formed by the plurality of devices can further include at least one second switch device. Load balancing can be performed between the first switch device and the second switch device when data is transmitted, and the first switch device and the second switch device are backups of each other.

[0023] In the embodiment of the application, in a case where a state of at least one first port (a sending port of target data) in a first side aggregation link of the first switch device changes, a target number of second ports (ports in a second side aggregation link of the first switch device and in the first state / receiving ports of the target data) that need to be updated in a state can be determined based on the first port, so that the target number of second ports are updated in a state in a subsequent step.

[0024] In the embodiment of the application, the at least one first port is part of the ports in the first side aggregation link.

[0025] S102: updating a state of the target number of second ports to a second state.

[0026] The first state is one of an open state and a closed state, and the second state is the other of the open state and the closed state. Corresponding to a change in the state of the at least one first port from a normal state to an abnormal state, the second state is the closed state. Corresponding to a change in the state of the at least one first port from the abnormal state to the normal state, the second state is the open state.

[0027] In the technical scheme provided in the embodiment of the application, in a case where a state of at least one first port in a first side aggregation link of a first switch device changes, after a target number of second ports is determined, corresponding to a change in the state of the at least one first port from a normal state to an abnormal state, a state of the target number of second ports in a second side aggregation link is updated to a closed state. Corresponding to a change in the state of the at least one first port from the abnormal state to the normal state, a state of the target number of second ports in the second side aggregation link is updated to an open state. It can be ensured that a working bandwidth of the first side aggregation link matches a working bandwidth of the second side aggregation link, and a problem of packet loss due to insufficient bandwidth of the first side aggregation link can be avoided.

[0028] In one implementation, the target data is uplink data. In this implementation, the target data can be data from the server to the upstream device. In this implementation, the target number of the downlink ports (i.e., the second ports) of the first switch device can be updated when the state of the uplink ports (i.e., the first ports) of the first switch device changes, so that the problem of packet loss due to insufficient bandwidth of the uplink link caused by the abnormality of some ports of the aggregated ports of the uplink ports of the first switch device in the cross-device link aggregation and the absence of corresponding changes in the downlink ports can be avoided.

[0029] In one implementation, determining the target number of the second ports in the second side aggregated link of the first switch device that need to be updated based on the first ports in the first side aggregated link that have state changes can include the following steps: Step 1, determining a first proportion of the at least one first port in the first side aggregated link; Step 2, determining a second proportion of the second ports that need to be updated in the second side aggregated link based on the first proportion; and Step 3, determining the target number based on the second proportion.

[0030] In the above implementation, the first proportion of the at least one first port in the first side aggregated link can be determined first, and the first proportion can be obtained by bandwidth, then the second proportion of the second ports that need to be updated in the second side aggregated link is determined based on the first proportion, and finally the target number is determined based on the second proportion, so that the second ports in the second side aggregated link can be updated in proportion to the first ports in the first side aggregated link that have state changes. Because if there is a failure in the first side aggregated link, the bandwidth of the available ports of the second side aggregated link will be greater than the bandwidth of the available ports of the first side aggregated link, and the bandwidth of the data received by the second side aggregated link will be greater than the bandwidth of the data that can be transmitted by the first side aggregated link, resulting in the possibility of packet loss when the data from the second side aggregated link is transmitted by the ports of the first side aggregated link. If the target number is determined according to the first proportion and the second proportion, the ratio between the bandwidth of the received data and the bandwidth of the transmitted data can remain basically unchanged, avoiding the problem of packet loss.

[0031] In the above implementation, determining the second proportion of the second ports that need to be updated in the second side aggregated link based on the first proportion can include determining the second proportion based on a preset threshold and the first proportion, wherein the absolute value of the difference between the first proportion and the second proportion is less than the preset threshold.

[0032] In the optional implementation manner, the absolute value of the difference between the first proportion and the second proportion can be less than a preset threshold, that is, the first proportion is equal or approximately equal to the second proportion, and the second proportion is as equal as possible to the first proportion. The preset threshold can be determined according to actual application, which is not limited in the embodiments of the present application.

[0033] In the implementation manner, the first proportion is a ratio of a first bandwidth to a second bandwidth, where the first bandwidth is a bandwidth of the at least one first port, and the second bandwidth is a total bandwidth of all available ports configured in the first side aggregation link.

[0034] In the embodiments of the present application, the first proportion is a ratio of the first bandwidth (the bandwidth of the at least one first port) to the second bandwidth (the total bandwidth of all available ports configured in the first side aggregation link), that is, a ratio of the bandwidth of the port that has occurred an exception to the total bandwidth of the number of ports configured in the uplink aggregation link. When the switch in one of the cross-device link aggregation devices has some ports in the uplink aggregation link that have occurred an exception, the switch can obtain an abnormal bandwidth proportion (the first proportion) of the uplink bandwidth after the exception according to the total bandwidth of the number of ports configured in the uplink aggregation link and the bandwidth of the port that has occurred an exception.

[0035] In the implementation manner, the second proportion is a ratio of a first number to a second number, where the first number is a number of the second port that needs to update the state, and the second number is a number of all available ports configured in the second side aggregation link; or the second proportion is a ratio of a third bandwidth to a fourth bandwidth, where the third bandwidth is a bandwidth of the second port that needs to update the state, and the fourth bandwidth is a total bandwidth of all available ports configured in the second side aggregation link.

[0036] In the embodiments of the present application, if the types of the downlink ports are the same, the second proportion can be a ratio of the number of the second port that needs to update the state (the first number) to the number of all available ports configured in the second side aggregation link (the second number). Or, the second proportion can be a ratio of the third bandwidth to the fourth bandwidth, where the third bandwidth is the bandwidth of the second port that needs to update the state, and the fourth bandwidth is the total bandwidth of all available ports configured in the second side aggregation link, that is, the second proportion is a ratio of the bandwidth of the port that needs to be processed to the total bandwidth of all available downlink ports. At this time, the second proportion is not limited by the type of the downlink port.

[0037] In one implementation, the updating the state of the target number of second ports in the second side aggregation link in the first state to the second state can include the following steps: Step 1, determining the target number of target second ports from the second ports in the first state in the second side aggregation link based on the priority of each second port in the first state; and Step 2, updating the state of the target second ports to the second state.

[0038] In the above implementation of the embodiments of the present application, in the case that the state of at least one first port in the first side aggregation link of the first switching device changes, the target number of target second ports can be determined from the second ports in the first state in the second side aggregation link based on the priority of each second port in the first state, and then the state of the target second ports is updated to the second state. For example, in the case that the state of at least one first port changes from the normal state to the abnormal state, the target number of target second ports can be determined from the second ports in the first state in the second side aggregation link based on the priority of each second port in the first state, and then the state of the target second ports is updated to the second state. In actual application, the priority of the ports in the aggregation link can be configured according to the user's needs. For example, when the bandwidth of the port is insufficient, the port that needs to be guaranteed in priority can be configured with high priority, and the port with low priority is first included in the set of ports that need to be processed.

[0039] In the above implementation, the determining the target number of target second ports from the second ports in the first state in the second side aggregation link based on the priority of each second port in the first state can include the following steps: in the case that the state of at least one first port changes from the normal state to the abnormal state, determining the target number of second ports with the lowest priority from the second ports in the first state in the second side aggregation link as the target second ports.

[0040] In the above embodiments of the present application, in the case that the state of at least one first port changes from the normal state to the abnormal state, the target number of second ports with the lowest priority from the second ports in the first state in the second side aggregation link can be determined as the target second ports. The second port with low priority has relatively low importance, and the influence on data transmission after being updated to the closed state is small, which is helpful to guarantee the stability of the network.

[0041] In the above implementation, after the updating the state of the target second ports to the second state, the method further includes: recording the state of the target second ports after being updated to the closed state.

[0042] In the embodiments of the present application, after updating the state of the target second port to the second state, the updated state of the target second port can be recorded as the closed state, facilitating subsequent possible recovery processing of the target second port.

[0043] In one implementation, after updating the state of the target second port to the second state, the method further includes switching the service corresponding to the target second port to a port of the second side aggregation link of the second switch device, wherein the second switch device is a switch device performing cross-device link aggregation group networking with the first switch device.

[0044] In the above embodiments of the present application, after selecting the part of the downlink ports (target second ports) that need to be processed and automatically shutting down the part of the ports, the service of the part of the ports will be switched to the normal switch on the other side for forwarding according to the service principle of MCLAG. That is, after updating the state of the target second port to the closed state, the service corresponding to the target second port can be switched to a port of the second side aggregation link of the second switch device. Through such processing, when the uplink port of the switch appears an abnormal situation of insufficient port bandwidth, the part of the downlink ports is shut down, and the part of the downlink ports is automatically switched to the normal switch on the other side for forwarding, thereby achieving the effect of protecting the service.

[0045] In one implementation, determining the target number of target second ports from the second side aggregation link based on the priority of each second port in the second side aggregation link in the first state can include: in the case that the state of the at least one first port changes from the abnormal state to the normal state, determining the target number of second ports with the highest priority from the second ports in the second side aggregation link in the closed state as the target second ports.

[0046] In the embodiments of the present application, in the case that the state of the at least one first port changes from the abnormal state to the normal state, the second port with the high priority is selected as the target second port. In actual situations, for the first side aggregation link, the state of the at least one first port changes from the abnormal state to the normal state, and part of the abnormal ports can be recovered, for example, one or two first ports are recovered, and then the second side aggregation link can recover the corresponding proportion of ports. At this time, the second port with the highest port priority configured by the user can be recovered first, that is, when the recovery operation is performed on the second port in the closed state which has been recorded, the port with the high priority is recovered first, thereby guaranteeing the stability of data transmission.

[0047] In the technical scheme provided by the embodiments of the present application, in the case that the state of at least one first port in the first side aggregation link of the first switching device changes, the state of the target number of second ports in the second side aggregation link is updated to the closed state in response to the state of the at least one first port changing from the normal state to the abnormal state, and the state of the target number of second ports in the second side aggregation link is updated to the open state in response to the state of the at least one first port changing from the abnormal state to the normal state, so that the working bandwidth of the first side aggregation link of the first switching device can be matched with the working bandwidth of the second side aggregation link, and the problem of packet loss caused by insufficient bandwidth of the first side aggregation link can be avoided. Not only the normal operation of the service can be ensured, but also the stability of the network can be improved.

[0048] To further illustrate the technical scheme provided by the embodiments of the present application, two cases are exemplified. As shown in FIG. 2, the device link aggregation switches A and B are networked, the upper connection link of the switch A is A1, A2, A3 and A4 ports, and the four ports are combined into an aggregation link port SG1, and the lower connection ports are B1, B2, B3 and B4, which are connected to servers C1, C2, C3 and C4 respectively.

[0049] In the first case, the A2 port in the upper connection link of the switch A is abnormal, and the following steps can be performed.

[0050] Step 1, on the switch A, it is found that the A2 port of the upper connection aggregation link port SG1 is abnormal, the bandwidth of the A2 port is calculated, and it is assumed that the four ports in the upper connection link are the same ports, so that the abnormal traffic ratio of the A2 port is 1 / 4 (the first ratio) after the A2 port is abnormal.

[0051] Step 2, the total number of the lower connection service ports on the switch A is counted, and it is found that the total number of the lower connection service ports is 4 after counting, and the number of ports that need to be processed is 4*1 / 4, which is 1 port.

[0052] Step 3, one of the ports that need to be processed can be actively shut down according to random selection or based on the configuration of the user's port service priority of B1B2B3B4, and it is assumed that the system decides that the port that needs to be actively processed is the B4 port (the target second port).

[0053] Step 4, the B4 port is shut down, and the service of the C4 server connected to the B4 port is switched to the right side and forwarded from the B5 port of the switch B.

[0054] Step 5, the B4 port which initiatively performs the shutdown processing needs to be recorded by the system, because it is not shutdown through the network management or the command, and the possible recovery processing needs to be performed on the port.

[0055] In the second case, the A2 port of the upper connection link of the switch A is recovered, and the following steps can be performed.

[0056] Step 1, on the switch A, it is found that the A2 port of the upper connection aggregation link port SG1 is recovered, the bandwidth of the abnormal A2 port is calculated, and it is found that the abnormal bandwidth ratio is 0, so the lower connection port does not need to be actively shutdown.

[0057] Step 2, the list of the ports of the switch A which are actively shutdown is inquired, and it is found that the B4 port is actively shutdown at this time, and the abnormal bandwidth ratio of the upper connection is 0 at this time.

[0058] Step 3, the switch A performs the recovery operation on the port which is recorded at this time, and the port with high priority is preferentially recovered according to the port priority configured by the user, and at this time, since there is only one B4 port, the B4 port is directly recovered to the no shutdown state.

[0059] Step 4, the server C4 can be switched back to the B4 port of the switch A for forwarding at this time (it can also not be switched back, which mainly depends on the switching mechanism of the server C4).

[0060] Through the processing of the technical scheme provided in the embodiment of the application, in the case that the bandwidth of the upper connection link of any switch of the MCLAG system is abnormal, the corresponding switching of part of the flow can be performed in the access link of the downlink, so that the bandwidth of the upper connection link is not overlimited and the packet loss is avoided.

[0061] As shown in FIG. 3, the embodiment of the application further provides an electronic device 300, which comprises a processor 301 and a memory 302, and the memory 302 stores programs or instructions which can be run on the processor 301, the programs or instructions are executed by the processor 301 to implement each step of the state updating method of the link aggregation port, and the same technical effects can be achieved, to avoid repetition, which will not be described here.

[0062] It should be noted that the electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.

[0063] FIG. 4 shows a structural block diagram of an electronic device 400 according to an example embodiment of the present application. The electronic device 400 can be implemented as a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart watch, a television, or the like. The electronic device 400 can also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.

[0064] Generally, the electronic device 400 includes a processor 401 and a memory 402.

[0065] The processor 401 can include one or more processing cores, such as a 4-core processor, a 10-core processor, or the like. The processor 401 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), a FPGA (Field-Programmable Gate Array), a PLA (Programmable Logic Array). The processor 401 can also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 401 can be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content to be displayed on a display screen. In some embodiments, the processor 401 can further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.

[0066] The memory 402 can include one or more computer-readable storage media, which can be non-transitory. The memory 402 can also include a high-speed random access memory, and a non-volatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 402 is used to store at least one instruction for being executed by the processor 401 to implement all or part of the steps in the link aggregation port state updating method according to the method embodiments of the present application.

[0067] In some embodiments, the electronic device 400 further includes a peripheral device interface 403 and at least one peripheral device. The processor 401, the memory 402, and the peripheral device interface 403 can be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 403 through a bus, a signal line, or a circuit board. The peripheral devices include at least one of a radio frequency circuit 404, a display screen 405, a camera component 406, an audio circuit 407, and a power supply 408.

[0068] In some embodiments, the electronic device 400 further includes one or more sensors 409. The one or more sensors 409 include, but are not limited to, an acceleration sensor 410, a gyroscope sensor 411, a pressure sensor 412, an optical sensor 413, and a proximity sensor 414.

[0069] Those skilled in the art can understand that the structure shown in FIG. 4 does not constitute a limitation on the electronic device 400, and can include more or fewer components than shown, or combine certain components, or adopt a different arrangement of components.

[0070] In an exemplary embodiment, a computer readable storage medium is also provided, in which at least one computer program is stored, the computer program being loaded and executed by a processor to implement all or part of the steps of the link aggregation port state updating method described above. For example, the computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0071] In an exemplary embodiment, a computer program product is also provided, which includes at least one computer program, the computer program being loaded and executed by a processor to implement all or part of the steps of the link aggregation port state updating method shown in FIG. 1 described above.

[0072] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.

[0073] It is to be understood that the application is not limited to the precise construction already described above and shown in the drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application should only be limited by the claims appended hereto.

Claims

1. A method for updating the state of a link aggregation port, comprising: When the state of at least one first port in the first-side aggregated link of the first switch device changes, a target number of second ports whose states need to be updated is determined based on the first ports whose states have changed in the first-side aggregated link. The second port is a port in the second-side aggregated link of the first switch device that is in the first state, the first port is a sending port of the target data, and the second port is a receiving port of the target data. The status of the target number of second ports is updated to a second state, wherein the first state is one of an on state and a off state, and the second state is the other of an on state and a off state. The second state is a off state when the status of at least one first port changes from a normal state to an abnormal state, and the second state is an on state when the status of at least one first port changes from an abnormal state to a normal state.

2. The method according to claim 1, wherein, The target data is upstream data.

3. The method according to claim 1, wherein, The step of determining the target number of second ports in the second-side aggregated link of the first switch device that need to have their status updated based on the first port whose status has changed in the first-side aggregated link includes: Determine the first proportion of the at least one first port in the first-side aggregated link; Based on the first proportion, determine the second proportion of the second port whose status needs to be updated in the second-side aggregated link; The target quantity is determined based on the second proportion.

4. The method according to claim 3, wherein, The step of determining the second proportion of the second port whose status needs to be updated in the second-side aggregated link based on the first proportion includes: The second percentage is determined based on a preset threshold and the first percentage, wherein the absolute value of the difference between the first percentage and the second percentage is less than the preset threshold.

5. The method according to claim 3 or 4, wherein, The first ratio is the ratio of the first bandwidth to the second bandwidth, wherein the first bandwidth is the bandwidth of the at least one first port, and the second bandwidth is the total bandwidth of all available ports configured in the first side aggregation link.

6. The method according to claim 3 or 4, wherein, The second proportion is the ratio of the first quantity to the second quantity, where the first quantity is the number of second ports whose status needs to be updated, and the second quantity is the total number of available ports configured in the second-side aggregated link; or... The second ratio is the ratio of the third bandwidth to the fourth bandwidth, wherein the third bandwidth is the bandwidth of the second port whose status needs to be updated, and the fourth bandwidth is the total bandwidth of all available ports configured in the second-side aggregated link.

7. The method according to any one of claims 1 to 4, wherein, The step of updating the status of the target number of second ports in the second-side aggregation link that are in the first state to the second state includes: Based on the priority of each second port in the first state in the second-side aggregation link, the target number of target second ports is determined among the respective second ports; Update the state of the target second port to the second state.

8. The method according to claim 7, wherein, The step of determining the target number of target second ports among the second ports based on the priority of each second port in the first state in the second-side aggregation link includes: If the state of at least one first port changes from a normal state to an abnormal state, the target number of second ports with the lowest priority among the second ports in the second-side aggregated link that are in the open state are determined as the target second port.

9. The method according to claim 8, wherein, After updating the state of the target second port to the second state, the method further includes: The updated status of the target's second port is recorded as closed.

10. The method according to claim 8, wherein, After updating the state of the target second port to the second state, the method further includes: The service corresponding to the target second port is switched to the port of the second side aggregation link of the second switch device, wherein the second switch device is a switch device that performs cross-device link aggregation networking with the first switch device.

11. The method according to claim 7, wherein, The step of determining the target number of target second ports among the second ports based on the priority of each second port in the first state in the second-side aggregation link includes: If the state of at least one first port changes from an abnormal state to a normal state, the target number of second ports with the highest priority among the second ports in the second-side aggregated link that are in the closed state are determined as the target second ports.

12. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the state update method for a link aggregation port as claimed in any one of claims 1 to 11.

13. A readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the state update method for a link aggregation port as described in any one of claims 1 to 11.

14. A computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the steps of the link aggregation port state update method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Aggregation port switching method and device, chip, switch and storage medium

    CN111049765A

  • Network recovery method and device, computer equipment and storage medium

    CN114095341A

  • Aggregated link flow energy-saving control method and device, terminal and storage medium

    CN114363180A

  • Redundent virtual link aggregation group

    US20150271104A1

  • Cross-device link aggregation switching method, system, switch, and storage medium

    WO2023274162A1