CN117811986A - Route switching method, electronic equipment and storage medium - Google Patents

Route switching method, electronic equipment and storage medium Download PDF

Info

Publication number
CN117811986A
CN117811986A CN202211175432.7A CN202211175432A CN117811986A CN 117811986 A CN117811986 A CN 117811986A CN 202211175432 A CN202211175432 A CN 202211175432A CN 117811986 A CN117811986 A CN 117811986A
Authority
CN
China
Prior art keywords
time
state
esi
message
routing message
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.)
Pending
Application number
CN202211175432.7A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202211175432.7A priority Critical patent/CN117811986A/en
Priority to PCT/CN2023/090130 priority patent/WO2024066313A1/en
Publication of CN117811986A publication Critical patent/CN117811986A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

The application discloses a route switching method, electronic equipment and a storage medium, and belongs to the technical field of communication. The route switching method comprises the following steps: receiving a first notification routing message sent by a first PE device for a first broadcast domain BD on a first Ethernet segment ES, wherein the first PE device is adjacent to the first ES, the first notification routing message carries a first Ethernet Segment Identification (ESI) and first time indication information, the second PE is the PE of the first BD, and the first ESI is an identifier of the first ES; in response to the first advertisement routing message, performing target processing for a first ESI at a first point in time indicated by the first time indication information.

Description

Route switching method, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a route switching method, electronic equipment and a storage medium.
Background
In an ethernet virtual private network (Ethernet Virtual Private Network, EVPN) networking scenario, in order to improve the reliability of the network, a multi-homing deployment manner of Customer Edge (CE) devices is generally adopted, that is, a deployment manner that the same CE device can be connected to two or more Provider Edge (PE) devices, so as to ensure that, when one PE device fails, customer service can continue to be transmitted depending on another PE device without being greatly affected.
Typically only the PE device of these two or more PE devices, which is marked as designated forwarder (Designated Forwarder, DF), is responsible for forwarding messages from or to the CE device, when this PE fails, it is necessary to elect one of the remaining PE devices as a new DF, which is then responsible for sending the corresponding data message to the CE device, but since the transmission delay T of the message for DF election varies randomly in the link between 0 and N seconds, i.e. the PE as the message sender cannot predict the transmission delay T corresponding to each transmitted message, while theoretically the sender PE can decide what state it should be in only after determining that the receiver PE device has received the message for DF election it has sent, but this cannot be achieved in actual transmission. Therefore, at present, the common practice of the transmitting end is to simply assume a variable transmission delay T as a certain fixed delay, but the actual transmission delay may still be different, so that the states of the transmitting end PE and the receiving end PE at the same time point are not matched, which results in that the transmitting end PE and the receiving end PE are simultaneously in DF state or simultaneously in non-DF state within a certain time, and the message forwarding result is abnormal.
Disclosure of Invention
The embodiment of the application aims to provide a route switching method, electronic equipment and a storage medium, which can solve the problem of abnormal message forwarding in an EVPN multi-homing networking scene.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a route switching method, applied to a second operator border PE device, where the method includes: receiving a first notification routing message sent by a first PE device for a first broadcast domain BD on a first Ethernet segment ES, wherein the first PE device is adjacent to the first ES, the first notification routing message carries a first Ethernet Segment Identification (ESI) and first time indication information, the second PE is the PE of the first BD, and the first ESI is an identifier of the first ES; in response to the first advertisement routing message, performing target processing for a first ESI at a first point in time indicated by the first time indication information.
In a second aspect, an embodiment of the present application provides another route switching method, applied to a first PE device, where the method includes: and sending a first notification routing message to a second PE device for a first BD on a first ES, wherein the first PE device is adjacent to the first ES, the first notification routing message carries a first ESI and first time indication information, the second PE is the PE of the first BD, the first ESI is an identifier of the first ES, and the first notification routing message is used for indicating the second PE device to execute target processing for the first ESI in the first BD at a first time point indicated by the first time indication information.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the route switching method according to the first or second aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the route switching method according to the first or second aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement a route switching method according to the first aspect or the second aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the route switching method according to the first or second aspect.
In this embodiment of the present application, a first PE device is configured to receive a first advertisement routing message sent by the first PE device for a first broadcast domain BD on a first ethernet segment ES, where the first PE device is adjacent to the first ES, the first advertisement routing message carries a first ethernet segment identifier ESI and first time indication information, the second PE is a PE of the first BD, and the first ESI is an identifier of the first ES; and responding to the first notification routing message, and executing target processing for the first ESI at a first time point indicated by the first time indication information, so that the problem of abnormal message forwarding in an EVPN multi-homing networking scene can be solved.
Drawings
Fig. 1 is a schematic diagram of a communication system provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a route switching method provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart of another route switching method provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of another route switching method provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a routing switching device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of another routing switching device according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The route switching method, the device, the electronic equipment and the storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a communication system provided in an embodiment of the present application, and EVPN is a technology for implementing an ethernet virtual private network (Ethernet Virtual Private Network, EVPN) through a network layer reachability message (Network Layer Reachability Information, NLRI) of an extended border gateway protocol (Border Gateway Protocol, BGP), in which several types of BGP EVPN routing types are set for advertising Mac address and IP address information of hosts between different sites.
In an EVPN networking scenario, in order to improve the reliability of a network, a deployment mode of multiple CE devices, that is, a deployment mode of connecting one CE device to two or more PE devices, is generally adopted to ensure that when one PE device fails, customer service can continue to be transmitted depending on another PE device without being greatly affected. As shown in fig. 1, in the EVPN service, a certain VPN Network includes a plurality of CE devices, such as CE1, CE2, and CE3, where CE1 and CE3 form a Multi-homed Network (MHN), the Multi-homed Network is denoted as MHN1, PE1 and PE2 are dual-homed PE router devices of MHN1, PE3 is a remote PE router device, and PE3 is a single-homed PE router of CE 2. An EVPN service is deployed on PE1, PE2, and PE3, and is denoted as Broadcast Domain (BD) 1, and a first ES instance and a first ESI identifying the first ES instance are configured for MHN1 on PE1 and PE 2. Routing messages for broadcast domain BD1 may be advertised between PE1 and PE2, between PE1 and PE3, and between PE2 and PE 3.
Fig. 2 illustrates a route switching method provided in an embodiment of the present application, where the method may be performed by a second PE device, in other words, the method may be performed by software or hardware installed in the PE device, and the second PE may include PE2 or PE3 in fig. 1. The method comprises the following steps:
s202: and receiving a first advertisement routing message sent by the first PE device for the first BD on the first ES.
The first PE device is adjacent to the first ES, and the first PE device may include a PE1 shown in fig. 1, where the first advertisement routing message carries the first ethernet segment identifier ESI and first time indication information, and the second PE is a PE of the first BD. The first ESI is an identifier of the first ES. The first time indication information indicates a first point in time. The first point in time is after the time of transmission or reception of the first advertisement routing message.
S204: in response to the first advertisement routing message, performing target processing for a first ESI at a first point in time indicated by the first time indication information.
In one implementation, the target process includes a first process including: and configuring the address of the next hop pointing to the target of the first ESI in the first BD as the address of the first PE device, wherein the second PE device is not adjacent to the first ES. For example, at a first point in time in fig. 1, an address of a target next hop in the first BD pointing to the first ESI is configured as an address of PE 1.
Because of the instability of the link, the time when the PE2 and the PE3 receive the first notification routing message sent by the PE1 is inconsistent, and if the PE3 immediately executes the first processing when receiving the first notification routing message, abnormal forwarding of the message will be caused. For example, when PE1 on PE1 switches to DF after waiting for t1, and PE2 receives the first advertisement routing message sent by PE1 for t2, it is assumed that t1=t2=0, that is, when the AC interface state changes, PE1 may switch to DF immediately, and PE2 may switch to NDF immediately at the same time. When PE1 switches to DF, a first notification routing message is sent to PE3, but the first notification routing message may be received at time t3, PE2 switches to NDF while PE1 is rising DF, PE2 switches to NDF, and then a routing notification is sent to PE3, but the routing notification PE3 may be received at time t 4. When t3 is smaller than t4, before t3, the first notification routing message from PE1 is still an alternative (backup) identifier corresponding to NDF, and the route from PE2 still carries primary (primary) identifier information corresponding to DF, so that, after PE3 receives traffic of CE2 before t3, the traffic is still forwarded to PE2, but is not forwarded to PE1, at this time, PE1 is DF, and PE2 is already switched to NDF, and when the traffic is forwarded from CE2 to PE2 through PE3, since PE2 is NDF, the traffic is discarded, and there is a packet loss problem in forwarding traffic between CE1 and CE 2.
In another implementation manner, the first advertisement routing message further carries Primary identification information corresponding to DF, and before the first time point, the first unicast data message sent by the first CE device is received, and then the first unicast data message is forbidden to be sent to the first PE device. The first CE device is adjacent to the second PE device, and the first unicast data message carries a first host address, where the first host address is a host address of at least one CE device in the first ES. For example, in fig. 1, before the first time point, a first unicast data packet sent by CE1 is received, and then the first unicast data packet is prohibited from being sent to the PE1, because before the first time point, PE1 is NDF, and after the first time point, PE1 is DF, the first unicast data packet may be sent to the first PE device.
Therefore, the CE device executes target processing at a first time point after receiving the first notification routing message, DF between PE1 and PE2 is not switched before the first time point, and routing is not carried out again on PE3 device, so that abnormal forwarding of the message is avoided. When the first time indication information in the first notification routing message arrives, the remote PE device (e.g. PE3 in the figure) performs routing processing, and PE1 and PE2 also perform DF switching at the same time, so that the time deviation between the routing switching of the first notification routing message and DF election switching can be ensured to be kept within a controllable range regardless of the change of the transmission delay of the first notification routing message in the network. The controllable range means that the time deviation is not affected by the transmission delay of the first advertisement routing message. Therefore, when the PE3 receives the known unicast message of the CE2, the known unicast message is only forwarded to DF devices serving as the first ES in the current PE1 and PE2, so that the packet loss time is ensured to be controlled within a controllable range.
In another implementation, the target process includes a second process including: and setting a first Access Circuit (AC) to a first state, wherein the first AC is an interface corresponding to the first ESI and the first BD on the second PE equipment, and the second PE equipment is adjacent to the first ES. The first state includes a state in which sending of a second message to the first AC is prohibited, the second message including at least one of a broadcast, an unknown unicast, a multicast data message in the first BD. At a first point in time, PE2 is set to NDF and PE1 is set to DF. Further, for reasons similar to those described above, abnormal forwarding of the message can be avoided by this step.
Similarly, there is a problem of multiple packets in traffic forwarding between CE1 and CE2, if PE1 changes to DF, PE2 still remains in DF state, i.e. the first AC remains in the second state, and further supports sending the second message to the first AC, so that the situation that PE1 and PE2 are DF at the same time occurs. In this way, since PE3 receives the broadcast traffic of CE2 and forwards the broadcast traffic to PE1 and also forwards the broadcast traffic to PE2, and since PE1 and PE2 are both DFs, no traffic is discarded, there is a multi-packet problem in forwarding the broadcast traffic between CE1 (or CE 3) and CE 2. In short, t1, t2, t3 and t4 are related to network organization, network change and the like, cannot be estimated in advance, and have the problems of multiple packets or packet loss.
However, this step performs the target processing for the first ESI at the first time point, for example, the second PE is PE2 shown in fig. 1, and PE2 performs the target processing for the first ESI at the first time point t5, that is, before t5, PE2 is DF, the second AC maintains the second state, and further supports sending the second packet to the second AC, so that the traffic received by PE3 from CE2 is forwarded to PE2, and no packet loss occurs. The second process starts at the first time point t5, the first AC is set to the first state, the sending of the second message to the first AC is prohibited, and the BUM traffic received by the PE3 from the CE2 is still forwarded to the PE2 as the NDF, but since the second AC on the PE2 has been switched to the NDF (corresponding to the first state), and is not forwarded to the CE, no multi-packet occurs.
Therefore, the CE device executes target processing at a first time point after receiving the first notification routing message, and DF between PE1 and PE2 is not switched before the first time point, so that abnormal forwarding of the message is avoided. When the first time indication information in the first notification routing message arrives, PE1 and PE2 also perform DF switching almost simultaneously, so that the time deviation between the routing switching of the first notification routing message and DF election switching can be kept within a controllable range regardless of the change of the transmission delay of the first notification routing message in the group network. The controllable range means that the time deviation is not affected by the transmission delay of the first advertisement routing message. Thus, when PE3 sends BUM message to PE1 and PE2, PE1 and PE2 will not send to the first ES at the same time, thereby ensuring that multiple packets will not occur.
In one implementation, the first advertisement routing message also carries information of the first BD. Specifically, in the related art, a routing message, such as an ethernet segment routing (Ethernet Segment Route, ESR), is generally only processed on a PE device adjacent to an ES corresponding to the ESR, and a PE device not adjacent to the ES is not processed, such as PE3 shown in fig. 1. In the case where PE3 cannot handle ESR, the message forwarding exception described above may occur. In this case, the embodiment of the present application carries the information of the first BD and the first time indication information in an Ethernet Auto-discovery (Ethernet Auto-discovery) routing message, so that a PE device that is not adjacent to the first ES can also process the first advertisement routing message in this step, thereby avoiding abnormal forwarding of the message.
It should be noted that, in an EVPN Instance (EVI), there may be multiple modes, and when the EVI is a virtual local area network-aware bundled service interface (VLAN-aware bundle service interface), a plurality of BDs may be included in one EVI Instance, and the first BD may be any BD in the EVI Instance.
In one implementation, the first time indication information is determined by the first PE device and the second PE device calibration.
In this way, in the route switching method provided by the embodiment of the present application, a first advertisement routing message sent by a first PE device for a first broadcast domain BD on a first ethernet segment ES is received, where the first PE device is adjacent to the first ES, the first advertisement routing message carries the first ethernet segment identifier ESI and first time indication information, the second PE is a PE of the first BD, and the first ESI is an identifier of the first ES; and responding to the first notification routing message, and executing target processing for the first ESI at a first time point indicated by the first time indication information, so that the problem of abnormal message forwarding in an EVPN multi-homing networking scene can be solved.
The following is a description of specific examples, example 1 including:
taking each node in the ESI scene of the VPWS EVPN service as an example for explanation, with reference to FIG. 1, the VPWS EVPN service is deployed on PE1, PE2 and PE3 equipment, the outer public network is an MPLS network, the loopback address of PE1 is configured to be 1.1.1.1, the loopback address of PE2 is configured to be 2.2.2.2, the loopback address of PE3 is configured to be 3.3.3.3, and BGP neighbors are established between PE1 and PE2, PE1 and PE3 and between PE2 and PE3 to form the VPWS EVPN networking.
In this embodiment, the ES is assumed to be a single live scene. Respectively deploying ESI on PE1 and PE2 equipment, establishing ESI between PE1 and PE2 to form VPWS EVPN ESI networking scene, correspondingly forming local ESI on PE1 and PE2, forming far-end ESI on PE3, and deploying the far-end ESI in FRR mode.
The first advertisement routing message, e.g., the RT-1 per EVI route advertisement component, may deploy the BGP protocol over the entire network. When the interface state in the VPWS EVPN service on the PE1 is changed from off (down) to on (up), the PE1 device may notify the RT-1 per EVI route to the PE3 device (related processing notified to the PE2 device is not described in detail in this embodiment), and the PE3 device performs the routing calculation again according to the RT-1 per EVI routes of the PE1 and PE2 devices received in S202.
It should be noted that, in some embodiments, the off state includes a state that does not have a capability of forwarding a message, such as a fault state and a shutdown (shutdown) state; the open state includes a state with a capability to forward a message, such as a no fault and no shutdown state.
In this embodiment, the situation that the DF negotiation results between PE1 and PE2 are inconsistent is temporarily not considered, and it is assumed that the DF negotiation results between PE1 and PE2 are completed instantaneously and the pace is kept consistent when the interface state in the VPWS EVPN service on PE1 is changed from down to up. For example, the time for PE1 to switch to DF is t1, and the time for PE2 to switch to NDF is t2, i.e., t1=t2=0. When PE1 is instantaneously switched to DF, PE2 is instantaneously switched to NDF.
As in the networking shown in FIG. 1, an ES instance is configured on a PE1 device, a binding parent interface gei-0/1/0/3 in the ES instance, a VPWS EVPN instance is configured on the PE1 device, a binding parent interface gei-0/1/0/3 in the VPWS EVPN instance, an ES instance is similarly configured on a PE2 device, a binding parent interface gei-0/1/0/4 in the ES instance, a VPWS EVPN instance is configured on the PE2 device, and a binding parent interface gei-0/1/0/4 in the VPWS EVPN instance (the same situation is not separately described when a child interface corresponding to the parent interface in the ES instance is bound in the VPWS EVPN instance). The BGP protocol is deployed between PE1 and PE2, PE1 and PE3, and PE2 and PE 3. Taking the example of the interface gei-0/1/0/3 on the PE1 being changed from down to up as an example, when the interface is changed from down to up, the PE1 device issues an RT-1 per EVI route to the PE2 device adjacent to the interface, so as to trigger DF renegotiation between PE1 and PE2 (the DF negotiation process between PE1 and PE2 is not described here any more), and also issues an RT-1 per EVI route to the PE3 device adjacent to the interface.
With respect to time alignment between PE devices. The same time standard is adopted among the PE1, PE2 and PE3 devices, and the three devices are based on a clock synchronization principle, so that any appropriate clock synchronization principle can be adopted in the embodiment.
Regarding the first advertisement routing message, in some embodiments, it may be an RT-1 per EVI route, i.e., an Ethernet A-D per EVI route, such as the publication of an RT-1 per EVI route on a dual-homed PE1 device. In the networking, when the interface gei-0/1/0/3 on the PE1 is changed from down to up, the RT-1 per EVI route can sense the change of the interface state, and trigger the PE1 device to issue the RT-1 per EVI route to the PE2 and PE3 devices adjacent to the interface. In the advertised RT-1 per EVI routing information, when the router advertises ESI forwarding information, first time indication information needs to be added, corresponding time information is flooded in the whole network, the first time indication information of the prefix can be advertised in a manner of extending TLV, and a corresponding TLV definition format can include: type (type), length (length), and value (value).
The value of the type length value (type length value, TLV) carries first time indication information, wherein the first time indicated by the first time indication information can be determined according to the maximum time of RT-1 per EVI notification in the network (the time can meet the maximum time required by RT-1 per EVI routing notification). The information is encapsulated in an RT-1 per EVI routing message along with prefix information and is issued in the BGP domain.
In S202, after receiving the RT-1 per EVI route advertised by the PE1 and PE2 devices, the PE3 device on the network needs to parse the prefix time TLV when processing the prefix time TLV, which mainly includes:
if the RT-1 per EVI route does not have the first time indication information, the route selection calculation is carried out according to the received time of the RT-1 per EVI route sent by the PE1 and the PE2 and primary and backup identification information carried in the route in an original mode. If the RT-1 per EVI route has the first time indication information, analyzing the time information in the RT-1 per EVI route, and carrying out rerouting calculation according to primary and backup identification information carried in the RT-1 per EVI route sent by the PE1 and the PE2 when the numerical value time is up according to the time information.
Regarding the correct routing on the PE3 device according to the standard time information in the RT-1 per EVI route, in the above-mentioned networking, when the interface gei-0/1/0/3 on the PE1 is changed from down to up, it is assumed that PE1 is immediately switched to DF and PE2 is immediately switched to NDF. After PE1 is switched to DF, RT-1 per EVI route with primary identification information is sent to PE3 and carries first time indication information t1', and after PE2 is switched to NDF, RT-1 per EVI route with backup identification information is sent to PE3 and carries first time indication information t1'. The routing time of the RT-1 per EVI with primary identification information sent by PE1 is t3, and the routing time of the RT-1 per EVI with backup identification information sent by PE2 is t4. By carrying the first time indication information in the RT-1 per EVI route, when PE3 receives the RT-1 per EVI route information sent by PE1 at time t3 or receives the RT-1 per EVI route information sent by PE2 at time t4, rerouting calculation is not immediately performed. And the route selection calculation is performed according to the first time indication information carried in the RT-1 per EVI route, wherein the time can meet the maximum time required by the notification of the RT-1 per EVI route, so that for PE3 equipment route selection, the RT-1 per EVI route from DF side PE1 equipment carries primary identification information, and the RT-1 per EVI route from NDF side PE2 equipment carries backup identification information, so that PE3 always selects PE1 equipment with the primary identification information during route selection, double primary or double backup conditions cannot occur, and the problem of uncertain route selection cannot exist.
Regarding the completion of traffic forwarding between CE1 and CE2, when the interface state bound on the dual-homed node PE1 device is changed from down to up, after the PE1 device RT-1 per EVI route senses the change of the interface state, the PE1 device issues the RT-1 per EVI route with primary identification information to PE2 and PE3, the RT-1 per EVI route carries the first time indication information t1', the PE1 device switches to DF at t1', the PE2 device issues the RT-1 per EVI route with backup identification information to PE3 after receiving the RT-1 per EVI route, and the PE2 device switches to NDF at t1', and the PE3 device re-performs the rerouting according to the standardized time t1' in the route information, so that the PE3 always selects the PE1 device with primary identification information during the route selection. After PE3 receives the known unicast traffic sent by CE2, because RT-1 per EVI route pointing to PE1 device carries primary identification information and RT-1 per EVI route pointing to PE2 device carries backup identification information, traffic can be forwarded to PE1 device, traffic sent to PE1 can be forwarded to CE1 continuously because PE1 is DF, traffic sent to PE2 is NDF, traffic is discarded, and thus the problem of multi-packet or packet loss of broadcast traffic caused by double DF or double NDF is effectively avoided, and normal forwarding of traffic between CE1 and CE2 is completed.
Fig. 3 illustrates another route switching method provided in an embodiment of the present application, where the method may be performed by a first PE device. In other words, the method may be performed by software or hardware installed on the PE device, the method comprising the steps of:
s302: and sending a first advertisement routing message to the second PE device for the first BD on the first ES.
The first PE device is adjacent to the first ES, the first notification routing message carries the first ESI and first time indication information, the second PE is the PE of the first BD, the first ESI is an identifier of the first ES, and the first notification routing message is used for indicating the second PE device to execute target processing on the first ESI in the first BD at a first time point indicated by the first time indication information.
In one implementation, the first advertisement routing message also carries information of the first BD.
In one implementation, before this step, the embodiment of the present application further includes: and performing time calibration with a second PE device to determine the first time indication information.
The implementation of step S302 may be the same as or corresponding to the embodiment of fig. 2, and will not be repeated.
In one implementation, the sending the first advertisement routing message to the second PE device may include: and sending the first notification routing message in response to a second AC changing from a closed state to an open state, wherein the second AC is an interface corresponding to the first ESI and the first BD on the first PE device.
Fig. 4 illustrates another route switching method provided in an embodiment of the present application, where the method may be performed by a first PE device. In other words, the method may be performed by software or hardware installed on the PE device, the method comprising the steps of:
s402: and sending a first advertisement routing message to the second PE device for the first BD on the first ES.
This step is similar to step S302 in the embodiment of fig. 3, and will not be described here again.
S404: the second AC is changed from the first state to the second state at or after the second point in time.
The second time point is not earlier than the first time point indicated by the first time indication information. The second AC is an interface on the first PE corresponding to the first ESI and the first BD, where the first state includes a state of prohibiting sending of a second packet to the second AC, the second state includes a state of supporting sending of the second packet to the second AC, and the second packet includes at least one of a broadcast, an unknown unicast, and a multicast data packet in the first BD. The second message is a Broadcast, unknown unicast, multicast data (BUM) message.
Specifically, after sending the first advertisement routing message, the PE1 theoretically changes the second AC from the first state to the second state at the first time point, but a certain delay (for example, 20 ms) occurs in the actual processing, that is, the PE1 changes at the second time point or after the second time point. Thus, PE1 becomes DF.
In one implementation, before the changing the second AC from the first state to the second state, embodiments of the present application further include: performing DF election in the context of the first BD for the first ESI with a second PE device; and sending the first notification route message according to the DF election result, wherein the first notification route message also carries Primary identification information and enables the second AC to be kept in the first state, and the second PE equipment is adjacent to the first ES. Thus, PE1 or PE2 in FIG. 1 is selected as DF by election.
In some embodiments, the Primary identification information may be a value of 1 for the P-identification of the EVPN Layer 2Attributes Extended Community extended community attribute.
In one implementation, the performing DF elections includes: the DF election is performed in response to the second AC changing from the off state to the on state. The second AC changes from the off state to the on state, and PE1 is in the available state and can participate in DF elections.
In one implementation, sending unicast data messages to the second AC is prohibited until the second point in time.
In one implementation manner, before this step, a third packet sent by a third PE device may be further received, where the third PE is a PE of the first BD and the third PE is not the same node as the first PE, and the third packet includes at least one of a broadcast, an unknown unicast, and a multicast data packet in the first BD; and prohibiting the third message from being sent to the first ES. The broadcast message does not carry the address of the specific CE device. Before this step, PE1 is NDF, and the received third packet is not forwarded.
In one implementation, the first time indication information is not carried by the first PE in an ethernet segment routing ESR sent for the first ESI, where the ESR is sent for the second interface, the state of the second interface before and after the sending of the first advertisement routing message is the same state, for example, the same state is not disabled, and the second AC is a sub-interface of the second interface. The ESR route is not updated when the state of the second AC changes from off to on. For the parent interface to send ESR, the plurality of child interfaces corresponding to the parent interface may change the second AC from the first state to the second state at or after the second time point. When the parent interface is effective and the failure of the child interface is recovered, the ESR route cannot be updated and cannot be used for carrying corresponding first time indication information, the first time indication information is carried in a first notification route message (such as an RT-1 per EVI route) and used for DF election, so that the consistency of DF election calculation among devices is ensured, the problem that when the child interface is invalid and recovered, the ESR cannot be perceived, and when DF election is carried out again, the problem of double DF or double NDF is caused due to the difference of route receiving time among the devices is solved, and the problem of multi-packet or packet loss of broadcast flow caused by double DF or double NDF is solved.
In one implementation, the second interface, which is a parent interface, may have multiple child interfaces, i.e., the second AC and the third AC are both child interfaces of the second interface. The present embodiment is described by taking two sub-interfaces as an example, and those skilled in the art should understand that the number of sub-interfaces may be plural and not limited to two. In this case, embodiments of the present application may send a first advertising routing message indicating a first point in time; and changing the second AC from the first state to the second state at or after a second time point which is not earlier than the first time point indicated by the first time indication information. And may also send a second notification routing message indicating a third point in time, the third point in time being different from the first point in time; and changing the third AC from the first state to the second state at or after a fourth time point, the fourth time point not earlier than the third time point.
For example, a first advertising routing message is sent, the first advertising routing message indicating that the first point in time is point 0; after the time delay is 1 minute from 0 point, the second AC is changed from the first state to the second state. And may also send a second notification routing message indicating a third time point of 0 point 10 minutes; and changing the third AC from the first state to the second state after the time delay passes 11 minutes at the 0 point. This is because, if the plurality of child interfaces of the parent interface are all changed at the same time point, the network processing pressure is high, and the change time point is indicated for each child interface by sending the advertisement routing message with the child interfaces as granularity, the plurality of child interfaces can be changed in batches, and the network processing pressure is dispersed, so that each batch of change processing can be converged within the target time.
In one implementation, the states of the second AC and the third AC become open when the second interface changes from off to on.
In one implementation, the first advertisement routing message and the second advertisement routing message are of the same type.
According to the route switching method, the first advertisement routing message is sent to the second PE device through the first BD on the first ES, wherein the first PE device is adjacent to the first ES, the first advertisement routing message carries the first Ethernet segment identification ESI and the first time indication information, the second PE is the PE of the first BD, the first advertisement routing message is used for indicating the second PE device to execute the target processing of the first ESI in the first BD at the first time point indicated by the first time indication information, and the problem of message forwarding abnormality in an EVPN multi-homing networking scene can be solved.
The following is a specific example, example 2 including:
by using an EVPN dual-homing ESI scene example to illustrate, VPLS EVPN service is deployed on PE1, PE2 and PE3 equipment, an outer public network is an MPLS network, a loopback address of PE1 is configured to be 1.1.1.1, a loopback address of PE2 is configured to be 2.2.2.2, a loopback address of PE3 is configured to be 3.3.3.3, BGP neighbors are established between PE1 and PE2, PE1 and PE3 and between PE2 and PE3, and a VPLS EVPN networking is formed.
ESI is deployed on PE1 and PE2 equipment respectively, ESI is formed between PE1 and PE2 to form a VPLS EVPN ESI typical scene, local ESI is formed on PE1 and PE2 correspondingly, far-end ESI is formed on PE3, and the far-end ESI is deployed in an FRR mode.
The first advertisement routing message, e.g., the RT-1 per EVI route advertisement component, may deploy the BGP protocol over the entire network. When the sub-interface state in the EVPN service on PE1 is changed from down to up, PE1 equipment can announce RT-1 per EVI route to PE2 equipment, and DF election switching consistency between PE1 and PE2 is expected.
DF election switching is carried out based on standardized time information in RT-1 per EVI route to be consistent, in the embodiment, the condition that the RT-1 per EVI route time of PE1 equipment and the RT-1 per EVI route time of PE2 equipment received by PE3 equipment are inconsistent is temporarily not considered, and the assumption is made that the RT-1 per EVI route time of PE1 and PE2 equipment received by PE3 is identical, and the time is t3.
And the consistency of DF election result switching between PE1 and PE2 devices is achieved by adding standardized time information into RT-1 per EVI route information. In the networking shown in fig. 3, an ES instance is configured on a PE1 device, a binding parent interface gei-0/1/0/3 in the ES instance, a VPLS EVPN instance is configured on the PE1 device, a child interface gei-0/1/0/3.1 corresponding to the binding parent interface gei-0/1/0/3 in the VPLS EVPN instance, an ES instance is similarly configured on a PE2 device, a binding parent interface gei-0/1/0/4 in the ES instance, a VPLS EVPN instance is configured on the PE2 device, a child interface gei-0/1/0/4.1 corresponding to the binding parent interface gei-0/1/0/4 in the VPLS EVPN instance, and BGP protocol is deployed between the PE1 and the PE 2. Taking the subinterface gei-0/1/0/3.1 on the PE1 as an example, when the subinterface is changed from down to up, the RT-4 route cannot sense the change of the state of the subinterface, while the RT-1 per EVI route can sense the change of the state of the subinterface, the PE1 device can issue the RT-1 per EVI route to the PE2 device adjacent to the PE1 device, so that DF renegotiation between the PE1 and the PE2 is triggered. The time calibration between PE devices, the release of RT-1 per EVI route on the dual-homing node PE1 device and the receiving of RT-1 per EVI route on the PE2 device are the same as those in the example 1, and are not repeated.
After receiving the RT-1 per EVI route advertised by the PE1 device in S202, the PE2 device on the network needs to parse the prefix time TLV when processing the prefix time TLV, and mainly includes: if there is no standardized time information, DF negotiation is performed at a predetermined experience value. If the standardized time information exists in the RT-1 per EVI route, the time information in the RT-1 per EVI route is analyzed, and according to the time value information, PE2 performs DF switching when the value time is up.
Regarding the re-negotiation of DF between PE1 and PE2, in the above-mentioned networking, when the subinterface gei-0/1/0/3.1 on PE1 is changed from down to up, the PE1 device does not wait for a certain empirical value t1 time as before, and then switches to DF regardless of whether PE2 switches to NDF or not. And switching to DF according to the standard time information t1 'in the RT-1 per EVI route and the time when the standard time information t1' carried in the RT-1 per EVI arrives. For PE2 equipment, after PE2 equipment receives RT-1 per EVI route sent by PE1, negotiation switching of DF is not carried out according to time t2 of receiving RT-1 per EVI route, but PE2 is switched to NDF when time is up to standardized time t1' carried in RT-1 per EVI route. PE1 keeps the original NDF state until the time information is reached, PE2 keeps the original DF state until the time information is reached; by carrying standardized time information in the RT-1 per EVI route, when the time reaches the standardized time t1', PE1 and PE2 simultaneously perform DF switching, PE1 is switched to DF, and PE2 is switched to NDF, so that the consistency of DF negotiation result switching of PE1 and PE2 equipment is achieved.
Completing the traffic forwarding step between CE1 and CE2 may be the same as described for the corresponding steps of example 1.
As can be seen by combining example 1 and example 2, by adding the carrying standardized time information in the RT-1 per EVI route, the overall pace of DF election between PE1 and PE2 and PE3 route selection can be ensured to be consistent, thereby ensuring normal forwarding of traffic. For PE3, before rerouting, the route on PE3 remains primary to PE2 and backup to PE1, and before this time information arrives (since the DF negotiation result between PE1 and PE2 is switched according to this standard time information), PE2 remains DF and PE1 is NDF. The PE3 receives the traffic of the CE2 and can select to forward the traffic to the PE2, the PE2 is DF at the moment, the traffic is not discarded after being received, and the traffic can be normally forwarded to the CE1. After the standardized time is up, PE3 reselects primary to PE1 and backup to PE2 according to the received RT-1 per EVI route with primary identification information from PE1 and the received RT-1 per EVI route with primary identification information from PE2, PE1 is switched to DF according to the standardized time information, PE2 is also switched to NDF, and the traffic received by PE2 can be normally forwarded to CE1 through PE1 through the selected primary path to PE 1.
In summary, when the interface state bound on the dual-homing node PE1 device is changed from down to up, after the PE1 device RT-1 per EVI route senses the change of the interface state, PE1 issues the RT-1 per EVI route to PE3, and when the PE3 device receives the RT-1 per EVI route sent by PE1 and PE2, it does not immediately perform rerouting calculation, but waits until the standardized time information t1' carried in the RT-1 per EVI route arrives, before rerouting calculation. In addition, DF switching can be performed between PE1 equipment and PE2 equipment according to standardized time t1' information carried in RT-1 per EVI route, and route selection calculation on PE3 and DF and NDF switching steps between PE1 and PE2 equipment can be kept consistent. Therefore, the problem of uncertain route caused by inconsistent route time of the RT-1 per EVI received from PE1 and PE2 on PE3 or the problem of multi-packet or packet loss of broadcast traffic caused by double DF or double NDF between PE1 and PE2 is effectively avoided, and the normal forwarding of traffic in the actual engineering networking is finally achieved.
It should be noted that, in the route switching method provided in the embodiment of the present application, the execution body may be a route switching device, or a control module in the route switching device for executing the route switching method. In the embodiment of the present application, a method for executing route switching by a route switching device is taken as an example, and the route switching device provided in the embodiment of the present application is described.
Fig. 5 is a schematic structural diagram of a routing switching device according to an embodiment of the present application. As shown in fig. 5, the route switching device 500 includes: a first receiving module 510 and a first executing module 520.
The first receiving module 510 is configured to receive a first advertisement routing message sent by a first PE device for a first broadcast domain BD on a first ethernet segment ES, where the first PE device is adjacent to the first ES, the first advertisement routing message carries a first ethernet segment identifier ESI and first time indication information, and the second PE is a PE of the first BD.
The first execution module 520 is configured to execute, in response to the first advertisement routing message, a target process for the first ESI at a first point in time indicated by the first time indication information.
In one implementation, the first advertisement routing message also carries information of the first BD.
In one implementation, the target process includes a first process including: and configuring the address of the next hop pointing to the target of the first ESI in the first BD as the address of the first PE device, wherein the second PE device is not adjacent to the first ES.
In one implementation, the first advertisement routing message further carries Primary identification information, and before the first time point, the method further includes: receiving a first unicast data message sent by a first CE device, wherein the first CE device is adjacent to the second PE device, and the first unicast data message carries a first host address, and the first host address is a host address in the first ES; and prohibiting the first unicast data message from being sent to the first PE equipment.
In one implementation, the target process includes a second process including: setting a first access circuit AC to a first state, where the first AC is an interface on the second PE device corresponding to the first ESI and the first BD, the second PE device is adjacent to the first ES, the first state includes a state in which sending of a second packet to the first AC is prohibited, the second AC is an interface on the first PE device corresponding to the first ESI and the first BD, and the second packet includes at least one of a broadcast, an unknown unicast, and a multicast data packet in the first BD.
In one implementation, the first time indication information is determined by the first PE device and the second PE device calibration.
The route switching device provided in the embodiment of the present application can implement each process implemented by the embodiment of the route switching method described in fig. 2, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
Fig. 6 is a schematic structural diagram of a routing switching device according to an embodiment of the present application. As shown in fig. 6, the route switching device 600 includes: a transmitting module 610.
A sending module 610, configured to send, for a first BD on a first ES, a first advertisement routing message to a second PE device, where the first PE device is adjacent to the first ES, the first advertisement routing message carries a first ESI and first time indication information, the second PE is a PE of the first BD, and the first advertisement routing message is used to instruct the second PE device to execute, at a first time point indicated by the first time indication information, target processing for the first ESI in the first BD.
In one implementation, the first advertisement routing message also carries information of the first BD.
In one implementation, the sending module 610 sends the first advertisement routing message in response to a second AC changing from an off state to an on state, where the second AC is an interface on the first PE device corresponding to the first ESI and the first BD.
In one implementation, the apparatus 600 further includes a calibration module configured to perform time calibration with the second PE device to determine the first time indication information before the first advertisement routing message is sent to the second PE device for the first BD on the first ES.
In one implementation, the apparatus 600 further includes a second execution module. The second execution module may be configured to determine a first point in time. The second execution module is further configured to change, after the first notification routing message is sent to the second PE device for the first BD on the first ES, after a second time point or after the second time point, a second AC from a first state to a second state, where the second time point is not earlier than the first time point indicated by the first time indication information, and the second AC is an interface on the first PE corresponding to the first ESI and the first BD, where the first state includes a state in which sending of a second packet to the second AC is prohibited, and the second state includes a state in which sending of the second packet to the second AC is supported, and the second packet includes at least one of broadcast, unknown unicast, and multicast data in the first BD.
In one implementation, the second execution module is further configured to perform DF elections with a second PE device for the first ESI in the context of the first BD before the changing the second AC from the first state to the second state; and sending the first notification route message according to the DF election result, wherein the first notification route message also carries Primary identification information and enables the second AC to be kept in the first state, and the second PE equipment is adjacent to the first ES.
In one implementation, the second execution module performs the DF election in response to the second AC changing from a closed state to an open state.
In one implementation, after the first advertisement routing message is sent to the second PE device for the first BD on the first ES, the second execution module prohibits sending the unicast data message to the second AC until the second point in time.
In one implementation manner, the apparatus 600 further includes a second receiving module, configured to receive, before the first packet is a first BD on a first ES and a first advertisement routing message is sent to a second PE device, a third packet sent by a third PE device, where the third PE is a PE of the first BD and the third PE is not the same node as the first PE, and the third packet includes at least one of a broadcast, an unknown unicast, and a multicast data packet in the first BD; and prohibiting the third message from being sent to the first ES.
In one implementation manner, the second AC is a sub-interface of a second interface, the state of the second interface before and after the first advertisement routing message is sent is the same, the first PE does not carry the first time indication information in an ethernet segment routing ESR sent for the first ESI, and the ESR is sent for the second interface.
In one implementation, the sending module 610 is configured to send a second notification routing message, where the second notification routing message indicates a third point in time, and the third point in time is different from the first point in time; the second execution module is further configured to change a third AC from the first state to the second state at or after a fourth time point, where the fourth time point is not earlier than the third time point, and the third AC is a sub-interface of the second interface.
The route switching device provided in the embodiment of the present application can implement each process implemented by the embodiments of the route switching method described in fig. 3 to 4, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The route switching device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal device. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The route switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
Optionally, as shown in fig. 7, the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is implemented when executed by the processor 701: a method of route switching as described in at least one of the embodiments of figures 2-4. It should be noted that, the electronic device in the embodiment of the present application includes: a server, a terminal device, or other devices in addition to a terminal device.
The above electronic device structure does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be different in arrangement of components, for example, an input unit, may include a graphics processor (Graphics Processing Unit, GPU) and a microphone, and a display unit may configure a display panel in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit includes at least one of a touch panel and other input devices. Touch panels are also known as touch screens. Other input devices may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory may be used to store software programs as well as various data. The memory may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory may include volatile memory or nonvolatile memory, or the memory may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM).
The processor may include one or more processing units; optionally, the processor integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the route switching method described in at least one embodiment of fig. 2 to 4 is implemented, and the same technical effects can be achieved, so that repetition is avoided, and no further description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or an instruction, implementing each process of the above-mentioned route switching method embodiment, and can achieve the same technical effect, so as to avoid repetition, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (18)

1. A method for switching routes, applied to a second operator border PE device, the method comprising:
receiving a first notification routing message sent by a first PE device for a first broadcast domain BD on a first Ethernet segment ES, wherein the first PE device is adjacent to the first ES, the first notification routing message carries a first Ethernet Segment Identification (ESI) and first time indication information, the second PE is the PE of the first BD, and the first ESI is an identifier of the first ES;
in response to the first advertisement routing message, performing target processing for a first ESI at a first point in time indicated by the first time indication information.
2. The method of claim 1, wherein the first advertisement routing message further carries information of the first BD.
3. The method of claim 1, wherein the target process comprises a first process comprising:
and configuring the address of the next hop pointing to the target of the first ESI in the first BD as the address of the first PE device, wherein the second PE device is not adjacent to the first ES.
4. The method of claim 1, wherein the first advertisement routing message further carries Primary identification information, the method further comprising, prior to the first point in time:
Receiving a first unicast data message sent by a first CE device, wherein the first CE device is adjacent to the second PE device, and the first unicast data message carries a first host address, and the first host address is a host address in the first ES;
and prohibiting the first unicast data message from being sent to the first PE equipment.
5. The method of claim 1, wherein the target process comprises a second process comprising:
setting a first access circuit AC to a first state, where the first AC is an interface on the second PE device corresponding to the first ESI and the first BD, the second PE device is adjacent to the first ES, the first state includes a state in which sending of a second packet to the first AC is prohibited, the second AC is an interface on the first PE device corresponding to the first ESI and the first BD, and the second packet includes at least one of a broadcast, an unknown unicast, and a multicast data packet in the first BD.
6. The method of claim 1, wherein the first time indication information is determined by the first PE device and the second PE device calibration.
7. A method for switching routes, applied to a first PE device, the method comprising:
and sending a first notification routing message to a second PE device for a first BD on a first ES, wherein the first PE device is adjacent to the first ES, the first notification routing message carries a first ESI and first time indication information, the second PE is the PE of the first BD, the first ESI is an identifier of the first ES, and the first notification routing message is used for indicating the second PE device to execute target processing for the first ESI in the first BD at a first time point indicated by the first time indication information.
8. The method of claim 7, wherein the first advertisement routing message further carries information of the first BD.
9. The method of claim 7, wherein the sending the first advertisement routing message comprises:
and sending the first notification routing message in response to a second AC changing from a closed state to an open state, wherein the second AC is an interface corresponding to the first ESI and the first BD on the first PE device.
10. The method of claim 7, wherein prior to said sending the first advertisement routing message to the second PE device for the first BD on the first ES, the method further comprises:
And performing time calibration with a second PE device to determine the first time indication information.
11. The method of claim 7, wherein after said sending the first advertisement routing message to the second PE device for the first BD on the first ES, the method further comprises:
and after a second time point or the second time point, changing a second AC from a first state to a second state, wherein the second time point is not earlier than the first time point indicated by the first time indication information, the second AC is an interface corresponding to the first ESI and the first BD on the first PE, the first state comprises a state of prohibiting sending a second message to the second AC, the second state comprises a state of supporting sending the second message to the second AC, and the second message comprises at least one of broadcast, unknown unicast and multicast data messages in the first BD.
12. The method of claim 11, wherein prior to said changing the second AC from the first state to the second state, the method further comprises:
performing DF election with a second PE device for the first ESI in the context of the first BD;
And sending the first notification route message according to the DF election result, wherein the first notification route message also carries Primary identification information and enables the second AC to be kept in the first state, and the second PE equipment is adjacent to the first ES.
13. The method of claim 12, wherein said performing DF elections comprises:
the DF election is performed in response to the second AC changing from the off state to the on state.
14. The method of claim 11, wherein after said sending the first advertisement routing message to the second PE device for the first BD on the first ES, the method further comprises:
and prohibiting sending unicast data messages to the second AC before the second time point.
15. The method according to any of claims 9-14, wherein the second AC is a sub-interface of a second interface, the second interface being in the same state before and after the sending of the first advertisement routing message, the first PE not carrying the first time indication information in an ethernet segment routing ESR sent for the first ESI, the ESR being sent for the second interface.
16. The method according to any one of claims 15, further comprising:
transmitting a second notification routing message, the second notification routing message indicating a third point in time, the third point in time being different from the first point in time;
and after a fourth time point or the fourth time point, changing a third AC from the first state to the second state, wherein the fourth time point is not earlier than the third time point, and the third AC is a sub-interface of the second interface.
17. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the route switching method of any of claims 1-6 or 7-16.
18. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the route switching method according to any of claims 1-6 or 7-16.
CN202211175432.7A 2022-09-26 2022-09-26 Route switching method, electronic equipment and storage medium Pending CN117811986A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211175432.7A CN117811986A (en) 2022-09-26 2022-09-26 Route switching method, electronic equipment and storage medium
PCT/CN2023/090130 WO2024066313A1 (en) 2022-09-26 2023-04-23 Route switching method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211175432.7A CN117811986A (en) 2022-09-26 2022-09-26 Route switching method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117811986A true CN117811986A (en) 2024-04-02

Family

ID=90423981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211175432.7A Pending CN117811986A (en) 2022-09-26 2022-09-26 Route switching method, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN117811986A (en)
WO (1) WO2024066313A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10164876B2 (en) * 2016-12-09 2018-12-25 Cisco Technology, Inc. Efficient multicast traffic forwarding in EVPN-based multi-homed networks
US10142239B2 (en) * 2017-02-27 2018-11-27 Juniper Networks, Inc. Synchronizing multicast state between multi-homed routers in an Ethernet virtual private network
CN110391951B (en) * 2018-04-17 2022-11-08 中兴通讯股份有限公司 Ethernet segment identifier adjacency detection processing method and device and storage medium
CN111277482B (en) * 2020-01-13 2022-01-18 新华三大数据技术有限公司 Message processing method and device

Also Published As

Publication number Publication date
WO2024066313A1 (en) 2024-04-04

Similar Documents

Publication Publication Date Title
EP3588872B1 (en) Evpn packet processing method, device, system, and computer program product
EP3923527A1 (en) Evpn packet processing method, device, and system
US20230344754A1 (en) Message indication method and apparatus, and device and storage medium
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
US9912586B2 (en) Method, system, and device for establishing pseudo wire
CN108964940B (en) Message sending method and device and storage medium
US20240121178A1 (en) Failure protection Method and Apparatus, Storage Medium, and Electronic Device
US9813332B2 (en) Method, device and system for establishing label switched path
EP3641240B1 (en) Node protection for bum traffic for multi-homed node failure
CN112422307A (en) Method, equipment and system for coexistence of EVPN and VPLS
US20120099598A1 (en) Method, device and system for establishing a pseudo wire
CN102611566B (en) Method and device for recovering customer service
US20240214243A1 (en) Designated forwarder df election method and device
US20220294728A1 (en) Packet Transmission Path Switching Method, Device, and System
US11863394B2 (en) Connectivity detection session creation method, network device, and system
CN104717143A (en) Method and equipment for many-one reducibility scene multicast data transmission
CN109150711A (en) The pretection switch method, apparatus and storage medium of point-to-multipoint Layer 2 Multicast business
CN117811986A (en) Route switching method, electronic equipment and storage medium
CN114531396B (en) Fault back switching method and device in Ethernet virtual private network
EP3258654B1 (en) Method and system for reducing pim protocol dr change
CN109981452B (en) Method and device for switching back PW link
CN108924028B (en) Method and device for switching unknown unicast message between tunnels
CN113132220A (en) Method and device for processing routing information
CN111565141B (en) Data transmission method, first PE and second PE
CN103414646B (en) A kind of multicast service negotiation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication