CN111478845B - Protection switching method and provider network edge device - Google Patents

Protection switching method and provider network edge device Download PDF

Info

Publication number
CN111478845B
CN111478845B CN202010133003.8A CN202010133003A CN111478845B CN 111478845 B CN111478845 B CN 111478845B CN 202010133003 A CN202010133003 A CN 202010133003A CN 111478845 B CN111478845 B CN 111478845B
Authority
CN
China
Prior art keywords
tunnel
processing unit
protection
fault
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010133003.8A
Other languages
Chinese (zh)
Other versions
CN111478845A (en
Inventor
邢家茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202010133003.8A priority Critical patent/CN111478845B/en
Publication of CN111478845A publication Critical patent/CN111478845A/en
Application granted granted Critical
Publication of CN111478845B publication Critical patent/CN111478845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Landscapes

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

Abstract

The embodiment of the application provides a protection switching method and provider network edge equipment. The method is applied to PE equipment and comprises the following steps: the first processing unit and the second processing unit respectively receive fault notification indicating the fault of the working tunnel; the first processing unit and the second processing unit respectively determine the current state of a tunnel protection group corresponding to a working tunnel with a fault through an operating APS state machine according to the fault notification; the first processing unit updates a forwarding table entry stored in the forwarding chip according to the determined current state so as to switch the forwarding chip to a protection tunnel forwarding service message of the tunnel protection group; and the second processing unit generates a first APS message corresponding to the tunnel protection group according to the determined current state, and sends the first APS message to the opposite-end PE device through the protection tunnel of the tunnel protection group. By the technical scheme of the embodiment of the application, under the condition that a large number of tunnel protection groups are established, the protection switching of carrier class 50ms can be met, and the reliability is improved.

Description

Protection switching method and provider network edge device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a protection switching method and provider network edge equipment.
Background
With the development of network economy, enterprises put forward higher and higher requirements on the construction of own networks, which mainly show the aspects of network flexibility, economy, expansibility and the like. The multi-protocol Label Switching (MPLS) technology is a network technology that is widely applied at present. MPLS network introduces a connection-oriented label switching concept on a connectionless IP network, combines a third layer routing technology and a second layer switching technology, and fully exerts the flexibility of IP routing and the indirection of second layer switching.
In a Provider network of an existing MPLS networking, Provider Edge (PE) devices and Provider (P) devices are deployed. A tunnel Protection group is established between the PE devices at the two ends, the tunnel Protection group includes a working tunnel and a Protection tunnel, and tunnel Protection is performed through an Automatic Protection Switching (APS) protocol. When a P device on the working tunnel fails, the PE device may sense the failure to switch to a standby path to execute forwarding of a service packet, and notify the opposite-end PE device through an APS packet to trigger protection switching of the opposite-end PE device.
However, with the increase of diversity of service packets, tunnel protection groups set between PE devices on both sides gradually increase. At this time, if a P device fails, the PE device needs to sequentially perform protection switching on a plurality of tunnel protection groups, and notify the updated state of the tunnel protection group through the APS packet, so that the protection switching is difficult to meet the carrier class requirement of 50ms in the presence of a large number of tunnel protection groups, which results in a situation of packet loss of a service packet and a decrease in networking reliability.
Disclosure of Invention
In a first aspect, the present application provides a protection switching method, which is applied to a PE device, where multiple tunnel protection groups are established between the PE device and an opposite-end PE device, where a tunnel protection group includes a working tunnel and a protection tunnel;
the PE equipment comprises a first processing unit, a second processing unit and a forwarding chip;
the method comprises the following steps:
the first processing unit and the second processing unit respectively receive fault notification indicating the fault of the working tunnel;
the first processing unit and the second processing unit respectively determine the current state of a tunnel protection group corresponding to a working tunnel with a fault through an operating APS state machine according to the fault notification;
the first processing unit updates a forwarding table entry stored in the forwarding chip according to the determined current state so as to switch the forwarding chip to a protection tunnel forwarding service message of the tunnel protection group;
and the second processing unit generates a first APS message corresponding to the tunnel protection group according to the determined current state, and sends the first APS message to the opposite-end PE device through the protection tunnel of the tunnel protection group.
Optionally, the first processing unit is a first core of a processor in the PE device, the second processing unit is a second core of the processor in the PE device, and the PE device further includes a logic device for detecting a tunnel fault;
the first processing unit and the second processing unit respectively receive a failure notification indicating a failure of the working tunnel, including:
the first processing unit receives a fault notification which is sent by the logic device and indicates the fault of the working tunnel;
the first processing unit replicates the failure notification and sends the failure notification to the second processing unit.
Optionally, the method further includes:
the first processing unit receives a second APS message sent by the opposite-end PE device and sent by the forwarding chip;
and the first processing unit copies the second APS message and sends the second APS message to the second processing unit.
Optionally, the first processing unit is a first processor of the PE device, and the second processing unit is a second processor of the PE device, where the PE device further includes a logic device for detecting a tunnel fault;
the first processing unit and the second processing unit respectively receive a failure notification indicating a failure of a working tunnel, including:
the first processing unit receives a fault notice of the working tunnel fault sent by the logic device;
and the second processing unit receives the fault notification of the working tunnel fault sent by the logic device.
Optionally, the method further includes:
the first processing unit receives a second APS message sent by the opposite-end PE device and sent by the forwarding chip;
and the second processing unit receives a second APS message sent by the opposite-end PE device and sent by the forwarding chip.
In a second aspect, the present application provides a PE device, where multiple tunnel protection groups are established between the PE device and an opposite-end PE device, where a tunnel protection group includes a working tunnel and a protection tunnel;
the PE equipment comprises a first processing unit, a second processing unit and a forwarding chip;
a first processing unit for receiving a failure notification indicating a failure of a working tunnel; according to the fault notification, determining the current state of a tunnel protection group corresponding to the working tunnel with the fault through a running first APS state machine; updating a forwarding table entry stored in a forwarding chip according to the determined current state so as to switch the forwarding chip to a protection tunnel forwarding service message of the tunnel protection group;
the second processing unit is used for receiving a fault notification indicating the fault of the main path; according to the fault notification, determining the current state of a tunnel protection group corresponding to the working tunnel with the fault through a second APS state machine; and generating a first APS message corresponding to the tunnel protection group according to the determined current state, and sending the first APS message to the opposite-end PE device through the protection tunnel of the tunnel protection group.
Optionally, the first processing unit is a first core of a processor in the PE device, the second processing unit is a second core of the processor in the PE device, and the PE device further includes a logic device for detecting a tunnel fault;
the first processing unit is specifically used for receiving a fault notification which is sent by the logic device and indicates the fault of the working tunnel; the failure notification is copied and sent to the second processing unit.
Optionally, the first processing unit is further configured to receive a second APS message sent by the forwarding chip and sent by the peer PE device; and copying the second APS message and sending the second APS message to the second processing unit.
Optionally, the first processing unit is a first processor of the PE device, and the second processing unit is a second processor of the PE device, where the PE device further includes a logic device for detecting a tunnel fault;
the first processing unit is specifically used for receiving a fault notification which is sent by the logic device and indicates the fault of the working tunnel;
and the second processing unit is specifically used for receiving a fault notification which is sent by the logic device and indicates the fault of the working tunnel.
Optionally, the first processing unit is further configured to receive a second APS message sent by the forwarding chip and sent by the peer PE device;
and the second processing unit is further configured to receive a second APS message sent by the opposite-end PE device and sent on the forwarding chip.
As can be seen from the foregoing technical solutions, in the protection switching method and the PE device provided in this embodiment of the present application, two processing units are deployed in the PE device, and when the PE device detects a tunnel fault, a fault notification is respectively sent to the two processing units, so as to perform protection switching of a tunnel protection group on a forwarding chip through the first processing unit, generate an APS message through the second processing unit, send the generated APS message to an opposite-end PE device that establishes a tunnel with the PE device, and notify a current state of the tunnel protection group corresponding to the working tunnel with the fault, thereby increasing speed of state notification and protection switching of the tunnel protection group, and in a case where the PE device establishes a large number of tunnels with the opposite-end PE device, reduce delay caused by sequentially processing the protection switching and the state notification, reduce packet loss of a service packet, and improve reliability of networking.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
Fig. 1 is a flowchart of a protection switching method provided in the present application;
fig. 2 is a schematic structural diagram of a PE device provided in the present application;
FIG. 3 is a schematic diagram of another PE apparatus provided in the present application;
fig. 4 is a schematic diagram illustrating normal forwarding of a service packet in a networking provided by the present application;
fig. 5 is a schematic diagram illustrating forwarding after protection switching of a service packet in a network provided by the present application;
FIG. 6 is a schematic illustration of the uploading of a fault notification in a specific embodiment of the present application;
fig. 7 is a schematic diagram of protection switching and APS message sending in the embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the examples and claims of this application, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the embodiments of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The application provides a protection switching method, which is applied to PE equipment, a tunnel is established between the PE equipment and opposite-end PE equipment, and a tunnel protection group of the tunnel comprises a main path and a standby path.
The PE device at least comprises a first processing unit, a second processing unit and a forwarding chip.
The method, as shown in fig. 1, includes:
s101, the first processing unit and the second processing unit respectively receive fault notification indicating that the working tunnel has faults.
And S102, the first processing unit and the second processing unit respectively determine the current state of the tunnel protection group corresponding to the working tunnel with the fault through the running APS state machine according to the fault notification.
When the PE equipment works normally, the PE equipment can detect the working tunnel and the protection tunnel of the tunnel protection group according to a certain period, and can find the faults of the working tunnel and the protection tunnel in time. If the working tunnel fails, the failure notification is uploaded to the processing units for protection switching, and at this time, the failure notification needs to be respectively sent to two processing units in the PE device. The PE device may further include a logic device, where the logic device may record a tunnel status, and send a failure notification to the processing unit in response to a read instruction of the processing unit, or send the failure notification to the processing unit in an interrupt manner when the logic device determines that the tunnel is failed. The sent failure notification carries the tunnel identifier of the failed tunnel and the protection group identifier of the tunnel protection group to which the tunnel belongs. When one P device on the working tunnel fails, all the working tunnels established on the P device can simultaneously fail, and at the moment, the PE device can continuously confirm the failures of the working tunnels and sequentially send failure notifications of the working tunnel failures to the two processing units.
In the two processing units, APS state machines are respectively operated for calculating the current state of the tunnel protection group according to the received failure notification or the APS message received from the opposite-end PE device. The operation mode of the APS state machine is the same as the conventional mode, and is not described herein again. And after the two processing units receive the fault notification of the working tunnel faults of the plurality of tunnel protection groups, the APS state machine sequentially calculates and determines the current state of each tunnel protection group. And the processing unit updates the current state of the tunnel protection group corresponding to the working tunnel with the fault according to the protection group identifier of the tunnel protection group in the fault notification, so that the processing unit determines that the subsequent forwarding service message needs to be forwarded through the protection tunnel.
In the above steps S101 and S102, the first processing unit and the second processing unit respectively determine the current state of the tunnel protection group, and update the current state of the tunnel protection group maintained by the first processing unit and the second processing unit. The tunnel protection group includes the current state of the tunnel protection group, and related forwarding information of the working tunnel and the protection tunnel. Since the APS state machines are the same and the failure notifications are the same, the current states of the tunnel protection groups maintained on the first processing unit and the second processing unit will also remain the same.
After the first processing unit and the second processing unit respectively update the current state of the tunnel protection group, the first processing unit and the second processing unit perform different processing according to the updated tunnel protection group.
S103, the first processing unit updates the forwarding table entry stored in the forwarding chip according to the current state so as to switch the forwarding chip to the protection tunnel forwarding service message of the tunnel protection group.
And S104, the second processing unit generates a first APS message corresponding to the tunnel protection group according to the current state, and sends the first APS message to the opposite-end PE device through the protection tunnel of the tunnel protection group.
Because the failure notification is used to indicate that the working tunnel has failed, according to the failure notification, the current states that the first processing unit and the second processing unit can determine through the APS state machine are states indicating that a protection tunnel needs to be selected from the tunnel protection group to forward the service packet. For example, before the failure, the state of the tunnel protection group is the no-request NR-W state of the working tunnel, and after the failure of the working tunnel is received, the state enters the SF-W state of the working signal failure, and the tunnel protection group switches to the protection tunnel to work.
At this time, the first processing unit determines forwarding information of the protection tunnel from the tunnel protection group according to the updated current state, where the forwarding information may include a tunnel identifier, a forwarding label of the MPLS Network, a Virtual Local Area Network (VLAN) identifier, Address Resolution Protocol (ARP) information, and the like. The first processing unit sends the update information to the forwarding chip, so that the forwarding chip performs protection switching according to the sent forwarding information, and switches to the protection tunnel to forward the service message.
Specifically, a forwarding table entry for forwarding the service packet is maintained in the forwarding chip, and in a normal state, the forwarding table entry of the working tunnel is activated to forward the service packet. After determining that the forwarding from the protection tunnel in the tunnel protection group is required, the first processing unit may issue update information to the forwarding chip according to the forwarding information of the protection tunnel, where the update information may be a forwarding table entry for activating the protection tunnel stored in the forwarding chip, or may be a forwarding table entry for the protection tunnel to cover the forwarding information of the working tunnel stored in the forwarding chip. After receiving the update information, the forwarding chip updates the stored forwarding table entry, and after receiving the service packet, the service packet matches the forwarding table entry corresponding to the protection tunnel to forward the service packet, thereby completing protection switching of the forwarding chip for the failed working tunnel.
And in parallel with the protection switching of the first processing unit, the second processing unit determines forwarding information corresponding to the protection tunnel after updating the current state of the tunnel protection group maintained by the second processing unit. Because the current state of the tunnel protection group changes, the current state needs to be notified to the opposite-end PE device to ensure that the states of the tunnel protection groups recorded by the PE devices on both sides are consistent, and the opposite-end PE device may trigger protection switching in the tunnel protection group through notification of the current state.
Specifically, after the second processing unit obtains forwarding information of the protection tunnel, an APS message is generated according to the forwarding information, and the APS message carries a current state of a tunnel protection group corresponding to the working tunnel with the failure, tunnel protection modes of PE devices on two sides, and the like, such as 1+1 protection, 1:1 protection, unidirectional protection, and bidirectional protection.
And after generating the APS message, encapsulating the APS message according to the forwarding information of the protection tunnel, and instructing to forward the APS message to the opposite-end PE device through the output interface of the protection tunnel.
Therefore, under the condition that a large number of working tunnel faults occur simultaneously, the first processing unit and the second processing unit respectively operate the APS state machine and maintain information of a tunnel protection group, the first processing unit is used for processing protection switching of the forwarding chip, and the second processing unit is used for generating an APS message and sending the APS message to the opposite-end PE device, so that the problem that the protection switching time of the opposite-end PE device exceeds the telecommunication-level requirement when the APS message can be sent to the opposite-end PE device only by completing the protection switching of the forwarding chip in the prior art is avoided, the packet loss of service messages is reduced, and the networking reliability is improved.
Alternatively, as shown in fig. 2, a processor may be provided in the PE device, and the processor at least includes a first core as a first processing unit and a second core as a second processing unit. Logic means for detecting tunnel failure is also included in the PE device. The Logic Device may be a Field Programmable Gate Array (FPGA) or a Complex Programmable Logic Device (CPLD). The processor, the logic device and the forwarding chip are connected through a bus, and data transmission is carried out.
In the protection switching method, the step S101, where the first processing unit and the second processing unit respectively receive a failure notification indicating that the working tunnel has a failure, includes:
s1011, the first processing unit receives a fault notification which is sent by the logic device and indicates the fault of the main path;
s1012, the first processing unit copies the fault notification and sends the fault notification to the second processing unit.
The logic device sends a fault notification to the processor via the bus, and the fault notification is sent to the first processing unit. After the first processing unit determines that the failure notification is sent upwards, the failure notification may be copied and sent to the second processing unit, so that both the first processing unit and the second processing unit may receive the failure notification.
Further, in the working process of the PE device, an APS message sent by the PE device at the opposite end may also be received, so that the protection switching method further includes:
s105, the first processing unit receives a second APS message sent by the opposite-end PE device and sent by the forwarding chip;
and S106, the first processing unit copies the second APS message and sends the second APS message to the second processing unit.
After a packet sent by the PE device at the opposite end arrives at the PE device, the forwarding chip pops up an ethernet packet header of the packet to obtain an inner packet, and determines that the inner packet is an APS packet according to a type field in the inner packet, for example, it may be determined that the inner packet is an APS packet by matching the type field according to a preconfigured Access Control List (ACL). When the APS message is sent to the processor, the APS message first arrives at the first processing unit, and when the first processing unit determines that the sent message is the APS message, the APS message is copied and the copied APS message is sent to the second processing unit, so that the first processing unit and the second processing unit respectively determine the current state of a tunnel protection group established with opposite-end PE equipment according to the APS state machines running by the first processing unit and the second processing unit, and update the state recorded in the tunnel protection group according to the obtained current state.
Alternatively, in the PE device, as shown in fig. 3, two processors may be provided, where a first processor serves as the first processing unit and a second processor serves as the second processing unit. The PE device also includes logic for detecting a path failure.
In the protection switching method, the step S101, where the first processing unit and the second processing unit respectively receive a tunnel failure notification indicating that the primary path fails, includes:
s1013, the first processing unit receives a fault notification which is sent by the logic device and indicates the fault of the working tunnel;
s1014, the second processing unit receives a failure notice which is sent by the logic device and indicates the failure of the working tunnel.
The logic device sends fault notification to the processor through the bus, and at the moment, the fault notification is sent to the first processing unit and the second processing unit by the logic device respectively.
Further, in the working process of the PE device, an APS message sent by the PE device at the opposite end may also be received, so that the protection switching method further includes:
s107, the first processing unit receives a second APS message sent by the opposite-end PE device and sent by the forwarding chip;
and S107, the second processing unit receives a second APS message sent by the opposite-end PE device and sent by the forwarding chip.
After a message sent by opposite-end PE equipment reaches the PE equipment, an Ethernet message header of the message popped up by a forwarding chip acquires an inner-layer message, and the inner-layer message is determined to be an APS message according to a type field in the inner-layer message. At this time, it can be determined that the APS packet needs to be respectively uploaded to the first processing unit and the second processing unit of the PE device according to the ACL stored in the forwarding chip, so that the first processing unit and the second processing unit respectively determine the current state of the tunnel protection group established with the PE device at the opposite end according to the APS state machine operating by the first processing unit and the second processing unit, and update the state recorded in the tunnel protection group according to the obtained current state.
The following describes a protection switching method provided by the present application by a specific embodiment. In MPLS networking, as shown in fig. 4, PE1, PE2, P1 and P2 are deployed in a provider network, where PE1 and PE2 are deployed at the edge of the provider network and connected to a CE device (not shown) at the edge of a client network. A plurality of tunnel protection groups (two tunnel protection groups are illustrated as an example in fig. 4) are established between PE1 and PE2, and each tunnel protection group is formed by a working tunnel (solid line in the figure) and a protection tunnel (dotted line in the figure). In the figure, a working tunnel 1 and a protection tunnel 1 belong to a tunnel protection group 1, and a working tunnel 2 and a protection tunnel 2 belong to a tunnel protection group 2.
During normal operation, the PE1 receives a service packet 1 from the CE device, and selects a working tunnel 1 from the tunnel protection group 1 to forward when determining that an outgoing interface of the service packet is an interface of the tunnel protection group 1 according to a destination Internet Protocol (IP) address of the service packet 1. The PE1 receives the service packet 2 from the CE device side, and selects the working tunnel 2 from the tunnel protection group 2 for forwarding when determining that the outgoing interface of the service packet is the interface of the tunnel protection group 2 according to the destination Internet Protocol (IP) address of the service packet 2. At this time, as shown in fig. 4, the service packet 1 is forwarded to the opposite-end CE through PE1, P1, and PE2, and the service packet 2 is forwarded to the opposite-end CE through PE1, P2, and PE 2.
At this time, the PE1 may detect the state of the working tunnel based on interface Detection, Bidirectional Forwarding Detection (BFD) protocol or continuous Detection Message (CCM). Since the protection switching manners of the tunnel protection group 1 and the tunnel protection group 2 are the same, only the tunnel protection group 1 is taken as an example to describe the following. When P1 fails, as shown in fig. 5, PE1 may determine that working tunnel 1 and working tunnel 2 to which P1 is connected have failed. Since PE1 and P1 are directly connected, PE1 may determine whether the connection with P1 is persistent according to the interface state of the forwarding chip detected by the logic device. When the logic device detects that the interface state of the working tunnel 1 connected with the forwarding chip and the P1 becomes offline, as shown in fig. 6, an interrupt is triggered to send a fault notification to the processor through the bus, where the fault notification carries the tunnel identifier of the working tunnel 1.
S10, when the first core of the processor receives the failure notification, copies the failure notification, and transmits the copied failure notification to the second core of the processor.
And S20, the first core and the second core calculate according to the received fault notification and the APS state machine operated by the first core, determine the current state of the tunnel protection group 1 corresponding to the tunnel identifier of the working tunnel 1 with the fault, and record the current state in the information of the tunnel protection group 1 maintained by the first core and the second core.
And S30, the first core determines the protection tunnel 1 of the selected tunnel protection group 1 to work based on the updated current state of the tunnel protection group 1. At this time, the first core determines the tunnel identifier of the protection tunnel 1 from the tunnel protection group 1, and determines the forwarding information of the protection tunnel 1 according to the tunnel identifier. And the first core sends update information to the forwarding chip according to the forwarding information so as to trigger the forwarding chip to perform protection switching, and switches from the working tunnel 1 to the protection tunnel 1 to forward the service message.
When the subsequent service packet 1 arrives at PE1 and matches tunnel protection group 1, as shown in fig. 5, protection tunnel 1 in tunnel protection group 1 is selected and forwarded to PE 2.
And S40, the second core determines the protection tunnel 1 of the selected tunnel protection group 1 to work based on the updated current state of the tunnel protection group 1. At this time, an APS message is generated, which is sent to PE2 and carries the current status of tunnel protection group 1. And encapsulating the APS message according to the address information of the PE2 and the forwarding information of the protection tunnel 1, and sending the APS message to the PE2 through an outgoing interface of the protection tunnel 1.
The step S30 and the step S40 are processed in parallel, and the core of the processor may separately perform the protection switching process on the forwarding chip and the current state notification process of sending the APS packet to the PE2, so that the protection switching process and the APS packet sending process need to be processed sequentially under the condition of a single core, and under the condition of establishing a large number of tunnel protection groups on the PE device, the time for protection switching and current state notification can be shortened, the packet loss of the service packet is reduced, and the reliability of MPLS networking is improved.
S50, when the forwarding chip receives the message sent by PE2, determining the message as an APS message according to the message type carried in the message, and then sending the APS message to the processor.
S60, the first core in the processor receives the APS packet, copies the APS packet, and sends the APS packet to the second core. And then the first core and the second core respectively calculate the current state of the tunnel protection group 1 through the APS state machines running by the first core and the second core, so as to update the information in the tunnel protection group 1.
The application also provides PE equipment, wherein a plurality of tunnel protection groups are established between the PE equipment and opposite-end PE equipment, and each tunnel protection group comprises a working tunnel and a protection tunnel;
the PE equipment comprises a first processing unit, a second processing unit and a forwarding chip;
a first processing unit for receiving a failure notification indicating a failure of a working tunnel; according to the fault notification, determining the current state of a tunnel protection group corresponding to the working tunnel with the fault through a running first APS state machine; updating a forwarding table entry stored in the forwarding chip according to the determined current state so as to switch the forwarding chip to a protection tunnel forwarding service message of the tunnel protection group;
a second processing unit for receiving a failure notification indicating a failure of the working tunnel; according to the fault notification, determining the current state of a tunnel protection group corresponding to the working tunnel with the fault through a second APS state machine; and generating a first APS message corresponding to the tunnel protection group according to the determined current state, and sending the first APS message to the opposite-end PE device through the protection tunnel of the tunnel protection group.
Optionally, in the PE device, the first processing unit is a first core of a processor in the PE device, the second processing unit is a second core of the processor in the PE device, and the PE device further includes a logic device for detecting a tunnel fault;
the first processing unit is specifically used for receiving a fault notification which is sent by the logic device and indicates the fault of the working tunnel; the failure notification is copied and sent to the second processing unit.
Further, in the PE device, the first processing unit is further configured to receive a second APS packet sent by the peer PE device and sent on the forwarding chip; and copying the second APS message and sending the second APS message to the second processing unit.
Optionally, in the PE device, the first processing unit is a first processor of the PE device, and the second processing unit is a second processor of the PE device, where the PE device further includes a logic device for detecting a tunnel fault;
the first processing unit is specifically used for receiving a fault notification which is sent by the logic device and indicates the fault of the working tunnel;
and the second processing unit is specifically used for receiving a fault notification which is sent by the logic device and indicates the fault of the working tunnel.
Further, in the PE device, the first processing unit is further configured to receive a second APS packet sent by the peer PE device and sent on the forwarding chip;
and the second processing unit is further configured to receive a second APS message sent by the opposite-end PE device and sent on the forwarding chip.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A protection switching method is characterized in that the method is applied to provider network edge PE equipment, a plurality of tunnel protection groups are established between the PE equipment and opposite end PE equipment, and the tunnel protection groups comprise working tunnels and protection tunnels;
the PE equipment comprises a first processing unit, a second processing unit and a forwarding chip;
the method comprises the following steps:
the first processing unit and the second processing unit respectively receive a fault notification indicating a working tunnel fault;
the first processing unit and the second processing unit respectively determine the current state of a tunnel protection group corresponding to a working tunnel with a fault through an operating APS state machine according to the fault notification;
the first processing unit updates a forwarding table entry stored in the forwarding chip according to the determined current state so as to switch the forwarding chip to a protection tunnel of the tunnel protection group for forwarding the service message;
and the second processing unit generates a first APS message corresponding to the tunnel protection group according to the determined current state, and sends the first APS message to opposite-end PE equipment through a protection tunnel of the tunnel protection group.
2. The method of claim 1, wherein the first processing element is a first core of a processor in the PE device and the second processing element is a second core of a processor in the PE device, the PE device further comprising logic to detect a tunnel failure;
the first processing unit and the second processing unit respectively receive a failure notification of a working tunnel failure, and the method includes:
the first processing unit receives a fault notification which is sent by the logic device and indicates the fault of the working tunnel;
the first processing unit replicates the failure notification and sends the failure notification to a second processing unit.
3. The method of claim 2, further comprising:
the first processing unit receives a second APS message sent by the opposite end PE device and sent by the forwarding chip;
and the first processing unit copies the second APS message and sends the second APS message to the second processing unit.
4. The method of claim 1, wherein the first processing element is a first processor of the PE device and the second processing element is a second processor of the PE device, the PE device further comprising logic to detect a tunnel failure;
the first processing unit and the second processing unit respectively receive a failure notification indicating a failure of a working tunnel, including:
the first processing unit receives a fault notification which is sent by the logic device and indicates the fault of the working tunnel;
and the second processing unit receives a fault notification which is sent by the logic device and indicates the fault of the working tunnel.
5. The method of claim 4, further comprising:
the first processing unit receives a second APS message sent by the opposite end PE device and sent by the forwarding chip;
and the second processing unit receives a second APS message sent by the opposite-end PE device and sent by the forwarding chip.
6. A PE device is characterized in that a plurality of tunnel protection groups are established between the PE device and an opposite end PE device, wherein each tunnel protection group comprises a working tunnel and a protection tunnel;
the PE equipment comprises a first processing unit, a second processing unit and a forwarding chip;
the first processing unit is used for receiving a fault notification indicating a working tunnel fault; according to the fault notification, determining the current state of a tunnel protection group corresponding to the working tunnel with the fault through a running first APS state machine; updating a forwarding table entry stored in the forwarding chip according to the determined current state so as to switch the forwarding chip to a protection tunnel forwarding service message of the tunnel protection group;
the second processing unit is used for receiving a fault notification indicating a working tunnel fault; according to the fault notification, determining the current state of a tunnel protection group corresponding to the working tunnel with the fault through a second APS state machine; and generating a first APS message corresponding to the tunnel protection group according to the determined current state, and sending the first APS message to opposite-end PE equipment through a protection tunnel of the tunnel protection group.
7. The PE device of claim 6, wherein the first processing unit is a first core of a processor in the PE device and the second processing unit is a second core of the processor in the PE device, the PE device further comprising logic to detect a tunnel failure;
the first processing unit is specifically configured to receive a failure notification indicating a failure of a working tunnel, which is sent by the logic device; the failure notification is copied and sent to a second processing unit.
8. The PE device of claim 7, wherein the first processing unit is further configured to receive a second APS packet sent by the peer PE device and sent on the forwarding chip; and copying the second APS message and sending the second APS message to the second processing unit.
9. The PE device of claim 6, wherein the first processing unit is a first processor of the PE device and the second processing unit is a second processor of the PE device, the PE device further comprising logic to detect a tunnel failure;
the first processing unit is specifically configured to receive a failure notification indicating a failure of a working tunnel, which is sent by the logic device;
the second processing unit is specifically configured to receive a failure notification indicating a failure of the working tunnel, which is sent by the logic device.
10. The PE device of claim 9, wherein the first processing unit is further configured to receive a second APS packet sent by the peer PE device and sent on the forwarding chip;
the second processing unit is further configured to receive a second APS packet sent by the opposite-end PE device on the forwarding chip.
CN202010133003.8A 2020-02-29 2020-02-29 Protection switching method and provider network edge device Active CN111478845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010133003.8A CN111478845B (en) 2020-02-29 2020-02-29 Protection switching method and provider network edge device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010133003.8A CN111478845B (en) 2020-02-29 2020-02-29 Protection switching method and provider network edge device

Publications (2)

Publication Number Publication Date
CN111478845A CN111478845A (en) 2020-07-31
CN111478845B true CN111478845B (en) 2022-02-22

Family

ID=71747105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010133003.8A Active CN111478845B (en) 2020-02-29 2020-02-29 Protection switching method and provider network edge device

Country Status (1)

Country Link
CN (1) CN111478845B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115347943A (en) * 2021-04-28 2022-11-15 华为技术有限公司 Service transmission method and related equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8107383B2 (en) * 2008-04-04 2012-01-31 Extreme Networks, Inc. Reducing traffic loss in an EAPS system
CN101944951B (en) * 2010-08-30 2016-01-20 中兴通讯股份有限公司 The method of switching back links between networks and device
CN102315987B (en) * 2011-09-13 2017-05-10 中兴通讯股份有限公司 Ring network protection group link switching method and device
CN102299864B (en) * 2011-10-08 2014-11-26 杭州华三通信技术有限公司 Method and device applied to message forwarding of two-layer virtual private network
CN102571458A (en) * 2012-03-05 2012-07-11 中兴通讯股份有限公司 Switching method and device for tunnel protection sets
CN104935507B (en) * 2015-06-03 2018-05-08 瑞斯康达科技发展股份有限公司 A kind of method of linear protection switching, PE equipment and system
CN109218176B (en) * 2017-06-30 2020-12-15 华为技术有限公司 Message processing method and device
CN110417564B (en) * 2018-04-26 2022-09-02 北京东土军悦科技有限公司 Full-mesh link protection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111478845A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN108337157B (en) Method and node for transmitting message in network
CN100459601C (en) Method for realizing active/standby gateway apparatus in network
US9871708B2 (en) Method and system for ring protection switching
CN101317388B (en) Apparatus and method for multi-protocol label switching label-switched path protection switching
CN106487675A (en) For the outlet protection in EVPN with BUM flow during link failure
CN101702658B (en) Implement method of ring network protection and system thereof
EP2709314B1 (en) Avoiding data traffic loss in an ethernet ring multihomed, in an active-standby manner, to a virtual private lan service transport network
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN113328916B (en) BFD detection mode switching method, device and equipment
CN111447095B (en) Bidirectional forwarding detection switching method, bidirectional forwarding detection module and edge device
CN113992569A (en) Multi-path service convergence method and device in SDN network and storage medium
CN101789879A (en) Dynamic maintenance method and device for related link circuits
CN115277305A (en) Network management method, device, equipment and machine readable storage medium
CN111478845B (en) Protection switching method and provider network edge device
CN111585797A (en) Ethernet link switching method, device, equipment and computer readable storage medium
CN105763448B (en) A kind of message transmitting method and device
WO2015154423A1 (en) Cross-domain service processing method, apparatus and system
JP2013046090A (en) Communication device and communication system
CN102932249A (en) Method and device for transmitting virtual router redundancy protocol (VRRP) message
JP4636247B2 (en) Packet network and layer 2 switch
CN102315972B (en) Method for realizing label switching path (LSP) switching and device
CN110138656B (en) Service processing method and device
CN110011819B (en) Method, device, equipment and system for generating SD (secure digital) alarm information
CN113992571B (en) Multipath service convergence method, device and storage medium in SDN network
CN113872843B (en) Route generation method, route processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant