WO2016086697A1 - Switchback delay method, device, and system - Google Patents

Switchback delay method, device, and system Download PDF

Info

Publication number
WO2016086697A1
WO2016086697A1 PCT/CN2015/088979 CN2015088979W WO2016086697A1 WO 2016086697 A1 WO2016086697 A1 WO 2016086697A1 CN 2015088979 W CN2015088979 W CN 2015088979W WO 2016086697 A1 WO2016086697 A1 WO 2016086697A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
route
destination
address
network
Prior art date
Application number
PCT/CN2015/088979
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 华为技术有限公司
Priority to EP15865096.0A priority Critical patent/EP3217608B1/en
Priority to EP20216406.7A priority patent/EP3866412A1/en
Publication of WO2016086697A1 publication Critical patent/WO2016086697A1/en
Priority to US15/614,057 priority patent/US11146484B2/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for delay back-cutting.
  • the Radio Access Network (RAN) based on the Packet Transport Network (PTN) mainly adopts static routing technology, and each network node label and route are statically configured.
  • FIG. 1 is a schematic diagram of a PTN RAN network structure, where the PTN RAN network includes an access ring and an aggregation ring.
  • the device 101, the device 102, the device 103, and the device 104 form an access ring
  • the device 103, the device 104, the device 105, and the device 106 form an aggregation ring.
  • the device 101 and the device 102 are low-end packet transport network (PTN) devices
  • the downlink base station is only a Layer 2 network, and is called a User-end Provider Edge (UPE) device.
  • the device 101 and the device 102 deploy a Virtual Leased Line (VLL) dual to the device 103 and the device 104.
  • VLL Virtual Leased Line
  • the device 103 and the device 104 are high-end PTN devices, and belong to the Layer 2 network and the Layer 3 network. They are called Super-stratum Provider Edge (SPE) devices.
  • the device 103 and the device 104 connect the VLL to a Layer 3 virtual private network (L3VPN) to implement conversion of Layer 2 network services to Layer 3 network services.
  • the device 105 and the device 106 are also high-end PTN devices, and are connected to a Mobility Management Entity (MME) device or a Signaling Gateway (SGW), which belongs to only a Layer 3 network and is called a network core side operator edge ( Network Provider Edge, NPE) device.
  • MME Mobility Management Entity
  • SGW Signaling Gateway
  • the L3VPN network is used between the SPE device and the NPE device in the aggregation ring to transmit service data.
  • VPN FRR virtual private network fast reroute
  • the Network Management Function (OAM) on the device 105 detects a Traffic Engineering (TE) tunnel failure between the device 103 and the device 105, and the device 105 switches the primary route.
  • TE Traffic Engineering
  • the service data sent by the device 105 to the base station A is transmitted to the base station A through the alternate route.
  • the device 105 switches back the backup route to the primary route, and the device 105 switches back the service data sent to the base station A to the primary route for transmission.
  • the primary route between the device 105 and the device 103 takes effect immediately. At this time, the route from the device 103 to the base station may not be restored.
  • the VPN FRR is switched back, the device 105 switches the backup route back to the primary route, and after receiving the service data transmitted by the device 105, the device 103 cannot transmit the service data to the base station A, causing the service. data lost.
  • the technicians set a long enough VPN FRR switchback waiting recovery time on the NPE device to solve the problem of the service data loss after the VPN FRR switchback on the NPE device, ensuring that the SPE device reaches the base station within the delay time. A route is available.
  • the standby data recovery time of the VPN FRR is set to be long enough, the service data of the NPE device will be transmitted on the backup route for a long time, which will increase the service data congestion of the backup route, and if the SPE device is faulty, If the connection between the SPE device and other devices is faulty (the board of other devices cannot be registered on the SPE device), the service data transmission will continue to be interrupted, even if the VPN FRR is cut back and waits for recovery time. It also does not solve the problem of continuous interruption of business data.
  • An embodiment of the present invention provides a method, device, and system for delaying back-cutting.
  • the first network device is triggered to use the alternate path.
  • the problem that the service data of the standby route is congested due to the setting of the switchback waiting recovery time is too long, and the route of the second network device to the destination device cannot be recovered.
  • a first aspect of the embodiments of the present invention provides a method for delay backcutting, where the method includes:
  • the first network device sends a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is available, and the second network device Main network equipment;
  • the query response message is used to indicate the second A route between the network device and the destination device is available;
  • the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device;
  • the destination address of the primary route is the destination The IP address of the device, the next hop is the second network device, and the third network device is the backup network device of the second network device.
  • the method before the sending, by the first network device, the query message to the second network device, the method further includes:
  • the first network device resumes connection with the traffic engineering TE tunnel of the second network device.
  • the first network device backing the backup route to the primary route includes:
  • the first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the method before the first network device sends the query message to the second network device, the method also includes:
  • the first network device generates a forwarding entry of the primary route.
  • the first network device backing the backup route to the primary route includes:
  • the first network device activates the forwarding entry
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the first network device is a network core side carrier edge NPE device or an operator edge PE device;
  • the second network device and the third network device are upper layer operator edge SPE devices or NPE devices.
  • a second aspect of the embodiments of the present invention provides a method for delay backcutting, where the method includes:
  • the second network device detects, according to the query message, whether a route from the second network device to the destination device is available;
  • the second network device sends an inquiry response message to the first network device, where the query response message is used to trigger the first network device
  • the backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device.
  • the address, the next hop is the second network device, and the third network device is the backup network device of the second network device.
  • the detecting, by the second network device, whether the route from the second network device to the destination device is available according to the query message includes:
  • the second network device When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether the IP address of the destination device exists. The corresponding ARP entry.
  • the detecting, by the second network device, whether the route from the second network device to the destination device is available according to the query message includes:
  • the second network device generates an ARP table by using a preset ARP configuration file
  • the second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the method further includes:
  • the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
  • the method further includes:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
  • the first network device is a network core side carrier edge NPE device or an operator edge PE device;
  • the second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
  • the fourth network device is a user-side operator edge UPE device.
  • a third aspect of the embodiments of the present invention provides a method for delay backcutting, where the method includes:
  • the second network device After the second network device is faulty, the second network device obtains the association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is a next hop device of the primary route on the first network device, where the destination address of the primary route is an IP address of the destination device;
  • the second network device acquires a restored address translation protocol ARP table
  • the second network device queries the restored ARP table to obtain an IP address of the destination device in the ARP entry, and the IP address of the destination device is used to identify the destination device.
  • the second network device obtains, from the association information, an identifier of the first network device corresponding to the IP address of the destination device;
  • the second network device establishes an active route with the first network device, and triggers the first network device to switch back the backup route to the primary route, where the destination address of the backup route is The IP address of the destination device, the next hop is the third network device, and the third network device is the backup network device of the second network device.
  • the acquiring, by the second network device, the restored ARP table includes:
  • the second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
  • the second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
  • the second network device querying whether the routing of the destination device is available includes:
  • the second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
  • the second network device querying whether the routing of the destination device is available includes:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
  • the first network device is a far network NPE device or an operator edge PE device;
  • the second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
  • the fourth network device is a user-side operator edge UPE device.
  • a fourth aspect of the embodiments of the present invention provides a first network device that is delayed and switched back.
  • the first network device includes:
  • a sending unit configured to send a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is available, the second network The network device used by the device;
  • a receiving unit configured to receive the query response message sent by the second network device, and send the query response message to the processing unit;
  • a processing unit configured to generate the query message, and send the query message to the sending unit;
  • the receiving unit After receiving the query response message sent by the second network device, the receiving unit returns the backup route to the primary route, where the query response message is used to indicate the second network device and the destination device.
  • the route between the destination is the IP address of the destination device, the next hop is the third network device, and the destination address of the primary route is the IP address of the destination device.
  • the third network device is a backup network device of the second network device.
  • the processing unit is further configured to: after the second network device is faulty, send the query message to the second network device, and the first network device resumes the connection with the traffic engineering TE tunnel of the second network device.
  • the processing unit configured to switch the backup route to the primary route, includes:
  • the processing unit is further configured to generate a forwarding entry of the primary route.
  • the processing unit configured to switch the backup route to the primary route, includes:
  • the first network device is a network NPE device or an operator edge PE device
  • the second network device and the third network device are upper layer operator edge SPE devices or NPE devices.
  • the fifth aspect of the embodiment of the present invention provides a second network device that is delayed and switched back.
  • the second network device includes:
  • a receiving unit configured to receive a query message sent by the first network device, and send the query message to a processing unit, where the second network device is a network device for use;
  • the processing unit is configured to detect, according to the query message, whether a route from the second network device to the destination device is available;
  • a sending unit configured to send a query response message to the first network device when the route from the second network device to the destination device is available, where the query response message is used to trigger the first network device to be
  • the backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device.
  • the next hop is the second network device; the third network device is the backup network device of the second network device.
  • the processing unit configured to detect, according to the query message, whether a route from the second network device to a destination device is available, includes:
  • the second network device When the second network device completes backup of the ARP table from the third network device, The second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the processing unit is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device generates an ARP table by using a preset ARP configuration file
  • the second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the processing unit is further configured to: when the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available. The fourth network device is connected to the destination device.
  • the processing unit is further configured to: when the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available.
  • the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
  • the first network device is a network core side carrier edge NPE device or an operator edge PE device;
  • the second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
  • the fourth network device is a user-side operator edge UPE device.
  • a sixth aspect of the embodiments of the present invention provides a system for delaying and cutting back, the system comprising:
  • the first network device of the delayed back-cut according to the fifth aspect of the fourth aspect of the fourth aspect of the present invention, and the fifth possible aspect of the fifth aspect to the fifth aspect of the present invention The delaying back-cut second network device.
  • the seventh aspect of the embodiment of the present invention provides a second network device that is delayed and switched back.
  • the second network device includes:
  • a processing unit configured to: after the fault is rectified, obtain association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is the first network device
  • the next hop of the primary route, the destination address of the primary route is the IP address of the destination device; the ARP table of the restored address translation protocol is obtained; the ARP table is queried for the purpose of obtaining the ARP entry.
  • the IP address of the device is used to identify the destination device; the route to the destination device is queried; and when the route from the second network device to the destination device is available, the second The network device obtains, from the association information, an identifier of the first network device corresponding to the IP address of the destination device, establishes an active route with the first network device, and triggers the first network device to use an alternate route.
  • the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; the third network device is a Backup network device of the second network device.
  • the processing unit configured to obtain the restored ARP table, includes:
  • the second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
  • the second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
  • the processing unit querying whether the route to the destination device is available includes:
  • the second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
  • the processing unit querying whether the route to the destination device is available includes:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
  • the first network device is a network core side carrier edge NPE device or an operator edge PE device;
  • the second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
  • the fourth network device is a user-side operator edge UPE device.
  • An eighth aspect of the embodiments of the present invention provides a system for delaying back-cutting, where the system includes:
  • the first network device is configured to: after the primary route is established with the second network device, the backup route is switched back to the primary route, and the destination address of the backup route is an IP address of the destination device.
  • the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, the next hop is the second network device; and the third network device is the second network device Backup network device.
  • the embodiment of the present invention provides a method, a device, and a system for delaying and cutting back.
  • the first network device sends an inquiry message to the second network device.
  • the second network device receives the query message according to the query message. Detecting whether a route from the second network device to the destination device is available; when the route from the second network device to the destination device is available, the second network device sends a query response message to the first network device
  • the first network device is triggered to switch back the alternate route to the primary route.
  • the second network device after the second network device is faulty, the second network device first detects that the route between the second network device and the destination device is available, and then triggers the first network device to switch back the backup route to the primary device.
  • the routing is used to reduce the waiting time for the recovery, and the service data transmitted by the first network device to the second network device can be transmitted to the destination device, so that the transmission of the service data is smooth.
  • FIG. 1 is a schematic structural diagram of a PTN RAN network according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for delaying back-cut according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for delay back-cut according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of an example of a VPN FRR scenario in a method for delaying backhaul according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for delay back-cut according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a first network device for delay backhaul according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a first network device for delay backhaul according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present disclosure
  • FIG. 13 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention.
  • the embodiment of the invention provides a method, a device and a system for delaying back-cutting.
  • the first network device is triggered to switch back the backup route to the primary route in time to reduce the waiting for the switchback.
  • the recovery time can ensure that the service data transmitted by the first network device to the second network device can be transmitted to the destination device, so that the transmission of the service data is smooth.
  • the method provided by the embodiment of the present invention is applicable not only to a virtual private network (VPN) but also to an IP bearer network.
  • VPN virtual private network
  • IP bearer network an IP bearer network
  • FIG. 2 is a flowchart of a method for delay back-cut according to an embodiment of the present invention, including:
  • Step 201 The first network device sends a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is available.
  • Two network devices are network devices for the main use.
  • Step 202 The first network device receives the query response message sent by the second network device, and the first network device sends back the backup route to the primary route.
  • the query response message is used to indicate the location.
  • a route between the second network device and the destination device is available.
  • the destination address of the standby route is the IP address of the destination device, and the next hop is the third network device;
  • the destination address of the primary route is the IP address of the destination device, and the next hop is the second a network device;
  • the third network device is a backup network device of the second network device.
  • the second network device is restarted after the fault is rectified, and the restarted second network device establishes a communication connection with the first network device.
  • the first network device sends a query message to the second network device by using the established communication connection, where the query message is used to trigger the second network device to detect whether the route of the second network device to the destination device is available.
  • the first network device receives the query response packet sent by the second network device, and switches the backup route back to the primary route.
  • the forwarding layer of the first network device After the route between the first network device and the second network device takes effect, two conditions are met: first, the forwarding layer of the first network device generates a forwarding entry; and second, the forwarding entry is activated. If the primary route between the first network device and the second network device is valid, the backup route can be backed up to the primary route.
  • the method before the first network device sends the query message to the second network device, the method further includes:
  • the first network device resumes connection with the traffic engineering TE tunnel of the second network device.
  • the second network device After the second network device is faulty, the second network device performs OAM negotiation with the first network device to restore the TE tunnel connection with the second network device. After the first network device and the second network device resume the TE tunnel connection, the control layer of the first network device is not delivered to the forwarding layer. In the routing entry, the forwarding layer does not generate a forwarding entry. That is, the primary route between the first network device and the second network device cannot take effect. The backup route cannot be switched back to the primary route. Time. The first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available.
  • the first network device backs up the backup route to the primary route, including:
  • the first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the routing layer is sent to the forwarding layer at the control layer of the first network device, and the forwarding layer generates the forwarding entry according to the routing entry.
  • the network device sends a query message to the second network device, and performs a delay switchback.
  • the first network device receives the query response message sent by the second network device, and the first network device backs up the backup route to the primary route.
  • the routing layer is sent to the forwarding layer by the control layer.
  • the forwarding layer generates a forwarding entry based on the routing entry and activates the routing entry.
  • the generated forwarding entry is set to be the primary forwarding entry.
  • the primary route between the first network device and the second network device takes effect, and the first network device forwards the backup route to the primary route, and forwards the datagram to the second network device by using the forwarding entry.
  • Text the primary route between the first network device and the second network device takes effect, and the first network device forwards the backup route to the primary route, and forwards the datagram to the second network device
  • the method further includes:
  • the first network device generates a forwarding entry of the primary route.
  • the first network device After the second network device is faulty, the first network device performs OAM negotiation with the first network device to restore the TE tunnel connection with the second network device. After the first network device and the second network device restore the TE tunnel connection, the control layer of the first network device sends the generated routing entry to the forwarding layer, and the forwarding layer generates a forwarding entry, and does not activate the generated forwarding entry. That is, the primary route between the first network device and the second network device cannot take effect, and the alternate route cannot be executed. Switch back to the primary route and implement the switchback delay at the forwarding layer. The first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available.
  • the forwarding entry generated by the activation refers to setting the forwarding entry as the primary usage.
  • the first network device backs up the backup route to the primary route, including:
  • the first network device activates the forwarding entry
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the control layer of the first network device sends a routing entry to the forwarding layer, and the forwarding layer generates a forwarding entry according to the routing entry, and generates the activation entry.
  • the first network device sends a query message to the second network device, and performs a delayed switchback.
  • the first network device receives the query response message sent by the second network device, and the first network device backs up the backup route to the primary route.
  • the control layer of the first network device sends a routing entry to the forwarding layer before sending the query packet, and the forwarding layer generates a forwarding entry according to the routing entry, and when the switchback is performed, the first network device activates the generated entry. Forwarding the entry, that is, setting the forwarding entry as the primary usage. At this time, the primary route between the first network device and the second network device takes effect, and the first network device backs up the backup route to the primary route, and utilizes The forwarding entry forwards a data packet to the second network device.
  • the second network device In the first application scenario of the IP bearer network, after the second network device is faulty, the second network device establishes an IP communication connection with the first network device. After the first network device establishes an IP communication connection with the second network device, the control layer of the first network device does not send a routing entry to the forwarding layer, and the forwarding layer cannot generate a forwarding entry, and the first network device and the second network device The primary route is not valid, and the backup route cannot be switched back to the primary route to implement the control layer switchback delay. The first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available.
  • the first network device receives the query response message sent by the second network device, and the first network device switches the backup route to the primary route, including:
  • the first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the method before the first network device sends the query message to the second network device, the method further includes:
  • the first network device generates a forwarding entry of the primary route.
  • the second network device After the second network device is faulty, the second network device establishes an IP communication connection with the first network device, and the control layer of the first network device sends the generated routing entry to the forwarding layer, and the forwarding layer generates a forwarding entry.
  • the forwarding entry is not activated.
  • the primary route between the first network device and the second network device is not valid.
  • the backup route cannot be switched to the primary route, and the switchback delay is implemented at the forwarding layer.
  • the first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available.
  • the first network device receives the query response message sent by the second network device, and the first network device switches the backup route to the primary route, including:
  • the first network device activates the forwarding entry
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the first network device may be an edge NPE device of the network core side, or an edge PE device of the carrier; the second network device may be an edge of an upper carrier.
  • the SPE device may also be an NPE device; the third network device may be an upper-layer operator edge SPE device or an NPE device.
  • FIG. 3 is a flowchart of a method for delay back-cut according to an embodiment of the present invention, including:
  • Step 301 The second network device receives the query message sent by the first network device, where the second network device is the primary network device.
  • a communication connection is established with the first network device.
  • the first network device Before the primary route between the first network device and the second network device takes effect, the first network device generates a query message to the second network device, where the query message is used to trigger the second network device to detect the slave device. Whether the route from the second network device to the destination device is available.
  • the forwarding layer of the first network device After the route between the first network device and the second network device takes effect, two conditions are met: first, the forwarding layer of the first network device generates a forwarding entry; and second, the forwarding entry is activated. If the primary route between the first network device and the second network device is valid, the backup route can be backed up to the primary route.
  • the first network device can perform the switchback delay in two different stages before the active route takes effect. For the specific implementation, refer to the detailed description in the method for delay backcutting provided by the embodiment of the present invention shown in FIG. No longer.
  • Step 302 The second network device detects, according to the query message, whether a route from the second network device to the destination device is available.
  • the query message received by the second network device carries the IP address of the destination device, and the second network device queries whether the route of the destination device identified by the IP address carried in the query message is available, and the second network device When the reason for the destination device is available, it indicates that the first network device can transmit the service data to the destination device via the next hop for the route of the second network device; when the route from the second network device to the destination device is unavailable, the first network device is indicated. The service data cannot be transmitted to the destination device via the next hop for the route of the second network device.
  • the second network device detects, according to the query message, whether the route from the second network device to the destination device is available, at least two possible implementation manners:
  • the first possible implementation includes:
  • the second network device When the second network device completes backup of the ARP table from the third network device, The second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the ARP table may be backed up from the third network device.
  • the second network device After the second network device completes the backup of the ARP table from the third network device, it searches for the ARP entry corresponding to the IP address of the destination device from the backed up ARP table, if the IP address of the destination device exists.
  • the corresponding ARP entry indicates that the route from the second network device to the destination device is available. If the ARP entry corresponding to the IP address of the destination device does not exist, the route from the second network device to the destination device is unavailable. .
  • the second network device is a primary network device
  • the third network device is a backup network device of the second network device.
  • the second possible implementation includes:
  • the second network device generates an ARP table by using a preset ARP configuration file
  • the second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the second network device After the second network device fails to be restarted, if the ARP hot standby is not configured in the second network device, the second network device generates the ARP table by using the preset ARP configuration file. If the ARP entry corresponding to the IP address of the destination device exists in the generated ARP table, if the ARP entry corresponding to the IP address of the destination device exists, the route from the second network device to the destination device is available. If the ARP entry corresponding to the IP address of the destination device does not exist, the route from the second network device to the destination device is unavailable.
  • the second network device detects, according to the query message, whether there are at least four possible implementation manners of whether the route from the second network device to the destination device is available:
  • the first possible implementation includes:
  • the second network device When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether the IP address of the destination device exists. The corresponding ARP entry.
  • the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
  • the second possible implementation includes:
  • the second network device generates an ARP table by using a preset ARP configuration file
  • the second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
  • the second network device detects the second network. Whether the PW of the device to the fourth network device is available, and when the PW of the second network device to the fourth network device is available, indicating that the route from the second network device to the destination device is available.
  • the fourth network device is connected to the destination device, and the fourth network device may be directly connected to the destination device, or may be indirectly connected to the destination device through a switch.
  • a third possible implementation includes:
  • the second network device When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
  • the fourth possible implementation includes:
  • the second network device generates an ARP table by using a preset ARP configuration file
  • the second network device queries, from the ARP table, whether the IP of the destination device exists.
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
  • the second network device detects the second Whether the network device to the ICB PW or the DNI PW of the third network device is available, and when the second network device is available to the ICB PW or DNI PW of the third network device, indicating that the second network device is to the destination device Routing is available.
  • An example of an MPLS L3VPN application scenario is as follows:
  • the device 101 and the device 102 are user-end Provider Edge (UPE) devices, the device 101 is connected to the base station A, and the device 102 is connected to the base station B.
  • the device 103 and the device 104 are the super-stratum Provider Edge (SPE) devices, the device 103 is the primary SPE device, and the device 104 is the standby SPE device.
  • the device 105 and the device 106 are network core side Provider Edge (NPE) devices. If the device 103 fails, the device 105 forwards the traffic data transmitted to the base station A to the device 104, and the device 104 routes the service data received from the device 105 to the device 102, which then transmits the service data to the device. 101.
  • the device 101 forwards the service data to the base station A.
  • the device 103 fails to restart, a communication connection is established with the device 105.
  • the device 105 sends an inquiry message to the device 103.
  • the device 103 detects whether a route between the device 103 and the base station A is available.
  • the device 103 When the device 103 detects whether the route between the device 103 and the base station A is available, the device 103 first queries whether there is an ARP entry corresponding to the IP address of the destination device: the device 103 can query the ARP table from the device 104; or The device 103 can also generate a query from the ARP table according to the preset ARP configuration file. When the ARP entry corresponding to the IP address of the destination device exists, the device 103 detects whether the PW between the device 103 and the device 102 is available. When the PW between the device 103 and the device 102 is available, the device 103 to the base station is indicated.
  • the route of A is available; or, the device 103 detects whether the protection PW between the device 103 and the device 104 is available, and when the protection PW between the device 103 and the device 104 is available, the route indicating the device 103 to the base station A is available.
  • the device 105 is The service data is transmitted to the base station A by using the next hop as the route of the device 103.
  • Step 303 When the route from the second network device to the destination device is available, the second network device sends a query response message to the first network device, where the query response message is used to trigger the first A network device backs up the alternate route to the primary route.
  • the destination address of the standby route is the IP address of the destination device, and the next hop is the third network device;
  • the destination address of the primary route is the IP address of the destination device, and the next hop is the second a network device;
  • the third network device is a backup network device of the second network device.
  • the second network device When the route from the second network device to the destination device is available, the second network device sends an inquiry response message to the first network device, indicating that the first network device can use the next hop as the route of the second network device to the destination device. Transfer business data. After receiving the query response message, the first network device switches the standby route to the primary route. The first network device transmits the service data transmitted to the destination device to the second network device.
  • the first network device is a network core side carrier edge NPE device or an operator edge edge PE device; and the second network device and the third network device are upper layer operator edges.
  • the SPE device or the NPE device; the fourth network device is a user-side operator edge UPE device.
  • the specific implementation manner of the first network device to switch the alternate route to the primary route is similar to the method provided in the embodiment shown in FIG. 1. Referring to the description of the embodiment shown in FIG. 1, details are not described herein again.
  • FIG. 4 is a flowchart of a VPN FRR scenario according to a method for delaying and cutting back according to an embodiment of the present invention, including:
  • Step 401 The NPE device sends an inquiry message to the primary SPE device.
  • the sending, by the NPE device, the query message to the primary SPE device further includes:
  • the NPE device resumes the TE tunnel connection with the primary SPE device.
  • the NPE device After the NPE device is connected to the TE tunnel of the active SPE device, the NPE device performs a switchback delay and sends an inquiry packet to the active SPE device.
  • the sending, by the NPE device, the query message to the primary SPE device further includes:
  • the NPE device restores the TE tunnel connection with the primary SPE device.
  • the first network device generates a forwarding entry of the primary route.
  • the NPE device restores the TE tunnel connection with the active SPE device, and generates a forwarding entry of the primary route between the NPE device and the primary SPE device, the NPE device performs a switchback delay to the primary SPE.
  • the device sends a query message.
  • Step 402 The primary SPE device receives the query message, and detects, according to the query message, whether a route from the primary SPE device to the destination device is available.
  • the detecting, by the primary SPE device, whether the route from the primary SPE device to the destination device is available according to the query message includes:
  • the primary SPE device queries whether to complete the backup of the address translation protocol ARP table from the standby SPE device; when the primary SPE device completes the backup of the ARP table from the standby SPE device, the primary SPE device Whether the ARP entry corresponding to the IP address of the destination device exists in the backed up ARP table.
  • the primary SPE device generates an ARP table by using a preset ARP configuration file.
  • the primary SPE device queries the ARP table to check whether an ARP entry corresponding to the IP address of the destination device exists.
  • the primary SPE device detects the virtual link PW of the primary SPE device to the user-side operator edge UPE device connected to the destination device. it's usable or not.
  • the route from the primary SPE device to the destination device is available.
  • the detecting, by the primary SPE device, whether the route from the primary SPE device to the destination device is available according to the query message includes:
  • the primary SPE device queries whether to complete the backup of the address translation protocol ARP table from the standby SPE device; when the primary SPE device completes the backup of the ARP table from the standby SPE device, the primary SPE device Check whether the IP address of the destination device exists in the backed up ARP table. Corresponding ARP entries;
  • the primary SPE device generates an ARP table by using a preset ARP configuration file.
  • the primary SPE device queries the ARP table to check whether an ARP entry corresponding to the IP address of the destination device exists.
  • the primary SPE device detects whether the dual-mode DNI PW of the primary SPE device to the standby SPE device is available.
  • the route from the primary SPE device to the destination device is available.
  • Step 403 When the route from the primary SPE device to the destination device is available, the primary SPE device sends an inquiry response message to the NPE device.
  • Step 404 After receiving the query response message, the NPE device backs up the backup route to the primary route.
  • the destination address of the standby route is the IP address of the destination device, and the next hop is the standby SPE network device;
  • the destination address of the primary route is the IP address of the destination device, and the next hop is the primary hop. SPE equipment.
  • the first network device is an NPE device
  • the second network device is a primary SPE device
  • the third network device is a standby SPE device
  • the fourth network device is a UPE device.
  • the specific implementation manner refers to the method of delay back-cut shown in FIG. 2 and FIG. 3, and details are not described herein again.
  • the present invention has the following beneficial effects:
  • the first network device When the second network device detects that the route of the destination device is available, the first network device is triggered to switch back the backup route to the primary route, reducing the waiting time for the switchback; and the route from the second network device to the destination device is available.
  • the first network device performs the switchback of the backup route to the primary route, the service data transmitted by the first network device to the second network device can be transmitted to the destination device, so that the service data is transmitted smoothly.
  • FIG. 5 is a flowchart of a method for delay back-cut according to an embodiment of the present invention, including:
  • Step 501 After the second network device is faulty, the second network device obtains association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates the second network
  • the device is the next hop device of the primary route on the first network device, and the destination address of the primary route is the IP address of the destination device.
  • the association information acquired by the second network device includes: an IP address of the destination device and a first network device, where the IP address of the destination device is a destination address of the primary route on the first network device, and the next route of the primary route
  • the hop device is a second network device.
  • the association relationship acquired by the second network device further includes:
  • the virtual link PW and the protection PW corresponding to the primary route on the first network device are identical to the virtual link PW and the protection PW corresponding to the primary route on the first network device.
  • the primary route refers to a route from the first network device to the second network device, that is, each first network device identifier in the association information obtained by the second network device.
  • the indicated route from the first network device to the second network device may be referred to as an active route.
  • the association information acquired by the second network device may be generated by the second network device according to the configuration of the technician, or may be acquired from other network devices, and may be set according to actual needs.
  • Step 502 The second network device acquires a restored address translation protocol ARP table.
  • the obtaining, by the second network device, the restored ARP table includes:
  • the second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
  • the second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
  • the ARP table may be backed up from the third network device. After the second network device completes the backup of the ARP table in the third network device, the backup ARP table is used as the restored ARP table. If the ARP hot standby is not configured in the second network device, the second network device uses the preset. The ARP configuration file generates an ARP table and uses the generated ARP table as the restored ARP table.
  • Step 503 The second network device queries the restored ARP table to obtain an IP address of the destination device in the ARP entry, and the IP address of the destination device is used to identify the destination device.
  • Step 504 The second network device queries whether a route to the destination device is available.
  • the restored ARP table contains the IP address of a destination device, which is used to identify the destination device corresponding to the ARP entry. Query whether the route of the destination device identified by the IP address of the destination device in the restored ARP entry is available.
  • the second network device queries whether a route to the destination device is available:
  • the second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
  • the second network device querying whether the route of the destination device is available includes:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
  • the second network device obtains the restored ARP entry, obtains the IP address of the destination device stored in the ARP entry, and detects the second network device to the destination device IP by using any one of the foregoing two methods. Whether the route of the destination device identified by the address is available.
  • Step 505 When the route of the second network device to the destination device is available, the second network device obtains the identifier of the first network device corresponding to the IP address of the destination device from the association information.
  • Step 506 The second network device establishes an active route with the first network device, and triggers the first network device to switch back the backup route to the primary route, and the destination address of the backup route.
  • the next hop is the third network device; the third network device is the backup network device of the second network device.
  • the second network device searches for the identifier of the first network device corresponding to the IP address of the destination device from the association information. That is, a route from the second network device to the destination device is available, indicating that the second network is The device can transmit service data to the destination device. Therefore, the primary route of the first network device to the second network device may be established, and the primary route uses the IP address of the destination device as the destination address. After the primary route of the first network device to the second network device is established, the first network device immediately switches back the backup route to the primary route.
  • the second network device When the route from the second network device to the destination device is available, the second network device establishes a communication connection with the first network device, thereby triggering the first network device to switch back the primary route to the alternate route.
  • the first network device is a remote network NPE device or an operator edge PE device; the second network device and the third network device are an upper-layer operator edge SPE device or an NPE device; and the fourth network device is a user Side carrier edge UPE device.
  • the first network device backs up the primary route to the backup route, including:
  • the first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the first network device backs up the primary route to the backup route, including:
  • the first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
  • the first network device forwards the data packet to the second network device by using the forwarding entry.
  • the activating the forwarding entry indicates that the forwarding entry is set to be used.
  • the communication connection between the second network device and the first network device is not immediately established, but the IP address of the destination device stored in the restored ARP entry is queried. Whether the route of the destination device identified by the address is available, so that the first network device cannot perform the switchback of the backup route to the primary route, thereby implementing the switchback delay.
  • FIG. 6 is a schematic structural diagram of a first network device for delay back-cut according to an embodiment of the present invention, including:
  • the sending unit 601 is configured to send a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is
  • the second network device is a network device for the primary use.
  • the receiving unit 602 is configured to receive the query response message sent by the second network device, and send the query response message to the processing unit 603.
  • the processing unit 603 is configured to generate the query message, and send the query message to the sending unit 601;
  • the receiving unit 602 switches back the backup route to the primary route; the query response message is used to indicate the second network device and the destination.
  • the route between the devices is available; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, One hop is the second network device; the third network device is a backup network device of the second network device.
  • the processing unit 603 is configured to send a query to the second network device immediately after the second network device is faulty and establishes a communication connection with the second network device. Text.
  • the processing unit 603 is further configured to: after the second network device is faulty, and send the query message to the second network device, generate the forwarding entry of the primary route. .
  • the processing unit 603 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network device.
  • the flow engineering TE tunnel connection is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network device.
  • the processing unit 603 is configured to switch the alternate route to the primary route, including:
  • the processing unit 603 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network device.
  • the traffic engineering TE tunnel is connected, and the forwarding entry of the primary route is generated.
  • the processing unit 603 is configured to switch the alternate route to the primary route, including:
  • the first network device is a network NPE device or an operator edge PE device; the second network device and the third network device are an upper-layer operator edge SPE device or an NPE device.
  • the first network device shown in FIG. 6 is a device corresponding to the method shown in FIG. 2, and is similar to the implementation method described in FIG. 2, with reference to the description of the implementation method shown in FIG. 2, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention, including:
  • the receiving unit 701 is configured to receive the query message sent by the first network device, and send the query message to the processing unit 702, where the second network device is a network device for the primary network.
  • the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available.
  • the sending unit 703 is configured to send a query response message to the first network device when the route from the second network device to the destination device is available, where the query response message is used to trigger the first network device
  • the backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device.
  • the address, the next hop is the second network device, and the third network device is the backup network device of the second network device.
  • the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device generates an ARP table by using a preset ARP configuration file
  • the second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
  • the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
  • the second network device shown in FIG. 7 is a device corresponding to the method shown in FIG. 3, and is similar to the implementation method described in FIG. 3, with reference to the description of the implementation method shown in FIG. 3, and details are not described herein again.
  • the first network device is a network core side carrier edge NPE device or an operation.
  • the second network device and the third network device are upper-layer operator edge SPE devices or NPE devices; the fourth network device is a user-side operator edge UPE device.
  • FIG. 8 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention, including:
  • the system shown in FIG. 8 includes the first network device 801 shown in FIG. 6 and the second network device 802 of the delayed switchback shown in FIG. 7.
  • the specific implementation structure refers to the structure description of the first network device shown in FIG. 6.
  • the structural description of the second network device shown in FIG. 7 is not described here.
  • FIG. 9 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention, including:
  • the processing unit 901 is configured to: after the fault is removed, obtain the association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is the first network
  • An IP address of the destination device where the IP address of the destination device is used to identify the destination device; whether the route to the destination device is available; and when the route from the second network device to the destination device is available, the The second network device obtains the identifier of the first network device corresponding to the IP address of the destination device from the association information, establishes an active route with the first network device, and triggers the first network device to reserve The route is switched back to the primary route, the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; the third network device is Said backup network device of the second network device.
  • the transceiver unit 902 is configured to send and receive data information of the primary route with the first network device.
  • the processing unit 901 is configured to obtain the restored ARP table, including:
  • the second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
  • the second network device generates an ARP table by using a preset ARP configuration file, and generates the generated ARP.
  • the table serves as the restored ARP table.
  • the processing unit 901 queries whether the route to the destination device is available, including:
  • the second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
  • the processing unit 901 queries whether the route to the destination device is available, including:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
  • the first network device is a network core side carrier edge NPE device or an operator edge edge PE device; the second network device and the third network device are an upper layer operator edge SPE device or an NPE device; The network device is a user-side carrier edge UPE device.
  • the second network device shown in FIG. 9 is a device corresponding to the method shown in FIG. 5, and is similar to the implementation method described in FIG. 5, with reference to the description of the implementation method shown in FIG. 5, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention, including:
  • the first network device 1002 is configured to: after establishing an active route with the second network device, backcutting the backup route to the primary route, where the destination address of the backup route is an IP address of the destination device
  • the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, the next hop is the second network device; and the third network device is the standby network device Backup network device.
  • the structure of the second network device in the delayed switchback provided by the embodiment of the present invention shown in FIG. 10 is similar to the structure of the second network device shown in FIG. 9. Referring to the description of the structure of the second network device shown in FIG. , no longer repeat them here.
  • FIG. 11 is a schematic structural diagram of a first network device for delay backhaul according to an embodiment of the present invention, including:
  • the sender 1101 is configured to send a query message to the second network device, where the query message is used to touch And sending the second network device to detect whether a route from the second network device to the destination device is available, and the second network device is a primary network device.
  • the receiver 1102 is configured to receive the query response message sent by the second network device, and send the query response message to the processor 1103.
  • the processor 1103 is configured to generate the query message, and send the query message to the sender 1101.
  • the receiver 1102 After receiving the query response message sent by the second network device, the receiver 1102 switches back the backup route to the primary route; the query response message is used to indicate the second network device and the destination.
  • the route between the devices is available; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, One hop is the second network device; the third network device is a backup network device of the second network device.
  • the processor 1103 is configured to send a query to the second network device immediately after the second network device is faulty and establishes a communication connection with the second network device. Text.
  • the processor 1103 is further configured to: after the second network device is faulty, and send the query message to the second network device, generate the forwarding entry of the primary route. .
  • the processing unit 1103 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network.
  • the traffic engineering TE tunnel connection of the device is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network.
  • the traffic engineering TE tunnel connection of the device is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network.
  • the processor 1103 is configured to switch the alternate route to the primary route, including:
  • the processor 1103 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network device.
  • the traffic engineering TE tunnel is connected, and the forwarding entry of the primary route is generated.
  • the processor 1103 is configured to switch the alternate route to the primary route, including:
  • the first network device is a network NPE device or an operator edge PE device; the second network device and the third network device are an upper-layer operator edge SPE device or an NPE device.
  • the first network device shown in FIG. 11 is a device corresponding to the method shown in FIG. 2, which is similar to the implementation method described in FIG. 2, and refers to the description of the implementation method shown in FIG. 2, and details are not described herein again.
  • FIG. 12 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention, including:
  • the receiver 1201 is configured to receive the query message sent by the first network device, and send the query message to the processor 1202, where the second network device is a network device for the primary device.
  • the processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available.
  • the sender 1003 is configured to send a query response message to the first network device when the route from the second network device to the destination device is available, where the query response message is used to trigger the first network device
  • the backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device.
  • the address, the next hop is the second network device, and the third network device is the backup network device of the second network device.
  • the processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the processor 1202 is configured to use the query message according to the Detecting whether the route from the second network device to the destination device is available includes:
  • the second network device generates an ARP table by using a preset ARP configuration file
  • the second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  • the processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
  • the processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
  • the second network device shown in FIG. 12 is a device corresponding to the method shown in FIG. 3, and is similar to the implementation method described in FIG. 3, with reference to the description of the implementation method shown in FIG. 3, and details are not described herein again.
  • the first network device is a network core side operator edge NPE device or an operator edge device PE device; the second network device and the third network device are an upper layer operator edge SPE device or an NPE device; The four network devices are user-side operator edge UPE devices.
  • FIG. 13 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention, including:
  • the system shown in FIG. 13 includes the first network device 1301 shown in FIG. 11 and the second network device 1302 shown in FIG. 12, and the specific implementation structure refers to the structure description of the first network device shown in FIG. And the structural description of the second network device shown in FIG. 12, and details are not described herein again.
  • FIG. 14 is a schematic structural diagram of a second network device for delay back-cut according to an embodiment of the present invention, including:
  • the processor 1401 is configured to: after the fault is rectified, obtain association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is the first network
  • An IP address of the destination device where the IP address of the destination device is used to identify the destination device; whether the route to the destination device is available; and when the route from the second network device to the destination device is available, the The second network device obtains the identifier of the first network device corresponding to the IP address of the destination device from the association information, establishes an active route with the first network device, and triggers the first network device to reserve The route is switched back to the primary route, the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; An alternate network device of the second network device.
  • the transceiver 1402 is configured to send, to the first network device, data information that establishes the primary route.
  • the processor 1401 is configured to obtain the restored ARP table, including:
  • the second network device backs up the ARP table from the third network device, and the backed up ARP table As a restored ARP table;
  • the second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
  • the processor 1401 queries whether the route to the destination device is available, including:
  • the second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
  • the processor 1401 queries whether the route to the destination device is available, including:
  • the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
  • the first network device is a network core side carrier edge NPE device or an operator edge edge PE device; the second network device and the third network device are an upper layer operator edge SPE device or an NPE device; The network device is a user-side carrier edge UPE device.
  • FIG. 15 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention, including:
  • the second network device 1501 and the first network device 1502 of the delayed switchback according to the embodiment of the present invention shown in FIG. 14;
  • the first network device 1502 is configured to: after establishing the primary route with the second network device 1501, switch back the backup route to the primary route, where the destination address of the backup route is the IP address of the destination device. Address, the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, the next hop is the second network device; and the third network device is the second An alternate network device for a network device.
  • the structure of the second network device in the system for delay back-cutting provided by the embodiment of the present invention shown in FIG. 15 is similar to the structure of the second network device shown in FIG. 14. Referring to the second network device shown in FIG. The description of the structure is not repeated here.

Landscapes

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

Abstract

Provided in an embodiment of the present invention are a switchback delay method, device, and system, the method comprising: a first network device sends a query packet to a second network device; after the query packet is received by the second network device, the second network device detects whether a routing from the second network device to a destination device is available according to the query packet; when the routing from the second network device to the destination device is available, the second network device sends to the first network device a query response packet for triggering the first network device to perform a switchback from a standby routing into a primary routing. After the troubleshooting of the second network device, when the routing from the second network device to the destination device is detected to be available by the second network device, the second network device then triggers the first network device to perform the switchback from the standby routing into the primary routing , thus reducing recovery waiting time of the switchback, guaranteeing that service data transmitted from the first network device to the second network device can be transmitted to the destination device, and facilitating smooth transmission of the service data.

Description

一种延时回切的方法、设备及系统Method, device and system for delaying back cutting
本申请要求于2014年12月5日提交中国专利局、申请号为CN 201410736357.6、发明名称为“一种延时回切的方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 5, 2014, the Chinese Patent Office, the application number is CN 201410736357.6, and the invention is entitled "A method, device and system for delay-returning". The citations are incorporated herein by reference.
技术领域Technical field
本发明涉及通信技术领域,特别是涉及一种延时回切的方法、设备及系统。The present invention relates to the field of communications technologies, and in particular, to a method, device, and system for delay back-cutting.
背景技术Background technique
基于分组传送网(Packet Transport Network,PTN)的无线接入网络(Radio Access Network,RAN)主要采用静态路由技术,各个网络节点标签及路由等均静态配置。The Radio Access Network (RAN) based on the Packet Transport Network (PTN) mainly adopts static routing technology, and each network node label and route are statically configured.
图1为PTN RAN网络结构示意图,所述PTN RAN网络包括接入环和汇聚环。由图1所示,设备101、设备102、设备103和设备104组成接入环,设备103、设备104、设备105以及设备106组成汇聚环。设备101和设备102为低端的报文传输网络(Packet Transport Network,PTN)设备,下挂基站,仅属于二层网络,被称为用户侧运营商边缘(User-end Provider Edge,UPE)设备。设备101和设备102部署虚拟租用链路(Virtual Leased Line,VLL)双归到设备103和设备104。设备103和设备104为高端PTN设备,既属于二层网络又属于三层网络,被称为上层运营商边缘(Super-stratum Provider Edge,SPE)设备。设备103和设备104将所述VLL接入三层虚拟专用网(Layer 3Virtual Private Network,L3VPN),实现二层网络业务到三层网络业务的转换。设备105和设备106也是高端PTN设备,下挂移动管理实体(Mobility Management Entity,MME)设备或信令网关(Signaling Gateway,SGW),仅属于三层网络,被称为网络核心侧运营商边缘(Network Provider Edge,NPE)设备。汇聚环中SPE设备至NPE设备之间采用L3VPN网络进行业务数据传输。 FIG. 1 is a schematic diagram of a PTN RAN network structure, where the PTN RAN network includes an access ring and an aggregation ring. As shown in FIG. 1, the device 101, the device 102, the device 103, and the device 104 form an access ring, and the device 103, the device 104, the device 105, and the device 106 form an aggregation ring. The device 101 and the device 102 are low-end packet transport network (PTN) devices, and the downlink base station is only a Layer 2 network, and is called a User-end Provider Edge (UPE) device. . The device 101 and the device 102 deploy a Virtual Leased Line (VLL) dual to the device 103 and the device 104. The device 103 and the device 104 are high-end PTN devices, and belong to the Layer 2 network and the Layer 3 network. They are called Super-stratum Provider Edge (SPE) devices. The device 103 and the device 104 connect the VLL to a Layer 3 virtual private network (L3VPN) to implement conversion of Layer 2 network services to Layer 3 network services. The device 105 and the device 106 are also high-end PTN devices, and are connected to a Mobility Management Entity (MME) device or a Signaling Gateway (SGW), which belongs to only a Layer 3 network and is called a network core side operator edge ( Network Provider Edge, NPE) device. The L3VPN network is used between the SPE device and the NPE device in the aggregation ring to transmit service data.
若所述PTN RAN网络中SPE节点出现故障,会导致二层网络与三层网络之间的业务数据传输中断。为了增加所述PTN RAN网络对业务数据传输的可靠性,需在NPE节点上部署VPN快速重路由(Virtual Private Network Fast Reroute,VPN FRR)。例如:设备105上部署了VPN FRR,设备105到基站A的静态路由中,设备105到设备103为业务数据传输的主用路由,设备105到设备104为业务数据传输的备用路由。当设备103故障时,设备105上的网络管理功能(Operation,Administration and Maintenance,OAM)检测到设备103与设备105之间的流量工程(Traffic Engineering,TE)隧道故障,设备105将主用路由切换到备用路由,设备105发送到基站A的业务数据通过所述备用路由传输到基站A。当设备105与设备103之间的TE隧道恢复时,设备105将备用路由回切到主用路由,设备105将发送到基站A的业务数据回切到主用路由进行传输。If the SPE node in the PTN RAN network fails, the service data transmission between the Layer 2 network and the Layer 3 network is interrupted. In order to increase the reliability of the PTN RAN network for service data transmission, a virtual private network fast reroute (VPN FRR) needs to be deployed on the NPE node. For example, the VPN FRR is deployed on the device 105, the static route of the device 105 to the base station A, the device 105 to the device 103 are the primary routes for the service data transmission, and the devices 105 to 104 are the alternate routes for the service data transmission. When the device 103 fails, the Network Management Function (OAM) on the device 105 detects a Traffic Engineering (TE) tunnel failure between the device 103 and the device 105, and the device 105 switches the primary route. To the alternate route, the service data sent by the device 105 to the base station A is transmitted to the base station A through the alternate route. When the TE tunnel between the device 105 and the device 103 is restored, the device 105 switches back the backup route to the primary route, and the device 105 switches back the service data sent to the base station A to the primary route for transmission.
但是,现有技术中设备105与设备103之间的TE隧道恢复时,设备105与设备103之间的主用路由立即生效,此时,设备103到基站的路由可能还没有恢复,此时若立即触发VPN FRR回切,设备105将备用路由回切到主用路由,设备103接收到设备105利用所述主用路传输的业务数据后,不能将业务数据传输至基站A,导致所述业务数据丢失。However, when the TE tunnel between the device 105 and the device 103 is restored in the prior art, the primary route between the device 105 and the device 103 takes effect immediately. At this time, the route from the device 103 to the base station may not be restored. The VPN FRR is switched back, the device 105 switches the backup route back to the primary route, and after receiving the service data transmitted by the device 105, the device 103 cannot transmit the service data to the base station A, causing the service. data lost.
目前,技术人员在解决在NPE设备上进行VPN FRR回切后业务数据丢失的问题时,在NPE设备上设置足够长的VPN FRR回切的等待恢复时间,保障在延时时间内SPE设备到基站A的路由可用。At present, the technicians set a long enough VPN FRR switchback waiting recovery time on the NPE device to solve the problem of the service data loss after the VPN FRR switchback on the NPE device, ensuring that the SPE device reaches the base station within the delay time. A route is available.
但是,采用设置足够长的VPN FRR回切的等待恢复时间,会使NPE设备的业务数据长时间在备用路由上进行传输,会增加备用路由的业务数据拥堵,并且,若SPE设备故障排除后,所述SPE设备与其他设备之间的连接故障(其他设备的单板无法在所述SPE设备上注册),就会产生业务数据传输持续中断,即使设置足够长的VPN FRR回切的等待恢复时间也无法解决业务数据持续中断的问题。However, if the standby data recovery time of the VPN FRR is set to be long enough, the service data of the NPE device will be transmitted on the backup route for a long time, which will increase the service data congestion of the backup route, and if the SPE device is faulty, If the connection between the SPE device and other devices is faulty (the board of other devices cannot be registered on the SPE device), the service data transmission will continue to be interrupted, even if the VPN FRR is cut back and waits for recovery time. It also does not solve the problem of continuous interruption of business data.
发明内容Summary of the invention
本发明实施例在于提供延时回切的方法、设备及系统,当所述第二网络设备与目的设备之间的路由可用时,再触发所述第一网络设备将备用路 由回切到主用路由,解决了由于所设置的回切等待恢复时间太长,导致备用路由的业务数据拥堵的问题,也避免了由于第二网络设备到目的设备的路由无法恢复所导致的业务数据持续中断的问题。An embodiment of the present invention provides a method, device, and system for delaying back-cutting. When a route between the second network device and the destination device is available, the first network device is triggered to use the alternate path. The problem that the service data of the standby route is congested due to the setting of the switchback waiting recovery time is too long, and the route of the second network device to the destination device cannot be recovered. The problem of continuous interruption of business data.
为此,本发明解决技术问题的技术方案是:To this end, the technical solution of the present invention to solve the technical problem is:
本发明实施例第一方面提供一种延时回切的方法,所述方法包括:A first aspect of the embodiments of the present invention provides a method for delay backcutting, where the method includes:
第一网络设备向第二网络设备发送查询报文,所述查询报文用于触发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可用,所述第二网络设备为主用的网络设备;The first network device sends a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is available, and the second network device Main network equipment;
所述第一网络设备接收到所述第二网络设备发送的查询响应报文,所述第一网络设备将备用路由回切到主用路由;所述查询响应报文用于指示所述第二网络设备与所述目的设备之间的路由可用;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。Receiving, by the first network device, the query response message sent by the second network device, where the first network device sends back the backup route to the primary route; the query response message is used to indicate the second A route between the network device and the destination device is available; the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; the destination address of the primary route is the destination The IP address of the device, the next hop is the second network device, and the third network device is the backup network device of the second network device.
在本发明实施例第一方面第一种可能的实施方式中,所述第一网络设备向第二网络设备发送查询报文之前,还包括:In a first possible implementation manner of the first aspect of the embodiment of the present invention, before the sending, by the first network device, the query message to the second network device, the method further includes:
当第二网络设备故障排除后,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接。After the second network device is faulty, the first network device resumes connection with the traffic engineering TE tunnel of the second network device.
结合本发明实施例第一方面至第一方面第一种可能的实施方式,在第二种可能的实施方式中,所述第一网络设备将备用路由回切到主用路由包括:With reference to the first aspect of the embodiments of the present invention to the first possible implementation manner of the first aspect, in the second possible implementation manner, the first network device backing the backup route to the primary route includes:
所述第一网络设备建立所述主用路由的转发表项,并激活所述转发表项;The first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
结合本发明实施例第一方面至第一方面第一种可能的实施方式,在第三种可能的实施方式中,所述第一网络设备向所述第二网络设备发送查询报文前,所述方法还包括:With reference to the first aspect of the embodiments of the present invention to the first possible implementation manner of the first aspect, in a third possible implementation manner, before the first network device sends the query message to the second network device, The method also includes:
所述第一网络设备生成所述主用路由的转发表项。 The first network device generates a forwarding entry of the primary route.
结合本发明实施例第一方面第三种可能的实施方式,在第四种可能的实施方式中,所述第一网络设备将备用路由回切到主用路由包括:With reference to the third possible implementation manner of the first aspect of the embodiments of the present invention, in a fourth possible implementation manner, the first network device backing the backup route to the primary route includes:
所述第一网络设备激活所述转发表项;The first network device activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
结合本发明实施例第一方面至第一方面第四种可能的实施方式,在第五种可能的实施方式中,With reference to the first aspect of the embodiments of the present invention to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner,
所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;The first network device is a network core side carrier edge NPE device or an operator edge PE device;
所述第二网络设备和所述第三网络设备为上层运营商边缘SPE设备或者NPE设备。The second network device and the third network device are upper layer operator edge SPE devices or NPE devices.
本发明实施例第二方面提供一种延时回切的方法,所述方法包括:A second aspect of the embodiments of the present invention provides a method for delay backcutting, where the method includes:
第二网络设备接收第一网络设备发送的查询报文,所述第二网络设备为主用的网络设备;Receiving, by the second network device, the query message sent by the first network device, where the second network device is the network device for the primary network device;
所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用;The second network device detects, according to the query message, whether a route from the second network device to the destination device is available;
当从所述第二网络设备到目的设备的路由可用时,所述第二网络设备向所述第一网络设备发送查询响应报文,所述查询响应报文用于触发所述第一网络设备将备用路由回切到主用路由;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。When the route from the second network device to the destination device is available, the second network device sends an inquiry response message to the first network device, where the query response message is used to trigger the first network device The backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device. The address, the next hop is the second network device, and the third network device is the backup network device of the second network device.
在本发明实施例第二方面第一种可能的实施方式中,所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In a first possible implementation manner of the second aspect of the embodiment of the present invention, the detecting, by the second network device, whether the route from the second network device to the destination device is available according to the query message includes:
所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址 所对应的ARP表项。When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether the IP address of the destination device exists. The corresponding ARP entry.
在本发明实施例第二方面第二种可能的实施方式中,所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In a second possible implementation manner of the second aspect of the embodiment of the present invention, the detecting, by the second network device, whether the route from the second network device to the destination device is available according to the query message includes:
所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。The second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
结合本发明实施例第二方面第一种可能的实现方式至第二种可能的实现方式,在第三种可能的实现方式中,还包括:With reference to the first possible implementation to the second possible implementation of the second aspect of the embodiments of the present invention, in a third possible implementation manner, the method further includes:
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
结合本发明实施例第二方面第一种可能的实现方式至第二种可能的实现方式,在第四种可能的实现方式中,还包括:With reference to the first possible implementation manner to the second possible implementation manner of the second aspect of the embodiment of the present invention, in a fourth possible implementation manner, the method further includes:
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
结合本发明第二方面至第二方面第四种可能的实现方式,在第五种可能的实现方式中,With reference to the second aspect of the present invention to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner,
所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;The first network device is a network core side carrier edge NPE device or an operator edge PE device;
所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;The second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
所述第四网络设备为用户侧运营商边缘UPE设备。The fourth network device is a user-side operator edge UPE device.
本发明实施例第三方面提供一种延时回切的方法,所述方法包括:A third aspect of the embodiments of the present invention provides a method for delay backcutting, where the method includes:
当第二网络设备故障排除后,所述第二网络设备获得关联信息,所述关联信息包括目的设备的IP地址和第一网络设备的标识,所述关联信息指示所述第二网络设备是所述第一网络设备上的主用路由的下一跳设备,所述主用路由的目的地址为目的设备的IP地址; After the second network device is faulty, the second network device obtains the association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is a next hop device of the primary route on the first network device, where the destination address of the primary route is an IP address of the destination device;
所述第二网络设备获取恢复的地址转换协议ARP表;The second network device acquires a restored address translation protocol ARP table;
所述第二网络设备查询所述恢复的ARP表,获取ARP表项中的目的设备的IP地址,所述目的设备的IP地址用于标识目的设备;The second network device queries the restored ARP table to obtain an IP address of the destination device in the ARP entry, and the IP address of the destination device is used to identify the destination device.
所述第二网络设备查询到所述目的设备的路由是否可用;Determining, by the second network device, whether a route to the destination device is available;
当所述第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中获得所述目的设备的IP地址对应的第一网络设备的标识;When the route from the second network device to the destination device is available, the second network device obtains, from the association information, an identifier of the first network device corresponding to the IP address of the destination device;
所述第二网络设备建立与所述第一网络设备之间的主用路由,触发所述第一网络设备将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The second network device establishes an active route with the first network device, and triggers the first network device to switch back the backup route to the primary route, where the destination address of the backup route is The IP address of the destination device, the next hop is the third network device, and the third network device is the backup network device of the second network device.
本发明实施例第三方面第一种可能的实施方式中,所述第二网络设备获取已恢复的ARP表包括:In the first possible implementation manner of the third aspect of the embodiment, the acquiring, by the second network device, the restored ARP table includes:
所述第二网络设备从所述第三网络设备备份ARP表,将所备份的ARP表作为已恢复的ARP表;The second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
或者,or,
所述第二网络设备利用预设的ARP配置文件生成ARP表,将所生成的ARP表作为已恢复的ARP表。The second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
结合本发明实施例第三方面至第三方面第一种可能的实施方式,在第二种可能的实施方式中,所述第二网络设备查询到所述目的设备的路由是否可用包括:With reference to the third aspect of the embodiments of the present invention to the first possible implementation manner of the third aspect, in a second possible implementation manner, the second network device querying whether the routing of the destination device is available includes:
所述第二网络设备检测所述主用SPE设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。The second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
结合本发明实施例第三方面至第三方面第一种可能的实施方式,在第三种可能的实施方式中,所述第二网络设备查询到所述目的设备的路由是否可用包括:With reference to the third aspect of the embodiments of the present invention to the first possible implementation manner of the third aspect, in a third possible implementation manner, the second network device querying whether the routing of the destination device is available includes:
所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。The second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
结合本发明实施例第三方面至第三方面第三种可能的实施方式,在第 四种可能的实施方式中,In combination with the third aspect to the third aspect of the third embodiment of the present invention, Of the four possible implementations,
所述第一网络设备为远网络NPE设备或者运营商边缘PE设备;The first network device is a far network NPE device or an operator edge PE device;
所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;The second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
所述第四网络设备为用户侧运营商边缘UPE设备。The fourth network device is a user-side operator edge UPE device.
本发明实施例第四方面提供一种延时回切的第一网络设备,所述第一网络设备包括:A fourth aspect of the embodiments of the present invention provides a first network device that is delayed and switched back. The first network device includes:
发送单元,用于向第二网络设备发送查询报文,所述查询报文用于触发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可用,所述第二网络设备为主用的网络设备;a sending unit, configured to send a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is available, the second network The network device used by the device;
接收单元,用于接收到所述第二网络设备发送的查询响应报文,并将所述查询响应报文发送至所述处理单元;a receiving unit, configured to receive the query response message sent by the second network device, and send the query response message to the processing unit;
处理单元,用于生成所述查询报文,并将所述查询报文发送至所述发送单元;a processing unit, configured to generate the query message, and send the query message to the sending unit;
所述接收单元接收到所述第二网络设备发送的查询响应报文后,将备用路由回切到主用路由;所述查询响应报文用于指示所述第二网络设备与所述目的设备之间的路由可用;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。After receiving the query response message sent by the second network device, the receiving unit returns the backup route to the primary route, where the query response message is used to indicate the second network device and the destination device. The route between the destination is the IP address of the destination device, the next hop is the third network device, and the destination address of the primary route is the IP address of the destination device. Jumping to the second network device; the third network device is a backup network device of the second network device.
本发明实施例第四方面第一种可能的实施方式中,In a first possible implementation manner of the fourth aspect of the embodiments of the present invention,
所述处理单元,还用于当第二网络设备故障排除后,向第二网络设备发送查询报文前,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接。The processing unit is further configured to: after the second network device is faulty, send the query message to the second network device, and the first network device resumes the connection with the traffic engineering TE tunnel of the second network device.
结合本发明实施例第四方面至第四方面第一种可能的实施方式,在第二种可能的实施方式中,所述处理单元用于将备用路由切换到主用路由包括:With reference to the fourth aspect of the embodiments of the present invention to the first possible implementation manner of the fourth aspect, in the second possible implementation manner, the processing unit, configured to switch the backup route to the primary route, includes:
建立所述主用路由的转发表项,并激活所述转发表项;Establishing a forwarding entry of the primary route, and activating the forwarding entry;
利用所述转发表项向所述第二网络设备转发数据报文。 And forwarding, by using the forwarding entry, the data packet to the second network device.
结合本发明实施例第四方面至第四方面第一种可能的实施方式,在第三种可能的实施方式中,With reference to the fourth aspect to the first possible implementation manner of the fourth aspect of the present invention, in a third possible implementation manner,
所述处理单元,还用于生成所述主用路由的转发表项。The processing unit is further configured to generate a forwarding entry of the primary route.
结合本发明实施例第四方面第三种可能的实施方式,在第四种可能的实施方式中,所述处理单元用于将备用路由切换到主用路由包括:With reference to the third possible implementation manner of the fourth aspect of the embodiments of the present invention, in a fourth possible implementation, the processing unit, configured to switch the backup route to the primary route, includes:
激活所述转发表项;Activating the forwarding entry;
利用所述转发表项向所述第二网络设备转发数据报文。And forwarding, by using the forwarding entry, the data packet to the second network device.
结合本发明第四方面至第四方面第四种可能的实施方式,在第五种可能的实施方式中,With reference to the fourth possible aspect of the fourth aspect to the fourth aspect of the present invention, in a fifth possible implementation manner,
所述第一网络设备为网络NPE设备或者运营商边缘PE设备;The first network device is a network NPE device or an operator edge PE device;
所述第二网络设备和所述第三网络设备为上层运营商边缘SPE设备或者NPE设备。The second network device and the third network device are upper layer operator edge SPE devices or NPE devices.
本发明实施例第五方面提供一种延时回切的第二网络设备,所述第二网络设备包括:The fifth aspect of the embodiment of the present invention provides a second network device that is delayed and switched back. The second network device includes:
接收单元,用于接收第一网络设备发送的查询报文,将所述查询报文发送至处理单元,所述第二网络设备为主用的网络设备;a receiving unit, configured to receive a query message sent by the first network device, and send the query message to a processing unit, where the second network device is a network device for use;
所述处理单元,用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用;The processing unit is configured to detect, according to the query message, whether a route from the second network device to the destination device is available;
发送单元,用于当从所述第二网络设备到目的设备的路由可用时,向所述第一网络设备发送查询响应报文,所述查询响应报文用于触发所述第一网络设备将备用路由回切到主用路由;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。a sending unit, configured to send a query response message to the first network device when the route from the second network device to the destination device is available, where the query response message is used to trigger the first network device to be The backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device. The next hop is the second network device; the third network device is the backup network device of the second network device.
在本发明第五方面第一种可能的实施方式中,所述处理单元用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In a first possible implementation manner of the fifth aspect of the present invention, the processing unit, configured to detect, according to the query message, whether a route from the second network device to a destination device is available, includes:
所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述 第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。When the second network device completes backup of the ARP table from the third network device, The second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
在本发明实施例第五方面第二种可能的实施方式中,所述处理单元用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In a second possible implementation manner of the fifth aspect of the embodiment of the present invention, the processing unit is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。The second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
结合本发明实施例第五方面第一种可能的实施方式至本发明实施例第五方面第二种可能的实施方式,在在第三种可能的实施方式中,With reference to the first possible implementation manner of the fifth aspect of the embodiment of the present invention to the second possible implementation manner of the fifth aspect of the embodiment of the present invention, in a third possible implementation manner,
所述处理单元,还用于当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。The processing unit is further configured to: when the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available. The fourth network device is connected to the destination device.
结合本发明实施例第五方面第一种可能的实施方式至本发明实施例第五方面第二种可能的实施方式,在在第四种可能的实施方式中,With reference to the first possible implementation manner of the fifth aspect of the embodiment of the present invention to the second possible implementation manner of the fifth aspect of the embodiment of the present invention, in a fourth possible implementation manner,
所述处理单元,还用于当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。The processing unit is further configured to: when the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available. The protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
结合本发明实施例第五方面至第五方面第四种可能的实施方式,在第五种可能的实施方式中,With reference to the fourth possible aspect of the fifth to fifth aspects of the embodiments of the present invention, in a fifth possible implementation manner,
所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;The first network device is a network core side carrier edge NPE device or an operator edge PE device;
所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;The second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
所述第四网络设备为用户侧运营商边缘UPE设备。The fourth network device is a user-side operator edge UPE device.
本发明实施例第六方面提供一种延时回切的系统,所述系统包括:A sixth aspect of the embodiments of the present invention provides a system for delaying and cutting back, the system comprising:
本发明实施例第四方面至第四方面第四方面第五种可能的实施方式所述的延时回切的第一网络设备以及本发明第五方面至第五方面第五种可能的实施方式所述的延时回切的第二网络设备。 The first network device of the delayed back-cut according to the fifth aspect of the fourth aspect of the fourth aspect of the present invention, and the fifth possible aspect of the fifth aspect to the fifth aspect of the present invention The delaying back-cut second network device.
本发明实施例第七方面提供一种延时回切的第二网络设备,所述第二网络设备包括:The seventh aspect of the embodiment of the present invention provides a second network device that is delayed and switched back. The second network device includes:
处理单元,用于当故障排除后,获得关联信息,所述关联信息包括目的设备的IP地址和第一网络设备的标识,所述关联信息指示所述第二网络设备是所述第一网络设备上的主用路由的下一跳设备,所述主用路由的目的地址为目的设备的IP地址;获取恢复的地址转换协议ARP表;查询所述恢复的ARP表,获取ARP表项中的目的设备的IP地址,所述目的设备的IP地址用于标识目的设备;查询到所述目的设备的路由是否可用;当所述第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中获得所述目的设备的IP地址对应的第一网络设备的标识;建立与所述第一网络设备之间的主用路由,触发所述第一网络设备将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。a processing unit, configured to: after the fault is rectified, obtain association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is the first network device The next hop of the primary route, the destination address of the primary route is the IP address of the destination device; the ARP table of the restored address translation protocol is obtained; the ARP table is queried for the purpose of obtaining the ARP entry. The IP address of the device, the IP address of the destination device is used to identify the destination device; the route to the destination device is queried; and when the route from the second network device to the destination device is available, the second The network device obtains, from the association information, an identifier of the first network device corresponding to the IP address of the destination device, establishes an active route with the first network device, and triggers the first network device to use an alternate route. Switching back to the primary route, the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; the third network device is a Backup network device of the second network device.
本发明实施例第七方面第一种可能的实施方式中,所述处理单元用于获取已恢复的ARP表包括:In the first possible implementation manner of the seventh aspect of the embodiment of the present invention, the processing unit, configured to obtain the restored ARP table, includes:
所述第二网络设备从所述第三网络设备备份ARP表,将所备份的ARP表作为已恢复的ARP表;The second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
或者,or,
所述第二网络设备利用预设的ARP配置文件生成ARP表,将所生成的ARP表作为已恢复的ARP表。The second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
结合本发明实施例第七方面第一种可能的实施方式,在第二种可能的实施方式中,所述处理单元查询到所述目的设备的路由是否可用包括:With reference to the first possible implementation manner of the seventh aspect of the embodiments of the present invention, in a second possible implementation manner, the processing unit querying whether the route to the destination device is available includes:
所述第二网络设备检测所述主用SPE设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。The second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
结合本发明实施例第七方面第一种可能的实施方式,在第三种可能的实施方式中,所述处理单元查询到所述目的设备的路由是否可用包括:With reference to the first possible implementation manner of the seventh aspect of the embodiments of the present invention, in a third possible implementation manner, the processing unit querying whether the route to the destination device is available includes:
所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。 The second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
结合本发明实施例第七方面至第七方面第二种可能的实施方式,在第三种可能的实施方式中,With reference to the second possible implementation manner of the seventh to seventh aspects of the embodiments of the present invention, in a third possible implementation manner,
所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;The first network device is a network core side carrier edge NPE device or an operator edge PE device;
所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;The second network device and the third network device are upper-layer operator edge SPE devices or NPE devices;
所述第四网络设备为用户侧运营商边缘UPE设备。The fourth network device is a user-side operator edge UPE device.
本发明实施例第八方面提供一种延时回切的系统,所述系统包括:An eighth aspect of the embodiments of the present invention provides a system for delaying back-cutting, where the system includes:
本发明第七方面至第七方面第三种可能的实施方式所述的延时回切的第二网络设备以及第一网络设备;The second network device and the first network device of the delay back-cut according to the third aspect of the present invention;
所述第一网络设备,用于与所述第二网络设备建立主用路由后,将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。通过上述技术方案可知,本发明实施例有如下有益效果:The first network device is configured to: after the primary route is established with the second network device, the backup route is switched back to the primary route, and the destination address of the backup route is an IP address of the destination device. The next hop is the third network device; the destination address of the primary route is the IP address of the destination device, the next hop is the second network device; and the third network device is the second network device Backup network device. It can be seen from the above technical solutions that the embodiments of the present invention have the following beneficial effects:
本发明实施例提供了延时回切的方法、设备及系统,第一网络设备向第二网络设备发送查询报文;第二网络设备接收到所述查询报文后,根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用;当从所述第二网络设备到目的设备的路由可用时,所述第二网络设备向所述第一网络设备发送查询响应报文,触发所述第一网络设备将备用路由回切到主用路由。本发明实施例中,第二网络设备故障排除后,第二网络设备先检测从所述第二网络设备到目的设备之间的路由可用时,再触发第一网络设备将备用路由回切到主用路由,从而减少回切的等待恢复时间;并且可以保证第一网络设备传输至第二网络设备的业务数据能够传输至目的设备,实现业务数据的传输通畅。The embodiment of the present invention provides a method, a device, and a system for delaying and cutting back. The first network device sends an inquiry message to the second network device. After receiving the query message, the second network device receives the query message according to the query message. Detecting whether a route from the second network device to the destination device is available; when the route from the second network device to the destination device is available, the second network device sends a query response message to the first network device The first network device is triggered to switch back the alternate route to the primary route. In the embodiment of the present invention, after the second network device is faulty, the second network device first detects that the route between the second network device and the destination device is available, and then triggers the first network device to switch back the backup route to the primary device. The routing is used to reduce the waiting time for the recovery, and the service data transmitted by the first network device to the second network device can be transmitted to the destination device, so that the transmission of the service data is smooth.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面 描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, obviously, the following The drawings in the description are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work.
图1为本发明实施例PTN RAN网络结构示意图;1 is a schematic structural diagram of a PTN RAN network according to an embodiment of the present invention;
图2为本发明实施例所提供的延时回切的方法流程图;2 is a flowchart of a method for delaying back-cut according to an embodiment of the present invention;
图3为本发明实施例提供的延时回切的方法流程图;FIG. 3 is a flowchart of a method for delay back-cut according to an embodiment of the present invention;
图4为本发明实施例提供的延时回切的方法VPN FRR场景实例流程图;4 is a flowchart of an example of a VPN FRR scenario in a method for delaying backhaul according to an embodiment of the present invention;
图5为本发明实施例提供的延时回切的方法流程图;FIG. 5 is a flowchart of a method for delay back-cut according to an embodiment of the present invention;
图6为本发明实施例提供的延时回切的第一网络设备结构示意图;FIG. 6 is a schematic structural diagram of a first network device for delay backhaul according to an embodiment of the present disclosure;
图7为本发明实施例提供的延时回切的第二网络设备的结构示意图;FIG. 7 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present disclosure;
图8为本发明实施例所提供的延时回切系统结构示意图;FIG. 8 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention; FIG.
图9为本发明实施例提供的延时回切的第二网络设备结构示意图;FIG. 9 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention;
图10为本发明实施例提供的延时回切的系统结构示意图;FIG. 10 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention; FIG.
图11为本发明实施例提供的延时回切的第一网络设备结构示意图;FIG. 11 is a schematic structural diagram of a first network device for delay backhaul according to an embodiment of the present invention;
图12为本发明实施例提供的延时回切的第二网络设备的结构示意图;FIG. 12 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present disclosure;
图13为本发明实施例所提供的延时回切系统结构示意图;FIG. 13 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention;
图14为本发明实施例所提供的延时回切的第二网络设备结构示意图FIG. 14 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention;
图15为本发明实施例提供的延时回切的系统结构示意图。FIG. 15 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供了延时回切的方法、装置和系统,第二网络设备到目的设备的路由可用时,及时触发第一网络设备将备用路由回切到主用路由,减少回切的等待恢复时间可以保证第一网络设备传输至第二网络设备的业务数据能够传输至目的设备,实现业务数据的传输通畅。The embodiment of the invention provides a method, a device and a system for delaying back-cutting. When the route from the second network device to the destination device is available, the first network device is triggered to switch back the backup route to the primary route in time to reduce the waiting for the switchback. The recovery time can ensure that the service data transmitted by the first network device to the second network device can be transmitted to the destination device, so that the transmission of the service data is smooth.
本发明实施例所提供的方法,不仅适用于虚拟专用网(Virtual Private Network,VPN),还适用于IP承载网。The method provided by the embodiment of the present invention is applicable not only to a virtual private network (VPN) but also to an IP bearer network.
下面结合附图对本发明实施例进行详细说明。 The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图2为本发明实施例所提供的延时回切的方法流程图,包括:FIG. 2 is a flowchart of a method for delay back-cut according to an embodiment of the present invention, including:
步骤201:第一网络设备向第二网络设备发送查询报文,所述查询报文用于触发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可用,所述第二网络设备为主用的网络设备。Step 201: The first network device sends a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is available. Two network devices are network devices for the main use.
步骤202:所述第一网络设备接收到所述第二网络设备发送的查询响应报文,所述第一网络设备将备用路由回切到主用路由;所述查询响应报文用于指示所述第二网络设备与所述目的设备之间的路由可用。Step 202: The first network device receives the query response message sent by the second network device, and the first network device sends back the backup route to the primary route. The query response message is used to indicate the location. A route between the second network device and the destination device is available.
所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The destination address of the standby route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, and the next hop is the second a network device; the third network device is a backup network device of the second network device.
第二网络设备故障排除后重新启动,重启后的第二网络设备与第一网络设备建立通信连接。第一网络设备通过所建立的通信连接向第二网络设备发送查询报文,所述查询报文用于触发所述第二网络设备检测所述第二网络设备到目的设备的路由是否可用。当第二网络设备检测到目的设备的路由可用时,第一网络设备接收到第二网络设备发送的查询响应报文,将备用路由回切到主用路由。The second network device is restarted after the fault is rectified, and the restarted second network device establishes a communication connection with the first network device. The first network device sends a query message to the second network device by using the established communication connection, where the query message is used to trigger the second network device to detect whether the route of the second network device to the destination device is available. When the second network device detects that the route of the destination device is available, the first network device receives the query response packet sent by the second network device, and switches the backup route back to the primary route.
第一网络设备与第二网络设备之间的路由生效后需要满足两个条件:第一,第一网络设备的转发层生成转发表项;第二,激活所述转发表项。满足上述两个条件,第一网络设备与第二网络设备之间的主用路由生效,才能执行将备用路由回切到主用路由。下面对第一网络设备在主用路由生效前的两个不同阶段执行回切延时进行具体说明。After the route between the first network device and the second network device takes effect, two conditions are met: first, the forwarding layer of the first network device generates a forwarding entry; and second, the forwarding entry is activated. If the primary route between the first network device and the second network device is valid, the backup route can be backed up to the primary route. The following describes the first network device performing the switchback delay at two different stages before the active route takes effect.
在MPLS L3VPN第一应用场景中,所述第一网络设备向第二网络设备发送查询报文之前,还包括:In the first application scenario of the MPLS L3VPN, before the first network device sends the query message to the second network device, the method further includes:
当第二网络设备故障排除后,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接。After the second network device is faulty, the first network device resumes connection with the traffic engineering TE tunnel of the second network device.
第二网络设备故障排除后,第二网络设备与第一网络设备进行OAM协商,恢复与所述第二网络设备的TE隧道连接。第一网络设备与第二网络设备恢复TE隧道连接后,第一网络设备的控制层并没有向转发层下发 路由表项,转发层没有生成转发表项,即第一网络设备与第二网络设备之间的主用路由无法生效,不能执行将备用路由回切到主用路由,在控制层执行回切延时。第一网络设备向第二网络设备发送查询报文,触发第二网络设备检测到目的设备的路由是否可用。After the second network device is faulty, the second network device performs OAM negotiation with the first network device to restore the TE tunnel connection with the second network device. After the first network device and the second network device resume the TE tunnel connection, the control layer of the first network device is not delivered to the forwarding layer. In the routing entry, the forwarding layer does not generate a forwarding entry. That is, the primary route between the first network device and the second network device cannot take effect. The backup route cannot be switched back to the primary route. Time. The first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available.
在此MPLS L3VPN第一应用场景中,所述第一网络设备将备用路由回切到主用路由包括:In the first application scenario of the MPLS L3VPN, the first network device backs up the backup route to the primary route, including:
所述第一网络设备建立所述主用路由的转发表项,并激活所述转发表项;The first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
第一网络设备与第二网络设备恢复TE隧道连接后,在第一网络设备的控制层向转发层下发路由表项,转发层根据所述路由表项生成转发表项前,所述第一网络设备向第二网络设备发送查询报文,执行延时回切。当第二网络设备与目的设备之间的路由可用时,第一网络设备接收到第二网络设备发送的查询响应报文,第一网络设备将备用路由回切到主用路由。执行回切时,由于第一网络设备与第二网络设备之间仅仅建立了TE隧道,需要控制层向转发层下发路由表项,转发层根据所述路由表项生成转发表项,并激活所生成的转发表项,即设置所述转发表项为主用。此时,第一网络设备与第二网络设备之间的主用路由生效,第一网络设备将备用路由回切到主用路由,利用所述转发表项向所述第二网络设备转发数据报文。After the first network device and the second network device restore the TE tunnel connection, the routing layer is sent to the forwarding layer at the control layer of the first network device, and the forwarding layer generates the forwarding entry according to the routing entry. The network device sends a query message to the second network device, and performs a delay switchback. When the route between the second network device and the destination device is available, the first network device receives the query response message sent by the second network device, and the first network device backs up the backup route to the primary route. When the switchback is performed, the routing layer is sent to the forwarding layer by the control layer. The forwarding layer generates a forwarding entry based on the routing entry and activates the routing entry. The generated forwarding entry is set to be the primary forwarding entry. At this time, the primary route between the first network device and the second network device takes effect, and the first network device forwards the backup route to the primary route, and forwards the datagram to the second network device by using the forwarding entry. Text.
在MPLS L3VPN第二应用场景中,第一网络设备与第二网络设备恢复TE隧道连接后,并且所述第一网络设备向第二网络设备发送查询报文之前,还包括:In the second application scenario of the MPLS L3VPN, after the first network device and the second network device are restored to the TE tunnel, and the first network device sends the query message to the second network device, the method further includes:
所述第一网络设备生成所述主用路由的转发表项。The first network device generates a forwarding entry of the primary route.
第二网络设备故障排除后,第一网络设备与第一网络设备进行OAM协商,恢复与所述第二网络设备的TE隧道连接。第一网络设备与第二网络设备恢复TE隧道连接后,第一网络设备的控制层将生成的路由表项下发到转发层,转发层生成转发表项,并不激活所生成的转发表项,即第一网络设备与第二网络设备之间的主用路由无法生效,不能执行将备用路由 回切到主用路由,在转发层实现回切延时。第一网络设备向第二网络设备发送查询报文,触发第二网络设备检测到目的设备的路由是否可用。其中,激活所生成的转发表项指的是设置所述转发表项为主用。After the second network device is faulty, the first network device performs OAM negotiation with the first network device to restore the TE tunnel connection with the second network device. After the first network device and the second network device restore the TE tunnel connection, the control layer of the first network device sends the generated routing entry to the forwarding layer, and the forwarding layer generates a forwarding entry, and does not activate the generated forwarding entry. That is, the primary route between the first network device and the second network device cannot take effect, and the alternate route cannot be executed. Switch back to the primary route and implement the switchback delay at the forwarding layer. The first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available. The forwarding entry generated by the activation refers to setting the forwarding entry as the primary usage.
在此MPLS L3VPN第二应用场景中,所述第一网络设备将备用路由回切到主用路由包括:In the second application scenario of the MPLS L3VPN, the first network device backs up the backup route to the primary route, including:
所述第一网络设备激活所述转发表项;The first network device activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
第一网络设备与第二网络设备恢复TE隧道连接后,第一网络设备的控制层向转发层下发路由表项,所述转发层根据所述路由表项生成转发表项,在激活所生成的转发表项前,所述第一网络设备向第二网络设备发送查询报文,执行延时回切。当第二网络设备与目的设备之间的路由可用时,第一网络设备接收到第二网络设备发送的查询响应报文,第一网络设备将备用路由回切到主用路由。由于第一网络设备的控制层在发送查询报文前已经向转发层下发路由表项,转发层根据所述路由表项生成转发表项,执行回切时,第一网络设备激活所生成的转发表项,即设置所述转发表项为主用,此时,第一网络设备与第二网络设备之间的主用路由生效,第一网络设备将备用路由回切到主用路由,利用所述转发表项向所述第二网络设备转发数据报文。After the first network device and the second network device restore the TE tunnel connection, the control layer of the first network device sends a routing entry to the forwarding layer, and the forwarding layer generates a forwarding entry according to the routing entry, and generates the activation entry. Before the forwarding entry, the first network device sends a query message to the second network device, and performs a delayed switchback. When the route between the second network device and the destination device is available, the first network device receives the query response message sent by the second network device, and the first network device backs up the backup route to the primary route. The control layer of the first network device sends a routing entry to the forwarding layer before sending the query packet, and the forwarding layer generates a forwarding entry according to the routing entry, and when the switchback is performed, the first network device activates the generated entry. Forwarding the entry, that is, setting the forwarding entry as the primary usage. At this time, the primary route between the first network device and the second network device takes effect, and the first network device backs up the backup route to the primary route, and utilizes The forwarding entry forwards a data packet to the second network device.
在IP承载网第一应用场景中,第二网络设备故障排除后,第二网络设备与第一网络设备建立IP通信连接。第一网络设备与第二网络设备建立IP通信连接后,第一网络设备的控制层并没有向转发层下发路由表项,转发层无法生成转发表项,第一网络设备与第二网络设备的主用路由未生效,不能执行将备用路由回切到主用路由,实现控制层回切延时。第一网络设备向第二网络设备发送查询报文,触发第二网络设备检测到目的设备的路由是否可用。In the first application scenario of the IP bearer network, after the second network device is faulty, the second network device establishes an IP communication connection with the first network device. After the first network device establishes an IP communication connection with the second network device, the control layer of the first network device does not send a routing entry to the forwarding layer, and the forwarding layer cannot generate a forwarding entry, and the first network device and the second network device The primary route is not valid, and the backup route cannot be switched back to the primary route to implement the control layer switchback delay. The first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available.
当第二网络监测到目的设备的路由可用时,第一网络设备接收到第二网络设备发送的查询响应报文,第一网络设备将备用路由切换到主用路由包括: When the second network detects that the route of the destination device is available, the first network device receives the query response message sent by the second network device, and the first network device switches the backup route to the primary route, including:
所述第一网络设备建立所述主用路由的转发表项,并激活所述转发表项;The first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
此处与MPLS L3VPN第一应用场景中第一网络设备将备用路由切换到主用路由的方法类似,参考MPLS L3VPN第一应用场景中的描述,这里不再赘述。This is similar to the method in the first application scenario of the MPLS L3VPN in which the first network device switches the backup route to the primary route. For details, refer to the description in the first application scenario of the MPLS L3VPN.
在IP承载网应用场景中,所述第一网络设备向所述第二网络设备发送查询报文前,所述方法还包括:In the application scenario of the IP bearer network, before the first network device sends the query message to the second network device, the method further includes:
所述第一网络设备生成所述主用路由的转发表项。The first network device generates a forwarding entry of the primary route.
第二网络设备故障排除后,第二网络设备与第一网络设备建立IP通信连接,第一网络设备的控制层将生成的路由表项下发到转发层,所述转发层生成转发表项,并不激活所述转发表项,第一网络设备与第二网络设备之间的主用路由未生效,不能将备用路由切换至主用路由,在转发层实现回切延时。第一网络设备向第二网络设备发送查询报文,触发第二网络设备检测到目的设备的路由是否可用。After the second network device is faulty, the second network device establishes an IP communication connection with the first network device, and the control layer of the first network device sends the generated routing entry to the forwarding layer, and the forwarding layer generates a forwarding entry. The forwarding entry is not activated. The primary route between the first network device and the second network device is not valid. The backup route cannot be switched to the primary route, and the switchback delay is implemented at the forwarding layer. The first network device sends a query message to the second network device, and triggers the second network device to detect whether the route of the destination device is available.
当第二网络监测到目的设备的路由可用时,第一网络设备接收到第二网络设备发送的查询响应报文,第一网络设备将备用路由切换到主用路由包括:When the second network detects that the route of the destination device is available, the first network device receives the query response message sent by the second network device, and the first network device switches the backup route to the primary route, including:
所述第一网络设备激活所述转发表项;The first network device activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
此处与MPLS L3VPN第二应用场景中第一网络设备将备用路由切换到主用路由的方法类似,参考MPLS L3VPN第二应用场景中的描述,这里不再赘述。This is similar to the method in which the first network device switches the backup route to the primary route in the second application scenario of the MPLS L3VPN. For details, refer to the description in the second application scenario of the MPLS L3VPN, and details are not described herein.
这里需要说明的是,在实际应用场景中,所述第一网络设备可以为网络核心侧运营商边缘NPE设备,也可以为运营商边缘PE设备;所述第二网络设备可以为上层运营商边缘SPE设备,也可以为NPE设备;所述第三网络设备可以为上层运营商边缘SPE设备,也可以为NPE设备。 It should be noted that, in an actual application scenario, the first network device may be an edge NPE device of the network core side, or an edge PE device of the carrier; the second network device may be an edge of an upper carrier. The SPE device may also be an NPE device; the third network device may be an upper-layer operator edge SPE device or an NPE device.
图3为本发明实施例提供的延时回切的方法流程图,包括:FIG. 3 is a flowchart of a method for delay back-cut according to an embodiment of the present invention, including:
步骤301:第二网络设备接收第一网络设备发送的查询报文,所述第二网络设备为主用的网络设备。Step 301: The second network device receives the query message sent by the first network device, where the second network device is the primary network device.
第二网络设备的故障排除后,与第一网络设备建立通信连接。在第一网络设备与第二网络设备之间的主用路由生效前,第一网络设备向第二网络设备发生查询报文,所述查询报文用于触发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可用。After the fault of the second network device is removed, a communication connection is established with the first network device. Before the primary route between the first network device and the second network device takes effect, the first network device generates a query message to the second network device, where the query message is used to trigger the second network device to detect the slave device. Whether the route from the second network device to the destination device is available.
第一网络设备与第二网络设备之间的路由生效后需要满足两个条件:第一,第一网络设备的转发层生成转发表项;第二,激活所述转发表项。满足上述两个条件,第一网络设备与第二网络设备之间的主用路由生效,才能执行将备用路由回切到主用路由。第一网络设备可以在主用路由生效前的两个不同阶段执行回切延时,具体实现方式参考图1所示的本发明实施例所提供的延时回切的方法中的具体描述,这里不再赘述。After the route between the first network device and the second network device takes effect, two conditions are met: first, the forwarding layer of the first network device generates a forwarding entry; and second, the forwarding entry is activated. If the primary route between the first network device and the second network device is valid, the backup route can be backed up to the primary route. The first network device can perform the switchback delay in two different stages before the active route takes effect. For the specific implementation, refer to the detailed description in the method for delay backcutting provided by the embodiment of the present invention shown in FIG. No longer.
步骤302:所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用。Step 302: The second network device detects, according to the query message, whether a route from the second network device to the destination device is available.
第二网络设备所接收到的查询报文中携带有目的设备的IP地址,第二网络设备查询到所属查询报文中携带的IP地址所标识的目的设备的路由是否可用,当第二网络设备到目的设备的理由可用时,表示第一网络设备可以经由下一跳为第二网络设备的路由向目的设备传输业务数据;当第二网络设备到目的设备的路由不可用时,表示第一网络设备无法经由下一跳为第二网络设备的路由向目的设备传输业务数据。The query message received by the second network device carries the IP address of the destination device, and the second network device queries whether the route of the destination device identified by the IP address carried in the query message is available, and the second network device When the reason for the destination device is available, it indicates that the first network device can transmit the service data to the destination device via the next hop for the route of the second network device; when the route from the second network device to the destination device is unavailable, the first network device is indicated. The service data cannot be transmitted to the destination device via the next hop for the route of the second network device.
在IP承载网应用场景中,所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用至少有两种可能的实施方式:In the application scenario of the IP bearer network, the second network device detects, according to the query message, whether the route from the second network device to the destination device is available, at least two possible implementation manners:
第一种可能的实施方式包括:The first possible implementation includes:
所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述 第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。When the second network device completes backup of the ARP table from the third network device, The second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
在第一种可能的实施方式中,第二网络设备故障排除重新启动后,若第二网络设备中配置ARP热备,则可以从第三网络设备中备份ARP表。第二网络设备完成从第三网络设备中ARP表的备份后,从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项,若存在所述目的设备的IP地址所对应的ARP表项,则表示第二网络设备到目的设备的路由可用;若不存在所述目的设备的IP地址所对应的ARP表项,则表示第二网络设备到目的设备的路由不可用。其中,第二网络设备是主用网络设备,第三网络设备是所述第二网络设备的备用网络设备。In a first possible implementation manner, after the second network device fails to be restarted, if the ARP hot standby is configured in the second network device, the ARP table may be backed up from the third network device. After the second network device completes the backup of the ARP table from the third network device, it searches for the ARP entry corresponding to the IP address of the destination device from the backed up ARP table, if the IP address of the destination device exists. The corresponding ARP entry indicates that the route from the second network device to the destination device is available. If the ARP entry corresponding to the IP address of the destination device does not exist, the route from the second network device to the destination device is unavailable. . The second network device is a primary network device, and the third network device is a backup network device of the second network device.
第二种可能的实施方式包括:The second possible implementation includes:
所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。The second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
在第一种可能的实施方式中,第二网络设备故障排除重新启动后,若第二网络设备中没有配置ARP热备,则第二网络设备利用预设的ARP配置文件生成ARP表,从所生成的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项,若存在所述目的设备的IP地址所对应的ARP表项,则表示第二网络设备到目的设备的路由可用;若不存在所述目的设备的IP地址所对应的ARP表项,则表示第二网络设备到目的设备的路由不可用。In a first possible implementation manner, after the second network device fails to be restarted, if the ARP hot standby is not configured in the second network device, the second network device generates the ARP table by using the preset ARP configuration file. If the ARP entry corresponding to the IP address of the destination device exists in the generated ARP table, if the ARP entry corresponding to the IP address of the destination device exists, the route from the second network device to the destination device is available. If the ARP entry corresponding to the IP address of the destination device does not exist, the route from the second network device to the destination device is unavailable.
在MPLS L3VPN应用场景中,所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用至少有四种可能的实施方式:In the MPLS L3VPN application scenario, the second network device detects, according to the query message, whether there are at least four possible implementation manners of whether the route from the second network device to the destination device is available:
第一种可能的实施方式包括:The first possible implementation includes:
所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址 所对应的ARP表项;When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether the IP address of the destination device exists. The corresponding ARP entry.
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
第二种可能的实施方式包括:The second possible implementation includes:
所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;The second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
第一种可能的实施方式和第二种可能的实施方式中,当备份或生成的ARP表中存在所述目的设备的IP地址所对应的ARP表项,第二网络设备检测所述第二网络设备到第四网络设备的PW是否可用,当第二网络设备到第四网络设备的PW可用时,表示第二网络设备到目的设备的路由可用。其中,第四网络设备与所述目的设备相连,第四网络设备可以与所述目的设备直接连接,也可以与所述目的设备通过一个交换机间接连接。In a first possible implementation manner and a second possible implementation manner, when the backup or generated ARP table has an ARP entry corresponding to the IP address of the destination device, the second network device detects the second network. Whether the PW of the device to the fourth network device is available, and when the PW of the second network device to the fourth network device is available, indicating that the route from the second network device to the destination device is available. The fourth network device is connected to the destination device, and the fourth network device may be directly connected to the destination device, or may be indirectly connected to the destination device through a switch.
第三种可能的实施方式包括:A third possible implementation includes:
所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
第四种可能的实施方式包括:The fourth possible implementation includes:
所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP 地址所对应的ARP表项;The second network device queries, from the ARP table, whether the IP of the destination device exists. ARP entry corresponding to the address;
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
在第三种可能的实施方式和第四种可能的实施方式中,当备份或生成的ARP表中存在所述目的设备的IP地址所对应的ARP表项,第二网络设备检测所述第二网络设备到所述第三网络设备的ICB PW或DNI PW是否可用,当所述第二网络设备到所述第三网络设备的ICB PW或DNI PW可用时,表示第二网络设备到目的设备的路由可用。In a third possible implementation manner and a fourth possible implementation manner, when the backup or generated ARP table has an ARP entry corresponding to the IP address of the destination device, the second network device detects the second Whether the network device to the ICB PW or the DNI PW of the third network device is available, and when the second network device is available to the ICB PW or DNI PW of the third network device, indicating that the second network device is to the destination device Routing is available.
下面结合附图1对MPLS L3VPN应用场景举例说明:An example of an MPLS L3VPN application scenario is as follows:
图1中,设备101和设备102为用户侧运营商边缘(User-end Provider Edge,UPE)设备,设备101与基站A相连,设备102与基站B相连。设备103和设备104为上层运营商边缘(Super-stratum Provider Edge,SPE)设备,设备103为主用SPE设备,设备104为备用SPE设备。设备105和设备106为网络核心侧运营商边缘(Network Provider Edge,NPE)设备。若设备103故障,则设备105会将传输至基站A的业务数据转发到设备104上,设备104将从设备105接收到的业务数据路由至设备102,设备102再将所述业务数据发送至设备101,设备101将所述业务数据转发给基站A。当设备103故障排除重启后,与设备105建立通信连接。设备105向设备103发送查询报文,设备103接收到所述查询报文后,检测设备103和基站A之间的路由是否可用。In FIG. 1, the device 101 and the device 102 are user-end Provider Edge (UPE) devices, the device 101 is connected to the base station A, and the device 102 is connected to the base station B. The device 103 and the device 104 are the super-stratum Provider Edge (SPE) devices, the device 103 is the primary SPE device, and the device 104 is the standby SPE device. The device 105 and the device 106 are network core side Provider Edge (NPE) devices. If the device 103 fails, the device 105 forwards the traffic data transmitted to the base station A to the device 104, and the device 104 routes the service data received from the device 105 to the device 102, which then transmits the service data to the device. 101. The device 101 forwards the service data to the base station A. When the device 103 fails to restart, a communication connection is established with the device 105. The device 105 sends an inquiry message to the device 103. After receiving the query message, the device 103 detects whether a route between the device 103 and the base station A is available.
设备103检测设备103和基站A之间的路由是否可用时,首先,设备103查询是否存在所述目的设备的IP地址所对应的ARP表项:设备103可以从设备104备份ARP表中查询;或者,设备103还可以从根据预设的ARP配置文件生成ARP表中查询。当存在所述目的设备的IP地址所对应的ARP表项时,设备103检测设备103和设备102之间的PW是否可用,当设备103和设备102之间的PW可用时,表示设备103到基站A的路由可用;或者,设备103检测设备103和设备104之间的保护PW是否可用,当设备103和设备104之间的保护PW可用时,表示设备103到基站A的路由可用。当设备103到基站A的路由可用时,表示设备105可 以利用下一跳为设备103的路由向基站A传输业务数据。When the device 103 detects whether the route between the device 103 and the base station A is available, the device 103 first queries whether there is an ARP entry corresponding to the IP address of the destination device: the device 103 can query the ARP table from the device 104; or The device 103 can also generate a query from the ARP table according to the preset ARP configuration file. When the ARP entry corresponding to the IP address of the destination device exists, the device 103 detects whether the PW between the device 103 and the device 102 is available. When the PW between the device 103 and the device 102 is available, the device 103 to the base station is indicated. The route of A is available; or, the device 103 detects whether the protection PW between the device 103 and the device 104 is available, and when the protection PW between the device 103 and the device 104 is available, the route indicating the device 103 to the base station A is available. When the route from device 103 to base station A is available, the device 105 is The service data is transmitted to the base station A by using the next hop as the route of the device 103.
步骤303:当从所述第二网络设备到目的设备的路由可用时,所述第二网络设备向所述第一网络设备发送查询响应报文,所述查询响应报文用于触发所述第一网络设备将备用路由回切到主用路由。Step 303: When the route from the second network device to the destination device is available, the second network device sends a query response message to the first network device, where the query response message is used to trigger the first A network device backs up the alternate route to the primary route.
所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The destination address of the standby route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, and the next hop is the second a network device; the third network device is a backup network device of the second network device.
当所述第二网络设备到目的设备的路由可用时,第二网络设备向第一网络设备发送查询响应报文,表示第一网络设备可以利用下一跳为第二网络设备的路由向目的设备传输业务数据。第一网络设备接收到查询响应报文后,将备用路由切换到主用路由。第一网络设备将传输至目的设备的业务数据传输至第二网络设备。When the route from the second network device to the destination device is available, the second network device sends an inquiry response message to the first network device, indicating that the first network device can use the next hop as the route of the second network device to the destination device. Transfer business data. After receiving the query response message, the first network device switches the standby route to the primary route. The first network device transmits the service data transmitted to the destination device to the second network device.
这里需要说明的是,在实际应用场景中,所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;所述第四网络设备为用户侧运营商边缘UPE设备。It should be noted that, in an actual application scenario, the first network device is a network core side carrier edge NPE device or an operator edge edge PE device; and the second network device and the third network device are upper layer operator edges. The SPE device or the NPE device; the fourth network device is a user-side operator edge UPE device.
第一网络设备将备用路由切换到主用路由的具体实现方式与图1所示的实施例中所提供的方法类似,参考图1所示的实施例的描述,这里不再赘述。The specific implementation manner of the first network device to switch the alternate route to the primary route is similar to the method provided in the embodiment shown in FIG. 1. Referring to the description of the embodiment shown in FIG. 1, details are not described herein again.
图4为本发明实施例提供的延时回切的方法VPN FRR场景实例流程图,包括:FIG. 4 is a flowchart of a VPN FRR scenario according to a method for delaying and cutting back according to an embodiment of the present invention, including:
步骤401:NPE设备向主用SPE设备发送查询报文。Step 401: The NPE device sends an inquiry message to the primary SPE device.
在一个实施例中,所述NPE设备向主用SPE设备发送查询报文还包括:In an embodiment, the sending, by the NPE device, the query message to the primary SPE device further includes:
当主用SPE设备故障排除后,NPE设备恢复与所述主用SPE设备的TE隧道连接。After the primary SPE device is faulty, the NPE device resumes the TE tunnel connection with the primary SPE device.
NPE设备可以在恢复与主用SPE设备的TE隧道连接后,执行回切延时,向所述主用SPE设备发送查询报文。 After the NPE device is connected to the TE tunnel of the active SPE device, the NPE device performs a switchback delay and sends an inquiry packet to the active SPE device.
在另一个实施例中,所述NPE设备向主用SPE设备发送查询报文还包括:In another embodiment, the sending, by the NPE device, the query message to the primary SPE device further includes:
当主用SPE设备故障排除后,NPE设备恢复与所述主用SPE设备的TE隧道连接;After the primary SPE device is faulty, the NPE device restores the TE tunnel connection with the primary SPE device.
所述第一网络设备生成所述主用路由的转发表项。The first network device generates a forwarding entry of the primary route.
NPE设备可以在恢复与主用SPE设备的TE隧道连接,并且生成NPE设备与所述主用SPE设备之间的主用路由的转发表项后,执行回切延时,向所述主用SPE设备发送查询报文。After the NPE device restores the TE tunnel connection with the active SPE device, and generates a forwarding entry of the primary route between the NPE device and the primary SPE device, the NPE device performs a switchback delay to the primary SPE. The device sends a query message.
步骤402:所述主用SPE设备接收所述查询报文,根据所述查询报文检测从所述主用SPE设备到目的设备的路由是否可用。Step 402: The primary SPE device receives the query message, and detects, according to the query message, whether a route from the primary SPE device to the destination device is available.
在一个实施例中,所述主用SPE设备根据所述查询报文检测从所述主用SPE设备到目的设备的路由是否可用包括:In an embodiment, the detecting, by the primary SPE device, whether the route from the primary SPE device to the destination device is available according to the query message includes:
所述主用SPE设备查询是否完成从所述备用SPE设备的地址转换协议ARP表的备份;当所述主用SPE设备完成从备用SPE设备的ARP表的备份时,所述主用SPE设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;The primary SPE device queries whether to complete the backup of the address translation protocol ARP table from the standby SPE device; when the primary SPE device completes the backup of the ARP table from the standby SPE device, the primary SPE device Whether the ARP entry corresponding to the IP address of the destination device exists in the backed up ARP table.
或者,or,
所述主用SPE设备利用预设的ARP配置文件生成ARP表;所述主用SPE设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;The primary SPE device generates an ARP table by using a preset ARP configuration file. The primary SPE device queries the ARP table to check whether an ARP entry corresponding to the IP address of the destination device exists.
当存在所述目的设备的IP地址所对应的ARP表项时,所述主用SPE设备检测所述主用SPE设备到与所述目的设备相连的用户侧运营商边缘UPE设备的虚链路PW是否可用。When the ARP entry corresponding to the IP address of the destination device exists, the primary SPE device detects the virtual link PW of the primary SPE device to the user-side operator edge UPE device connected to the destination device. it's usable or not.
当所述主用SPE设备到与所述目的设备相连的UPE设备的PW可用时,表示所述主用SPE设备到所述目的设备的路由可用。When the PW of the primary SPE device connected to the destination device is available, the route from the primary SPE device to the destination device is available.
在另一个实施例中,所述主用SPE设备根据所述查询报文检测从所述主用SPE设备到目的设备的路由是否可用包括:In another embodiment, the detecting, by the primary SPE device, whether the route from the primary SPE device to the destination device is available according to the query message includes:
所述主用SPE设备查询是否完成从所述备用SPE设备的地址转换协议ARP表的备份;当所述主用SPE设备完成从备用SPE设备的ARP表的备份时,所述主用SPE设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所 对应的ARP表项;The primary SPE device queries whether to complete the backup of the address translation protocol ARP table from the standby SPE device; when the primary SPE device completes the backup of the ARP table from the standby SPE device, the primary SPE device Check whether the IP address of the destination device exists in the backed up ARP table. Corresponding ARP entries;
或者,or,
所述主用SPE设备利用预设的ARP配置文件生成ARP表;所述主用SPE设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;The primary SPE device generates an ARP table by using a preset ARP configuration file. The primary SPE device queries the ARP table to check whether an ARP entry corresponding to the IP address of the destination device exists.
当存在所述目的设备的IP地址所对应的ARP表项时,When an ARP entry corresponding to the IP address of the destination device exists,
当存在所述目的设备的IP地址所对应的ARP表项时,所述主用SPE设备检测所述主用SPE设备到所述备用SPE设备的双模对接DNI PW是否可用。When the ARP entry corresponding to the IP address of the destination device exists, the primary SPE device detects whether the dual-mode DNI PW of the primary SPE device to the standby SPE device is available.
所述主用SPE设备到所述备用SPE设备的双模对接DNI PW可用时,表示所述主用SPE设备到所述目的设备的路由可用。When the dual-mode DNI PW of the primary SPE device is available to the standby SPE device, the route from the primary SPE device to the destination device is available.
步骤403:当所述主用SPE设备到目的设备的路由可用时,所述主用SPE设备向所述NPE设备发送查询响应报文。Step 403: When the route from the primary SPE device to the destination device is available, the primary SPE device sends an inquiry response message to the NPE device.
步骤404:所述NPE设备接收到所述查询响应报文后,将备用路由回切到主用路由。Step 404: After receiving the query response message, the NPE device backs up the backup route to the primary route.
所述备用路由的目的地址为所述目的设备的IP地址,下一跳为备用SPE网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述主用SPE设备。The destination address of the standby route is the IP address of the destination device, and the next hop is the standby SPE network device; the destination address of the primary route is the IP address of the destination device, and the next hop is the primary hop. SPE equipment.
图4所示的延时回切的方法中,以第一网络设备为NPE设备,第二网络设备为主用SPE设备,第三网络设备为备用SPE设备,第四网络设备为UPE设备为例进行说明,具体实现方式参照图2和图3所示的延时回切的方法,这里不再赘述。In the method of the delay back-cut shown in FIG. 4, the first network device is an NPE device, the second network device is a primary SPE device, the third network device is a standby SPE device, and the fourth network device is a UPE device. For the description, the specific implementation manner refers to the method of delay back-cut shown in FIG. 2 and FIG. 3, and details are not described herein again.
由上述内容可知,本发明有如下有益效果:As can be seen from the above, the present invention has the following beneficial effects:
第二网络设备检测到目的设备的路由可用时,才触发第一网络设备将备用路由回切到主用路由,减少回切的等待恢复时间;并且,在第二网络设备到目的设备的路由可用时,第一网络设备再进行备用路由到主用路由的回切,可以保证第一网络设备传输至第二网络设备的业务数据能够传输至目的设备,实现业务数据的传输通畅。When the second network device detects that the route of the destination device is available, the first network device is triggered to switch back the backup route to the primary route, reducing the waiting time for the switchback; and the route from the second network device to the destination device is available. When the first network device performs the switchback of the backup route to the primary route, the service data transmitted by the first network device to the second network device can be transmitted to the destination device, so that the service data is transmitted smoothly.
图5为本发明实施例提供的延时回切的方法流程图,包括: FIG. 5 is a flowchart of a method for delay back-cut according to an embodiment of the present invention, including:
步骤501:当第二网络设备故障排除后,所述第二网络设备获得关联信息,所述关联信息包括目的设备的IP地址和第一网络设备的标识,所述关联信息指示所述第二网络设备是所述第一网络设备上的主用路由的下一跳设备,所述主用路由的目的地址为目的设备的IP地址。Step 501: After the second network device is faulty, the second network device obtains association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates the second network The device is the next hop device of the primary route on the first network device, and the destination address of the primary route is the IP address of the destination device.
第二网络设备所获取的关联信息中包括:目的设备的IP地址和第一网络设备,目的设备的IP地址为第一网络设备上的主用路由的目的地址,并且该主用路由的下一跳设备为第二网络设备。The association information acquired by the second network device includes: an IP address of the destination device and a first network device, where the IP address of the destination device is a destination address of the primary route on the first network device, and the next route of the primary route The hop device is a second network device.
在实际应用中,第二网络设备所获取的关联关系还包括:In an actual application, the association relationship acquired by the second network device further includes:
该第一网络设备到所述第二网络设备的TE隧道;a TE tunnel of the first network device to the second network device;
该第一网络设备上的主用路由所对应的虚链路PW以及保护PW。The virtual link PW and the protection PW corresponding to the primary route on the first network device.
这里需要说明的是,所述主用路由指的是所述第一网络设备到所述第二网络设备的路由,即所述第二网络设备所获得关联信息中,每个第一网络设备标识所表示的第一网络设备到所述第二网络设备的路由都可以被称作一个主用路由。It should be noted that, the primary route refers to a route from the first network device to the second network device, that is, each first network device identifier in the association information obtained by the second network device. The indicated route from the first network device to the second network device may be referred to as an active route.
第二网络设备所获取的关联信息,可以是根据技术人员的配置由第二网络设备所生成的,也可以是从其他网络设备所获取的,可以根据实际需要自行设定。The association information acquired by the second network device may be generated by the second network device according to the configuration of the technician, or may be acquired from other network devices, and may be set according to actual needs.
步骤502:所述第二网络设备获取恢复的地址转换协议ARP表。Step 502: The second network device acquires a restored address translation protocol ARP table.
所述第二网络设备获取恢复的ARP表包括:The obtaining, by the second network device, the restored ARP table includes:
所述第二网络设备从所述第三网络设备备份ARP表,将所备份的ARP表作为已恢复的ARP表;The second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
或者,or,
所述第二网络设备利用预设的ARP配置文件生成ARP表,将所生成的ARP表作为已恢复的ARP表。The second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
若第二网络设备中配置ARP热备,则可以从第三网络设备中备份ARP表。第二网络设备完成从第三网络设备中ARP表的备份后,将所备份的ARP表作为已恢复的ARP表;若第二网络设备中没有配置ARP热备,则第二网络设备利用预设的ARP配置文件生成ARP表,将所生成的ARP表作为已恢复的ARP表。 If the ARP hot standby is configured in the second network device, the ARP table may be backed up from the third network device. After the second network device completes the backup of the ARP table in the third network device, the backup ARP table is used as the restored ARP table. If the ARP hot standby is not configured in the second network device, the second network device uses the preset. The ARP configuration file generates an ARP table and uses the generated ARP table as the restored ARP table.
步骤503:所述第二网络设备查询所述恢复的ARP表,获取ARP表项中的目的设备的IP地址,所述目的设备的IP地址用于标识目的设备。Step 503: The second network device queries the restored ARP table to obtain an IP address of the destination device in the ARP entry, and the IP address of the destination device is used to identify the destination device.
步骤504:所述第二网络设备查询到所述目的设备的路由是否可用。Step 504: The second network device queries whether a route to the destination device is available.
已恢复的ARP表中存有一个目的设备的IP地址,用于标识该ARP表项所对应的目的设备。查询所述第二网络设备到已恢复ARP表项中的目的设备的IP地址所标识的目的设备的路由是否可用。The restored ARP table contains the IP address of a destination device, which is used to identify the destination device corresponding to the ARP entry. Query whether the route of the destination device identified by the IP address of the destination device in the restored ARP entry is available.
在一个实施例中,所述第二网络设备查询到所述目的设备的路由是否可用:In an embodiment, the second network device queries whether a route to the destination device is available:
所述第二网络设备检测所述主用SPE设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。The second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
在另一个实施例中,所述第二网络设备查询到所述目的设备的路由是否可用包括:In another embodiment, the second network device querying whether the route of the destination device is available includes:
所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。The second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
第二网络设备获取已恢复的ARP表项,获取所述ARP表项中存有的目的设备的IP地址,采用上述两种方法中任意一种检测所述第二网络设备到所述目的设备IP地址所标识的目的设备的路由是否可用。The second network device obtains the restored ARP entry, obtains the IP address of the destination device stored in the ARP entry, and detects the second network device to the destination device IP by using any one of the foregoing two methods. Whether the route of the destination device identified by the address is available.
此处与图2所示的延时回切的方法类似,参考图2所示的延时回切方法中的描述,这里不再赘述。Here, similar to the method of delay back-cut shown in FIG. 2, referring to the description in the delay back-cut method shown in FIG. 2, details are not described herein again.
步骤505:当所述第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中获得所述目的设备的IP地址对应的第一网络设备的标识。Step 505: When the route of the second network device to the destination device is available, the second network device obtains the identifier of the first network device corresponding to the IP address of the destination device from the association information.
步骤506:所述第二网络设备建立与所述第一网络设备之间的主用路由,触发所述第一网络设备将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。Step 506: The second network device establishes an active route with the first network device, and triggers the first network device to switch back the backup route to the primary route, and the destination address of the backup route. For the IP address of the destination device, the next hop is the third network device; the third network device is the backup network device of the second network device.
当第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中查找所述目的设备的IP地址所对应的第一网络设备的标识。也就是说,第二网络设备到所述目的设备的路由可用,表示经由所述第二网络 设备可以向所述目的设备传输业务数据。因此,可以建立第一网络设备到所述第二网络设备的主用路由,该主用路由以所述目的设备的IP地址为目的地址。所述第一网络设备到所述第二网络设备的主用路由建立后,第一网络设备即刻将备用路由回切到主用路由。When the route from the second network device to the destination device is available, the second network device searches for the identifier of the first network device corresponding to the IP address of the destination device from the association information. That is, a route from the second network device to the destination device is available, indicating that the second network is The device can transmit service data to the destination device. Therefore, the primary route of the first network device to the second network device may be established, and the primary route uses the IP address of the destination device as the destination address. After the primary route of the first network device to the second network device is established, the first network device immediately switches back the backup route to the primary route.
当第二网络设备到所述目的设备的路由可用时,第二网络设备再与第一网络设备建立通信连接,从而触发第一网络设备将主用路由回切到备用路由。其中,所述第一网络设备为远网络NPE设备或者运营商边缘PE设备;所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;所述第四网络设备为用户侧运营商边缘UPE设备。When the route from the second network device to the destination device is available, the second network device establishes a communication connection with the first network device, thereby triggering the first network device to switch back the primary route to the alternate route. The first network device is a remote network NPE device or an operator edge PE device; the second network device and the third network device are an upper-layer operator edge SPE device or an NPE device; and the fourth network device is a user Side carrier edge UPE device.
在IP承载网实施场景中,所述第一网络设备将主用路由回切到备用路由包括:In the implementation scenario of the IP bearer network, the first network device backs up the primary route to the backup route, including:
所述第一网络设备建立所述主用路由的转发表项,并激活所述转发表项;The first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
在MPLS L3VPN应用场景中,所述第一网络设备将主用路由回切到备用路由包括:In the MPLS L3VPN application scenario, the first network device backs up the primary route to the backup route, including:
第一网络设备恢复与所述第二网络设备之间的流量工程隧道连接;Recovering, by the first network device, a traffic engineering tunnel connection with the second network device;
所述第一网络设备建立所述主用路由的转发表项,并激活所述转发表项;The first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
其中,激活所述转发表项表示设置所述转发表项为主用。The activating the forwarding entry indicates that the forwarding entry is set to be used.
在本实施例中,所述第二网络设备故障恢复后,并没有立即与第一网络设备建立通信连接,而是查询第二网络设备到已恢复的ARP表项中存有的目的设备的IP地址所标识的目的设备的路由是否可用,从而第一网络设备并不能执行将备用路由回切到主用路由,以此实现回切延时。In this embodiment, after the second network device fails to recover, the communication connection between the second network device and the first network device is not immediately established, but the IP address of the destination device stored in the restored ARP entry is queried. Whether the route of the destination device identified by the address is available, so that the first network device cannot perform the switchback of the backup route to the primary route, thereby implementing the switchback delay.
图6为本发明实施例提供的延时回切的第一网络设备结构示意图,包括:FIG. 6 is a schematic structural diagram of a first network device for delay back-cut according to an embodiment of the present invention, including:
发送单元601,用于向第二网络设备发送查询报文,所述查询报文用于触发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可 用,所述第二网络设备为主用的网络设备。The sending unit 601 is configured to send a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is The second network device is a network device for the primary use.
接收单元602,用于接收到所述第二网络设备发送的查询响应报文,并将所述查询响应报文发送至所述处理单元603。The receiving unit 602 is configured to receive the query response message sent by the second network device, and send the query response message to the processing unit 603.
处理单元603,用于生成所述查询报文,并将所述查询报文发送至所述发送单元601;The processing unit 603 is configured to generate the query message, and send the query message to the sending unit 601;
所述接收单元602接收到所述第二网络设备发送的查询响应报文后,将备用路由回切到主用路由;所述查询响应报文用于指示所述第二网络设备与所述目的设备之间的路由可用;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。After receiving the query response message sent by the second network device, the receiving unit 602 switches back the backup route to the primary route; the query response message is used to indicate the second network device and the destination. The route between the devices is available; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, One hop is the second network device; the third network device is a backup network device of the second network device.
在IP承载网第一应用场景中,所述处理单元603,用于当所述第二网络设备故障排除,并且与所述第二网络设备建立通信连接后,立即向第二网络设备发送查询报文。In the first application scenario of the IP bearer network, the processing unit 603 is configured to send a query to the second network device immediately after the second network device is faulty and establishes a communication connection with the second network device. Text.
在IP承载网第二应用场景中,所述处理单元603,还用于当第二网络设备故障排除后,并且向第二网络设备发送查询报文前,生成所述主用路由的转发表项。In the second application scenario of the IP bearer network, the processing unit 603 is further configured to: after the second network device is faulty, and send the query message to the second network device, generate the forwarding entry of the primary route. .
在MPLS L3VPN第一应用场景中,所述处理单元603,还用于当第二网络设备故障排除后,向第二网络设备发送查询报文前,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接。In the first application scenario of the MPLS L3VPN, the processing unit 603 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network device. The flow engineering TE tunnel connection.
所述处理单元603用于将备用路由切换到主用路由包括:The processing unit 603 is configured to switch the alternate route to the primary route, including:
建立所述主用路由的转发表项,并激活所述转发表项;Establishing a forwarding entry of the primary route, and activating the forwarding entry;
利用所述转发表项向所述第二网络设备转发数据报文。And forwarding, by using the forwarding entry, the data packet to the second network device.
在MPLS L3VPN第二应用场景中,所述处理单元603,还用于当第二网络设备故障排除后,向第二网络设备发送查询报文前,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接,并且生成所述主用路由的转发表项。In the second application scenario of the MPLS L3VPN, the processing unit 603 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network device. The traffic engineering TE tunnel is connected, and the forwarding entry of the primary route is generated.
所述处理单元603用于将备用路由切换到主用路由包括:The processing unit 603 is configured to switch the alternate route to the primary route, including:
激活所述转发表项; Activating the forwarding entry;
利用所述转发表项向所述第二网络设备转发数据报文。And forwarding, by using the forwarding entry, the data packet to the second network device.
其中,所述第一网络设备为网络NPE设备或者运营商边缘PE设备;所述第二网络设备和所述第三网络设备为上层运营商边缘SPE设备或者NPE设备。The first network device is a network NPE device or an operator edge PE device; the second network device and the third network device are an upper-layer operator edge SPE device or an NPE device.
图6所示的第一网络设备是与图2所示的方法所对应的设备,与图2中所述的实施方法类似,参考对图2所示的实施方法的描述,这里不再赘述。The first network device shown in FIG. 6 is a device corresponding to the method shown in FIG. 2, and is similar to the implementation method described in FIG. 2, with reference to the description of the implementation method shown in FIG. 2, and details are not described herein again.
图7为本发明实施例提供的延时回切的第二网络设备的结构示意图,包括:FIG. 7 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention, including:
接收单元701,用于接收第一网络设备发送的查询报文,将所述查询报文发送至处理单元702,所述第二网络设备为主用的网络设备。The receiving unit 701 is configured to receive the query message sent by the first network device, and send the query message to the processing unit 702, where the second network device is a network device for the primary network.
所述处理单元702,用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用。The processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available.
发送单元703,用于当从所述第二网络设备到目的设备的路由可用时,向所述第一网络设备发送查询响应报文,所述查询响应报文用于触发所述第一网络设备将备用路由回切到主用路由;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The sending unit 703 is configured to send a query response message to the first network device when the route from the second network device to the destination device is available, where the query response message is used to trigger the first network device The backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device. The address, the next hop is the second network device, and the third network device is the backup network device of the second network device.
在IP承载网第一应用场景中,所述处理单元702用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In the first application scenario of the IP bearer network, the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
在IP承载网第二应用场景中,所述处理单元702用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括: In the second application scenario of the IP bearer network, the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。The second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
在MPLS L3VPN第一应用场景中,所述处理单元702用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In the first application scenario of the MPLS L3VPN, the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;当所述第二网络设备完成从第三网络设备的ARP表的备份时,从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Query whether to complete the backup of the ARP table from the third network device; when the second network device completes the backup of the ARP table from the third network device, query whether the existing ARP table exists. An ARP entry corresponding to the IP address of the destination device;
或者,or,
利用预设的ARP配置文件生成ARP表;从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Generating an ARP table by using a preset ARP configuration file; and querying, by the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists;
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
在MPLS L3VPN第二应用场景中,所述处理单元702用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In the MPLS L3VPN second application scenario, the processing unit 702 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;当所述第二网络设备完成从第三网络设备的ARP表的备份时,从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Query whether to complete the backup of the ARP table from the third network device; when the second network device completes the backup of the ARP table from the third network device, query whether the existing ARP table exists. An ARP entry corresponding to the IP address of the destination device;
或者,or,
利用预设的ARP配置文件生成ARP表;从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Generating an ARP table by using a preset ARP configuration file; and querying, by the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists;
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
图7所示的第二网络设备是与图3所示的方法所对应的设备,与图3中所述的实施方法类似,参考对图3所示的实施方法的描述,这里不再赘述。The second network device shown in FIG. 7 is a device corresponding to the method shown in FIG. 3, and is similar to the implementation method described in FIG. 3, with reference to the description of the implementation method shown in FIG. 3, and details are not described herein again.
其中,所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营 商边缘PE设备;所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;所述第四网络设备为用户侧运营商边缘UPE设备。The first network device is a network core side carrier edge NPE device or an operation. The second network device and the third network device are upper-layer operator edge SPE devices or NPE devices; the fourth network device is a user-side operator edge UPE device.
图8为本发明实施例所提供的延时回切系统结构示意图,包括:FIG. 8 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention, including:
图6所示的延时回切的第一网络设备801以及图7所述的延时回切的第二网络设备802。The delayed networked first network device 801 shown in FIG. 6 and the delayed networked second network device 802 illustrated in FIG.
图8所示的系统包括图6所示的第一网络设备801以及图7所示的延时回切的第二网络设备802,具体实现结构参考图6所示的第一网络设备的结构描述,以及图7所示的第二网络设备的结构描述,这里不再赘述。The system shown in FIG. 8 includes the first network device 801 shown in FIG. 6 and the second network device 802 of the delayed switchback shown in FIG. 7. The specific implementation structure refers to the structure description of the first network device shown in FIG. 6. And the structural description of the second network device shown in FIG. 7 is not described here.
图9为本发明实施例提供的延时回切的第二网络设备结构示意图,包括:FIG. 9 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention, including:
处理单元901,用于当故障排除后,获得关联信息,所述关联信息包括目的设备的IP地址和第一网络设备的标识,所述关联信息指示所述第二网络设备是所述第一网络设备上的主用路由的下一跳设备,所述主用路由的目的地址为目的设备的IP地址;获取恢复的地址转换协议ARP表;查询所述恢复的ARP表,获取ARP表项中的目的设备的IP地址,所述目的设备的IP地址用于标识目的设备;查询到所述目的设备的路由是否可用;当所述第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中获得所述目的设备的IP地址对应的第一网络设备的标识;建立与所述第一网络设备之间的主用路由,触发所述第一网络设备将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The processing unit 901 is configured to: after the fault is removed, obtain the association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is the first network The next hop of the primary route on the device, the destination address of the primary route is the IP address of the destination device, the ARP table of the restored address translation protocol is obtained, and the restored ARP table is queried to obtain the ARP entry. An IP address of the destination device, where the IP address of the destination device is used to identify the destination device; whether the route to the destination device is available; and when the route from the second network device to the destination device is available, the The second network device obtains the identifier of the first network device corresponding to the IP address of the destination device from the association information, establishes an active route with the first network device, and triggers the first network device to reserve The route is switched back to the primary route, the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; the third network device is Said backup network device of the second network device.
收发单元902,用于收发与所述第一网络设备建立所述主用路由的数据信息。The transceiver unit 902 is configured to send and receive data information of the primary route with the first network device.
所述处理单元901用于获取已恢复的ARP表包括:The processing unit 901 is configured to obtain the restored ARP table, including:
所述第二网络设备从所述第三网络设备备份ARP表,将所备份的ARP表作为已恢复的ARP表;The second network device backs up the ARP table from the third network device, and uses the backed up ARP table as the restored ARP table.
或者,or,
所述第二网络设备利用预设的ARP配置文件生成ARP表,将所生成的ARP 表作为已恢复的ARP表。The second network device generates an ARP table by using a preset ARP configuration file, and generates the generated ARP. The table serves as the restored ARP table.
所述处理单元901查询到所述目的设备的路由是否可用包括:The processing unit 901 queries whether the route to the destination device is available, including:
所述第二网络设备检测所述主用SPE设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。The second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
所述处理单元901查询到所述目的设备的路由是否可用包括:The processing unit 901 queries whether the route to the destination device is available, including:
所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。The second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
其中,所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;所述第四网络设备为用户侧运营商边缘UPE设备。The first network device is a network core side carrier edge NPE device or an operator edge edge PE device; the second network device and the third network device are an upper layer operator edge SPE device or an NPE device; The network device is a user-side carrier edge UPE device.
图9所示的第二网络设备是与图5所示的方法所对应的设备,与图5中所述的实施方法类似,参考对图5所示的实施方法的描述,这里不再赘述。The second network device shown in FIG. 9 is a device corresponding to the method shown in FIG. 5, and is similar to the implementation method described in FIG. 5, with reference to the description of the implementation method shown in FIG. 5, and details are not described herein again.
图10为本发明实施例提供的延时回切的系统结构示意图,包括:FIG. 10 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention, including:
图9所示的本发明实施例所提供的延时回切的第二网络设备1001以及第一网络设备1002;The second network device 1001 and the first network device 1002 of the delayed switchback according to the embodiment of the present invention shown in FIG. 9;
所述第一网络设备1002,用于与所述第二网络设备建立主用路由后,将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述备用网络设备的备用网络设备。The first network device 1002 is configured to: after establishing an active route with the second network device, backcutting the backup route to the primary route, where the destination address of the backup route is an IP address of the destination device The next hop is the third network device; the destination address of the primary route is the IP address of the destination device, the next hop is the second network device; and the third network device is the standby network device Backup network device.
图10所示的发明实施例所提供的延时回切中第二网络设备的结构,与图9所示的第二网络设备的结构类似,参考图9所示的第二网络设备的结构的描述,这里不再赘述。The structure of the second network device in the delayed switchback provided by the embodiment of the present invention shown in FIG. 10 is similar to the structure of the second network device shown in FIG. 9. Referring to the description of the structure of the second network device shown in FIG. , no longer repeat them here.
图11为本发明实施例提供的延时回切的第一网络设备结构示意图,包括:FIG. 11 is a schematic structural diagram of a first network device for delay backhaul according to an embodiment of the present invention, including:
发送器1101,用于向第二网络设备发送查询报文,所述查询报文用于触 发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可用,所述第二网络设备为主用的网络设备。The sender 1101 is configured to send a query message to the second network device, where the query message is used to touch And sending the second network device to detect whether a route from the second network device to the destination device is available, and the second network device is a primary network device.
接收器1102,用于接收到所述第二网络设备发送的查询响应报文,并将所述查询响应报文发送至所述处理器1103。The receiver 1102 is configured to receive the query response message sent by the second network device, and send the query response message to the processor 1103.
处理器1103,用于生成所述查询报文,并将所述查询报文发送至所述发送器1101;The processor 1103 is configured to generate the query message, and send the query message to the sender 1101.
所述接收器1102接收到所述第二网络设备发送的查询响应报文后,将备用路由回切到主用路由;所述查询响应报文用于指示所述第二网络设备与所述目的设备之间的路由可用;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。After receiving the query response message sent by the second network device, the receiver 1102 switches back the backup route to the primary route; the query response message is used to indicate the second network device and the destination. The route between the devices is available; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, One hop is the second network device; the third network device is a backup network device of the second network device.
在IP承载网第一应用场景中,所述处理器1103,用于当所述第二网络设备故障排除,并且与所述第二网络设备建立通信连接后,立即向第二网络设备发送查询报文。In the first application scenario of the IP bearer network, the processor 1103 is configured to send a query to the second network device immediately after the second network device is faulty and establishes a communication connection with the second network device. Text.
在IP承载网第二应用场景中,所述处理器1103,还用于当第二网络设备故障排除后,并且向第二网络设备发送查询报文前,生成所述主用路由的转发表项。In the second application scenario of the IP bearer network, the processor 1103 is further configured to: after the second network device is faulty, and send the query message to the second network device, generate the forwarding entry of the primary route. .
在MPLS L3VPN第一应用场景中,所述处理单器1103,还用于当第二网络设备故障排除后,向第二网络设备发送查询报文前,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接。In the first application scenario of the MPLS L3VPN, the processing unit 1103 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network. The traffic engineering TE tunnel connection of the device.
所述处理器1103用于将备用路由切换到主用路由包括:The processor 1103 is configured to switch the alternate route to the primary route, including:
建立所述主用路由的转发表项,并激活所述转发表项;Establishing a forwarding entry of the primary route, and activating the forwarding entry;
利用所述转发表项向所述第二网络设备转发数据报文。And forwarding, by using the forwarding entry, the data packet to the second network device.
在MPLS L3VPN第二应用场景中,所述处理器1103,还用于当第二网络设备故障排除后,向第二网络设备发送查询报文前,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接,并且生成所述主用路由的转发表项。In the second application scenario of the MPLS L3VPN, the processor 1103 is further configured to: after the second network device is faulty, before the second network device sends the query message, the first network device recovers with the second network device. The traffic engineering TE tunnel is connected, and the forwarding entry of the primary route is generated.
所述处理器1103用于将备用路由切换到主用路由包括: The processor 1103 is configured to switch the alternate route to the primary route, including:
激活所述转发表项;Activating the forwarding entry;
利用所述转发表项向所述第二网络设备转发数据报文。And forwarding, by using the forwarding entry, the data packet to the second network device.
其中,所述第一网络设备为网络NPE设备或者运营商边缘PE设备;所述第二网络设备和所述第三网络设备为上层运营商边缘SPE设备或者NPE设备。The first network device is a network NPE device or an operator edge PE device; the second network device and the third network device are an upper-layer operator edge SPE device or an NPE device.
图11所示的第一网络设备是与图2所示的方法所对应的设备,与图2中所述的实施方法类似,参考对图2所示的实施方法的描述,这里不再赘述。The first network device shown in FIG. 11 is a device corresponding to the method shown in FIG. 2, which is similar to the implementation method described in FIG. 2, and refers to the description of the implementation method shown in FIG. 2, and details are not described herein again.
图12为本发明实施例提供的延时回切的第二网络设备的结构示意图,包括:FIG. 12 is a schematic structural diagram of a second network device for delay backhaul according to an embodiment of the present invention, including:
接收器1201,用于接收第一网络设备发送的查询报文,将所述查询报文发送至处理器1202,所述第二网络设备为主用的网络设备。The receiver 1201 is configured to receive the query message sent by the first network device, and send the query message to the processor 1202, where the second network device is a network device for the primary device.
所述处理器1202,用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用。The processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available.
发送器1003,用于当从所述第二网络设备到目的设备的路由可用时,向所述第一网络设备发送查询响应报文,所述查询响应报文用于触发所述第一网络设备将备用路由回切到主用路由;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The sender 1003 is configured to send a query response message to the first network device when the route from the second network device to the destination device is available, where the query response message is used to trigger the first network device The backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device. The address, the next hop is the second network device, and the third network device is the backup network device of the second network device.
在IP承载网第一应用场景中,所述处理器1202用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In the first application scenario of the IP bearer network, the processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
在IP承载网第二应用场景中,所述处理器1202用于根据所述查询报文 检测从所述第二网络设备到目的设备的路由是否可用包括:In the second application scenario of the IP bearer network, the processor 1202 is configured to use the query message according to the Detecting whether the route from the second network device to the destination device is available includes:
所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。The second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
在MPLS L3VPN第一应用场景中,所述处理器1202用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In the first application scenario of the MPLS L3VPN, the processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;当所述第二网络设备完成从第三网络设备的ARP表的备份时,从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Query whether to complete the backup of the ARP table from the third network device; when the second network device completes the backup of the ARP table from the third network device, query whether the existing ARP table exists. An ARP entry corresponding to the IP address of the destination device;
或者,or,
利用预设的ARP配置文件生成ARP表;从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Generating an ARP table by using a preset ARP configuration file; and querying, by the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists;
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
在MPLS L3VPN第二应用场景中,所述处理器1202用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:In the second application scenario of the MPLS L3VPN, the processor 1202 is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;当所述第二网络设备完成从第三网络设备的ARP表的备份时,从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Query whether to complete the backup of the ARP table from the third network device; when the second network device completes the backup of the ARP table from the third network device, query whether the existing ARP table exists. An ARP entry corresponding to the IP address of the destination device;
或者,or,
利用预设的ARP配置文件生成ARP表;从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项;Generating an ARP table by using a preset ARP configuration file; and querying, by the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists;
当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
图12所示的第二网络设备是与图3所示的方法所对应的设备,与图3中所述的实施方法类似,参考对图3所示的实施方法的描述,这里不再赘述。 The second network device shown in FIG. 12 is a device corresponding to the method shown in FIG. 3, and is similar to the implementation method described in FIG. 3, with reference to the description of the implementation method shown in FIG. 3, and details are not described herein again.
其中,所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘设备PE设备;所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;所述第四网络设备为用户侧运营商边缘UPE设备。The first network device is a network core side operator edge NPE device or an operator edge device PE device; the second network device and the third network device are an upper layer operator edge SPE device or an NPE device; The four network devices are user-side operator edge UPE devices.
图13为本发明实施例所提供的延时回切系统结构示意图,包括:FIG. 13 is a schematic structural diagram of a delayed switchback system according to an embodiment of the present invention, including:
图11所示的延时回切的第一网络设备1301以及图12所述的延时回切的第二网络设备1302。The delayed networked first network device 1301 shown in FIG. 11 and the delayed networked first network device 1302 shown in FIG.
图13所示的系统包括图11所示的第一网络设备1301以及图12所示的延时回切的第二网络设备1302,具体实现结构参考图11所示的第一网络设备的结构描述,以及图12所示的第二网络设备的结构描述,这里不再赘述。The system shown in FIG. 13 includes the first network device 1301 shown in FIG. 11 and the second network device 1302 shown in FIG. 12, and the specific implementation structure refers to the structure description of the first network device shown in FIG. And the structural description of the second network device shown in FIG. 12, and details are not described herein again.
图14为本发明实施例所提供的延时回切的第二网络设备结构示意图,包括:FIG. 14 is a schematic structural diagram of a second network device for delay back-cut according to an embodiment of the present invention, including:
处理器1401,用于当故障排除后,获得关联信息,所述关联信息包括目的设备的IP地址和第一网络设备的标识,所述关联信息指示所述第二网络设备是所述第一网络设备上的主用路由的下一跳设备,所述主用路由的目的地址为目的设备的IP地址;获取恢复的地址转换协议ARP表;查询所述恢复的ARP表,获取ARP表项中的目的设备的IP地址,所述目的设备的IP地址用于标识目的设备;查询到所述目的设备的路由是否可用;当所述第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中获得所述目的设备的IP地址对应的第一网络设备的标识;建立与所述第一网络设备之间的主用路由,触发所述第一网络设备将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The processor 1401 is configured to: after the fault is rectified, obtain association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is the first network The next hop of the primary route on the device, the destination address of the primary route is the IP address of the destination device, the ARP table of the restored address translation protocol is obtained, and the restored ARP table is queried to obtain the ARP entry. An IP address of the destination device, where the IP address of the destination device is used to identify the destination device; whether the route to the destination device is available; and when the route from the second network device to the destination device is available, the The second network device obtains the identifier of the first network device corresponding to the IP address of the destination device from the association information, establishes an active route with the first network device, and triggers the first network device to reserve The route is switched back to the primary route, the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; An alternate network device of the second network device.
收发器1402,用于向所述第一网络设备发送建立所述主用路由的数据信息。The transceiver 1402 is configured to send, to the first network device, data information that establishes the primary route.
所述处理器1401用于获取已恢复的ARP表包括:The processor 1401 is configured to obtain the restored ARP table, including:
所述第二网络设备从所述第三网络设备备份ARP表,将所备份的ARP表 作为已恢复的ARP表;The second network device backs up the ARP table from the third network device, and the backed up ARP table As a restored ARP table;
或者,or,
所述第二网络设备利用预设的ARP配置文件生成ARP表,将所生成的ARP表作为已恢复的ARP表。The second network device generates an ARP table by using a preset ARP configuration file, and uses the generated ARP table as the restored ARP table.
所述处理器1401查询到所述目的设备的路由是否可用包括:The processor 1401 queries whether the route to the destination device is available, including:
所述第二网络设备检测所述主用SPE设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。The second network device detects whether the virtual link PW of the primary SPE device to the fourth network device is available, and the fourth network device is connected to the destination device.
所述处理器1401查询到所述目的设备的路由是否可用包括:The processor 1401 queries whether the route to the destination device is available, including:
所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。The second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
其中,所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;所述第二网络设备和第三网络设备为上层运营商边缘SPE设备或者NPE设备;所述第四网络设备为用户侧运营商边缘UPE设备。The first network device is a network core side carrier edge NPE device or an operator edge edge PE device; the second network device and the third network device are an upper layer operator edge SPE device or an NPE device; The network device is a user-side carrier edge UPE device.
图15为本发明实施例提供的延时回切的系统结构示意图,包括:FIG. 15 is a schematic structural diagram of a system for delay back-cut according to an embodiment of the present invention, including:
图14所示的本发明实施例所提供的延时回切的第二网络设备1501以及第一网络设备1502;The second network device 1501 and the first network device 1502 of the delayed switchback according to the embodiment of the present invention shown in FIG. 14;
所述第一网络设备1502,用于与所述第二网络设备1501建立主用路由后,将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The first network device 1502 is configured to: after establishing the primary route with the second network device 1501, switch back the backup route to the primary route, where the destination address of the backup route is the IP address of the destination device. Address, the next hop is the third network device; the destination address of the primary route is the IP address of the destination device, the next hop is the second network device; and the third network device is the second An alternate network device for a network device.
图15所示的发明实施例所提供的延时回切的系统中第二网络设备的结构,与图14所示的第二网络设备的结构类似,参考图14所示的第二网络设备的结构的描述,这里不再赘述。The structure of the second network device in the system for delay back-cutting provided by the embodiment of the present invention shown in FIG. 15 is similar to the structure of the second network device shown in FIG. 14. Referring to the second network device shown in FIG. The description of the structure is not repeated here.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is considered as the scope of protection of the present invention.

Claims (25)

  1. 一种延时回切的方法,其特征在于,所述方法包括:A method for delaying back-cutting, characterized in that the method comprises:
    第一网络设备向第二网络设备发送查询报文,所述查询报文用于触发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可用,所述第二网络设备为主用的网络设备;The first network device sends a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is available, and the second network device Main network equipment;
    所述第一网络设备接收到所述第二网络设备发送的查询响应报文,所述第一网络设备将备用路由回切到主用路由;所述查询响应报文用于指示所述第二网络设备与所述目的设备之间的路由可用;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。Receiving, by the first network device, the query response message sent by the second network device, where the first network device sends back the backup route to the primary route; the query response message is used to indicate the second A route between the network device and the destination device is available; the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; the destination address of the primary route is the destination The IP address of the device, the next hop is the second network device, and the third network device is the backup network device of the second network device.
  2. 根据权利要求1所述的方法,其特征在于,所述第一网络设备向第二网络设备发送查询报文之前,还包括:The method according to claim 1, wherein before the sending, by the first network device, the query message to the second network device, the method further includes:
    当第二网络设备故障排除后,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接。After the second network device is faulty, the first network device resumes connection with the traffic engineering TE tunnel of the second network device.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一网络设备将备用路由回切到主用路由包括:The method according to claim 1 or 2, wherein the first network device backing back the alternate route to the primary route includes:
    所述第一网络设备建立所述主用路由的转发表项,并激活所述转发表项;The first network device establishes a forwarding entry of the primary route, and activates the forwarding entry;
    所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。The first network device forwards the data packet to the second network device by using the forwarding entry.
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一网络设备向所述第二网络设备发送查询报文前,所述方法还包括:The method according to claim 1 or 2, wherein before the first network device sends a query message to the second network device, the method further includes:
    所述第一网络设备生成所述主用路由的转发表项。The first network device generates a forwarding entry of the primary route.
  5. 根据权利要求4所述的方法,其特征在于,所述第一网络设备将备用路由回切到主用路由包括:The method according to claim 4, wherein the first network device backing back the alternate route to the primary route includes:
    所述第一网络设备激活所述转发表项;The first network device activates the forwarding entry;
    所述第一网络设备利用所述转发表项向所述第二网络设备转发数据报文。 The first network device forwards the data packet to the second network device by using the forwarding entry.
  6. 根据权利要求1-5任意一项所述的方法,其特征在于,A method according to any one of claims 1 to 5, characterized in that
    所述第一网络设备为网络核心侧运营商边缘NPE设备或者运营商边缘PE设备;The first network device is a network core side carrier edge NPE device or an operator edge PE device;
    所述第二网络设备和所述第三网络设备为上层运营商边缘SPE设备或者NPE设备。The second network device and the third network device are upper layer operator edge SPE devices or NPE devices.
  7. 一种延时回切的方法,其特征在于,所述方法包括:A method for delaying back-cutting, characterized in that the method comprises:
    第二网络设备接收第一网络设备发送的查询报文,所述第二网络设备为主用的网络设备;Receiving, by the second network device, the query message sent by the first network device, where the second network device is the network device for the primary network device;
    所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用;The second network device detects, according to the query message, whether a route from the second network device to the destination device is available;
    当从所述第二网络设备到目的设备的路由可用时,所述第二网络设备向所述第一网络设备发送查询响应报文,所述查询响应报文用于触发所述第一网络设备将备用路由回切到主用路由;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。When the route from the second network device to the destination device is available, the second network device sends an inquiry response message to the first network device, where the query response message is used to trigger the first network device The backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device. The address, the next hop is the second network device, and the third network device is the backup network device of the second network device.
  8. 根据权利要求7所述的方法,其特征在于,所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:The method according to claim 7, wherein the detecting, by the second network device, whether the route from the second network device to the destination device is available according to the query message comprises:
    所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
    当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  9. 根据权利要求7所述的方法,其特征在于,所述第二网络设备根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:The method according to claim 7, wherein the detecting, by the second network device, whether the route from the second network device to the destination device is available according to the query message comprises:
    所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
    所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP 地址所对应的ARP表项。The second network device queries, from the ARP table, whether the IP of the destination device exists. ARP entry corresponding to the address.
  10. 根据权利要求8-9任意一项所述的方法,其特征在于,还包括:The method of any of claims 8-9, further comprising:
    当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device The destination devices are connected.
  11. 根据权利要求8-9任意一项所述的方法,其特征在于,还包括:The method of any of claims 8-9, further comprising:
    当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。When the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available, and the protection PW is inter-framed. Back up the ICB PW or dual-mode DNI PW.
  12. 一种延时回切的方法,其特征在于,所述方法包括:A method for delaying back-cutting, characterized in that the method comprises:
    当第二网络设备故障排除后,所述第二网络设备获得关联信息,所述关联信息包括目的设备的IP地址和第一网络设备的标识,所述关联信息指示所述第二网络设备是所述第一网络设备上的主用路由的下一跳设备,所述主用路由的目的地址为目的设备的IP地址;After the second network device is faulty, the second network device obtains the association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is a next hop device of the primary route on the first network device, where the destination address of the primary route is an IP address of the destination device;
    所述第二网络设备获取恢复的地址转换协议ARP表;The second network device acquires a restored address translation protocol ARP table;
    所述第二网络设备查询所述恢复的ARP表,获取ARP表项中的目的设备的IP地址,所述目的设备的IP地址用于标识目的设备;The second network device queries the restored ARP table to obtain an IP address of the destination device in the ARP entry, and the IP address of the destination device is used to identify the destination device.
    所述第二网络设备查询到所述目的设备的路由是否可用;Determining, by the second network device, whether a route to the destination device is available;
    当所述第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中获得所述目的设备的IP地址对应的第一网络设备的标识;When the route from the second network device to the destination device is available, the second network device obtains, from the association information, an identifier of the first network device corresponding to the IP address of the destination device;
    所述第二网络设备建立与所述第一网络设备之间的主用路由,触发所述第一网络设备将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。The second network device establishes an active route with the first network device, and triggers the first network device to switch back the backup route to the primary route, where the destination address of the backup route is The IP address of the destination device, the next hop is the third network device, and the third network device is the backup network device of the second network device.
  13. 一种延时回切的第一网络设备,其特征在于,所述第一网络设备包括:A first network device for delaying back-cutting, wherein the first network device includes:
    发送单元,用于向第二网络设备发送查询报文,所述查询报文用于触发所述第二网络设备检测从所述第二网络设备到目的设备的路由是否可 用,所述第二网络设备为主用的网络设备;a sending unit, configured to send a query message to the second network device, where the query message is used to trigger the second network device to detect whether a route from the second network device to the destination device is Using the second network device as a network device for primary use;
    接收单元,用于接收到所述第二网络设备发送的查询响应报文,并将所述查询响应报文发送至所述处理单元;a receiving unit, configured to receive the query response message sent by the second network device, and send the query response message to the processing unit;
    处理单元,用于生成所述查询报文,并将所述查询报文发送至所述发送单元;a processing unit, configured to generate the query message, and send the query message to the sending unit;
    所述接收单元接收到所述第二网络设备发送的查询响应报文后,将备用路由回切到主用路由;所述查询响应报文用于指示所述第二网络设备与所述目的设备之间的路由可用;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。After receiving the query response message sent by the second network device, the receiving unit returns the backup route to the primary route, where the query response message is used to indicate the second network device and the destination device. The route between the destination is the IP address of the destination device, the next hop is the third network device, and the destination address of the primary route is the IP address of the destination device. Jumping to the second network device; the third network device is a backup network device of the second network device.
  14. 根据权利要求13所述的第一网络设备,其特征在于,The first network device according to claim 13, wherein
    所述处理单元,还用于当第二网络设备故障排除后,向第二网络设备发送查询报文前,第一网络设备恢复与所述第二网络设备的流量工程TE隧道连接。The processing unit is further configured to: after the second network device is faulty, send the query message to the second network device, and the first network device resumes the connection with the traffic engineering TE tunnel of the second network device.
  15. 根据权利要求13或14任意一项所述的第一网络设备,其特征在于,所述处理单元用于将备用路由切换到主用路由包括:The first network device according to any one of claims 13 or 14, wherein the processing unit for switching the backup route to the primary route comprises:
    建立所述主用路由的转发表项,并激活所述转发表项;Establishing a forwarding entry of the primary route, and activating the forwarding entry;
    利用所述转发表项向所述第二网络设备转发数据报文。And forwarding, by using the forwarding entry, the data packet to the second network device.
  16. 根据权利要求13或14任意一项所述的第一网络设备,其特征在于,A first network device according to any one of claims 13 or 14, wherein
    所述处理单元,还用于生成所述主用路由的转发表项。The processing unit is further configured to generate a forwarding entry of the primary route.
  17. 根据权利要求16所述的第一网络设备,其特征在于,所述处理单元用于将备用路由切换到主用路由包括:The first network device according to claim 16, wherein the processing unit is configured to switch the alternate route to the primary route, including:
    激活所述转发表项;Activating the forwarding entry;
    利用所述转发表项向所述第二网络设备转发数据报文。And forwarding, by using the forwarding entry, the data packet to the second network device.
  18. 根据权利要求13-17任意一项所述的第一网络设备,其特征在于,A first network device according to any one of claims 13-17, characterized in that
    所述第一网络设备为网络NPE设备或者运营商边缘PE设备;The first network device is a network NPE device or an operator edge PE device;
    所述第二网络设备和所述第三网络设备为上层运营商边缘SPE设备 或者NPE设备。The second network device and the third network device are upper layer operator edge SPE devices Or NPE equipment.
  19. 一种延时回切的第二网络设备,其特征在于,所述第二网络设备包括:A second network device that is delayed and switched back, wherein the second network device includes:
    接收单元,用于接收第一网络设备发送的查询报文,将所述查询报文发送至处理单元,所述第二网络设备为主用的网络设备;a receiving unit, configured to receive a query message sent by the first network device, and send the query message to a processing unit, where the second network device is a network device for use;
    所述处理单元,用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用;The processing unit is configured to detect, according to the query message, whether a route from the second network device to the destination device is available;
    发送单元,用于当从所述第二网络设备到目的设备的路由可用时,向所述第一网络设备发送查询响应报文,所述查询响应报文用于触发所述第一网络设备将备用路由回切到主用路由;所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述主用路由的目的地址为所述目的设备的IP地址,下一跳为所述第二网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。a sending unit, configured to send a query response message to the first network device when the route from the second network device to the destination device is available, where the query response message is used to trigger the first network device to be The backup route is switched back to the primary route; the destination address of the backup route is the IP address of the destination device, and the next hop is the third network device; the destination address of the primary route is the IP address of the destination device. The next hop is the second network device; the third network device is the backup network device of the second network device.
  20. 根据权利要求19所述的第二网络设备,其特征在于,所述处理单元用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:The second network device according to claim 19, wherein the processing unit is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
    所述第二网络设备查询是否完成从所述第三网络设备的地址转换协议ARP表的备份;Determining, by the second network device, whether a backup of an address translation protocol ARP table from the third network device is completed;
    当所述第二网络设备完成从第三网络设备的ARP表的备份时,所述第二网络设备从所备份的ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。When the second network device completes the backup of the ARP table from the third network device, the second network device queries, from the backed up ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  21. 根据权利要求19所述的第二网络设备,其特征在于,所述处理单元用于根据所述查询报文检测从所述第二网络设备到目的设备的路由是否可用包括:The second network device according to claim 19, wherein the processing unit is configured to detect, according to the query message, whether a route from the second network device to the destination device is available, including:
    所述第二网络设备利用预设的ARP配置文件生成ARP表;The second network device generates an ARP table by using a preset ARP configuration file;
    所述第二网络设备从所述ARP表中查询是否存在所述目的设备的IP地址所对应的ARP表项。The second network device queries, from the ARP table, whether an ARP entry corresponding to the IP address of the destination device exists.
  22. 根据权利要求20-21任意一项所述的第二网络设备,其特征在于,A second network device according to any one of claims 20-21, characterized in that
    所述处理单元,还用于当存在所述目的设备的IP地址所对应的ARP 表项时,所述第二网络设备检测所述第二网络设备到第四网络设备的虚链路PW是否可用,所述第四网络设备与所述目的设备相连。The processing unit is further configured to: when the ARP corresponding to the IP address of the destination device exists The second network device detects whether the virtual link PW of the second network device to the fourth network device is available, and the fourth network device is connected to the destination device.
  23. 根据权利要求20-21任意一项所述的第二网络设备,其特征在于,A second network device according to any one of claims 20-21, characterized in that
    所述处理单元,还用于当存在所述目的设备的IP地址所对应的ARP表项时,所述第二网络设备检测所述第二网络设备到所述第三网络设备的保护PW是否可用,所述保护PW为框间备份ICB PW或双模对接DNI PW。The processing unit is further configured to: when the ARP entry corresponding to the IP address of the destination device exists, the second network device detects whether the protection PW of the second network device to the third network device is available. The protection PW is an inter-frame backup ICB PW or a dual-mode docking DNI PW.
  24. 一种延时回切的系统,其特征在于,所述系统包括:A system for delaying and cutting back, characterized in that the system comprises:
    权利要求13-18任意一项所述的延时回切的第一网络设备以及权利要求19-23任意一项所述的延时回切的第二网络设备。The delayed networked first network device of any one of claims 13-18 and the delayed networked second network device of any of claims 19-23.
  25. 一种延时回切的第二网络设备,其特征在于,所述第二网络设备包括:A second network device that is delayed and switched back, wherein the second network device includes:
    处理单元,用于当故障排除后,获得关联信息,所述关联信息包括目的设备的IP地址和第一网络设备的标识,所述关联信息指示所述第二网络设备是所述第一网络设备上的主用路由的下一跳设备,所述主用路由的目的地址为目的设备的IP地址;获取恢复的地址转换协议ARP表;查询所述恢复的ARP表,获取ARP表项中的目的设备的IP地址,所述目的设备的IP地址用于标识目的设备;查询到所述目的设备的路由是否可用;当所述第二网络设备到所述目的设备的路由可用时,所述第二网络设备从所述关联信息中获得所述目的设备的IP地址对应的第一网络设备的标识;建立与所述第一网络设备之间的主用路由,触发所述第一网络设备将备用路由回切到所述主用路由,所述备用路由的目的地址为所述目的设备的IP地址,下一跳为第三网络设备;所述第三网络设备为所述第二网络设备的备用网络设备。 a processing unit, configured to: after the fault is rectified, obtain association information, where the association information includes an IP address of the destination device and an identifier of the first network device, where the association information indicates that the second network device is the first network device The next hop of the primary route, the destination address of the primary route is the IP address of the destination device; the ARP table of the restored address translation protocol is obtained; the ARP table is queried for the purpose of obtaining the ARP entry. The IP address of the device, the IP address of the destination device is used to identify the destination device; the route to the destination device is queried; and when the route from the second network device to the destination device is available, the second The network device obtains, from the association information, an identifier of the first network device corresponding to the IP address of the destination device, establishes an active route with the first network device, and triggers the first network device to use an alternate route. Switching back to the primary route, the destination address of the backup route is an IP address of the destination device, and the next hop is a third network device; the third network device is a Backup network device of the second network device.
PCT/CN2015/088979 2014-12-05 2015-09-06 Switchback delay method, device, and system WO2016086697A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP15865096.0A EP3217608B1 (en) 2014-12-05 2015-09-06 Switchback delay methods and devices
EP20216406.7A EP3866412A1 (en) 2014-12-05 2015-09-06 Method, device, and system for deferring switchback
US15/614,057 US11146484B2 (en) 2014-12-05 2017-06-05 Method, device, and system for deferring switchback

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410736357.6 2014-12-05
CN201410736357.6A CN104518960B (en) 2014-12-05 2014-12-05 A kind of method, equipment and the system of the switchback that is delayed

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/614,057 Continuation US11146484B2 (en) 2014-12-05 2017-06-05 Method, device, and system for deferring switchback

Publications (1)

Publication Number Publication Date
WO2016086697A1 true WO2016086697A1 (en) 2016-06-09

Family

ID=52793714

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088979 WO2016086697A1 (en) 2014-12-05 2015-09-06 Switchback delay method, device, and system

Country Status (4)

Country Link
US (1) US11146484B2 (en)
EP (2) EP3866412A1 (en)
CN (1) CN104518960B (en)
WO (1) WO2016086697A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518960B (en) * 2014-12-05 2018-01-19 华为技术有限公司 A kind of method, equipment and the system of the switchback that is delayed
US10721206B2 (en) * 2015-02-27 2020-07-21 Arista Networks, Inc. System and method of persistent address resolution synchronization
CN106712997B (en) * 2015-11-16 2020-04-14 华为技术有限公司 Method, equipment and system for recovering table entry
CN108462637A (en) * 2016-12-12 2018-08-28 华为技术有限公司 One kind being routed back to blanking method, controller and system
CN109327255B (en) * 2018-09-26 2023-01-24 中国民航管理干部学院 Routing method and system for unmanned aerial vehicle ad hoc network
CN109981452B (en) * 2019-02-28 2021-03-23 新华三技术有限公司 Method and device for switching back PW link
CN115242709B (en) * 2022-07-18 2024-05-24 云合智网(上海)技术有限公司 L2VPN to L3VPN access method, device, equipment and medium
CN115865772B (en) * 2022-11-25 2024-06-18 迈普通信技术股份有限公司 Flow back switching method and device, electronic equipment, M-LAG system and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436975A (en) * 2007-11-13 2009-05-20 华为技术有限公司 Method, apparatus and system for implementing rapid convergence in looped network
CN101651691A (en) * 2009-08-31 2010-02-17 中兴通讯股份有限公司 Network system, access equipment and application layer service assess method
CN101651553A (en) * 2009-09-03 2010-02-17 华为技术有限公司 User side multicast service primary and standby protecting system, method and route devices
CN102006268A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Method, equipment and system for switching main interface and standby interface
CN102195861A (en) * 2010-03-19 2011-09-21 杭州华三通信技术有限公司 Method and device for establishing BFD (bidirectional forwarding detection) session in route switching process
CN103516612A (en) * 2012-06-20 2014-01-15 北京华为数字技术有限公司 Method for generating routing table items in a distributed router, and distributed router
CN104518960A (en) * 2014-12-05 2015-04-15 华为技术有限公司 Delayed back-switching method, devices and system

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7647422B2 (en) * 2001-11-06 2010-01-12 Enterasys Networks, Inc. VPN failure recovery
US7219149B2 (en) * 2003-06-12 2007-05-15 Dw Holdings, Inc. Versatile terminal adapter and network for transaction processing
US7990888B2 (en) * 2005-03-04 2011-08-02 Cisco Technology, Inc. System and methods for network reachability detection
US7724651B2 (en) * 2007-01-31 2010-05-25 Alcatel Lucent Redundant far-end pseudo-wire connectivity
JP4747118B2 (en) * 2007-03-05 2011-08-17 富士通株式会社 Router, communication guarantee method and communication guarantee program
CN101577661B (en) * 2008-05-09 2013-09-11 华为技术有限公司 Method and equipment for switching path
CN101883038B (en) * 2010-06-30 2015-08-12 中兴通讯股份有限公司 Host node in the method for EAPS looped network protection switching and EAPS looped network
US8750096B2 (en) * 2011-01-13 2014-06-10 Tellabs Operations, Inc. Method and apparatus for improving data integrity during a router recovery process
JPWO2012124099A1 (en) * 2011-03-17 2014-07-17 富士通株式会社 Router device and line switching method in router device
US8675479B2 (en) * 2011-07-12 2014-03-18 Tellabs Operations, Inc. Methods and apparatus for improving network communication using ethernet switching protection
JP5784139B2 (en) * 2011-11-01 2015-09-24 株式会社日立製作所 Communications system
US20150138958A1 (en) * 2012-04-18 2015-05-21 Telefonaktiebolaget L M Ericsson (Publ) System and method to send oam packets on redundancy paths
CN102752172B (en) * 2012-07-13 2014-12-31 杭州华三通信技术有限公司 Control method and control device for switching AP (Access Point) between hot standby ACs (Access Controllers)
CN103580904A (en) * 2012-08-08 2014-02-12 中兴通讯股份有限公司 Method and device for sending inter-domain fault information
US9059902B2 (en) * 2012-08-24 2015-06-16 Coriant Operations, Inc Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements
CN104184661B (en) * 2014-08-27 2018-01-05 中国联合网络通信集团有限公司 The method and device of control business switchback

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436975A (en) * 2007-11-13 2009-05-20 华为技术有限公司 Method, apparatus and system for implementing rapid convergence in looped network
CN102006268A (en) * 2009-08-28 2011-04-06 华为技术有限公司 Method, equipment and system for switching main interface and standby interface
CN101651691A (en) * 2009-08-31 2010-02-17 中兴通讯股份有限公司 Network system, access equipment and application layer service assess method
CN101651553A (en) * 2009-09-03 2010-02-17 华为技术有限公司 User side multicast service primary and standby protecting system, method and route devices
CN102195861A (en) * 2010-03-19 2011-09-21 杭州华三通信技术有限公司 Method and device for establishing BFD (bidirectional forwarding detection) session in route switching process
CN103516612A (en) * 2012-06-20 2014-01-15 北京华为数字技术有限公司 Method for generating routing table items in a distributed router, and distributed router
CN104518960A (en) * 2014-12-05 2015-04-15 华为技术有限公司 Delayed back-switching method, devices and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3217608A4 *

Also Published As

Publication number Publication date
EP3217608A4 (en) 2017-11-15
US11146484B2 (en) 2021-10-12
US20170272358A1 (en) 2017-09-21
EP3217608B1 (en) 2021-03-03
EP3217608A1 (en) 2017-09-13
EP3866412A1 (en) 2021-08-18
CN104518960B (en) 2018-01-19
CN104518960A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
WO2016086697A1 (en) Switchback delay method, device, and system
US8565098B2 (en) Method, device, and system for traffic switching in multi-protocol label switching traffic engineering
JP4899959B2 (en) VPN equipment
WO2008110083A1 (en) Transmission method, device and system for iub interface service transmitting based ip
CN109672619A (en) A kind of method, equipment and system handling message
WO2015000375A1 (en) Packet forwarding method, apparatus, and system
WO2010069175A1 (en) Method, system and equipment for establishing bidirectional forwarding detection
WO2012075831A1 (en) Method and system for multicast protection
CN103354521B (en) The optimization method of a kind of LSP based on LDP renewal and device
WO2012159489A1 (en) Switching method, system and dual homing provider device for pseudowire dual homing network
WO2008141567A1 (en) Multi-protocol label switching network flow switch method and equipment
CN103490969A (en) System and method for achieving VPWS redundancy protection rapid convergence
WO2018113294A1 (en) Method, device and system for forwarding packet
CN102142948A (en) Data forwarding method, device and system
WO2014206207A1 (en) Route withdrawal method and network device
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
WO2014090083A1 (en) Service bearing method and apparatus during distributed resilient network interconnect
EP2658177B1 (en) Method for detecting tunnel faults and traffic engineering node
CN102238067B (en) Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
KR101522005B1 (en) Method and apparatus for protection switching
WO2010045838A1 (en) Method and device for processing messages
WO2012142753A1 (en) Method and device for monitoring ip bearer network performance
CN101895455A (en) Method for fast protecting ring network based on multi-protocol label switching transport profile (MPLS-TP)
CN103138957A (en) Method, device and system for business path failback
CN102812750B (en) Fault handling method, grouping conveying network and node in grouping conveying network

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: 15865096

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2015865096

Country of ref document: EP