[go: up one dir, main page]

CN112235192B - Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment - Google Patents

Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment Download PDF

Info

Publication number
CN112235192B
CN112235192B CN202011077989.8A CN202011077989A CN112235192B CN 112235192 B CN112235192 B CN 112235192B CN 202011077989 A CN202011077989 A CN 202011077989A CN 112235192 B CN112235192 B CN 112235192B
Authority
CN
China
Prior art keywords
communication equipment
interrupt message
adaptation layer
standby
standby communication
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
CN202011077989.8A
Other languages
Chinese (zh)
Other versions
CN112235192A (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 Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications 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 Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202011077989.8A priority Critical patent/CN112235192B/en
Publication of CN112235192A publication Critical patent/CN112235192A/en
Application granted granted Critical
Publication of CN112235192B publication Critical patent/CN112235192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/583Stackable routers
    • 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)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a Linkagg port switching method of stacking equipment and the stacking equipment based on Linkagg, and solves the problem that Linkagg port switching in the prior art is long in time consumption. The method comprises the following steps: the adaptation layer of the standby communication equipment sends the received first interrupt message to the adaptation layer of the main communication equipment, wherein the first interrupt message is an interrupt message of the port closing of the standby communication equipment; before the kernel of the main communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the main communication equipment and refreshes the chip table entry of the main communication equipment; before the kernel of the standby communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the standby communication equipment; and the SDK of the standby communication equipment refreshes the chip table entry of the standby communication equipment according to the first interrupt message.

Description

Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment
Technical Field
The invention relates to the technical field of network equipment, in particular to a Linkagg port switching method of stacking equipment and the Linkagg-based stacking equipment.
Background
The link aggregation Linkagg technique allows multiple physical interfaces to be bundled to form a single logical channel, providing enhanced performance and redundancy. When one physical interface fails, other interfaces are normally connected, and the link is not interrupted, and the Linkagg principle is as shown in fig. 8. The Stacking technology allows multiple devices to be combined together to be virtualized into a logical device, and when the master of the main communication device is powered down, the standby communication device stanby is upgraded into the master device to continue forwarding flow. By combining the Stacking technology and the Linkagg technology, the stability of the network can be greatly improved, the problems of traffic obstruction and the like caused by the abnormality of certain interfaces or certain equipment can be avoided, and the principle of combining the Linkagg technology and the Stacking technology is shown in fig. 9.
Linkagg ideally shares the same amount of traffic per physical link during normal forwarding activities. Once a physical link is broken, the table entry in the chip needs to be refreshed and the invalid port needs to be deleted, so that the traffic will be hashed again from the remaining several other physical ports. If the stack environment is not a stack environment, the self-healing technology can be used for rapidly refreshing the chip table entry, and in the stack environment, a large amount of traffic is lost when a down physical port is closed due to the fact that the self-healing technology cannot be used.
In order to solve the problem of switching Linkagg ports of stacking equipment, the prior art mainly depends on reporting a down event of a kernel port, then waiting for correct processing of the kernel, and then sequentially issuing the down event to a network service layer, an adaptation layer, an SDK and a chip, and refreshing table entries layer by layer. The process is long in time consumption, the time consumption is basically in the kernel processing process, the more ports are disconnected at the same time in linkagg, the longer the kernel processing time is, a large amount of flow can be lost, and in addition, the time consumption is also high in tedious message notification processing logic.
Disclosure of Invention
In view of this, the present invention provides a method for switching a Linkagg port of a stacking device and a stacking device based on Linkagg.
In order to achieve the above object, an embodiment of the present invention provides the following technical solutions:
the adaptation layer of the standby communication equipment sends a received first interrupt message to the adaptation layer of the main communication equipment, wherein the first interrupt message is an interrupt message of closing a port of the standby communication equipment;
before the kernel of the main communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the main communication equipment and refreshes a chip table entry of the main communication equipment; and the number of the first and second groups,
before the kernel of the standby communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the standby communication equipment;
and the SDK of the standby communication equipment refreshes the chip table entry of the standby communication equipment according to the first interrupt message.
In one embodiment, the method further comprises:
after the adaptation layer of the main communication equipment refreshes the table entry of the adaptation layer according to the first interrupt message, the adaptation layer informs the kernel of the main communication equipment to trigger the refreshing of the table entry of the network service layer of the main communication equipment; and the number of the first and second groups,
and after the adaptation layer of the standby communication equipment refreshes the table entry of the standby communication equipment according to the first interrupt message, informing the inner core of the standby communication equipment to trigger the refreshing of the table entry of the network service layer of the standby communication equipment.
The application also provides a method for switching Linkagg ports of stacking equipment, which comprises the following steps:
the adaptation layer of the standby communication equipment informs the adaptation layer of the main communication equipment of the received first interrupt message, wherein the first interrupt message is an interrupt message of closing a port of the standby communication equipment;
before the kernel of the standby communication equipment receives the first interrupt message, the SDK of the standby communication equipment receives the first interrupt message sent by the adaptation layer of the main communication equipment and refreshes the list item of the chip.
The application also provides a method for switching Linkagg ports of stacking equipment, which comprises the following steps:
before a kernel of a main communication device receives a first interrupt message, an adaptation layer of the main communication device sends the received first interrupt message to an SDK (software development kit) of the main communication device and refreshes a chip table entry; and the number of the first and second groups,
before the kernel of the standby communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the standby communication equipment so as to refresh the chip table entry of the standby communication equipment;
wherein the first interrupt message is an interrupt message of the port closing of the standby communication equipment.
The application also provides a method for switching Linkagg ports of stacking equipment, which comprises the following steps:
before the kernel of the main communication equipment receives a second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the main communication equipment and refreshes the chip table entry of the main communication equipment; and the number of the first and second groups,
before the inner core of the standby communication equipment receives a second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the standby communication equipment;
the SDK of the standby communication equipment refreshes the chip table entry of the standby communication equipment according to the second interrupt message;
wherein the second interrupt message is an interrupt message of the port closing of the primary communication device.
In one embodiment, the method further comprises:
after the adaptation layer of the main communication equipment refreshes the table entry of the adaptation layer according to the second interrupt message, the adaptation layer informs the kernel of the main communication equipment to trigger the refreshing of the table entry of the network service layer of the main communication equipment; and the number of the first and second groups,
the adaptation layer of the main communication equipment sends a second interrupt message to the adaptation layer of the standby communication equipment;
and after the adaptation layer of the standby communication equipment refreshes the table entry of the standby communication equipment according to the second interrupt message, informing the inner core of the standby communication equipment to trigger the refreshing of the table entry of the network service layer of the standby communication equipment.
The application also provides a method for switching Linkagg ports of stacking equipment, which comprises the following steps:
before the kernel of the main communication equipment receives a second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the main communication equipment and refreshes the chip table entry of the main communication equipment; and (c) a second step of,
before the kernel of the standby communication equipment receives a second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the standby communication equipment so as to refresh the chip table entry of the standby communication equipment;
wherein the second interrupt message is an interrupt message of the port closing of the primary communication device.
The application also provides a method for switching Linkagg ports of stacking equipment, which comprises the following steps:
before the kernel of the standby communication equipment receives a second interrupt message, the SDK of the standby communication equipment receives the second interrupt message sent by the adaptation layer of the main communication equipment and refreshes the chip table entry of the standby communication equipment;
wherein the second interrupt message is an interrupt message of the port closing of the primary communication device.
The application further provides a Linkagg-based stacking device which comprises a main communication device and a plurality of standby communication devices, wherein when the ports of the standby communication devices and/or the main communication devices are closed, the Linkagg ports are switched by the stacking device through the method.
According to the technical scheme, when an event that member ports belonging to Linkagg in main communication equipment and standby communication equipment in stacking equipment are closed is faced, the event preferably depends on an adaptation layer of the main communication equipment to directly send interrupt messages to SDKs of the main communication equipment and the standby communication equipment so as to refresh respective chip table entries, a refresh processing link is shorter and is not limited by the time consumed by the tedious processing of a kernel, and the event can be applied to Ethernet environments with higher real-time requirements, such as a data center network and an enterprise network.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is also possible for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a typical module architecture of a stacking device to which a Linkagg port switching method of the stacking device may be applied in an embodiment of the present invention;
fig. 2 is a flowchart of a Linkagg port switching method for a stacking device when a member port belonging to Linkagg in a standby communication device is closed according to an embodiment of the present invention;
fig. 3 is a flowchart of a Linkagg port switching method for a stacking device from a standby communication device end when a member port belonging to Linkagg in the standby communication device is closed according to an embodiment of the present invention;
fig. 4 is a flowchart of a Linkagg port switching method for a stacking device at a slave primary communication device end when a member port belonging to Linkagg in a standby communication device is closed according to an embodiment of the present invention;
fig. 5 is a flowchart of a Linkagg port switching method for a stacking device when a member port belonging to Linkagg in a primary communication device is closed according to an embodiment of the present invention;
fig. 6 is a flowchart of a Linkagg port switching method for a stacking device at a slave primary communication device end when a member port belonging to Linkagg in a primary communication device is closed according to an embodiment of the present invention;
fig. 7 is a flowchart of a method for switching a Linkagg port of a stacking device at a slave standby communication device end when a member port belonging to Linkagg in a master communication device is closed according to an embodiment of the present invention;
FIG. 8 is a prior art Linkagg schematic;
fig. 9 is a schematic diagram of a prior art stack and Linkagg technology combination.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a typical module architecture of a stacking apparatus to which the Linkagg port switching method of the present application can be applied is first described.
For the sake of description simplicity, the stacked device is described as including a master communication device and a standby communication device standby. The main communication equipment and the standby communication equipment comprise a kernel, a network service layer, an adaptation layer, an SDK, a chip and a stack module. Wherein,
a network service layer: the device is used for processing the configuration message of the user, and mainly saves the configuration table entry of Linkagg for Linkagg service and sends the table entry to the adaptation layer;
adaptation layer: the SDK table entry is used for converting the configuration sent by the network service layer into the SDK table entry, and for the Linkagg service, the SDK table entry of the Linkagg is mainly stored and sent to the SDK;
and the main communication equipment and the standby communication equipment perform message interaction through the stack module.
In such a stack device, there may be two kinds of port closure situations, i.e., port closure of the primary communication device and port closure of the backup communication device. The following description will specifically describe how to implement the Linkagg port switching method of the stacked device in the present application when the port of the primary communication device is closed and the port of the standby communication device is closed, respectively.
Scene 1: closing member port belonging to Linkagg in standby communication equipment
Referring to fig. 2, a specific embodiment of the method for switching the Linkagg ports of the stacking apparatus at this time is described. In this embodiment, the method comprises:
s11, the adaptation layer of the standby communication device sends the received first interrupt message to the adaptation layer of the main communication device.
The first interrupt message is an interrupt message in which the port of the standby communication device is closed. Specifically, the adaptation layer of the standby communication equipment informs the stack module of the standby communication equipment of the received first interrupt message, and the stack module of the standby communication equipment sends the first interrupt message to the adaptation layer of the main communication equipment through the stack module of the main communication equipment after editing the message.
And S12, before the kernel of the primary communication equipment receives the first interrupt message, the adaptation layer of the primary communication equipment sends the first interrupt message to the SDK of the primary communication equipment and refreshes the chip table entry of the primary communication equipment.
That is, after receiving the first interrupt message, the adaptation layer of the primary communication device preferentially sends the first interrupt message to the SDK of the primary communication device and completes the refreshing of the chip table entry of the primary communication device. Before the chip table entry of the main communication equipment is refreshed, the adaptation layer of the main communication equipment does not send the first interrupt message to the kernel.
For the main communication equipment, a refresh processing link of processing messages through the kernel, informing the network service layer to process the list items of Linkagg, informing the adaptation layer, informing the SDK and the list items of the conventional chip of the chip is avoided. The SDK is directly informed and the chip table entry is refreshed through the adaptation layer, so that the refreshing processing link is shorter and is not limited by the tedious processing time consumption of the kernel.
And S13, before the kernel of the standby communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the standby communication equipment.
In one embodiment, the adaptation layer of the primary communication device may send the first interrupt message to the SDK of the primary communication device and the SDK of the backup communication device simultaneously. Before this, the adaptation layer of the standby communication device does not send the first interrupt message to the kernel for processing.
And S14, the SDK of the standby communication equipment refreshes the chip table entry of the standby communication equipment according to the first interrupt message.
The SDK of the standby communication device may directly refresh the chip entry of the standby communication device according to the first interrupt message, and the process may be performed before the kernel of the standby communication device receives and processes the first interrupt message. Therefore, the chip table entries of the main communication equipment and the standby communication equipment are refreshed in advance, so that the closed ports are ensured not to be shared continuously, and the traffic loss is avoided.
When or after the adaptation layer of the main communication device sends the first interrupt message to the SDK of the main communication device and the SDK of the standby communication device, the adaptation layer of the main communication device and the adaptation layer of the standby communication device respectively refresh their entries according to the first interrupt message. After the adaptive layer of the main communication equipment refreshes the table entry of the main communication equipment, the kernel of the main communication equipment is informed to trigger the refreshing of the table entry of the network service layer of the main communication equipment; and after the adaptive layer of the standby communication equipment refreshes the self table entry, the kernel of the standby communication equipment is informed to trigger the refreshing of the network service layer table entry of the standby communication equipment.
Therefore, after the member ports belonging to the Linkagg in the standby communication equipment are closed, the stacking equipment completes the refreshing of all the table entries.
With reference to fig. 3, a specific embodiment of the method for switching Linkagg ports of the stacking apparatus according to the present application when the member ports belonging to Linkagg in the backup communication apparatus are closed from the end side of the backup communication apparatus is described below. In this embodiment, the method comprises:
s101, the adaptation layer of the standby communication equipment informs the adaptation layer of the main communication equipment of the received first interrupt message.
S102, before the kernel of the standby communication equipment receives the first interrupt message, the SDK of the standby communication equipment receives the first interrupt message sent by the adaptation layer of the main communication equipment and refreshes the chip table entry of the standby communication equipment.
S103, after the adaptation layer of the standby communication equipment refreshes the table entry of the standby communication equipment according to the first interrupt message, the adaptation layer informs the kernel of the standby communication equipment to trigger the refreshing of the table entry of the network service layer of the standby communication equipment.
With reference to fig. 4, a specific embodiment of the method for switching the Linkagg ports of the stacking apparatus according to the present application when the member ports belonging to Linkagg in the standby communication apparatus are closed will be described below. In this embodiment, the method comprises:
and S111, before the kernel of the main communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message received from the adaptation layer of the standby communication equipment to the SDK of the main communication equipment and refreshes the chip table entry of the main communication equipment.
And S112, before the kernel of the standby communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the standby communication equipment so as to refresh the chip table entry of the standby communication equipment.
S113, after the adaptation layer of the main communication equipment refreshes the table entry of the adaptation layer according to the first interrupt message, the adaptation layer informs the kernel of the main communication equipment to trigger the refreshing of the table entry of the network service layer of the main communication equipment.
In the foregoing embodiment, from the perspective of cooperation between the primary communication device and the standby communication device, a detailed description has been given of a specific embodiment of the method for switching the Linkagg port of the stacking device according to the present application when the member port belonging to Linkagg in the standby communication device is closed.
Scene 2: linkagg member port closing in main communication equipment
Referring to fig. 5, a specific embodiment of the method for switching the Linkagg ports of the stacking apparatus at this time is described. In this embodiment, the method comprises:
and S21, before the kernel of the primary communication equipment receives the second interrupt message, the adaptation layer of the primary communication equipment sends the second interrupt message to the SDK of the primary communication equipment and refreshes the chip table entry of the primary communication equipment.
The second interrupt message is an interrupt message of the port closing of the primary communication device. The adaptation layer of the main communication device sends the second interrupt message to the SDK of the main communication device before sending the second interrupt message to the kernel, so that the refreshing of the chip table entry of the main communication device does not need to wait for the kernel to process the second interrupt message.
And S22, before the kernel of the standby communication equipment receives the second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the standby communication equipment.
Specifically, the adaptation layer of the main communication device notifies the stack module of the main communication device of the second interrupt message, and the stack module of the main communication device edits the message and then sends the second interrupt message to the SDK of the standby communication device through the stack module of the standby communication device.
And S23, the SDK of the standby communication equipment refreshes the chip list item of the standby communication equipment according to the second interrupt message.
Similarly, the chip table entry of the standby communication equipment does not need to wait for the processing of the second interrupt message by the kernel, and the chip table entries of the main communication equipment and the standby communication equipment are refreshed in advance, so that the closed port is ensured not to be shared continuously, and the flow loss is avoided.
And at the same time or after the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the main communication equipment and the SDK of the standby communication equipment, the adaptation layer of the main communication equipment also sends the second interrupt message to the adaptation layer of the standby communication equipment, and the adaptation layer of the main communication equipment and the adaptation layer of the standby communication equipment respectively refresh the self items according to the second interrupt message. After the adaptive layer of the main communication equipment refreshes the table entry of the main communication equipment, the kernel of the main communication equipment is informed to trigger the refreshing of the network service layer table entry of the main communication equipment; and after the adaptive layer of the standby communication equipment refreshes the self table entry, the kernel of the standby communication equipment is informed to trigger the refreshing of the network service layer table entry of the standby communication equipment.
Therefore, after the member ports belonging to the Linkagg in the main communication equipment are closed, the stack equipment completes the refreshing of all the table entries.
With reference to fig. 6, a specific embodiment of a method for switching Linkagg ports of the stacking apparatus according to the present application when a member port belonging to Linkagg in a master communication apparatus is closed is described below. In this embodiment, the method comprises:
s201, before the kernel of the main communication equipment receives the second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the main communication equipment and refreshes the chip table entry of the main communication equipment.
And S202, before the kernel of the standby communication equipment receives the second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the standby communication equipment so as to refresh the chip table entry of the standby communication equipment.
S203, after the adaptation layer of the main communication equipment refreshes the table entry of the adaptation layer according to the second interrupt message, the adaptation layer informs the kernel of the main communication equipment to trigger the refreshing of the table entry of the network service layer of the main communication equipment.
With reference to fig. 7, a specific embodiment of a method for switching Linkagg ports of a stacking device according to the present application when a member port belonging to Linkagg in a primary communication device is closed will be described below with reference to an end side of a standby communication device. In this embodiment, the method comprises:
s211, before the kernel of the standby communication equipment receives the second interrupt message, the SDK of the standby communication equipment receives the second interrupt message sent by the main communication equipment, and refreshes the chip table entry of the standby communication equipment.
S212, the adaptation layer of the standby communication equipment receives the second interrupt message sent by the adaptation layer of the main communication equipment, and informs the kernel of the standby communication equipment of refreshing the list item of the network service layer of the standby communication equipment after refreshing the list item of the standby communication equipment according to the second interrupt message.
Similarly, in the foregoing embodiment, from the perspective of cooperation between the primary communication device and the standby communication device, a detailed description has been given of a specific embodiment of the method for switching the Linkagg port of the stacking device according to the present application when the port of the member belonging to Linkagg in the primary communication device is closed, and therefore, the detailed description of the embodiments of the primary communication device and the standby communication device will not be repeated herein.
The application also provides a Linkagg-based stacking device which comprises a main communication device and a plurality of standby communication devices. When the port of the standby communication device is closed, the stacking device may perform Linkagg port switching by using the method embodiment described in the above scenario 1; when the port of the primary communication device is closed, the stacking device performs Linkagg port switching by using the method embodiment described in the foregoing scenario 2.
When an event that member ports belonging to Linkagg in a main communication device and a standby communication device in the stacking device are closed is faced, the method preferentially depends on an adaptation layer of the main communication device to directly send interrupt messages to SDKs of the main communication device and the standby communication device to refresh respective chip table entries, and the refresh processing link is shorter and is not limited by the tedious processing time consumption of a kernel.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various modules by functions, which are described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (9)

1. A method for switching Linkagg ports of stacking equipment is characterized by comprising the following steps:
the adaptation layer of the standby communication equipment sends a received first interrupt message to the adaptation layer of the main communication equipment, wherein the first interrupt message is an interrupt message of closing a port of the standby communication equipment;
before the kernel of the main communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the main communication equipment and refreshes a chip table entry of the main communication equipment; and the number of the first and second groups,
before the kernel of the standby communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the standby communication equipment;
and the SDK of the standby communication equipment refreshes the chip table entry of the standby communication equipment according to the first interrupt message.
2. The stacking device Linkagg port switching method of claim 1, wherein the method further comprises:
after the adaptation layer of the main communication equipment refreshes the table entry of the adaptation layer according to the first interrupt message, the adaptation layer informs the kernel of the main communication equipment to trigger the refreshing of the table entry of the network service layer of the main communication equipment; and the number of the first and second groups,
and after the adaptation layer of the standby communication equipment refreshes the table entry of the standby communication equipment according to the first interrupt message, informing the inner core of the standby communication equipment to trigger the refreshing of the table entry of the network service layer of the standby communication equipment.
3. A method for switching Linkagg ports of stacking equipment is characterized by comprising the following steps:
the adaptation layer of the standby communication equipment sends a received first interrupt message to the adaptation layer of the main communication equipment, wherein the first interrupt message is an interrupt message of closing a port of the standby communication equipment;
before the kernel of the standby communication equipment receives the first interrupt message, the SDK of the standby communication equipment receives the first interrupt message sent by the adaptation layer of the main communication equipment and refreshes the chip table entry of the standby communication equipment.
4. A method for switching Linkagg ports of stacking equipment is characterized by comprising the following steps:
before a kernel of a main communication device receives a first interrupt message, an adaptation layer of the main communication device sends the first interrupt message received from an adaptation layer of a standby communication device to an SDK of the main communication device and refreshes a chip table entry of the main communication device; and (c) a second step of,
before the kernel of the standby communication equipment receives the first interrupt message, the adaptation layer of the main communication equipment sends the first interrupt message to the SDK of the standby communication equipment so as to refresh the chip table entry of the standby communication equipment;
wherein the first interrupt message is an interrupt message of the port closing of the standby communication equipment.
5. A method for switching Linkagg ports of stacking equipment is characterized by comprising the following steps:
before the kernel of the main communication equipment receives a second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the main communication equipment and refreshes the chip table entry of the main communication equipment; and (c) a second step of,
before the inner core of the standby communication equipment receives a second interrupt message, the adaptation layer of the main communication equipment sends the second interrupt message to the SDK of the standby communication equipment;
the SDK of the standby communication equipment refreshes the chip table entry of the standby communication equipment according to the second interrupt message;
wherein the second interrupt message is an interrupt message of the port closing of the primary communication device.
6. The stacking device Linkagg port switching method of claim 5, wherein the method further comprises:
after the adaptation layer of the main communication equipment refreshes the table entry of the adaptation layer according to the second interrupt message, the adaptation layer informs the kernel of the main communication equipment to trigger the refreshing of the table entry of the network service layer of the main communication equipment; and (c) a second step of,
the adaptation layer of the main communication equipment sends a second interrupt message to the adaptation layer of the standby communication equipment;
and after the adaptation layer of the standby communication equipment refreshes the table entry of the standby communication equipment according to the second interrupt message, informing the inner core of the standby communication equipment to trigger the refreshing of the table entry of the network service layer of the standby communication equipment.
7. A method for switching Linkagg ports of stacking equipment is characterized by comprising the following steps:
before the kernel of the standby communication equipment receives a second interrupt message, the SDK of the standby communication equipment receives the second interrupt message sent by the adaptation layer of the main communication equipment and refreshes the chip table entry of the standby communication equipment;
wherein the second interrupt message is an interrupt message of the port closing of the primary communication device.
8. A Linkagg-based stacking device, comprising a main communication device and a plurality of standby communication devices, wherein when the ports of the standby communication devices are closed, the stacking device performs Linkagg port switching by using the method of any one of claims 1 to 4.
9. A Linkagg-based stacking device, comprising a primary communication device and a plurality of standby communication devices, wherein when a port of the primary communication device is closed, the stacking device performs Linkagg port switching by using the method of any one of claims 5 to 7.
CN202011077989.8A 2020-10-10 2020-10-10 Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment Active CN112235192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011077989.8A CN112235192B (en) 2020-10-10 2020-10-10 Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011077989.8A CN112235192B (en) 2020-10-10 2020-10-10 Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment

Publications (2)

Publication Number Publication Date
CN112235192A CN112235192A (en) 2021-01-15
CN112235192B true CN112235192B (en) 2022-07-08

Family

ID=74113060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011077989.8A Active CN112235192B (en) 2020-10-10 2020-10-10 Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment

Country Status (1)

Country Link
CN (1) CN112235192B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986626A (en) * 2010-11-18 2011-03-16 中兴通讯股份有限公司 Method and device for protecting equipment
CN102510408A (en) * 2011-11-30 2012-06-20 武汉烽火网络有限责任公司 Method for realizing TCP (transmission control protocol) application main and standby changeover
CN109218436A (en) * 2018-10-08 2019-01-15 四川长虹电器股份有限公司 A kind of lan device discovery method based on dual-port redundancy technique
CN109995681A (en) * 2019-03-07 2019-07-09 盛科网络(苏州)有限公司 A kind of single-chip realizes the device and method of dual master control active-standby switch
CN110535760A (en) * 2018-05-25 2019-12-03 丛林网络公司 The forwarding of aggregation interface detects
CN111064660A (en) * 2019-12-26 2020-04-24 盛科网络(苏州)有限公司 Method for smoothing Linkagg table entries of chips between master communication equipment and slave communication equipment and communication system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8051189B2 (en) * 2005-11-18 2011-11-01 Genband Us Llc Methods, systems, and computer program products for session initiation protocol (SIP) fast switchover
CN101610143B (en) * 2009-07-09 2012-09-19 华为技术有限公司 Protection method, system and device of link data
JP6083576B2 (en) * 2011-12-23 2017-02-22 インテル・コーポレーション Memory device, method and system
US9436487B2 (en) * 2012-03-29 2016-09-06 Adobe Systems Incorporated Method and apparatus for creating a platform agnostic application file
CN102724030A (en) * 2012-06-29 2012-10-10 杭州迪普科技有限公司 Stacking system with high reliability
CN102857422B (en) * 2012-09-13 2015-01-14 烽火通信科技股份有限公司 System and method for realizing OLT voice double upper-link protection based on OSPF routing protocol
CN103647710A (en) * 2013-11-01 2014-03-19 华为技术有限公司 Path configuration method and device
CN109246007A (en) * 2017-07-10 2019-01-18 杭州达乎科技有限公司 Active and standby port switching method, storage device and the network equipment of aggregation interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986626A (en) * 2010-11-18 2011-03-16 中兴通讯股份有限公司 Method and device for protecting equipment
CN102510408A (en) * 2011-11-30 2012-06-20 武汉烽火网络有限责任公司 Method for realizing TCP (transmission control protocol) application main and standby changeover
CN110535760A (en) * 2018-05-25 2019-12-03 丛林网络公司 The forwarding of aggregation interface detects
CN109218436A (en) * 2018-10-08 2019-01-15 四川长虹电器股份有限公司 A kind of lan device discovery method based on dual-port redundancy technique
CN109995681A (en) * 2019-03-07 2019-07-09 盛科网络(苏州)有限公司 A kind of single-chip realizes the device and method of dual master control active-standby switch
CN111064660A (en) * 2019-12-26 2020-04-24 盛科网络(苏州)有限公司 Method for smoothing Linkagg table entries of chips between master communication equipment and slave communication equipment and communication system

Also Published As

Publication number Publication date
CN112235192A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
US11361000B2 (en) Predictive and adaptive queue flushing for real-time data reconciliation between local and remote databases
CN111314149B (en) System for realizing unified monitoring operation and maintenance management based on multiple edge cloud platforms
CN102411639B (en) Multi-copy storage management method and system of metadata
CN112069265A (en) Configuration data synchronization method, service data system, computer system and medium
CN102761528A (en) System and method for data management
US10127077B2 (en) Event distribution pattern for use with a distributed data grid
CN110515748B (en) Message processing method and related device
TWI701916B (en) Method and device for self-recovering management ability in distributed system
CN103095806A (en) Load balancing management system of large-power-network real-time database system
CN105760519A (en) Cluster file system and file lock allocation method thereof
CN110309108A (en) Data acquisition and storage method, device, electronic equipment, storage medium
CN108984320A (en) A kind of anti-fissure method and device of message queue cluster
CN106919473A (en) A kind of data disaster recovery and backup systems and method for processing business
CN109639773A (en) A kind of the distributed data cluster control system and its method of dynamic construction
CN107454171B (en) Message service system and implementation method thereof
CN109117310A (en) Realize disaster tolerance system, the method and device of data backup
WO2014135011A1 (en) Database system and data synchronization method
CN108390919B (en) Message synchronization system and method for high-reliability dual-computer hot standby
CN104184679A (en) Method of scheduling message in intelligent substation and device
CN105404565A (en) Dual-live-data protection method and apparatus
CN109859068B (en) Power grid data real-time synchronization system based on resource pool technology
CN112235192B (en) Linkagg port switching method for stacking equipment and Linkagg-based stacking equipment
CN102541693A (en) Multi-copy storage management method and system of data
Ushakumari A retrial inventory system with an unreliable server
WO2020158016A1 (en) Backup system, method therefor, and program

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province

Applicant after: Suzhou Shengke Communication Co.,Ltd.

Address before: Unit 13 / 16, floor 4, building B, No. 5, Xinghan street, Suzhou Industrial Park, Suzhou, Jiangsu Province, 215000

Applicant before: CENTEC NETWORKS (SUZHOU) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant