CN115150453B - Method, system, equipment and storage medium for avoiding LACP protocol timeout - Google Patents

Method, system, equipment and storage medium for avoiding LACP protocol timeout Download PDF

Info

Publication number
CN115150453B
CN115150453B CN202210756891.8A CN202210756891A CN115150453B CN 115150453 B CN115150453 B CN 115150453B CN 202210756891 A CN202210756891 A CN 202210756891A CN 115150453 B CN115150453 B CN 115150453B
Authority
CN
China
Prior art keywords
lacp
reboot
timeout
packet
wall
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210756891.8A
Other languages
Chinese (zh)
Other versions
CN115150453A (en
Inventor
卢彦呈
纪柏雄
廖伟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210756891.8A priority Critical patent/CN115150453B/en
Publication of CN115150453A publication Critical patent/CN115150453A/en
Application granted granted Critical
Publication of CN115150453B publication Critical patent/CN115150453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method, a system, equipment and a storage medium for avoiding LACP protocol timeout, wherein the method comprises the following steps: responding to the restarting of the port channel management of the transmitting end, checking whether a wall-reboot identifier exists in the database, responding to the wall-reboot identifier exists in the database, and transmitting an LACPDU packet to the receiving end; in response to receiving the LACPDU packet, determining whether a predetermined field in the LACPDU packet is zero; responding to the preset field in the LACPDU packet is not zero, setting a timer according to the number of seconds required by the norm-reboot operation, setting an LACP state machine to ignore the identifier of the LACP timeout and continuously waiting for the LACPDU packet; and in response to receiving a release packet sent by the sending end or the fact that the LACPDU packet is not received by the timer, releasing the identifier of neglecting the LACP timeout and entering a normal timeout judging mode. The application can configure short timeout and consider the wall-reboot scene when using LACP.

Description

Method, system, equipment and storage medium for avoiding LACP protocol timeout
Technical Field
The present application relates to the field of communications, and in particular, to a method, system, device, and storage medium for avoiding LACP protocol timeout.
Background
The Port Channel (Port Channel) currently established through the LACP (Link Aggregation Control Protocol ) periodically transmits a packet of the LACPDU on each member Port to ensure the state of the Port Channel, once the LACPDU packet sent by the opposite party is not received before three times of timeout time, the member Port will not be included in the load balancing target, and once all the member ports enter the state, the running state (open status) of the Port Channel will become down. In addition to the existing interruption of the service flow, the Port down also means that the routing table may be abnormal and may cause unnecessary routing oscillation, under the scenario of the wall-reboot, software of the upper layer management LACP protocol may be restarted, once the sending of the LACPDU message cannot be started before three times of Timeout, the opposite side may identify that the Port Channel is disconnected and discard the traffic, and regarding this problem, the scheme given in the LACP protocol is to configure the time of Timeout to be long Timeout (30 s), so that the software may restart for 90 s.
There are three problems with the scheme of changing the long timeout configuration: 1. the configuration of the timeout is a requirement transmitted by the opposite party, which represents how long the opposite party expects to receive the LLDP, and is not self-determined; 2. in the model with poor cpu capability, the time of 90s is not necessarily enough for the LACP management software to finish restarting, and the possibility of packet dropping still exists; 3. always configure a long timeout, meaning that when the peer is really out of question, the time switch also perceives this error for 90s and transfers traffic to other normally functioning member ports, the same scenario configures a short timeout for as long as 3s.
Disclosure of Invention
In view of the above, an object of the embodiments of the present application is to provide a method, a system, a computer device and a computer readable storage medium for avoiding the time-out of the LACP protocol, which can configure a short time-out and give consideration to the warm-reboot scene when using the LACP by modifying the LACPDU content and the time-out determination mode of the LACP state machine, so that the transmission of the service message is not affected.
Based on the above objects, an aspect of the embodiments of the present application provides a method for avoiding a LACP protocol timeout, including the following steps: responding to the restarting of the port channel management of the transmitting end, checking whether a wall-reboot identifier exists in the database, responding to the wall-reboot identifier exists in the database, and transmitting an LACPDU packet to the receiving end; in response to receiving the LACPDU packet, determining whether a predetermined field in the LACPDU packet is zero; responding to the preset field in the LACPDU packet is not zero, setting a timer according to the number of seconds required by the norm-reboot operation, setting an LACP state machine to ignore the identifier of the LACP timeout and continuously waiting for the LACPDU packet; and in response to receiving a release packet sent by the sending end or the fact that the LACPDU packet is not received by the timer, releasing the identifier of neglecting the LACP timeout and entering a normal timeout judging mode.
In some embodiments, the method further comprises: writing a wall-reboot identifier in a database of a transmitting end, and transmitting interrupt signals to each process by adopting a self-defined signal representing the wall-reboot.
In some embodiments, the method further comprises: and responding to the signal processor to receive a self-defining signal representing the wall-reboot, sending a request to the LACP operator, sending the LACP DU packet for three times to the port under the port channel by the LACP operator, and continuing to execute the interrupt program.
In some embodiments, the method further comprises: and in response to the predetermined field in the LACPDU packet being zero, entering a normal timeout determination mode at the LACP state machine.
In another aspect of the embodiment of the present application, a system for avoiding a LACP protocol timeout is provided, including: the identification module is configured to respond to the restarting of the port channel management of the sending end, check whether a wall-reboot identifier exists in the database, respond to the existence of the wall-reboot identifier in the database and send LACPDU packets to the receiving end; a confirmation module configured to confirm whether a predetermined field in the LACPDU packet is zero in response to a receiving end receiving the LACPDU packet; the setting module is configured to respond to the fact that a preset field in the LACPDU packet is not zero, set a timer according to the number of seconds required by the operation of the norm-reboot, set an identifier of the LACP state machine for neglecting the LACP timeout and continuously wait for the LACPDU packet; and a releasing module configured to release the identifier of the neglected LACP timeout and enter a normal timeout determination mode in response to receiving a releasing packet sent by the transmitting end or a LACPDU packet not received by the timer.
In some embodiments, the system further comprises an interrupt module configured to: writing a wall-reboot identifier in a database of a transmitting end, and transmitting interrupt signals to each process by adopting a self-defined signal representing the wall-reboot.
In some embodiments, the system further comprises a request module configured to: and responding to the signal processor to receive a self-defining signal representing the wall-reboot, sending a request to the LACP operator, sending the LACP DU packet for three times to the port under the port channel by the LACP operator, and continuing to execute the interrupt program.
In some embodiments, the system further comprises a conversion module configured to: and in response to the predetermined field in the LACPDU packet being zero, entering a normal timeout determination mode at the LACP state machine.
In yet another aspect of the embodiment of the present application, there is also provided a computer apparatus, including: at least one processor; and a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method as above.
In yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method steps as described above.
The application has the following beneficial technical effects: by modifying LACPDU content and the overtime judging mode of the LACP state machine, short overtime can be configured when the LACP is used, and the wall-reboot scene can be considered, and unnecessary port link down can not occur, so that the transmission of service messages is affected.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an embodiment of a method for avoiding LACP protocol timeout provided in the present application;
FIG. 2 is a schematic diagram of an embodiment of a system for avoiding LACP protocol timeout according to the present application;
fig. 3 is a schematic hardware structure of an embodiment of a computer device for avoiding LACP protocol timeout according to the present application;
fig. 4 is a schematic diagram of an embodiment of a computer storage medium for avoiding LACP protocol timeout according to the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following embodiments of the present application will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present application, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present application, and the following embodiments are not described one by one.
In a first aspect of the embodiment of the present application, an embodiment of a method for avoiding LACP protocol timeout is provided. Fig. 1 is a schematic diagram of an embodiment of a method for avoiding LACP protocol timeout provided by the present application. As shown in fig. 1, the embodiment of the present application includes the following steps:
s1, in response to restarting of port channel management of a transmitting end, checking whether a wall-reboot identifier exists in a database, and in response to the existence of the wall-reboot identifier in the database, transmitting an LACPDU packet to a receiving end;
s2, responding to the receiving end to receive the LACPDU packet, and confirming whether a preset field in the LACPDU packet is zero or not;
s3, responding to the fact that a preset field in the LACPDU packet is not zero, setting a timer according to the number of seconds required by the warm-reboot operation, setting an identifier of the LACP state machine for neglecting the LACP timeout and continuously waiting for the LACPDU packet; and
and S4, in response to receiving a release packet sent by the sending end or the fact that the LACPDU packet is not received by the timer, releasing the identifier of neglecting the LACP timeout and entering a normal timeout judging mode.
PortChannel: the technology of integrating a plurality of physical ports into one logical Port to increase the logical bandwidth is that the traffic transmitted above can be balanced through a load balancing algorithm, and there are two general modes of establishing Port channels, namely static allocation and dynamic establishment through LACP protocol.
LACP is a protocol for implementing link dynamic aggregation and deaggregation based on the ieee802.3ad standard, and is a protocol commonly used in link aggregation. And the member ports in the link aggregation group, which are started with the LACP protocol, interact by sending LACPDU messages, and the two parties agree on the ports capable of sending and receiving the messages to determine the link for bearing the service flow. In addition, when the aggregation condition changes, such as a certain link fails, the LACP mode automatically adjusts the links in the aggregation group, and other available member links in the group take over the failed link to maintain load balance.
The LACP protocol has a Timeout attribute to tell the receiving end how long it has not received the LACP message Wen Jiuhui to determine that the member port is out of connection, and temporarily put the member port in a deselect state to avoid affecting traffic forwarding to the member port, where the current value may have two settings, a long Timeout (30 s) and a short Timeout (1 s), and the member port is determined to be out of connection after three times of the Timeout configuration.
Warm-reboot: in the data center, the offline of the device means that the service is interrupted, especially the affected range is far greater once the switch hosting the network is offline, and the service is interrupted once the software needs to be upgraded and modified, so, unlike the general reboot, there is a restarting technique named wall-reboot, which updates the software in such a way that the software is updated and the service interruption is avoided (because the chip is not affected) by backing up the database, restarting the kernel and upper layer software, and restoring the database.
The configuration of the long timeout in the LACP protocol is unidirectional at present, and a reverse notification mechanism does not exist, and the embodiment of the application ensures that a switch can notify the opposite side switch to temporarily suspend timeout judgment in the period of the warm-reboot by expanding the content of the LACP packet and modifying the LACP internal state machine, and ensures that a Port Channel cannot be closed in the period of the warm-reboot after the warm-reboot is finished.
Firstly, writing a wall-reboot flag (mark) in a database at a transmitting end, wherein the flag is used for identifying whether the process is restarted as a wall-reboot or a normal reboot after the process is restarted. An interrupt signal is sent to each process to tell each process that the ending program is finished, and the embodiment of the application adopts a self-defined signal SIGUSR to represent the norm reboot so as to distinguish SIGTERM signals used in normal reboot. When the singal handler knows that the single ware is a wall-reboot, the signal processor sends a request to the LACP runner, and the LACP runner immediately sends a special LACPDU packet to a Port under the Port Channel for three times, and then the flow of the original interrupt program is executed. Port channel manager (manager) will check if the warm-reboot flag exists in the database first, if so, it will send the special LACPDU packet again, and inform the butt end of the ending procedure of warm-reboot, and return to the normal LACP timeout mode.
The receiving end analyzes the LACPDU packet to determine whether a specific field in the packet is zero, wherein the non-zero represents that the opposite end is about to enter the wave-reboot, and meanwhile, the number of seconds (assumed to be Y seconds) required by the wave-reboot can be known in the packet, the receiving end can do two things at the moment, the first is to start a timer to set for Y seconds and then to set an LACP state machine to temporarily ignore LACP timeout, and the reason for setting the timer is to remind the opposite end of the state of canceling the ignored timeout after the wave-reboot failure. And then the state machine continuously waits for the LACPDU packet, wherein one condition is that the opposite party is actively transmitting the release packet after the warm-reboot is successful, and the other condition is that the LACPDU packet is not received before the Timer is reached, and the system can forcedly release and ignore the identifier of the LACP timeout and enter a normal timeout judging mode.
The LACPDU packet has a reserved field, in which a message to be transmitted is placed in a TLV format, and in the embodiment of the present application, 256 seconds (0 xFF) of ignore timeout is required before the wall-reboot, and after the wall-reboot is completed, an end packet with type 0x02 is sent. The contents contained in the LACPDU packet are as shown in table 1:
TABLE 1
The embodiment of the application can be realized on SONIC switch products at present, especially on the keepalive online of the PortChannel which is frequently used as MCLAG in the standard networking mode of a general data center, and on the basis of using the embodiment of the application, the switch can also avoid the problem of norm-reboot while having the advantage of short timeout, and can be used as a partition function with other manufacturers.
It should be noted that, the steps in the embodiments of the method for avoiding the LACP protocol timeout may be intersected, replaced, added and deleted, so that the method for avoiding the LACP protocol timeout by the reasonable permutation and combination transformation should also belong to the protection scope of the present application, and should not limit the protection scope of the present application to the embodiments.
Based on the above object, a second aspect of the embodiments of the present application proposes a system for avoiding LACP protocol timeout. As shown in fig. 2, the system 200 includes the following modules: the identification module is configured to respond to the restarting of the port channel management of the sending end, check whether a wall-reboot identifier exists in the database, respond to the existence of the wall-reboot identifier in the database and send LACPDU packets to the receiving end; a confirmation module configured to confirm whether a predetermined field in the LACPDU packet is zero in response to a receiving end receiving the LACPDU packet; the setting module is configured to respond to the fact that a preset field in the LACPDU packet is not zero, set a timer according to the number of seconds required by the operation of the norm-reboot, set an identifier of the LACP state machine for neglecting the LACP timeout and continuously wait for the LACPDU packet; and a releasing module configured to release the identifier of the neglected LACP timeout and enter a normal timeout determination mode in response to receiving a releasing packet sent by the transmitting end or a LACPDU packet not received by the timer.
In some embodiments, the system further comprises an interrupt module configured to: writing a wall-reboot identifier in a database of a transmitting end, and transmitting interrupt signals to each process by adopting a self-defined signal representing the wall-reboot.
In some embodiments, the system further comprises a request module configured to: and responding to the signal processor to receive a self-defining signal representing the wall-reboot, sending a request to the LACP operator, sending the LACP DU packet for three times to the port under the port channel by the LACP operator, and continuing to execute the interrupt program.
In some embodiments, the system further comprises a conversion module configured to: and in response to the predetermined field in the LACPDU packet being zero, entering a normal timeout determination mode at the LACP state machine.
In view of the above object, a third aspect of the embodiments of the present application provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, in response to restarting of port channel management of a transmitting end, checking whether a wall-reboot identifier exists in a database, and in response to the existence of the wall-reboot identifier in the database, transmitting an LACPDU packet to a receiving end; s2, responding to the receiving end to receive the LACPDU packet, and confirming whether a preset field in the LACPDU packet is zero or not; s3, responding to the fact that a preset field in the LACPDU packet is not zero, setting a timer according to the number of seconds required by the warm-reboot operation, setting an identifier of the LACP state machine for neglecting the LACP timeout and continuously waiting for the LACPDU packet; and S4, in response to receiving a release packet sent by the sending end or not receiving the LACPDU packet when the timer expires, releasing the identifier of neglecting the LACP timeout and entering a normal timeout judging mode.
In some embodiments, the steps further comprise: writing a wall-reboot identifier in a database of a transmitting end, and transmitting interrupt signals to each process by adopting a self-defined signal representing the wall-reboot.
In some embodiments, the steps further comprise: and responding to the signal processor to receive a self-defining signal representing the wall-reboot, sending a request to the LACP operator, sending the LACP DU packet for three times to the port under the port channel by the LACP operator, and continuing to execute the interrupt program.
In some embodiments, the steps further comprise: and in response to the predetermined field in the LACPDU packet being zero, entering a normal timeout determination mode at the LACP state machine.
As shown in fig. 3, a hardware structure diagram of an embodiment of the computer device for avoiding LACP protocol timeout according to the present application is shown.
Taking the example of the device shown in fig. 3, a processor 301 and a memory 302 are included in the device.
The processor 301 and the memory 302 may be connected by a bus or otherwise, for example in fig. 3.
The memory 302 is used as a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the method for avoiding LACP protocol timeout in the embodiments of the present application. The processor 301 executes various functional applications of the server and data processing, i.e., implements a method of avoiding LACP protocol timeouts, by running non-volatile software programs, instructions, and modules stored in the memory 302.
Memory 302 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of a method of avoiding LACP protocol timeout, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 302 may optionally include memory located remotely from processor 301, which may be connected to the local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Computer instructions 303 corresponding to one or more methods of avoiding LACP protocol timeouts are stored in the memory 302 that, when executed by the processor 301, perform the method of avoiding LACP protocol timeouts of any of the method embodiments described above.
Any one embodiment of the computer device executing the method for avoiding the LACP protocol timeout can achieve the same or similar effect as any one embodiment of the method corresponding to the embodiment.
The present application also provides a computer readable storage medium storing a computer program which when executed by a processor performs a method of avoiding LACP protocol timeouts.
As shown in fig. 4, a schematic diagram of an embodiment of the computer storage medium for avoiding LACP protocol timeout according to the present application is provided. Taking a computer storage medium as shown in fig. 4 as an example, the computer readable storage medium 401 stores a computer program 402 that when executed by a processor performs the above method.
Finally, it should be noted that, as will be understood by those skilled in the art, implementing all or part of the above-described methods in the embodiments may be implemented by a computer program to instruct related hardware, and the program of the method for avoiding the LACP protocol timeout may be stored in a computer readable storage medium, where the program may include the flow of the embodiments of the above-described methods when executed. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present application has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the application, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the application, and many other variations of the different aspects of the embodiments of the application as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present application.

Claims (6)

1. A method for avoiding a LACP protocol timeout, comprising the steps of:
responding to the restarting of the port channel management of the transmitting end, checking whether a wall-reboot identifier exists in the database, responding to the wall-reboot identifier exists in the database, and transmitting an LACPDU packet to the receiving end;
in response to receiving the LACPDU packet, determining whether a predetermined field in the LACPDU packet is zero;
responding to the preset field in the LACPDU packet is not zero, setting a timer according to the number of seconds required by the norm-reboot operation, setting an LACP state machine to ignore the identifier of the LACP timeout and continuously waiting for the LACPDU packet; and
in response to receiving a release packet sent by the sender or a LACPDU packet not received at the time of the timer, releasing the identification of ignoring the LACP timeout and entering into a normal timeout determination mode,
the method further comprises the steps of:
writing a wall-reboot identifier in a database of a transmitting end, adopting a self-defined signal representing the wall-reboot to transmit an interrupt signal to each process,
and in response to the predetermined field in the LACPDU packet being zero, entering a normal timeout determination mode at the LACP state machine.
2. The method according to claim 1, wherein the method further comprises:
and responding to the signal processor to receive a self-defining signal representing the wall-reboot, sending a request to the LACP operator, sending the LACP DU packet for three times to the port under the port channel by the LACP operator, and continuing to execute the interrupt program.
3. A system for avoiding LACP protocol timeouts, comprising:
the identification module is configured to respond to the restarting of the port channel management of the transmitting end, check whether a wall-reboot identifier exists in the database, respond to the existence of the wall-reboot identifier in the database and transmit an LACPDU packet to the receiving end;
a confirmation module configured to confirm whether a predetermined field in the LACPDU packet is zero in response to a receiving end receiving the LACPDU packet;
the setting module is configured to respond to the fact that a preset field in the LACPDU packet is not zero, set a timer according to the number of seconds required by the operation of the norm-reboot, set an identifier of the LACP state machine for neglecting the LACP timeout and continuously wait for the LACPDU packet; and
a releasing module configured to release the identifier of the neglected LACP timeout and enter a normal timeout determination mode in response to receiving a releasing packet sent by the transmitting end or a LACPDU packet not received by the timer,
the system further comprises an interrupt module configured to: writing a wall-reboot identifier in a database of a transmitting end, adopting a self-defined signal representing the wall-reboot to transmit an interrupt signal to each process,
the system further includes a conversion module configured to: and in response to the predetermined field in the LACPDU packet being zero, entering a normal timeout determination mode at the LACP state machine.
4. A system according to claim 3, wherein the system further comprises a request module configured to:
and responding to the signal processor to receive a self-defining signal representing the wall-reboot, sending a request to the LACP operator, sending the LACP DU packet for three times to the port under the port channel by the LACP operator, and continuing to execute the interrupt program.
5. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-2.
6. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1-2.
CN202210756891.8A 2022-06-30 2022-06-30 Method, system, equipment and storage medium for avoiding LACP protocol timeout Active CN115150453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210756891.8A CN115150453B (en) 2022-06-30 2022-06-30 Method, system, equipment and storage medium for avoiding LACP protocol timeout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210756891.8A CN115150453B (en) 2022-06-30 2022-06-30 Method, system, equipment and storage medium for avoiding LACP protocol timeout

Publications (2)

Publication Number Publication Date
CN115150453A CN115150453A (en) 2022-10-04
CN115150453B true CN115150453B (en) 2023-08-11

Family

ID=83410444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210756891.8A Active CN115150453B (en) 2022-06-30 2022-06-30 Method, system, equipment and storage medium for avoiding LACP protocol timeout

Country Status (1)

Country Link
CN (1) CN115150453B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626342A (en) * 2008-07-07 2010-01-13 华为技术有限公司 Method, device and system for realizing link aggregation
WO2013097366A1 (en) * 2011-12-28 2013-07-04 中兴通讯股份有限公司 Method for exception recovery of link aggregation and switching device
CN112134797A (en) * 2020-09-04 2020-12-25 苏州浪潮智能科技有限公司 Method and equipment for improving overtime of link aggregation protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626342A (en) * 2008-07-07 2010-01-13 华为技术有限公司 Method, device and system for realizing link aggregation
WO2013097366A1 (en) * 2011-12-28 2013-07-04 中兴通讯股份有限公司 Method for exception recovery of link aggregation and switching device
CN112134797A (en) * 2020-09-04 2020-12-25 苏州浪潮智能科技有限公司 Method and equipment for improving overtime of link aggregation protocol

Also Published As

Publication number Publication date
CN115150453A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
US9270524B2 (en) Method and device for LACP link switching and data transmission
US7958247B2 (en) HTTP push to simulate server-initiated sessions
CN107070689B (en) Method and apparatus for reducing false alarms when using network keep-alive messages
US20080253295A1 (en) Network system and node apparatus
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
CN110912780A (en) High-availability cluster detection method, system and controlled terminal
WO2018188425A1 (en) Vxlan single-homing and dual-homing hybrid access method and apparatus, pe device and storage medium
US9385944B2 (en) Communication system, path switching method and communication device
US8638692B2 (en) System and method for end-to-end automatic configuration of network elements using a link-level protocol
WO2009023996A1 (en) Method for implementing network interconnect via link aggregation
WO2017124791A1 (en) Link detecting method and device
US20170324580A1 (en) Failure protection method based on ring protection link, device, and system
US20170214609A1 (en) Forwarding method and forwarding device
WO2010022635A1 (en) Method for preventing thread hanging in a multi-thread communication program
US20220329512A1 (en) Method and Apparatus for Updating Route Information, Computer Device, and Storage Medium
CN111343019B (en) Reconnection method, reconnection device and storage medium
CN109218232B (en) Method, equipment and system for realizing Mux machine
CN105763442B (en) The unbroken PON system of masterslave switchover LACP aggregated links and method
CN107222883B (en) Wireless controller backup method, backup switching method, device and system
CN115150453B (en) Method, system, equipment and storage medium for avoiding LACP protocol timeout
US11811900B2 (en) Packet processing method and first network device
WO2021073367A1 (en) Data processing method, device, and system
CN111224803B (en) Multi-master detection method in stacking system and stacking system
CN106301835B (en) BFD link establishing method and device and router
US9894710B2 (en) Method for releasing wireless link resource and user equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant