CN112653596B - Method and device for routing information issuing and gateway equipment switching - Google Patents

Method and device for routing information issuing and gateway equipment switching Download PDF

Info

Publication number
CN112653596B
CN112653596B CN202011490915.7A CN202011490915A CN112653596B CN 112653596 B CN112653596 B CN 112653596B CN 202011490915 A CN202011490915 A CN 202011490915A CN 112653596 B CN112653596 B CN 112653596B
Authority
CN
China
Prior art keywords
vlan interface
state
gateway device
dynamic aggregation
vlan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011490915.7A
Other languages
Chinese (zh)
Other versions
CN112653596A (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 CN202011490915.7A priority Critical patent/CN112653596B/en
Publication of CN112653596A publication Critical patent/CN112653596A/en
Application granted granted Critical
Publication of CN112653596B publication Critical patent/CN112653596B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

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

Abstract

The present specification provides a method for routing information delivery and gateway device switching, in which a standby gateway device traverses all VLAN interfaces before switching a main gateway device and a standby gateway device, and sets a VLAN interface including a dynamic aggregation port in a corresponding member port set in an activated state by force, and removes a state dependency relationship of the VLAN interface on the corresponding member port set, and the standby gateway device delivers routing information for the VLAN interface after monitoring that the VLAN interface is changed from an inactivated state to an activated state. When the standby gateway device detects that the main gateway device fails, the main gateway device suspends message receiving and sending, the standby gateway device releases the silent mode and starts switching between the main gateway device and the standby gateway device, and because the corresponding member port set including the VLAN interface of the dynamic aggregation port is forcibly set in an activated state, the related routing information is completely issued, and the standby gateway device can start to forward the message after determining the state of each dynamic aggregation port through the LACP message.

Description

Method and device for routing information distribution and gateway equipment switching
Technical Field
The present disclosure relates to the field of network devices, and in particular, to a method and an apparatus for routing information distribution and gateway device switching.
Background
An enterprise deploys two gateway devices, a main gateway device and a standby gateway device of the main gateway device for monitoring whether the main device fails or not and taking over the failure.
Generally, a gateway device has a plurality of Virtual Local Area Network (VLAN) interfaces for transmitting and receiving a packet, and a standby gateway device backs up routing information between VLAN interfaces learned by a primary device. Each VLAN interface corresponds to one or more member ports, which may be ordinary physical ports or dynamic aggregation ports aggregated by a plurality of physical ports. The state of the VLAN interface depends on the state of the member interface, if the member interfaces are all in the inactive state, the corresponding VLAN interface is also in the inactive state, and if one member interface is in the active state, the corresponding VLAN interface is also in the active state.
After monitoring that the main gateway device fails to transmit, the standby gateway device suspends message transmission and reception, and the standby gateway device releases the silent mode. After the standby gateway device releases the silent mode, the dynamic aggregation port determines the state of the dynamic aggregation port by negotiating with an opposite terminal device, wherein the state of part of the VLAN interfaces depends on the state of the dynamic aggregation port and is changed from an inactivated state to an activated state, the standby gateway device monitors that the VLAN interfaces are changed from the inactivated state to the activated state, and relevant routing information is issued aiming at the VLAN interfaces. After the routing information is issued, the standby gateway device completes the active-standby switching with the main gateway device.
However, when the standby gateway device issues the routing information related to a certain VLAN interface, it will issue the routing information related to the VLAN interface to each VLAN interface in an active state that needs the routing information of the VLAN interface.
Disclosure of Invention
In order to overcome the problem of long interruption time of the message forwarding service, the present specification provides a method and an apparatus for issuing routing information and switching gateway devices.
The present description provides a method for issuing routing information, which is applied to a standby gateway device and includes:
aiming at each VLAN interface of the standby gateway equipment, judging whether a member port set corresponding to the VLAN interface comprises a dynamic aggregation port or not;
if the judgment result is yes, setting the VLAN interface to be in an activated state, and removing the state dependency relationship of the VLAN interface to the corresponding member port set;
and sending routing information to each VLAN interface in an activated state.
The present specification also provides a gateway device switching method based on the above routing information issuing method, where the method is applied to a standby gateway device, and includes:
under the condition that the main gateway equipment is detected to be out of order, the silent mode is released;
and starting to execute the master-slave switching between the master gateway equipment and the master gateway equipment, and determining the state of the dynamic aggregation port through a Link Aggregation Control Protocol (LACP) message.
This specification also provides a routing information issuing device, which is applied to a standby gateway device, and includes:
a member port set judgment module, configured to judge, for each VLAN interface of the standby gateway device, whether a member port set corresponding to the VLAN interface includes a dynamic aggregation port;
the dependency relationship releasing module is used for setting the VLAN interface to be in an activated state and releasing the state dependency relationship of the VLAN interface to the corresponding member port set if the judgment result is yes;
and the routing information issuing module is used for issuing the routing information to each VLAN interface in the activated state.
This specification also provides a gateway device switching apparatus based on the above routing information issuing apparatus, where the apparatus is applied to a standby gateway device, and includes:
the silent mode removing module is used for removing the silent mode under the condition that the main gateway equipment is detected to be out of order;
and the gateway equipment switching module is used for starting to execute the active-standby switching between the gateway equipment and the main gateway equipment and determining the state of the dynamic aggregation port through a Link Aggregation Control Protocol (LACP) message.
In the technical solution of the embodiment of the present specification, when the main gateway device operates normally, the standby gateway device traverses all VLAN interfaces, forcibly sets a VLAN interface including a dynamic aggregation port to an active state for a corresponding member port set, and removes a state dependency relationship of the VLAN interface on the corresponding member port set, and when the standby gateway device monitors that a VLAN interface is changed from an inactive state to an active state, issues routing information for the VLAN interface. When the standby gateway device detects that the main gateway device fails, the main gateway device suspends message receiving and sending, the standby gateway device releases the silent mode and starts switching between the main gateway device and the standby gateway device, and because the corresponding member port set including the VLAN interface of the dynamic aggregation port is forcibly set in an activated state, the related routing information is completely issued, and the standby gateway device can start to forward the message after determining the state of each dynamic aggregation port through the LACP message.
According to the technical scheme of the embodiment of the specification, when the main gateway device fails, the standby gateway completes the issuing of the required routing information in advance, so that the standby gateway device can complete the main-standby switching with the main gateway device only after determining the state of the dynamic aggregation port, replaces the original main gateway device and starts to forward the message service, the switching efficiency between the main gateway device and the standby gateway device is improved, the time for the standby gateway device to issue the routing information in the switching process of the main gateway device and the standby gateway device is shortened, and the interruption time for forwarding the message service is shortened.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a schematic view of a VLAN interface shown in this specification.
Fig. 2 is a schematic flow chart of a routing information issuing method shown in this specification.
Fig. 3 is a flowchart illustrating a gateway device switching method based on fig. 2 according to this specification.
Fig. 4 is a schematic diagram of a routing information issuing apparatus shown in this specification.
Fig. 5 is a schematic diagram of a gateway device switching apparatus based on fig. 4 shown in this specification.
Fig. 6 is a schematic diagram of a hardware structure of a computer device shown in this specification.
Detailed Description
A dual-configuration synchronous interface and a dual-heartbeat interface exist between main and standby gateway devices deployed by an enterprise, the standby gateway device can receive and transmit heartbeat messages through the dual-heartbeat interface to determine whether the main gateway device fails, and routing information between VLAN interfaces learned by the main gateway device can be backed up through the dual-configuration synchronous interface.
The VLAN interface corresponds to one to multiple member ports, that is, the VLAN interface corresponds to a member port set, the set at least includes one member port, and the member port may be a common physical port or a dynamic aggregation port in which a gateway device aggregates a plurality of common physical ports. Each member port has two states, an activated state (also called up state) and an inactivated state (also called down state), and each VLAN interface also has two states, an activated state and an inactivated state, the state of the VLAN interface depends on the member port set corresponding to the VLAN interface, if all the member ports are in the inactivated state, the corresponding VLAN interface will also be in the inactivated state, and if one of the member ports is in the activated state, the corresponding VLAN interface will also be in the activated state. When monitoring that a certain VLAN interface changes from an inactive state to an active state, the gateway device issues routing information including VLAN interface information to each VLAN interface in the active state that needs the VLAN interface information. Similarly, when the gateway device detects that a VLAN interface changes from an active state to an inactive state, it deletes the routing information associated with the VLAN interface from the routing information table corresponding to each VLAN interface.
Before the standby gateway device does not monitor that the main gateway device fails (or is abnormal), the standby gateway device is in a silent mode, and the remaining physical ports except the physical ports corresponding to the dual-configuration synchronous interface and the dual-heartbeat interface cannot receive and transmit messages. Since the dynamic Aggregation interface needs to negotiate the state of the dynamic Aggregation interface with an opposite device to receive and transmit a Link Aggregation Control Protocol (LACP) message, the dynamic Aggregation interface of the standby gateway device in the silent mode is inevitably in an inactive state. For a normal physical port, the state is not affected by the silent mode. Therefore, the state of some VLAN interfaces may depend on the state of the dynamic aggregation port, for example, the member port set includes only a VLAN interface of the dynamic aggregation port, such as VLAN interface 3 shown in fig. 1, or includes both a normal physical port and a dynamic aggregation port, but the normal physical port is in an inactive state, such as VLAN interface 2 shown in fig. 1.
When the standby gateway device detects that the main gateway device fails, the main gateway device suspends message sending and receiving, and the standby gateway device releases the silent mode and starts the active-standby switching with the main gateway device. After the standby gateway device releases the silent mode, the standby gateway device can receive and transmit the LACP message through a common physical port in the dynamic aggregation port, thereby negotiating the state of the dynamic aggregation port with the opposite terminal device. Most dynamic aggregation ports are in an activated state after negotiation, and for a VLAN interface of which the state depends on the state of the dynamic aggregation port, the state is changed from an inactivated state to an activated state, and when the standby gateway device monitors that the VLAN interface of which the state is changed from the inactivated state to the activated state exists, the standby gateway device issues related routing information aiming at the VLAN interfaces.
However, when a certain VLAN interface changes from an inactive state to an active state and routes information is delivered to the VLAN interface, route information including the VLAN interface is delivered to each VLAN interface requiring the route information of the VLAN interface, such as the three VLAN interfaces shown in fig. 1, assuming that VLAN interface 1 and VLAN interface 2 are both in an active state and VLAN interface 3 changes from an inactive state to an active state, when routes information is delivered, all routes information related to VLAN interface 3 is searched and delivered, routes information related to VLAN interface 1 forwarded to VLAN interface 3 is delivered to VLAN interface 1, routes information related to VLAN interface 2 forwarded to VLAN interface 3 is delivered to VLAN interface 2, and routes information related to VLAN interface 3 forwarded to VLAN interface 1 or VLAN interface 2 is delivered to VLAN interface 3.
In addition, the member port sets corresponding to some VLAN interfaces are the same, as shown in fig. 1, it is assumed that both VLAN interface 3 and VLAN interface 4 use the member ports of the member port set to transmit and receive messages, and the member port sets corresponding to VLAN interface 3 and VLAN interface 4 are both the member port set 3. The member port set 3 only includes the dynamic aggregation port 2, and therefore, the states of the VLAN interface 3 and the VLAN interface 4 are both dependent on the state of the dynamic aggregation port 2 of the member port set 3.
If a lot of VLAN interfaces or a lot of routing information exist, the routing information is issued very slowly, and in the process of switching the master and standby gateway devices, a lot of VLAN interfaces change from an inactive state to an active state along with the state of the dynamic aggregation port, which results in that many routing information need to be issued, therefore, the switching time of the master and standby gateway devices is prolonged, and the interruption time of the message forwarding service is long.
In one or more embodiments of the present disclosure, when the primary gateway device operates normally, the standby gateway device may traverse all VLAN interfaces, force a VLAN interface including a dynamic aggregation port to an active state for a corresponding member port set, and remove a state dependency relationship of the VLAN interface on the corresponding member port set, and issue routing information for the VLAN interface after the standby gateway device monitors that the VLAN interface is changed from an inactive state to an active state. When the standby gateway device detects that the main gateway device fails, the main gateway device suspends message receiving and sending, the standby gateway device releases the silent mode and starts switching between the main gateway device and the standby gateway device, and because the corresponding member port set including the VLAN interface of the dynamic aggregation port is forcibly set in an activated state, the related routing information is completely issued, and the standby gateway device can start to forward the message after determining the state of each dynamic aggregation port through the LACP message.
By using one or more embodiments of the present disclosure, when a failure occurs in a main gateway device, because a standby gateway completes issuing required routing information in advance, the standby gateway device only needs to determine the state of a dynamic aggregation port to complete the main-standby switching with the main gateway device, and replaces the original main gateway device to start a message forwarding service, thereby improving the switching efficiency between the main gateway device and the standby gateway device, reducing the time for the standby gateway device to issue routing information during the switching process of the main gateway device and reducing the interruption time of the message forwarding service.
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 specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification 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 should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The following provides a detailed description of examples of the present specification.
The method or the device of the specification is applied to the standby gateway equipment in the dual-computer hot standby, and the gateway equipment can be a router, a three-layer switch, firewall equipment and the like.
As shown in fig. 2, fig. 2 is a schematic flow chart of a routing information issuing method according to an exemplary embodiment in this specification, and includes the following steps:
step 202, for each VLAN interface of the standby gateway device, determining whether the member port set corresponding to the VLAN interface includes a dynamic aggregation port.
When the standby gateway device is initialized, each VLAN interface of the standby gateway device may be traversed first, and whether the member interface corresponding to the VLAN interface is assessed to include a dynamic aggregation port is determined.
Of course, it may also be that each VLAN interface of the gateway device is periodically traversed, and whether the member interface corresponding to the VLAN interface is assessed to include the dynamic aggregation port is determined.
In addition, when a VLAN interface is created, every time a VLAN interface is created, it may be determined whether the member port set corresponding to the VLAN interface includes a dynamic aggregation port.
Step 204, if the judgment result is yes, setting the VLAN interface to be in an activated state, and removing the state dependency relationship of the VLAN interface to the corresponding member port set;
if the member port set corresponding to the VLAN interface is judged to include the dynamic aggregation port, it is described that the state of the VLAN interface depends on the state of the dynamic aggregation port in the member port set corresponding to the VLAN interface, so that the VLAN interface is set to an activated state, and the state dependency relationship of the VLAN interface on the corresponding member port set is released.
In practical application, when it is monitored that all the member ports in the member port set corresponding to the VLAN interface are in an inactivated state, the state of the VLAN interface is rejected from being changed, so as to release the state dependency relationship of the VLAN interface on the corresponding member port set. Specifically, when all the member ports of the member port set are in the inactive state, a prompt is given to the system, and after receiving the prompt, the system responds to the prompt and changes the VLAN interface corresponding to the member port set to the inactive state. If the VLAN interface is forced to be in the activated state, the system does not respond any more when receiving the prompt of the aggregation interface corresponding to the VLAN interface, and the VLAN interface is not changed into the inactivated state.
Furthermore, in some cases, it is necessary to change the attribute of the VLAN interface, that is, change the member port in the member port set corresponding to the VLAN interface. If the member port set port corresponding to the changed VLAN interface does not include the dynamic set port, a dynamic aggregation port is newly added to the member port set during the change, and at this time, the VLAN interface may be set to an active state, and the state dependency of the VLAN interface on the member port set is released.
It should be noted that as long as the standby gateway device is in the silent mode, all the dynamic aggregation ports are necessarily in the inactive state, and even if the VLAN interface corresponding to the dynamic aggregation port is forced to be in the active state, the dynamic aggregation port is still in the inactive state because the silent mode cannot receive and transmit a message.
And step 206, sending the routing information to each VLAN interface in the activated state.
When the standby gateway device detects that a certain VLAN interface is changed from an inactivated state to an activated state, the standby gateway device issues related routing information aiming at the VLAN interface. Specifically, assuming that there is a VLAN A, VLAN B, VLAN C, VLAN interface D, a VLAN A, VLAN interface B is in an activated state, and a VLAN C, VLAN interface D is in an inactivated state, at this time, the VLAN interface D is changed from the inactivated state to the activated state, after monitoring that the VLAN interface D is changed from the inactivated state to the activated state, the standby gateway device searches for routing information for the VLAN interface D, that is, searches for routing information between the VLAN interface D and each VLAN interface in an activated state, including routing information between the VLAN interface D and the VLAN interface a, and routing information between the VLAN interface D and the VLAN interface B, and then issues the searched routing information to the VLAN A, VLAN interface B, VLAN interface D. Certainly, if there is no corresponding routing information between VLAN interface D and VLAN interface a, it is not necessary to issue relevant routing information to VLAN interface a.
It should be noted that the routing information issuing method shown in fig. 2 is executed by the standby gateway device when the main gateway device operates normally.
Based on the routing information issuing method, the present application also provides a gateway device switching method, as shown in fig. 3, including the following steps:
step 302, under the condition that the main gateway device is detected to be in failure, the silent mode is released.
Before the standby gateway device does not detect that the main gateway device fails, the standby gateway device is always in a silent mode, when the standby gateway device detects the main gateway device, the main gateway device can suspend message receiving and sending, and the standby gateway device can remove the silent mode.
Step 304, starting to execute the active/standby switching between the master gateway device and the master gateway device, and determining the state of the dynamic aggregation port through a Link Aggregation Control Protocol (LACP) message.
After the standby gateway device releases the silent mode, it starts to execute the main/standby switch with the main gateway device, at this time, all physical ports can receive and transmit messages, so the standby gateway device can determine the state of the dynamic convergence port by receiving and transmitting the LACP messages with the opposite device. Before the standby gateway device is not switched, the VLAN interfaces of the corresponding member port set including the dynamic aggregation ports are all forced to be in an activated state, and relevant routing information is issued and completed, so that the standby gateway device and the opposite device can start to forward the service of the packet after negotiating and determining the state of each dynamic aggregation port.
When determining the state of the dynamic aggregation port, the determined state may be an activated state or an inactivated state.
After the standby gateway device becomes the master gateway device, because the standby gateway device is no longer in the silent mode, the state of each dynamic aggregation port is not affected by the silent mode, and therefore, after the standby gateway device becomes the master gateway device (after the standby gateway device determines the state of the dynamic aggregation port), the state dependency relationship of the VLAN interface on the corresponding member port set can be restored for each VLAN interface of the corresponding member port set, where the corresponding member port set includes the dynamic aggregation port. That is, if all the member ports in the member port set are in the inactive state, the corresponding VLAN interface will be in the inactive state, and if one of the member ports in the member port set is in the active state, the corresponding VLAN interface will be in the active state.
In practical application, if the master-slave switching between the master gateway device and the slave gateway device is started, the state dependency relationship of the VLAN interface on the corresponding member port set is restored, and part of the dynamic aggregation ports have not yet determined the state, so that part of the VLAN interfaces that have been forced to be in the activated state before are affected by the dynamic aggregation ports that have not been determined to be in the inactivated state, and after the state of the part of the dynamic aggregation ports is determined, some of the dynamic aggregation ports determine to be in the activated state, so that some VLAN interfaces are affected and changed from the inactivated state to the activated state, at this time, some routing information needs to be re-issued, and the switching time between the master gateway device and the slave gateway device is also delayed.
Therefore, a timer can be created when the standby gateway device starts to execute the main-standby switching with the main gateway device, and when the timer is triggered, the state of the dynamic aggregation port is judged and determined; and when the timer is not triggered, judging that the state of the dynamic aggregation port is not determined. Specifically, when the standby gateway device starts to execute the main-standby switching with the main gateway device, timing is started, after a preset time period, the standby gateway is considered to be switched to the main gateway device, and then the state dependency relationship of the VLAN interface on the corresponding member port set is recovered for each VLAN interface of the corresponding member port set including the dynamic aggregation port. The timer or the preset time length is an estimation for determining the time length of the dynamic aggregation port of the standby gateway equipment. Therefore, the situation can be effectively avoided.
In practical application, after the standby gateway device is switched to the main gateway device, each VLAN interface may be traversed, and the VLAN interfaces in which all the member ports in the corresponding member port set are in the inactive state are set to the inactive state.
The present specification also provides a routing information issuing apparatus, as shown in fig. 4, where the apparatus is applied to a standby gateway device, and includes:
a member port set judgment module, configured to judge, for each VLAN interface of the standby gateway device, whether a member port set corresponding to the VLAN interface includes a dynamic aggregation port;
the dependency relationship releasing module is used for setting the VLAN interface to be in an activated state and releasing the state dependency relationship of the VLAN interface to the corresponding member port set if the judgment result is yes;
the routing information issuing module is used for issuing routing information to each VLAN interface in an activated state;
and the member port set changing module is used for setting the VLAN interface to be in an activated state and removing the state dependency relationship of the VLAN interface on the corresponding member port set when a dynamic aggregation port needs to be newly added to the member port set corresponding to the VLAN interface aiming at the VLAN interface of which the corresponding member port set does not comprise the dynamic aggregation port.
The present specification also provides a gateway device switching apparatus based on the routing information issuing apparatus, as shown in fig. 5, where the apparatus is applied to a standby gateway device, and includes:
the silent mode removing module is used for removing the silent mode under the condition that the main gateway equipment is detected to be out of order;
a gateway device switching module, configured to start performing active/standby switching with the main gateway device, and determine a state of a dynamic aggregation port through a link aggregation control protocol LACP message;
and the dependency relationship recovery module is used for recovering the state dependency relationship of the VLAN interface on the corresponding member port set aiming at each VLAN interface of the corresponding member port set including the dynamic aggregation port after the state of the dynamic aggregation port is determined.
The embodiment of the routing information issuing and gateway device switching method can be applied to computer equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor in which the file processing is located. From a hardware aspect, as shown in fig. 6, which is a hardware structure diagram of a computer device in which a file processing apparatus is located in the embodiment of this specification, except for the processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040 shown in fig. 6, a device in which a session table control apparatus is located in the embodiment may also include other hardware according to an actual function of the computer device, and details of this are not described again.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment 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 elements can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Accordingly, the present specification also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor is configured to perform any of the methods described above.
Embodiments of the present specification also provide a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform any one of the methods described above.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. Information may be computer readable instructions, data structures, units 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.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A method for issuing routing information is characterized in that the method is applied to standby gateway equipment and comprises the following steps:
for each virtual local area network VLAN interface of the standby gateway equipment, judging whether a member port set corresponding to the VLAN interface comprises a dynamic aggregation port or not;
if the judgment result is yes, setting the VLAN interface to be in an activated state, and removing the state dependency relationship of the VLAN interface to the corresponding member port set;
and sending routing information to each VLAN interface in an activated state.
2. The method of claim 1, wherein de-asserting the state dependency of the VLAN interface on the corresponding set of member ports comprises:
and when all the member ports in the member port set corresponding to the VLAN interface are monitored to be in an inactivated state, refusing to change the state of the VLAN interface.
3. The method of claim 1, further comprising:
and aiming at the VLAN interface of which the corresponding member port set does not comprise the dynamic aggregation port, setting the VLAN interface to be in an activated state and removing the state dependency relationship of the VLAN interface on the corresponding member port set under the condition that the dynamic aggregation port needs to be newly added into the member port set corresponding to the VLAN interface.
4. A gateway device switching method based on the routing information issuing method according to any one of claims 1 to 3, wherein the method is applied to a standby gateway device, and includes:
under the condition that the main gateway equipment is detected to be out of order, the silent mode is released;
and starting to execute the master-slave switching between the master gateway equipment and the master gateway equipment, and determining the state of the dynamic aggregation port through a Link Aggregation Control Protocol (LACP) message.
5. The method of claim 4, further comprising:
after the state of the dynamic aggregation port is determined, for each VLAN interface of the corresponding member port set including the dynamic aggregation port, the state dependency relationship of the VLAN interface to the corresponding member port set is recovered.
6. The method of claim 5, wherein determining whether a status of a dynamic aggregation port is determined comprises:
when the master-slave switching between the master gateway equipment and the master gateway equipment is started to be executed, a timer is established;
when the timer is triggered, judging and determining the state of the dynamic aggregation port;
and when the timer is not triggered, judging that the state of the dynamic aggregation port is not determined.
7. A routing information issuing device is characterized in that the device is applied to a standby gateway device and comprises:
a member port set judgment module, configured to judge, for each VLAN interface of the standby gateway device, whether a member port set corresponding to the VLAN interface includes a dynamic aggregation port;
the dependency relationship releasing module is used for setting the VLAN interface to be in an activated state and releasing the state dependency relationship of the VLAN interface to the corresponding member port set if the judgment result is yes;
and the routing information issuing module is used for issuing the routing information to each VLAN interface in the activated state.
8. The apparatus of claim 7, further comprising:
and the member port set changing module is used for setting the VLAN interface to be in an activated state and removing the state dependency relationship of the VLAN interface on the corresponding member port set when a dynamic aggregation port needs to be newly added to the member port set corresponding to the VLAN interface aiming at the VLAN interface of which the corresponding member port set does not comprise the dynamic aggregation port.
9. A gateway device switching apparatus based on the routing information issuing apparatus of any one of claims 7 to 8, wherein the apparatus is applied to a standby gateway device, and comprises:
the silent mode removing module is used for removing the silent mode under the condition that the main gateway equipment is detected to be out of order;
and the gateway equipment switching module is used for starting to execute the active-standby switching between the gateway equipment and the main gateway equipment and determining the state of the dynamic aggregation port through a Link Aggregation Control Protocol (LACP) message.
10. The apparatus of claim 9, further comprising:
and the dependency relationship recovery module is used for recovering the state dependency relationship of the VLAN interface on the corresponding member port set aiming at each VLAN interface of the corresponding member port set including the dynamic aggregation port after the state of the dynamic aggregation port is determined.
CN202011490915.7A 2020-12-16 2020-12-16 Method and device for routing information issuing and gateway equipment switching Active CN112653596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011490915.7A CN112653596B (en) 2020-12-16 2020-12-16 Method and device for routing information issuing and gateway equipment switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011490915.7A CN112653596B (en) 2020-12-16 2020-12-16 Method and device for routing information issuing and gateway equipment switching

Publications (2)

Publication Number Publication Date
CN112653596A CN112653596A (en) 2021-04-13
CN112653596B true CN112653596B (en) 2022-07-01

Family

ID=75354507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011490915.7A Active CN112653596B (en) 2020-12-16 2020-12-16 Method and device for routing information issuing and gateway equipment switching

Country Status (1)

Country Link
CN (1) CN112653596B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217457A (en) * 2007-12-28 2008-07-09 华为技术有限公司 A method to realize fast reroute and router
CN102904818A (en) * 2012-09-27 2013-01-30 北京星网锐捷网络技术有限公司 Method and device for updating ARP (Address Resolution Protocol) information table
CN104821913A (en) * 2015-05-05 2015-08-05 杭州华三通信技术有限公司 Data message forwarding method and apparatus
CN105871743A (en) * 2015-01-21 2016-08-17 杭州迪普科技有限公司 Method and device for negotiating aggregate port state
CN108616455A (en) * 2018-04-23 2018-10-02 上海泰砚通信技术有限公司 A kind of route synchronization method of single machine pile system
CN111586505A (en) * 2020-04-26 2020-08-25 烽火通信科技股份有限公司 Method and device for realizing rapid recovery of main/standby switching service in PON access system
CN111901133A (en) * 2020-08-07 2020-11-06 北京东土军悦科技有限公司 Multicast switching method, device, network equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9191271B2 (en) * 2013-04-29 2015-11-17 Telefonaktiebolaget L M Ericsson (Publ) Fast traffic recovery in VRRP based routers

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217457A (en) * 2007-12-28 2008-07-09 华为技术有限公司 A method to realize fast reroute and router
CN102904818A (en) * 2012-09-27 2013-01-30 北京星网锐捷网络技术有限公司 Method and device for updating ARP (Address Resolution Protocol) information table
CN105871743A (en) * 2015-01-21 2016-08-17 杭州迪普科技有限公司 Method and device for negotiating aggregate port state
CN104821913A (en) * 2015-05-05 2015-08-05 杭州华三通信技术有限公司 Data message forwarding method and apparatus
CN108616455A (en) * 2018-04-23 2018-10-02 上海泰砚通信技术有限公司 A kind of route synchronization method of single machine pile system
CN111586505A (en) * 2020-04-26 2020-08-25 烽火通信科技股份有限公司 Method and device for realizing rapid recovery of main/standby switching service in PON access system
CN111901133A (en) * 2020-08-07 2020-11-06 北京东土军悦科技有限公司 Multicast switching method, device, network equipment and storage medium

Also Published As

Publication number Publication date
CN112653596A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
JP5508289B2 (en) Network recovery system and method from multilink failure
CN110113259B (en) Path state notification method, path switching method, forwarding equipment and system
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN102394914A (en) Cluster brain-split processing method and device
CN107612754B (en) Bidirectional forwarding link fault detection method and device and network node equipment
US20190081853A1 (en) Link Handover Method for Service in Storage System, and Storage Device
CN110730125B (en) Message forwarding method and device, dual-active system and communication equipment
CN101702663A (en) Method for updating ring network topology information, device and system thereof
CN108199962B (en) Address migration method and device, network equipment and readable storage medium
CN107181780B (en) Communication channel processing method and system
US20120320754A1 (en) Route calculating after switching occurs from a primary main control board to a standby main control board
CN109495345B (en) BFD processing method and network equipment
CN111030877A (en) Main/standby equipment switching method and device
CN111586505B (en) Method and device for realizing rapid recovery of main/standby switching service in PON access system
CN113328916A (en) BFD detection mode switching method, device and equipment
CN112383414B (en) Dual-machine hot backup quick switching method and device
CN109150709B (en) Method, equipment and system for realizing Mux machine
US8208370B1 (en) Method and system for fast link failover
CN112653596B (en) Method and device for routing information issuing and gateway equipment switching
CN103414591A (en) Method and system for fast converging when port failure is recovered
US10514991B2 (en) Failover device ports
CN110661599A (en) HA implementation method, device and storage medium between main node and standby node
EP2698949B1 (en) METHOD AND SYSTEM FOR SETTING DETECTION FRAME TIMEOUT DURATION OF ETHERNET NODEs
CN112367179B (en) Link switching method and device
CN111224803B (en) Multi-master detection method in stacking system and stacking system

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