CN110912837A - VSM system-based main/standby switching method and device - Google Patents

VSM system-based main/standby switching method and device Download PDF

Info

Publication number
CN110912837A
CN110912837A CN201911083269.XA CN201911083269A CN110912837A CN 110912837 A CN110912837 A CN 110912837A CN 201911083269 A CN201911083269 A CN 201911083269A CN 110912837 A CN110912837 A CN 110912837A
Authority
CN
China
Prior art keywords
port
active
board card
vsm system
frame device
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.)
Granted
Application number
CN201911083269.XA
Other languages
Chinese (zh)
Other versions
CN110912837B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201911083269.XA priority Critical patent/CN110912837B/en
Publication of CN110912837A publication Critical patent/CN110912837A/en
Application granted granted Critical
Publication of CN110912837B publication Critical patent/CN110912837B/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
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • 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/24Multipath
    • H04L45/245Link aggregation, e.g. trunking

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for switching between a main board and a standby board based on a VSM system, which are applied to a first main control board card included in main frame equipment of the VSM system, and the method comprises the following steps: after detecting that the first frame type equipment needs to be restarted, carrying out aggregation link negotiation with an opposite-end VSM system connected with the VSM system to obtain each first activated port except for the port of at least one first service board card; updating a first activation port table corresponding to the aggregation link according to each first activation port; the first activation port table is sent to at least one second service board card, so that the at least one second service board card forwards the message according to the first activation port table; and performing active-standby switching with the second frame type device, so that after the second frame type device is switched to be the main frame type device, performing aggregated link negotiation with the opposite-end VSM system to obtain each second activated port, and updating the first activated port table according to the second activated ports. By applying the embodiment of the application, packet loss and network fluctuation can be avoided.

Description

VSM system-based main/standby switching method and device
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for switching between a host and a standby based on a Virtual Switch Matrix (VSM) system.
Background
With the increasing scale of the network, the traffic in the network is more and more diverse, and the processing requirements for various network services are more and more, so that a frame type device is introduced into the network device. A main control board card and various service board cards can be inserted into one frame type device to process various network services, and more diverse service requirements are met. However, if a single frame device is abnormal, a serious fault of the whole network will occur, and a Virtual Switch Matrix (VSM) technology is further developed, that is, two frame devices are virtualized as one device, one is used as a main frame device (Master) and is responsible for managing the whole VSM system, the other is used as a standby frame device (Slave) and is a redundant backup, and when the Master is restarted, the Slave is switched to the main frame.
As traffic increases day by day, in order to alleviate bandwidth pressure of network devices, a link aggregation technology is generally used at present, multiple links are aggregated together to form a logical aggregated link, and a network device can perform aggregated link negotiation with a connected opposite-end network device to determine an active (active) port and an inactive (in-active) port, where the active port can participate in traffic forwarding and the in-active port is in a blocking state and does not participate in traffic offloading and forwarding. After receiving the traffic, the network device may first use an aggregation classification algorithm to select a port participating in forwarding from the active ports of the aggregation link, and then send the traffic through the selected port, thereby implementing an even distribution of the traffic on the network device.
The link aggregation technique may be employed in a VSM system, see fig. 1, where fig. 1 is a schematic diagram of the link aggregation technique used in a VSM system. The Master comprises a Master control board control-a, a service board func1, a service board func2 and a cascade board a, the Slave comprises a Master control board control-b, a service board func3, a service board func4 and a cascade board b, the Master and the Slave are connected through the cascade board a and the cascade board b, the cascade board a is provided with a cascade port a, the cascade board b is provided with a cascade port b, and links corresponding to a port 1 of the func1, a port 2 of the func2, a port 3 of the func3 and a port 4 of the func4 can form an aggregation link.
The main/standby switching method based on the VSM system comprises the following steps: initially, a control-a controls the aggregation link negotiation of the VSM system, and if it is detected that a major abnormality occurs in the main frame device and a restart is required, ports and board cards are cancelled one by one, that is, port 1 on cancellation func1, cancellation func1, port 2 on cancellation func2, cancellation func2, cancellation cascade port a and cascade board a are cancelled; after finding that the state of the cascading port b is closed, the control-b switches to the Master, meanwhile, the traffic sent to the func1 and the func2 is sent to the func3 and the func4, the control-b takes over the aggregation link negotiation, as the ports 1 and 2 are not in place, the active table only comprises the ports 3 and 4 at the moment, the active table is sent to the func3 and the func4, the outlets of the traffic sent to the func3 and the func4 are searched according to the active table, and the traffic is forwarded out.
In the active-standby switching process of the VSM system, since the active tables from the control-a restart to the final func3 and func4 are updated to the port 3 and the port 4, a series of processes are required in the middle, and the active tables checked by the traffic sent to the func3 and func4 include the port 1, the port 2, the port 3 and the port 4, during the time, when the egress is calculated according to the shunting of the active tables, a large amount of traffic is distributed to the port 1 and the port 2, and at this time, the port 1 and the port 2 may have been cancelled, and then the traffic distributed to the port 1 and the port 2 is discarded, so that a large amount of packet loss is caused, and network fluctuation is caused.
Disclosure of Invention
In view of this, the present application provides a method and a device for switching between a main standby mode and a standby mode based on a VSM system, so as to solve the problem of network fluctuation caused by a large amount of packet loss in the related art.
Specifically, the method is realized through the following technical scheme:
a method for switching between a main frame device and a standby frame device based on a VSM system is provided, the VSM system includes a first frame device and a second frame device, the first frame device includes a first main control board card, at least one first service board card and a first cascade board card, the second frame device includes a second main control board card, at least one second service board card and a second cascade board card, a first cascade port of the first cascade board card is connected with a second cascade port of the second cascade board card, a port of the at least one first service board card and a port of the at least one second service board card form a aggregation link, the first frame device serves as a main frame device, the second frame device serves as a standby frame device, the method is applied to the first main control board card, and the method includes:
after detecting that the first frame device needs to be restarted, performing aggregated link negotiation with an opposite-end VSM system connected with the VSM system to obtain each first activated port except for the port of the at least one first service board card;
updating a first activation port table corresponding to the aggregation link according to each first activation port;
sending the first activation port table to the at least one second service board card, so that the at least one second service board card forwards the message according to the first activation port table;
and performing active-standby switching with the second frame device, so that after the second frame device is switched to be a main frame device, performing aggregation link negotiation with the opposite-end VSM system to obtain each second activated port, and updating the first activated port table according to the second activated ports.
The utility model provides a activestandby auto-change over device based on VSM system, the VSM system includes first frame equipment and second frame equipment, first frame equipment includes first master control integrated circuit board, at least one first business integrated circuit board and first concatenation integrated circuit board, second frame equipment includes second master control integrated circuit board, at least one second business integrated circuit board and second concatenation integrated circuit board, the first cascade port of first concatenation integrated circuit board with the second cascade port of integrated circuit board is connected, the port of at least one first business integrated circuit board with the port of at least one second business integrated circuit board constitutes the aggregation link, first frame equipment is as main frame equipment, second frame equipment is as standby frame equipment, the device is applied to in the first master control integrated circuit board, the device includes:
a negotiation module, configured to perform aggregated link negotiation with an opposite-end VSM system connected to the VSM system after detecting that the first frame device needs to be restarted, to obtain each first active port except for a port of the at least one first service board card;
an updating module, configured to update, according to each first active port, a first active port table corresponding to the aggregation link;
the issuing module is used for issuing the first activation port table to the at least one second service board card so that the at least one second service board card forwards the message according to the first activation port table;
and the switching module is configured to perform active-standby switching with the second frame device, so that after the second frame device is switched to a main frame device, the switching module performs link aggregation negotiation with the opposite-end VSM system to obtain each second active port, and updates the first active port table according to the second active port.
An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
As can be seen from the above technical solutions, after detecting that the main frame device needs to be restarted, the main control board card of the main frame device performs a link aggregation negotiation with the opposite VSM system connected to the VSM system to update the first active port table corresponding to the link aggregation, where the first active port table does not include a port of at least one first service board card, and issues the first active port table to at least one second service board card of the standby frame device, and then performs a standby-to-standby switch with the standby frame device, so as to ensure that the at least one second service board card forwards a message according to the updated first active port table, thereby ensuring that the at least one second service board card forwards the message according to the accurate first active port table in the process of the standby-to-standby switch of the VSM system, and avoiding packet loss and network fluctuation.
Drawings
FIG. 1 is a schematic diagram of a VSM system according to the related art;
fig. 2 is a flowchart of a main/standby switching method based on a VSM system according to the present application;
fig. 3 is a schematic structural diagram of a main/standby switching device based on a VSM system according to the present application;
fig. 4 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to solve the above problem, an embodiment of the present invention provides a method for switching between a main standby mode and a standby mode based on a VSM system, so as to avoid packet loss and network fluctuation. Referring to fig. 2, fig. 2 is a flowchart of a main-standby switching method based on a VSM system shown in this application, where the VSM system includes a first frame device and a second frame device, the first frame device includes a first main control board, at least one first service board and a first cascade board, the second frame device includes a second main control board, at least one second service board and a second cascade board, a first cascade port of the first cascade board is connected to a second cascade port of the second cascade board, a port of the at least one first service board and a port of the at least one second service board form a aggregation link, the first frame device is used as the main frame device, and the second frame device is used as the standby frame device. The number of the first service board cards and the number of the second service board cards may be set according to actual needs, and when both the number of the first service board cards and the number of the second service board cards are 2, the structure of the VSM system is shown in fig. 1. The method is applied to a first main control board card, and comprises the following steps:
s21: and after detecting that the first frame type equipment needs to be restarted, performing aggregated link negotiation with an opposite-end VSM system connected with the VSM system to obtain each first activated port except for the port of the at least one first service board card.
When a Central Processing Unit (CPU) abnormality or the like occurs in the first frame device, the first frame device needs to be restarted. When the first main control board card detects that the first frame device needs to be restarted, the first main control board card first needs to perform link aggregation negotiation again with the opposite-end VSM system connected to the VSM system to obtain activated ports other than the port of at least one service board card, that is, each port still activated after the main/standby switching of the VSM system, and these ports may be defined as the first activated port.
S22: and updating a first activation port table corresponding to the aggregation link according to each first activation port.
The first active port is a port still activated after the active-standby switching of the VSM system, and therefore, an active port table corresponding to the aggregation link may be updated according to the first active port, and the active port table may be defined as the first active port table.
S23: and sending the first activation port table to at least one second service board card so that the at least one second service board card forwards the message according to the first activation port table.
And the standby frame type equipment can normally work in the process of restarting the main frame type equipment, so that the latest first activated port table is issued to the at least one second service board card, and the at least one second service board card is ensured to forward the message according to the first activated port table.
S24: and performing active-standby switching with the second frame type device, so that after the second frame type device is switched to be the main frame type device, performing aggregated link negotiation with the opposite-end VSM system to obtain each second activated port, and updating the first activated port table according to the second activated ports.
And after the first main control board card issues the latest first activated port table, executing the process of main-standby switching with the second frame type equipment.
As can be seen from the above technical solutions, after detecting that the main frame device needs to be restarted, the main control board card of the main frame device performs a link aggregation negotiation with the opposite VSM system connected to the VSM system to update the first active port table corresponding to the link aggregation, where the first active port table does not include a port of at least one first service board card, and issues the first active port table to at least one second service board card of the standby frame device, and then performs a standby-to-standby switch with the standby frame device, so as to ensure that the at least one second service board card forwards a message according to the updated first active port table, thereby ensuring that the at least one second service board card forwards the message according to the accurate first active port table in the process of the standby-to-standby switch of the VSM system, and avoiding packet loss and network fluctuation.
Specifically, in the above S21, performing aggregated link negotiation with the opposite-end VSM system connected to the VSM system to obtain each first activated port except for the port of the at least one first service board specifically includes:
determining each port of at least one first service board card included in an aggregation link;
updating operation identification in a Link Aggregation Control Protocol (LACP) message periodically sent through each port to a set value, and then sending the set value to an opposite-end VSM system, so that the opposite-end VSM system selects an activated port in an aggregation link according to the received LACP message and then updates a second activated port table corresponding to the aggregation link;
and acquiring ports except for the port of at least one first service board card in the current activated ports in the aggregation link to obtain each first activated port.
Generally, ports at two ends of each member link in an aggregated link periodically send Link Aggregation Control Protocol (LACP) messages to notify state information of each port, so when an opposite-end VSM system connected to the VSM system performs aggregated link negotiation, because a first frame device needs to be restarted, a port of at least one first service board in the first frame device in the aggregated link will be in an inactive state, and therefore when the opposite-end VSM system performs active port election, a corresponding port needs to be elected as an inactive port, at this time, each port of at least one first service board included in the aggregated link may be first determined, an operation identifier in an LACP message periodically sent through each port is updated to a set value and then sent to the opposite-end VSM system, and when the opposite-end VSM system elects according to a received LACP message, the ports are elected as inactive ports, then a second active port table corresponding to the aggregated link is updated according to the active ports in the aggregated link, the second active port table represents an active port table of an opposite-end VSM system, and the VSM system also obtains the ports except for the port of at least one first service board card in the current active ports in the aggregated link to obtain each first active port.
The operation identifier (alert _ key) in the LACP indicates the home duplex rate, which is an influence factor for selecting an activated port, and the value of the operation identifier may be set to a set value, for example, may be set to 0, which may indicate that the home duplex rate is 0, so that the VSM system at the opposite end does not select the port as the activated port. In an optional implementation manner, the management identifier (admin _ key) of the LACP packet may also be set to 1, which marks that the member port of the local aggregation link is in a new active/standby switching method.
Specifically, the updating of the first activation port table corresponding to the aggregation link according to each first activation port in S22 specifically includes:
emptying the first active port table;
the port identification of each first active port is added to the first active port table.
For example, each active port may be compared with the first active port table one by one, added, and then the other ports except for each active port in the first active port table are deleted, so that the first active port table may be updated. There are many other implementations, which are not described in detail herein.
Specifically, the performing active-standby switching with the second frame device in S24, so that after the second frame device is switched to the main frame device, performing aggregated link negotiation with the opposite-end VSM system to obtain each second active port, and updating the first active port table according to the second active port, where the implementation process specifically includes:
and logging off at least one first service board card and a port thereof, a first cascade board card and a first cascade port, so that the second frame type equipment is switched to main frame type equipment after detecting that the state of the second cascade port is closed, performing aggregated link negotiation with an opposite terminal VSM system again to obtain each second activated port, updating the first activated port table according to each second activated port, and determining that the first activated port table is the same as the current activated port table of at least one second service board, and then determining to complete the main-standby switching of the VSM system.
It should be noted that, since the first active port table is already updated before the first frame device is restarted, and after the second frame device is switched to the main frame device, the port identifier included in the first active port table obtained by performing link aggregation negotiation with the opposite-end VSM system is completely consistent with the port identifier included in the first active port table updated before the first frame device is restarted, the second frame device does not need to issue the first active port table again.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a main/standby switching device based on a VSM system shown in this application, where the VSM system includes a first frame device and a second frame device, the first frame device includes a first main control board, at least one first service board and a first cascade board, the second frame device includes a second main control board, at least one second service board and a second cascade board, a first cascade port of the first cascade board is connected to a second cascade port of the second cascade board, a port of the at least one first service board and a port of the at least one second service board form a aggregation link, the first frame device is used as the main frame device, the second frame device is used as the standby frame device, and the device is applied to the first main control board, and the device includes:
a negotiation module 31, configured to perform aggregated link negotiation with an opposite-end VSM system connected to the VSM system after detecting that the first frame device needs to be restarted, to obtain each first active port except for a port of at least one first service board card;
an updating module 32, configured to update, according to each first active port, a first active port table corresponding to the aggregation link;
the issuing module 33 is configured to issue the first active port table to at least one second service board card, so that the at least one second service board card forwards the packet according to the first active port table;
and a switching module 34, configured to perform active-standby switching with the second frame device, so that after the second frame device is switched to the main frame device, the second frame device performs aggregation link negotiation with the opposite-end VSM system to obtain each second active port, and updates the first active port table according to the second active port.
As can be seen from the above technical solutions, after detecting that the main frame device needs to be restarted, the main control board card of the main frame device performs a link aggregation negotiation with the opposite VSM system connected to the VSM system to update the first active port table corresponding to the link aggregation, where the first active port table does not include a port of at least one first service board card, and issues the first active port table to at least one second service board card of the standby frame device, and then performs a standby-to-standby switch with the standby frame device, so as to ensure that the at least one second service board card forwards a message according to the updated first active port table, thereby ensuring that the at least one second service board card forwards the message according to the accurate first active port table in the process of the standby-to-standby switch of the VSM system, and avoiding packet loss and network fluctuation.
Specifically, the negotiation module 31 is configured to perform aggregated link negotiation with an opposite-end VSM system connected to the VSM system to obtain each first activated port except for a port of at least one first service board, and specifically configured to:
determining each port of at least one first service board card included in an aggregation link;
updating the operation identification in the LACP message periodically sent through each port to a set value, and then sending the set value to the opposite VSM system, so that the opposite VSM system selects an activated port in the aggregation link according to the received LACP message and then updates a second activated port table corresponding to the aggregation link;
and acquiring ports except for the port of at least one first service board card in the current activated ports in the aggregation link to obtain each first activated port.
Specifically, the updating module 32 is configured to update the first active port table corresponding to the aggregated link according to each first active port, and specifically is configured to:
emptying the first active port table;
the port identification of each first active port is added to the first active port table.
Specifically, the switching module 34 is configured to perform active-standby switching with the second frame device, so that after the second frame device is switched to the main frame device, the second frame device performs link aggregation negotiation with the opposite-end VSM system to obtain each second active port, and updates the first active port table according to the second active port, specifically configured to:
and logging off at least one first service board card and a port thereof, a first cascade board card and a first cascade port, so that the second frame type equipment is switched to main frame type equipment after detecting that the state of the second cascade port is closed, performing aggregated link negotiation with an opposite terminal VSM system again to obtain each second activated port, updating the first activated port table according to each second activated port, and determining that the first activated port table is the same as the current activated port table of at least one second service board, and then determining to complete the main-standby switching of the VSM system.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 4, which includes a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 complete communication with each other through the communication bus 440.
A memory 430 for storing computer programs;
the processor 410 is configured to implement the active/standby switching method based on the VSM system in any one of the embodiments described above when executing the program stored in the memory 430.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
As can be seen from the above technical solutions, after detecting that the main frame device needs to be restarted, the main control board card of the main frame device performs a link aggregation negotiation with the opposite VSM system connected to the VSM system to update the first active port table corresponding to the link aggregation, where the first active port table does not include a port of at least one first service board card, and issues the first active port table to at least one second service board card of the standby frame device, and then performs a standby-to-standby switch with the standby frame device, so as to ensure that the at least one second service board card forwards a message according to the updated first active port table, thereby ensuring that the at least one second service board card forwards the message according to the accurate first active port table in the process of the standby-to-standby switch of the VSM system, and avoiding packet loss and network fluctuation.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute any one of the active/standby switching methods based on a VSM system in the foregoing embodiments.
As can be seen from the above technical solutions, after detecting that the main frame device needs to be restarted, the main control board card of the main frame device performs a link aggregation negotiation with the opposite VSM system connected to the VSM system to update the first active port table corresponding to the link aggregation, where the first active port table does not include a port of at least one first service board card, and issues the first active port table to at least one second service board card of the standby frame device, and then performs a standby-to-standby switch with the standby frame device, so as to ensure that the at least one second service board card forwards a message according to the updated first active port table, thereby ensuring that the at least one second service board card forwards the message according to the accurate first active port table in the process of the standby-to-standby switch of the VSM system, and avoiding packet loss and network fluctuation.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A method for switching between a main frame device and a standby frame device based on a Virtual Switch Matrix (VSM) system is provided, the VSM system comprises a first frame device and a second frame device, the first frame device comprises a first main control board card, at least one first service board card and a first cascade board card, the second frame device comprises a second main control board card, at least one second service board card and a second cascade board card, a first cascade port of the first cascade board card is connected with a second cascade port of the second cascade board card, a port of the at least one first service board card and a port of the at least one second service board card form a polymerization link, the first frame device serves as a main frame device, the second frame device serves as a standby frame device, and the method is applied to the first main control board card and is characterized by comprising:
after detecting that the first frame device needs to be restarted, performing aggregated link negotiation with an opposite-end VSM system connected with the VSM system to obtain each first activated port except for the port of the at least one first service board card;
updating a first activation port table corresponding to the aggregation link according to each first activation port;
sending the first activation port table to the at least one second service board card, so that the at least one second service board card forwards the message according to the first activation port table;
and performing active-standby switching with the second frame device, so that after the second frame device is switched to be a main frame device, performing aggregation link negotiation with the opposite-end VSM system to obtain each second activated port, and updating the first activated port table according to the second activated ports.
2. The method according to claim 1, wherein performing aggregated link negotiation with a peer VSM system connected to the VSM system to obtain each first active port except for the port of the at least one first service board specifically includes:
determining each port of the at least one first service board card included in the aggregation link;
updating operation identifiers in Link Aggregation Control Protocol (LACP) messages periodically sent through each port to be set values, and then sending the set values to the opposite-end VSM system, so that the opposite-end VSM system updates a second active port table corresponding to the aggregation link after electing active ports in the aggregation link according to the received LACP messages;
and acquiring ports except the port of the at least one first service board card in the current activated ports in the aggregation link to obtain each first activated port.
3. The method according to claim 1, wherein updating the first active port table corresponding to the aggregated link according to each first active port specifically includes:
clearing the first active port table;
adding the port identification of each first active port to the first active port table.
4. The method according to any one of claims 1 to 3, wherein performing active-standby switching with the second frame device, so that after the second frame device is switched to a main frame device, performing aggregation link negotiation with the opposite-end VSM system to obtain each second active port, and updating the first active port table according to the second active port specifically includes:
and logging off the at least one first service board card and the port thereof, the first cascade board card and the first cascade port, so that the second frame type device is switched to a main frame type device after detecting that the state of the second cascade port is closed, and performs aggregated link negotiation with the opposite-end VSM system again to obtain each second activated port, the first activated port table is updated according to each second activated port, and after determining that the first activated port table is the same as the current activated port table of the at least one second service board, the main-standby switching of the VSM system is determined to be completed.
5. The utility model provides a activestandby auto-change over device based on VSM system, the VSM system includes first frame equipment and second frame equipment, first frame equipment includes first master control integrated circuit board, at least one first business integrated circuit board and first concatenation integrated circuit board, second frame equipment includes second master control integrated circuit board, at least one second business integrated circuit board and second concatenation integrated circuit board, the first cascade port of first concatenation integrated circuit board with the second cascade port of integrated circuit board is connected, the port of at least one first business integrated circuit board with the port of at least one second business integrated circuit board constitutes the aggregation link, first frame equipment is as main frame equipment, second frame equipment is as standby frame equipment, the device is applied to in the first master control integrated circuit board, its characterized in that, the device includes:
a negotiation module, configured to perform aggregated link negotiation with an opposite-end VSM system connected to the VSM system after detecting that the first frame device needs to be restarted, to obtain each first active port except for a port of the at least one first service board card;
an updating module, configured to update, according to each first active port, a first active port table corresponding to the aggregation link;
the issuing module is used for issuing the first activation port table to the at least one second service board card so that the at least one second service board card forwards the message according to the first activation port table;
and the switching module is configured to perform active-standby switching with the second frame device, so that after the second frame device is switched to a main frame device, the switching module performs link aggregation negotiation with the opposite-end VSM system to obtain each second active port, and updates the first active port table according to the second active port.
6. The apparatus of claim 5, wherein the negotiation module is configured to perform aggregated link negotiation with an opposite-end VSM system connected to the VSM system to obtain each first active port except for the port of the at least one first service board, and is specifically configured to:
determining each port of the at least one first service board card included in the aggregation link;
updating operation identifiers in LACP messages periodically sent through each port to be set values and then sending the set values to the opposite-end VSM system, so that the opposite-end VSM system updates a second activation port table corresponding to the aggregation link after electing an activation port in the aggregation link according to the received LACP messages;
and acquiring ports except the port of the at least one first service board card in the current activated ports in the aggregation link to obtain each first activated port.
7. The apparatus according to claim 5, wherein the updating module is configured to update the first active port table corresponding to the aggregated link according to each first active port, and is specifically configured to:
clearing the first active port table;
adding the port identification of each first active port to the first active port table.
8. The apparatus according to any one of claims 5 to 7, wherein the switching module is configured to perform active-standby switching with the second frame device, so that after the second frame device is switched to a main frame device, the switching module performs aggregated link negotiation with the opposite-end VSM system to obtain each second active port, and updates the first active port table according to the second active port, specifically configured to:
and logging off the at least one first service board card and the port thereof, the first cascade board card and the first cascade port, so that the second frame type device is switched to a main frame type device after detecting that the state of the second cascade port is closed, and performs aggregated link negotiation with the opposite-end VSM system again to obtain each second activated port, the first activated port table is updated according to each second activated port, and after determining that the first activated port table is the same as the current activated port table of the at least one second service board, the main-standby switching of the VSM system is determined to be completed.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201911083269.XA 2019-11-07 2019-11-07 VSM system-based main/standby switching method and device Active CN110912837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911083269.XA CN110912837B (en) 2019-11-07 2019-11-07 VSM system-based main/standby switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911083269.XA CN110912837B (en) 2019-11-07 2019-11-07 VSM system-based main/standby switching method and device

Publications (2)

Publication Number Publication Date
CN110912837A true CN110912837A (en) 2020-03-24
CN110912837B CN110912837B (en) 2021-09-21

Family

ID=69816655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911083269.XA Active CN110912837B (en) 2019-11-07 2019-11-07 VSM system-based main/standby switching method and device

Country Status (1)

Country Link
CN (1) CN110912837B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614555A (en) * 2020-04-20 2020-09-01 北京百卓网络技术有限公司 Method, device and equipment for establishing service channel

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN102244589A (en) * 2011-07-19 2011-11-16 北京星网锐捷网络技术有限公司 Method and opposite terminal apparatus for processing link fault in virtual switch unit system
CN102857419A (en) * 2012-10-12 2013-01-02 华为技术有限公司 Method and device for processing fault of link aggregation port
CN103856357A (en) * 2014-03-21 2014-06-11 迈普通信技术股份有限公司 Stack system fault processing method and stack system
US20140301401A1 (en) * 2013-04-07 2014-10-09 Hangzhou H3C Technologies Co., Ltd. Providing aggregation link groups in logical network device
CN105122737A (en) * 2013-11-12 2015-12-02 华为技术有限公司 Link aggregation method, apparatus, and system
CN105871743A (en) * 2015-01-21 2016-08-17 杭州迪普科技有限公司 Method and device for negotiating aggregate port state
CN106533736A (en) * 2016-10-13 2017-03-22 杭州迪普科技股份有限公司 Network device reboot method and apparatus
CN107465632A (en) * 2017-08-07 2017-12-12 杭州迪普科技股份有限公司 A kind of method and device for the flow for switching polymerization member port
CN107733809A (en) * 2017-11-30 2018-02-23 杭州迪普科技股份有限公司 A kind of VSM system messages forwarding port method to set up and device
CN108574614A (en) * 2017-03-10 2018-09-25 华为技术有限公司 A kind of message processing method, equipment and network system
US20180307474A1 (en) * 2017-04-19 2018-10-25 Hewlett Packard Enterprise Development Lp Firmware update in a stacked network device
CN109698767A (en) * 2018-12-20 2019-04-30 杭州迪普科技股份有限公司 A kind of main/standby switching method and device
CN110162437A (en) * 2019-05-15 2019-08-23 杭州迪普科技股份有限公司 A kind of frame type equipment internal connectivity detection method and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442484A (en) * 2008-12-05 2009-05-27 杭州华三通信技术有限公司 Method, system and equipment for detecting stacking multi-Active
CN102244589A (en) * 2011-07-19 2011-11-16 北京星网锐捷网络技术有限公司 Method and opposite terminal apparatus for processing link fault in virtual switch unit system
CN102857419A (en) * 2012-10-12 2013-01-02 华为技术有限公司 Method and device for processing fault of link aggregation port
US20140301401A1 (en) * 2013-04-07 2014-10-09 Hangzhou H3C Technologies Co., Ltd. Providing aggregation link groups in logical network device
CN105122737A (en) * 2013-11-12 2015-12-02 华为技术有限公司 Link aggregation method, apparatus, and system
CN103856357A (en) * 2014-03-21 2014-06-11 迈普通信技术股份有限公司 Stack system fault processing method and stack system
CN105871743A (en) * 2015-01-21 2016-08-17 杭州迪普科技有限公司 Method and device for negotiating aggregate port state
CN106533736A (en) * 2016-10-13 2017-03-22 杭州迪普科技股份有限公司 Network device reboot method and apparatus
CN108574614A (en) * 2017-03-10 2018-09-25 华为技术有限公司 A kind of message processing method, equipment and network system
US20180307474A1 (en) * 2017-04-19 2018-10-25 Hewlett Packard Enterprise Development Lp Firmware update in a stacked network device
CN107465632A (en) * 2017-08-07 2017-12-12 杭州迪普科技股份有限公司 A kind of method and device for the flow for switching polymerization member port
CN107733809A (en) * 2017-11-30 2018-02-23 杭州迪普科技股份有限公司 A kind of VSM system messages forwarding port method to set up and device
CN109698767A (en) * 2018-12-20 2019-04-30 杭州迪普科技股份有限公司 A kind of main/standby switching method and device
CN110162437A (en) * 2019-05-15 2019-08-23 杭州迪普科技股份有限公司 A kind of frame type equipment internal connectivity detection method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614555A (en) * 2020-04-20 2020-09-01 北京百卓网络技术有限公司 Method, device and equipment for establishing service channel

Also Published As

Publication number Publication date
CN110912837B (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US8018844B2 (en) Reliable message transfer over an unreliable network
CN100470494C (en) Cluster availability management method and system
US11743097B2 (en) Method and system for sharing state between network elements
CN105337780B (en) A kind of server node configuration method and physical node
CN101110776B (en) Backup method, backup device and backup system for data business
CN112217658B (en) Stacking and splitting processing method and device
CN107070731B (en) Master-slave arbitration method and system
EP3316555A1 (en) Mac address synchronization method, device and system
WO2017215441A1 (en) Self-recovery method and apparatus for board configuration in distributed system
US10797912B2 (en) Relay device and relay method
CN114265753A (en) Management method and management system of message queue and electronic equipment
CN111585835B (en) Control method and device for out-of-band management system and storage medium
US11258666B2 (en) Method, device, and system for implementing MUX machine
CN110912837B (en) VSM system-based main/standby switching method and device
US20130100808A1 (en) Managing Utilization Of A Logical Communication Path In A Multi-Path Channel
US8990619B1 (en) Method and systems to perform a rolling stack upgrade
CN104243304A (en) Data processing method, device and system of locally-connected topological structure
CN113254205A (en) Load balancing system, method and device, electronic equipment and storage medium
US8208370B1 (en) Method and system for fast link failover
CN111131024A (en) Processing method and device of aggregated link
US10516625B2 (en) Network entities on ring networks
US20190044848A1 (en) Virtual switching framework
CN112311671A (en) Method, apparatus, medium and device for issuing aggregated link configuration to switch chip
US10666553B2 (en) Method for quick reconfiguration of routing in the event of a fault in a port of a switch
CN108270589B (en) Message processing method and related device

Legal Events

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