WO2016177116A1 - Network path switching method and device - Google Patents

Network path switching method and device Download PDF

Info

Publication number
WO2016177116A1
WO2016177116A1 PCT/CN2016/076424 CN2016076424W WO2016177116A1 WO 2016177116 A1 WO2016177116 A1 WO 2016177116A1 CN 2016076424 W CN2016076424 W CN 2016076424W WO 2016177116 A1 WO2016177116 A1 WO 2016177116A1
Authority
WO
WIPO (PCT)
Prior art keywords
network path
information
offline
board
forwarding detection
Prior art date
Application number
PCT/CN2016/076424
Other languages
French (fr)
Chinese (zh)
Inventor
李爱民
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177116A1 publication Critical patent/WO2016177116A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • 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]

Definitions

  • the present invention relates to the field of network communications, and in particular, to a network path switching method and apparatus.
  • L2VPN Layer 2 virtual private network
  • L3VPN three-layer virtual private network
  • PW layer Pseudo Wire
  • the point-to-point connection between the pair) the protection path, the tunnel layer protection path, the link layer protection path, etc., for the network path to fail, the network path can be switched to the deployed protection path.
  • a BFD (bidirectional forwarding detection) protocol is configured to detect the connectivity of the network path.
  • the existing detection mode is to deploy the BFD session on the board.
  • the network path is abnormal, the network board is switched to the protection path.
  • the offline board cannot switch the network path.
  • the path is switched to the online board, and the master belongs to the upper control plane.
  • the network path is on the lower-layer forwarding plane.
  • the master control network path switching speed is slow, such as the carrier-class 50ms switching performance cannot be met.
  • the main purpose of the embodiment of the present invention is to provide a network path switching method and device, which is to solve the technical problem that the switching speed of the network path is slow when the board is in an offline state.
  • a network path switching method provided by an embodiment of the present invention includes the following steps:
  • the online board After receiving the offline information sent by the master, the online board obtains the corresponding slot information based on the offline information.
  • the online board switches the current network path of the offline board to the network path corresponding to the network path identifier.
  • the step of the online board switching the current network path of the offline board to the network path corresponding to the network path identifier includes:
  • the online board switches the current network path of the offline board to a network path with a high priority.
  • the network path switching method includes:
  • the terminal when receiving an offline information receiving instruction input by the user, the terminal enters an offline information receiving mode.
  • the network path switching method includes:
  • the online board receives the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
  • the online board stores the received bidirectional forwarding detection information.
  • the bidirectional forwarding detection information is sent by the main control to the online board when the bidirectional forwarding detection information is updated.
  • the embodiment of the present invention further provides a network path switching apparatus, where the network path switching apparatus includes:
  • Obtaining a module configured to acquire corresponding slot information based on the offline information when receiving the offline information sent by the master;
  • the acquiring module is further configured to acquire bidirectional forwarding detection information corresponding to the slot information;
  • the acquiring module is further configured to: obtain a network path identifier corresponding to the determined bidirectional forwarding detection information according to a mapping relationship between the preset bidirectional forwarding detection information and the network path identifier;
  • the switching module is configured to switch the current network path of the offline board to the network path corresponding to the network path identifier.
  • the switching module includes:
  • a determining unit configured to determine a priority of a network path corresponding to each network path identifier
  • the switching unit is configured to switch the current network path of the offline board to a network path with a high priority.
  • the network path switching device further includes:
  • the pre-processing module is configured to trigger an offline information receiving instruction to enter an offline information receiving mode during initialization, or enter an offline information receiving mode upon receiving an offline information receiving instruction input by the user.
  • the network path switching device further includes:
  • the receiving module is configured to receive the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
  • a storage module configured to store the received bidirectional forwarding detection information.
  • the bidirectional forwarding detection information is sent by the main control to the receiving module when the bidirectional forwarding detection information is updated.
  • the online board obtains the bidirectional forwarding detection information corresponding to the slot information according to the acquired slot information, and then obtains the corresponding network path according to the bidirectional forwarding detection information. Identifying and directly switching the current network path of the offline board to the network path corresponding to the obtained network path identifier.
  • the other online boards can obtain the slot information of the offline board.
  • the current network path of the offline board is switched to the network path corresponding to the obtained network path identifier, and the network path of the offline board can only be controlled by the master when the board is offline. Switch to the online board to improve the switching speed of the network path.
  • FIG. 1 is a schematic flowchart of a first embodiment of a network path switching method according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a network path switching method according to the present invention.
  • FIG. 3 is a schematic flowchart of a third embodiment of a network path switching method according to the present invention.
  • FIG. 4 is a schematic flowchart of a fourth embodiment of a network path switching method according to the present invention.
  • FIG. 5 is a schematic diagram of functional modules of a first embodiment of a network path switching apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a second embodiment of a network path switching apparatus according to the present invention.
  • FIG. 7 is a schematic diagram of functional modules of a third embodiment of a network path switching apparatus according to the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a fourth embodiment of a network path switching apparatus according to the present invention.
  • the invention provides a network path switching method.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a network path switching method according to the present invention.
  • This embodiment provides a network path switching method, where the network path switching method includes:
  • step S10 the online board obtains the corresponding slot information based on the offline information when receiving the offline information sent by the master.
  • the manner in which the online board receives the offline information sent by the master control unit includes: receiving, by the online board, the offline information of the master broadcast, and then acquiring the corresponding slot information based on the offline information, or
  • the online board receives offline information that is sent by the master to the preset position of the online board, such as a preset receiving point of the online board, and then obtains corresponding slot information based on the offline information.
  • the main control can be preset to detect the running of each board in real time. In the state, when the master detects that the board is not in the position, the board can be determined to be offline, and then the slot information of the offline board is obtained, and other identifier information of the offline line card is further obtained, and the obtained information is obtained.
  • the slot information and the other identifier information are sent to the other online boards as the offline information, and the corresponding slot information is extracted when the online board receives the offline information sent by the master.
  • the online line card only receives offline information sent by the master in the same routing device.
  • the offline information preferably includes slot information corresponding to the offline board, identification information of the offline line card, bidirectional forwarding detection identifier, and the like.
  • Step S20 the online board acquires bidirectional forwarding detection information corresponding to the slot information.
  • each board stores the bidirectional forwarding detection information of all the boards in the same routing device.
  • the bidirectional forwarding detection information includes slot information corresponding to each board and bidirectional forwarding detection. The identifier, if the slot information and the bidirectional forwarding detection information both contain the slot number of the board, when the online board obtains the slot information, the online board can forward the detection information according to the preset bidirectional information.
  • the online board compares the slot information with the preset bidirectional forwarding detection information, and determines the matching when detecting the bidirectional forwarding detection information that matches the slot number of the received slot information.
  • the detection information is bidirectionally forwarded and the matched bidirectional forwarding detection information is obtained.
  • the slot information of each board can be preset to correspond to multiple bidirectional forwarding detection information, and the slot information corresponding to each board is different, then when the slot information acquired by the online board is obtained, And obtaining the corresponding bidirectional forwarding detection information according to the slot information.
  • the online board may obtain corresponding multiple bidirectional forwarding detection information.
  • the online board can also receive the slot information of the different offline boards at the same time, and obtain the slot information corresponding to the different offline boards, and obtain the different orders according to the preset bidirectional forwarding detection information.
  • the bidirectional forwarding detection information corresponding to the slot information of the board can be preset to correspond to multiple bidirectional forwarding detection information, and the slot information corresponding to each board is different, then when the slot information acquired by the online board is obtained, And obtaining the corresponding bidirectional forwarding detection information according to the slot information.
  • the online board may obtain corresponding multiple bidirectional forwarding detection information.
  • the online board can also receive the slot information of the different offline boards at the same time, and obtain the slot information corresponding to
  • Step S30 The online board obtains the network path identifier corresponding to the determined bidirectional forwarding detection information according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier.
  • the online board determines the network path identifier corresponding to the bidirectional forwarding detection information according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier, that is, the online board traverses the network path identifier. Obtaining the identifier of the determined network path when there is a network path identifier that matches the two-way forwarding detection information and the network path identifier is a corresponding network path identifier of another online board, and further, when When the bidirectional forwarding detection information corresponding to the slot information includes multiple bidirectional forwarding detection information, the online board obtains the network path identifier corresponding to each bidirectional forwarding detection information, that is, the network path acquired by the online board includes multiple pieces.
  • corresponding bidirectional forwarding detection information is deployed on each network path in advance, and different network paths correspond to different bidirectional forwarding detection information, and the network path preferably includes a PW layer (pseudo line layer) network path, Tunnel layer network path, link layer network path.
  • PW layer prseudo line layer
  • Tunnel layer network path Tunnel layer network path
  • link layer network path a network path preferably includes a PW layer (pseudo line layer) network path, Tunnel layer network path, link layer network path.
  • Each network path includes corresponding network path identification information, and the network path is stored in association with the network path identification information.
  • the corresponding level of bidirectional forwarding detection information is deployed for different levels of protection paths, so as to quickly switch to the preset network path.
  • the bidirectional forwarding detection information of the network path deployment is unique, that is, one network path corresponds to one bidirectional forwarding detection information.
  • the deployed network path includes: one network path or multiple network paths can be deployed on each board in a routing device, and each network path is configured with unique bidirectional forwarding detection information, and further, in each routing device
  • the inner and outer layers of each board may also be configured with an inner network path and an outer network path.
  • the inner network path and the outer network path have the same primary port information in the board, but different levels of protection ports may be used. Different from each other, the two-way forwarding detection information associated with each other can be misinterpreted, that is, when the determined slot information is received, the bidirectional forwarding detection information can be extracted according to the slot information, and the detection information is forwarded according to the bidirectional forwarding information.
  • the network path can be determined without mis-switching due to the inner and outer network paths of the same board, which improves the accuracy of the handover.
  • Step S40 the online board switches the current network path of the offline board to the obtained The network path identifies the corresponding network path.
  • the network path is a protection network path or a backup network path of the offline board, that is, the network path identifier corresponding to the bidirectional forwarding detection information is configured by using a primary path and an alternate path.
  • the online board is switched to the standby path.
  • step S40 includes:
  • the online board obtains only one network path identifier, and then the online board is located. The current network path of the offline board is switched to the network path corresponding to the obtained network path identifier.
  • the network path identifier obtained by the online board includes multiple network identifiers. It can be understood that each network identifier corresponds to each two-way forwarding detection information, and the online board switches the current network path of the offline board to the obtained network board.
  • the step of the network path corresponding to the network path includes: determining, by the online board, a network path identifier corresponding to each bidirectional forwarding detection information; and then, switching each offline board to a corresponding network path according to each network path identifier. Identify the corresponding network path.
  • the bidirectional forwarding detection information corresponding to the slot information is multiple bidirectional forwarding detection information
  • the plurality of network paths are forwarded in a plurality of directions, and the plurality of network paths include a plurality of network paths of the same level, or different network paths (such as an inner network path and an outer network path deployed by a single board), which is understandable.
  • the network path includes a multi-layer network path, such as a tunnel layer network path and a link layer network path, different bidirectional forwarding detection information is preset according to the two network paths, and the offline board is received.
  • the online board can traverse the preset bidirectional forwarding detection information, obtain the network path identifier corresponding to the determined bidirectional forwarding detection information, and obtain the offline board according to the network path identifier corresponding to the bidirectional forwarding detection information.
  • the current network path is switched to the corresponding network path identifier.
  • the online board obtains the network path identifier of the offline board, and directly switches the current network path of the offline board to the network path corresponding to the obtained network path identifier.
  • the network path of the offline board includes different levels of network paths, the network paths of different levels may be switched, resulting in incorrect switching of the network path.
  • different bidirectional forwarding detection information is configured according to the network path of different levels, and the online board obtains the bidirectional forwarding detection information corresponding to the slot information when receiving the slot information of the offline board. At that time, it is possible to determine which level of the network path to switch, thereby improving the accuracy of the network path switching.
  • the online board obtains the bidirectional forwarding detection information corresponding to the slot information according to the obtained slot information, and then obtains the corresponding network path identifier according to the bidirectional forwarding detection information, and The current network path of the offline board is directly switched to the network switching path corresponding to the obtained network path identifier.
  • the other online boards can obtain the slot information of the offline board. If the current network path of the offline board is switched to the network switching path corresponding to the obtained network path identifier, the network path of the offline board can be switched to online only through the master control. The board improves the switching speed of the network path.
  • a second embodiment of the network path switching method of the present invention is proposed based on the first embodiment.
  • the acquired network path identifier includes multiple
  • the step S40 includes:
  • Step S41 The online board determines a priority of a network path corresponding to each network path identifier.
  • step S42 the online board switches the current network path of the offline board to a network path with a high priority.
  • the network path indicating that the offline board can be switched includes multiple, that is, the protection path of the offline board includes multiple, and the online The board preferably compares the network paths corresponding to the respective acquired network path identifiers. The priority of the path, the priority of the network path of the network path or the preset priority of the network path.
  • the online board determines the network path with a high priority, the current offline board can be The network path is switched to a network path with a high priority.
  • the network path switching method of the present invention is proposed based on the first embodiment.
  • the network path The switching methods include:
  • Step S50 the terminal triggers an offline information receiving instruction to enter an offline information receiving mode when initializing, or enters an offline information receiving mode when receiving an offline information receiving instruction input by a user.
  • the online board when the online board receives the offline information receiving instruction, the online board starts a preset receiving point and enters an offline information receiving mode; or presets to receive an offline order during initialization.
  • the mode of the board that is, the offline information receiving instruction is triggered at the time of initialization to enter the offline information receiving mode.
  • the method of receiving the offline information receiving mode corresponding to the offline board is preferably implemented in a software manner, that is, when the online board is initialized, the sensing event of the offline information of the offline board is first registered, for example, configuring one in the board.
  • Receiving point, the configured receiving point is only used to receive offline information sent by the master.
  • the online board when receiving the offline information command triggered by the user, the online board moves the preset receiving point and enters the offline information receiving mode.
  • a fourth embodiment of the network path switching method of the present invention is proposed based on the first embodiment.
  • the network path The switching methods include:
  • Step S60 the online board receives the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
  • the online board receives the two-way forwarding detection relationship generated and sent by each board between the boards of the same routing device and the boards of other routing devices.
  • Forward detection information That is, each board in the routing device establishes a bidirectional forwarding detection relationship with the other routing devices through the master control, and the master control establishes a bidirectional forwarding detection relationship between each board and other routing devices, and preferably establishes a bidirectional forwarding detection relationship by using a three-way handshake manner, and The master generates bidirectional forwarding detection information according to the established bidirectional forwarding detection relationship and sends the information to the online board.
  • the bidirectional forwarding detection information is preferably configured by using a HASH (Hash) management manner to configure a primary and secondary HASH key value, that is, the primary and secondary HASH key values of the bidirectional forwarding detection information are respectively set to a bidirectional forwarding detection identifier and a single board slot.
  • the bit number information that is, the user can query the corresponding bidirectional forwarding detection information by using the bidirectional forwarding detection identifier and the slot number information.
  • Step S70 The online board stores the received bidirectional forwarding detection information.
  • the online board when the online board receives the bidirectional forwarding detection information sent by the master control, the received bidirectional forwarding detection information is saved, and the storage location may be preset storage on each board in the routing device. Space, or the default storage space in the routing device.
  • the bidirectional forwarding detection information is sent by the main control to the online board when the bidirectional forwarding detection information is updated. That is, the master detects that a new bidirectional forwarding detection relationship is established between each board in the same routing device and a board in another routing device, and generates new bidirectional forwarding detection information according to the newly established bidirectional forwarding detection relationship. And sending the newly generated bidirectional forwarding detection information to the online board, so that the online board stores the bidirectional forwarding detection information.
  • the invention further provides a network path switching device.
  • FIG. 5 is a schematic diagram of functional modules of a preferred embodiment of a network path switching apparatus according to the present invention.
  • the functional module diagram shown in FIG. 5 is merely an exemplary diagram of a preferred embodiment, and those skilled in the art will surround the functional modules of the network path switching apparatus shown in FIG.
  • the new function modules can be easily supplemented; the names of the function modules are custom names, which are only used to assist in understanding the various program function blocks of the network path switching device, and are not used to limit the technical solution of the present invention.
  • the core is the function that each functional module of the defined name has to achieve.
  • the embodiment provides a network path switching device, where the network path switching device includes:
  • the obtaining module 10 is configured to acquire corresponding slot information based on the offline information when receiving the offline information sent by the master;
  • the manner of receiving the offline information sent by the master control includes receiving the offline information of the master broadcast, and then the acquiring module 10 acquires the corresponding slot information based on the offline information, or receives the master control transmission.
  • the offline information of the location of the acquisition module 10 (such as the preset receiving point of the acquisition module 10) is obtained, and then the acquisition module 10 acquires the corresponding slot information based on the offline information.
  • the main control can detect the running status of each board in real time. When the main control detects that the board is not in the position, the board can be determined to be offline, and then the slot of the offline board is obtained.
  • the module 10 extracts the corresponding slot information.
  • the acquiring module 10 only receives offline information that is sent by the master in the same routing device.
  • the offline information preferably includes slot information corresponding to the offline board, identification information of the offline line card, bidirectional forwarding detection identifier, and the like.
  • the acquiring module 10 is further configured to acquire bidirectional forwarding detection information corresponding to the slot information.
  • each board stores the bidirectional forwarding detection information of all the boards in the same routing device.
  • the bidirectional forwarding detection information includes the slot information corresponding to each board and the bidirectional forwarding detection identifier. If the slot information and the bidirectional forwarding detection information include the slot number of the board, the acquiring module 10 may query the preset bidirectional forwarding detection information when the slot information is obtained.
  • the bidirectional forwarding detection information that is matched with the slot number of the slot information to obtain the corresponding bidirectional forwarding detection information, where the obtaining manner is that the obtaining module 10 traverses the preset bidirectional forwarding detection information, that is, the obtaining The module 10 compares the slot information with the preset bidirectional forwarding detection information, and determines the matching two-way when detecting the bidirectional forwarding detection information that matches the slot number of the received slot information. Forwarding the detection information and obtaining the matched bidirectional forwarding detection information.
  • the slot information of each board may be preset to correspond to multiple bidirectional forwarding detection information, and the slot information corresponding to each board is different, then when the acquiring module 10 obtains the slot information, And obtaining the corresponding bidirectional forwarding detection information according to the slot information. If the slot information includes multiple bidirectional forwarding detection information, the acquiring module 10 may obtain corresponding multiple bidirectional forwarding detection information. Further, the acquiring module 10 can also receive slot information of different offline boards at the same time, and obtain the slot information corresponding to different offline boards, and obtain different single orders according to the preset bidirectional forwarding detection information. The bidirectional forwarding detection information corresponding to the slot information of the board.
  • the obtaining module 10 is further configured to obtain a network path identifier corresponding to the determined bidirectional forwarding detection information according to a mapping relationship between the preset bidirectional forwarding detection information and the network path identifier;
  • the network path identifier corresponding to the bidirectional forwarding detection information is determined according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier, that is, the obtaining module 10 traverses the network path identifier, when And obtaining the identifier of the determined network path when the network path identifier of the two-way forwarding detection information is matched, and the network path identifier is a corresponding network path identifier of another online board, and further, when the slot information is corresponding to
  • the obtaining module 10 acquires the network path identifier corresponding to each bidirectional forwarding detection information, that is, the network path acquired by the obtaining module 10 includes multiple pieces.
  • corresponding bidirectional forwarding detection information is deployed to each network path in advance, and different network paths correspond to different bidirectional forwarding detection information, and the network path preferably includes a PW (pseudo-layer layer) layer network path, Tunnel layer network path, link layer network path.
  • PW per-layer layer
  • Tunnel layer network path Tunnel layer network path
  • link layer network path Each network path includes corresponding network path identification information, and the network path is stored in association with the network path identification information.
  • the corresponding level of bidirectional forwarding detection information is deployed for different levels of protection paths, so as to quickly switch to the preset network path.
  • the bidirectional forwarding detection information of the network path deployment is unique, that is, one network path corresponds to one bidirectional forwarding detection signal. interest.
  • the deployed network path includes: one network path or multiple network paths can be deployed on each board in a routing device, and each network path is configured with unique bidirectional forwarding detection information, and further, in each routing device
  • the inner and outer layers of each board may also be configured with an inner network path and an outer network path.
  • the inner network path and the outer network path have the same primary port information in the board, but different levels of protection ports may be used. Different from each other, the two-way forwarding detection information associated with each other can be misinterpreted, that is, when the determined slot information is received, the bidirectional forwarding detection information can be extracted according to the slot information, and the detection information is forwarded according to the bidirectional forwarding information.
  • the network path can be determined without mis-switching due to the inner and outer network paths of the same board, which improves the accuracy of the handover.
  • the switching module 20 is configured to switch the current network path of the offline board to the network path corresponding to the network path identifier.
  • the network path is a protection network path or a backup network path of the offline board, that is, the network path identifier corresponding to the bidirectional forwarding detection information is configured by using a primary path and an alternate path.
  • the switching module 20 switches to the alternate path.
  • the switching module 20 switches the current network path of the offline board to the network path corresponding to the obtained online path of the network board that is included in the network path.
  • the acquiring module 10 obtains only one network path identifier, and then the switching module 20 The current network path of the offline board is switched to the network path corresponding to the acquired network path identifier.
  • the bidirectional forwarding detection information corresponding to the slot information is used.
  • the network path identifier obtained by the obtaining module 10 includes multiple network identifiers. It can be understood that each network identifier corresponds to each two-way forwarding detection information, and the switching module 20 switches the current network path of the offline board to obtain The network path corresponding to the network path identifier includes: first determining a network path identifier corresponding to each bidirectional forwarding detection information; and then, the switching module 20 switches each offline board according to each network path identifier to The corresponding network path identifies the corresponding network path.
  • the bidirectional forwarding detection information corresponding to the slot information is multiple bidirectional forwarding detection information
  • the plurality of network paths are forwarded in a plurality of directions, and the plurality of network paths include a plurality of network paths of the same level, or different network paths (such as an inner network path and an outer network path deployed by a single board), which is understandable.
  • the acquiring module 10 obtains When the information about the slot of the offline board is obtained, the acquiring module 10 may obtain the network path identifier corresponding to the determined bidirectional forwarding detection information according to the network path identifier corresponding to the bidirectional forwarding detection information by traversing the preset bidirectional forwarding detection information. And the switching module 20 switches the current network path of the offline board to the network corresponding to the acquired network path identifier. In the network path.
  • a multi-layer network path such as a tunnel layer network path and a link layer network path
  • different bidirectional forwarding detection information is preset according to the two network paths, and the acquiring module 10 obtains
  • the acquiring module 10 may obtain the network path identifier corresponding to the determined bidirectional forwarding detection information according to the network path identifier corresponding to the bidirectional forwarding detection information by traversing the preset bidirectional forwarding detection information.
  • the switching module 20 switches the current network path of the offline board to the network corresponding to the acquired network path identifier. In the network path.
  • the acquiring module 10 obtains the network path identifier of the offline board, and the switching module 20 directly switches the current network path of the offline board to the corresponding network path identifier.
  • this type of switching has a drawback.
  • different bidirectional forwarding detection information is configured according to different levels of network paths, and the obtaining module 10 obtains bidirectional forwarding corresponding to the slot information when acquiring the slot information of the offline board. When detecting information, it can determine which level of network path to switch, thereby improving the accuracy of network path switching.
  • the online board obtains the bidirectional forwarding detection information corresponding to the slot information according to the acquired slot information, and then obtains the corresponding network path identifier according to the bidirectional forwarding detection information, and The current network path of the offline board is directly switched to the network switching path corresponding to the obtained network path identifier.
  • the other online boards can obtain the slot information of the offline board. If the current network path of the offline board is switched to the network switching path corresponding to the obtained network path identifier, the network path of the offline board can only be controlled by the master. Switch to the online board to improve the switching speed of the network path.
  • the switching module 20 includes:
  • the determining unit 21 is configured to determine a priority of the network path corresponding to each network path identifier
  • the switching unit 22 is configured to switch the current network path of the offline board to a network path with a high priority.
  • the determining The unit 21 preferably compares the priority of the network path corresponding to each acquired network path identifier, the priority includes a network load condition of the network path or a preset priority of the network path, and the determining unit 21 determines the priority.
  • the switching unit 22 can switch the current network path of the offline board to the network path with high priority.
  • the network path switching device further includes:
  • the pre-processing module 30 is configured to trigger an offline information receiving instruction to enter an offline information receiving mode upon initialization, or enter an offline information receiving mode upon receiving an offline information receiving instruction input by the user.
  • the pre-processing module 30 triggers an offline information receiving instruction at initialization to enter an offline information receiving mode.
  • the manner of receiving the offline information receiving mode corresponding to the offline board is preferably implemented by means of software, that is, the pre-processing module 30 first registers and detects when initializing.
  • the sensing event of the offline information of the offline board, such as configuring a receiving point in the board, the receiving point of the configuration is only used to receive the offline information sent by the master.
  • the pre-processing module 30 starts a preset receiving point and enters an offline information receiving mode.
  • the network path switching device further includes:
  • the receiving module 40 is configured to receive the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
  • the receiving module 40 receives the bidirectional forwarding detection information generated and sent by the master based on the bidirectional forwarding detection relationship between the boards of the same routing device and the boards of other routing devices. That is, each board in the routing device establishes a bidirectional forwarding detection relationship with the other routing devices through the master control, and the master control establishes a bidirectional forwarding detection relationship between each board and other routing devices, and preferably establishes a bidirectional forwarding detection relationship by using a three-way handshake manner, and The master generates bidirectional forwarding detection information according to the established bidirectional forwarding detection relationship and sends the information to the receiving module 40.
  • the bidirectional forwarding detection information is preferably configured by using a HASH (Hash) management manner to configure a primary and secondary HASH key value, that is, the primary and secondary HASH key values of the bidirectional forwarding detection information are respectively set to a bidirectional forwarding detection identifier and a single board slot.
  • the bit number information that is, the user can query the corresponding bidirectional forwarding detection information by using the bidirectional forwarding detection identifier and the slot number information.
  • the storage module 50 is configured to store the received bidirectional forwarding detection information.
  • the storage module 50 stores the received bidirectional forwarding detection information, and the storage module 50 stores the location in the routing device.
  • the bidirectional forwarding detection information is sent by the main control to the receiving when the bidirectional forwarding detection information is updated.
  • Module 40 the master establishes a new bidirectional forwarding detection relationship between each board in the same routing device and a board in another routing device, and generates a new bidirectional forwarding detection according to the newly established bidirectional forwarding detection relationship. And sending the newly generated bidirectional forwarding detection information to the receiving module 40, so that the storage module 50 stores the bidirectional forwarding detection information.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the network path switching method and apparatus have the following beneficial effects: when the board is offline, the other online boards can obtain the slot information of the offline board first, and according to the specific processing. If the current network path of the offline board is switched to the network path of the obtained network path identifier, the network path of the offline board can be switched to the online board only by the master. When the network switching performance is improved, it is also possible to switch according to different detection levels when the network path has nested protection, thereby improving the stability of the network switching.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is a network path switching method, comprising: when off-line information sent by a master control is received, an on-line single plate acquiring corresponding slot information based on the off-line information; the on-line single plate acquiring bidirectional forwarding detection information corresponding to the slot information; the on-line single plate acquiring a network path identifier corresponding to the determined bidirectional forwarding detection information according to a pre-set mapping relationship between the bidirectional forwarding detection information and the network path identifier; and the on-line single plate switching a current network path of an off-line single plate into a network path corresponding to the network path identifier. Also disclosed is a network path switching device. The present invention improves the switching speed of a network path.

Description

网络路径切换方法和装置Network path switching method and device 技术领域Technical field
本发明涉及网络通信领域,尤其涉及一种网络路径切换方法和装置。The present invention relates to the field of network communications, and in particular, to a network path switching method and apparatus.
背景技术Background technique
随着网络通信技术的发展,目前典型的L2VPN网络(二层虚拟专用网)或者L3VPN网络(三层虚拟专用网)中,通常会部署多层次的保护路径,比如PW层(Pseudo Wire,边缘路由器对之间的点对点的连接)保护路径、隧道层保护路径、链路层保护路径等,以供网络路径出现故障时,可以将网络路径切换到部署的保护路径中。With the development of network communication technology, in the typical L2VPN network (Layer 2 virtual private network) or L3VPN network (three-layer virtual private network), multiple levels of protection paths are usually deployed, such as PW layer (Pseudo Wire). The point-to-point connection between the pair) the protection path, the tunnel layer protection path, the link layer protection path, etc., for the network path to fail, the network path can be switched to the deployed protection path.
通常情况下,会部署BFD(双向转发检测)协议来快速检测网络路径的连通性,而现有的检测方式都是将BFD部署于单板上,通过在线单板发送的BFD报文实现定时检测网络路径的连通性,并在检测网络路径出现异常时,快速切换到保护路径中,而当单板处于离线状态时,离线单板无法切换网络路径,只能通过主控将离线单板的网络路径切换至在线单板,而主控属于上层控制面,网络路径处于底层转发面,主控控制网络路径切换的速度慢,如无法满足电信级50ms的切换性能。A BFD (bidirectional forwarding detection) protocol is configured to detect the connectivity of the network path. The existing detection mode is to deploy the BFD session on the board. When the network path is abnormal, the network board is switched to the protection path. When the board is offline, the offline board cannot switch the network path. The path is switched to the online board, and the master belongs to the upper control plane. The network path is on the lower-layer forwarding plane. The master control network path switching speed is slow, such as the carrier-class 50ms switching performance cannot be met.
发明内容Summary of the invention
本发明实施例的主要目的在于提出一种网络路径切换方法和装置,旨在解决单板处于离线状态时,网络路径的切换速度慢的技术问题。The main purpose of the embodiment of the present invention is to provide a network path switching method and device, which is to solve the technical problem that the switching speed of the network path is slow when the board is in an offline state.
为实现上述目的,本发明实施例提供的一种网络路径切换方法,所述网络路径切换方法包括以下步骤:To achieve the above objective, a network path switching method provided by an embodiment of the present invention includes the following steps:
在接收到主控发送的离线信息时,在线单板基于所述离线信息获取对应的槽位信息;After receiving the offline information sent by the master, the online board obtains the corresponding slot information based on the offline information.
所述在线单板获取所述槽位信息对应的双向转发检测信息; Obtaining, by the online board, the bidirectional forwarding detection information corresponding to the slot information;
根据预设的双向转发检测信息与网络路径标识的映射关系,所述在线单板获取确定的双向转发检测信息对应的网络路径标识;And obtaining, by the online board, the network path identifier corresponding to the determined bidirectional forwarding detection information, according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier;
所述在线单板将所述离线单板当前网络路径切换到所述网络路径标识对应的网络路径中。The online board switches the current network path of the offline board to the network path corresponding to the network path identifier.
优选地,当获取的所述网络路径标识包括多个时,所述在线单板将所述离线单板当前网络路径切换到所述网络路径标识对应的网络路径中的步骤包括:Preferably, when the obtained network path identifier includes multiple, the step of the online board switching the current network path of the offline board to the network path corresponding to the network path identifier includes:
所述在线单板确定各个网络路径标识对应的网络路径的优先级;Determining, by the online board, a priority of a network path corresponding to each network path identifier;
所述在线单板将所述离线单板当前网络路径切换到优先级高的网络路径中。The online board switches the current network path of the offline board to a network path with a high priority.
优选地,所述在接收到主控发送的离线信息时,在线单板基于所述离线信息获取对应的槽位信息的步骤之前,所述网络路径切换方法包括:Preferably, before the step of obtaining the corresponding slot information based on the offline information, the network path switching method includes:
所述终端在初始化时,触发离线信息接收指令以进入离线信息接收模式;When the terminal initializes, triggering an offline information receiving instruction to enter an offline information receiving mode;
或者在接收到用户输入的离线信息接收指令时,所述终端进入离线信息接收模式。Or when receiving an offline information receiving instruction input by the user, the terminal enters an offline information receiving mode.
优选地,所述在接收到主控发送的离线信息时,在线单板基于所述离线信息获取对应的槽位信息的步骤之前,所述网络路径切换方法包括:Preferably, before the step of obtaining the corresponding slot information based on the offline information, the network path switching method includes:
所述在线单板接收所述主控发送的其所在的路由设备中所有单板的双向转发检测信息;The online board receives the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
所述在线单板存储接收到的所述双向转发检测信息。The online board stores the received bidirectional forwarding detection information.
优选地,所述双向转发检测信息由所述主控在所述双向转发检测信息更新时发送至所述在线单板。Preferably, the bidirectional forwarding detection information is sent by the main control to the online board when the bidirectional forwarding detection information is updated.
此外,为实现上述目的,本发明实施例还提出一种网络路径切换装置,所述网络路径切换装置包括:In addition, in order to achieve the above object, the embodiment of the present invention further provides a network path switching apparatus, where the network path switching apparatus includes:
获取模块,设置为在接收到主控发送的离线信息时,基于所述离线信息获取对应的槽位信息; Obtaining a module, configured to acquire corresponding slot information based on the offline information when receiving the offline information sent by the master;
所述获取模块,还设置为获取所述槽位信息对应的双向转发检测信息;The acquiring module is further configured to acquire bidirectional forwarding detection information corresponding to the slot information;
所述获取模块,还设置为根据预设的双向转发检测信息与网络路径标识的映射关系,获取确定的双向转发检测信息对应的网络路径标识;The acquiring module is further configured to: obtain a network path identifier corresponding to the determined bidirectional forwarding detection information according to a mapping relationship between the preset bidirectional forwarding detection information and the network path identifier;
切换模块,设置为将所述离线单板当前网络路径切换到所述网络路径标识对应的网络路径中。The switching module is configured to switch the current network path of the offline board to the network path corresponding to the network path identifier.
优选地,当获取的所述网络路径标识包括多个时,所述切换模块包括:Preferably, when the acquired network path identifier includes multiple, the switching module includes:
确定单元,设置为确定各个网络路径标识对应的网络路径的优先级;a determining unit, configured to determine a priority of a network path corresponding to each network path identifier;
切换单元,设置为将所述离线单板当前网络路径切换到优先级高的网络路径中。The switching unit is configured to switch the current network path of the offline board to a network path with a high priority.
优选地,所述网络路径切换装置还包括:Preferably, the network path switching device further includes:
预处理模块,设置为在初始化时,触发离线信息接收指令以进入离线信息接收模式;或者在接收到用户输入的离线信息接收指令时,进入离线信息接收模式。The pre-processing module is configured to trigger an offline information receiving instruction to enter an offline information receiving mode during initialization, or enter an offline information receiving mode upon receiving an offline information receiving instruction input by the user.
优选地,所述网络路径切换装置还包括:Preferably, the network path switching device further includes:
接收模块,设置为接收所述主控发送的其所在的路由设备中所有单板的双向转发检测信息;The receiving module is configured to receive the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
存储模块,设置为存储接收到的所述双向转发检测信息。And a storage module, configured to store the received bidirectional forwarding detection information.
优选地,所述双向转发检测信息由所述主控在所述双向转发检测信息更新时发送至所述接收模块。Preferably, the bidirectional forwarding detection information is sent by the main control to the receiving module when the bidirectional forwarding detection information is updated.
本发明实施例提出的网络路径切换方法和装置,在线单板先根据获取的槽位信息,获取所述槽位信息对应的双向转发检测信息,然后根据所述双向转发检测信息获取对应的网络路径标识,并直接将所述离线单板的当前网络路径切换到获取的所述网络路径标识对应的网络路径中,实现了单板离线时,其它在线单板可以先获取离线单板的槽位信息,并根据具体的处理操作将离线单板当前的网络路径切换到获取的网络路径标识对应的网络路径中,而不是在单板离线时,只能通过主控将离线单板的网络路径 切换至在线单板,从而提高了网络路径的切换速度。According to the network path switching method and device of the embodiment of the present invention, the online board obtains the bidirectional forwarding detection information corresponding to the slot information according to the acquired slot information, and then obtains the corresponding network path according to the bidirectional forwarding detection information. Identifying and directly switching the current network path of the offline board to the network path corresponding to the obtained network path identifier. When the board is offline, the other online boards can obtain the slot information of the offline board. And, according to the specific processing operation, the current network path of the offline board is switched to the network path corresponding to the obtained network path identifier, and the network path of the offline board can only be controlled by the master when the board is offline. Switch to the online board to improve the switching speed of the network path.
附图说明DRAWINGS
图1为本发明网络路径切换方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a network path switching method according to the present invention;
图2为本发明网络路径切换方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a network path switching method according to the present invention;
图3为本发明网络路径切换方法第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a network path switching method according to the present invention;
图4为本发明网络路径切换方法第四实施例的流程示意图;4 is a schematic flowchart of a fourth embodiment of a network path switching method according to the present invention;
图5为本发明网络路径切换装置第一实施例的功能模块示意图;FIG. 5 is a schematic diagram of functional modules of a first embodiment of a network path switching apparatus according to the present invention; FIG.
图6为本发明网络路径切换装置第二实施例的功能模块示意图;6 is a schematic diagram of functional modules of a second embodiment of a network path switching apparatus according to the present invention;
图7为本发明网络路径切换装置第三实施例的功能模块示意图。FIG. 7 is a schematic diagram of functional modules of a third embodiment of a network path switching apparatus according to the present invention.
图8为本发明网络路径切换装置第四实施例的功能模块示意图。FIG. 8 is a schematic diagram of functional modules of a fourth embodiment of a network path switching apparatus according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种网络路径切换方法。The invention provides a network path switching method.
参照图1,图1为本发明网络路径切换方法第一实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of a network path switching method according to the present invention.
本实施例提出一种网络路径切换方法,所述网络路径切换方法包括:This embodiment provides a network path switching method, where the network path switching method includes:
步骤S10,在接收到主控发送的离线信息时,在线单板基于所述离线信息获取对应的槽位信息;In step S10, the online board obtains the corresponding slot information based on the offline information when receiving the offline information sent by the master.
在本实施例中,所述在线单板接收到主控发送的离线信息的方式包括所述在线单板接收主控广播的离线信息,然后基于所述离线信息获取对应的槽位信息,或者所述在线单板接收主控发送给所述在线单板预设位置(如在线单板的预设接收点)的离线信息,然后基于所述离线信息获取对应的槽位信息。可以理解的是,可事先预设主控实时检测各个单板的运行 状态,当所述主控检测到单板不在位时,即可判定所述单板离线,然后获取离线单板的槽位信息,并进一步获取所述离线线卡的其它标识信息,将获取的所述槽位信息以及所述其它标识信息一起作为离线信息通过广播等方式发送到其它各个在线单板,以供所述在线单板接收主控发送的离线信息时,提取对应的槽位信息。本发明实施例中,所述在线线卡仅接收同一个路由设备中主控发送的离线信息。所述离线信息优选包括离线单板对应的槽位信息以及所述离线线卡的标识信息,双向转发检测标识符等。In this embodiment, the manner in which the online board receives the offline information sent by the master control unit includes: receiving, by the online board, the offline information of the master broadcast, and then acquiring the corresponding slot information based on the offline information, or The online board receives offline information that is sent by the master to the preset position of the online board, such as a preset receiving point of the online board, and then obtains corresponding slot information based on the offline information. It can be understood that the main control can be preset to detect the running of each board in real time. In the state, when the master detects that the board is not in the position, the board can be determined to be offline, and then the slot information of the offline board is obtained, and other identifier information of the offline line card is further obtained, and the obtained information is obtained. The slot information and the other identifier information are sent to the other online boards as the offline information, and the corresponding slot information is extracted when the online board receives the offline information sent by the master. In the embodiment of the present invention, the online line card only receives offline information sent by the master in the same routing device. The offline information preferably includes slot information corresponding to the offline board, identification information of the offline line card, bidirectional forwarding detection identifier, and the like.
步骤S20,所述在线单板获取所述槽位信息对应的双向转发检测信息;Step S20, the online board acquires bidirectional forwarding detection information corresponding to the slot information.
在本实施例中,每一个单板都会存储同一台路由设备中的所有单板的双向转发检测信息,根据上述实施例可知,双向转发检测信息包含各个单板对应的槽位信息以及双向转发检测标识符,由于所述槽位信息以及双向转发检测信息中都包含单板的槽位号,则所述在线单板在获取到所述槽位信息时,即可根据预设的双向转发检测信息查询与所述槽位信息的槽位号匹配的双向转发检测信息,以获取对应的双向转发检测信息,所述查询方式优选所述在线单板遍历预设的各个双向转发检测信息,即所述在线单板将所述槽位信息与预设的双向转发检测信息进行比对,在检测槽位号与所述接收到的槽位信息的槽位号匹配的双向转发检测信息时,确定匹配的双向转发检测信息并获取所述匹配的双向转发检测信息。In this embodiment, each board stores the bidirectional forwarding detection information of all the boards in the same routing device. According to the foregoing embodiment, the bidirectional forwarding detection information includes slot information corresponding to each board and bidirectional forwarding detection. The identifier, if the slot information and the bidirectional forwarding detection information both contain the slot number of the board, when the online board obtains the slot information, the online board can forward the detection information according to the preset bidirectional information. Querying the two-way forwarding detection information that matches the slot number of the slot information to obtain the corresponding two-way forwarding detection information, where the query mode is preferred for the online board to traverse the preset two-way forwarding detection information, that is, the The online board compares the slot information with the preset bidirectional forwarding detection information, and determines the matching when detecting the bidirectional forwarding detection information that matches the slot number of the received slot information. The detection information is bidirectionally forwarded and the matched bidirectional forwarding detection information is obtained.
在本实施例中,可预设各个单板的槽位信息对应多个双向转发检测信息,而各个单板对应的槽位信息不一样,那么当所述在线单板获取到的槽位信息时,则可根据所述槽位信息获取对应的双向转发检测信息,如果一个槽位信息包括多个双向转发检测信息,则所述在线单板可获取对应的多个双向转发检测信息。进一步地,所述在线单板还可同时接收不同离线单板的槽位信息,并在获取到不同离线单板对应的槽位信息时,同样根据预设的双向转发检测信息,获取各个不同单板的槽位信息对应的双向转发检测信息。In this embodiment, the slot information of each board can be preset to correspond to multiple bidirectional forwarding detection information, and the slot information corresponding to each board is different, then when the slot information acquired by the online board is obtained, And obtaining the corresponding bidirectional forwarding detection information according to the slot information. If the slot information includes multiple bidirectional forwarding detection information, the online board may obtain corresponding multiple bidirectional forwarding detection information. Further, the online board can also receive the slot information of the different offline boards at the same time, and obtain the slot information corresponding to the different offline boards, and obtain the different orders according to the preset bidirectional forwarding detection information. The bidirectional forwarding detection information corresponding to the slot information of the board.
步骤S30,根据预设的双向转发检测信息与网络路径标识的映射关系,所述在线单板获取确定的双向转发检测信息对应的网络路径标识; Step S30: The online board obtains the network path identifier corresponding to the determined bidirectional forwarding detection information according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier.
在本实施例中,根据预设的双向转发检测信息与网络路径标识的映射关系,所述在线单板确定所述双向转发检测信息对应的网络路径标识,即所述在线单板遍历网络路径标识,当存在与所述双向转发检测信息匹配的网络路径标识且所述网络路径标识是其它在线单板的对应的网络路径标识时,获取所述确定的网络路径的标识,进一步地,当所述槽位信息对应的双向转发检测信息包括多个双向转发检测信息时,所述在线单板获取各个双向转发检测信息对应的网络路径标识,即所述在线单板获取的网络路径包括多条。In this embodiment, the online board determines the network path identifier corresponding to the bidirectional forwarding detection information according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier, that is, the online board traverses the network path identifier. Obtaining the identifier of the determined network path when there is a network path identifier that matches the two-way forwarding detection information and the network path identifier is a corresponding network path identifier of another online board, and further, when When the bidirectional forwarding detection information corresponding to the slot information includes multiple bidirectional forwarding detection information, the online board obtains the network path identifier corresponding to each bidirectional forwarding detection information, that is, the network path acquired by the online board includes multiple pieces.
在本实施例中,事先对各个网络路径都部署了相应的双向转发检测信息,不同的网络路径,对应不同的双向转发检测信息,所述网络路径优选包括PW层(伪线层)网络路径、隧道层网络路径、链路层网络路径。各条网络路径都包含对应的网络路径标识信息,并且所述网络路径与所述网络路径标识信息关联存储。进一步地,有时为了业务的稳定还会部署多级保护的嵌套,比如PW FRR(伪线层快速重路由)嵌套TE FRR(流量工程快速重路由,一种保护技术),也就是说,为了能够快速感知网络路径的异常,会针对不同层次的保护路径来部署相应层次的双向转发检测信息,以实现快速切换到预设的网络路径。同时,所述网络路径部署的双向转发检测信息是唯一存在的,即一个网络路径对应一个双向转发检测信息。所述部署的网络路径包括:一个路由设备中的各个单板都可部署一条网络路径或多条网络路径,每条网络路径都会配置唯一的双向转发检测信息,进一步地,每个路由设备中的各个单板的内外层还可部署内层网络路径和外层网络路径,所述内层网络路径和外层网络路径在单板中的主用端口信息是一样的,但不同层次的保护端口可以是不同的,所以关联不同的双向转发检测信息可以做到不误切,即在接收到确定的槽位信息时,可根据槽位信息提取出双向转发检测信息,并根据所述双向转发检测信息可确定出网络路径,而不会因为同一个单板的内外层网络路径而造成误切换,提高了切换的精确性。In this embodiment, corresponding bidirectional forwarding detection information is deployed on each network path in advance, and different network paths correspond to different bidirectional forwarding detection information, and the network path preferably includes a PW layer (pseudo line layer) network path, Tunnel layer network path, link layer network path. Each network path includes corresponding network path identification information, and the network path is stored in association with the network path identification information. Further, sometimes nesting of multiple levels of protection is deployed for the stability of the service, such as PW FRR (pseudo-layer layer fast re-routing) nested TE FRR (traffic engineering fast re-routing, a protection technology), that is, In order to quickly detect the abnormality of the network path, the corresponding level of bidirectional forwarding detection information is deployed for different levels of protection paths, so as to quickly switch to the preset network path. At the same time, the bidirectional forwarding detection information of the network path deployment is unique, that is, one network path corresponds to one bidirectional forwarding detection information. The deployed network path includes: one network path or multiple network paths can be deployed on each board in a routing device, and each network path is configured with unique bidirectional forwarding detection information, and further, in each routing device The inner and outer layers of each board may also be configured with an inner network path and an outer network path. The inner network path and the outer network path have the same primary port information in the board, but different levels of protection ports may be used. Different from each other, the two-way forwarding detection information associated with each other can be misinterpreted, that is, when the determined slot information is received, the bidirectional forwarding detection information can be extracted according to the slot information, and the detection information is forwarded according to the bidirectional forwarding information. The network path can be determined without mis-switching due to the inner and outer network paths of the same board, which improves the accuracy of the handover.
步骤S40,所述在线单板将所述离线单板当前网络路径切换到获取的 所述网络路径标识对应的网络路径中。Step S40, the online board switches the current network path of the offline board to the obtained The network path identifies the corresponding network path.
在本实施例中,优选所述网络路径为所述离线单板的保护网络路径或者备份的网络路径,即双向转发检测信息对应的网络路径标识预设部署了主用路径和备用路径,在主用路径故障时,所述在线单板切换到备用路径中。In this embodiment, the network path is a protection network path or a backup network path of the offline board, that is, the network path identifier corresponding to the bidirectional forwarding detection information is configured by using a primary path and an alternate path. When the path is faulty, the online board is switched to the standby path.
在本实施例中,所述步骤S40的实施方式包括:In this embodiment, the implementation manner of step S40 includes:
1)方式一、当所述槽位信息对应的双向转发检测信息为一个双向转发检测信息时,此时,所述在线单板仅获取到一个网络路径标识,然后,所述在线单板将所述离线单板当前网络路径切换到获取的所述网络路径标识对应的网络路径中。1) In the first mode, when the bidirectional forwarding detection information corresponding to the slot information is a bidirectional forwarding detection information, the online board obtains only one network path identifier, and then the online board is located. The current network path of the offline board is switched to the network path corresponding to the obtained network path identifier.
2)方式二、当所述在线单板获取到的离线单板对应的槽位信息包括多个离线单板的槽位信息时,此时,根据所述槽位信息对应的双向转发检测信息,所述在线单板获取的网络路径标识包括多个网络标识,可以理解的是,各个网络标识对应各个双向转发检测信息,则所述在线单板将所述离线单板当前网络路径切换到获取的所述网络路径标识对应的网络路径中的步骤包括:所述在线单板确定各个双向转发检测信息对应的网络路径标识;然后,根据各个网络路径标识,将各个离线单板切换到对应的网络路径标识对应的网络路径中。2) In the second step, when the slot information corresponding to the offline board obtained by the online board includes the slot information of the multiple offline boards, at this time, according to the bidirectional forwarding detection information corresponding to the slot information, The network path identifier obtained by the online board includes multiple network identifiers. It can be understood that each network identifier corresponds to each two-way forwarding detection information, and the online board switches the current network path of the offline board to the obtained network board. The step of the network path corresponding to the network path includes: determining, by the online board, a network path identifier corresponding to each bidirectional forwarding detection information; and then, switching each offline board to a corresponding network path according to each network path identifier. Identify the corresponding network path.
3)方式三、当所述槽位信息对应的双向转发检测信息为多个双向转发检测信息时,如事先在单板部署了多条网络路径时,由上述实施例可知,一个槽位信息对应多个双向转发检测信息,所述多条网络路径包括多条同一层次的网络路径,或者是不同层次的网络路径(如同一个单板部署的内层网络路径和外层网络路径),可以理解的是,当所述网络路径包括多层次的网络路径时,如包括隧道层网络路径和链路层网络路径时,根据两个网络路径预设不同的双向转发检测信息,在接收到离线单板的槽位信息时,在线单板可通过遍历预设的双向转发检测信息,根据双向转发检测信息对应的网络路径标识,获取确定的双向转发检测信息对应的网络路径标识,并将所述离线单板当前的网络路径切换到获取的网络路径标识对应的 网络路径中。传统的切换方式中,在单板离线时,在线单板通过获取离线单板的网络路径标识,直接将离线单板当前的网络路径切换到获取的网络路径标识对应的网络路径中,而这种切换方式存在一个弊端,当离线单板的网络路径包括不同层次的网络路径时,可能造成不同层次的网络路径都切换的情况,从而造成网络路径的误切换。而本实施例中,根据不同层次的网络路径配置不同的双向转发检测信息,在线单板在接收到所述离线单板的槽位信息时,通过获取所述槽位信息对应的双向转发检测信息时,即可确定是哪个层次的网络路径进行切换,从而提高了网络路径切换的准确性。3) In the third embodiment, when the bidirectional forwarding detection information corresponding to the slot information is multiple bidirectional forwarding detection information, if multiple network paths are deployed on the board in advance, it can be known from the foregoing embodiment that one slot information corresponds to The plurality of network paths are forwarded in a plurality of directions, and the plurality of network paths include a plurality of network paths of the same level, or different network paths (such as an inner network path and an outer network path deployed by a single board), which is understandable. When the network path includes a multi-layer network path, such as a tunnel layer network path and a link layer network path, different bidirectional forwarding detection information is preset according to the two network paths, and the offline board is received. In the slot information, the online board can traverse the preset bidirectional forwarding detection information, obtain the network path identifier corresponding to the determined bidirectional forwarding detection information, and obtain the offline board according to the network path identifier corresponding to the bidirectional forwarding detection information. The current network path is switched to the corresponding network path identifier. In the network path. In the traditional switching mode, when the board is offline, the online board obtains the network path identifier of the offline board, and directly switches the current network path of the offline board to the network path corresponding to the obtained network path identifier. There is a drawback in the switching mode. When the network path of the offline board includes different levels of network paths, the network paths of different levels may be switched, resulting in incorrect switching of the network path. In this embodiment, different bidirectional forwarding detection information is configured according to the network path of different levels, and the online board obtains the bidirectional forwarding detection information corresponding to the slot information when receiving the slot information of the offline board. At that time, it is possible to determine which level of the network path to switch, thereby improving the accuracy of the network path switching.
本实施例提出的网络路径切换方法,在线单板先根据获取的槽位信息,获取所述槽位信息对应的双向转发检测信息,然后根据所述双向转发检测信息获取对应的网络路径标识,并直接将所述离线单板的当前网络路径切换到获取的所述网络路径标识对应的网络切换路径中,实现了单板离线时,其它在线单板可以先获取离线单板的槽位信息,并根据具体的处理操作将离线单板当前的网络路径切换到获取的网络路径标识对应的网络切换路径中,而不是在单板离线时,只能通过主控将离线单板的网络路径切换至在线单板,从而提高了网络路径的切换速度。In the network path switching method, the online board obtains the bidirectional forwarding detection information corresponding to the slot information according to the obtained slot information, and then obtains the corresponding network path identifier according to the bidirectional forwarding detection information, and The current network path of the offline board is directly switched to the network switching path corresponding to the obtained network path identifier. When the board is offline, the other online boards can obtain the slot information of the offline board. If the current network path of the offline board is switched to the network switching path corresponding to the obtained network path identifier, the network path of the offline board can be switched to online only through the master control. The board improves the switching speed of the network path.
进一步地,为了增加网络路径切换的智能性,基于第一实施例提出本发明网络路径切换方法的第二实施例,在本实施例中,参照图2,当获取的所述网络路径标识包括多个时,所述步骤S40包括:Further, in order to increase the intelligence of the network path switching, a second embodiment of the network path switching method of the present invention is proposed based on the first embodiment. In this embodiment, referring to FIG. 2, when the acquired network path identifier includes multiple The step S40 includes:
步骤S41,所述在线单板确定各个网络路径标识对应的网络路径的的优先级;Step S41: The online board determines a priority of a network path corresponding to each network path identifier.
步骤S42,所述在线单板将所述离线单板当前网络路径切换到优先级高的网络路径中。In step S42, the online board switches the current network path of the offline board to a network path with a high priority.
在本实施例中,当获取的所述网络路径标识包括多个时,表示离线单板能够切换的网络路径包括多个,即所述离线单板部署的保护路径包括多条,则所述在线单板优选比对各个获取的各个网络路径标识对应的网络路 径的优先级,所述优先级包括网络路径的网络负载情况或者是网络路径预设的优先级,当所述在线单板确定优先级高的网络路径时,则可将所述离线单板当前网络路径切换到优先级高的网络路径中。In this embodiment, when the obtained network path identifier includes multiple, the network path indicating that the offline board can be switched includes multiple, that is, the protection path of the offline board includes multiple, and the online The board preferably compares the network paths corresponding to the respective acquired network path identifiers. The priority of the path, the priority of the network path of the network path or the preset priority of the network path. When the online board determines the network path with a high priority, the current offline board can be The network path is switched to a network path with a high priority.
进一步地,为了增加网络路径切换的智能性,基于第一实施例提出本发明网络路径切换方法的第三实施例,在本实施例中,参照图3,所述步骤S10之前,所述网络路径切换方法包括:Further, in order to increase the intelligence of the network path switching, a third embodiment of the network path switching method of the present invention is proposed based on the first embodiment. In this embodiment, referring to FIG. 3, before the step S10, the network path The switching methods include:
步骤S50,所述终端在初始化时,触发离线信息接收指令以进入离线信息接收模式;或者在接收到用户输入的离线信息接收指令时,所述终端进入离线信息接收模式。Step S50, the terminal triggers an offline information receiving instruction to enter an offline information receiving mode when initializing, or enters an offline information receiving mode when receiving an offline information receiving instruction input by a user.
在本实施例中,优选所述在线单板在接收到离线信息接收指令时,所述在线单板启动预设的接收点,并进入离线信息接收模式;或者在初始化时先预设接收离线单板的模式,即在初始化时触发离线信息接收指令以进入离线信息接收模式。所述预设接收离线单板对应的离线信息接收模式的方式优选通过软件的方式实现,即在线单板在初始化时,先注册检测离线单板离线信息的感知事件,如在单板中配置一个接收点,所述配置的接收点仅用于接收主控发送的离线信息。可以理解的是,只接收主控发送的离线单板对应的离线信息,可以使在线单板快速响应切换过程,提高了网络路径的切换速度。或者在接收到用户触发的离线信息指令时,所述在线单板动预设的接收点,并进入离线信息接收模式。In this embodiment, when the online board receives the offline information receiving instruction, the online board starts a preset receiving point and enters an offline information receiving mode; or presets to receive an offline order during initialization. The mode of the board, that is, the offline information receiving instruction is triggered at the time of initialization to enter the offline information receiving mode. The method of receiving the offline information receiving mode corresponding to the offline board is preferably implemented in a software manner, that is, when the online board is initialized, the sensing event of the offline information of the offline board is first registered, for example, configuring one in the board. Receiving point, the configured receiving point is only used to receive offline information sent by the master. It can be understood that only the offline information corresponding to the offline board sent by the master can be received, so that the online board can quickly respond to the switching process and improve the switching speed of the network path. Or, when receiving the offline information command triggered by the user, the online board moves the preset receiving point and enters the offline information receiving mode.
进一步地,为了增加网络路径切换的智能性,基于第一实施例提出本发明网络路径切换方法的第四实施例,在本实施例中,参照图4,所述步骤S10之前,所述网络路径切换方法包括:Further, in order to increase the intelligence of the network path switching, a fourth embodiment of the network path switching method of the present invention is proposed based on the first embodiment. In this embodiment, referring to FIG. 4, before the step S10, the network path The switching methods include:
步骤S60,所述在线单板接收所述主控发送的其所在的路由设备中所有单板的双向转发检测信息;Step S60, the online board receives the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
在本实施例中,所述在线单板接收主控基于同一台路由设备中的各个单板与其它路由设备的单板之间的双向转发检测关系生成并发送的双向 转发检测信息。即路由设备中的各个单板与其它路由设备通过主控建立双向转发检测关系,所述主控建立各个单板与其它路由设备双向转发检测关系优选通过三次握手的方式建立双向转发检测关系,并且所述主控根据所述建立的双向转发检测关系生成双向转发检测信息并发送给在线单板。进一步地,所述双向转发检测信息优选采用HASH(哈希)管理方式配置主副HASH键值,即将所述双向转发检测信息的主副HASH键值分别设为双向转发检测标识符和单板槽位号信息,即用户可通过双向转发检测标识符和槽位号信息查询到对应的双向转发检测信息。In this embodiment, the online board receives the two-way forwarding detection relationship generated and sent by each board between the boards of the same routing device and the boards of other routing devices. Forward detection information. That is, each board in the routing device establishes a bidirectional forwarding detection relationship with the other routing devices through the master control, and the master control establishes a bidirectional forwarding detection relationship between each board and other routing devices, and preferably establishes a bidirectional forwarding detection relationship by using a three-way handshake manner, and The master generates bidirectional forwarding detection information according to the established bidirectional forwarding detection relationship and sends the information to the online board. Further, the bidirectional forwarding detection information is preferably configured by using a HASH (Hash) management manner to configure a primary and secondary HASH key value, that is, the primary and secondary HASH key values of the bidirectional forwarding detection information are respectively set to a bidirectional forwarding detection identifier and a single board slot. The bit number information, that is, the user can query the corresponding bidirectional forwarding detection information by using the bidirectional forwarding detection identifier and the slot number information.
步骤S70,所述在线单板存储接收到的所述双向转发检测信息。Step S70: The online board stores the received bidirectional forwarding detection information.
在本实施例中,所述在线单板接收到主控发送的双向转发检测信息时,保存所述接收到的双向转发检测信息,所述存储位置可在路由设备中各个单板预设的存储空间,或者是路由设备中预设的存储空间。In this embodiment, when the online board receives the bidirectional forwarding detection information sent by the master control, the received bidirectional forwarding detection information is saved, and the storage location may be preset storage on each board in the routing device. Space, or the default storage space in the routing device.
进一步地,为提高网络路径切换的灵活性,本实施例中,所述双向转发检测信息由所述主控在所述双向转发检测信息更新时发送至所述在线单板。即所述主控检测到同一台路由设备中的各个单板与其它路由设备中的单板之间建立了新的双向转发检测关系,根据新建立的双向转发检测关系生成新的双向转发检测信息,并将新生成的双向转发检测信息发送给在线单板,以供在线单板存储所述双向转发检测信息。Further, in order to improve the flexibility of the network path switching, in the embodiment, the bidirectional forwarding detection information is sent by the main control to the online board when the bidirectional forwarding detection information is updated. That is, the master detects that a new bidirectional forwarding detection relationship is established between each board in the same routing device and a board in another routing device, and generates new bidirectional forwarding detection information according to the newly established bidirectional forwarding detection relationship. And sending the newly generated bidirectional forwarding detection information to the online board, so that the online board stores the bidirectional forwarding detection information.
本发明进一步提供一种网络路径切换装置。The invention further provides a network path switching device.
参照图5,图5为本发明网络路径切换装置较佳实施例的功能模块示意图。Referring to FIG. 5, FIG. 5 is a schematic diagram of functional modules of a preferred embodiment of a network path switching apparatus according to the present invention.
需要强调的是,对本领域的技术人员来说,图5所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图5所示的网络路径切换装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该网络路径切换装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。 It should be emphasized that, for those skilled in the art, the functional module diagram shown in FIG. 5 is merely an exemplary diagram of a preferred embodiment, and those skilled in the art will surround the functional modules of the network path switching apparatus shown in FIG. The new function modules can be easily supplemented; the names of the function modules are custom names, which are only used to assist in understanding the various program function blocks of the network path switching device, and are not used to limit the technical solution of the present invention. The core is the function that each functional module of the defined name has to achieve.
本实施例提出一种网络路径切换装置,所述网络路径切换装置包括:The embodiment provides a network path switching device, where the network path switching device includes:
获取模块10,设置为在接收到主控发送的离线信息时,基于所述离线信息获取对应的槽位信息;The obtaining module 10 is configured to acquire corresponding slot information based on the offline information when receiving the offline information sent by the master;
在本实施例中,所述接收到主控发送的离线信息的方式包括接收主控广播的离线信息,然后所述获取模块10基于所述离线信息获取对应的槽位信息,或者接收主控发送给所述获取模块10预设位置(如获取模块10的预设接收点)的离线信息,然后所述获取模块10基于所述离线信息获取对应的槽位信息。可以理解的是,可事先预设主控实时检测各个单板的运行状态,当所述主控检测到单板不在位时,即可判定所述单板离线,然后获取离线单板的槽位信息,并进一步获取所述离线线卡的其它标识信息,将获取的所述槽位信息以及所述其它标识信息一起作为离线信息通过广播等方式发送到其它各个获取模块10,以供所述获取模块10接收主控发送的离线信息时,提取对应的槽位信息。本发明实施例中,所述获取模块10仅接收同一个路由设备中主控发送的离线信息。所述离线信息优选包括离线单板对应的槽位信息以及所述离线线卡的标识信息,双向转发检测标识符等。In this embodiment, the manner of receiving the offline information sent by the master control includes receiving the offline information of the master broadcast, and then the acquiring module 10 acquires the corresponding slot information based on the offline information, or receives the master control transmission. The offline information of the location of the acquisition module 10 (such as the preset receiving point of the acquisition module 10) is obtained, and then the acquisition module 10 acquires the corresponding slot information based on the offline information. It can be understood that the main control can detect the running status of each board in real time. When the main control detects that the board is not in the position, the board can be determined to be offline, and then the slot of the offline board is obtained. And obtaining the other identification information of the offline line card, and sending the acquired slot information and the other identifier information together as offline information to other acquiring modules 10 for the foregoing manner. When receiving the offline information sent by the master, the module 10 extracts the corresponding slot information. In the embodiment of the present invention, the acquiring module 10 only receives offline information that is sent by the master in the same routing device. The offline information preferably includes slot information corresponding to the offline board, identification information of the offline line card, bidirectional forwarding detection identifier, and the like.
所述获取模块10,还设置为获取所述槽位信息对应的双向转发检测信息;The acquiring module 10 is further configured to acquire bidirectional forwarding detection information corresponding to the slot information.
在本实施例中,每一个单板都会存储同一台路由设备中所有单板的双向转发检测信息,根据上述实施例可知,双向转发检测信息包含各个单板对应的槽位信息以及双向转发检测标识符,由于所述槽位信息以及双向转发检测信息中都包含单板的槽位号,则所述获取模块10在获取到所述槽位信息时,即可根据预设的双向转发检测信息查询与所述槽位信息的槽位号匹配的双向转发检测信息,以获取对应的双向转发检测信息,所述查询方式优选所述获取模块10遍历预设的各个双向转发检测信息,即所述获取模块10将所述槽位信息与预设的双向转发检测信息进行比对,在检测槽位号与所述接收到的槽位信息的槽位号匹配的双向转发检测信息时,确定匹配的双向转发检测信息并获取所述匹配的双向转发检测信息。 In this embodiment, each board stores the bidirectional forwarding detection information of all the boards in the same routing device. According to the foregoing embodiment, the bidirectional forwarding detection information includes the slot information corresponding to each board and the bidirectional forwarding detection identifier. If the slot information and the bidirectional forwarding detection information include the slot number of the board, the acquiring module 10 may query the preset bidirectional forwarding detection information when the slot information is obtained. And the bidirectional forwarding detection information that is matched with the slot number of the slot information to obtain the corresponding bidirectional forwarding detection information, where the obtaining manner is that the obtaining module 10 traverses the preset bidirectional forwarding detection information, that is, the obtaining The module 10 compares the slot information with the preset bidirectional forwarding detection information, and determines the matching two-way when detecting the bidirectional forwarding detection information that matches the slot number of the received slot information. Forwarding the detection information and obtaining the matched bidirectional forwarding detection information.
在本实施例中,可预设各个单板的槽位信息对应多个双向转发检测信息,而各个单板对应的槽位信息不一样,那么当所述获取模块10获取到的槽位信息时,则可根据所述槽位信息获取对应的双向转发检测信息,如果一个槽位信息包括多个双向转发检测信息,则所述获取模块10可获取对应的多个双向转发检测信息。进一步地,所述获取模块10还可同时接收不同离线单板的槽位信息,并在获取到不同离线单板对应的槽位信息时,同样根据预设的双向转发检测信息,获取各个不同单板的槽位信息对应的双向转发检测信息。In this embodiment, the slot information of each board may be preset to correspond to multiple bidirectional forwarding detection information, and the slot information corresponding to each board is different, then when the acquiring module 10 obtains the slot information, And obtaining the corresponding bidirectional forwarding detection information according to the slot information. If the slot information includes multiple bidirectional forwarding detection information, the acquiring module 10 may obtain corresponding multiple bidirectional forwarding detection information. Further, the acquiring module 10 can also receive slot information of different offline boards at the same time, and obtain the slot information corresponding to different offline boards, and obtain different single orders according to the preset bidirectional forwarding detection information. The bidirectional forwarding detection information corresponding to the slot information of the board.
所述获取模块10,还设置为根据预设的双向转发检测信息与网络路径标识的映射关系,获取确定的双向转发检测信息对应的网络路径标识;The obtaining module 10 is further configured to obtain a network path identifier corresponding to the determined bidirectional forwarding detection information according to a mapping relationship between the preset bidirectional forwarding detection information and the network path identifier;
在本实施例中,根据预设的双向转发检测信息与网络路径标识的映射关系,先确定所述双向转发检测信息对应的网络路径标识,即所述获取模块10遍历网络路径标识,当存在与所述双向转发检测信息匹配的网络路径标识且所述网络路径标识是其它在线单板的对应的网络路径标识时,获取所述确定的网络路径的标识,进一步地,当所述槽位信息对应的双向转发检测信息包括多个双向转发检测信息时,所述获取模块10获取各个双向转发检测信息对应的网络路径标识,即所述获取模块10获取的网络路径包括多条。In this embodiment, the network path identifier corresponding to the bidirectional forwarding detection information is determined according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier, that is, the obtaining module 10 traverses the network path identifier, when And obtaining the identifier of the determined network path when the network path identifier of the two-way forwarding detection information is matched, and the network path identifier is a corresponding network path identifier of another online board, and further, when the slot information is corresponding to When the bidirectional forwarding detection information includes a plurality of bidirectional forwarding detection information, the obtaining module 10 acquires the network path identifier corresponding to each bidirectional forwarding detection information, that is, the network path acquired by the obtaining module 10 includes multiple pieces.
在本实施例中,事先对各个网络路径都部署了相应的双向转发检测信息,不同的网络路径,对应不同的双向转发检测信息,所述网络路径优选包括PW(伪线层)层网络路径、隧道层网络路径、链路层网络路径。各条网络路径都包含对应的网络路径标识信息,并且所述网络路径与所述网络路径标识信息关联存储。进一步地,有时为了业务的稳定还会部署多级保护的嵌套,比如PW FRR(伪线层快速重路由)嵌套TE FRR(流量工程快速重路由,一种保护技术),也就是说,为了能够快速感知网络路径的异常,会针对不同层次的保护路径来部署相应层次的双向转发检测信息,以实现快速切换到预设的网络路径。同时,所述网络路径部署的双向转发检测信息是唯一存在的,即一个网络路径对应一个双向转发检测信 息。所述部署的网络路径包括:一个路由设备中的各个单板都可部署一条网络路径或多条网络路径,每条网络路径都会配置唯一的双向转发检测信息,进一步地,每个路由设备中的各个单板的内外层还可部署内层网络路径和外层网络路径,所述内层网络路径和外层网络路径在单板中的主用端口信息是一样的,但不同层次的保护端口可以是不同的,所以关联不同的双向转发检测信息可以做到不误切,即在接收到确定的槽位信息时,可根据槽位信息提取出双向转发检测信息,并根据所述双向转发检测信息可确定出网络路径,而不会因为同一个单板的内外层网络路径而造成误切换,提高了切换的精确性。In this embodiment, corresponding bidirectional forwarding detection information is deployed to each network path in advance, and different network paths correspond to different bidirectional forwarding detection information, and the network path preferably includes a PW (pseudo-layer layer) layer network path, Tunnel layer network path, link layer network path. Each network path includes corresponding network path identification information, and the network path is stored in association with the network path identification information. Further, sometimes nesting of multiple levels of protection is deployed for the stability of the service, such as PW FRR (pseudo-layer layer fast re-routing) nested TE FRR (traffic engineering fast re-routing, a protection technology), that is, In order to quickly detect the abnormality of the network path, the corresponding level of bidirectional forwarding detection information is deployed for different levels of protection paths, so as to quickly switch to the preset network path. At the same time, the bidirectional forwarding detection information of the network path deployment is unique, that is, one network path corresponds to one bidirectional forwarding detection signal. interest. The deployed network path includes: one network path or multiple network paths can be deployed on each board in a routing device, and each network path is configured with unique bidirectional forwarding detection information, and further, in each routing device The inner and outer layers of each board may also be configured with an inner network path and an outer network path. The inner network path and the outer network path have the same primary port information in the board, but different levels of protection ports may be used. Different from each other, the two-way forwarding detection information associated with each other can be misinterpreted, that is, when the determined slot information is received, the bidirectional forwarding detection information can be extracted according to the slot information, and the detection information is forwarded according to the bidirectional forwarding information. The network path can be determined without mis-switching due to the inner and outer network paths of the same board, which improves the accuracy of the handover.
切换模块20,设置为将所述离线单板当前网络路径切换到所述网络路径标识对应的网络路径中。The switching module 20 is configured to switch the current network path of the offline board to the network path corresponding to the network path identifier.
在本实施例中,优选所述网络路径为所述离线单板的保护网络路径或者备份的网络路径,即双向转发检测信息对应的网络路径标识预设部署了主用路径和备用路径,在主用路径故障时,所述切换模块20切换到备用路径中。在本实施例中,所述切换模块20将所述离线单板当前网络路径切换到获取的所述网络路径标识所在在线单板对应的网络路径中的实施方式包括:In this embodiment, the network path is a protection network path or a backup network path of the offline board, that is, the network path identifier corresponding to the bidirectional forwarding detection information is configured by using a primary path and an alternate path. When the path fails, the switching module 20 switches to the alternate path. In this embodiment, the switching module 20 switches the current network path of the offline board to the network path corresponding to the obtained online path of the network board that is included in the network path.
1)方式一、当所述槽位信息对应的双向转发检测信息为一个双向转发检测信息时,此时,所述获取模块10仅获取到一个网络路径标识,然后,所述切换模块20将所述离线单板当前网络路径切换到获取的所述网络路径标识所对应的网络路径中。1) In the first mode, when the bidirectional forwarding detection information corresponding to the slot information is a bidirectional forwarding detection information, the acquiring module 10 obtains only one network path identifier, and then the switching module 20 The current network path of the offline board is switched to the network path corresponding to the acquired network path identifier.
2)方式二、当所述获取模块10获取到到的离线单板对应的槽位信息包括多个离线单板的槽位信息时,此时,根据所述槽位信息对应的双向转发检测信息,所述获取模块10获取的网络路径标识包括多个网络标识,可以理解的是,各个网络标识对应各个双向转发检测信息,则所述切换模块20将所述离线单板当前网络路径切换到获取的所述网络路径标识对应的网络路径中包括:先确定各个双向转发检测信息对应的网络路径标识;然后,所述切换模块20根据各个网络路径标识,将各个离线单板切换到 对应的网络路径标识对应的网络路径中。2) In the second mode, when the slot information corresponding to the offline board obtained by the obtaining module 10 includes the slot information of the multiple offline boards, the bidirectional forwarding detection information corresponding to the slot information is used. The network path identifier obtained by the obtaining module 10 includes multiple network identifiers. It can be understood that each network identifier corresponds to each two-way forwarding detection information, and the switching module 20 switches the current network path of the offline board to obtain The network path corresponding to the network path identifier includes: first determining a network path identifier corresponding to each bidirectional forwarding detection information; and then, the switching module 20 switches each offline board according to each network path identifier to The corresponding network path identifies the corresponding network path.
3)方式三、当所述槽位信息对应的双向转发检测信息为多个双向转发检测信息时,如事先在单板部署了多条网络路径时,由上述实施例可知,一个槽位信息对应多个双向转发检测信息,所述多条网络路径包括多条同一层次的网络路径,或者是不同层次的网络路径(如同一个单板部署的内层网络路径和外层网络路径),可以理解的是,当所述网络路径包括多层次的网络路径时,如包括隧道层网络路径和链路层网络路径时,根据两个网络路径预设不同的双向转发检测信息,在所述获取模块10获取到离线单板的槽位信息时,所述获取模块10可通过遍历预设的双向转发检测信息,根据双向转发检测信息对应的网络路径标识,获取确定的双向转发检测信息对应的网络路径标识,并且所述切换模块20将所述离线单板当前的网络路径切换到获取的网络路径标识对应的网络路径中。传统的切换方式中,在单板离线时,所述获取模块10通过获取离线单板的网络路径标识,所述切换模块20直接将离线单板当前的网络路径切换到获取的网络路径标识对应的网络路径中,而这种切换方式存在一个弊端,当离线单板的网络路径包括不同层次的网络路径时,可能造成不同层次的网络路径都切换的情况,从而造成网络路径的误切换。而本实施例中,根据不同层次的网络路径配置不同的双向转发检测信息,所述获取模块10在获取到所述离线单板的槽位信息时,通过获取所述槽位信息对应的双向转发检测信息时,即可确定是哪个层次的网络路径进行切换,从而提高了网络路径切换的准确性。3) In the third embodiment, when the bidirectional forwarding detection information corresponding to the slot information is multiple bidirectional forwarding detection information, if multiple network paths are deployed on the board in advance, it can be known from the foregoing embodiment that one slot information corresponds to The plurality of network paths are forwarded in a plurality of directions, and the plurality of network paths include a plurality of network paths of the same level, or different network paths (such as an inner network path and an outer network path deployed by a single board), which is understandable. When the network path includes a multi-layer network path, such as a tunnel layer network path and a link layer network path, different bidirectional forwarding detection information is preset according to the two network paths, and the acquiring module 10 obtains When the information about the slot of the offline board is obtained, the acquiring module 10 may obtain the network path identifier corresponding to the determined bidirectional forwarding detection information according to the network path identifier corresponding to the bidirectional forwarding detection information by traversing the preset bidirectional forwarding detection information. And the switching module 20 switches the current network path of the offline board to the network corresponding to the acquired network path identifier. In the network path. In the traditional switching mode, when the board is offline, the acquiring module 10 obtains the network path identifier of the offline board, and the switching module 20 directly switches the current network path of the offline board to the corresponding network path identifier. In the network path, this type of switching has a drawback. When the network path of the offline board includes different levels of network paths, different levels of network paths may be switched, resulting in incorrect switching of the network path. In this embodiment, different bidirectional forwarding detection information is configured according to different levels of network paths, and the obtaining module 10 obtains bidirectional forwarding corresponding to the slot information when acquiring the slot information of the offline board. When detecting information, it can determine which level of network path to switch, thereby improving the accuracy of network path switching.
本实施例提出的网络路径切换装置,在线单板先根据获取的槽位信息,获取所述槽位信息对应的双向转发检测信息,然后根据所述双向转发检测信息获取对应的网络路径标识,并直接将所述离线单板的当前网络路径切换到获取的所述网络路径标识对应的网络切换路径中,实现了单板离线时,其它在线单板可以先获取离线单板的槽位信息,并根据具体的处理操作将离线单板当前的网络路径切换到获取的网络路径标识对应的网络切换路径中,而不是在单板离线时,只能通过主控将离线单板的网络路径 切换至在线单板,从而提高了网络路径的切换速度。In the network path switching device of the present embodiment, the online board obtains the bidirectional forwarding detection information corresponding to the slot information according to the acquired slot information, and then obtains the corresponding network path identifier according to the bidirectional forwarding detection information, and The current network path of the offline board is directly switched to the network switching path corresponding to the obtained network path identifier. When the board is offline, the other online boards can obtain the slot information of the offline board. If the current network path of the offline board is switched to the network switching path corresponding to the obtained network path identifier, the network path of the offline board can only be controlled by the master. Switch to the online board to improve the switching speed of the network path.
进一步地,为了增加网络路径切换的智能性,基于第一实施例提出本发明网络路径切换装置的第二实施例,在本实施例中,参照图6,当获取的所述网络路径标识包括多个时,所述切换模块20包括:Further, in order to increase the intelligence of the network path switching, a second embodiment of the network path switching apparatus of the present invention is proposed based on the first embodiment. In this embodiment, referring to FIG. 6, when the acquired network path identifier includes multiple The switching module 20 includes:
确定单元21,设置为确定各个网络路径标识对应的网络路径的优先级;The determining unit 21 is configured to determine a priority of the network path corresponding to each network path identifier;
切换单元22,设置为将所述离线单板当前网络路径切换到优先级高的网络路径中。The switching unit 22 is configured to switch the current network path of the offline board to a network path with a high priority.
在本实施例中,当获取的所述网络路径标识包括多个时,表示离线单板能够切换的网络路径包括多个,即所述离线单板部署的保护路径包括多条,则所述确定单元21优选比对各个获取的各个网络路径标识对应的网络路径的优先级,所述优先级包括网络路径的网络负载情况或者是网络路径预设的优先级,当所述确定单元21确定优先级高的网络路径时,所述切换单元22则可将所述离线单板当前网络路径切换到优先级高的网络路径中。In this embodiment, when the obtained network path identifier includes multiple, the network path indicating that the offline board can be switched includes multiple, that is, the protection path of the offline board includes multiple, then the determining The unit 21 preferably compares the priority of the network path corresponding to each acquired network path identifier, the priority includes a network load condition of the network path or a preset priority of the network path, and the determining unit 21 determines the priority. When the network path is high, the switching unit 22 can switch the current network path of the offline board to the network path with high priority.
进一步地,为了增加网络路径切换的智能性,基于第一实施例提出本发明网络路径切换装置的第三实施例,在本实施例中,参照图7,所述网络路径切换装置还包括:Further, in order to increase the intelligence of the network path switching, a third embodiment of the network path switching device of the present invention is proposed based on the first embodiment. In this embodiment, referring to FIG. 7, the network path switching device further includes:
预处理模块30,设置为在初始化时,触发离线信息接收指令以进入离线信息接收模式;或者在接收到用户输入的离线信息接收指令时,进入离线信息接收模式。The pre-processing module 30 is configured to trigger an offline information receiving instruction to enter an offline information receiving mode upon initialization, or enter an offline information receiving mode upon receiving an offline information receiving instruction input by the user.
在本实施例中,优选在接收到离线信息接收指令时,启动预设的接收点,并进入离线信息接收模式;或者在初始化时先预设接收离线单板的模式,即所述预处理模块30在初始化时触发离线信息接收指令以进入离线信息接收模式。所述预设接收离线单板对应的离线信息接收模式的方式优选通过软件的方式实现,即所述预处理模块30在初始化时,先注册检测 离线单板离线信息的感知事件,如在单板中配置一个接收点,所述配置的接收点仅用于接收主控发送的离线信息。可以理解的是,只接收主控发送的离线单板对应的离线信息,可以快速响应切换过程,提高了网络路径的切换速度。或者在接收到用户触发的离线信息指令时,所述预处理模块30启动预设的接收点,并进入离线信息接收模式。In this embodiment, preferably, when the offline information receiving instruction is received, the preset receiving point is started, and the offline information receiving mode is entered; or the mode of receiving the offline board is preset before initializing, that is, the pre-processing module 30 triggers an offline information receiving instruction at initialization to enter an offline information receiving mode. The manner of receiving the offline information receiving mode corresponding to the offline board is preferably implemented by means of software, that is, the pre-processing module 30 first registers and detects when initializing. The sensing event of the offline information of the offline board, such as configuring a receiving point in the board, the receiving point of the configuration is only used to receive the offline information sent by the master. It can be understood that only the offline information corresponding to the offline board sent by the master can be received, and the switching process can be quickly responded, and the switching speed of the network path is improved. Or, when receiving the offline information command triggered by the user, the pre-processing module 30 starts a preset receiving point and enters an offline information receiving mode.
进一步地,为了增加网络路径切换的灵活性,基于第一实施例提出本发明网络路径切换装置的第四实施例,在本实施例中,参照图8,所述网络路径切换装置还包括:Further, in order to increase the flexibility of the network path switching, a fourth embodiment of the network path switching device of the present invention is proposed based on the first embodiment. In this embodiment, referring to FIG. 8, the network path switching device further includes:
接收模块40,设置为接收所述主控发送的其所在的路由设备中所有单板的双向转发检测信息;The receiving module 40 is configured to receive the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
在本实施例中,所述接收模块40接收主控基于同一台路由设备中的各个单板与其它路由设备的单板之间的双向转发检测关系生成并发送的双向转发检测信息。即路由设备中的各个单板与其它路由设备通过主控建立双向转发检测关系,所述主控建立各个单板与其它路由设备双向转发检测关系优选通过三次握手的方式建立双向转发检测关系,并且所述主控根据所述建立的双向转发检测关系生成双向转发检测信息并发送给所述接收模块40。进一步地,所述双向转发检测信息优选采用HASH(哈希)管理方式配置主副HASH键值,即将所述双向转发检测信息的主副HASH键值分别设为双向转发检测标识符和单板槽位号信息,即用户可通过双向转发检测标识符和槽位号信息查询到对应的双向转发检测信息。In this embodiment, the receiving module 40 receives the bidirectional forwarding detection information generated and sent by the master based on the bidirectional forwarding detection relationship between the boards of the same routing device and the boards of other routing devices. That is, each board in the routing device establishes a bidirectional forwarding detection relationship with the other routing devices through the master control, and the master control establishes a bidirectional forwarding detection relationship between each board and other routing devices, and preferably establishes a bidirectional forwarding detection relationship by using a three-way handshake manner, and The master generates bidirectional forwarding detection information according to the established bidirectional forwarding detection relationship and sends the information to the receiving module 40. Further, the bidirectional forwarding detection information is preferably configured by using a HASH (Hash) management manner to configure a primary and secondary HASH key value, that is, the primary and secondary HASH key values of the bidirectional forwarding detection information are respectively set to a bidirectional forwarding detection identifier and a single board slot. The bit number information, that is, the user can query the corresponding bidirectional forwarding detection information by using the bidirectional forwarding detection identifier and the slot number information.
存储模块50,设置为存储接收到的所述双向转发检测信息。The storage module 50 is configured to store the received bidirectional forwarding detection information.
在本实施例中,所述接收模块40接收到主控发送的双向转发检测信息时,所述存储模块50保存所述接收到的双向转发检测信息,所述存储模块50存储位置可在路由设备中各个单板预设的存储空间,或者是路由设备中预设的存储空间。In this embodiment, when the receiving module 40 receives the bidirectional forwarding detection information sent by the master control, the storage module 50 stores the received bidirectional forwarding detection information, and the storage module 50 stores the location in the routing device. The preset storage space of each board or the preset storage space in the routing device.
进一步地,为提高网络路径切换的灵活性,本实施例中,所述双向转发检测信息由所述主控在所述双向转发检测信息更新时发送至所述接收 模块40。即所述主控在检测到同一台路由设备中的各个单板与其它路由设备中的单板之间建立了新的双向转发检测关系,根据新建立的双向转发检测关系生成新的双向转发检测信息,并将新生成的双向转发检测信息发送给所述接收模块40,以供所述存储模块50存储所述双向转发检测信息。Further, in order to improve the flexibility of the network path switching, in the embodiment, the bidirectional forwarding detection information is sent by the main control to the receiving when the bidirectional forwarding detection information is updated. Module 40. That is, the master establishes a new bidirectional forwarding detection relationship between each board in the same routing device and a board in another routing device, and generates a new bidirectional forwarding detection according to the newly established bidirectional forwarding detection relationship. And sending the newly generated bidirectional forwarding detection information to the receiving module 40, so that the storage module 50 stores the bidirectional forwarding detection information.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or system that comprises a plurality of elements includes not only those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性 Industrial applicability
如上所述,本发明实施例提供的一种网络路径切换方法和装置具有以下有益效果:实现了单板离线时,其它在线单板可以先获取离线单板的槽位信息,并根据具体的处理操作将离线单板当前的网络路径切换到获取的网络路径标识对应的网络路径中,而不是在单板离线时,只能通过主控将离线单板的网络路径切换至在线单板,从而在提高网络切换性能的同时,还可以实现当网络路径存在嵌套保护时,根据不同的检测层次进行切换,进而提升了网络切换的稳定性。 As described above, the network path switching method and apparatus provided by the embodiments of the present invention have the following beneficial effects: when the board is offline, the other online boards can obtain the slot information of the offline board first, and according to the specific processing. If the current network path of the offline board is switched to the network path of the obtained network path identifier, the network path of the offline board can be switched to the online board only by the master. When the network switching performance is improved, it is also possible to switch according to different detection levels when the network path has nested protection, thereby improving the stability of the network switching.

Claims (10)

  1. 一种网络路径切换方法,所述网络路径切换方法包括以下步骤:A network path switching method, the network path switching method comprising the following steps:
    在接收到主控发送的离线信息时,在线单板基于所述离线信息获取对应的槽位信息;After receiving the offline information sent by the master, the online board obtains the corresponding slot information based on the offline information.
    所述在线单板获取所述槽位信息对应的双向转发检测信息;Obtaining, by the online board, the bidirectional forwarding detection information corresponding to the slot information;
    根据预设的双向转发检测信息与网络路径标识的映射关系,所述在线单板获取确定的双向转发检测信息对应的网络路径标识;And obtaining, by the online board, the network path identifier corresponding to the determined bidirectional forwarding detection information, according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier;
    所述在线单板将所述离线单板当前网络路径切换到所述网络路径标识对应的网络路径中。The online board switches the current network path of the offline board to the network path corresponding to the network path identifier.
  2. 如权利要求1所述的网络路径切换方法,其中,当获取的所述网络路径标识包括多个时,所述在线单板将所述离线单板当前网络路径切换到所述网络路径标识对应的网络路径中的步骤包括:The network path switching method according to claim 1, wherein the online board switches the current network path of the offline board to the network path identifier corresponding to the network path identifier. The steps in the network path include:
    所述在线单板确定各个网络路径标识对应的网络路径的优先级;Determining, by the online board, a priority of a network path corresponding to each network path identifier;
    所述在线单板将所述离线单板当前网络路径切换到优先级高的网络路径中。The online board switches the current network path of the offline board to a network path with a high priority.
  3. 如权利要求1或2所述的网络路径切换方法,其中,所述在接收到主控发送的离线信息时,在线单板基于所述离线信息获取对应的槽位信息的步骤之前,所述网络路径切换方法包括:The network path switching method according to claim 1 or 2, wherein, before receiving the offline information sent by the master, the network board obtains the corresponding slot information based on the offline information, the network Path switching methods include:
    所述终端在初始化时,触发离线信息接收指令以进入离线信息接收模式;When the terminal initializes, triggering an offline information receiving instruction to enter an offline information receiving mode;
    或者在接收到用户输入的离线信息接收指令时,所述终端进入离线信息接收模式。Or when receiving an offline information receiving instruction input by the user, the terminal enters an offline information receiving mode.
  4. 如权利要求1或2所述的网络路径切换方法,其中,所述在接收到主控发送的离线信息时,在线单板基于所述离线信息获取对应的槽位信息的步骤之前,所述网络路径切换方法包括:The network path switching method according to claim 1 or 2, wherein, before receiving the offline information sent by the master, the network board obtains the corresponding slot information based on the offline information, the network Path switching methods include:
    所述在线单板接收所述主控发送的其所在的路由设备中所有单板的 双向转发检测信息;Receiving, by the online board, all the boards in the routing device where the master sends the routing device Bidirectional forwarding detection information;
    所述在线单板存储接收到的所述双向转发检测信息。The online board stores the received bidirectional forwarding detection information.
  5. 如权利要求4所述的网络路径切换方法,其中,所述双向转发检测信息由所述主控在所述双向转发检测信息更新时发送至所述在线单板。The network path switching method according to claim 4, wherein the bidirectional forwarding detection information is sent by the main control to the online board when the bidirectional forwarding detection information is updated.
  6. 一种网络路径切换装置,所述网络路径切换装置包括:A network path switching device, where the network path switching device includes:
    获取模块,设置为在接收到主控发送的离线信息时,基于所述离线信息获取对应的槽位信息;Obtaining a module, configured to acquire corresponding slot information based on the offline information when receiving the offline information sent by the master;
    所述获取模块,还设置为获取所述槽位信息对应的双向转发检测信息;The acquiring module is further configured to acquire bidirectional forwarding detection information corresponding to the slot information;
    所述获取模块,还设置为根据预设的双向转发检测信息与网络路径标识的映射关系,获取确定的双向转发检测信息对应的网络路径标识;The acquiring module is further configured to: obtain a network path identifier corresponding to the determined bidirectional forwarding detection information according to a mapping relationship between the preset bidirectional forwarding detection information and the network path identifier;
    切换模块,设置为将所述离线单板当前网络路径切换到所述网络路径标识对应的网络路径中。The switching module is configured to switch the current network path of the offline board to the network path corresponding to the network path identifier.
  7. 如权利要求6所述的网络路径切换装置,其中,当获取的所述网络路径标识包括多个时,所述切换模块包括:The network path switching device of claim 6, wherein when the acquired network path identifier comprises a plurality, the switching module comprises:
    确定单元,设置为确定各个网络路径标识对应的网络路径的优先级;a determining unit, configured to determine a priority of a network path corresponding to each network path identifier;
    切换单元,设置为将所述离线单板当前网络路径切换到优先级高的网络路径中。The switching unit is configured to switch the current network path of the offline board to a network path with a high priority.
  8. 如权利要求6或7所述的网络路径切换装置,其中,所述网络路径切换装置还包括:The network path switching device according to claim 6 or 7, wherein the network path switching device further comprises:
    预处理模块,设置为在初始化时,触发离线信息接收指令以进入离线信息接收模式;或者在接收到用户输入的离线信息接收指令时,进入离线信息接收模式。 The pre-processing module is configured to trigger an offline information receiving instruction to enter an offline information receiving mode during initialization, or enter an offline information receiving mode upon receiving an offline information receiving instruction input by the user.
  9. 如权利要求6或7所述的网络路径切换装置,其中,所述网络路径切换装置还包括:The network path switching device according to claim 6 or 7, wherein the network path switching device further comprises:
    接收模块,设置为接收所述主控发送的其所在的路由设备中所有单板的双向转发检测信息;The receiving module is configured to receive the bidirectional forwarding detection information of all the boards in the routing device where the master sends the routing device;
    存储模块,设置为存储接收到的所述双向转发检测信息。And a storage module, configured to store the received bidirectional forwarding detection information.
  10. 如权利要求9所述的网络路径切换装置,其中,所述双向转发检测信息由所述主控在所述双向转发检测信息更新时发送至所述接收模块。 The network path switching device according to claim 9, wherein said bidirectional forwarding detection information is transmitted by said main control to said receiving module when said bidirectional forwarding detection information is updated.
PCT/CN2016/076424 2015-07-20 2016-03-15 Network path switching method and device WO2016177116A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510428335.8A CN106375208B (en) 2015-07-20 2015-07-20 Network path switching method and device
CN201510428335.8 2015-07-20

Publications (1)

Publication Number Publication Date
WO2016177116A1 true WO2016177116A1 (en) 2016-11-10

Family

ID=57218026

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076424 WO2016177116A1 (en) 2015-07-20 2016-03-15 Network path switching method and device

Country Status (2)

Country Link
CN (1) CN106375208B (en)
WO (1) WO2016177116A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115954725B (en) * 2023-02-22 2023-09-26 苏州埃博斯电气有限公司 Automobile circuit connector with communication abnormality monitoring function

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079759A (en) * 2007-07-24 2007-11-28 杭州华三通信技术有限公司 Distributed bidirectional forwarding detection method and device
CN101860491A (en) * 2010-06-23 2010-10-13 迈普通信技术股份有限公司 Aggregation type link bidirectional forwarding detection method and device thereof
US20110032814A1 (en) * 2009-08-06 2011-02-10 Telefonaktiebolaget L M Ericsson Session Resilience Prioritization Queuing Mechanism to Minimize and Eliminate Packet Loss
CN102739535A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Method and system for protecting offline of line card
CN103036716A (en) * 2012-12-12 2013-04-10 中兴通讯股份有限公司 Method and system for link switchover

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8543718B2 (en) * 2006-03-02 2013-09-24 Cisco Technology, Inc. Technique for efficiently and dynamically maintaining bidirectional forwarding detection on a bundle of links
CN102055673A (en) * 2010-12-30 2011-05-11 上海顶竹通讯技术有限公司 Multi-route network and route switching method
CN103747442B (en) * 2013-12-27 2017-06-30 华为技术有限公司 A kind of security key context distribution, mobile management entity and base station

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079759A (en) * 2007-07-24 2007-11-28 杭州华三通信技术有限公司 Distributed bidirectional forwarding detection method and device
US20110032814A1 (en) * 2009-08-06 2011-02-10 Telefonaktiebolaget L M Ericsson Session Resilience Prioritization Queuing Mechanism to Minimize and Eliminate Packet Loss
CN101860491A (en) * 2010-06-23 2010-10-13 迈普通信技术股份有限公司 Aggregation type link bidirectional forwarding detection method and device thereof
CN102739535A (en) * 2012-06-26 2012-10-17 中兴通讯股份有限公司 Method and system for protecting offline of line card
CN103036716A (en) * 2012-12-12 2013-04-10 中兴通讯股份有限公司 Method and system for link switchover

Also Published As

Publication number Publication date
CN106375208B (en) 2020-09-15
CN106375208A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
US11323307B2 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
US10826821B2 (en) Flow path detection
EP3355533B1 (en) Path switching
US20150215156A1 (en) Method and apparatus for network failure restoration
WO2016112676A1 (en) Alarm processing method and device
US20150236920A1 (en) Method and apparatus for determining connection information of a link
CN109981355A (en) Security defend method and system, computer readable storage medium for cloud environment
CN109889411B (en) Data transmission method and device
US10567195B2 (en) Network nodes in a ring network
WO2019204293A1 (en) Network data control method, system and security protection device
CN113949649B (en) Fault detection protocol deployment method and device, electronic equipment and storage medium
WO2015154423A1 (en) Cross-domain service processing method, apparatus and system
US9985862B2 (en) MEP configuration method and network device
US8971176B2 (en) Fibre channel over Ethernet switch implicit logout
CN102833122B (en) Loopback detection method and system
WO2016177116A1 (en) Network path switching method and device
US20190132261A1 (en) Link locking in ethernet networks
CN114553707A (en) Method and device for generating topology information of network and delimiting network fault
CN106105060B (en) The methods, devices and systems of data communication
WO2017054535A1 (en) Traffic forwarding method and apparatus
CN110545240B (en) Method for establishing label forwarding table and forwarding message based on distributed aggregation system
JP2008172291A (en) Path search apparatus, path search program, path search method and path search system
US10001823B2 (en) Communication system, communication device, and address setting method
JP2019118081A (en) Network device, port identifier response method, and port identifier response program
US9197497B2 (en) Configuration of network entities using firmware

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789110

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789110

Country of ref document: EP

Kind code of ref document: A1