CN114520793A - Management method, equipment and medium for switch stacking system - Google Patents

Management method, equipment and medium for switch stacking system Download PDF

Info

Publication number
CN114520793A
CN114520793A CN202210066152.6A CN202210066152A CN114520793A CN 114520793 A CN114520793 A CN 114520793A CN 202210066152 A CN202210066152 A CN 202210066152A CN 114520793 A CN114520793 A CN 114520793A
Authority
CN
China
Prior art keywords
switch
neighbor
message
sending
information
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.)
Pending
Application number
CN202210066152.6A
Other languages
Chinese (zh)
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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202210066152.6A priority Critical patent/CN114520793A/en
Publication of CN114520793A publication Critical patent/CN114520793A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a management method, equipment and medium of a switch stacking system. The method comprises the following steps: initializing a plurality of switches, determining identification information corresponding to the switches, and sending a heartbeat message through a stacking port of a designated switch in the switches, wherein the heartbeat message comprises the identification information and stacking port information; receiving a heartbeat message sent by the appointed switch through a neighbor switch of the appointed switch, determining a preparation message through a neighbor management module of the neighbor switch according to the heartbeat message, and sending a topology notification message to the appointed switch at regular time through the neighbor management module according to the preparation message; and extracting the online information of the neighbor switch according to the topology announcement message, storing the online information to an equipment information table of the appointed switch, and carrying out topology transmission on the online information in the switch stacking system through the appointed switch. The application provides an efficient and stable stack system management method.

Description

Management method, equipment and medium for switch stacking system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for managing a switch stacking system.
Background
The switch stacking technology is to combine more than one switch with cables through stacked ports so as to expand the number of single switches in a limited physical space. A switch stack differs from a logically independent cascade in that the switches that make up the stack system logically correspond to one device. Meanwhile, the switch stacking technology is to logically virtualize a plurality of devices into a set of system, which relates to the distributed communication and device management of the switch, and increases the complexity of the communication and device management in the stacking system.
According to the connection mode of physical links of the stacking system, the stacking system is mainly divided into chain type stacking and ring type stacking, and the current common topological structure mainly adopts a ring topological structure. In the ring topology structure, unicast forwarding of control messages among devices is controlled by forwarding table entries of a chip, so that the problems of optimal paths and multicast message storms are easily caused, and the message transmission efficiency is low and unstable.
Therefore, how to construct an efficient and stable stacking system becomes an urgent problem to be solved.
Disclosure of Invention
In order to solve the above problem, the present application provides a management method for a switch stack system, which is applied in a switch stack system, where the switch stack system includes a plurality of switches, and the method includes: initializing the plurality of switches, determining identification information corresponding to the plurality of switches, and sending heartbeat messages through a stacking port of a designated switch in the plurality of switches, wherein the heartbeat messages comprise the identification information and the stacking port information; receiving a heartbeat message sent by the appointed switch through a neighbor switch of the appointed switch, determining a preparation message through a neighbor management module of the neighbor switch according to the heartbeat message, and sending a topology notification message to the appointed switch through the neighbor management module at regular time according to the preparation message; and extracting the online information of the neighbor switch according to the topology notification message, storing the online information to an equipment information table of the appointed switch, and carrying out topology transmission on the online information in the switch stacking system through the appointed switch.
In one example, the method further comprises: acquiring the online information through the equipment information table of the specified switch, and determining an online neighbor switch according to the online information; determining a first stack port connected with the online neighbor switch, and acquiring the equipment information of the online neighbor switch through the first stack port of the specified switch; and determining a second stacking port connected with other switches, and transmitting the equipment information to other switches through the second stacking port of the specified switch.
In one example, a packet transceiver module is arranged in the switch; receiving, by the neighbor switch of the designated switch, the heartbeat packet sent by the designated switch, specifically including: the heartbeat message is sent through the packet receiving and sending module of the appointed switch, the heartbeat message is received through the packet receiving and sending module of the neighbor switch, and the received heartbeat message is sent to the neighbor management module of the neighbor switch through the packet receiving and sending module; according to a preset check program in the neighbor management module, carrying out online check on the receiving frequency of the heartbeat message within preset time to obtain the online state of the specified switch; and the neighbor management module carries out topology transmission on the on-line state in the switch stacking system.
In one example, the method further comprises: starting a receiving mechanism of the switch, receiving the heartbeat message, and carrying out neighbor preparation identification on the neighbor switch corresponding to the heartbeat message through the neighbor management module; under the condition that the neighbor switch corresponding to the heartbeat message is not received, judging the online state of the neighbor switch; if the neighbor switch is on-line, judging the oscillation processing time of the neighbor switch; if the neighbor switch is not in the oscillation processing time, the neighbor switch is determined to be in the offline state, and the offline state of the neighbor switch is sent to other switches through the neighbor management module of the switch.
In one example, the method further comprises: starting a topology receiving mechanism of the switch according to the neighbor preparation identifier to process the topology notification message of the neighbor switch and judge the message content of the topology notification message; if the received topology notification message is a notification message, extracting the notification message and transmitting the notification message; and if the received topology notification message is an offline message, sending the offline message of the neighbor switch to other switches.
In an example, sending a heartbeat packet through a stack port of a designated switch in the plurality of switches specifically includes: determining the stacking enabling state of the plurality of switches according to the identification information, starting a packet receiving and transmitting module of the switch according to the stacking enabling state, and determining a timing sending program of the packet receiving and transmitting module; and determining a sending period in the timing sending program, and sending the heartbeat message through the stacking port according to the sending period.
In one example, determining a preparation message by a neighbor management module of the neighbor switch according to the heartbeat message, and sending a topology advertisement message to the designated switch at regular time by the neighbor management module according to the preparation message specifically includes: determining the identification information and the stacking port information corresponding to the specified switch according to the heartbeat message so as to determine the preparation state of the specified switch; and starting a timing topology notification program of the neighbor management module according to the preparation state so as to send the topology notification message to the appointed switch at regular time through the neighbor switch.
In one example, the method further comprises: and acquiring the online information of the equipment information table through the neighbor management module, and sending the topology notification message to the online switch at regular time according to the online information.
On the other hand, the present application also provides a management device of a switch stack system, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the management device of the switch stack system to: a method as in any preceding example.
In another aspect, the present application further provides a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to: a method as in any preceding example.
The method and the device have the advantages that an interaction mode that the heartbeat message and the notification message reach the physical neighbor to be terminated is adopted, and the message storm problem before the loop blocking point is not set in the annular stacking system is effectively avoided. The topology announcement message is interacted in a TIPC RDM mode, on the premise of ensuring the stability and the accessibility of the message, handshake message interaction between neighbor equipment is reduced, interaction efficiency is improved, and the problem of stack port message storm caused by a retransmission mechanism of a protocol is avoided. And a heartbeat message timeout mechanism is adopted to control the physical neighbor to be offline, so that the problem of frequent online and offline of equipment caused by link oscillation is effectively avoided. And by means of the soft table management of the TIPC, the topology convergence of the offline device is quickly finished by adopting a mode of combining the overtime offline of the physical neighbor with the active notification of TIPC STREAM to the offline of the appointed member of other devices. The application provides an efficient and stable stack system management method, which not only can better control the on-line and off-line states of stack members, but also can provide better guidance for member configuration management and forwarding path selection of the stack system.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart illustrating a management method of a switch stack system according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a topology connection of a switch stack system according to an embodiment of the present invention;
fig. 3 is a diagram illustrating a step of sending a message by a switch device of the switch stack system according to an embodiment of the present application;
fig. 4 is a task flow diagram of receiving a heartbeat message by a switch of the switch stacking system in the embodiment of the present application;
fig. 5 is a task flow diagram of a switch of the switch stack system receiving a topology advertisement message in an embodiment of the present application;
fig. 6 is a schematic diagram of a management device of a switch stack system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the 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 application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The stack member devices periodically advertise handshake messages, such as hello messages, to ensure that other member devices can identify themselves in the stack topology. The handshake message of the member device is not received within a predetermined time, and the other member devices consider the member device to leave the stack topology.
When announcing the handshake message, each member device in the stack system will send out a hello message through an enabled stack port, and usually one member device includes two stack ports. After other member devices in the stacking system receive the hello message, corresponding device information is extracted according to the content of the hello message, and if the received hello message is sent by the local machine, the hello message is directly discarded; if the message is not sent by the local machine, the message is forwarded.
The stacking system is a logically single system formed by physical cable connection, and the stacking Member devices perform cross-device configuration management and message forwarding in the stacking system according to preset Member numbers (Member IDs). The information transmitted between the member devices in the stacking system is mainly used for controlling information interaction among the devices, so that unified management of the devices in the stacking system is realized conveniently, and a unique management interface and a unique logic processing unit are provided for the outside.
At present, each device of a switch stacking system on the market sends out an announcement message for whole network forwarding, and a message storm is easily caused when a ring topology is not provided with a blocking point. And the TCP mode is generally adopted to exchange messages among the devices, and multiple prepositive message interaction operations need to be completed before actual message interaction, so that the message interaction is complex. In addition, the process for the offline device depends on a timeout mechanism, and the topology convergence is slow.
As shown in fig. 1, a management method for a switch stack system provided in an embodiment of the present application is applied in a switch stack system, where the switch stack system includes a plurality of switches, and the method includes:
s101: initializing the switches, determining identification information corresponding to the switches, and sending heartbeat messages through stacking ports of the switches, wherein the heartbeat messages comprise the identification information and stacking port information.
Initializing a plurality of switch devices in a switch stack system, and setting unique corresponding identification information memberID for each switch according to a preset rule in the initialization process. After the stacking function of the switch stacking system is enabled, a timed sending task of a switch packet receiving and sending module is started, a heartbeat message is sent outwards through an enabled stacking port periodically, and the heartbeat message is terminated when reaching the physical neighbor switch equipment. The physical neighbor switch is a switch directly connected with the switch in a wired manner. The receiving and sending module of the neighbor switch device receives the heartbeat message, and the heartbeat message stores the memberID information and the stacking port information of the received message.
S102: the method comprises the steps of receiving a heartbeat message sent by a neighbor switch through the switch, sending a preparation message to a neighbor management module of the switch according to the heartbeat message, and sending a topology notification message to the neighbor switch through the neighbor management module at regular time according to the preparation message.
Each switch in the switch stack system can send heartbeat messages to its neighbor switches or receive heartbeat messages sent by neighbor switches. The preparation state of the corresponding neighbor switch can be obtained according to the received heartbeat message, and after the preparation state is obtained, the switch transceiving packet module prepares a message ready message to an internal neighbor management module. After receiving ready information of a physical neighbor switch of the packet receiving and sending module, the neighbor management module starts a timing topology notification task of the neighbor management module, and sends a topology notification message To a recorded stack port through a message mechanism of a Transparent Inter-process Communication (TIPC) RDM, wherein the topology notification message carries information of other devices such as unique identification memberID information and interval hop count (Time To Live, TTL) of the switch, and the message is terminated when reaching the physical neighbor.
The TIPC is a network communication protocol for interprocess communication, and is originally designed for inter-cluster communication. It allows designers to create applications that can communicate with other applications quickly and reliably, regardless of the location of other applications requiring communication in a clustered environment. To accommodate user needs, TIPC allows four different communication modes: SOCK _ DGRAM: unreliable unlinked messages; SOCK _ RDM: reliable unlinked messages; SOCK _ SEQPACKET: reliable link-oriented messages; SOCK _ STREAM: the reliable link-oriented byte stream. Because the neighbor messages are sent periodically, the message interaction between the devices can be reduced by adopting the TIPC RDM messages on the premise of ensuring the message reliability.
S103: and extracting the online information of the neighbor switch according to the topology notification message, storing the online information to an equipment information table of the switch, and carrying out topology transmission on the online information in the switch stacking system through the switch.
The device receives a topology notice message sent by a physical neighbor, extracts the unique device identification, the interval hop count and the online stacking port information in the message, stores the unique device identification, the interval hop count and the online stacking port information in a local device information list, and simultaneously sends a device online message to other switches.
In one embodiment, before the timing task of the neighbor management module sends the topology advertisement message, the switch traverses the stored device information list, and obtains the online information through the device information list, so as to determine the online neighbor switch according to the online information. The device information of the on-line neighbor switch is acquired from the stack port (referred to herein as the first stack port) that is connected to the neighbor switch and that sends the message. According to the device information, the online state of the third-party neighbor switch is determined through another stacking port (referred to as a second stacking port) connected with the third-party neighbor switch, and the message can be transmitted to the first stacking port only after the third-party neighbor switch is online. Extracting the device information on the line of the second stack port stored in the device information list, combining the local information and the unique identifier (memberID) information of other devices in the device list, jumping at intervals, modifying the TTL value (for example, adding 1), and sending the device information on the line of the second stack port to the first stack port through a message mechanism of TIPC RDM.
As shown in fig. 2, taking switch number 1(M1) as an example, M1 receives neighbor advertisement messages of number 2(M2) from the second stack port (M1-2) and neighbor advertisement messages of number 5(M5) from the first stack port (M1-1), respectively. Only M2 own device information exists in the neighbor advertisement message of M2 received for the first time, only M5 own device information exists in the neighbor advertisement message of M5, and the online processes of the M2 device and the M5 device are respectively completed through the two messages M1. Subsequently, when the M1 sends a topology advertisement message to the M2 through the M1-2, the message carries local information: the device unique identifier M1, interval hop count TTL 1; and information of M5: the device unique identification M5, interval hop count TTL 2. Through such a neighbor message transfer manner, the M2 device completes the online flow of the M5 device, and completes the topology advertisement transfer to Member3(M3) through its M2-2. By means of the TIPC RDM neighbor advertisement message which is terminated when the message reaches a physical neighbor, on the premise that the message is reliable, message interaction among devices is reduced, and meanwhile, the problem of message storm caused by a loop can be effectively avoided before an optimal blocking point is not set.
In one embodiment, the switch comprises a packet receiving and sending module and a neighbor management module, wherein the packet receiving and sending module is responsible for sending or receiving heartbeat messages, acquiring ready information of the neighbor switch from the received heartbeat messages and sending the ready information to the neighbor management module. The neighbor management module is preset with an online check program for the physical neighbor switch, and the check program utilizes that the packet receiving and sending module continuously does not receive the heartbeat message of the physical neighbor switch which is online in a preset time, namely, the physical neighbor switch is considered to be offline. By adopting the mode of presetting time, the problem that equipment is frequently connected with the line and disconnected from the line due to link oscillation can be reduced, the stability of the stacking system is maintained, meanwhile, the message interaction among internal modules is reduced, and the system pressure is reduced. When the packet receiving and sending module does not continuously receive the heartbeat messages of the physical neighbor switch within the preset time, the device determines that the device is off-line, and then immediately sends an off-line message of the physical neighbor switch to the device management module. The device management module actively sends the offline message of the appointed switch device to other switch devices in the topology by utilizing an TIPC STREAM message mechanism according to the received offline message of the physical neighbor switch, and the offline processing of the device is rapidly completed. Compared with TCP messages, the method reduces multiple handshaking processes before connection establishment, and rapidly notifies other devices in the topology of the offline message on the premise of ensuring the reliability of the message by adopting TIPC STREAM.
In one embodiment, as shown in fig. 3, the present embodiment provides a step of sending a message by a switch device of a switch stack system: after the stacking function is enabled, the packet receiving and transmitting module starts a timing task and sends a heartbeat message which is terminated when reaching a physical neighbor through an enabled stacking port. And judging whether the physical neighbor is ready or not, wherein whether the physical neighbor is ready is set by whether the heartbeat message of the neighbor is received or not. And after the equipment management module judges that the physical neighbor is ready, starting a timing topology notification task. And traversing the equipment information list by the timing task, and extracting the equipment unique identifier (memberID), the equipment survival hop count and the online stacking port from the information list. And sending a topology notification message to a physical neighbor through a message mechanism of a TIPC RDM according to a principle of transmitting equipment information carrying the online of the first stack port and local information to a second stack port.
In an embodiment, as shown in fig. 4, the embodiment provides a task flow of a switch stack system receiving a heartbeat message: after the stack is enabled, starting a heartbeat message receiving mechanism of the physical neighbor switch, and after receiving the heartbeat message of the neighbor switch, setting a ready identifier of the physical neighbor switch to a neighbor management module. If the heartbeat message of the physical neighbor switch is not received, judging whether the neighbor switch equipment is on-line or not, and if not, not processing; if the neighbor switch is on line, starting to judge whether the neighbor switch is in the preset oscillation processing time, if not, considering that the neighbor switch device is off line, and informing the neighbor management module of the device off line. The oscillation processing flow is preset in the processing process, the problem that equipment is frequently brought on and taken off the line due to link oscillation can be solved by adopting a mode of presetting time, the stability of the stacking system is maintained, meanwhile, the message interaction among internal modules is reduced, and the system pressure is reduced.
In an embodiment, as shown in fig. 5, a task flow of a switch receiving topology advertisement message of the switch stack system provided in this embodiment is as follows: after the stacking function is enabled, whether to start receiving a topology notification message is determined according to whether a ready message of a physical neighbor switch is received, wherein the topology notification message mainly processes notification messages and offline messages of the neighbor switch. When receiving the neighbor advertisement message, performing on-line logic processing on the equipment; and when the device offline message is received, processing the device offline message. The on-line logic is used for extracting the equipment unique identifier (memberID), the interval hop count information (TTL) and the on-line stacking port information in the neighbor advertisement message, storing the extracted equipment unique identifier, the interval hop count information (TTL) and the on-line stacking port information into an equipment information list, and providing an on-line message of the switch equipment for other functional modules. The offline processing is to clear the stored equipment information and provide offline information for other functional modules.
In one embodiment, the stacking enabling state of a plurality of switches is determined according to the identification information, the packet receiving and transmitting module of the switch is started according to the stacking enabling state, and the timing transmitting program of the packet receiving and transmitting module is determined; and determining a sending period in the timing sending program, and sending the heartbeat message through the stacking port according to the sending period.
In one embodiment, the identification information and stacking port information corresponding to the designated switch are determined according to the heartbeat message so as to determine the preparation state of the designated switch; and starting a timing topology notification program of the neighbor management module according to the preparation state so as to send a topology notification message to the appointed switch at regular time through the neighbor switch.
In one embodiment, the on-line information of the device information table is acquired through the neighbor management module, and the topology advertisement message is sent to the on-line switch at regular time according to the on-line information.
As shown in fig. 6, an embodiment of the present application further provides a management device of a switch stack system, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the management device of the switch stack system to perform the method according to any one of the embodiments described above.
An embodiment of the present application further provides a non-volatile computer storage medium storing computer-executable instructions, where the computer-executable instructions are configured to: a method as in any preceding embodiment.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one to one, so the device and the medium also have the similar beneficial technical effects as the corresponding method, and the beneficial technical effects of the method are explained in detail above, so the beneficial technical effects of the device and the medium are not repeated herein.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A management method of a switch stack system, which is applied in a switch stack system including a plurality of switches, the method comprising:
initializing the switches, determining identification information corresponding to the switches, and sending a heartbeat message through a stacking port of a designated switch in the switches, wherein the heartbeat message comprises the identification information and stacking port information;
receiving a heartbeat message sent by the appointed switch through a neighbor switch of the appointed switch, determining a preparation message through a neighbor management module of the neighbor switch according to the heartbeat message, and sending a topology notification message to the appointed switch through the neighbor management module at regular time according to the preparation message;
and extracting the online information of the neighbor switch according to the topology notification message, storing the online information to an equipment information table of the appointed switch, and carrying out topology transmission on the online information in the switch stacking system through the appointed switch.
2. The method of claim 1, further comprising:
acquiring the online information through the equipment information table of the specified switch, and determining an online neighbor switch according to the online information;
determining a first stack port connected with the online neighbor switch, and acquiring the equipment information of the online neighbor switch through the first stack port of the specified switch;
and determining a second stacking port connected with other switches, and transmitting the equipment information to other switches through the second stacking port of the specified switch.
3. The method of claim 1, wherein a packet transceiver module is disposed within the switch;
receiving, by the neighbor switch of the designated switch, the heartbeat packet sent by the designated switch, specifically including:
the heartbeat message is sent through the packet receiving and sending module of the appointed switch, the heartbeat message is received through the packet receiving and sending module of the neighbor switch, and the received heartbeat message is sent to the neighbor management module of the neighbor switch through the packet receiving and sending module;
performing online check on the receiving frequency of the heartbeat message within preset time according to a preset check program in the neighbor management module to obtain the online state of the specified switch;
and the neighbor management module carries out topology transmission on the on-line state in the switch stacking system.
4. The method of claim 3, further comprising:
starting a receiving mechanism of the switch, receiving the heartbeat message, and carrying out neighbor preparation identification on the neighbor switch corresponding to the heartbeat message through the neighbor management module;
under the condition that the neighbor switch corresponding to the heartbeat message is not received, judging the online state of the neighbor switch;
if the neighbor switch is on-line, judging the oscillation processing time of the neighbor switch;
if the neighbor switch is not in the oscillation processing time, the neighbor switch is determined to be in the offline state, and the offline state of the neighbor switch is sent to other switches through the neighbor management module of the switch.
5. The method of claim 4, further comprising:
starting a topology receiving mechanism of the switch according to the neighbor preparation identifier to process the topology notification message of the neighbor switch and judge the message content of the topology notification message;
if the received topology notification message is a notification message, extracting the notification message and transmitting the notification message;
and if the received topology notification message is an offline message, sending the offline message of the neighbor switch to other switches.
6. The method according to claim 1, wherein sending the heartbeat message through a stack port of a designated switch of the plurality of switches specifically comprises:
determining the stacking enabling state of the plurality of switches according to the identification information, starting a packet receiving and transmitting module of the switch according to the stacking enabling state, and determining a timing sending program of the packet receiving and transmitting module;
and determining a sending period in the timing sending program, and sending the heartbeat message through the stacking port according to the sending period.
7. The method according to claim 1, wherein determining a preparation message by a neighbor management module of the neighbor switch according to the heartbeat message, and periodically sending a topology advertisement message to the designated switch by the neighbor management module according to the preparation message specifically includes:
determining the identification information and the stacking port information corresponding to the specified switch according to the heartbeat message so as to determine the preparation state of the specified switch;
and starting a timing topology notification program of the neighbor management module according to the preparation state so as to send the topology notification message to the appointed switch at regular time through the neighbor switch.
8. The method of claim 1, further comprising:
and acquiring the online information of the equipment information table through the neighbor management module, and sending the topology notification message to the online switch at regular time according to the online information.
9. A management apparatus of a switch stack system, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the management device of the switch stack system to: the method of any one of claims 1-8.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to: the method of any one of claims 1-8.
CN202210066152.6A 2022-01-20 2022-01-20 Management method, equipment and medium for switch stacking system Pending CN114520793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210066152.6A CN114520793A (en) 2022-01-20 2022-01-20 Management method, equipment and medium for switch stacking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210066152.6A CN114520793A (en) 2022-01-20 2022-01-20 Management method, equipment and medium for switch stacking system

Publications (1)

Publication Number Publication Date
CN114520793A true CN114520793A (en) 2022-05-20

Family

ID=81597517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210066152.6A Pending CN114520793A (en) 2022-01-20 2022-01-20 Management method, equipment and medium for switch stacking system

Country Status (1)

Country Link
CN (1) CN114520793A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258380A1 (en) * 2006-05-02 2007-11-08 Mcdata Corporation Fault detection, isolation and recovery for a switch system of a computer network
CN101141404A (en) * 2007-10-16 2008-03-12 中兴通讯股份有限公司 Stack system topological management method and topological alteration notifying method
CN107566143A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 A kind of vertical stack finds method and apparatus
CN108199986A (en) * 2017-12-15 2018-06-22 瑞斯康达科技发展股份有限公司 A kind of data transmission method, stack equipment and pile system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258380A1 (en) * 2006-05-02 2007-11-08 Mcdata Corporation Fault detection, isolation and recovery for a switch system of a computer network
CN101141404A (en) * 2007-10-16 2008-03-12 中兴通讯股份有限公司 Stack system topological management method and topological alteration notifying method
CN107566143A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 A kind of vertical stack finds method and apparatus
CN108199986A (en) * 2017-12-15 2018-06-22 瑞斯康达科技发展股份有限公司 A kind of data transmission method, stack equipment and pile system

Similar Documents

Publication Publication Date Title
US10111208B2 (en) System and method for performing security management operations in network having non-static collection of nodes
US11438777B2 (en) Method and apparatus for monitoring Zigbee node network status
CN111682927B (en) Message synchronization method, device, equipment and medium based on MLAG environment
EP3316555B1 (en) Mac address synchronization method, device and system
JPH05276175A (en) Data communication method and communication system
CN112737944B (en) Bfd-based peer-link state detection method, device and medium
US20200389863A1 (en) Method and system for processing node registration notification
CN101483571B (en) RRPP configuring method, system and device
WO2016206635A1 (en) Lacp-based forwarding detection method and system
US7720008B2 (en) Method for determining a leading subscriber in a network
EP2472793A1 (en) Method, device and system for transmitting e1 bidirectional looped network data
CN114285695B (en) Communication method, device, apparatus, system and storage medium
WO2016110084A1 (en) Method, device and system for precision time protocol time synchronization in aggregation network
JP2018528680A (en) Anchor master AM management method and node
CN114520793A (en) Management method, equipment and medium for switch stacking system
CN116938712A (en) Device upgrade method, device upgrade apparatus, and computer-readable storage medium
CN104717089A (en) Equipment switching method and routing bridge equipment and system
WO2020147081A1 (en) Data transmission method, related device, and computer storage medium
EP3331199B1 (en) Method and system for simple device replacement in a class a (cca) network
CN112448924A (en) Message processing method, system and switching equipment compatible with multiple protocols
CN108696460B (en) Message forwarding method and device
WO2017143722A1 (en) Network function implementing method, control device and network element
CN104821917B (en) A kind of topology discovery method for virtual switch system
CN111682978A (en) Network communication enhancement method and system
WO2024114325A1 (en) Data transmission method and related apparatus thereof

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