CN106375208B - Network path switching method and device - Google Patents

Network path switching method and device Download PDF

Info

Publication number
CN106375208B
CN106375208B CN201510428335.8A CN201510428335A CN106375208B CN 106375208 B CN106375208 B CN 106375208B CN 201510428335 A CN201510428335 A CN 201510428335A CN 106375208 B CN106375208 B CN 106375208B
Authority
CN
China
Prior art keywords
network path
offline
information
board
bidirectional forwarding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510428335.8A
Other languages
Chinese (zh)
Other versions
CN106375208A (en
Inventor
李爱民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201510428335.8A priority Critical patent/CN106375208B/en
Priority to PCT/CN2016/076424 priority patent/WO2016177116A1/en
Publication of CN106375208A publication Critical patent/CN106375208A/en
Application granted granted Critical
Publication of CN106375208B publication Critical patent/CN106375208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

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

The invention discloses a network path switching method, when receiving off-line information sent by a master control, an on-line single board acquires corresponding slot position information based on the off-line information; the on-line single board acquires bidirectional forwarding detection information corresponding to the slot position information; according to a mapping relation between preset bidirectional forwarding detection information and a network path identifier, the online single board acquires the network path identifier corresponding to the determined bidirectional forwarding detection information; and the online single board switches the current network path of the offline single board to the network path corresponding to the network path identifier. The invention also discloses a network path switching device. The invention improves the switching speed of the 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 method and an apparatus for switching network paths.
Background
With the development of network communication technology, at present, in a typical L2VPN network (a two-layer virtual private network) or an L3VPN network (a three-layer virtual private network), a multi-layer protection path is usually deployed, such as a PW (Pseudo Wire, point-to-point connection between edge router pairs) protection path, a tunnel layer protection path, a link layer protection path, and the like, so that when a network path fails, the network path can be switched to the deployed protection path.
In general, a BFD (bidirectional forwarding detection) protocol is deployed to quickly detect connectivity of a network path, but in existing detection methods, BFD is deployed on a board, and the connectivity of the network path is periodically detected through a BFD packet sent by an online board, and when an abnormality occurs in the network path, the network path is quickly switched to a protection path, and when the board is in an offline state, the offline board cannot switch the network path, but the network path of the offline board is switched to the online board only through a main control, and the main control belongs to an upper-layer control plane, and the network path is in a bottom-layer forwarding plane, where the main control controls the speed of switching the network path to be slow, and if the switching performance of a telecommunication level of 50ms cannot be satisfied.
Disclosure of Invention
The invention mainly aims to provide a network path switching method and a network path switching device, and aims to solve the technical problem that the switching speed of a network path is low when a single board is in an offline state.
In order to achieve the above object, the present invention provides a network path switching method, which includes the following steps:
when receiving the offline information sent by the master control, the online single board acquires corresponding slot position information based on the offline information;
the on-line single board acquires bidirectional forwarding detection information corresponding to the slot position information;
according to a mapping relation between preset bidirectional forwarding detection information and a network path identifier, the online single board acquires the network path identifier corresponding to the determined bidirectional forwarding detection information;
and the online single board switches the current network path of the offline single board to the network path corresponding to the network path identifier.
Preferably, when the obtained network path identifier includes a plurality of network path identifiers, 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 on-line single board determines the priority of the network path corresponding to each network path identifier;
and the online single board switches the current network path of the offline single board to a network path with high priority.
Preferably, before the step of obtaining, by the online board, the corresponding slot information based on the offline information when the offline information sent by the master control is received, the network path switching method includes:
when the terminal is initialized, triggering an offline information receiving instruction to enter an offline information receiving mode;
or when receiving an offline information receiving instruction input by a user, the terminal enters an offline information receiving mode.
Preferably, before the step of obtaining, by the online board, the corresponding slot information based on the offline information when the offline information sent by the master control is received, the network path switching method includes:
the online single board receives bidirectional forwarding detection information of all single boards in the routing equipment where the online single board is located, wherein the bidirectional forwarding detection information is sent by the master control;
and the on-line single board stores the received bidirectional forwarding detection information.
Preferably, the bidirectional forwarding detection information is sent to the online board by the master control when the bidirectional forwarding detection information is updated.
In order to achieve the above object, the present invention further provides a network path switching apparatus, including:
the acquisition module is used for acquiring corresponding slot position information based on the offline information when the offline information sent by the master control is received;
the acquisition module is further configured to acquire bidirectional forwarding detection information corresponding to the slot position information;
the obtaining module is further configured to obtain a network path identifier corresponding to the determined bidirectional forwarding detection information according to a mapping relationship between preset bidirectional forwarding detection information and the network path identifier;
and the switching module is used for switching the current network path of the offline single board to the network path corresponding to the network path identifier.
Preferably, when the obtained network path identifier includes a plurality of network path identifiers, the switching module includes:
a determining unit, configured to determine a priority of a network path corresponding to each network path identifier;
and the switching unit is used for switching the current network path of the offline single board to the network path with high priority.
Preferably, the network path switching apparatus further includes:
the preprocessing module is used for triggering an offline information receiving instruction to enter an offline information receiving mode during initialization; or entering an offline information receiving mode when receiving an offline information receiving instruction input by a user.
Preferably, the network path switching apparatus further includes:
a receiving module, configured to receive bidirectional forwarding detection information of all boards in the routing device where the master control is located, where the bidirectional forwarding detection information is sent by the master control;
and the storage module is used for storing the received bidirectional forwarding detection information.
Preferably, the bidirectional forwarding detection information is sent to the receiving module by the master control when the bidirectional forwarding detection information is updated.
The invention provides a network path switching method and a device, an on-line single board firstly obtains bidirectional forwarding detection information corresponding to the slot position information according to the obtained slot position information, then obtains a corresponding network path identifier according to the bidirectional forwarding detection information, and directly switches the current network path of the off-line single board to the network path corresponding to the obtained network path identifier, thereby realizing that other on-line single boards can firstly obtain the slot position information of the off-line single board when the single board is off-line, and switches the current network path of the off-line single board to the network path corresponding to the obtained network path identifier according to specific processing operation, but not only can switch the network path of the off-line single board to the on-line single board through a main control when the single board is off-line, thereby improving the switching speed of the network path.
Drawings
Fig. 1 is a flowchart illustrating a network path switching method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a network path switching method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a network path switching method according to a third embodiment of the present invention;
fig. 4 is a flowchart illustrating a network path switching method according to a fourth embodiment of the present invention;
fig. 5 is a functional block diagram of a network path switching apparatus according to a first embodiment of the invention;
fig. 6 is a functional block diagram of a network path switching apparatus according to a second embodiment of the present invention;
fig. 7 is a functional block diagram of a network path switching apparatus according to a third embodiment of the invention.
Fig. 8 is a functional block diagram of a network path switching apparatus according to a fourth embodiment of the invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be 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.
Referring to fig. 1, fig. 1 is a flowchart illustrating a network path switching method according to a first embodiment of the present invention.
The embodiment provides a network path switching method, which includes:
step S10, when receiving the off-line information sent by the master control, the on-line single board obtains the corresponding slot position information based on the off-line information;
in this embodiment, the manner in which the online board receives the offline information sent by the main control includes that the online board receives the offline information broadcasted by the main control, and then obtains the corresponding slot position information based on the offline information, or that the online board receives the offline information sent by the main control to a preset position (such as a preset receiving point of the online board) of the online board, and then obtains the corresponding slot position information based on the offline information. It can be understood that the operation state of each board may be detected in real time by a preset master controller, when the master controller detects that the board is not in place, the board may be determined to be offline, then slot information of the offline board is obtained, and further other identification information of the offline line card is obtained, and the obtained slot information and the other identification information are sent to other online boards as offline information in a manner of broadcasting and the like, so that when the online board receives the offline information sent by the master controller, the corresponding slot information is extracted. In the embodiment of the invention, the online line card only receives the offline information sent by the master control in the same routing device. The offline information preferably includes slot position information corresponding to the offline single board, identification information of the offline line card, a bidirectional forwarding detection identifier, and the like.
Step S20, the on-line single board obtains the bidirectional forwarding detection information corresponding to the slot position information;
in this embodiment, each board stores bidirectional forwarding detection information of all boards in the same routing device, and it can be known from the above embodiment that the bidirectional forwarding detection information includes slot position information and a bidirectional forwarding detection identifier corresponding to each board, and since the slot position information and the bidirectional forwarding detection information both include a slot position number of a board, when the on-line board acquires the slot position information, the on-line board may query, according to preset bidirectional forwarding detection information, bidirectional forwarding detection information matching the slot position number of the slot position information to acquire corresponding bidirectional forwarding detection information, and the query manner preferably selects that the on-line board traverses the preset bidirectional forwarding detection information, that is, the on-line board compares the slot position information with the preset bidirectional forwarding detection information, and when detecting the bidirectional forwarding detection information whose slot position number matches the slot position number of the received slot position information, and determining matched bidirectional forwarding detection information and acquiring the matched bidirectional forwarding detection information.
In this embodiment, it may be preset that the slot information of each board corresponds to a plurality of bidirectional forwarding detection information, and the slot information corresponding to each board is different, so that when the slot information obtained by the online board is obtained, the corresponding bidirectional forwarding detection information may be obtained according to the slot information, and if one slot information includes a plurality of bidirectional forwarding detection information, the online board may obtain a plurality of corresponding bidirectional forwarding detection information. Further, the on-line board may also receive the slot position information of different off-line boards at the same time, and when the slot position information corresponding to different off-line boards is obtained, the bidirectional forwarding detection information corresponding to the slot position information of each different board is obtained according to the preset bidirectional forwarding detection information.
Step S30, according to the mapping relationship between the preset bidirectional forwarding detection information and the network path identifier, the online board obtains the network path identifier corresponding to the determined bidirectional forwarding detection information;
in this embodiment, according to a mapping relationship between preset bidirectional forwarding detection information and a network path identifier, the online board determines the network path identifier corresponding to the bidirectional forwarding detection information, that is, the online board traverses the network path identifier, and when a network path identifier matching with the bidirectional forwarding detection information exists and the network path identifier is a network path identifier corresponding to another online board, the online board obtains the identifier of the determined network path, and further, when the bidirectional forwarding detection information corresponding to the slot position information includes a plurality of bidirectional forwarding detection information, the online board obtains the network path identifier corresponding to each piece of bidirectional forwarding detection information, that is, the network path obtained by the online board includes a plurality of pieces of network paths.
In this embodiment, corresponding bidirectional forwarding detection information is deployed in advance for each network path, 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, a tunnel layer network path, and a 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, for the stability of the service, a nesting of multi-level protection is also deployed, for example, PW FRR (pseudo wire layer fast reroute) nesting TE FRR (traffic engineering fast reroute, a protection technology), that is, in order to quickly sense the abnormality of the network path, bidirectional forwarding detection information of corresponding levels is deployed for protection paths of different levels, so as to realize quick switching to a preset network path. Meanwhile, the bidirectional forwarding detection information deployed by the network path exists only, that is, one network path corresponds to one bidirectional forwarding detection information. The deployed network path includes: each single board in a routing device can be deployed with a network path or multiple network paths, each network path can be configured with unique bidirectional forwarding detection information, further, the inner layer and the outer layer of each single board in each routing device can be deployed with an inner layer network path and an outer layer network path, the information of the main ports of the inner layer network path and the outer layer network path in the single board are the same, but the protection ports of different layers can be different, so that the association of different bidirectional forwarding detection information can be achieved without error switching, that is, when the determined slot position information is received, the bidirectional forwarding detection information can be extracted according to the slot position information, the network path can be determined according to the bidirectional forwarding detection information, the error switching caused by the inner layer network path and the outer layer network path of the same single board can be avoided, and the switching accuracy is improved.
Step S40, the online board switches the current network path of the offline board to the network path corresponding to the obtained network path identifier.
In this embodiment, preferably, the network path is a protection network path of the offline board or a backup network path, that is, a network path identifier corresponding to the bidirectional forwarding detection information is preset to deploy a primary path and a backup path, and when the primary path fails, the online board switches to the backup path.
In this embodiment, the implementation manner of step S40 includes:
1) in the first mode, when the bidirectional forwarding detection information corresponding to the slot position information is one bidirectional forwarding detection information, at this time, the online board only obtains one network path identifier, and then the online board switches the current network path of the offline board to the network path corresponding to the obtained network path identifier.
2) In a second mode, when the slot information corresponding to the offline board acquired by the online board includes slot information of a plurality of offline boards, at this time, according to bidirectional forwarding detection information corresponding to the slot information, the network path identifier acquired by the online board includes a plurality of network identifiers, it can be understood that, if each network identifier corresponds to each bidirectional forwarding detection information, the step of switching, by the online board, the current network path of the offline board to the network path corresponding to the acquired network path identifier includes: the on-line single board determines network path identifiers corresponding to the bidirectional forwarding detection information; and then, according to each network path identifier, switching each offline single board to a network path corresponding to the corresponding network path identifier.
3) Third, when the bidirectional forwarding detection information corresponding to the slot position information is multiple bidirectional forwarding detection information, for example, multiple network paths are deployed on a board in advance, as can be seen from the above embodiment, one slot position information corresponds to multiple bidirectional forwarding detection information, and the multiple network paths include multiple network paths at the same level, or network paths at different levels (like an inner network path and an outer network path deployed by a board), it can be understood that, when the network paths include multiple network paths, for example, 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 when the slot position information of the offline board is received, the online board can traverse the preset bidirectional forwarding detection information according to the network path identifier corresponding to the bidirectional forwarding detection information, and acquiring a network path identifier corresponding to the determined bidirectional forwarding detection information, and switching the current network path of the offline single board to the network path corresponding to the acquired network path identifier. In a conventional switching manner, when a single board is offline, an online single board directly switches a current network path of the offline single board to a network path corresponding to an acquired network path identifier by acquiring a network path identifier of the offline single board. In this embodiment, different bidirectional forwarding detection information is configured according to network paths of different layers, and when the online board receives the slot position information of the offline board, it can determine which layer of network path is switched by obtaining the bidirectional forwarding detection information corresponding to the slot position information, thereby improving the accuracy of network path switching.
In the network path switching method provided in this embodiment, the online board first obtains the bidirectional forwarding detection information corresponding to the slot position information according to the obtained slot position information, then obtains the corresponding network path identifier according to the bidirectional forwarding detection information, and directly switches the current network path of the offline board to the network switching path corresponding to the obtained network path identifier, so that when the board is offline, other online boards may first obtain the slot position information of the offline board and switch the current network path of the offline board to the network switching path corresponding to the obtained network path identifier according to a specific processing operation, instead of switching the network path of the offline board to the online board only through a master control when the board is offline, thereby increasing the switching speed of the network path.
Further, in order to increase the intelligence of the network path switching, a second embodiment of the network path switching method according to the present invention is proposed based on the first embodiment, and in this embodiment, referring to fig. 2, when the obtained network path identifier includes a plurality of network path identifiers, the step S40 includes:
step S41, the online board determines the priority of the 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.
In this embodiment, when the obtained network path identifier includes a plurality of network path identifiers, it indicates that the network path that the offline board can switch includes a plurality of network paths, that is, the protection path deployed by the offline board includes a plurality of network paths, the online board preferentially compares the priority of the network path corresponding to each obtained network path identifier, where the priority includes a network load condition of the network path or a preset priority of the network path, and when the online board determines a network path with a high priority, the current network path of the offline board may be switched to the network path with the high priority.
Further, in order to increase the intelligence of the network path switching, a third embodiment of the network path switching method according to the present invention is proposed based on the first embodiment, and in this embodiment, referring to fig. 3, before the step S10, the network path switching method includes:
step S50, when the terminal is initialized, triggering an offline information receiving instruction to enter an offline information receiving mode; or when receiving an offline information receiving instruction input by a user, the terminal enters an offline information receiving mode.
In this embodiment, preferably, 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 the mode for receiving the offline single board is preset during initialization, that is, the offline information receiving instruction is triggered during initialization to enter the offline information receiving mode. The preset receiving mode for receiving the offline information corresponding to the offline board is preferably implemented in a software manner, that is, when the online board is initialized, a sensing event for detecting the offline information of the offline board is registered first, for example, a receiving point is configured in the board, and the configured receiving point is only used for receiving the offline information sent by the master control. It can be understood that only the offline information corresponding to the offline single board sent by the master control is received, so that the online single board can quickly respond to the switching process, and the switching speed of the network path is increased. Or when receiving an offline information instruction triggered by a user, the online single board moves a preset receiving point and enters an offline information receiving mode.
Further, in order to increase the intelligence of the network path switching, a fourth embodiment of the network path switching method according to the present invention is proposed based on the first embodiment, and in this embodiment, referring to fig. 4, before the step S10, the network path switching method includes:
step S60, the online board receives bidirectional forwarding detection information of all boards in the routing device where the online board is located, which is sent by the master control;
in this embodiment, the online board receives bidirectional forwarding detection information that is generated and sent by a main controller based on bidirectional forwarding detection relationships between boards in the same routing device and boards of other routing devices. The method comprises the steps that a bidirectional forwarding detection relation is established between each single board in the routing equipment and other routing equipment through a master control, the master control establishes the bidirectional forwarding detection relation between each single board and other routing equipment, preferably, the bidirectional forwarding detection relation is established through a three-way handshake mode, and the master control generates bidirectional forwarding detection information according to the established bidirectional forwarding detection relation and sends the bidirectional forwarding detection information to the on-line single board. Furthermore, the bidirectional forwarding detection information preferably adopts a HASH management mode to configure primary and secondary HASH key values, that is, the primary and secondary HASH key values of the bidirectional forwarding detection information are respectively set as a bidirectional forwarding detection identifier and single board slot number information, that is, a user can query corresponding bidirectional forwarding detection information through the bidirectional forwarding detection identifier and the slot number information.
Step S70, the on-line board stores the received bidirectional forwarding detection information.
In this embodiment, when the online board receives bidirectional forwarding detection information sent by the master controller, the online board stores the received bidirectional forwarding detection information, and the storage location may be a storage space preset in each board in the routing device or a storage space preset in the routing device.
Further, in order to improve the flexibility of network path switching, in this embodiment, the bidirectional forwarding detection information is sent to the online board by the master control when the bidirectional forwarding detection information is updated. That is, the main control detects that a new bidirectional forwarding detection relationship is established between each board in the same routing device and boards in other routing devices, generates new bidirectional forwarding detection information according to the newly established bidirectional forwarding detection relationship, and sends the newly generated bidirectional forwarding detection information to the on-line board, so that the on-line board stores the bidirectional forwarding detection information.
The invention further provides a network path switching device.
Referring to fig. 5, fig. 5 is a functional module diagram of a network path switching apparatus according to a preferred embodiment of the invention.
It should be emphasized that the functional block diagram shown in fig. 5 is only an exemplary diagram of a preferred embodiment, and those skilled in the art can easily add new functional blocks around the functional block of the network path switching apparatus shown in fig. 5; the names of the function modules are self-defined names, which are only used for assisting in understanding the program function blocks of the network path switching device, and are not used for limiting the technical scheme of the present invention.
This embodiment provides a network path switching apparatus, including:
the obtaining module 10 is configured to obtain corresponding slot position information based on offline information sent by a master controller when the offline information is received;
in this embodiment, the manner of receiving the offline information sent by the master controller includes receiving the offline information broadcasted by the master controller, then the obtaining module 10 obtains the corresponding slot information based on the offline information, or receiving the offline information sent by the master controller to a preset position (such as a preset receiving point of the obtaining module 10) of the obtaining module 10, and then the obtaining module 10 obtains the corresponding slot information based on the offline information. It can be understood that the operation state of each board may be detected in real time by a preset main control, when the main control detects that the board is not in place, the board may be determined to be offline, then slot information of the offline board is obtained, and further other identification information of the offline line card is obtained, and the obtained slot information and the other identification information are sent to other obtaining modules 10 as offline information in a broadcast manner, so that when the obtaining module 10 receives the offline information sent by the main control, the corresponding slot information is extracted. In the embodiment of the present invention, the obtaining module 10 only receives the offline information sent by the master control in the same routing device. The offline information preferably includes slot position information corresponding to the offline single board, identification information of the offline line card, a bidirectional forwarding detection identifier, and the like.
The obtaining module 10 is further configured to obtain bidirectional forwarding detection information corresponding to the slot position information;
in this embodiment, each board stores bidirectional forwarding detection information of all boards in the same routing device, and it can be known from the above embodiment that the bidirectional forwarding detection information includes slot position information and a bidirectional forwarding detection identifier corresponding to each board, since the slot position information and the bidirectional forwarding detection information both include a slot position number of a board, when the obtaining module 10 obtains the slot position information, it queries, according to preset bidirectional forwarding detection information, bidirectional forwarding detection information matching with the slot position number of the slot position information to obtain corresponding bidirectional forwarding detection information, and the querying manner is preferably that the obtaining module 10 traverses the preset bidirectional forwarding detection information, that is, the obtaining module 10 compares the slot position information with the preset bidirectional forwarding detection information, when detecting the slot position information matching with the slot position number of the received slot position information, and determining matched bidirectional forwarding detection information and acquiring the matched bidirectional forwarding detection information.
In this embodiment, it may be preset that the slot information of each board corresponds to a plurality of bidirectional forwarding detection information, and the slot information corresponding to each board is different, so that when the slot information acquired by the acquiring module 10 is obtained, the corresponding bidirectional forwarding detection information may be acquired according to the slot information, and if one slot information includes a plurality of bidirectional forwarding detection information, the acquiring module 10 may acquire the corresponding plurality of bidirectional forwarding detection information. Further, the obtaining module 10 may also receive slot position information of different offline boards at the same time, and obtain bidirectional forwarding detection information corresponding to the slot position information of each different board according to the preset bidirectional forwarding detection information when obtaining the slot position information corresponding to the different offline boards.
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 preset bidirectional forwarding detection information and the network path identifier;
in this embodiment, according to a mapping relationship between preset bidirectional forwarding detection information and a network path identifier, a network path identifier corresponding to the bidirectional forwarding detection information is determined first, that is, the obtaining module 10 traverses the network path identifier, and when a network path identifier matching with the bidirectional forwarding detection information exists and the network path identifier is a network path identifier corresponding to another on-line board, the determined network path identifier is obtained, further, when the bidirectional forwarding detection information corresponding to the slot position information includes a plurality of bidirectional forwarding detection information, the obtaining module 10 obtains the network path identifier corresponding to each piece of bidirectional forwarding detection information, that is, the network path obtained by the obtaining module 10 includes a plurality of pieces of network paths.
In this embodiment, corresponding bidirectional forwarding detection information is deployed in advance for each network path, and different network paths correspond to different bidirectional forwarding detection information, and the network path preferably includes a PW (pseudo-line layer) network path, a tunnel layer network path, and a 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, for the stability of the service, a nesting of multi-level protection is also deployed, for example, PW FRR (pseudo wire layer fast reroute) nesting TE FRR (traffic engineering fast reroute, a protection technology), that is, in order to quickly sense the abnormality of the network path, bidirectional forwarding detection information of corresponding levels is deployed for protection paths of different levels, so as to realize quick switching to a preset network path. Meanwhile, the bidirectional forwarding detection information deployed by the network path exists only, that is, one network path corresponds to one bidirectional forwarding detection information. The deployed network path includes: each single board in a routing device can be deployed with a network path or multiple network paths, each network path can be configured with unique bidirectional forwarding detection information, further, the inner layer and the outer layer of each single board in each routing device can be deployed with an inner layer network path and an outer layer network path, the information of the main ports of the inner layer network path and the outer layer network path in the single board are the same, but the protection ports of different layers can be different, so that the association of different bidirectional forwarding detection information can be achieved without error switching, that is, when the determined slot position information is received, the bidirectional forwarding detection information can be extracted according to the slot position information, the network path can be determined according to the bidirectional forwarding detection information, the error switching caused by the inner layer network path and the outer layer network path of the same single board can be avoided, and the switching accuracy is improved.
A switching module 20, configured to switch the current network path of the offline board to the network path corresponding to the network path identifier.
In this embodiment, it is preferable that the network path is a protection network path of the offline board or a backup network path, that is, a network path identifier corresponding to the bidirectional forwarding detection information is preset to deploy a primary path and a backup path, and when the primary path fails, the switching module 20 switches to the backup path. In this embodiment, an implementation manner of the switching module 20 switching the current network path of the offline board to the network path corresponding to the acquired network path identifier of the online board includes:
1) in the first mode, when the bidirectional forwarding detection information corresponding to the slot position information is one bidirectional forwarding detection information, at this time, the obtaining module 10 obtains only one network path identifier, and then the switching module 20 switches the current network path of the offline board to the network path corresponding to the obtained network path identifier.
2) In a second manner, when the slot information corresponding to the offline board acquired by the acquiring module 10 includes slot information of a plurality of offline boards, at this time, according to bidirectional forwarding detection information corresponding to the slot information, the network path identifier acquired by the acquiring module 10 includes a plurality of network identifiers, it can be understood that, if each network identifier corresponds to each bidirectional forwarding detection information, the switching module 20 switches the current network path of the offline board to the network path corresponding to the acquired network path identifier, which includes: firstly, determining network path identifiers corresponding to each bidirectional forwarding detection information; then, the switching module 20 switches each offline board to the network path corresponding to the corresponding network path identifier according to each network path identifier.
3) Third, when the bidirectional forwarding detection information corresponding to the slot position information is multiple bidirectional forwarding detection information, for example, multiple network paths are deployed on a board in advance, as can be seen from the above embodiment, one slot position information corresponds to multiple bidirectional forwarding detection information, and the multiple network paths include multiple network paths at the same level, or network paths at different levels (like an inner layer network path and an outer layer network path deployed by a board), it can be understood that, when the network paths include multiple network paths, for example, 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 when the obtaining module 10 obtains the slot position information of the off-line board, the obtaining module 10 can traverse the preset bidirectional forwarding detection information according to a network path identifier corresponding to the bidirectional forwarding detection information, acquiring a network path identifier corresponding to the determined bidirectional forwarding detection information, and switching the current network path of the offline board to the network path corresponding to the acquired network path identifier by the switching module 20. In a conventional switching manner, when a board is offline, the obtaining module 10 obtains a network path identifier of the offline board, and the switching module 20 directly switches a current network path of the offline board to a network path corresponding to the obtained network path identifier, but this switching manner has a drawback that when the network path of the offline board includes network paths of different levels, network paths of different levels may be switched, thereby causing a false switching of the network path. In this embodiment, different bidirectional forwarding detection information is configured according to network paths of different layers, and when the obtaining module 10 obtains the slot information of the offline board, it may determine which layer of network path is switched by obtaining the bidirectional forwarding detection information corresponding to the slot information, so as to improve accuracy of network path switching.
In the network path switching apparatus provided in this embodiment, the online board first obtains the bidirectional forwarding detection information corresponding to the slot position information according to the obtained slot position information, then obtains the corresponding network path identifier according to the bidirectional forwarding detection information, and directly switches the current network path of the offline board to the network switching path corresponding to the obtained network path identifier, so that when the board is offline, other online boards may first obtain the slot position information of the offline board and switch the current network path of the offline board to the network switching path corresponding to the obtained network path identifier according to a specific processing operation, instead of switching the network path of the offline board to the online board only through a master control when the board is offline, thereby improving the switching speed of the network path.
Further, in order to increase the intelligence of the network path switching, a second embodiment of the network path switching apparatus according to the present invention is proposed based on the first embodiment, and in this embodiment, referring to fig. 6, when the obtained network path identifier includes a plurality of network path identifiers, the switching module 20 includes:
a determining unit 21, configured to determine a priority of a network path corresponding to each network path identifier;
a switching unit 22, configured to switch the current network path of the offline board to a network path with a higher priority.
In this embodiment, when the obtained network path identifiers include a plurality of network path identifiers, it indicates that the network paths that the offline board can switch include a plurality of network paths, that is, the protection path deployed by the offline board includes a plurality of protection paths, the determining unit 21 preferentially compares the priorities of the network paths corresponding to the obtained network path identifiers, where the priorities include network load conditions of the network paths or preset priorities of the network paths, and when the determining unit 21 determines a network path with a high priority, the switching unit 22 may switch the current network path of the offline board to the network path with the high priority.
Further, in order to increase the intelligence of the network path switching, a third embodiment of the network path switching apparatus according to the present invention is proposed based on the first embodiment, and in this embodiment, referring to fig. 7, the network path switching apparatus further includes:
the preprocessing module 30 is configured to trigger an offline information receiving instruction to enter an offline information receiving mode during initialization; or entering an offline information receiving mode when receiving an offline information receiving instruction input by a user.
In this embodiment, preferably, when receiving the offline information receiving instruction, the preset receiving point is started, and the offline information receiving mode is entered; or, the mode for receiving the offline board is preset during initialization, that is, the preprocessing module 30 triggers an offline information receiving instruction to enter the offline information receiving mode during initialization. The preset receiving mode for receiving the offline information corresponding to the offline board is preferably implemented in a software manner, that is, when the preprocessing module 30 is initialized, a sensing event for detecting the offline information of the offline board is registered first, for example, a receiving point is configured in the board, and the configured receiving point is only used for receiving the offline information sent by the master control. It can be understood that only the off-line information corresponding to the off-line board sent by the main control is received, the switching process can be responded quickly, and the switching speed of the network path is improved. Or when receiving an offline information instruction triggered by a user, the preprocessing module 30 starts a preset receiving point and enters an offline information receiving mode.
Further, in order to increase the flexibility of network path switching, a fourth embodiment of the network path switching apparatus according to the present invention is proposed based on the first embodiment, and in this embodiment, referring to fig. 8, the network path switching apparatus further includes:
a receiving module 40, configured to receive bidirectional forwarding detection information of all boards in the routing device where the master control is located, where the bidirectional forwarding detection information is sent by the master control;
in this embodiment, the receiving module 40 receives bidirectional forwarding detection information that is generated and sent by a master controller based on bidirectional forwarding detection relationships between single boards in the same routing device and single boards of other routing devices. That is, each board in the routing device establishes a bidirectional forwarding detection relationship with other routing devices through the master control, the master control establishes the bidirectional forwarding detection relationship between each board and other routing devices, preferably, the bidirectional forwarding detection relationship is established through a three-way handshake manner, and the master control generates bidirectional forwarding detection information according to the established bidirectional forwarding detection relationship and sends the bidirectional forwarding detection information to the receiving module 40. Furthermore, the bidirectional forwarding detection information preferably adopts a HASH management mode to configure primary and secondary HASH key values, that is, the primary and secondary HASH key values of the bidirectional forwarding detection information are respectively set as a bidirectional forwarding detection identifier and single board slot number information, that is, a user can query corresponding bidirectional forwarding detection information through the bidirectional forwarding detection identifier and the slot number information.
A storage module 50, configured to store the received bidirectional forwarding detection information.
In this embodiment, when the receiving module 40 receives bidirectional forwarding detection information sent by the master, the storage module 50 stores the received bidirectional forwarding detection information, and the storage location of the storage module 50 may be a storage space preset in each board in the routing device, or a storage space preset in the routing device.
Further, in order to improve the flexibility of network path switching, in this embodiment, the bidirectional forwarding detection information is sent to the receiving module 40 by the main controller when the bidirectional forwarding detection information is updated. That is, the main control establishes a new bidirectional forwarding detection relationship between each board in the same routing device and boards in other routing devices, generates new bidirectional forwarding detection information according to the newly established bidirectional forwarding detection relationship, and sends 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 should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A network path switching method, characterized in that the network path switching method comprises the following steps:
when receiving offline information of an offline single board sent by a master controller, an online single board acquires corresponding slot position information of the offline single board based on the offline single board offline information;
the online single board obtains bidirectional forwarding detection information which is corresponding to the slot position information of the offline single board and is used for determining which level of network path is switched;
according to a mapping relation between preset bidirectional forwarding detection information and a network path identifier, the online single board acquires the network path identifier corresponding to the determined bidirectional forwarding detection information;
and the online single board switches the current network path of the offline single board to the network path corresponding to the network path identifier.
2. The method for switching network paths according to claim 1, wherein when the obtained network path identifier includes multiple network path identifiers, 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 on-line single board determines the priority of the network path corresponding to each network path identifier;
and the online single board switches the current network path of the offline single board to a network path with high priority.
3. The method for switching network paths according to claim 1 or 2, wherein, before the step of obtaining, by the online board, the corresponding slot information based on the offline information of the offline board when the offline information of the offline board sent by the master control is received, the method for switching network paths includes:
when the terminal is initialized, triggering an offline information receiving instruction to enter an offline information receiving mode;
or when receiving an offline information receiving instruction input by a user, the terminal enters an offline information receiving mode.
4. The method for switching network paths according to claim 1 or 2, wherein, before the step of obtaining, by the online board, the corresponding slot information based on the offline information of the offline board when the offline information of the offline board sent by the master control is received, the method for switching network paths includes:
the online single board receives bidirectional forwarding detection information of all single boards in the routing equipment where the online single board is located, wherein the bidirectional forwarding detection information is sent by the master control;
and the on-line single board stores the received bidirectional forwarding detection information.
5. The method according to claim 4, wherein the bidirectional forwarding detection information is sent to the online board by the master when the bidirectional forwarding detection information is updated.
6. A network path switching apparatus, comprising:
an obtaining module, configured to obtain, based on offline information of an offline board, slot position information of the offline board when the offline information of the offline board sent by a master controller is received;
the obtaining module is further configured to obtain bidirectional forwarding detection information, corresponding to the slot position information of the offline board, for determining which level of network path is switched;
the obtaining module is further configured to obtain a network path identifier corresponding to the determined bidirectional forwarding detection information according to a mapping relationship between preset bidirectional forwarding detection information and the network path identifier;
and the switching module is used for switching the current network path of the offline single board to the network path corresponding to the network path identifier.
7. The network path switching apparatus according to claim 6, wherein when the obtained network path identifier includes a plurality of identifiers, the switching module includes:
a determining unit, configured to determine a priority of a network path corresponding to each network path identifier;
and the switching unit is used for switching the current network path of the offline single board to the network path with high priority.
8. The network path switching apparatus according to claim 6 or 7, wherein the network path switching apparatus further comprises:
the preprocessing module is used for triggering an offline information receiving instruction to enter an offline information receiving mode during initialization; or entering an offline information receiving mode when receiving an offline information receiving instruction input by a user.
9. The network path switching apparatus according to claim 6 or 7, wherein the network path switching apparatus further comprises:
a receiving module, configured to receive bidirectional forwarding detection information of all boards in the routing device where the master control is located, where the bidirectional forwarding detection information is sent by the master control;
and the storage module is used for storing the received bidirectional forwarding detection information.
10. The network path switching apparatus of claim 9, wherein the bidirectional forwarding detection information is sent by the master to the receiving module when the bidirectional forwarding detection information is updated.
CN201510428335.8A 2015-07-20 2015-07-20 Network path switching method and device Active CN106375208B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN106375208A CN106375208A (en) 2017-02-01
CN106375208B true CN106375208B (en) 2020-09-15

Family

ID=57218026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510428335.8A Active CN106375208B (en) 2015-07-20 2015-07-20 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055673A (en) * 2010-12-30 2011-05-11 上海顶竹通讯技术有限公司 Multi-route network and route switching method
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
CN103747442A (en) * 2013-12-27 2014-04-23 上海华为技术有限公司 Security key context distribution method, mobility management entity and base station

Family Cites Families (4)

* 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
CN101079759B (en) * 2007-07-24 2010-07-21 杭州华三通信技术有限公司 Distributed bidirectional forwarding detection method and device
US8254249B2 (en) * 2009-08-06 2012-08-28 Telefonaktiebolaget L M Ericsson (Publ) Session resilience prioritization queuing mechanism to minimize and eliminate packet loss
CN101860491B (en) * 2010-06-23 2013-08-14 迈普通信技术股份有限公司 Aggregation type link bidirectional forwarding detection method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055673A (en) * 2010-12-30 2011-05-11 上海顶竹通讯技术有限公司 Multi-route network and route switching method
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
CN103747442A (en) * 2013-12-27 2014-04-23 上海华为技术有限公司 Security key context distribution method, mobility management entity and base station

Also Published As

Publication number Publication date
CN106375208A (en) 2017-02-01
WO2016177116A1 (en) 2016-11-10

Similar Documents

Publication Publication Date Title
CN108123824B (en) Network fault detection method and device
CN109474495B (en) Tunnel detection method and device
EP3355533B1 (en) Path switching
CN110191064B (en) Flow load balancing method, device, equipment, system and storage medium
CN105472049B (en) CGN backup protection method and device for carrier-grade network address conversion
CN106060190B (en) Method and device for processing IP address conflict
CN111682959B (en) Method for determining mapping server, routing node and autonomous system
CN106559280A (en) Bidirectional forwarding detection (BFD) method and device
US9614753B2 (en) Method and device for bidirectional forwarding detection under condition of parameter update
CN114208128A (en) Data processing method and device and computer storage medium
CN101795187A (en) Method, system and equipment for improving reliability of topologic network of central server
CN113949649B (en) Fault detection protocol deployment method and device, electronic equipment and storage medium
CN102833122B (en) Loopback detection method and system
CN106375208B (en) Network path switching method and device
CN112787843B (en) Method for detecting fault node, storage medium and electronic device
CN107231321B (en) Method, equipment and network system for detecting forwarding path
CN101924670A (en) Method and equipment for detecting label switched path (LSP)
CN104717143A (en) Method and equipment for many-one reducibility scene multicast data transmission
CN105991428B (en) Method and device for processing switch routing conflict
CN109412851B (en) Link layer path detection method, device and system
CN105122776B (en) Address acquiring method and network virtualization edge device
US20140092912A1 (en) Fibre channel over ethernet switch implicit logout
CN107995644B (en) Method, switch, system and storage medium for automatic recovery of wireless access point
CN108123875B (en) Bidirectional forwarding detection method and device
CN115665035A (en) Information processing method and device, first node and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200819

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing New Software Co.,Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Applicant before: ZTE Corp.

GR01 Patent grant
GR01 Patent grant