WO2021169276A1 - Link detection method and apparatus, computer device, and storage medium - Google Patents

Link detection method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2021169276A1
WO2021169276A1 PCT/CN2020/118064 CN2020118064W WO2021169276A1 WO 2021169276 A1 WO2021169276 A1 WO 2021169276A1 CN 2020118064 W CN2020118064 W CN 2020118064W WO 2021169276 A1 WO2021169276 A1 WO 2021169276A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
state information
forwarding instance
forwarding
link state
Prior art date
Application number
PCT/CN2020/118064
Other languages
French (fr)
Chinese (zh)
Inventor
余培柱
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021169276A1 publication Critical patent/WO2021169276A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • 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/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers

Definitions

  • This application relates to the field of computer technology, and in particular to a link detection method, device, computer equipment, and storage medium.
  • VRF Virtual Routing Forwarding
  • Both parties of the BFD session periodically send BFD control packets to each other on the link, and also periodically check the BFD control sent by the other party on the link.
  • the message is used for fault detection based on whether the control message from the other party is received under certain conditions.
  • the same physical network interface can support up to 4096 VLANs (Virtual Local Area Network, virtual local area network) sub-interface, so 4096 VRF instances can be established.
  • a BFD session is opened to confirm the connectivity to the next hop.
  • each BFD session Assuming that the detection time of each BFD session is configured as 100 milliseconds, one data packet will be sent and received every 100 milliseconds. For 4096 BFD sessions, 40960 BFD data packets need to be sent and received per second. The inventor realized that if the detection time is configured to be shorter, more data packets need to be sent and received per second. This adds excessive overhead to the CPU (Central Processing Unit), memory, and network of a network device with limited resources.
  • CPU Central Processing Unit
  • the embodiments of the present application provide a link detection method, device, computer equipment, and storage medium to solve the occupation of network equipment resources and network transmission resources due to link failure detection in a link communication network, which leads to network equipment performance and network performance.
  • the problem of degraded transmission performance is a problem of degraded transmission performance.
  • a link detection method includes:
  • K virtual local area network sub-interfaces of a specific physical network interface From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M ⁇ K;
  • a link detection device includes:
  • the instance object selection module is used to select M virtual local area network sub-interfaces from the K virtual local area network sub-interfaces of a specific physical network interface according to a preset selection method, and select M virtual local area network sub-interfaces in the selected M virtual local area network sub-interfaces.
  • a detection protocol session is established in a virtual routing and forwarding instance, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routes of the KM sub-interfaces of the virtual local area network that have not been selected
  • the forwarding instance is used as a subscription virtual routing forwarding instance, where K and M are both positive integers, and M ⁇ K;
  • An information acquisition module configured to acquire link state information detected by the virtual routing and forwarding detection instance
  • the information processing module is configured to forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
  • a computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, wherein the processor implements the following steps when the processor executes the computer-readable instructions:
  • K virtual local area network sub-interfaces of a specific physical network interface From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M ⁇ K;
  • One or more readable storage media storing computer readable instructions.
  • the computer readable storage medium stores computer readable instructions.
  • the computer readable instructions execute the following steps:
  • K virtual local area network sub-interfaces of a specific physical network interface From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M ⁇ K;
  • the specific virtual local area network sub-interface is selected in a preset manner from the virtual local area network sub-interface of the specific physical network interface as the detection virtual route forwarding instance, and the detection The detection protocol session is established in the virtual routing and forwarding instance to detect the link state information, and the unselected virtual local area network sub-interface is used as the subscribed virtual routing and forwarding instance, and the link state information is obtained by subscribing.
  • Detecting protocol sessions to detect link state information can further reduce the occupation of network equipment's CPU and memory and other equipment resources, as well as reduce the occupation of network transmission resources, improve the forwarding and response capabilities of network equipment, and thus improve network equipment Performance and network transmission performance.
  • FIG. 1 is a flowchart of a link detection method in an embodiment of the present application
  • step S2 is a flowchart of step S2 in the link detection method in an embodiment of the present application
  • FIG. 3 is a flowchart of step S5 in the link detection method in an embodiment of the present application.
  • Figure 4 is a schematic diagram of a link detection device in an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a computer device in an embodiment of the present application.
  • the link detection method provided in this application can be applied to network equipment, where the network equipment can specifically be various computers, hubs, switches, bridges, routers, gateways, network interface cards, wireless access points, printers, and modems. , And portable wearable devices, etc.
  • the network device selects the detection virtual routing and forwarding instance and subscribing to the virtual routing and forwarding instance according to a preset method, obtains the link state information detected by the detection virtual routing and forwarding instance, and instructs the subscribed virtual routing and forwarding instance to make routing changes based on the link state information deal with.
  • a link detection method is provided.
  • the method is applied to a network device as an example for description, which specifically includes steps S1 to S3, which are described in detail as follows:
  • S1 From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish a detection protocol session in the virtual routing and forwarding instance of the selected M virtual local area network sub-interfaces,
  • the virtual routing and forwarding instance that has established the detection protocol session is used as the detection virtual routing and forwarding instance
  • the virtual routing and forwarding instances of the unselected KM virtual local area network sub-interfaces are used as the subscription virtual routing and forwarding instances, where K and M are both positive integers , M ⁇ K.
  • one physical network interface of a network device can support a maximum of 4096 virtual local area network sub-interfaces, so a maximum of 4096 virtual routing and forwarding instances can be established.
  • a virtual routing and forwarding instance is a VRF instance, which is specifically a virtual router in a virtual local area network sub-interface.
  • the virtual router includes: an independent routing table, an independent address space, a collection of network interfaces belonging to the virtual router, and a group The routing protocol used only for this virtual router.
  • the network devices communicate with each other by accessing the routing table stored in the address space of the virtual routing and forwarding instance through the routing protocol of the virtual routing and forwarding instance.
  • the preset selection method may be a random selection method.
  • the detection protocol session is a BFD session, which is a communication session established by the link detection protocol in the process of detecting link state information.
  • the link detection protocol for establishing a detection protocol session is specifically a two-way forwarding detection protocol, that is, the BFD protocol, which can establish contact with links, interfaces, tunnels, routes, or other network forwarding components.
  • Intermediate system protocol The two-way forwarding detection protocol can establish a peer relationship with neighboring systems. Each system monitors the two-way forwarding detection protocol rate from other systems at a negotiated rate, and the monitoring rate can be set in millisecond increments.
  • the peer-to-peer system does not receive a preset number of data packets, it infers that the software or hardware infrastructure protected by the two-way forwarding detection protocol is faulty, regardless of whether the infrastructure is a label switching path, other types of tunnels, or a switched Ethernet network.
  • the two-way forwarding detection protocol is deployed on the control plane of routers and other systems. The network failure detected by the two-way forwarding detection protocol can be recovered by the forwarding plane or the control plane.
  • the network device uses the virtual routing and forwarding protocol that has established a two-way forwarding detection protocol session as the detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as the subscription virtual routing and forwarding instances, thereby There is no need to establish a two-way forwarding detection protocol session on each virtual routing and forwarding instance to detect link state information. It is only necessary to detect the link status by detecting the virtual routing and forwarding instance, and subscribe to the virtual routing and forwarding instance through subscription. Obtain link status information to reduce the occupation of network equipment's CPU and memory and other equipment resources, as well as reduce the occupation of network transmission resources, thereby improving the forwarding and responsiveness of network equipment, and improving network equipment performance and network transmission performance.
  • the link state is detected by detecting the two-way forwarding detection protocol session established in the virtual routing and forwarding instance, and the link state information is obtained through the gateway address of the target link in the two-way forwarding detection protocol session.
  • the main working process of the two-way forwarding detection protocol to establish a two-way forwarding detection protocol session is as follows:
  • the two-way forwarding detection protocol uses the two-way forwarding detection protocol to first establish a two-way forwarding detection protocol session on a link between two endpoints, relying on the upper layer protocol to establish, for example, when a neighbor with open shortest path first is established, the neighbor information will be notified to the two-way forwarding detection protocol.
  • the two-way forwarding detection protocol establishes a two-way forwarding detection protocol session neighbor based on this information. If there are multiple links between the two endpoints, a two-way forwarding detection protocol session can be established for each link.
  • the open shortest path is preferred as an internal gateway protocol, which is used to make routing decisions in a single autonomous system. It is an implementation of the link state routing protocol and belongs to the interior gateway protocol.
  • the two-way forwarding detection protocol session performs two-way forwarding detection protocol session detection between two network nodes that establish the session. If a link failure is found, the two-way forwarding detection protocol session neighbor is removed, and the upper layer protocol is notified immediately, and the upper layer protocol will immediately switch accordingly.
  • Active mode Before establishing a two-way forwarding detection protocol session, regardless of whether it receives a two-way forwarding detection protocol control message from the target link gateway address end, it will actively send a two-way forwarding detection protocol control message to the target link gateway address end.
  • Passive mode The two-way detection protocol control message will not be actively sent before the dialogue is established, until the two-way forwarding detection protocol control message sent from the target link gateway address is received.
  • At least one of the communicating parties must be running in active mode to successfully establish a session.
  • the two-way forwarding detection protocol has two operating modes after the session is established: asynchronous mode and query mode.
  • both link network nodes will periodically send two-way forwarding detection protocol control messages. If they do not receive the two-way forwarding detection protocol control message from the target link gateway address within the detection time, it will be considered corresponding The link network node fails.
  • Query mode Assume that each system has an independent method to confirm that it is connected to other systems. In this way, as long as a two-way forwarding detection protocol session is established, the system stops sending two-way forwarding detection protocol control messages, unless a certain system needs to explicitly verify connectivity. If you want to explicitly verify the connectivity, the system sends a short series of two-way forwarding detection protocol control packets. If the return message is not received within the detection time, the session status is declared as Down; if the target link gateway address end is received In response to the message, the protocol remained silent again. Among them, the session state Down is the message state during the two-way forwarding detection protocol session, and the two-way forwarding detection protocol session message state includes: 0—AdminDown; 1—Down; 2—Init; 3—Up.
  • the two-way forwarding detection protocol session There is also an echo function in the two-way forwarding detection protocol session. After the echo function is activated, one end of the session periodically sends two-way detection protocol echo messages, and the target link gateway address does not process the echo messages, but only this The message is forwarded and then sent back to the sender. The sender detects the session state according to whether it can receive the two-way detection protocol message.
  • the two-way forwarding detection protocol echo message is only used to detect the link status information of the directly connected network segment, and the two-way forwarding detection protocol control message can also detect the link status information of the non-directly connected network segment.
  • the obtained link state information may be a link failure or an unblocked link.
  • the two-way forwarding detection protocol used in this embodiment provides a universal and standardized media-independent and protocol-independent protocol, which can detect link failures on any type of two-way forwarding path between network devices, which can be Different upper-layer application services provide consistent fast fault detection time, microsecond link detection accuracy, reduce application interruption time, and improve network reliability.
  • the virtual routing and forwarding instance that is not selected as the subscribing virtual routing and forwarding instance performs processing according to the link state information detected by the virtual routing and forwarding instance. Routing change processing.
  • the subscription mechanism is that when an event occurs, the party that detects or generates the event acts as the active party to notify the subscriber as the passive party through the notification function.
  • the notification function is a notification linked list in which one party is the notifier and the other party is the receiver.
  • the linked list can be a function linked list.
  • the subscribed virtual route forwarding instance performs different route change processing according to different link state information.
  • the link state information may include: link failure and link unblocking. When the link state information indicates that the link is down, route convergence is performed; when the link state information indicates that the link is unblocked, the route is restored.
  • the link state information there are two ways to forward the link state information to the subscribed virtual route forwarding instance: one is to directly obtain the link state information through the subscription mechanism; the other is, By storing the detected link state information in a preset database, the link state information is obtained from the preset database. When one method fails, the other method can be used as a backup method.
  • the two methods can exist simultaneously in the process of link detection in the active and standby mode, which can improve the efficiency of link state information forwarding and improve the network equipment. Forwarding ability and response ability, thereby improving network equipment performance and network transmission performance.
  • the network device first divides the virtual routing and forwarding instances in the virtual local area network sub-interfaces into detection virtual routing and forwarding instances and subscribing to virtual routing and forwarding instances in a preset manner, and establishes a two-way forwarding detection protocol in the virtual routing and forwarding detection instances. Session, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the obtained link state information.
  • the virtual routing and forwarding instances in the virtual local area network sub-interfaces are divided into detection virtual routing and forwarding instances and subscribing to virtual routing and forwarding instances in a preset manner.
  • step S2 obtaining the link state information detected by the detection virtual routing and forwarding instance specifically includes steps S21 to S22, which are described in detail as follows:
  • the detection message sent by the two-way forwarding detection protocol session is a user datagram protocol message, which provides a method for sending encapsulated IP datagrams without establishing a connection.
  • Two types of messages are defined: control messages And echo messages.
  • Control messages Sessions at both ends of the link monitor the link status through control messages interactively.
  • Echo message One end of the link sends echo messages back by the other end to realize bidirectional monitoring of the link.
  • the two-way forwarding detection protocol session establishment process is a three-way handshake process. After this process, the sessions at both ends become Up. During this process, the corresponding parameters are negotiated. The subsequent state changes are carried out based on the defect detection results. , And deal with it accordingly.
  • Init Indicates that it is communicating with the peer system
  • AdminDown Indicates that the session is forcibly changed to the Down state, which will make the peer enter and remain in the Down state.
  • the end of the establishment of the bidirectional forwarding detection protocol session is A
  • the end of the target link gateway address is B.
  • a and B start the two-way forwarding detection protocol, the initial state of each is Down, and the carrying state of the two-way forwarding detection protocol session message is Down.
  • End B receives the two-way forwarding detection protocol session message with the status of Down, the local state switches to Init, and sends the two-way forwarding detection protocol session message carrying the state as Init.
  • A-side two-way forwarding detection protocol session state change process is the same as above.
  • End B receives a two-way forwarding detection protocol session message with a status of Init, and the local status switches to Up.
  • a and B will start a timeout timer after the change from Down state to Init state occurs.
  • the function of this timer is to prevent the local state from being blocked in the Init state. If the state is not received within the specified time, the state is Init. Or if the Up bidirectional forwarding detection protocol session message, the state automatically switches back to Down.
  • the local status Up indicates that the session is established successfully.
  • step 2 end A does not receive a control message with a session status of Down sent by end B within a specified time, end A considers that end B is faulty.
  • the two-way forwarding detection protocol actively sends a control message to the target link gateway address end, and the target link gateway address sends a corresponding response message, then the link state information is a link failure; if the target link If the gateway address does not send a corresponding response message, the link status information is that the link is unblocked.
  • the gateway address end periodically sends a two-way forwarding detection protocol control message. If the two-way forwarding detection protocol response message from the target link gateway address end is not received within the detection time, it is considered that the corresponding target link gateway address end has a link Road failure. Otherwise, the link is considered unobstructed.
  • the detection protocol control message is sent to the target link gateway address through the detection virtual route forwarding instance, and the link state information is determined by the response message of the target link gateway address to the detection protocol control message.
  • Link failure or unblocked link can detect link state information more accurately and stably, improve the responsiveness of network equipment, and thereby improve the performance of network equipment.
  • step S3 forwarding the link state information to the subscribed virtual route forwarding instance specifically includes step S31, which is described in detail as follows:
  • S31 Instruct the subscribed virtual route forwarding instance to use link state information as a parameter of the preset callback function, and instruct the subscribed virtual route forwarding instance to execute a preset callback function to obtain link state information, where the preset callback function is to detect the virtual The callback function of the subscription virtual routing and forwarding instance registered in the notification list of the routing and forwarding instance.
  • the link state information is forwarded to the subscription virtual routing forwarding instance through the subscription mechanism, where the subscription mechanism is implemented in a notification linked list mode with one party as the notifier and one party as the receiver.
  • the notification linked list is a function linked list.
  • the main elements of the notification list include:
  • Recipient A party interested in a certain event. Defines that when an event occurs, the corresponding processing function is executed, that is, the callback function. But it needs to be registered in the notification list in advance.
  • Notifier The notifier of the event. When an event is detected, or an event is generated by itself, all parties interested in the event are notified of the occurrence of the event.
  • the notifier defines a notification chain, which stores the callback function of each recipient to the event. The notification process is to traverse each item in the notification chain, and then call the callback function of the corresponding event.
  • the main process of the operation of the notification list includes:
  • the notifier defines the notification linked list.
  • the recipient registers the callback function in the notification list.
  • the notifier sends a notification and executes the callback function of all elements in the notification linked list.
  • the detection virtual routing and forwarding instance detects link state information
  • a callback function is triggered, instructing the subscribed virtual routing and forwarding instance to use the detected link state information as a parameter of the callback function, and the subscribing virtual routing and forwarding instance will be the link state
  • the information is substituted into the callback function to run, and the link status information is obtained.
  • the subscribed virtual route forwarding instance is pre-registered in the notification linked list, and when the link state information is detected, the subscribed virtual route forwarding instance that subscribes to the link failure information can be quickly and accurately found in the notification linked list, and There is no need to search in every virtual routing and forwarding instance, thereby reducing the occupation of network transmission resources.
  • step S4 the link state information is forwarded to the subscribed virtual route forwarding instance, which specifically further includes step S41, which is described in detail as follows:
  • S41 Store the link state information in the preset database, and instruct the subscription virtual routing and forwarding instance to obtain the link state information from the preset database.
  • the preset database is a designated database in the memory of the network device, and is used to store the link state information detected by the two-way forwarding detection protocol session.
  • the subscribed virtual route forwarding instance Instructs the subscribed virtual routing and forwarding instance to obtain the detected link state information from the specified database.
  • the subscribed virtual route forwarding instance that has obtained the link state information will learn that the physical network interface where the subscribed virtual route forwarding instance is located is faulty, and then clear the local route related to the physical network interface.
  • the manner of acquiring the detected link state information from the designated database does not affect the acquisition of the link state information through the subscription mechanism.
  • the link state information there are two ways to forward the link state information to the subscribed virtual route forwarding instance: one is to directly obtain the link state information through the subscription mechanism; the other is to pass the detected link
  • the status information is stored in a preset database, and the link status information is obtained from the preset database.
  • the other method can be used as a backup method.
  • This method of forwarding link state information using active and standby coexistence can improve the ability of network equipment to detect link state information and improve the forwarding of network equipment Ability and responsiveness to improve network equipment performance and network transmission performance.
  • step S5 instructing the subscribed virtual route forwarding instance to perform route change processing according to link state information, specifically including steps S51 to S52, which are described in detail as follows:
  • routing convergence refers to the process that after the topology of the network changes, the routing table is re-established, sent and then learned until it is stable, and all related routers in the network are notified of the change, that is, the process of recalculation caused by changes in the network topology Route and discover the behavior of alternative routes.
  • route restoration refers to the process of re-stabilizing the routing table after route convergence, and notifying all relevant routers in the network to restore the normal network.
  • the subscribed virtual route forwarding instance performs different route change processing according to different link state information: when the link fails, the route is converged; the link is unblocked and the route is restored.
  • the way to obtain link state information and solve link problems by subscribing to the virtual routing and forwarding instance which is a subscription mechanism, can further reduce the occupation of device resources such as CPU and memory of network devices, and reduce the cost of network transmission resources. Occupy, improve the forwarding ability and responsiveness of network equipment.
  • step S6 after the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as subscription virtual routing and forwarding instances, the link status detected by the virtual routing and forwarding instance is acquired.
  • the link detection method specifically includes step S61, which is described in detail as follows:
  • M when M is 1, only one virtual routing and forwarding instance is selected from the virtual local area network sub-interfaces in the physical network interface as a detection virtual routing and forwarding instance, and the remaining unselected virtual routing and forwarding instances are subscribed as a subscribed virtual routing and forwarding instance for link detection;
  • M is greater than 1
  • select M virtual routing and forwarding instances from the virtual local area network sub-interfaces in the physical network interface as detection virtual routing and forwarding instances, and the remaining unselected virtual routing and forwarding instances are used as subscription virtual routing and forwarding instances and divided into M subscription packets.
  • the subscribed virtual route forwarding instance when the number of physical network interfaces to be detected is large, the subscribed virtual route forwarding instance can be subscribed in a manner of subscribing to grouping, and multiple detection virtual route forwarding instances corresponding to the subscribed grouping can be used to perform link detection.
  • this method can also further reduce the occupation of device resources such as CPU and memory of network equipment, as well as reduce the occupation of network transmission resources, and improve the forwarding and response capabilities of network equipment, thereby Improve network equipment performance and network transmission performance.
  • a link detection device is provided, and the link detection device corresponds to the link detection method in the above-mentioned embodiment in a one-to-one correspondence.
  • the link detection device includes: an instance object selection module 10, an information acquisition module 20, and an information processing module 30.
  • the detailed description of each functional module is as follows:
  • the instance object selection module 10 is used to select M virtual local area network sub-interfaces from the K virtual local area network sub-interfaces of a specific physical network interface according to a preset selection method, and forward them in the virtual routing of the selected M virtual local area network sub-interfaces
  • the detection protocol session is established in the instance, the virtual routing and forwarding instance that has established the detection protocol session is used as the detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as the subscription virtual routing and forwarding instances, where, K and M are both positive integers, M ⁇ K;
  • the information acquisition module 20 is configured to acquire link state information detected by the detection virtual routing and forwarding instance
  • the information processing module 30 is configured to forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
  • the information acquisition module 20 includes:
  • the message detection submodule 21 is used to instruct the detection virtual route forwarding instance to send a detection protocol control message to the target link gateway address, and receive a response message of the target link gateway address;
  • the information confirmation sub-module 22 is used to determine the link state information according to the response message of the target link gateway address to the detection protocol control message.
  • the information processing module 30 includes:
  • the notification linked list sub-module 31 is used to instruct the subscribed virtual route forwarding instance to use link state information as a parameter of the preset callback function, and instruct the subscribed virtual route forwarding instance to execute the preset callback function to obtain link state information, where the preset
  • the callback function is a callback function for subscribing to the virtual routing and forwarding instance registered in the notification linked list of the detection virtual routing and forwarding instance in advance.
  • the information processing module 30 also includes:
  • the database sub-module 32 is used to store the link state information in the preset database, and instruct the subscription virtual route forwarding instance to obtain the link state information from the preset database.
  • the information processing module 30 also includes:
  • the route convergence sub-module 33 is configured to, if the link state information is a link failure, instruct to subscribe to the virtual route forwarding instance to perform route convergence;
  • the route restoration sub-module 34 is configured to, if the link state information is that the link is unblocked, instruct to subscribe to the virtual route forwarding instance to perform route restoration.
  • the link detection device further includes:
  • the subscription grouping module 41 is used to divide the subscription virtual route forwarding instance into M subscription groups when M is greater than 1, and set the correspondence between each subscription group and each detection virtual route forwarding instance, so that each subscription
  • the subscribed virtual routing and forwarding instance in the packet is used to receive the link state information detected by a detecting virtual routing and forwarding instance.
  • Each module in the above-mentioned link detection device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a network device, and its internal structure diagram may be as shown in FIG. 5.
  • the computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by the processor to realize a link detection method.
  • one or more readable storage media storing computer readable instructions are provided.
  • the computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by one or more processors. When executed, the one or more processors are caused to execute the computer-readable instructions to implement the steps of the link detection method in the foregoing embodiment, for example, steps S1 to S3 shown in FIG. 1.
  • the processor implements the functions of the modules/units of the link detection apparatus in the foregoing embodiment when executing computer-readable instructions, for example, the functions of the modules 10 to 30 shown in FIG. 4. To avoid repetition, I won’t repeat them here.
  • the readable storage medium in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
  • a computer-readable storage medium is provided, and computer-readable instructions are stored thereon.
  • the computer-readable instructions implement the link detection method in the above method embodiments when executed by a processor, or the computer may When the read instruction is executed by the processor, the function of each module/unit in the link detection device in the foregoing device embodiment is realized. To avoid repetition, I won’t repeat them here.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

The present application relates to the technical field of computers. Disclosed are a link detection method and apparatus, a computer device, and a storage medium. The method comprises: selecting M virtual local area network sub-interfaces from K virtual local area network sub-interfaces of a specific physical network interface according to a preset selection approach, establishing a detection protocol session in a virtual routing forwarding instance of the selected M virtual local area network sub-interfaces, using a virtual routing forwarding instance in which the detection protocol session is established as a detection virtual routing forwarding instance, and using a virtual routing forwarding instance of the unselected (K-M) virtual local area network sub-interfaces as a subscription virtual routing forwarding instance; obtaining link state information detected by the detection virtual routing forwarding instance; and instructing the subscription virtual routing forwarding instance to perform routing change processing according to the link state information. The technical solution of the present application can reduce the occupation of device resources of a network device such as a CPU and a memory, thereby improving the performance of the network device and the network transmission performance.

Description

链路检测方法、装置、计算机设备及存储介质Link detection method, device, computer equipment and storage medium
本申请以2020年2月27日提交的申请号为202010122314.4,名称为“链路检测方法、装置、计算机设备及存储介质”的中国发明申请为基础,并要求其优先权。This application is based on the Chinese invention application with the application number 202010122314.4 and titled "Link Detection Method, Device, Computer Equipment and Storage Medium" filed on February 27, 2020, and claims the right of priority.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种链路检测方法、装置、计算机设备及存储介质。This application relates to the field of computer technology, and in particular to a link detection method, device, computer equipment, and storage medium.
背景技术Background technique
随着网络通信技术的发展,为了保障数据传送质量和速度,对网络设备的要求越来越高。若网络链路出现故障,则需要尽快检测出故障点,以便能够及时采取措施,要求网络设备能够快速检测出故障并将流量切换至备份链路以加快网络收敛速度。链路故障的检测一般是通过BFD(Bidirectional Forwarding Detection,双向转发检测)协议作为一种快速检测机制。With the development of network communication technology, in order to ensure the quality and speed of data transmission, the requirements for network equipment are getting higher and higher. If a network link fails, it is necessary to detect the point of failure as soon as possible so that timely measures can be taken, requiring network equipment to quickly detect the failure and switch traffic to the backup link to speed up network convergence. The detection of link failure is generally through the BFD (Bidirectional Forwarding Detection, bidirectional forwarding detection) protocol as a fast detection mechanism.
在每个VRF(Virtual Routing Forwarding,虚拟路由转发)实例上创建BFD会话,BFD会话的双方在链路上定期向对方发送BFD控制报文,同时也在该链路上定期检测对方发送的BFD控制报文,以是否在一定条件下收到对方的控制报文进行故障检测。基于IEEE 802.1q标准规范,在支持多VRF的路由器或者三层交换机中,同一个物理网络接口可以支持多达4096个VLAN(Virtual Local Area Network,虚拟局域网)子接口,因此可建立4096个VRF实例。在每一个VRF实例中为了实现路由快速收敛,都开启一个BFD会话来确认到下一跳的连通性。假设每个BFD会话检测时间配置为100毫秒,则每100毫秒会发送和接收一个数据包,对于4096个BFD会话,每秒需要发送和接收40960个BFD数据包。发明人意识到如果检测时间配置的更短,每秒需要发送和接收的数据包数更多。这给一个资源有限的网络设备的CPU(Central Processing Unit,中央处理器)、内存和网络增加过度的开销。Create a BFD session on each VRF (Virtual Routing Forwarding) instance. Both parties of the BFD session periodically send BFD control packets to each other on the link, and also periodically check the BFD control sent by the other party on the link. The message is used for fault detection based on whether the control message from the other party is received under certain conditions. Based on the IEEE 802.1q standard specification, in routers or Layer 3 switches that support multiple VRFs, the same physical network interface can support up to 4096 VLANs (Virtual Local Area Network, virtual local area network) sub-interface, so 4096 VRF instances can be established. In order to achieve rapid route convergence in each VRF instance, a BFD session is opened to confirm the connectivity to the next hop. Assuming that the detection time of each BFD session is configured as 100 milliseconds, one data packet will be sent and received every 100 milliseconds. For 4096 BFD sessions, 40960 BFD data packets need to be sent and received per second. The inventor realized that if the detection time is configured to be shorter, more data packets need to be sent and received per second. This adds excessive overhead to the CPU (Central Processing Unit), memory, and network of a network device with limited resources.
发明内容Summary of the invention
本申请实施例提供一种链路检测方法、装置、计算机设备及存储介质,以解决在链路通信网络中由于链路故障检测对网络设备资源和网络传输资源的占用,导致网络设备性能和网络传输性能下降的问题。The embodiments of the present application provide a link detection method, device, computer equipment, and storage medium to solve the occupation of network equipment resources and network transmission resources due to link failure detection in a link communication network, which leads to network equipment performance and network performance. The problem of degraded transmission performance.
一种链路检测方法,包括:A link detection method includes:
从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M<K;
获取所述检测虚拟路由转发实例检测到的链路状态信息;Acquiring link state information detected by the detected virtual routing and forwarding instance;
将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。Forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
一种链路检测装置,包括:A link detection device includes:
实例对象选取模块,用于从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;The instance object selection module is used to select M virtual local area network sub-interfaces from the K virtual local area network sub-interfaces of a specific physical network interface according to a preset selection method, and select M virtual local area network sub-interfaces in the selected M virtual local area network sub-interfaces. A detection protocol session is established in a virtual routing and forwarding instance, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routes of the KM sub-interfaces of the virtual local area network that have not been selected The forwarding instance is used as a subscription virtual routing forwarding instance, where K and M are both positive integers, and M<K;
信息获取模块,用于获取所述检测虚拟路由转发实例检测到的链路状态信息;An information acquisition module, configured to acquire link state information detected by the virtual routing and forwarding detection instance;
信息处理模块,用于将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。The information processing module is configured to forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其中,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, wherein the processor implements the following steps when the processor executes the computer-readable instructions:
从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M<K;
获取所述检测虚拟路由转发实例检测到的链路状态信息;Acquiring link state information detected by the detected virtual routing and forwarding instance;
将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。Forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer readable instructions. The computer readable storage medium stores computer readable instructions. When the computer readable instructions are executed by one or more processors, the The one or more processors execute the following steps:
从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M<K;
获取所述检测虚拟路由转发实例检测到的链路状态信息;Acquiring link state information detected by the detected virtual routing and forwarding instance;
将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。Forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
上述链路检测方法、装置、计算机设备及存储介质中,通过在特定物理网络接口的虚拟局域网子接口中,按照预设的方式选取特定的虚拟局域网子接口作为检测虚拟路由转发实例,并在检测虚拟路由转发实例中建立检测协议会话检测链路状态信息,未选取的虚拟局域网子接口作为订阅虚拟路由转发实例,利用订阅的方式获取链路状态信息,不需要在每一个虚拟局域网子接口中建立检测协议会话来检测链路状态信息,可以进一步减少对网络设备的CPU和内存等设备资源的占用,以及减少对网路传输资源的占用,提高网络设备的转发能力以及响应能力,从而提升网络设备性能和网络传输性能。In the above-mentioned link detection method, device, computer equipment and storage medium, the specific virtual local area network sub-interface is selected in a preset manner from the virtual local area network sub-interface of the specific physical network interface as the detection virtual route forwarding instance, and the detection The detection protocol session is established in the virtual routing and forwarding instance to detect the link state information, and the unselected virtual local area network sub-interface is used as the subscribed virtual routing and forwarding instance, and the link state information is obtained by subscribing. It is not necessary to establish in each virtual local area network sub-interface Detecting protocol sessions to detect link state information can further reduce the occupation of network equipment's CPU and memory and other equipment resources, as well as reduce the occupation of network transmission resources, improve the forwarding and response capabilities of network equipment, and thus improve network equipment Performance and network transmission performance.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments of the present application. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1是本申请一实施例中链路检测方法的一流程图;FIG. 1 is a flowchart of a link detection method in an embodiment of the present application;
图2是本申请一实施例中链路检测方法中步骤S2的一流程图;2 is a flowchart of step S2 in the link detection method in an embodiment of the present application;
图3是本申请一实施例中链路检测方法中步骤S5的一流程图;FIG. 3 is a flowchart of step S5 in the link detection method in an embodiment of the present application;
图4是本申请一实施例中链路检测装置的一示意图;Figure 4 is a schematic diagram of a link detection device in an embodiment of the present application;
图5是本申请一实施例中计算机设备的一示意图。Fig. 5 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请提供的链路检测方法,可应用在网络设备中,其中,网络设备具体可以是各种计算机、集线器、交换机、网桥、路由器、网关、网络接口卡、无线接入点、打印机、调制解调器、和便携式可穿戴设备等。网络设备根据预设的方式选取检测虚拟路由转发实例和订阅虚拟路由转发实例,获取到检测虚拟路由转发实例检测到的链路状态信息,并指示订阅虚拟路由转发实例根据链路状态信息进行路由变更处理。The link detection method provided in this application can be applied to network equipment, where the network equipment can specifically be various computers, hubs, switches, bridges, routers, gateways, network interface cards, wireless access points, printers, and modems. , And portable wearable devices, etc. The network device selects the detection virtual routing and forwarding instance and subscribing to the virtual routing and forwarding instance according to a preset method, obtains the link state information detected by the detection virtual routing and forwarding instance, and instructs the subscribed virtual routing and forwarding instance to make routing changes based on the link state information deal with.
在一实施例中,如图1所示,提供一种链路检测方法,以该方法应用在网络设备为例进行说明,具体包括步骤S1至步骤S3,详述如下:In an embodiment, as shown in FIG. 1, a link detection method is provided. The method is applied to a network device as an example for description, which specifically includes steps S1 to S3, which are described in detail as follows:
S1S1 :从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个虚拟局域网子接口,并在选中的M个虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了检测协议会话的虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个虚拟局域网子接口的虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K。: From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish a detection protocol session in the virtual routing and forwarding instance of the selected M virtual local area network sub-interfaces, The virtual routing and forwarding instance that has established the detection protocol session is used as the detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the unselected KM virtual local area network sub-interfaces are used as the subscription virtual routing and forwarding instances, where K and M are both positive integers , M<K.
具体地,基于IEEE 802.1q标准规范,网络设备的一个物理网络接口最大可以支持4096个虚拟局域网子接口,因此最多可以建立4096个虚拟路由转发实例。其中,虚拟路由转发实例即VRF实例,其具体是虚拟局域网子接口中的虚拟路由器,该虚拟路由器包括:独立的路由表、独立的地址空间、属于该虚拟路由器的网络接口的集合,以及一组只用于该虚拟路由器的路由协议。网络设备之间通过虚拟路由转发实例的路由协议访问虚拟路由转发实例中地址空间存储的路由表进行通信。Specifically, based on the IEEE 802.1q standard specification, one physical network interface of a network device can support a maximum of 4096 virtual local area network sub-interfaces, so a maximum of 4096 virtual routing and forwarding instances can be established. Among them, a virtual routing and forwarding instance is a VRF instance, which is specifically a virtual router in a virtual local area network sub-interface. The virtual router includes: an independent routing table, an independent address space, a collection of network interfaces belonging to the virtual router, and a group The routing protocol used only for this virtual router. The network devices communicate with each other by accessing the routing table stored in the address space of the virtual routing and forwarding instance through the routing protocol of the virtual routing and forwarding instance.
从特定的物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个虚拟局域网子接口,其中,K小于等于最大虚拟局域网子接口数4096,M小于K,K和M均为正整数。其中,预设的选取方式可以是随机选取的方式。From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, where K is less than or equal to the maximum number of virtual local area network sub-interfaces 4096, M is less than K, and both K and M Is a positive integer. Among them, the preset selection method may be a random selection method.
在选取的每个虚拟局域网子接口中的虚拟路由转发实例中建立检测协议会话。其中,检测协议会话即BFD会话,是链路检测协议在检测链路状态信息的过程中所建立的通信会话。Establish a detection protocol session in the virtual routing and forwarding instance in each selected virtual local area network sub-interface. Among them, the detection protocol session is a BFD session, which is a communication session established by the link detection protocol in the process of detecting link state information.
具体地,在本实施例中,建立检测协议会话的链路检测协议具体是一种双向转发检测协议,即BFD协议,是可与链路、接口、隧道、路由或其他网络转发部件建立联系的中间系统协议;该双向转发检测协议能够与相邻系统建立对等关系,每个系统以协商的速率监测来自其他系统的双向转发检测协议速率,监测速率能够以毫秒级增量设定。当对等系统没有接到预先设定数量的数据包时,它推断双向转发检测协议保护的软件或硬件基础设施发生故障,不管基础设施是标记交换路径、其他类型的隧道还是交换以太网络。双向转发检测协议部署在路由器和其他系统的控制平面上。双向转发检测协议检测到的网络故障可以由转发平面恢复或由控制平面恢复。Specifically, in this embodiment, the link detection protocol for establishing a detection protocol session is specifically a two-way forwarding detection protocol, that is, the BFD protocol, which can establish contact with links, interfaces, tunnels, routes, or other network forwarding components. Intermediate system protocol: The two-way forwarding detection protocol can establish a peer relationship with neighboring systems. Each system monitors the two-way forwarding detection protocol rate from other systems at a negotiated rate, and the monitoring rate can be set in millisecond increments. When the peer-to-peer system does not receive a preset number of data packets, it infers that the software or hardware infrastructure protected by the two-way forwarding detection protocol is faulty, regardless of whether the infrastructure is a label switching path, other types of tunnels, or a switched Ethernet network. The two-way forwarding detection protocol is deployed on the control plane of routers and other systems. The network failure detected by the two-way forwarding detection protocol can be recovered by the forwarding plane or the control plane.
需要说明的是,网络设备将建立了双向转发检测协议会话的虚拟路由转发协议作为检测虚拟路由转发实例,未被选取的K-M个虚拟局域网子接口的虚拟路由转发实例作为订阅虚拟路由转发实例,从而不需要在每个虚拟路由转发实例上均建立双向转发检测协议会话去检测链路状态信息,只需要通过检测虚拟路由转发实例进行链路状态的检测,并让订阅虚拟路由转发实例通过订阅的方式获取链路状态信息,以减少对网络设备的CPU和内存等设备资源的占用,以及减少对网路传输资源的占用,从而能够提高网络设备的转发能力以及响应能力,提升网络设备性能和网络传输性能。It should be noted that the network device uses the virtual routing and forwarding protocol that has established a two-way forwarding detection protocol session as the detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as the subscription virtual routing and forwarding instances, thereby There is no need to establish a two-way forwarding detection protocol session on each virtual routing and forwarding instance to detect link state information. It is only necessary to detect the link status by detecting the virtual routing and forwarding instance, and subscribe to the virtual routing and forwarding instance through subscription. Obtain link status information to reduce the occupation of network equipment's CPU and memory and other equipment resources, as well as reduce the occupation of network transmission resources, thereby improving the forwarding and responsiveness of network equipment, and improving network equipment performance and network transmission performance.
S2S2 :获取检测虚拟路由转发实例检测到的链路状态信息。: Obtain the link state information detected by the virtual routing and forwarding instance.
具体地,通过检测虚拟路由转发实例中建立的双向转发检测协议会话进行链路状态的检测,在双向转发检测协议会话中通过目标链路的网关地址来获取链路状态信息。Specifically, the link state is detected by detecting the two-way forwarding detection protocol session established in the virtual routing and forwarding instance, and the link state information is obtained through the gateway address of the target link in the two-way forwarding detection protocol session.
具体的,双向转发检测协议建立双向转发检测协议会话的主要工作过程如下:Specifically, the main working process of the two-way forwarding detection protocol to establish a two-way forwarding detection protocol session is as follows:
1.1. 使用双向转发检测协议在两个端点之间的一条链路上先建立一个双向转发检测协议会话,依靠上层协议建立,例如,开放式最短路径优先的邻居建立时,会将邻居信息告知双向转发检测协议。双向转发检测协议根据这个信息再建立双向转发检测协议会话邻居,如果两个端点之间存在多条链路,则可以为每条链路建立一个双向转发检测协议会话。其中,开放式最短路径优先为一个内部网关协议,用于在单一自治系统内决策路由。是对链路状态路由协议的一种实现,属于内部网关协议。Use the two-way forwarding detection protocol to first establish a two-way forwarding detection protocol session on a link between two endpoints, relying on the upper layer protocol to establish, for example, when a neighbor with open shortest path first is established, the neighbor information will be notified to the two-way forwarding detection protocol. The two-way forwarding detection protocol establishes a two-way forwarding detection protocol session neighbor based on this information. If there are multiple links between the two endpoints, a two-way forwarding detection protocol session can be established for each link. Among them, the open shortest path is preferred as an internal gateway protocol, which is used to make routing decisions in a single autonomous system. It is an implementation of the link state routing protocol and belongs to the interior gateway protocol.
2.2. 双向转发检测协议会话在建立会话的两个网络节点之间进行双向转发检测协议会话检测。如果发现链路故障就拆除双向转发检测协议会话邻居,并立刻通知上层协议,则上层协议会立刻进行相应的切换。The two-way forwarding detection protocol session performs two-way forwarding detection protocol session detection between two network nodes that establish the session. If a link failure is found, the two-way forwarding detection protocol session neighbor is removed, and the upper layer protocol is notified immediately, and the upper layer protocol will immediately switch accordingly.
在双向转发检测协议会话建立时,有两种建立模式:主动模式和被动模式。When a two-way forwarding detection protocol session is established, there are two establishment modes: active mode and passive mode.
主动模式:在建立双向转发检测协议会话前不管是否收到目标链路网关地址端发来的双向转发检测协议控制报文,都会主动向目标链路网关地址端发送双向转发检测协议控制报文。Active mode: Before establishing a two-way forwarding detection protocol session, regardless of whether it receives a two-way forwarding detection protocol control message from the target link gateway address end, it will actively send a two-way forwarding detection protocol control message to the target link gateway address end.
被动模式:在建立对话前不会主动发送双向检测协议控制报文,直到收到目标链路网关地址端发送来的双向转发检测协议控制报文。Passive mode: The two-way detection protocol control message will not be actively sent before the dialogue is established, until the two-way forwarding detection protocol control message sent from the target link gateway address is received.
在会话初始化过程中,通信双方至少要有一个运行在主动模式才能成功建立起会话。In the session initialization process, at least one of the communicating parties must be running in active mode to successfully establish a session.
双向转发检测协议在会话建立后有两种操作模式:异步模式和查询模式。The two-way forwarding detection protocol has two operating modes after the session is established: asynchronous mode and query mode.
异步模式:在此模式下,链路网络节点双方会周期性地发送双向转发检测协议控制报文,如果在检测时间内没有收到目标链路网关地址端的双向转发检测协议控制报文则认为对应的链路网络节点出现故障。Asynchronous mode: In this mode, both link network nodes will periodically send two-way forwarding detection protocol control messages. If they do not receive the two-way forwarding detection protocol control message from the target link gateway address within the detection time, it will be considered corresponding The link network node fails.
查询模式:假定每个系统都有一个独立的方法,确认自己连接到其他系统。这样,只要有一个双向转发检测协议会话建立,系统就停止发送双向转发检测协议控制报文,除非某个系统需要显式地验证连接性。如果要显式地验证连接性,系统发送一个短系列的双向转发检测协议控制包,如果在检测时间内没有收到返回的报文就宣布会话状态为Down;如果收到目标链路网关地址端的回应报文,协议再次保持沉默。其中,会话状态Down为双向转发检测协议会话过程中的报文状态,双向转发检测协议会话报文状态包括:0—AdminDown;1—Down;2—Init;3—Up。Query mode: Assume that each system has an independent method to confirm that it is connected to other systems. In this way, as long as a two-way forwarding detection protocol session is established, the system stops sending two-way forwarding detection protocol control messages, unless a certain system needs to explicitly verify connectivity. If you want to explicitly verify the connectivity, the system sends a short series of two-way forwarding detection protocol control packets. If the return message is not received within the detection time, the session status is declared as Down; if the target link gateway address end is received In response to the message, the protocol remained silent again. Among them, the session state Down is the message state during the two-way forwarding detection protocol session, and the two-way forwarding detection protocol session message state includes: 0—AdminDown; 1—Down; 2—Init; 3—Up.
在双向转发检测协议会话中还有一个回声功能,回声功能启动后,会话的一端周期性地发送双向检测协议回声报文,目标链路网关地址端对回声报文不进行处理,而只将此报文转发再发回给发送端。发送端根据是否能收到双向检测协议报文来检测会话状态。双向转发检测协议回声报文只用来检测直连网段的链路状态信息,而双向转发检测协议控制报文还可以检测非直连网段的链路状态信息。There is also an echo function in the two-way forwarding detection protocol session. After the echo function is activated, one end of the session periodically sends two-way detection protocol echo messages, and the target link gateway address does not process the echo messages, but only this The message is forwarded and then sent back to the sender. The sender detects the session state according to whether it can receive the two-way detection protocol message. The two-way forwarding detection protocol echo message is only used to detect the link status information of the directly connected network segment, and the two-way forwarding detection protocol control message can also detect the link status information of the non-directly connected network segment.
进一步地,获取到的链路状态信息可以是链路故障,也可以是链路畅通。Further, the obtained link state information may be a link failure or an unblocked link.
需要说明的是,本实施例中采用的双向转发检测协议提供了一种通用的标准化的介质无关和协议无关的协议,能够在网络设备间任意类型的双向转发路径进行链路故障检测,可以为不同的上层应用服务,提供一致的快速故障检测时间,微秒级的链路检测精度,减少应用中断时间,提高网络的可靠性。It should be noted that the two-way forwarding detection protocol used in this embodiment provides a universal and standardized media-independent and protocol-independent protocol, which can detect link failures on any type of two-way forwarding path between network devices, which can be Different upper-layer application services provide consistent fast fault detection time, microsecond link detection accuracy, reduce application interruption time, and improve network reliability.
S3S3 :将链路状态信息转发给订阅虚拟路由转发实例,指示订阅虚拟路由转发实例根据链路状态信息进行路由变更处理。: Forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing based on the link state information.
具体地,网络设备获取到检测虚拟路由转发实例检测到的链路状态信息后,未被选取的作为订阅虚拟路由转发实例的虚拟路由转发实例根据检测虚拟路由转发实例检测到的链路状态信息进行路由变更处理。Specifically, after the network device obtains the link state information detected by the virtual routing and forwarding instance, the virtual routing and forwarding instance that is not selected as the subscribing virtual routing and forwarding instance performs processing according to the link state information detected by the virtual routing and forwarding instance. Routing change processing.
将检测到的链路状态信息存放在预设的数据库中,并通过订阅机制通知关注该链路状态信息的订阅虚拟路由转发实例。其中,订阅机制为在事件发生时,检测或产生事件的一方作为主动一方通过通知函数来告知作为被动一方的订阅者,通知函数为一方为通知方,一方为接收方的模式的通知链表,通知链表可以是一个函数链表。Store the detected link state information in a preset database, and notify the subscribed virtual routing and forwarding instance that pays attention to the link state information through the subscription mechanism. Among them, the subscription mechanism is that when an event occurs, the party that detects or generates the event acts as the active party to notify the subscriber as the passive party through the notification function. The notification function is a notification linked list in which one party is the notifier and the other party is the receiver. The linked list can be a function linked list.
订阅虚拟路由转发实例根据不同的链路状态信息进行不同的路由变更处理。其中,链路状态信息可以包括:链路故障和链路畅通。当链路状态信息为链路故障时进行路由收敛;当链路状态信息为链路畅通时进行路由恢复。The subscribed virtual route forwarding instance performs different route change processing according to different link state information. Among them, the link state information may include: link failure and link unblocking. When the link state information indicates that the link is down, route convergence is performed; when the link state information indicates that the link is unblocked, the route is restored.
需要说明的是,本实施例中,将链路状态信息转发给订阅虚拟路由转发实例的方式可以有两种:一种是,通过订阅机制的方式直接获取链路状态信息;另一种是,通过将检测到的链路状态信息存入预设的数据库中,再从预设的数据库中获取链路状态信息。当一种方式出现故障时,可以将另一种方式作为备用方式,两种方式可以以主备方式在链路检测的过程中同时存在,能够提高链路状态信息转发的效率,提高网络设备的转发能力以及响应能力,从而提升网络设备性能和网络传输性能。It should be noted that in this embodiment, there are two ways to forward the link state information to the subscribed virtual route forwarding instance: one is to directly obtain the link state information through the subscription mechanism; the other is, By storing the detected link state information in a preset database, the link state information is obtained from the preset database. When one method fails, the other method can be used as a backup method. The two methods can exist simultaneously in the process of link detection in the active and standby mode, which can improve the efficiency of link state information forwarding and improve the network equipment. Forwarding ability and response ability, thereby improving network equipment performance and network transmission performance.
本实施例中,网络设备首先按照预设的方式将虚拟局域网子接口中的虚拟路由转发实例分为检测虚拟路由转发实例与订阅虚拟路由转发实例,在检测虚拟路由转发实例中建立双向转发检测协议会话,并指示订阅虚拟路由转发实例根据获取的链路状态信息进行路由变更处理。将虚拟局域网子接口中的虚拟路由转发实例按照预设的方式分为检测虚拟路由转发实例和订阅虚拟路由转发实例,仅在检测虚拟路由转发实例中建立双向检测协议会话,而不需要在每个虚拟路由转发实例中建立双向转发检测协议会话来检测链路状态信息能进一步减少对网络设备的CPU和内存等设备资源的占用,以及减少对网路传输资源的占用,提高网络设备的转发能力以及响应能力,从而提升网络设备性能和网络传输性能。In this embodiment, the network device first divides the virtual routing and forwarding instances in the virtual local area network sub-interfaces into detection virtual routing and forwarding instances and subscribing to virtual routing and forwarding instances in a preset manner, and establishes a two-way forwarding detection protocol in the virtual routing and forwarding detection instances. Session, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the obtained link state information. The virtual routing and forwarding instances in the virtual local area network sub-interfaces are divided into detection virtual routing and forwarding instances and subscribing to virtual routing and forwarding instances in a preset manner. Only two-way detection protocol sessions are established in the detection virtual routing and forwarding instances, without the need for each Establishing a two-way forwarding detection protocol session in the virtual routing and forwarding instance to detect link state information can further reduce the occupation of device resources such as CPU and memory of network equipment, reduce the occupation of network transmission resources, and improve the forwarding ability of network equipment. Responsiveness, thereby improving network equipment performance and network transmission performance.
在一实施例中,如图2所示,在步骤S2中,获取检测虚拟路由转发实例检测到的链路状态信息,具体包括步骤S21至步骤S22,详述如下:In an embodiment, as shown in FIG. 2, in step S2, obtaining the link state information detected by the detection virtual routing and forwarding instance specifically includes steps S21 to S22, which are described in detail as follows:
S21S21 :指示检测虚拟路由转发实例向目标链路网关地址发送检测协议控制报文,并接收目标链路网关地址的响应报文。: Instruct the detection virtual route forwarding instance to send a detection protocol control message to the target link gateway address and receive a response message from the target link gateway address.
具体地,双向转发检测协议会话发送的检测报文是用户数据报协议报文,提供了一种无需建立连接就可以发送封装的IP数据报的方法,定义两种类型的报文:控制报文和回声报文。Specifically, the detection message sent by the two-way forwarding detection protocol session is a user datagram protocol message, which provides a method for sending encapsulated IP datagrams without establishing a connection. Two types of messages are defined: control messages And echo messages.
控制报文:链路两端会话通过控制报文交互监测链路状态。Control messages: Sessions at both ends of the link monitor the link status through control messages interactively.
回声报文:链路某一端通过发送回声报文由另一端转发回来,实现对链路的双向监测。Echo message: One end of the link sends echo messages back by the other end to realize bidirectional monitoring of the link.
其中,双向转发检测协议会话建立过程是一个三次握手的过程,经过此过程后两端的会话变为Up状态,在此过程中协商好相应的参数,以后的状态变化就是根据缺陷的检测结果来进行,并做相应的处理。Among them, the two-way forwarding detection protocol session establishment process is a three-way handshake process. After this process, the sessions at both ends become Up. During this process, the corresponding parameters are negotiated. The subsequent state changes are carried out based on the defect detection results. , And deal with it accordingly.
双向转发检测协议会话建立过程的四种状态分别表示为:The four states of the two-way forwarding detection protocol session establishment process are expressed as follows:
DownDown :表明会话开始被创建;: Indicates that the session has started to be created;
InitInit :表明正在和对端系统通信中;: Indicates that it is communicating with the peer system;
UpUp :表明会话成功建立,系统之间的连接工作正常;: Indicates that the session is successfully established and the connection between the systems is working normally;
AdminDownAdminDown :表明会话被强制变为Down状态,这将会使对端进入并保持在Down状态。: Indicates that the session is forcibly changed to the Down state, which will make the peer enter and remain in the Down state.
具体的,建立双向转发检测协议会话的一端为A,目标链路网关地址端为B。Specifically, the end of the establishment of the bidirectional forwarding detection protocol session is A, and the end of the target link gateway address is B.
双向转发检测协议会话建立过程详述如下:The two-way forwarding detection protocol session establishment process is detailed as follows:
11 、A、B端启动双向转发检测协议,各自初始状态为Down,发送双向转发检测协议会话报文携带状态为Down。, A and B start the two-way forwarding detection protocol, the initial state of each is Down, and the carrying state of the two-way forwarding detection protocol session message is Down.
22 、B端收到状态为Down的双向转发检测协议会话报文,本地状态切换至Init,发送双向转发检测协议会话报文携带状态为Init。, End B receives the two-way forwarding detection protocol session message with the status of Down, the local state switches to Init, and sends the two-way forwarding detection protocol session message carrying the state as Init.
33 、B端本地双向转发检测协议会话状态为Init后,再接收到状态为Down的报文不做处理。, After the B-side local two-way forwarding detection protocol session status is Init, the packet with the status Down is not processed again.
44 、A端双向转发检测协议会话状态变化过程同上。, A-side two-way forwarding detection protocol session state change process is the same as above.
55 、B端收到状态为Init的双向转发检测协议会话报文,本地状态切换至Up。, End B receives a two-way forwarding detection protocol session message with a status of Init, and the local status switches to Up.
66 、A端在双向转发检测协议会话状态变化过程同上。, The process of the A-side in the two-way forwarding detection protocol session state change is the same as the above.
77 、A、B两端在发生Down状态至Init状态变化后,会启动一个超时定时器,该定时器的作用是防止本地状态阻塞在Init状态,如果在规定的时间内仍未收到状态为Init或者Up的双向转发检测协议会话报文,则状态自动切换回Down。, A and B will start a timeout timer after the change from Down state to Init state occurs. The function of this timer is to prevent the local state from being blocked in the Init state. If the state is not received within the specified time, the state is Init. Or if the Up bidirectional forwarding detection protocol session message, the state automatically switches back to Down.
88 、本地状态Up标志会话建立成功。, The local status Up indicates that the session is established successfully.
其中,若在步骤2中,在规定时间内,A端未收到B端发送会话状态为Down的控制报文,A端认为,B端故障。Among them, if in step 2, end A does not receive a control message with a session status of Down sent by end B within a specified time, end A considers that end B is faulty.
S22S22 :根据目标链路网关地址对检测协议控制报文的响应报文确定链路状态信息。: Determine the link status information according to the response message of the target link gateway address to the detection protocol control message.
具体地,通过双向转发检测协议主动的向目标链路网关地址端发送的控制报文,目标链路网关地址发出相对应的响应报文,则链路状态信息为链路故障;若目标链路网关地址未发出对应的响应报文,则链路状态信息为链路畅通。其中,在检测链路状态信息的过程中,当双向转发检测协议会话建立时,不论是否收到目标链路网关地址端发送来的双向转发检测协议控制报文,都主动地向对目标链路网关地址端周期性地发送一个双向转发检测协议控制报文,如果在检测时间内没有收到目标链路网关地址端的双向转发检测协议响应报文,则认为对应的目标链路网关地址端出现链路故障。否则,则认为链路通畅。Specifically, the two-way forwarding detection protocol actively sends a control message to the target link gateway address end, and the target link gateway address sends a corresponding response message, then the link state information is a link failure; if the target link If the gateway address does not send a corresponding response message, the link status information is that the link is unblocked. Among them, in the process of detecting the link status information, when the two-way forwarding detection protocol session is established, regardless of whether the two-way forwarding detection protocol control message sent by the target link gateway address is received, it will actively send to the target link The gateway address end periodically sends a two-way forwarding detection protocol control message. If the two-way forwarding detection protocol response message from the target link gateway address end is not received within the detection time, it is considered that the corresponding target link gateway address end has a link Road failure. Otherwise, the link is considered unobstructed.
本实施例中,通过检测虚拟路由转发实例向目标链路网关地址发送检测协议控制报文,并通过目标链路网关地址对所述检测协议控制报文的响应报文来确定链路状态信息为链路故障或者链路畅通,能够更加准确,稳定的检测出链路状态信息,提高网络设备的响应能力,进而提高网络设备的性能。In this embodiment, the detection protocol control message is sent to the target link gateway address through the detection virtual route forwarding instance, and the link state information is determined by the response message of the target link gateway address to the detection protocol control message. Link failure or unblocked link can detect link state information more accurately and stably, improve the responsiveness of network equipment, and thereby improve the performance of network equipment.
在一实施例中,在步骤S3中,将链路状态信息转发给订阅虚拟路由转发实例,具体包括步骤S31,详述如下:In one embodiment, in step S3, forwarding the link state information to the subscribed virtual route forwarding instance specifically includes step S31, which is described in detail as follows:
S31S31 :指示订阅虚拟路由转发实例将链路状态信息作为预设回调函数的参数,并指示订阅虚拟路由转发实例执行预设回调函数以获取链路状态信息,其中,预设回调函数为预先在检测虚拟路由转发实例的通知链表中注册的订阅虚拟路由转发实例的回调函数。: Instruct the subscribed virtual route forwarding instance to use link state information as a parameter of the preset callback function, and instruct the subscribed virtual route forwarding instance to execute a preset callback function to obtain link state information, where the preset callback function is to detect the virtual The callback function of the subscription virtual routing and forwarding instance registered in the notification list of the routing and forwarding instance.
具体地,通过订阅机制的方式将链路状态信息转发给订阅虚拟路由转发实例,其中,订阅机制是以一方为通知方,一方为接收方的通知链表模式实现的,通知链表是一个函数链表,在通知事件时运行接收方注册的时间处理函数,在发生事件时,接收方注册的函数就要得到执行。Specifically, the link state information is forwarded to the subscription virtual routing forwarding instance through the subscription mechanism, where the subscription mechanism is implemented in a notification linked list mode with one party as the notifier and one party as the receiver. The notification linked list is a function linked list. When an event is notified, the time processing function registered by the receiver is run. When an event occurs, the function registered by the receiver will be executed.
通知链表的主要元素包括:The main elements of the notification list include:
接受者:对某一事件感兴趣一方。定义了当事件发生时,执行相应的处理函数,即回调函数。但需要事先将其注册到通知链表中。Recipient: A party interested in a certain event. Defines that when an event occurs, the corresponding processing function is executed, that is, the callback function. But it needs to be registered in the notification list in advance.
通知者:事件的通知者。当检测到事件,或者本身产生事件时,通知所有对该事件感兴趣的一方事件发生。通知者定义了一个通知链,其中保存了每一个接受者对事件的回调函数。通知的过程就是遍历通知链中的每一项,然后调用相应的事件的回调函数。Notifier: The notifier of the event. When an event is detected, or an event is generated by itself, all parties interested in the event are notified of the occurrence of the event. The notifier defines a notification chain, which stores the callback function of each recipient to the event. The notification process is to traverse each item in the notification chain, and then call the callback function of the corresponding event.
通知链表运作的主要过程包括:The main process of the operation of the notification list includes:
11 、通知者定义通知链表。, The notifier defines the notification linked list.
22 、接受者在通知链表中注册回调函数。, The recipient registers the callback function in the notification list.
33 、当事件发生时,通知者发出通知,执行通知链表中所有元素的回调函数。, When an event occurs, the notifier sends a notification and executes the callback function of all elements in the notification linked list.
进一步地,检测虚拟路由转发实例检测到链路状态信息,则触发回调函数,指示订阅虚拟路由转发实例将检测到的链路状态信息作为该回调函数的参数,订阅虚拟路由转发实例将链路状态信息代入该回调函数中进行运行,得到链路状态信息。Further, when the detection virtual routing and forwarding instance detects link state information, a callback function is triggered, instructing the subscribed virtual routing and forwarding instance to use the detected link state information as a parameter of the callback function, and the subscribing virtual routing and forwarding instance will be the link state The information is substituted into the callback function to run, and the link status information is obtained.
本实施例中,将订阅虚拟路由转发实例预先注册在通知链表中,在检测到链路状态信息时能快速准确的在通知链表中找到订阅了该链路故障信息的订阅虚拟路由转发实例,而不需要在每个虚拟路由转发实例中寻找,进而减少对网路传输资源的占用。In this embodiment, the subscribed virtual route forwarding instance is pre-registered in the notification linked list, and when the link state information is detected, the subscribed virtual route forwarding instance that subscribes to the link failure information can be quickly and accurately found in the notification linked list, and There is no need to search in every virtual routing and forwarding instance, thereby reducing the occupation of network transmission resources.
在一实施例中,在步骤S4中,将链路状态信息转发给订阅虚拟路由转发实例,具体还包括步骤S41,详述如下:In an embodiment, in step S4, the link state information is forwarded to the subscribed virtual route forwarding instance, which specifically further includes step S41, which is described in detail as follows:
S41S41 :将链路状态信息存入预设数据库,指示订阅虚拟路由转发实例从预设数据库中获取链路状态信息。: Store the link state information in the preset database, and instruct the subscription virtual routing and forwarding instance to obtain the link state information from the preset database.
具体地,预设数据库为网络设备的内存中指定数据库,用于存放双向转发检测协议会话检测到的链路状态信息。Specifically, the preset database is a designated database in the memory of the network device, and is used to store the link state information detected by the two-way forwarding detection protocol session.
指示订阅虚拟路由转发实例从指定的数据库中获取检测到的链路状态信息。得到链路状态信息的订阅虚拟路由转发实例则会得知订阅虚拟路由转发实例所在物理网络接口故障,然后清除与该物理网络接口相关的本地路由。 Instructs the subscribed virtual routing and forwarding instance to obtain the detected link state information from the specified database. The subscribed virtual route forwarding instance that has obtained the link state information will learn that the physical network interface where the subscribed virtual route forwarding instance is located is faulty, and then clear the local route related to the physical network interface.
本实施例中,从指定的数据库中获取检测到的链路状态信息的方式并不影响通过订阅机制获取链路状态的信息。In this embodiment, the manner of acquiring the detected link state information from the designated database does not affect the acquisition of the link state information through the subscription mechanism.
进一步地,将链路状态信息转发给订阅虚拟路由转发实例的方式可以有两种:一种是,通过订阅机制的方式直接获取链路状态信息;另一种是,通过将检测到的链路状态信息存入预设的数据库中,再从预设的数据库中获取链路状态信息。当一种方式出现故障时,可以将另一种方式作为备用方式,这种使用主备并存的转发链路状态信息的方式,能提高网络设备检测链路状态信息的能力,提高网络设备的转发能力以及响应能力,从而提升网络设备性能和网络传输性能。Further, there are two ways to forward the link state information to the subscribed virtual route forwarding instance: one is to directly obtain the link state information through the subscription mechanism; the other is to pass the detected link The status information is stored in a preset database, and the link status information is obtained from the preset database. When one method fails, the other method can be used as a backup method. This method of forwarding link state information using active and standby coexistence can improve the ability of network equipment to detect link state information and improve the forwarding of network equipment Ability and responsiveness to improve network equipment performance and network transmission performance.
在一实施例中,如图3所示,在步骤S5中,指示订阅虚拟路由转发实例根据链路状态信息进行路由变更处理,具体包括步骤S51至步骤S52,详述如下:In one embodiment, as shown in FIG. 3, in step S5, instructing the subscribed virtual route forwarding instance to perform route change processing according to link state information, specifically including steps S51 to S52, which are described in detail as follows:
S51S51 :若链路状态信息为链路故障,则指示订阅虚拟路由转发实例进行路由收敛。: If the link status information is a link failure, it instructs to subscribe to the virtual route forwarding instance for route convergence.
具体地,当检测到链路中的链路状态信息为链路故障时,指示订阅虚拟路由转发实例进行路由收敛。Specifically, when it is detected that the link state information in the link is a link failure, it is instructed to subscribe to the virtual route forwarding instance to perform route convergence.
其中,路由收敛指网络的拓扑结构发生变化后,路由表重新建立到发送再到学习直至稳定,并通告网络中所有相关路由器都得知该变化的过程,也就是网络拓扑变化引起的通过重新计算路由而发现替代路由的行为。Among them, routing convergence refers to the process that after the topology of the network changes, the routing table is re-established, sent and then learned until it is stable, and all related routers in the network are notified of the change, that is, the process of recalculation caused by changes in the network topology Route and discover the behavior of alternative routes.
S52S52 :若链路状态信息为链路畅通,则指示订阅虚拟路由转发实例进行路由恢复。: If the link status information indicates that the link is unblocked, it will instruct to subscribe to the virtual route forwarding instance for route restoration.
具体地,当检测到链路中的链路状态信息为链路畅通时,指示订阅虚拟路由转发实例进行路由恢复。Specifically, when it is detected that the link state information in the link is that the link is unblocked, it is instructed to subscribe to the virtual route forwarding instance to perform route restoration.
其中,路由恢复指路由收敛后路由表重新稳定后,并通告网络中所有相关路由器恢复正常网络的过程。Among them, route restoration refers to the process of re-stabilizing the routing table after route convergence, and notifying all relevant routers in the network to restore the normal network.
本实施例中,订阅虚拟路由转发实例根据不同的链路状态信息进行不同的路由变更处理:链路故障时,进行路由收敛;链路畅通,进行路由恢复。其中通过订阅虚拟路由转发实例这种订阅机制的方式获取链路状态信息并解决链路问题的方式,可以进一步减少对网络设备的CPU和内存等设备资源的占用,以及减少对网路传输资源的占用,提高网络设备的转发能力以及响应能力。In this embodiment, the subscribed virtual route forwarding instance performs different route change processing according to different link state information: when the link fails, the route is converged; the link is unblocked and the route is restored. Among them, the way to obtain link state information and solve link problems by subscribing to the virtual routing and forwarding instance, which is a subscription mechanism, can further reduce the occupation of device resources such as CPU and memory of network devices, and reduce the cost of network transmission resources. Occupy, improve the forwarding ability and responsiveness of network equipment.
在一实施例中,在步骤S6中,在将未被选中的K-M个虚拟局域网子接口的虚拟路由转发实例作为订阅虚拟路由转发实例之后,并且在获取检测虚拟路由转发实例检测到的链路状态信息之前,链路检测方法,具体包括步骤S61,详述如下:In one embodiment, in step S6, after the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as subscription virtual routing and forwarding instances, the link status detected by the virtual routing and forwarding instance is acquired. Before information, the link detection method specifically includes step S61, which is described in detail as follows:
S61S61 :当M大于1时,将订阅虚拟路由转发实例分为M个订阅分组,并设置每个订阅分组与每个检测虚拟路由转发实例之间的对应关系,使得每个订阅分组中的订阅虚拟路由转发实例用于接收一个检测虚拟路由转发实例检测到的链路状态信息。: When M is greater than 1, divide the subscription virtual route forwarding instance into M subscription groups, and set the correspondence between each subscription group and each detection virtual route forwarding instance, so that the subscription virtual route in each subscription group The forwarding instance is used to receive the link state information detected by a virtual routing and forwarding instance.
具体地,当M为1时,在物理网络接口中的虚拟局域网子接口中只选取一个虚拟路由转发实例作为检测虚拟路由转发实例,剩余未被选取的作为订阅虚拟路由转发实例进行链路检测;当M大于1时,在物理网络接口中的虚拟局域网子接口中选取M个虚拟路由转发实例作为检测虚拟路由转发实例,剩余未被选取的作为订阅虚拟路由转发实例并分为M个订阅分组,设置M个订阅分组中每个订阅分组与M个检测虚拟路由转发实例中每个检测虚拟路由转发实例之间的对应关系。其中,M个订阅分组中每个订阅分组只接受一个检测虚拟路由转发实例检测到的链路状态信息。Specifically, when M is 1, only one virtual routing and forwarding instance is selected from the virtual local area network sub-interfaces in the physical network interface as a detection virtual routing and forwarding instance, and the remaining unselected virtual routing and forwarding instances are subscribed as a subscribed virtual routing and forwarding instance for link detection; When M is greater than 1, select M virtual routing and forwarding instances from the virtual local area network sub-interfaces in the physical network interface as detection virtual routing and forwarding instances, and the remaining unselected virtual routing and forwarding instances are used as subscription virtual routing and forwarding instances and divided into M subscription packets. Set the correspondence between each subscription group in the M subscription groups and each detection virtual routing and forwarding instance in the M detection virtual routing and forwarding instances. Among them, each of the M subscription packets only accepts the link state information detected by one detection virtual routing and forwarding instance.
本实施例中,当所要检测的物理网络接口数量众多时,可以将订阅虚拟路由转发实例进行订阅分组的方式,并利用多个对应订阅分组的检测虚拟路由转发实例进行链路检测。此方式在需要检测的物理网络接口众多时,同样能够进一步减少对网络设备的CPU和内存等设备资源的占用,以及减少对网路传输资源的占用,提高网络设备的转发能力以及响应能力,从而提升网络设备性能和网络传输性能。In this embodiment, when the number of physical network interfaces to be detected is large, the subscribed virtual route forwarding instance can be subscribed in a manner of subscribing to grouping, and multiple detection virtual route forwarding instances corresponding to the subscribed grouping can be used to perform link detection. When there are many physical network interfaces that need to be detected, this method can also further reduce the occupation of device resources such as CPU and memory of network equipment, as well as reduce the occupation of network transmission resources, and improve the forwarding and response capabilities of network equipment, thereby Improve network equipment performance and network transmission performance.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
在一实施例中,提供一种链路检测装置,该链路检测装置与上述实施例中链路检测方法一一对应。如图4所示,该链路检测装置包括:实例对象选取模块10、信息获取模块20、信息处理模块30。各功能模块详细说明如下:In an embodiment, a link detection device is provided, and the link detection device corresponds to the link detection method in the above-mentioned embodiment in a one-to-one correspondence. As shown in FIG. 4, the link detection device includes: an instance object selection module 10, an information acquisition module 20, and an information processing module 30. The detailed description of each functional module is as follows:
实例对象选取模块10,用于从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个虚拟局域网子接口,并在选中的M个虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了检测协议会话的虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个虚拟局域网子接口的虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;The instance object selection module 10 is used to select M virtual local area network sub-interfaces from the K virtual local area network sub-interfaces of a specific physical network interface according to a preset selection method, and forward them in the virtual routing of the selected M virtual local area network sub-interfaces The detection protocol session is established in the instance, the virtual routing and forwarding instance that has established the detection protocol session is used as the detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as the subscription virtual routing and forwarding instances, where, K and M are both positive integers, M<K;
信息获取模块20,用于获取检测虚拟路由转发实例检测到的链路状态信息;The information acquisition module 20 is configured to acquire link state information detected by the detection virtual routing and forwarding instance;
信息处理模块30,用于将链路状态信息转发给订阅虚拟路由转发实例,指示订阅虚拟路由转发实例根据链路状态信息进行路由变更处理。The information processing module 30 is configured to forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
进一步地,信息获取模块20包括:Further, the information acquisition module 20 includes:
报文检测子模块21,用于指示检测虚拟路由转发实例向目标链路网关地址发送检测协议控制报文,并接收目标链路网关地址的响应报文;The message detection submodule 21 is used to instruct the detection virtual route forwarding instance to send a detection protocol control message to the target link gateway address, and receive a response message of the target link gateway address;
信息确认子模块22,用于根据目标链路网关地址对检测协议控制报文的响应报文确定链路状态信息。The information confirmation sub-module 22 is used to determine the link state information according to the response message of the target link gateway address to the detection protocol control message.
进一步地,信息处理模块30包括:Further, the information processing module 30 includes:
通知链表子模块31,用于指示订阅虚拟路由转发实例将链路状态信息作为预设回调函数的参数,并指示订阅虚拟路由转发实例执行预设回调函数以获取链路状态信息,其中,预设回调函数为预先在检测虚拟路由转发实例的通知链表中注册的订阅虚拟路由转发实例的回调函数。The notification linked list sub-module 31 is used to instruct the subscribed virtual route forwarding instance to use link state information as a parameter of the preset callback function, and instruct the subscribed virtual route forwarding instance to execute the preset callback function to obtain link state information, where the preset The callback function is a callback function for subscribing to the virtual routing and forwarding instance registered in the notification linked list of the detection virtual routing and forwarding instance in advance.
进一步地,信息处理模块30还包括:Further, the information processing module 30 also includes:
数据库子模块32,用于将链路状态信息存入预设数据库,指示订阅虚拟路由转发实例从预设数据库中获取链路状态信息。The database sub-module 32 is used to store the link state information in the preset database, and instruct the subscription virtual route forwarding instance to obtain the link state information from the preset database.
进一步地,信息处理模块30还包括:Further, the information processing module 30 also includes:
路由收敛子模块33,用于若链路状态信息为链路故障,则指示订阅虚拟路由转发实例进行路由收敛;The route convergence sub-module 33 is configured to, if the link state information is a link failure, instruct to subscribe to the virtual route forwarding instance to perform route convergence;
路由恢复子模块34,用于若链路状态信息为链路畅通,则指示订阅虚拟路由转发实例进行路由恢复。The route restoration sub-module 34 is configured to, if the link state information is that the link is unblocked, instruct to subscribe to the virtual route forwarding instance to perform route restoration.
进一步地,该链路检测装置还包括:Further, the link detection device further includes:
订阅分组模块41,用于当M大于1时,将订阅虚拟路由转发实例分为M个订阅分组,并设置每个订阅分组与每个检测虚拟路由转发实例之间的对应关系,使得每个订阅分组中的订阅虚拟路由转发实例用于接收一个检测虚拟路由转发实例检测到的链路状态信息。The subscription grouping module 41 is used to divide the subscription virtual route forwarding instance into M subscription groups when M is greater than 1, and set the correspondence between each subscription group and each detection virtual route forwarding instance, so that each subscription The subscribed virtual routing and forwarding instance in the packet is used to receive the link state information detected by a detecting virtual routing and forwarding instance.
关于链路检测装置的具体限定可以参见上文中对于链路检测方法的限定,在此不再赘述。上述链路检测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the link detection device, please refer to the above definition of the link detection method, which will not be repeated here. Each module in the above-mentioned link detection device can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一实施例中,提供了一种计算机设备,该计算机设备可以是网络设备,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种链路检测方法。In an embodiment, a computer device is provided. The computer device may be a network device, and its internal structure diagram may be as shown in FIG. 5. The computer equipment includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instructions are executed by the processor to realize a link detection method.
在一实施例中,提供一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行计算机可读指令时实现上述实施例中链路检测方法的步骤,例如图1所示的步骤S1至步骤S3。或者,处理器执行计算机可读指令时实现上述实施例中链路检测装置的各模块/单元的功能,例如图4所示模块10至模块30的功能。为避免重复,此处不再赘述。本实施例中的可读存储介质包括非易失性可读存储介质和易失性可读存储介质。In an embodiment, one or more readable storage media storing computer readable instructions are provided. The computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by one or more processors. When executed, the one or more processors are caused to execute the computer-readable instructions to implement the steps of the link detection method in the foregoing embodiment, for example, steps S1 to S3 shown in FIG. 1. Alternatively, the processor implements the functions of the modules/units of the link detection apparatus in the foregoing embodiment when executing computer-readable instructions, for example, the functions of the modules 10 to 30 shown in FIG. 4. To avoid repetition, I won’t repeat them here. The readable storage medium in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
在一实施例中,提供了一种计算机可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现上述方法实施例中链路检测方法,或者,该计算机可读指令被处理器执行时实现上述装置实施例中链路检测装置中各模块/单元的功能。为避免重复,此处不再赘述。In one embodiment, a computer-readable storage medium is provided, and computer-readable instructions are stored thereon. The computer-readable instructions implement the link detection method in the above method embodiments when executed by a processor, or the computer may When the read instruction is executed by the processor, the function of each module/unit in the link detection device in the foregoing device embodiment is realized. To avoid repetition, I won’t repeat them here.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,该计算机可读指令可存储于一非易失性可读存储介质也可以存储在易失性可读存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer-readable instructions, which can be stored in a non-volatile readable storage. The medium may also be stored in a volatile readable storage medium, and when the computer readable instructions are executed, they may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In practical applications, the above functions can be allocated to different functional units and modules as needed. Module completion, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内 The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application .

Claims (20)

  1. 一种链路检测方法,其中,所述链路检测方法包括: A link detection method, wherein the link detection method includes:
    从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M<K;
    获取所述检测虚拟路由转发实例检测到的链路状态信息;Acquiring link state information detected by the detected virtual routing and forwarding instance;
    将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。Forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
  2. 如权利要求1所述的链路检测方法,其中,所述获取所述检测虚拟路由转发实例检测到的链路状态信息包括:5. The link detection method according to claim 1, wherein said obtaining the link state information detected by the detection virtual route forwarding instance comprises:
    指示所述检测虚拟路由转发实例向目标链路网关地址发送检测协议控制报文,并接收所述目标链路网关地址的响应报文;Instruct the detection virtual route forwarding instance to send a detection protocol control message to the target link gateway address, and receive a response message of the target link gateway address;
    根据所述目标链路网关地址对所述检测协议控制报文的响应报文确定所述链路状态信息。The link state information is determined according to the response message of the target link gateway address to the detection protocol control message.
  3. 如权利要求1所述的链路检测方法,其中,所述将所述链路状态信息转发给所述订阅虚拟路由转发实例包括:The link detection method according to claim 1, wherein said forwarding said link state information to said subscribed virtual route forwarding instance comprises:
    指示所述订阅虚拟路由转发实例将所述链路状态信息作为预设回调函数的参数,并指示所述订阅虚拟路由转发实例执行所述预设回调函数以获取所述链路状态信息,其中,所述预设回调函数为预先在所述检测虚拟路由转发实例的通知链表中注册的所述订阅虚拟路由转发实例的回调函数。Instruct the subscribed virtual route forwarding instance to use the link state information as a parameter of a preset callback function, and instruct the subscribed virtual route forwarding instance to execute the preset callback function to obtain the link state information, wherein: The preset callback function is a callback function of the subscribed virtual route forwarding instance registered in the notification linked list of the detected virtual route forwarding instance in advance.
  4. 如权利要求1所述的链路检测方法,其中,所述将所述链路状态信息转发给所述订阅虚拟路由转发实例还包括:The link detection method according to claim 1, wherein said forwarding said link state information to said subscribed virtual route forwarding instance further comprises:
    将所述链路状态信息存入预设数据库,指示所述订阅虚拟路由转发实例从所述预设数据库中获取所述链路状态信息。The link state information is stored in a preset database, and the subscribed virtual route forwarding instance is instructed to obtain the link state information from the preset database.
  5. 如权利要求1所述的链路检测方法,其中,所述指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理包括:The link detection method according to claim 1, wherein the instructing the subscribed virtual route forwarding instance to perform route change processing according to the link state information comprises:
    若所述链路状态信息为链路故障,则指示所述订阅虚拟路由转发实例进行路由收敛;If the link state information is a link failure, instruct the subscribed virtual route forwarding instance to perform route convergence;
    若所述链路状态信息为链路畅通,则指示所述订阅虚拟路由转发实例进行路由恢复。If the link state information indicates that the link is unblocked, the subscribed virtual route forwarding instance is instructed to perform route restoration.
  6. 如权利要求1所述的链路检测方法,其中,在所述将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例之后,并且在所述获取所述检测虚拟路由转发实例检测到的链路状态信息之前,所述链路检测方法还包括:The link detection method according to claim 1, wherein, after the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding instances, and after the obtaining Before the detecting the link state information detected by the virtual route forwarding instance, the link detection method further includes:
    当M大于1时,将所述订阅虚拟路由转发实例分为M个订阅分组,并设置每个所述订阅分组与每个所述检测虚拟路由转发实例之间的对应关系,使得每个所述订阅分组中的所述订阅虚拟路由转发实例用于接收一个所述检测虚拟路由转发实例检测到的所述链路状态信息。When M is greater than 1, divide the subscription virtual routing and forwarding instances into M subscription groups, and set the correspondence between each subscription group and each detection virtual routing and forwarding instance, so that each The subscription virtual routing and forwarding instance in the subscription packet is used to receive the link state information detected by the detecting virtual routing and forwarding instance.
  7. 一种链路检测装置,其中,所述链路检测装置包括:A link detection device, wherein the link detection device includes:
    实例对象选取模块,用于从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;The instance object selection module is used to select M virtual local area network sub-interfaces from the K virtual local area network sub-interfaces of a specific physical network interface according to a preset selection method, and select M virtual local area network sub-interfaces in the selected M virtual local area network sub-interfaces. A detection protocol session is established in a virtual routing and forwarding instance, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routes of the KM sub-interfaces of the virtual local area network that have not been selected The forwarding instance is used as a subscription virtual routing forwarding instance, where K and M are both positive integers, and M<K;
    信息获取模块,用于获取所述检测虚拟路由转发实例检测到的链路状态信息;An information acquisition module, configured to acquire link state information detected by the virtual routing and forwarding detection instance;
    信息处理模块,用于将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。The information processing module is configured to forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
  8. 如权利要求7所述的链路检测装置,其中,所述信息处理模块包括:8. The link detection device according to claim 7, wherein the information processing module comprises:
    通知链表子模块,指示所述订阅虚拟路由转发实例将所述链路状态信息作为预设回调函数的参数,并指示所述订阅虚拟路由转发实例执行所述预设回调函数以获取所述链路状态信息,其中,所述预设回调函数为预先在所述检测虚拟路由转发实例的通知链表中注册的所述订阅虚拟路由转发实例的回调函数。The notification linked list sub-module instructs the subscribed virtual route forwarding instance to use the link state information as a parameter of a preset callback function, and instructs the subscribed virtual route forwarding instance to execute the preset callback function to obtain the link State information, wherein the preset callback function is a callback function of the subscribed virtual route forwarding instance registered in the notification linked list of the detected virtual route forwarding instance in advance.
  9. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其中,所述处理器执行所述计算机可读指令时实现如下步骤:A computer device includes a memory, a processor, and computer-readable instructions that are stored in the memory and can run on the processor, wherein the processor implements the following steps when the processor executes the computer-readable instructions:
    从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M<K;
    获取所述检测虚拟路由转发实例检测到的链路状态信息;Acquiring link state information detected by the detected virtual routing and forwarding instance;
    将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。Forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
  10. 如权利要求9所述的计算机设备,其中,所述获取所述检测虚拟路由转发实例检测到的链路状态信息包括:9. The computer device according to claim 9, wherein said acquiring the link state information detected by said detecting virtual routing and forwarding instance comprises:
    指示所述检测虚拟路由转发实例向目标链路网关地址发送检测协议控制报文,并接收所述目标链路网关地址的响应报文;Instruct the detection virtual route forwarding instance to send a detection protocol control message to the target link gateway address, and receive a response message of the target link gateway address;
    根据所述目标链路网关地址对所述检测协议控制报文的响应报文确定所述链路状态信息。The link state information is determined according to the response message of the target link gateway address to the detection protocol control message.
  11. 如权利要求9所述的计算机设备,其中,所述将所述链路状态信息转发给所述订阅虚拟路由转发实例包括:9. The computer device according to claim 9, wherein said forwarding said link state information to said subscription virtual route forwarding instance comprises:
    指示所述订阅虚拟路由转发实例将所述链路状态信息作为预设回调函数的参数,并指示所述订阅虚拟路由转发实例执行所述预设回调函数以获取所述链路状态信息,其中,所述预设回调函数为预先在所述检测虚拟路由转发实例的通知链表中注册的所述订阅虚拟路由转发实例的回调函数。Instruct the subscribed virtual route forwarding instance to use the link state information as a parameter of a preset callback function, and instruct the subscribed virtual route forwarding instance to execute the preset callback function to obtain the link state information, wherein: The preset callback function is a callback function of the subscribed virtual route forwarding instance registered in the notification linked list of the detected virtual route forwarding instance in advance.
  12. 如权利要求9所述的计算机设备,其中,所述将所述链路状态信息转发给所述订阅虚拟路由转发实例还包括:9. The computer device according to claim 9, wherein said forwarding said link state information to said subscribed virtual route forwarding instance further comprises:
    将所述链路状态信息存入预设数据库,指示所述订阅虚拟路由转发实例从所述预设数据库中获取所述链路状态信息。The link state information is stored in a preset database, and the subscribed virtual route forwarding instance is instructed to obtain the link state information from the preset database.
  13. 如权利要求9所述的计算机设备,其中,所述指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理包括:9. The computer device according to claim 9, wherein the instructing the subscribed virtual route forwarding instance to perform route change processing according to the link state information comprises:
    若所述链路状态信息为链路故障,则指示所述订阅虚拟路由转发实例进行路由收敛;If the link state information is a link failure, instruct the subscribed virtual route forwarding instance to perform route convergence;
    若所述链路状态信息为链路畅通,则指示所述订阅虚拟路由转发实例进行路由恢复。If the link state information indicates that the link is unblocked, the subscribed virtual route forwarding instance is instructed to perform route restoration.
  14. 如权利要求9所述的计算机设备,其中,在所述将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例之后,并且在所述获取所述检测虚拟路由转发实例检测到的链路状态信息之前包括:The computer device according to claim 9, wherein, after the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as subscription virtual routing and forwarding instances, and after the obtaining of the Before detecting the link state information detected by the virtual routing and forwarding instance, it includes:
    当M大于1时,将所述订阅虚拟路由转发实例分为M个订阅分组,并设置每个所述订阅分组与每个所述检测虚拟路由转发实例之间的对应关系,使得每个所述订阅分组中的所述订阅虚拟路由转发实例用于接收一个所述检测虚拟路由转发实例检测到的所述链路状态信息。When M is greater than 1, divide the subscription virtual routing and forwarding instances into M subscription groups, and set the correspondence between each subscription group and each detection virtual routing and forwarding instance, so that each The subscription virtual routing and forwarding instance in the subscription packet is used to receive the link state information detected by the detecting virtual routing and forwarding instance.
  15. 一个或多个存储有计算机可读指令的可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其中,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more readable storage media storing computer readable instructions. The computer readable storage medium stores computer readable instructions. When the computer readable instructions are executed by one or more processors, the The one or more processors execute the following steps:
    从特定物理网络接口的K个虚拟局域网子接口中,按照预设的选取方式选取M个所述虚拟局域网子接口,并在选中的M个所述虚拟局域网子接口的虚拟路由转发实例中建立检测协议会话,将建立了所述检测协议会话的所述虚拟路由转发实例作为检测虚拟路由转发实例,将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例,其中,K和M均为正整数,M<K;From the K virtual local area network sub-interfaces of a specific physical network interface, select M virtual local area network sub-interfaces according to a preset selection method, and establish detection in the virtual routing and forwarding instances of the selected M virtual local area network sub-interfaces Protocol session, the virtual routing and forwarding instance that has established the detection protocol session is used as a detection virtual routing and forwarding instance, and the virtual routing and forwarding instances of the KM sub-interfaces of the virtual local area network that are not selected are used as subscription virtual routing and forwarding Examples, where K and M are both positive integers, and M<K;
    获取所述检测虚拟路由转发实例检测到的链路状态信息;Acquiring link state information detected by the detected virtual routing and forwarding instance;
    将所述链路状态信息转发给所述订阅虚拟路由转发实例,指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理。Forward the link state information to the subscribed virtual route forwarding instance, and instruct the subscribed virtual route forwarding instance to perform route change processing according to the link state information.
  16. 如权利要求15所述的可读存储介质,其中,所述获取所述检测虚拟路由转发实例检测到的链路状态信息包括:15. The readable storage medium according to claim 15, wherein said acquiring the link state information detected by said detecting virtual routing and forwarding instance comprises:
    指示所述检测虚拟路由转发实例向目标链路网关地址发送检测协议控制报文,并接收所述目标链路网关地址的响应报文;Instruct the detection virtual route forwarding instance to send a detection protocol control message to the target link gateway address, and receive a response message of the target link gateway address;
    根据所述目标链路网关地址对所述检测协议控制报文的响应报文确定所述链路状态信息。The link state information is determined according to the response message of the target link gateway address to the detection protocol control message.
  17. 如权利要求15所述的可读存储介质,其中,所述将所述链路状态信息转发给所述订阅虚拟路由转发实例包括:15. The readable storage medium according to claim 15, wherein said forwarding said link state information to said subscription virtual route forwarding instance comprises:
    指示所述订阅虚拟路由转发实例将所述链路状态信息作为预设回调函数的参数,并指示所述订阅虚拟路由转发实例执行所述预设回调函数以获取所述链路状态信息,其中,所述预设回调函数为预先在所述检测虚拟路由转发实例的通知链表中注册的所述订阅虚拟路由转发实例的回调函数。Instruct the subscribed virtual route forwarding instance to use the link state information as a parameter of a preset callback function, and instruct the subscribed virtual route forwarding instance to execute the preset callback function to obtain the link state information, wherein: The preset callback function is a callback function of the subscribed virtual route forwarding instance registered in the notification linked list of the detected virtual route forwarding instance in advance.
  18. 如权利要求15所述的可读存储介质,其中,所述将所述链路状态信息转发给所述订阅虚拟路由转发实例还包括:15. The readable storage medium according to claim 15, wherein said forwarding said link state information to said subscription virtual route forwarding instance further comprises:
    将所述链路状态信息存入预设数据库,指示所述订阅虚拟路由转发实例从所述预设数据库中获取所述链路状态信息。The link state information is stored in a preset database, and the subscribed virtual route forwarding instance is instructed to obtain the link state information from the preset database.
  19. 如权利要求15所述的可读存储介质,其中,所述指示所述订阅虚拟路由转发实例根据所述链路状态信息进行路由变更处理包括:15. The readable storage medium according to claim 15, wherein the instructing the subscribed virtual route forwarding instance to perform route change processing according to the link state information comprises:
    若所述链路状态信息为链路故障,则指示所述订阅虚拟路由转发实例进行路由收敛;If the link state information is a link failure, instruct the subscribed virtual route forwarding instance to perform route convergence;
    若所述链路状态信息为链路畅通,则指示所述订阅虚拟路由转发实例进行路由恢复。If the link state information indicates that the link is unblocked, the subscribed virtual route forwarding instance is instructed to perform route restoration.
  20. 如权利要求15所述的可读存储介质,其中,在所述将未被选中的K-M个所述虚拟局域网子接口的所述虚拟路由转发实例作为订阅虚拟路由转发实例之后,并且在所述获取所述检测虚拟路由转发实例检测到的链路状态信息之前包括:The readable storage medium according to claim 15, wherein, after the virtual routing and forwarding instances of the KM virtual local area network sub-interfaces that are not selected are used as subscription virtual routing and forwarding instances, and after the obtaining The link state information detected by the detecting virtual routing and forwarding instance before includes:
    当M大于1时,将所述订阅虚拟路由转发实例分为M个订阅分组,并设置每个所述订阅分组与每个所述检测虚拟路由转发实例之间的对应关系,使得每个所述订阅分组中的所述订阅虚拟路由转发实例用于接收一个所述检测虚拟路由转发实例检测到的所述链路状态信息。When M is greater than 1, divide the subscription virtual routing and forwarding instances into M subscription groups, and set the correspondence between each subscription group and each detection virtual routing and forwarding instance, so that each The subscription virtual routing and forwarding instance in the subscription packet is used to receive the link state information detected by the detecting virtual routing and forwarding instance.
PCT/CN2020/118064 2020-02-27 2020-09-27 Link detection method and apparatus, computer device, and storage medium WO2021169276A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010122314.4A CN111447101B (en) 2020-02-27 2020-02-27 Link detection method, device, computer equipment and storage medium
CN202010122314.4 2020-02-27

Publications (1)

Publication Number Publication Date
WO2021169276A1 true WO2021169276A1 (en) 2021-09-02

Family

ID=71653917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118064 WO2021169276A1 (en) 2020-02-27 2020-09-27 Link detection method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN111447101B (en)
WO (1) WO2021169276A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024898A (en) * 2021-11-09 2022-02-08 湖北天融信网络安全技术有限公司 Message transmission method, device, equipment and storage medium
CN114585039A (en) * 2022-02-24 2022-06-03 中国人民解放军国防科技大学 Switching method and device for ten-gigabit network data transmission link in fault state

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111447101B (en) * 2020-02-27 2023-05-02 平安科技(深圳)有限公司 Link detection method, device, computer equipment and storage medium
CN111984376B (en) * 2020-09-23 2023-06-27 杭州迪普科技股份有限公司 Protocol processing method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101395853A (en) * 2006-03-02 2009-03-25 思科技术公司 A technique for efficiently and dynamically maintaining bidirectional forwarding detection on a bundle of links
CN101895437A (en) * 2010-06-23 2010-11-24 迈普通信技术股份有限公司 Method and equipment of distributed bidirectional forwarding detection (BFD)
CN104702478A (en) * 2013-12-10 2015-06-10 中兴通讯股份有限公司 Virtual route forwarding instance handling method and virtual routing forward instance handling device
WO2017171743A1 (en) * 2016-03-30 2017-10-05 Ale Usa Inc. Edge network node and method for configuring a service therein
CN111447101A (en) * 2020-02-27 2020-07-24 平安科技(深圳)有限公司 Link detection method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753464A (en) * 2010-01-22 2010-06-23 中兴通讯股份有限公司 Routing convergence method, provider edge devices and virtual private network system
CN104468385B (en) * 2013-09-12 2018-03-20 新华三技术有限公司 A kind of forwarding-table item treating method and apparatus
US10237176B2 (en) * 2016-06-30 2019-03-19 Juniper Networks, Inc. Auto discovery and auto scaling of services in software-defined network environment
CN109462534B (en) * 2017-09-06 2021-04-16 中国银联股份有限公司 Local interconnect controller, local interconnect control method, and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101395853A (en) * 2006-03-02 2009-03-25 思科技术公司 A technique for efficiently and dynamically maintaining bidirectional forwarding detection on a bundle of links
CN101895437A (en) * 2010-06-23 2010-11-24 迈普通信技术股份有限公司 Method and equipment of distributed bidirectional forwarding detection (BFD)
CN104702478A (en) * 2013-12-10 2015-06-10 中兴通讯股份有限公司 Virtual route forwarding instance handling method and virtual routing forward instance handling device
WO2017171743A1 (en) * 2016-03-30 2017-10-05 Ale Usa Inc. Edge network node and method for configuring a service therein
CN111447101A (en) * 2020-02-27 2020-07-24 平安科技(深圳)有限公司 Link detection method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ALA, ABDELALI ET AL.: "Fast Convergence Mechanisms and Features Deployment Within Operator Backbone Infrastructures", 2009 MEDITERRANNEAN MICROWAVE SYMPOSIUM (MMS), 8 February 2010 (2010-02-08) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024898A (en) * 2021-11-09 2022-02-08 湖北天融信网络安全技术有限公司 Message transmission method, device, equipment and storage medium
CN114024898B (en) * 2021-11-09 2023-06-30 湖北天融信网络安全技术有限公司 Message transmission method, device, equipment and storage medium
CN114585039A (en) * 2022-02-24 2022-06-03 中国人民解放军国防科技大学 Switching method and device for ten-gigabit network data transmission link in fault state
CN114585039B (en) * 2022-02-24 2022-11-22 中国人民解放军国防科技大学 Switching method and device for ten-gigabit network data transmission link in fault state

Also Published As

Publication number Publication date
CN111447101B (en) 2023-05-02
CN111447101A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN110166356B (en) Method and network equipment for sending message
WO2021169276A1 (en) Link detection method and apparatus, computer device, and storage medium
Lin et al. Fast failover and switchover for link failures and congestion in software defined networks
JP5913635B2 (en) Redundant network connection
US9344325B2 (en) System, method and apparatus providing MVPN fast failover
JP6165850B2 (en) Enhanced protocol independent multicast (PIM) fast rerouting methodology using downstream notification packets
US20200267069A1 (en) Link switching method, link switching device, network communication system, and computer-readable storage medium
US8325629B2 (en) System and method for assuring the operation of network devices in bridged networks
US9059902B2 (en) Procedures, apparatuses, systems, and computer-readable media for operating primary and backup network elements
JP2006229967A (en) High-speed multicast path switching
KR102050910B1 (en) Method and system to enable re-routing for home networks upon connectivity failure
JP2015521449A (en) Enhancements to PIM fast rerouting using upstream activation packets
JP2009524332A (en) VPLS failure protection for ring networks
JP2015521448A (en) Increasing fault coverage in hierarchical and redundant multicast routing
EP2209267A1 (en) A system and a method for routing data traffic
WO2012171378A1 (en) Method and router for preventing flow interruption caused by failover from vpls to l3
CN113141268A (en) Method and device for realizing redundancy backup of link aggregation group of manual aggregation
Vestin et al. Resilient software defined networking for industrial control networks
WO2014146541A1 (en) Cdn and network convergence system, scheduling module selection method and computer storage medium
US8218433B2 (en) Monitoring connectivity in ring networks
EP2523401B1 (en) Virtual networks within a physical network
WO2011011934A1 (en) Method and apparatus for ethernet tunnel segmentation protection
US20220294728A1 (en) Packet Transmission Path Switching Method, Device, and System
WO2015135280A1 (en) Method, system and access router for realizing on demand smart dialing
WO2022222884A1 (en) Failure sensing method, apparatus and system for forwarding path

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20922286

Country of ref document: EP

Kind code of ref document: A1