WO2023179171A1 - 路由发布方法、装置、存储介质及电子装置 - Google Patents

路由发布方法、装置、存储介质及电子装置 Download PDF

Info

Publication number
WO2023179171A1
WO2023179171A1 PCT/CN2022/144414 CN2022144414W WO2023179171A1 WO 2023179171 A1 WO2023179171 A1 WO 2023179171A1 CN 2022144414 W CN2022144414 W CN 2022144414W WO 2023179171 A1 WO2023179171 A1 WO 2023179171A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
sub
esi
router
route
Prior art date
Application number
PCT/CN2022/144414
Other languages
English (en)
French (fr)
Inventor
舒晔
王玉保
朱海东
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023179171A1 publication Critical patent/WO2023179171A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • 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
    • H04L45/745Address table lookup; Address filtering

Definitions

  • the present disclosure relates to the field of communications, and specifically, to a route publishing method, device, storage medium and electronic device.
  • EVPN Errnet Virtual Private Network
  • MAC Media Access Control, media intervention control layer
  • ARP Address Resolution Protocol, Address Resolution Protocol
  • EVPN MAC is delivered via RT2MAC routing.
  • the dual-homing of CE (Customer Edge, user network edge equipment) in the network is solved through the EVPN ESI solution.
  • the second-layer dual-homing ESI (Ethernet segment identifier) can carry ESI information through RT2MAC routing, and the remote PE forms an ESI protected network based on this routing. Forward and form local protection on dual-homed PEs.
  • ESI forwarding uses DF elections to generate DF and NON-DF.
  • the anti-loop mechanisms of non-DF and DF can well avoid broadcast loops on the user side. If there are multiple ES segments on the user side belonging to different CEs, they can be broadcast between CEs.
  • Such loop risks can currently be solved through the EVPN Etree solution, and the split horizon solution can also be used to avoid conflicts between multiple ES segments. Packet loops caused by broadcast mutual transfer.
  • the EVPN routing ETI field is used to identify the VLANID (Virtual Local Area Network Identity document, virtual LAN unique code) of the Layer 2 AC port of EVPN VPLS. In unqualify mode, this field is 0. In qualifying mode, this field is filled with the AC port VLANID.
  • VLANID Virtual Local Area Network Identity document, virtual LAN unique code
  • BUM Broadcast Unknown-Unicast&Multicast
  • PE1 and PE2 deploy EPVN VPLS instances, and PE2 configures the physical ports to which AC11, AC12, and AC13 belong to be bound to ESI1, ESI2, and ESI3 respectively.
  • PE1 is configured with AC21, AC22, and AC23 belonging to ESI1, ESI2, and ESI3 respectively.
  • a VXLAN tunnel is formed between PE2 and PE1.
  • PE2 and PE1 elect PE2 as DF and PE1 as non-DF based on route priority; among them, OLT1 belongs to ES3 and OLT2 belongs to ES4. Deploy the Etree leaf attribute on AC13, AC14, AC23, and AC24, and use the leaf label to realize that the broadcast between ESI3 and ESI4 is not forwarded.
  • AC11 and AC12 deploy horizontal split to ensure that broadcast messages on the BRAS (Broadband Remote Access Seryer) side are transferred between multiple local ESs. Broadcast interoperability is required between OLT (optical line terminal) and BRAS. Broadcast interoperability is not required between OLTs and between BRAS. The broadcast loop between OLTs is solved with the EVPN Etree leaf attribute. Since OLT and BRAS need to communicate, the BRAS side cannot be configured with the leaf attribute.
  • Split horizon can be configured on the BRAS side to solve this problem. Split horizon is only a local attribute and only takes effect for local forwarding.
  • the request packet forwarding process from OLT to BRAS is as follows:
  • PE1 receives the OLT broadcast packet from AC23 and forwards it to AC21, AC22, and to PE2 through the VXLAN tunnel and carries the anti-loop label.
  • AC23 and AC24 both have leaf attributes and cannot interoperate with broadcast traffic.
  • PE2 determines that the original AC that received the traffic based on the leaf label has leaf attributes and cannot interoperate with local leaf AC (AC13, AC14) broadcast packets.
  • AC11 and AC12 default to ROOT. Attribute, broadcast packets are forwarded to prevent broadcast loops between OLTs and ensure interoperability between OLTs and BRAS.
  • PE1 receives the BRAS broadcast message from AC21 and broadcasts it to AC22, AC23, AC24, and PE2 at the same time.
  • AC22 and AC21 are the same split horizon attribute A, and broadcasts are not forwarded.
  • A23 and A24 are forwarded normally.
  • PE2 receives the broadcast message and forwards it to AC11, AC12, AC13, and AC14. Based on the broadcast ESI label, it is determined that it belongs to the same ESI1 as AC11, and the broadcast packets of AC11 are not forwarded.
  • AC12, AC13, and AC14 can be forwarded.
  • BRAS-C packets are forwarded to the OLT through BRAS-up1.
  • BRAS-up1's broadcast traffic to PE1 will be forwarded from AC22 to BRAS-up2, and will also be forwarded from PE1 to PE2 to BRAS-up2.
  • BRAS-up2 then sends the packet to BRAS-C, causing a traffic loop.
  • Embodiments of the present disclosure provide a route publishing method, device, storage medium, and electronic device to at least solve the problem of how to publish routes across nodes between different ES segments.
  • a route publishing method including: publishing the EVPN RT-1 per ES route R1a generated based on the first Ethernet segment identifier ESI1 to the first router PE1 through the second router PE2, where , the first Ethernet segment identifier ESI1 includes at least one of the following: the first purpose ESI determined according to the first sub-interface, the second sub-interface and the first condition on the second router PE2, the first router PE1 determines the first purpose ESI based on the third sub-interface, the fourth sub-interface and the first condition; receives the first Ethernet segment based on the first Ethernet segment issued by the first router PE1 through the second router PE2 Identify the EVPN RT-1 per ES route R1b generated by ESI1; wherein the first sub-interface and the second sub-interface do not belong to the same parent interface, and the third sub-interface and the fourth sub-interface For sub-interfaces that do not belong to the same parent interface,
  • unknown unicast or multicast BUM messages are filtered when the forwarded outlet is the third sub-interface or the fourth sub-interface, and the first purpose ESI is the ESI used for first filtering, so
  • the first filtering is to filter the BUM packet forwarding between the first sub-interface facing the third sub-interface or the fourth sub-interface, or to filter the forwarding of BUM messages between the second sub-interface facing the third sub-interface. Filtering of BUM messages between interfaces or fourth sub-interfaces; and the first filtering is performed based on the ESI label of the first purpose ESI.
  • a route publishing device including: a first publishing module configured to use the first router PE1 to transmit the EVPN RT-1 per ES generated based on the first Ethernet segment identifier ESI1 Route R1b is published to the second router PE2, where the first Ethernet segment identifier ESI1 includes at least one of the following: determined based on the third sub-interface, the fourth sub-interface and the first condition on the first router PE1
  • the first purpose ESI is determined by the second router PE2 according to the first sub-interface, the second sub-interface and the first condition
  • the second publishing module is configured to pass the first router PE1 Receive the EVPN RT-1 per ES route R1a issued by the second router PE2 based on the first Ethernet segment identifier ESI1; wherein the first sub-interface and the second sub-interface do not belong to the same parent interface , the third sub-interface and the fourth sub-interface do not belong to the same parent interface, the
  • a computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the above route publishing method when running. .
  • an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the routing through the computer program. Release method.
  • the EVPN RT-1 per ES route R1a generated based on the first Ethernet segment identifier ESI1 is published to the first router PE1 through the second router PE2, wherein the first Ethernet segment identifier ESI1 includes at least one of the following 1: The first purpose ESI determined based on the first sub-interface, the second sub-interface and the first condition on the second router PE2, the first router PE1 determines based on the third sub-interface, the fourth sub-interface and the first condition The first purpose ESI determined by the first condition; receiving the EVPN RT-1 per ES route R1b issued by the first router PE1 based on the first Ethernet segment identifier ESI1 through the second router PE2; wherein , the first sub-interface and the second sub-interface do not belong to the sub-interfaces of the same parent interface, the third sub-interface and the fourth sub-interface do not belong to the sub-interfaces of the same parent interface, the EVPN RT- 1
  • the first purpose ESI is the ESI used for the first filtering
  • the first filtering is for all the first sub-interfaces facing Filtering of BUM messages forwarded between the third sub-interface or the fourth sub-interface, or filtering of BUM messages between the second sub-interface facing the third sub-interface or the fourth sub-interface Filtering; and the first filtering is performed based on the ESI tag of the first purpose ESI, which solves the problem of how to publish routes across nodes between different ES segments.
  • Figure 1 is a schematic diagram (1) of the working principle of BUM broadcast loop prevention in related technologies
  • Figure 2 is a schematic diagram (2) of the working principle of BUM broadcast loop prevention in related technologies
  • Figure 3 is a hardware structure block diagram of a computer terminal of a route publishing method according to an embodiment of the present disclosure
  • Figure 4 is a flow chart of a route publishing method according to an embodiment of the present disclosure
  • Figure 5 is a schematic diagram of the working principle of a route publishing method according to an embodiment of the present disclosure
  • Figure 6 is a structural block diagram of a route publishing device according to an embodiment of the present disclosure.
  • FIG. 3 is a hardware structure block diagram of a computer terminal of the route publishing method according to an embodiment of the present disclosure.
  • the computer terminal may include one or more (only one is shown in Figure 3) processors 302 (the processor 302 may include but is not limited to a microprocessor unit (MPU for short) or programmable logic. Device (Programmable logic device, referred to as PLD)) and a memory 304 configured to store data.
  • the above-mentioned computer terminal may also include a transmission device 306 configured as a communication function and an input and output device 308.
  • FIG. 3 is only illustrative, and it does not limit the structure of the above-mentioned computer terminal.
  • the computer terminal may also include more or fewer components than shown in FIG. 3 , or have a different configuration with equivalent functions or more functions than shown in FIG. 3 .
  • the memory 304 may be configured to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the route publishing method in the embodiment of the present disclosure.
  • the processor 302 executes the computer program by running the computer program stored in the memory 304.
  • Various functional applications and data processing implement the above methods.
  • Memory 304 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 304 may further include memory located remotely relative to the processor 302, and these remote memories may be connected to the computer terminal through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • the transmission device 306 is arranged to receive or send data via a network.
  • Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal.
  • the transmission device 306 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 306 may be a radio frequency (Radio Frequency, RF for short) module, which is configured to communicate with the Internet wirelessly.
  • FIG 4 is a flow chart (1) of a route publishing method according to an embodiment of the present disclosure. As shown in Figure 4, the steps of the route publishing method include:
  • Step S402 publish the EVPN RT-1 per ES route R1a generated based on the first Ethernet segment identifier ESI1 to the first router PE1 through the second router PE2, where the first Ethernet segment identifier ESI1 includes at least one of the following : The first purpose ESI determined based on the first sub-interface, the second sub-interface and the first condition on the second router PE2, the first router PE1 based on the third sub-interface, the fourth sub-interface and the first A condition is determined for the first use of ESI.
  • Step S404 receive the EVPN RT-1 per ES route R1b generated based on the first Ethernet segment identifier ESI1 issued by the first router PE1 through the second router PE2; wherein the first sub-interface and the The second sub-interface does not belong to the sub-interface of the same parent interface, the third sub-interface and the fourth sub-interface do not belong to the sub-interface of the same parent interface, the ESI carried in the EVPN RT-1 per ES route R1b
  • the label is used to instruct the first router PE1 to forward broadcast, unknown unicast or multicast BUM messages from the first sub-interface or the second sub-interface, when the forwarded outlet is the third sub-interface.
  • the first purpose ESI is the ESI used for first filtering
  • the first filtering is for the first sub-interface facing the third sub-interface or the fourth sub-interface. Filtering of BUM messages forwarded between interfaces, or filtering of BUM messages between the second sub-interface facing the third sub-interface or the fourth sub-interface; and the first filtering is based on The first use of ESI is performed using ESI tags.
  • the second router PE2 publishes the EVPN RT-1 per ES route R1a generated based on the first Ethernet segment identifier ESI1 to the first router PE1, where the first Ethernet segment identifier ESI1 includes at least one of the following 1: The first purpose ESI determined based on the first sub-interface, the second sub-interface and the first condition on the second router PE2, the first router PE1 determines based on the third sub-interface, the fourth sub-interface and the first condition The first purpose ESI determined by the first condition; receiving the EVPN RT-1 per ES route R1b issued by the first router PE1 based on the first Ethernet segment identifier ESI1 through the second router PE2; wherein , the first sub-interface and the second sub-interface do not belong to the sub-interfaces of the same parent interface, the third sub-interface and the fourth sub-interface do not belong to the sub-interfaces of the same parent interface, the EVPN RT- 1
  • the first purpose ESI is the ESI used for the first filtering
  • the first filtering is for all the first sub-interfaces facing Filtering of BUM messages forwarded between the third sub-interface or the fourth sub-interface, or filtering of BUM messages between the second sub-interface facing the third sub-interface or the fourth sub-interface Filtering; and the first filtering is performed based on the ESI tag of the first purpose ESI, which solves the problem of how to publish routes across nodes between different ES segments.
  • the parent interfaces of the two sub-interfaces of the second router PE2 or the first router PE1 are respectively bound to different second purpose ESIs, and the first condition is: in the When two sub-interfaces are bound to the same virtual Ethernet segment identifier vESI, the vESI is determined to be the first purpose ESI corresponding to the two sub-interfaces; wherein the second purpose ESI is to all ESI used for unicast forwarding on either of the two sub-interfaces.
  • the first condition is: when the parent interfaces of the two sub-interfaces of the second router PE2 or the first router PE1 are bound to the same second purpose ESI, the same first The two-purpose ESI is determined as the first-purpose ESI corresponding to the two sub-interfaces.
  • a technical solution is also proposed.
  • the specific steps include: receiving a message from the third access interface through the first router PE1, and if the MAC check fails, send the message to the third access interface.
  • the second router PE2 broadcasts and encapsulates the ESI label and EVI label of the first-purpose ESI; the second router PE2 finds the EVPN VPLS instance according to the EVI label, and the ESI found according to the ESI label matches the EVPN
  • the first access interface and the second access interface in the VPLS instance have the same first purpose ESI; the second router PE2 broadcasts the traffic to the first access interface and the second access interface.
  • the first router PE1 receives the traffic of the third access interface, determines the forwarding outlet that learns the source address to generate the corresponding first source address MAC1 as the third access interface; and generates RT2 Route R2-1 is sent to the second router PE2; the RT2 route R2-1 carries the ESID of the ESI bound to the third access interface and the first ETI field of the third access interface; Among them, the second router PE2 receives the RT2 route R2-1, and finds the local first access interface according to the ESID and ETI in the RT2 route R2-1 message received by the second router PE2, which will generate The forwarding exit of the first MAC source address is determined as the ESI and ETI to which the first access interface belongs; wherein the first access interface corresponds to the first sub-interface, and the second access interface corresponds to The second sub-interface, the third access interface correspond to the third sub-interface, and the fourth access interface corresponds to the fourth sub-interface.
  • the first sub-interface and the third sub-interface satisfy the second condition
  • the second sub-interface and the fourth sub-interface satisfy the second condition
  • the filtering It is filtered through the ESI tags of the EVPN RT-1 per ES routes R1a and R1b
  • the second condition is: the two sub-interfaces are located on different PE nodes and the VLANs of the two sub-interfaces are the same, and the If two sub-interfaces can reach each other without passing through any PE nodes, it is determined that the two sub-interfaces satisfy the second condition.
  • the first pair of sub-interfaces is the first sub-interface and the third sub-interface, or the first pair of sub-interfaces is the second sub-interface and the fourth sub-interface.
  • the PE2 when the PE2 performs the second process, the PE2 is instructed to perform the first process through the R1a route; the second process is: the PE2 forwards the message from the For broadcast, unknown unicast or multicast BUM messages from the third sub-interface or the fourth sub-interface, filtering is performed when the forwarded outlet is the first sub-interface or the second sub-interface.
  • a technical solution is also proposed, optionally: binding the first sub-interface to the parent interface of the first sub-interface and the parent interface of the second sub-interface on the second router PE2 respectively.
  • An Ethernet segment identifier ESI1; the first Ethernet segment identifier ESI1 is bound to the parent interface of the third sub-interface and the parent interface of the fourth sub-interface on the first router PE1 respectively.
  • a technical solution is also proposed. Specific steps include: specifying a first interface identifier and a second interface for the parent interface of the first sub-interface and the parent interface of the second sub-interface respectively.
  • the second router PE2 publishes the EVPN RT-1 per EVI routes R11 and R12 generated based on the first Ethernet segment identifier ESI1 and the first interface identifier and the second interface identifier to the third A router PE1; and binding the ESI to the parent interface of the third sub-interface and the parent interface of the fourth sub-interface on the first router PE1, respectively, and binding the ESI to the parent interface of the third sub-interface and the parent interface of the fourth sub-interface respectively.
  • the parent interface of the fourth sub-interface specifies the first interface identifier and the second interface identifier, and the EVPN RT-1 per EVI route R21 generated based on the ESI and the interface identifier is routed through the first router PE1 , R22 publishes it to the second router PE2.
  • the interface identifier is carried in the Ethernet Tag ID field of the EVPN RT-1 per EVI route; the EVPN RT-1 per EVI route R11, R21 carries the ESID I1, the first ETI field , ESI label and EVI label, the EVPN RT-1 per EVI route R12, R22 carries the ESID I1, the second ETI field, the ESI label and the EVI label; the EVPN RT-1 per EVI route is set together with the RT4 route DF election for the first router PE1 and the second router PE2.
  • the method further includes: respectively providing the The first physical port and the second physical port of the second router PE2 create the first sub-interface and the second sub-interface, and use the first sub-interface and the second sub-interface as the EVPN VPLS instance The first access interface and the second access interface; and, create the third sub-interface and the fourth sub-interface respectively for the third physical port and the fourth physical port of the first router PE1, and The three sub-interfaces and the fourth sub-interface serve as the third access interface and the fourth access interface of the EVPN VPLS instance; wherein, the virtual interfaces of the first access interface and the third access interface The dedicated local area network address VLAN ID is the same, and the VLAN ID of the second access interface and the fourth access interface are the same.
  • the first access interface and the second access interface are configured with the same split horizon attribute; the third access interface and the fourth access interface are configured with the same split horizon attribute.
  • the second router PE2 can also generate an RT4 route R4-1 based on the ESI, wherein the RT4 route R4-1 carries the DF election rules and priorities of the second router PE2. class.
  • the first router PE1 may also generate an RT4 route R4-2 based on the ESI; the RT4 route R4-2 carries the DF election rule and priority of the first router PE1.
  • a technical solution is also proposed.
  • the specific steps include: generating the EVI label carried by the EVPN RT-1 per EVI route based on the EVPN VPLS instance, and generating the ESI label based on the ESI instance; Among them, the EVI label is used to locally query the VPLS forwarding label of the EVPN RT-1 per EVI route, and the ESI label is used by the egress PE to determine the ESI to which the ingress AC belongs, and the EVPN VPLS instance corresponding to the EVI label.
  • the ingress AC is the path through which the BUM message is received by the ingress PE
  • the ingress PE is the PE that receives the BUM packet from the access interface
  • the egress PE is the PE that forwards the BUM packet from the access interface.
  • a technical solution is also proposed, which can receive the R11 of the second router PE2 and the RT4 route R4-1 through the first router PE1, according to the ESID I1 of the R11 To find that the Layer 2 interfaces bound under the ESI are the third access interface and the fourth access interface, determine the first ETI field of the R11 and the local third access interface.
  • ESI protection is constructed; according to the comparison result between the DF priority of the RT4 route R4-1 and the local priority, it is decided that the DF priority of the first router PE1 is non-DF, where, The RT4 route R4-1 carries the DF election rule and priority of the second router PE2, and the R4-1 is the RT4 route sent by PE2 received by PE1.
  • a technical solution is proposed in the case where the first router PE1 receives the R12 of the second router PE2 and the RT4 route R4-1.
  • the ESID I1 It is determined that the Layer 2 interfaces bound under the ESI are the third access interface and the fourth access interface, and it is determined that the second ETI field of the R12 is the same as the ETI field of the local fourth access interface.
  • -1 carries the DF election rule and priority of the second router PE2, and the R4-1 is the RT4 route sent by PE2 received by PE1.
  • a technical solution is also proposed.
  • the specific steps include: the destination MAC of forwarding message B1 is MAC1. From the fifth access interface to the first router PE1, the forwarding exit of MAC1 will be searched. Determine it as the third access interface; forward the forwarding message B1 directly from the third access interface to BRAS-UP1; wherein, when a link failure occurs on the third access interface, switch to the backup The ESI is forwarded and the EVI label is encapsulated; the second router PE2 searches the physical address MAC forwarding table corresponding to the MAC1 address in the EVPN VPLS instance according to the EVI label, and determines that the corresponding exit is the first access interface.
  • a technical solution is also proposed, optionally: on the first router PE1, the third access interface and the fourth access interface do not have split horizon attributes; When it is determined that the ESI bound to the third access interface and the fourth access interface is the same, it is determined not to forward the traffic.
  • the routes R11 and R12 carry the ESID I1 and the first ETI field.
  • the method further includes: binding the first Ethernet segment identifier ESI1 to the first sub-interface and the second sub-interface on the second router PE2 respectively, and binding the first Ethernet segment identifier ESI1 to the second sub-interface of the second router PE2.
  • the parent interface of the first sub-interface and the parent interface of the second sub-interface are bound to the first Ethernet segment identifier ESI1; they are respectively bound to the third sub-interface and the fourth sub-interface on the first router PE1.
  • the first Ethernet segment identifier ESI1 is bound to the parent interface of the third sub-interface and the parent interface of the fourth sub-interface respectively.
  • the method further includes: respectively providing the The first physical port and the second physical port of the second router PE2 create the first sub-interface and the second sub-interface, and use the first sub-interface and the second sub-interface as the EVPN VPLS instance The first access interface and the second access interface; and, create the third sub-interface and the fourth sub-interface respectively for the third physical port and the fourth physical port of the first router PE1, and The three sub-interfaces and the fourth sub-interface serve as the third access interface and the fourth access interface of the EVPN VPLS instance; wherein, the virtual interfaces of the first access interface and the third access interface The dedicated local area network address VLAN ID is the same, and the VLAN ID of the second access interface and the fourth access interface are the same.
  • the method further includes: generating an RT4 route R4-1 based on the ESI through the second router PE2, wherein the RT4 route R4-1 carries the DF of the second router PE2 Election rules and priorities.
  • the method further includes: generating an RT4 route R4-2 based on the ESI through the first router PE1; the RT4 route R4-2 carries the DF election rule of the first router PE1 and priority.
  • the route publishing method is explained with reference to Figure 5.
  • the same ESI is configured for multiple interfaces so that the multiple interfaces belong to the same ES instance; the ETI field of the EVPN route itself is used to map each ES bound in the ESI.
  • the ETI field consists of the ES interface identifier ES-INT and the VLAN id of the AC port, thereby ensuring ESI protection between independent ESs; while achieving protection and forwarding of a single ES, it also ensures BUM loop prevention between the same ESIs.
  • the ETI field of the EVPN route has a total of 4 bytes.
  • the first byte is used to represent the physical port bound to the ES, and the next three bytes are used to represent the AC port VLAN id (AC-VLAN) bound to the Layer 2 instance. );
  • the ETI identifier is (ES-INT: AC-VLAN); among them, when the AC is a physical port, the AC-VLAN is 0 and the ETI is (ES-INT: 0).
  • the physical ports (INT11, INT12, INT13, INT14) of the four AC ports (AC11, AC12, AC21, AC22) of PE2 and PE1 are bound to the same ESI.
  • the ESID of ESI1 is 10 bytes (00.11.22.33.44.55. 66.77.88.99), and specify the ES-INT of INT11 and INT21 to be 1, and the ES-INT of INT12 and INT22 to be 2.
  • PE2 generates RT1 route R11 for Layer 2 interface AC11.
  • R11 carries the ESID of ESI1 and the ETI corresponding to AC11 (ES-INT: AC-VLAN);
  • PE1 receives R11 and compares the ESID I1 of R11 with the ETI of local ESI1. They are the same. Then the corresponding ETI of the ESI protection forwarding table is (ES-INT: AC-VLAN);
  • PE2 and PE1 generate RT4 routes based on ES for DF election.
  • PE2 is DF and PE1 is non-DF;
  • PE2 generates RT1 route R11 based on ESI1 and AC11 and AC12 of the VPLS (VirtualPrivateLanService, virtual private LAN service) instance.
  • VPLS VirtualPrivateLanService, virtual private LAN service
  • R12 PE1 generates RT1 routes R21 and R22 based on ESI1 and AC21 and AC22 of the VPLS instance.
  • PE2 receives R21 and R22 routes, finds AC11 based on the ESID and ETI of the R21 route, and forms AC11's ESI protection forwarding.
  • the primary is AC11
  • the backup next hop is PE1. It finds AC12 based on the ESID and ETI of the R22 route, and forms AC12's ESI.
  • the primary is AC12
  • the backup next hop is PE1.
  • PE1 receives R11 and R12 routes, finds AC21 based on the ESID and ETI of the R11 route, and forms AC21's ESI protection forwarding.
  • the primary is AC21
  • the backup next hop is PE2. It finds AC12 based on the ESID and ETI of the R12 route, and forms AC22's ESI.
  • the primary is AC22
  • the backup next hop is PE2.
  • PE1 For traffic from OLT to BRAS-C, PE1 receives Layer 2 packets from AC23.
  • the unicast forwarding process and the broadcast forwarding process are as follows:
  • PE1 checks the MAC and hits the outlet AC21.
  • AC21 corresponds to ESI1 protected forwarding, and the backup next hop is PE1; it is forwarded directly from AC21 to BRAS-up1; when the AC21 interface fails, the unicast packet is forwarded from ESI backup to PE1,
  • PE1 Check that the MAC outlet is AC11 and forward the packet from AC11 to BRAS-up1.
  • PE1 cannot find the MAC, and the broadcast is forwarded to AC21, AC22, and PE2; it is forwarded to PE2 with the forwarding ESI label or leaf label; PE2 is in the DF role and forwards the broadcast traffic to AC11, AC12, AC13, AC14; AC13 and AC14 It is a leaf attribute. According to the leaf label of the broadcast message, it is determined that the incoming and outgoing traffic is leaf broadcast traffic and discarded; AC11 and AC12 broadcast normally.
  • PE1 For traffic from BRAS to OLT, PE1 receives Layer 2 packets from AC21, checks the MAC for unicast forwarding, and broadcast forwarding is as follows:
  • PE1 cannot find the MAC address, and forwards the broadcast to AC22, AC23, AC24, and PE2; the message is forwarded to PE2 with the forwarding ESI label or leaf label; PE2 is in the DF role, and PE2 receives the message and cannot find the MAC address, so it forwards it to AC11 and AC12. , AC13, AC14; According to the ESI label in the packet, it is found that the interfaces bound to the local home ESI are INT1 and INT2, and the sub-interfaces belonging to INT1 and INT2 serve as layer 2 interfaces.
  • AC11 and AC12 discard the broadcast traffic carrying the ESI label; traffic It will no longer be forwarded to BRAS; AC13 and AC14 broadcast normally; AC22 and AC21 have the same split horizon attributes and are not forwarded; you can also not configure the split horizon attributes here, and judge that AC22 and AC21 belong to ESI1, so the broadcast is not forwarded.
  • the route publishing method of the present disclosure can be implemented by solving the BUM loop prevention between multiple ESIs through ETI mapping ES, where the source and destination MAC of Layer 2 interworking between the OLT and the BRAS is ( 0LT: 0000.AAAA.11111, BRAS: 0000.BBBB.2222), including:
  • Step S101: PE2 and PE1 configure EVPN VPLS instances.
  • the physical interfaces INT1 and INT2 of PE2 create sub-interfaces INT1.11 (VLANID is 100) and INT2.11 (VLANID is 200) respectively as AC11 and AC12 of the VPLS instance; the physical interfaces of PE1 For interfaces INT1 and INT2, create sub-interfaces INT1.21 (VLANID is 100) and INT2.22 (VLANID is 200) respectively as AC21 and AC22 of the VPLS instance.
  • AC11 and AC21 have the same VLANid
  • AC12 and AC22 have the same VLANid
  • the VLANids of AC11/AC21 and AC12/AC22 can be the same or different. In order to facilitate the distinction, this embodiment takes different VLANids as an example.
  • Step S102 Configure interface INT3 on PE2 as AC13 of the VPLS instance. Configure the INT3 interface on PE1 as AC23 of the VPLS instance. The physical interfaces to which AC13 and AC23 belong are bound to ESI3.
  • Step S103 Bind INT21 on PE1 to ESI1 (00.11.22.33.44.55.66.77.88.99) and specify the interface identifier ES-INT as 1. Bind INT22 on PE1 to ESI1 and specify the interface identifier ES-INT as 2. PE1 generates EVPN RT4 routes based on ESI1 and publishes them to PE2.
  • Step S104 Bind INT11 on PE2 to ESI1 (00.11.22.33.44.55.66.77.88.99) and specify the interface identifier ES-INT as 1. Bind INT12 on PE2 to ESI1 and specify the interface identifier ES-INT as 2. PE2 generates EVPN RT4 routes based on ESI1 and publishes them to PE1.
  • Step S105 AC11 and AC12 configure the same split horizon attribute B.
  • AC21 and AC22 are configured with the same split horizon attribute B.
  • Step S106 PE2 generates RT1 routes R11 and R12 based on ESI1 and AC11 and AC12 of the VPLS instance respectively. Generate RT4 route R4-1 based on ESI1.
  • the R11 route carries ESID I1 (00.11.22.33.44.55.66.77.88.99), ETI (1:100), and carries ESI and EVI labels.
  • the R12 route carries ESID I1 (00.11.22.33.44.55.66.77.88.99), ETI (2:200), and carries ESI and EVI labels.
  • R4-1 carries the DF election rules and priorities of PE2.
  • Step S107 PE1 generates RT1 routes R21 and R22 based on ESI1 and AC21 and AC22 of the VPLS instance. Generate RT4 route R4-2 based on ESI1.
  • the R21 route carries ESID I1 (00.11.22.33.44.55.66.77.88.99), ETI (1:100), and carries ESI and EVI labels.
  • the R22 route carries ESID I1 (00.11.22.33.44.55.66.77.88.99), ETI (2:200), and carries ESI and EVI labels.
  • R4-2 carries the DF election rules and priorities of PE1.
  • the EVI label of the RT1 route in step S106 and step S107 is generated based on the VPLS instance, and the ESI label is generated based on the ESI instance.
  • the local device queries the VPLS forwarding label based on the EVI label of the received packet, and determines the ESI instance and AC port it belongs to based on the ESI label.
  • Step S108 PE1 receives the RT1 routes R11 and R4-1 of PE2. Based on the ESID I1 of R11, it finds that the Layer 2 interfaces bound to the ESI are AC21 and AC22, and determines the ETI (1:100) and local value of the R11 route. The ETI (1:100) of AC21 is the same, forming ESI protection. The primary is AC21, the backup is ESI forwarding, and the next hop is PE2. Based on the comparison between the DF priority of route R4-1 and the local priority, PE1 is decided to be non-DF.
  • Step S109 PE1 receives the RT1 route R12 and route R4-2 from PE2, finds out based on the ESID I1 that the Layer 2 interfaces bound to the ESI are AC21 and AC22, and determines the ETI (2:200) of the R12 route and the local AC22 The ETI (2:200) is the same, forming ESI protection.
  • the master is AC22
  • the backup is ESI forwarding
  • the next hop is PE2.
  • PE2 is decided to be DF.
  • Step S110 BRAS sends a message (source: MAC1:0000.BBBB.2222, destination: MAC2:0000.AAAA.1111) from AC21 to PE1, which is non-DF.
  • PE1 fails to check the MAC address and uses broadcast forwarding to forward the traffic to AC22, AC23, AC24, and PE2.
  • the ESI label and EVI are carried when broadcast to PE2.
  • PE2 finds the VPLS instance based on the EVI label and forwards the broadcast to AC11, AC12, AC13, and AC14. And further based on the ESI label, it is found that the AC port corresponding to VPLS is AC11, and AC12 belongs to the same ESI1. Traffic broadcast on PE2 to AC11 and AC12 is discarded. AC13 and AC14 forward normally.
  • AC22 and AC21 belong to the same split horizon attribute B, and broadcast traffic is discarded.
  • AC23 and AC24 broadcast and forward normally.
  • PE1 receives traffic from AC21 and learns MAC1 to generate the corresponding MAC1 forwarding exit as AC21. And generate RT2 route R2-1 to pass to PE2.
  • Route R2-1 carries the ESID (00.11.22.33.44.55.66.77.88.99) of ESI1 bound to AC21 and the ETI (1:100) of AC21.
  • PE2 receives the R2-1 route, finds the local AC11 based on the ESID and ETI in the routing packet, and the forwarding exit that generates MAC1 is AC11.
  • Step S111 BRAS sends the unicast packet to PE1 and checks the MAC for forwarding.
  • Step S112 The OLT sends the packet (source is MAC2: 0000.AAAA.1111, destination is MAC1: 0000.BBBB.2222) from AC23 to PE1, and the forwarding exit of MAC1 is AC21.
  • the packet is forwarded directly from AC21 to BRAS-UP1.
  • PE2 searches the VPLS instance for the MAC forwarding table corresponding to MAC1 based on the EVI label.
  • the corresponding egress is AC11. Forwarded from AC11 to BRAS-UP1.
  • a route publishing method is provided with reference to steps S101 to step S112 in the above embodiment.
  • steps S101 to step S104 in the above embodiment.
  • Steps S201 to S204 will not be described again here.
  • step S105 to step S106 in the above embodiment as step S205 to step S206, and refer to step S111 to step S112 in the above embodiment as step S211 in this embodiment. Go to step S212.
  • step S210 in this embodiment includes: on PE1, AC22 and AC21 do not have split horizon attributes, and based on the fact that the ESI bound to AC22 and AC21 is both ESI1, it is determined not to forward.
  • the AC ports under one VPLS instance belong to different ESIs.
  • a broadcast ring that can solve the problem of having multiple sub-interfaces of one physical port as AC ports under one VPLS instance is also proposed.
  • Route publishing method for road problems This embodiment can generate different ETIs according to the VLANids of different sub-interfaces, and a combination of an ESI and an ETI can be mapped to different AC sub-interfaces under the same ESI.
  • Embodiment 1 Compared with Embodiment 1, the difference between this embodiment and Embodiment 1 is that AC11 and AC12 belong to the same physical port, and AC21 and AC22 belong to the same physical port.
  • the specific steps of this embodiment are as follows:
  • Step S301 The AC12 of PE2 belongs to the physical port INT1, and the AC22 of PE1 belongs to the physical port INT1.
  • the other steps are the same as step S101;
  • Step S302 Same as step S102.
  • Step S303 Same as step S103.
  • Step S304 Same as step S104.
  • Step S305 Same as step S105.
  • Step S306 The R12 route carries ESID I1 (00.11.22.33.44.55.66.77.88.99) and ETI (1:200); the others are the same as step S106.
  • Step S307 The R22 route carries ESID I1 (00.11.22.33.44.55.66.77.88.99) and ETI (1:200); the others are the same as step S107.
  • Step S309 PE1 receives the RT1 route R12 and route R4-2 of PE2, finds out based on the ESID I1 that the Layer 2 interfaces bound to the ESI are AC21 and AC22, and determines the ETI (1:200) of the R12 route and the local AC22 The ETI (1:200) is the same, forming ESI protection.
  • the primary is AC22
  • the backup is ESI forwarding
  • the next hop is PE2.
  • PE2 is DF.
  • the method according to the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or that contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present disclosure.
  • This embodiment also provides a route publishing device, which is used to implement the above embodiments and preferred implementations. What has already been described will not be described again.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural block diagram of a route publishing device according to an embodiment of the present disclosure. As shown in Figure 6, the route publishing device includes:
  • the first publishing module 62 is configured to publish the EVPN RT-1 per ES route R1b generated based on the first Ethernet segment identifier ESI1 to the second router PE2 through the first router PE1, where the first Ethernet segment identifier ESI1 Including at least one of the following: the first purpose ESI determined based on the third sub-interface, the fourth sub-interface and the first condition on the first router PE1, the second router PE2 based on the first sub-interface, the second sub-interface the first purpose ESI determined by the interface and the first condition;
  • the second publishing module 64 is configured to receive the EVPN RT-1 per ES route R1a generated based on the first Ethernet segment identifier ESI1 and published by the second router PE2 through the first router PE1; wherein, the first One sub-interface and the second sub-interface do not belong to the same parent interface, the third sub-interface and the fourth sub-interface do not belong to the same parent interface, and the EVPN RT-1 per ES route R1a is set to indicate that The first router PE1 performs a first process.
  • the first process is: when the PE1 forwards the BUM message from the third sub-interface or the fourth sub-interface to the PE2, encapsulates the BUM message carried in the R1a route.
  • the first purpose ESI is the ESI used for first filtering
  • the first filtering is for BUM messages between the first sub-interface and the third sub-interface or the fourth sub-interface. Filtering by forwarding, or filtering of BUM messages between the second sub-interface facing the third sub-interface or the fourth sub-interface; and the first filtering is based on the first purpose ESI ESI tags.
  • the first router PE1 publishes the EVPN RT-1 per ES route R1b generated based on the first Ethernet segment identifier ESI1 to the second router PE2, wherein the first Ethernet segment identifier ESI1 includes at least one of the following 1: The first purpose ESI determined based on the third sub-interface, the fourth sub-interface and the first condition on the first router PE1, the second router PE2 based on the first sub-interface, the second sub-interface and the first condition The first purpose ESI determined by the first condition; receiving the EVPN RT-1 per ES route R1a generated based on the first Ethernet segment identifier ESI1 and published by the second router PE2 through the first router PE1; wherein , the first sub-interface and the second sub-interface do not belong to the same parent interface, the third sub-interface and the fourth sub-interface do not belong to the same parent interface, the EVPN RT-1 per ES routing R1a is set In order to instruct the first
  • the filtering is performed by forwarding BUM messages, or the BUM messages between the second sub-interface and the third sub-interface or the fourth sub-interface are filtered; and the first filtering is based on the third sub-interface. This is done using the ESI tag of ESI, which solves the problem of how to publish routes across nodes between different ES segments.
  • the parent interfaces of the two sub-interfaces of the second router PE2 or the first router PE1 are respectively bound to different second purpose ESIs, and the first condition is: in the When two sub-interfaces are bound to the same virtual Ethernet segment identifier vESI, the vESI is determined to be the first purpose ESI corresponding to the two sub-interfaces; wherein the second purpose ESI is to all ESI used for unicast forwarding on either of the two sub-interfaces.
  • the first condition is: when the parent interfaces of the two sub-interfaces of the second router PE2 or the first router PE1 are bound to the same second purpose ESI, the same first The two-purpose ESI is determined as the first-purpose ESI corresponding to the two sub-interfaces.
  • the above-mentioned route publishing device further includes a label broadcast module, configured to receive a message from the third access interface through the first router PE1, and if the MAC check fails, send the message to the third access interface.
  • the second router PE2 broadcasts and encapsulates the ESI label and EVI label of the first-purpose ESI; the second router PE2 finds the EVPN VPLS instance according to the EVI label, and the ESI found according to the ESI label matches the EVPN
  • the first access interface and the second access interface in the VPLS instance have the same first purpose ESI; the second router PE2 broadcasts the traffic to the first access interface and the second access interface.
  • the first router PE1 receives the traffic of the third access interface, determines the forwarding exit of the first source address corresponding to the learned source address as the third access interface; and generates RT2 route R2-1 is sent to the second router PE2; the RT2 route R2-1 carries the ESID of the ESI bound to the third access interface and the first ETI field of the third access interface; where , the second router PE2 receives the RT2 route R2-1, finds the local first access interface according to the ESID and ETI in the RT2 route R2-1 message received by the second router PE2, and will generate the first local access interface.
  • the forwarding exit of a MAC source address is determined as the ESI and ETI to which the first access interface belongs; wherein the first access interface corresponds to the first sub-interface, and the second access interface corresponds to the The second sub-interface, the third access interface corresponds to the third sub-interface, and the fourth access interface corresponds to the fourth sub-interface.
  • the first sub-interface and the third sub-interface satisfy the second condition
  • the second sub-interface and the fourth sub-interface satisfy the second condition
  • the filtering It is filtered through the ESI labels of the EVPN RT-1 per ES routes R1a and R1b
  • the second condition is: the two sub-interfaces in the first pair of sub-interfaces are located on different PE nodes and the two sub-interfaces The VLANs are the same, and the two sub-interfaces can reach each other without passing through any PE nodes, then it is determined that the two sub-interfaces meet the second condition, wherein the first pair of sub-interfaces is the The first sub-interface and the third sub-interface, or the first pair of sub-interfaces are the second sub-interface and the fourth sub-interface.
  • the above-mentioned route publishing device further includes an instruction processing module configured to instruct the PE1 to perform the first processing through the R1a route when the PE2 performs the second processing; the second The processing is as follows: when the PE2 forwards the broadcast, unknown unicast or multicast BUM message from the third sub-interface or the fourth sub-interface, when the forwarded outlet is the first sub-interface or the filter when the second sub-interface is specified.
  • the above route publishing device further includes an interface binding module configured to bind the first Ethernet segment identifier to the first sub-interface and the second sub-interface on the second router PE2 respectively.
  • ESI1 and are respectively bound to the first Ethernet segment identifier ESI1 for the parent interface of the first sub-interface and the parent interface of the second sub-interface; respectively are the third sub-interface on the first router PE1
  • the fourth sub-interface is bound to the first Ethernet segment identifier ESI1
  • the first Ethernet segment identifier ESI1 is bound to the parent interface of the third sub-interface and the parent interface of the fourth sub-interface respectively.
  • the above-mentioned route publishing device further includes an identifier specifying module configured to specify a first interface identifier and a second interface respectively for the parent interface of the first sub-interface and the parent interface of the second sub-interface.
  • the second router PE2 publishes the EVPN RT-1 per EVI routes R11 and R12 generated based on the first Ethernet segment identifier ESI1 and the first interface identifier and the second interface identifier to the third A router PE1; and binding the ESI to the parent interface of the third sub-interface and the parent interface of the fourth sub-interface on the first router PE1, respectively, and binding the ESI to the parent interface of the third sub-interface and the parent interface of the fourth sub-interface respectively.
  • the parent interface of the fourth sub-interface specifies the first interface identifier and the second interface identifier, and the EVPN RT-1 per EVI route R21 generated based on the ESI and the interface identifier is routed through the first router PE1 , R22 publishes it to the second router PE2.
  • the interface identifier is carried in the Ethernet Tag ID field of the EVPN RT-1 per EVI route; the EVPN RT-1 per EVI route R11, R21 carries ESIDI1, the first ETI field, ESI label and EVI label, the EVPN RT-1 per EVI routes R12 and R22 carry the ESID I1, the second ETI field, the ESI label and the EVI label; the EVPN RT-1 per EVI route and the RT4 route are jointly set to DF election of the first router PE1 and the second router PE2.
  • the above route publishing device further includes an interface creation module configured to create the first sub-interface and the second physical port respectively for the first physical port and the second physical port of the second router PE2.
  • sub-interface and use the first sub-interface and the second sub-interface as the first access interface and the second access interface of the EVPN VPLS instance; and, respectively, the third access interface of the first router PE1
  • the physical port and the fourth physical port create the third sub-interface and the fourth sub-interface, and use the third sub-interface and the fourth sub-interface as the third access interface and the third access interface of the EVPN VPLS instance.
  • Four access interfaces wherein the virtual private local area network addresses VLAN IDs of the first access interface and the third access interface are the same, and the VLAN IDs of the second access interface and the fourth access interface are the same. same.
  • the first access interface and the second access interface are configured with the same split horizon attribute; the third access interface and the fourth access interface are configured with the same split horizon attribute.
  • the second router PE2 can also generate an RT4 route R4-1 based on the ESI, wherein the RT4 route R4-1 carries the DF election rules and priorities of the second router PE2. class.
  • the first router PE1 may also generate an RT4 route R4-2 based on the ESI; the RT4 route R4-2 carries the DF election rule and priority of the first router PE1.
  • the above-mentioned route publishing device also includes a label generation module, configured to generate the EVI label carried by the EVPN RT-1 per EVI route based on the EVPN VPLS instance, and generate the ESI label based on the ESI instance;
  • the EVI label is used to locally query the VPLS forwarding label of the EVPN RT-1 per EVI route
  • the ESI label is used by the egress PE to determine the ESI to which the ingress AC belongs, and the EVPN VPLS instance corresponding to the EVI label.
  • the ingress AC is the path through which the BUM message is received by the ingress PE
  • the ingress PE is the PE that receives the BUM packet from the access interface
  • the egress PE is the PE that forwards the BUM packet from the access interface.
  • the above-mentioned route publishing device further includes a first construction module configured to receive the R11 of the second router PE2 and the RT4 route R4-1 through the first router PE1.
  • a first construction module configured to receive the R11 of the second router PE2 and the RT4 route R4-1 through the first router PE1.
  • the ESID I1 of R11 to find that the Layer 2 interfaces bound under the ESI are the third access interface and the fourth access interface.
  • ESI protection is constructed; based on the comparison result of the DF priority of the RT4 route R4-1 and the local priority, it is decided that the DF priority of the first router PE1 is non-DF.
  • the RT4 route R4-1 carries the DF election rule and priority of the second router PE2, and the R4-1 is the RT4 route sent by PE2 received by PE1.
  • the above-mentioned route publishing device further includes a second construction module configured to determine, according to the ESID I1, that the Layer 2 interface bound under the ESI is the third access interface and the third access interface.
  • a second construction module configured to determine, according to the ESID I1, that the Layer 2 interface bound under the ESI is the third access interface and the third access interface.
  • Four access interfaces when it is determined that the second ETI field of R12 is the same as the ETI field of the local fourth access interface, ESI protection is constructed; according to the DF priority and local priority of R4-1 of the RT4 route level comparison, and it is decided that the DF priority of the first router PE1 is non-DF, where the RT4 route R4-1 carries the DF election rule and priority of the second router PE2, and the R4-1 is PE1 receives the RT4 route sent by PE2.
  • the above-mentioned route publishing device further includes a forwarding module, which is configured to forward the destination MAC of message B1 to MAC1. From the fifth access interface to the first router PE1, the forwarding exit of MAC1 is determined. is the third access interface; forward the forwarding message B1 directly from the third access interface to BRAS-UP1; wherein, when a link failure occurs on the third access interface, switch to the backup ESI Forward and encapsulate the EVI label; use the second router PE2 to search the MAC forwarding table of the physical address corresponding to MAC1 according to the EVI label in the EVPN VPLS instance, and determine that the corresponding exit is the first access interface.
  • a forwarding module which is configured to forward the destination MAC of message B1 to MAC1. From the fifth access interface to the first router PE1, the forwarding exit of MAC1 is determined. is the third access interface; forward the forwarding message B1 directly from the third access interface to BRAS-UP1; wherein, when a link failure occurs on the
  • the above-mentioned route publishing device further includes a determination module configured so that on the first router PE1, the third access interface and the fourth access interface do not have a split horizon attribute; after determining If the ESI bound to the third access interface and the fourth access interface are the same, it is determined not to forward the traffic.
  • the routes R11 and R12 carry the ESID I1 and the first ETI field.
  • the computer-readable storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • Embodiments of the present disclosure also provide an electronic device, including a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
  • the above-mentioned processor may be configured to perform the following steps through a computer program:
  • the first Ethernet segment identifier ESI1 includes at least one of the following: The first purpose ESI determined based on the first sub-interface, the second sub-interface and the first condition on the second router PE2, the first router PE1 based on the third sub-interface, the fourth sub-interface and the first Conditions determined for the first use of ESI.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • modules or steps of the present disclosure can be implemented using general-purpose computing devices, and they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. They may be implemented in program code executable by a computing device, such that they may be stored in a storage device for execution by the computing device, and in some cases may be executed in a sequence different from that shown herein. Or the described steps can be implemented by making them into individual integrated circuit modules respectively, or by making multiple modules or steps among them into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.

Abstract

本公开实施例提出了一种路由发布方法、装置、存储介质及电子装置,该方法包括:通过第一路由器PE1将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b发布给第二路由器PE2,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第一路由器PE1上的第三子接口、第四子接口和第一条件确定的第一用途ESI,所述第二路由器PE2根据第一子接口、第二子接口和所述第一条件确定的所述第一用途ESI;通过所述第一路由器PE1接收所述第二路由器PE2发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a,解决了如何解决在不同ES段之间进行跨节点发布路由的问题,解决了如何在不同ES段之间进行跨节点发布路由的问题。

Description

路由发布方法、装置、存储介质及电子装置
本公开要求于2022年03月22日提交中国专利局、申请号为202210283485.4、发明名称“路由发布方法、装置、存储介质及电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及通信领域,具体而言,涉及一种路由发布方法、装置、存储介质及电子装置。
背景技术
EVPN(Ethernet Virtual Private Network,以太网虚拟专用网络)是一种二层网络互联VPN技术,可以基于可扩展虚拟局域网隧道、多协议标签交换或者运营商骨干桥接技术。EVPN技术通过建立多协议边界网关协议邻居来传递二层网络间的媒体接入控制/地址解析协议/路由信息,通过生成的地址转发表项进行二层或者三层报文转发。即其MAC(Media Access Control,媒体介入控制层)、ARP(Address Resolution Protocol,地址解析协议)、路由等条目的传递不依赖数据面完成,而是通过EVPN控制面完成。
EVPN MAC通过RT2MAC路由来进行传递。网络中CE(Customer Edge,用户网络边缘设备)双归通过EVPN ESI方案来解决,二层双归ESI(以太网段标识)可以通过RT2MAC路由携带ESI信息,远端PE根据该路由形成ESI保护的转发,并在双归PE上形成本地保护。ESI转发利用DF选举产生DF和NON-DF,non-DF和DF的防环机制很好的避免了用户侧的广播环路。如果用户侧有多个ES段归属不同CE,CE之间是可以广播的,这样的环路风险目前可以通过EVPN Etree的方案来解决,也可以通过水平分割方案来避免多个ES段之间的广播互转导致的报文环路。
EVPN路由ETI字段用来标识EVPN VPLS的二层AC口的VLANID(Virtual Local Area Network Identity document,虚拟局域网唯一编码),unqualify模式下该字段为0,qualify模式下该字段填写AC口VLANID。
目前,EVPN的同一对PE归属多个ES段时,归属同一个ES的AC之间可以实现BUM(Broadcast Unknown-Unicast&Multicast)防环,如图2所示,不同ES之间可以通过Etree leaf属性来实现BUM广播防环。结合图1和图2,BUM广播防环的基本工作原理如下:
PE1、PE2部署EPVN VPLS实例,PE2配置AC11,AC12,AC13所归属的物理口分别绑定ESI1,ESI2,ESI3。PE1配置AC21,AC22,AC23分别归属ESI1,ESI2,ESI3。PE2和PE1之间形成VXLAN隧道。PE2和PE1根据路由优先级选举PE2为DF,PE1为non-DF;其中,OLT1属于ES3,OLT2属于ES4。在AC13,AC14、AC23、AC24部署Etree leaf属性,通过leaf标签实现ESI3和ESI4之间的广播不转发。AC11和AC12部署水平分割来保证BRAS(Broadband Remote Access Seryer,宽带接入服务器)侧的广播报文本地多个ES之间互转。OLT(optical line terminal,光线路终端)和BRAS之间需要广播互通,OLT之间不用广播互通,BRAS之间不用广播互通。OLT之间的广播环路用EVPN Etree leaf属性来解决,由于OLT与BRAS之间需要互通,因此BRAS侧不能配置为leaf属性。BRAS侧可以配置水平分割来解决。水平分割只是本地属性,只针对本地转发生效。
如图1,OLT到BRAS的请求报文转发过程如下:
PE1从AC23收到OLT的广播报文,分别转发给AC21,AC22,以及通过VXLAN隧道转发给PE2并携带防环标签。AC23、AC24同为leaf属性,广播流量不互通,PE2上根据leaf标签判断收到流量的原始AC为leaf属性,和本地leaf AC(AC13、AC14)广播报文不互通,AC11和AC12默认为ROOT属性,转发广播报文,以此实现OLT之间广播防环,同时保证OLT和BRAS的互通。
BRAS到OLT的广播回复报文转发过程如下:
PE1从AC21收到BRAS的广播报文,同时广播给AC22,AC23,AC24,以及PE2。其中AC22和AC21为同一水平分割属性A,广播不转发。A23、A24转发正常。PE2收到广播报文转发给AC11、AC12、AC13、AC14。根据广播ESI标签判断和AC11同归属ESI1,AC11的广播报文不转发。AC12、AC13、AC14可以转发。
现有二层ESI技术,只能解决相同ES之间的广播防环。水平分割解决本地不同ES之间的广播防环。不同ES段之间跨节点的广播环路无法解决。如图1,BRAS-C的报文通过BRAS-up1转发到OLT,BRAS-up1的广播流量到PE1上会从AC22转给BRAS-up2,也会从PE1到PE2再转发给BRAS-up2。BRAS-up2再将报文上送给BRAS-C,造成流量的环路。
针对相关技术,如何解决在不同ES段之间进行跨节点发布路由的问题,目前尚未提出有效的解决方案。
因此,有必要对相关技术予以改良以克服相关技术中的所述缺陷。
发明内容
本公开实施例提供了一种路由发布方法、装置、存储介质及电子装置,以至少解决如何解决在不同ES段之间进行跨节点发布路由的问题。
根据本公开实施例的一方面,提供一种路由发布方法,包括:通过第二路由器PE2将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a发布给第一路由器PE1,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第二路由器PE2上的第一子接口、第二子接口和第一条件确定的第一用途ESI,所述第一路由器PE1根据第三子接口、第四子接口和所述第一条件确定的所述第一用途ESI;通过所述第二路由器PE2接收所述第一路由器PE1发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b;其中,所述第一子接口与所述第二子接口不属于同一父接口的子接口,所述第三子接口与所述第四子接口不属于同一父接口的子接口,所述EVPN RT-1 per ES路由R1b中携带的ESI标签用于指示所述第一路由器PE1转发来自于所述第一子接口或所述第二子接口的广播、未知单播或组播BUM报文,当转发的出口为所述第三子接口或所述第四子接口时进行过滤,所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行。
根据本公开实施例的又一方面,还提供了一种路由发布装置,包括:第一发布模块,设 置为通过第一路由器PE1将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b发布给第二路由器PE2,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第一路由器PE1上的第三子接口、第四子接口和第一条件确定的第一用途ESI,所述第二路由器PE2根据第一子接口、第二子接口和所述第一条件确定的所述第一用途ESI;第二发布模块,设置为通过所述第一路由器PE1接收所述第二路由器PE2发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a;其中,所述第一子接口与所述第二子接口不属于同一父接口,所述第三子接口与所述第四子接口不属于同一父接口,所述EVPN RT-1 per ES路由R1a设置为指示所述第一路由器PE1进行第一处理,所述第一处理为:当所述PE1转发来自所述第三子接口或第四子接口的BUM报文给所述PE2时,封装所述R1a路由中携带的ESI标签;所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行。
根据本公开实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述路由发布方法。
根据本公开实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述路由发布方法。
通过本公开,通过第二路由器PE2将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a发布给第一路由器PE1,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第二路由器PE2上的第一子接口、第二子接口和第一条件确定的第一用途ESI,所述第一路由器PE1根据第三子接口、第四子接口和所述第一条件确定的所述第一用途ESI;通过所述第二路由器PE2接收所述第一路由器PE1发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b;其中,所述第一子接口与所述第二子接口不属于同一父接口的子接口,所述第三子接口与所述第四子接口不属于同一父接口的子接口,所述EVPN RT-1 per ES路由R1b中携带的ESI标签用于指示所述第一路由器PE1转发来自于所述第一子接口或所述第二子接口的广播、未知单播或组播BUM报文,当转发的出口为所述第三子接口或所述第四子接口时进行过滤,所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行,解决了如何解决在不同ES段之间进行跨节点发布路由的问题。
附图说明
此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示例性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:
图1是相关技术中BUM广播防环的工作原理示意图(一);
图2是相关技术中BUM广播防环的工作原理示意图(二);
图3是本公开实施例的路由发布方法的计算机终端的硬件结构框图;
图4是根据本公开实施例的路由发布方法的流程图;
图5是根据本公开实施例的路由发布方法的工作原理示意图;
图6是根据本公开实施例的路由发布装置的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本公开实施例中所提供的方法实施例可以在计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图3是本公开实施例的路由发布方法的计算机终端的硬件结构框图。如图3所示,计算机终端可以包括一个或多个(图3中仅示出一个)处理器302(处理器302可以包括但不限于微处理器(Microprocessor Unit,简称是MPU)或可编程逻辑器件(Programmable logic device,简称是PLD))和设置为存储数据的存储器304,在一个示例性实施例中,上述计算机终端还可以包括设置为通信功能的传输设备306以及输入输出设备308。本领域普通技术人员可以理解,图3所示的结构仅为示意,其并不对上述计算机终端的结构造成限定。例如,计算机终端还可包括比图3中所示更多或者更少的组件,或者具有与图3所示等同功能或比图3所示功能更多的不同的配置。
存储器304可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的路由发布方法对应的计算机程序,处理器302通过运行存储在存储器304内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器304可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器304可进一步包括相对于处理器302远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置306设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输装置306包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置306可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。
图4是根据本公开实施例的路由发布方法的流程图(一),如图4所示,该路由发布方法 的步骤包括:
步骤S402,通过第二路由器PE2将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a发布给第一路由器PE1,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第二路由器PE2上的第一子接口、第二子接口和第一条件确定的第一用途ESI,所述第一路由器PE1根据第三子接口、第四子接口和所述第一条件确定的所述第一用途ESI。
步骤S404,通过所述第二路由器PE2接收所述第一路由器PE1发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b;其中,所述第一子接口与所述第二子接口不属于同一父接口的子接口,所述第三子接口与所述第四子接口不属于同一父接口的子接口,所述EVPN RT-1 per ES路由R1b中携带的ESI标签用于指示所述第一路由器PE1转发来自于所述第一子接口或所述第二子接口的广播、未知单播或组播BUM报文,当转发的出口为所述第三子接口或所述第四子接口时进行过滤,所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行。
本公开实施例通过第二路由器PE2将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a发布给第一路由器PE1,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第二路由器PE2上的第一子接口、第二子接口和第一条件确定的第一用途ESI,所述第一路由器PE1根据第三子接口、第四子接口和所述第一条件确定的所述第一用途ESI;通过所述第二路由器PE2接收所述第一路由器PE1发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b;其中,所述第一子接口与所述第二子接口不属于同一父接口的子接口,所述第三子接口与所述第四子接口不属于同一父接口的子接口,所述EVPN RT-1 per ES路由R1b中携带的ESI标签用于指示所述第一路由器PE1转发来自于所述第一子接口或所述第二子接口的广播、未知单播或组播BUM报文,当转发的出口为所述第三子接口或所述第四子接口时进行过滤,所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行,解决了如何解决在不同ES段之间进行跨节点发布路由的问题。
在一个示例性实施例中,所述第二路由器PE2或所述第一路由器PE1的两个子接口的父接口分别绑定了不同的第二用途ESI,且所述第一条件为:在所述两个子接口绑定了同一虚拟以太网段标识vESI的情况下,则将所述vESI确定为与所述两个子接口对应的所述第一用途ESI;其中,所述第二用途ESI为到所述两个子接口中任一子接口的单播转发所用的ESI。
在一个示例性实施例中,所述第一条件为:在第二路由器PE2或所述第一路由器PE1的两个子接口的父接口绑定同一第二用途ESI的情况下,将所述同一第二用途ESI确定为与所述两个子接口对应的所述第一用途ESI。
在一个示例性实施例中,还提出了一种技术方案,具体步骤包括:通过所述第一路由器PE1从第三接入接口收到报文,查MAC不中的情况下,向所述第二路由器PE2广播,并封装 所述第一用途ESI的ESI标签和EVI标签;通过所述第二路由器PE2根据EVI标签找到所述EVPN VPLS实例,并根据所述ESI标签找到的ESI与所述EVPN VPLS实例中的第一接入接口和第二接入接口归属的第一用途ESI相同;将所述第二路由器PE2上广播给所述第一接入接口、所述第二接入接口的流量丢弃;其中,所述第一路由器PE1收到所述第三接入接口的流量,将学习源地址产生对应的第一源地址MAC1的转发出口确定为所述第三接入接口;并产生RT2路由R2-1发送给所述第二路由器PE2;所述RT2路由R2-1携带所述第三接入接口绑定的所述ESI的ESID和所述第三接入接口的第一ETI字段;其中,所述第二路由器PE2收到所述RT2路由R2-1,根据所述第二路由器PE2收到RT2路由R2-1报文里的ESID和ETI找到本地的第一接入接口,将产生第一MAC源地址的转发出口确定为所述第一接入接口所属的ESI和ETI;其中,所述第一接入接口对应于所述第一子接口,所述第二接入接口对应于所述第二子接口,所述第三接入接口对应于所述第三子接口,所述第四接入接口对应于所述第四子接口。
在一个示例性实施例中,所述第一子接口与所述第三子接口满足第二条件,且所述第二子接口与所述第四子接口满足所述第二条件;所述过滤是通过所述EVPN RT-1 per ES路由R1a、R1b的ESI标签进行过滤的;所述第二条件为:在两个子接口位于不同PE节点上且所述两个子接口的VLAN相同,并且所述两个子接口在中间不途经任何PE节点的情况下可以到达对方,则确定所述两个子接口满足所述第二条件。其中,所述第一对子接口为所述第一子接口和所述第三子接口,或者,所述第一对子接口为所述第二子接口和所述第四子接口。
在一个示例性实施例中,在所述PE2执行第二处理的情况下,通过所述R1a路由指示所述PE2进行第一处理;所述第二处理为:所述PE2在转发来自于所述第三子接口或所述第四子接口的广播、未知单播或组播BUM报文时,当转发的出口为所述第一子接口或所述第二子接口时进行过滤。
在一个示例性实施例中,还提出了一种技术方案,可选的:分别为所述第二路由器PE2上的第一子接口的父接口、第二子接口的父接口绑定所述第一以太网段标识ESI1;分别为所述第一路由器PE1上的第三子接口的父接口、第四子接口的父接口绑定所述第一以太网段标识ESI1。
在一个示例性实施例中,还提出了一种技术方案,具体步骤包括:分别为所述第一子接口的父接口、所述第二子接口的父接口指定第一接口标识和第二接口标识,通过所述第二路由器PE2将基于所述第一以太网段标识ESI1和所述第一接口标识、第二接口标识所产生的EVPN RT-1 per EVI路由R11,R12发布给所述第一路由器PE1;以及为所述第一路由器PE1上的第三子接口的父接口、第四子接口的父接口分别绑定所述ESI,并分别为所述第三子接口的父接口、所述第四子接口的父接口指定所述第一接口标识和所述第二接口标识,通过所述第一路由器PE1将基于所述ESI和所述接口标识产生的EVPN RT-1 per EVI路由R21,R22发布给所述第二路由器PE2。
在一个示例性实施例中,所述接口标识在所述EVPN RT-1 per EVI路由的Ethernet Tag ID字段中携带;所述EVPN RT-1 per EVI路由R11、R21携带ESID I1、第一ETI字段、ESI标签和EVI标签,所述EVPN RT-1 per EVI路由R12、R22携带所述ESID I1、第二ETI字段、ESI标签和EVI标签;所述EVPN RT-1 per EVI路由与RT4路由共同设置为所述第一路由器 PE1和所述第二路由器PE2的DF选举。
在一个示例性实施例中,为所述第二路由器PE2和所述第一路由器PE1配置以太网虚拟专用网络的虚拟专用局域网业务EVPN VPLS实例的过程中,所述方法还包括:分别为所述第二路由器PE2的第一物理口和第二物理口创建所述第一子接口和所述第二子接口,并将所述第一子接口和所述第二子接口作为所述EVPN VPLS实例的第一接入接口和第二接入接口;以及,分别为所述第一路由器PE1的第三物理口和第四物理口创建所述第三子接口和所述第四子接口,并将所述三子接口和所述第四子接口作为所述EVPN VPLS实例的第三接入接口和第四接入接口;其中,所述第一接入接口和所述第三接入接口的虚拟专用局域网络地址VLAN ID相同,所述第二接入接口和所述第四接入接口的VLAN ID相同。
在一个示例性实施例中,所述第一接入接口和所述第二接入接口配置同一水平分割属性;所述第三接入接口和所述第四接入接口配置同一水平分割属性。
在一个示例性实施例中,还可以通过所述第二路由器PE2基于所述ESI产生RT4路由R4-1,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级。
在一个示例性实施例中,还可以通过所述第一路由器PE1基于所述ESI产生RT4路由R4-2;所述RT4路由R4-2携带所述第一路由器PE1的DF选举规则和优先级。
在一个示例性实施例中,还提出了一种技术方案,具体步骤包括:基于所述EVPN VPLS实例产生所述EVPN RT-1 per EVI路由携带的EVI标签,基于ESI实例产生所述ESI标签;其中,所述EVI标签用于在本地查询所述EVPN RT-1 per EVI路由的VPLS转发标签,所述ESI标签用于出口PE确定入口AC所属的ESI,以及所述EVI标签对应的EVPN VPLS实例的接入接口,对所述EVPN VPLS实例下,且和所述入口AC归属相同ESI的接入接口进行BUM过滤;其中,所述入口AC为所述BUM报文被入口PE收到时所经过的AC,入口PE为从接入接口收到所述BUM报文的PE,出口PE为从接入接口转发所述BUM报文的PE。
在一个示例性实施例中,还提出了一种技术方案,可以通过所述第一路由器PE1收到所述第二路由器PE2的R11及所述RT4路由R4-1,根据所述R11的ESID I1来找到所述ESI下绑定的二层接口为所述第三接入接口和所述第四接入接口,在确定所述R11的第一ETI字段和本地的所述第三接入接口的ETI字段相同的情况下,构造ESI保护;根据所述RT4路由R4-1的DF优先级和本地优先级的比较结果,决策所述第一路由器PE1的DF优先级为non-DF,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级,所述R4-1为PE1接收的PE2发送的RT4路由。
在一个示例性实施例中,提出了一种在所述第一路由器PE1收到所述第二路由器PE2的R12及所述RT4路由R4-1的情况下的技术方案,可以根据所述ESID I1确定所述ESI下绑定的二层接口为所述第三接入接口和所述第四接入接口,在确定所述R12的第二ETI字段和本地的第四接入接口的ETI字段相同的情况下,构造ESI保护;根据所述RT4路由R4-1的DF优先级和本地优先级进行比较,决策所述第一路由器PE1的DF优先级为non-DF,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级,所述R4-1为PE1接收的PE2发送的RT4路由。
在一个示例性实施例中,还提出了一种技术方案,具体步骤包括:转发报文B1的目的MAC为MAC1,从第五接入接口到所述第一路由器PE1,将查找MAC1的转发出口确定为所述第三接入接口;将所述转发报文B1直接从所述第三接入接口转发到BRAS-UP1;其中,当所述第三接入接口发生链路故障,切换到备ESI进行转发,并封装EVI标签;通过所述第二路由器PE2根据EVI标签到所述EVPN VPLS实例下查找MAC1地址对应的物理地址MAC转发表,确定对应出口为所述第一接入接口。
在一个示例性实施例中,还提出了一种技术方案,可选的:在所述第一路由器PE1上,所述第三接入接口和所述第四接入接口没有水平分割属性;在确定所述第三接入接口和所述第四接入接口所绑定的ESI相同的情况下,判定不转发流量。
在一个示例性实施例中,所述路由R11、R12携带ESID I1,以及第一ETI字段。
在一个示例性实施例中,所述方法还包括:分别为所述第二路由器PE2上的第一子接口、第二子接口绑定所述第一以太网段标识ESI1,以及分别为所述第一子接口的父接口、所述第二子接口的父接口绑定所述第一以太网段标识ESI1;分别为所述第一路由器PE1上的第三子接口、第四子接口绑定所述第一以太网段标识ESI1,以及分别为所述第三子接口的父接口、所述第四子接口的父接口绑定所述第一以太网段标识ESI1。
在一个示例性实施例中,为所述第二路由器PE2和所述第一路由器PE1配置以太网虚拟专用网络的虚拟专用局域网业务EVPN VPLS实例的过程中,所述方法还包括:分别为所述第二路由器PE2的第一物理口和第二物理口创建所述第一子接口和所述第二子接口,并将所述第一子接口和所述第二子接口作为所述EVPN VPLS实例的第一接入接口和第二接入接口;以及,分别为所述第一路由器PE1的第三物理口和第四物理口创建所述第三子接口和所述第四子接口,并将所述三子接口和所述第四子接口作为所述EVPN VPLS实例的第三接入接口和第四接入接口;其中,所述第一接入接口和所述第三接入接口的虚拟专用局域网络地址VLAN ID相同,所述第二接入接口和所述第四接入接口的VLAN ID相同。
在一个示例性实施例中,所述方法还包括:通过所述第二路由器PE2基于所述ESI产生RT4路由R4-1,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级。
在一个示例性实施例中,所述方法还包括:通过所述第一路由器PE1基于所述ESI产生RT4路由R4-2;所述RT4路由R4-2携带所述第一路由器PE1的DF选举规则和优先级。
接下来结合以下实施例对路由发布方法进行进一步说明。
在一个实施例中,结合图5对路由发布方法进行说明,为多个接口配置相同ESI,使得多个接口归属相同ES实例;利用EVPN路由本身的ETI字段来映射ESI中绑定的各个ES,其中ETI字段由ES接口标识ES-INT和AC口的VLAN id组成,从而保证各个独立ES之间的ESI保护;实现单个ES保护转发的同时,并保证相同ESI之间的BUM防环。
其中,EVPN路由的ETI字段一共4个字节,第一个字节用来表示ES绑定的物理口,后面三个字节用来表示绑定二层实例的AC口VLAN id(AC-VLAN);ETI标识为(ES-INT:AC-VLAN);其中,当AC为物理口,则AC-VLAN为0,ETI为(ES-INT:0)。
PE2和PE1的四个AC口(AC11,AC12,AC21,AC22)所属的物理口(INT11,INT12,INT13,INT14)绑定相同ESI,例如ESI1的ESID为10字节(00.11.22.33.44.55.66.77.88.99),同时指定INT11、INT21的ES-INT为1,INT12、INT22的ES-INT为2。
PE2为二层口AC11生成RT1路由R11,R11携带ESI1的ESID和AC11对应的ETI(ES-INT:AC-VLAN);PE1收到R11,将R11的ESID I1和本地ESI1的ETI比对,相同则形成ESI保护转发表对应ETI为(ES-INT:AC-VLAN);
如图5所示,PE2和PE1基于ES产生RT4路由进行DF选举,PE2为DF,PE1为non-DF;PE2基于ESI1和VPLS(VirtualPrivateLanService,虚拟专用局域网业务)实例的AC11、AC12产生RT1路由R11、R12;PE1基于ESI1和VPLS实例的AC21、AC22产生RT1路由R21、R22。
PE2收到R21、R22路由,根据R21路由的ESID和ETI找到AC11,形成AC11的ESI保护转发,主为AC11,备下一跳为PE1;根据R22路由的ESID和ETI找到AC12,形成AC12的ESI保护转发,主为AC12,备下一跳为PE1。
PE1收到R11、R12路由,根据R11路由的ESID和ETI找到AC21,形成AC21的ESI保护转发,主为AC21,备下一跳为PE2;根据R12路由的ESID和ETI找到AC12,形成AC22的ESI保护转发,主为AC22,备下一跳为PE2。
OLT到BRAS-C的流量,PE1从AC23收到二层报文,单播转发的过程和广播转发的过程分别如下:
单播:PE1查MAC命中出口为AC21,AC21对应形成ESI1保护转发,备下一跳为PE1;直接从AC21转发到BRAS-up1;当AC21接口故障,单播报文从ESI备转发到PE1,PE1查MAC出口为AC11将报文从AC11转发到BRAS-up1。
广播:PE1查不中MAC,广播转发给AC21,AC22,PE2;其中转发给PE2带转发ESI标签或leaf标签;PE2为DF角色,转发该广播流量到AC11、AC12、AC13、AC14;AC13和AC14为leaf属性,根据广播报文的leaf标签判断出入同为leaf广播流量丢弃;AC11、AC12正常广播。
BRAS到OLT的流量,PE1从AC21收到二层报文,单播查MAC转发,广播转发如下:
PE1查不中MAC,广播转发给AC22、AC23、AC24、PE2;其中转发给PE2带转发ESI标签或leaf标签;PE2为DF角色,PE2收到该报文查不中MAC,转发到AC11、AC12、AC13、AC14;根据报文里的ESI标签找到本地归属ESI所绑定的接口为INT1和INT2,归属INT1和INT2的子接口作为二层口AC11和AC12将携带ESI标签的广播流量丢弃;流量不会再转发给BRAS;AC13和AC14正常广播;AC22和AC21水平分割属性相同不转发;这里也可以不配置水平分割属性,判断AC22和AC21同属ESI1,广播不转发。
在一个可选的示例性实施例中,可以通过ETI映射ES解决多ESI之间的BUM防环来实现本公开的路由发布方法,其中,OLT和BRAS之间二层互通的源目的MAC为(0LT:0000.AAAA.11111,BRAS:0000.BBBB.2222),包括:
步骤S101:PE2、PE1配置EVPN VPLS实例,PE2的物理口INT1,INT2分别创建子接口 INT1.11(VLANID为100)、INT2.11(VLANID为200)作为VPLS实例的AC11,AC12;PE1的物理口INT1,INT2分别创建子接口INT1.21(VLANID为100)、INT2.22(VLANID为200)作为VPLS实例的AC21,AC22。
其中,AC11和AC21的VLANid相同,AC12和AC22的VLANid相同。AC11/AC21和AC12/AC22的VLANid可以相同,也可以不同。本实施例为方便区分,以不同VLANid为例。
步骤S102:PE2上配置接口INT3作为VPLS实例的AC13。PE1上配置INT3接口作为VPLS实例的AC23。AC13和AC23所属物理口绑定ESI3。
步骤S103:PE1上INT21绑定ESI1(00.11.22.33.44.55.66.77.88.99)并指定接口标识ES-INT为1,PE1上INT22绑定ESI1并制定接口标识ES-INT为2。PE1上基于ESI1产生EVPN RT4路由发布给PE2。
步骤S104:PE2上INT11绑定ESI1(00.11.22.33.44.55.66.77.88.99)并指定接口标识ES-INT为1,PE2上INT12绑定ESI1并制定接口标识ES-INT为2。PE2上基于ESI1产生EVPN RT4路由发布给PE1。
步骤S105:AC11和AC12配置同一水平分割属性B。AC21和AC22配置同一水平分割属性B。
步骤S106:PE2基于ESI1和VPLS实例的AC11、AC12分别产生RT1路由R11、R12。基于ESI1产生RT4路由R4-1。R11路由携带ESID I1(00.11.22.33.44.55.66.77.88.99),以及ETI(1∶100),并携带ESI和EVI标签。R12路由携带ESID I1(00.11.22.33.44.55.66.77.88.99),以及ETI(2∶200),并携带ESI和EVI标签。R4-1携带PE2的DF选举规则和优先级。
步骤S107:PE1基于ESI1和VPLS实例的AC21、AC22产生RT1路由R21、R22。基于ESI1产生RT4路由R4-2。R21路由携带ESID I1(00.11.22.33.44.55.66.77.88.99),以及ETI(1∶100),并携带ESI和EVI标签。R22路由携带ESID I1(00.11.22.33.44.55.66.77.88.99),以及ETI(2∶200),并携带ESI和EVI标签。R4-2携带PE1的DF选举规则和优先级。
其中,步骤S106和步骤S107中RT1路由的EVI标签基于VPLS实例产生,ESI标签基于ESI实例产生。本地根据收到报文的EVI标签查询VPLS转发标签,并根据ESI标签判断所属ESI实例及AC口。
步骤S108:PE1收到PE2的RT1路由R11及R4-1,根R11的据ESID I1来找到该ESI下绑定的二层接口为AC21、AC22,判断R11路由的ETI(1∶100)和本地AC21的ETI(1∶100)相同,形成ESI保护,主为AC21,备为ESI转发,下一跳为PE2。根据路由R4-1的DF优先级和本地优先级比较,决策PE1为non-DF。
步骤S109:PE1收到PE2的RT1路由R12及路由R4-2,根据ESID I1来找到该ESI下绑定的二层接口为AC21、AC22,判断R12路由的ETI(2∶200)和本地AC22的ETI(2∶200)相同,形成ESI保护,主为AC22,备为ESI转发,下一跳为PE2。根据路由R4-2的DF优先级和本地优先级比较,决策PE2为DF。
步骤S110:BRAS发送报文(源为MAC1:0000.BBBB.2222,目的为MAC2:0000.AAAA.1111)从AC21到PE1上,PE1为non-DF。PE1查MAC不中,走广播转发,流量转发给AC22、AC23、AC24、PE2。广播给PE2时携带ESI标签和EVI,PE2根据EVI标签找到VPLS实例,广播转发给AC11、AC12、AC13、AC14。并进一步根据ESI标签找到VPLS对应的AC口为AC11,AC12归属同一ESI1。PE2上广播给AC11、AC12的流量丢弃。AC13、AC14转发正常。
其中,在PE1上,AC22和AC21属于同一水平分割属性B,广播流量丢弃。AC23和AC24正常广播转发。
其中,PE1收到AC21的流量,学习MAC1产生对应的MAC1转发出口为AC21。并产生RT2路由R2-1通过给PE2。路由R2-1携带AC21绑定的ESI1的ESID(00.11.22.33.44.55.66.77.88.99)和AC21的ETI(1∶100)。
其中,PE2收到R2-1路由,根据路由报文里的ESID和ETI找到本地AC11,产生MAC1的转发出口为AC11。
步骤S111:BRAS发送单播报文到PE1,查MAC转发。
步骤S112:OLT发送报文(源为MAC2:0000.AAAA.1111,目的为MAC1:0000.BBBB.2222)从AC23到PE1,查MAC1转发出口为AC21。报文直接从AC21转发到BRAS-UP1。
其中,当AC21发生链路故障,切换到ESI备转发,并封装EVI标签。PE2根据EVI标签到VPLS实例下查找MAC1对应的MAC转发表,对应出口为AC11。从AC11转发给BRAS-UP1。
在一个示例性实施例中,结合图1与图5,参照上述实施例中的步骤S101至步骤S112,提供了一种路由发布方法,可选的,参照上述实施例中的步骤S101至步骤S104作为步骤S201至步骤S204,在此不再赘述。
本实施例中,不部署水平分割属性,参照上述实施例中的步骤S105至步骤S106步骤作为步骤S205至步骤S206,并且,参照上述实施例中的步骤S111至步骤S112作为本实施例的步骤S211至步骤S212。
其中,本实施例的步骤S210包括:在PE1上,AC22和AC21没有水平分割属性,根据AC22和AC21所绑定的ESI同为ESI1,判定不转发。
以上实施例都是一个VPLS实例下的AC口属于不同ESI,在一个示例性实施例中,还可以提出了一种能够解决一个VPLS实例下有一个物理口的多个子接口作为AC口的广播环路问题的路由发布方法。本实施例能够根据不同子接口的VLANid产生不同的ETI,将一个ESI和ETI进行组合可以映射到同一ESI下的不同AC子接口上。
本实施例与实施例1相比,不同点在于AC11和AC12归属相同物理口,AC21和AC22归属相同物理口,本实施例的具体步骤如下:
步骤S301:PE2的AC12归属物理口INT1,PE1的AC22归属物理口INT1,其他同步骤S101;
步骤S302:同步骤S102。
步骤S303:同步骤S103。
步骤S304:同步骤S104。
步骤S305:同步骤S105。
步骤S306:R12路由携带ESID I1(00.11.22.33.44.55.66.77.88.99),以及ETI(1∶200);其他同步骤S106。
步骤S307:R22路由携带ESID I1(00.11.22.33.44.55.66.77.88.99),以及ETI(1∶200);其他同步骤S107。
步骤S309:PE1收到PE2的RT1路由R12及路由R4-2,根据ESID I1来找到该ESI下绑定的二层接口为AC21、AC22,判断R12路由的ETI(1∶200)和本地AC22的ETI(1∶200)相同,形成ESI保护,主为AC22,备为ESI转发,下一跳为PE2;根据路由R4-2的DF优先级和本地优先级比较,决策PE2为DF。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例的方法。
在本实施例中还提供了路由发布装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的设备较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图6是根据本公开实施例的路由发布装置的结构框图。如图6所示,路由发布装置包括:
第一发布模块62,设置为通过第一路由器PE1将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b发布给第二路由器PE2,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第一路由器PE1上的第三子接口、第四子接口和第一条件确定的第一用途ESI,所述第二路由器PE2根据第一子接口、第二子接口和所述第一条件确定的所述第一用途ESI;
第二发布模块64,设置为通过所述第一路由器PE1接收所述第二路由器PE2发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a;其中,所述第一子接口与所述第二子接口不属于同一父接口,所述第三子接口与所述第四子接口不属于同一父接口,所述EVPN RT-1 per ES路由R1a设置为指示所述第一路由器PE1进行第一处理,所述第一处理为:当所述PE1转发来自所述第三子接口或第四子接口的BUM报文给所述PE2时,封装所述R1a路由中携带的ESI标签;所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行。
通过上述装置,通过第一路由器PE1将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b发布给第二路由器PE2,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第一路由器PE1上的第三子接口、第四子接口和第一条件确定的第一用途ESI,所述第二路由器PE2根据第一子接口、第二子接口和所述第一条件确定的所述第一用途ESI;通过所述第一路由器PE1接收所述第二路由器PE2发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a;其中,所述第一子接口与所述第二子接口不属于同一父接口,所述第三子接口与所述第四子接口不属于同一父接口,所述EVPN RT-1 per ES路由R1a设置为指示所述第一路由器PE1进行第一处理,所述第一处理为:当所述PE1转发来自所述第三子接口或第四子接口的BUM报文给所述PE2时,封装所述R1a路由中携带的ESI标签;所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行,解决了如何解决在不同ES段之间进行跨节点发布路由的问题。
在一个示例性实施例中,所述第二路由器PE2或所述第一路由器PE1的两个子接口的父接口分别绑定了不同的第二用途ESI,且所述第一条件为:在所述两个子接口绑定了同一虚拟以太网段标识vESI的情况下,则将所述vESI确定为与所述两个子接口对应的所述第一用途ESI;其中,所述第二用途ESI为到所述两个子接口中任一子接口的单播转发所用的ESI。
在一个示例性实施例中,所述第一条件为:在第二路由器PE2或所述第一路由器PE1的两个子接口的父接口绑定同一第二用途ESI的情况下,将所述同一第二用途ESI确定为与所述两个子接口对应的所述第一用途ESI。
在一个示例性实施例中,上述路由发布装置还包括标签广播模块,设置为通过所述第一路由器PE1从第三接入接口收到报文,查MAC不中的情况下,向所述第二路由器PE2广播,并封装所述第一用途ESI的ESI标签和EVI标签;通过所述第二路由器PE2根据EVI标签找到所述EVPN VPLS实例,并根据所述ESI标签找到的ESI与所述EVPN VPLS实例中的第一接入接口和第二接入接口归属的第一用途ESI相同;将所述第二路由器PE2上广播给所述第一接入接口、所述第二接入接口的流量丢弃;其中,所述第一路由器PE1收到所述第三接入接口的流量,将学习源地址产生对应的第一源地址的转发出口确定为所述第三接入接口;并产生RT2路由R2-1发送给所述第二路由器PE2;所述RT2路由R2-1携带所述第三接入接口绑定的所述ESI的ESID和所述第三接入接口的第一ETI字段;其中,所述第二路由器PE2收到所述RT2路由R2-1,根据所述第二路由器PE2收到RT2路由R2-1报文里的ESID和ETI找到本地的第一接入接口,将产生第一MAC源地址的转发出口确定为所述第一接入接口所属的ESI和ETI;其中,所述第一接入接口对应于所述第一子接口,所述第二接入接口对应于所述第二子接口,所述第三接入接口对应于所述第三子接口,所述第四接入接口对应于所述第四子接口。
在一个示例性实施例中,所述第一子接口与所述第三子接口满足第二条件,且所述第二子接口与所述第四子接口满足所述第二条件;所述过滤是通过所述EVPN RT-1 per ES路由R1a、R1b的ESI标签进行过滤的;所述第二条件为:在第一对子接口中的两个子接口位于不 同PE节点上且所述两个子接口的VLAN相同,并且所述两个子接口在中间不途经任何PE节点的情况下可以到达对方,则确定所述两个子接口满足所述第二条件,其中,所述第一对子接口为所述第一子接口和所述第三子接口,或者,所述第一对子接口为所述第二子接口和所述第四子接口。
在一个示例性实施例中,上述路由发布装置还包括指示处理模块,设置为在所述PE2执行第二处理的情况下,通过所述R1a路由指示所述PE1进行第一处理;所述第二处理为:所述PE2在转发来自于所述第三子接口或所述第四子接口的广播、未知单播或组播BUM报文时,当转发的出口为所述第一子接口或所述第二子接口时进行过滤。
在一个示例性实施例中,上述路由发布装置还包括接口绑定模块,设置为分别为所述第二路由器PE2上的第一子接口、第二子接口绑定所述第一以太网段标识ESI1,以及分别为所述第一子接口的父接口、所述第二子接口的父接口绑定所述第一以太网段标识ESI1;分别为所述第一路由器PE1上的第三子接口、第四子接口绑定所述第一以太网段标识ESI1,以及分别为所述第三子接口的父接口、所述第四子接口的父接口绑定所述第一以太网段标识ESI1。
在一个示例性实施例中,上述路由发布装置还包括标识指定模块,设置为分别为所述第一子接口的父接口、所述第二子接口的父接口指定第一接口标识和第二接口标识,通过所述第二路由器PE2将基于所述第一以太网段标识ESI1和所述第一接口标识、第二接口标识所产生的EVPN RT-1 per EVI路由R11,R12发布给所述第一路由器PE1;以及为所述第一路由器PE1上的第三子接口的父接口、第四子接口的父接口分别绑定所述ESI,并分别为所述第三子接口的父接口、所述第四子接口的父接口指定所述第一接口标识和所述第二接口标识,通过所述第一路由器PE1将基于所述ESI和所述接口标识产生的EVPN RT-1 per EVI路由R21,R22发布给所述第二路由器PE2。
在一个示例性实施例中,所述接口标识在所述EVPN RT-1 per EVI路由的Ethernet Tag ID字段中携带;所述EVPN RT-1 per EVI路由R11、R21携带ESIDI1、第一ETI字段、ESI标签和EVI标签,所述EVPN RT-1 per EVI路由R12、R22携带所述ESID I1、第二ETI字段、ESI标签和EVI标签;所述EVPN RT-1 per EVI路由与RT4路由共同设置为所述第一路由器PE1和所述第二路由器PE2的DF选举。
在一个示例性实施例中,上述路由发布装置还包括接口创建模块,设置为分别为所述第二路由器PE2的第一物理口和第二物理口创建所述第一子接口和所述第二子接口,并将所述第一子接口和所述第二子接口作为所述EVPN VPLS实例的第一接入接口和第二接入接口;以及,分别为所述第一路由器PE1的第三物理口和第四物理口创建所述第三子接口和所述第四子接口,并将所述三子接口和所述第四子接口作为所述EVPN VPLS实例的第三接入接口和第四接入接口;其中,所述第一接入接口和所述第三接入接口的虚拟专用局域网络地址VLAN ID相同,所述第二接入接口和所述第四接入接口的VLAN ID相同。
在一个示例性实施例中,所述第一接入接口和所述第二接入接口配置同一水平分割属性;所述第三接入接口和所述第四接入接口配置同一水平分割属性。
在一个示例性实施例中,还可以通过所述第二路由器PE2基于所述ESI产生RT4路由R4-1, 其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级。
在一个示例性实施例中,还可以通过所述第一路由器PE1基于所述ESI产生RT4路由R4-2;所述RT4路由R4-2携带所述第一路由器PE1的DF选举规则和优先级。
在一个示例性实施例中,上述路由发布装置还包括标签产生模块,设置为基于所述EVPN VPLS实例产生所述EVPN RT-1 per EVI路由携带的EVI标签,基于ESI实例产生所述ESI标签;其中,所述EVI标签用于在本地查询所述EVPN RT-1 per EVI路由的VPLS转发标签,所述ESI标签用于出口PE确定入口AC所属的ESI,以及所述EVI标签对应的EVPN VPLS实例的接入接口,对所述EVPN VPLS实例下,且和所述入口AC归属相同ESI的接入接口进行BUM过滤;其中,所述入口AC为所述BUM报文被入口PE收到时所经过的AC,入口PE为从接入接口收到所述BUM报文的PE,出口PE为从接入接口转发所述BUM报文的PE。
在一个示例性实施例中,上述路由发布装置还包括第一构造模块,设置为通过所述第一路由器PE1收到所述第二路由器PE2的R11及所述RT4路由R4-1,根据所述R11的ESID I1来找到所述ESI下绑定的二层接口为所述第三接入接口和所述第四接入接口,在确定所述R11的第一ETI字段和本地的所述第三接入接口的ETI字段相同的情况下,构造ESI保护;根据所述RT4路由R4-1的DF优先级和本地优先级的比较结果,决策所述第一路由器PE1的DF优先级为non-DF,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级,所述R4-1为PE1接收的PE2发送的RT4路由。
在一个示例性实施例中,上述路由发布装置还包括第二构造模块,设置为可以根据所述ESID I1确定所述ESI下绑定的二层接口为所述第三接入接口和所述第四接入接口,在确定所述R12的第二ETI字段和本地的第四接入接口的ETI字段相同的情况下,构造ESI保护;根据所述RT4路由R4-1的DF优先级和本地优先级进行比较,决策所述第一路由器PE1的DF优先级为non-DF,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级,所述R4-1为PE1接收的PE2发送的RT4路由。
在一个示例性实施例中,上述路由发布装置还包括转发模块,设置为转发报文B1的目的MAC为MAC1,从第五接入接口到所述第一路由器PE1,将查找MAC1的转发出口确定为所述第三接入接口;将所述转发报文B1直接从所述第三接入接口转发到BRAS-UP1;其中,当所述第三接入接口发生链路故障,切换到备ESI进行转发,并封装EVI标签;通过所述第二路由器PE2根据EVI标签到所述EVPN VPLS实例下查找MAC1对应的物理地址MAC转发表,确定对应出口为所述第一接入接口。
在一个示例性实施例中,上述路由发布装置还包括判定模块,设置为在所述第一路由器PE1上,所述第三接入接口和所述第四接入接口没有水平分割属性;在确定所述第三接入接口和所述第四接入接口所绑定的ESI相同的情况下,判定不转发流量。
在一个示例性实施例中,所述路由R11、R12携带ESID I1,以及第一ETI字段。
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,通过第二路由器PE2将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a发布给第一路由器PE1,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第二路由器PE2上的第一子接口、第二子接口和第一条件确定的第一用途ESI,所述第一路由器PE1根据第三子接口、第四子接口和所述第一条件确定的所述第一用途ESI。
S2,通过所述第二路由器PE2接收所述第一路由器PE1发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b;其中,所述第一子接口与所述第二子接口不属于同一父接口的子接口,所述第三子接口与所述第四子接口不属于同一父接口的子接口,所述EVPN RT-1 per ES路由R1b中携带的ESI标签用于指示所述第一路由器PE1转发来自于所述第一子接口或所述第二子接口的广播、未知单播或组播BUM报文,当转发的出口为所述第三子接口或所述第四子接口时进行过滤,所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行。
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (18)

  1. 一种路由发布方法,包括:
    通过第一路由器PE1将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b发布给第二路由器PE2,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第一路由器PE1上的第三子接口、第四子接口和第一条件确定的第一用途ESI,所述第二路由器PE2根据第一子接口、第二子接口和所述第一条件确定的所述第一用途ESI;
    通过所述第一路由器PE1接收所述第二路由器PE2发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a;
    其中,所述第一子接口与所述第二子接口不属于同一父接口,所述第三子接口与所述第四子接口不属于同一父接口,所述EVPN RT-1 per ES路由R1a设置为指示所述第一路由器PE1进行第一处理,所述第一处理为:当所述PE1转发来自所述第三子接口或第四子接口的BUM报文给所述PE2时,封装所述R1a路由中携带的ESI标签;
    所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行。
  2. 根据权利要求1所述的路由发布方法,其中,所述第二路由器PE2或所述第一路由器PE1的两个子接口的父接口分别绑定了不同的第二用途ESI,且所述第一条件为:在所述两个子接口绑定了同一虚拟以太网段标识vESI的情况下,则将所述vESI确定为与所述两个子接口对应的所述第一用途ESI;
    其中,所述第二用途ESI为到所述两个子接口中任一子接口的单播转发所用的ESI。
  3. 根据权利要求1所述的路由发布方法,其中,所述第一条件为:在第二路由器PE2的第一子接口的父接口和第二子接口的父接口绑定同一第二用途ESI的情况下,将所述同一第二用途ESI确定为与两个子接口对应的所述第一用途ESI;在所述第一路由器PE1的所述第三子接口的父接口和所述第四子接口的父接口绑定同一第二用途ESI的情况下,将所述同一第二用途ESI确定为与所述两个子接口对应的所述第一用途ESI。
  4. 根据权利要求3所述的路由发布方法,其中,所述方法还包括:
    通过所述第一路由器PE1从第三接入接口收到报文,查MAC不中的情况下,向所述第二路由器PE2广播转发,并封装所述第一用途ESI的ESI标签和EVI标签;
    通过所述第二路由器PE2根据EVI标签找到所述EVPN VPLS实例,并根据所述ESI标签找到的ESI与所述EVPN VPLS实例中的第一接入接口和第二接入接口归属的第一用途ESI相同;将所述第二路由器PE2上广播给所述第一接入接口、所述第二接入接口的流量丢弃;
    其中,所述第一路由器PE1收到所述第三接入接口的流量,将学习源地址产生对应的第一源地址的转发出口确定为所述第三接入接口;并产生RT2路由R2-1发送给所述第二路由器 PE2;所述RT2路由R2-1携带所述第三接入接口绑定的所述ESI的ESID和所述第三接入接口的第一ETI字段;
    其中,所述第二路由器PE2收到所述RT2路由R2-1,根据所述第二路由器PE2收到RT2路由R2-1报文里的ESID和ETI找到本地的第一接入接口,将产生第一MAC源地址的转发出口确定为所述第一接入接口所属的ESI和ETI;
    其中,所述第一接入接口对应于所述第一子接口,所述第二接入接口对应于所述第二子接口,所述第三接入接口对应于所述第三子接口,第四接入接口对应于所述第四子接口。
  5. 根据权利要求2或3所述的路由发布方法,其中,所述第一子接口与所述第三子接口满足第二条件,且所述第二子接口与所述第四子接口满足所述第二条件;所述过滤是通过所述EVPN RT-1 per ES路由R1a、R1b的ESI标签进行过滤的;
    所述第二条件为:在第一对子接口中的两个子接口位于不同PE节点上且所述两个子接口的VLAN相同,并且所述两个子接口在中间不途经任何PE节点的情况下可以到达对方,则确定所述两个子接口满足所述第二条件,其中,所述第一对子接口为所述第一子接口和所述第三子接口,或者,所述第一对子接口为所述第二子接口和所述第四子接口。
  6. 根据权利要求1所述的路由发布方法,其中,所述R1a路由还设置为对所述PE1指示所述PE2会进行第二处理因此所述PE1需要进行第一处理,所述第二处理为所述PE2在转发来自于所述第三子接口或所述第四子接口的广播、未知单播或组播BUM报文时,当转发的出口为所述第一子接口或所述第二子接口时进行过滤。
  7. 根据权利要求1或3所述的路由发布方法,其中,所述方法还包括:
    分别为所述第一子接口的父接口、所述第二子接口的父接口指定第一接口标识和第二接口标识,通过所述第二路由器PE2将基于所述第一以太网段标识ESI1和所述第一接口标识、第二接口标识所产生的EVPN RT-1 per EVI路由R11,R12发布给所述第一路由器PE1;
    以及为所述第一路由器PE1上的第三子接口的父接口、第四子接口的父接口分别绑定所述ESI,并分别为所述第三子接口的父接口、所述第四子接口的父接口指定所述第一接口标识和所述第二接口标识,通过所述第一路由器PE1将基于所述ESI和所述接口标识产生的EVPN RT-1 per EVI路由R21,R22发布给所述第二路由器PE2。
  8. 根据权利要求3所述的路由发布方法,其中,所述接口标识在所述EVPN RT-1 per EVI路由的Ethernet Tag ID字段中携带;所述EVPN RT-1 per EVI路由R11、R21携带ESID I1、第一ETI字段、ESI标签和EVI标签,所述EVPN RT-1 per EVI路由R12、R22携带所述ESID I1、第二ETI字段、ESI标签和EVI标签;
    所述EVPN RT-1 per EVI路由与RT4路由共同设置为所述第一路由器PE1和所述第二路由器PE2的DF选举。
  9. 根据权利要求2或3所述的路由发布方法,其中,所述第一接入接口和所述第二接入接口配置同一水平分割属性;所述第三接入接口和第四接入接口配置同一水平分割属性。
  10. 根据权利要求4所述的路由发布方法,其中,所述方法还包括:
    基于所述EVPN VPLS实例产生所述EVPN RT-1 per EVI路由携带的EVI标签,基于ESI实例产生所述EVPN RT-1 per ES路由的ESI标签;
    其中,所述EVI标签用于在本地查询所述EVPN RT-1 per EVI路由的VPLS转发标签,所述ESI标签用于出口PE确定入口AC所属的ESI,以及所述EVI标签对应的EVPN VPLS实例的接入接口,对所述EVPN VPLS实例下,且和所述入口AC归属相同ESI的接入接口进行BUM过滤;
    其中,所述入口AC为所述BUM数据报文被入口PE收到时所经过的AC,入口PE为从接入接口收到所述BUM数据报文的PE,出口PE为从接入接口转发所述BUM数据报文的PE。
  11. 根据权利要求10所述的路由发布方法,其中,所述方法还包括:
    通过所述第一路由器PE1收到所述第二路由器PE2的R11及所述RT4路由R4-1,根据所述R11的ESID I1来找到所述ESI下绑定的二层接口为所述第三接入接口和所述第四接入接口,在确定所述R11的第一ETI字段和本地的所述第三接入接口的ETI字段相同的情况下,构造ESI保护;
    根据所述RT4路由R4-1的DF优先级和本地优先级的比较结果,决策所述第一路由器PE1的DF优先级为non-DF,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级,所述R4-1为PE1接收的PE2发送的RT4路由。
  12. 根据权利要求10所述的路由发布方法,其中,所述方法还包括:
    在所述第一路由器PE1收到所述第二路由器PE2的R12及所述RT4路由R4-1的情况下,根据所述ESID I1确定所述ESI下绑定的二层接口为所述第三接入接口和所述第四接入接口,在确定所述R12的第二ETI字段和本地的第四接入接口的ETI字段相同的情况下,构造ESI保护;
    根据所述RT4路由R4-1的DF优先级和本地优先级的比较结果,决策所述第一路由器PE1的DF优先级为non-DF,其中,所述RT4路由R4-1携带所述第二路由器PE2的DF选举规则和优先级,所述R4-1为PE1接收的PE2发送的RT4路由。
  13. 根据权利要求11或12所述的路由发布方法,其中,所述方法还包括:
    转发报文B1的目的MAC为MAC1,从第五接入接口到所述第一路由器PE1,将查找MAC1的转发出口确定为所述第三接入接口;
    将所述转发报文B1直接从所述第三接入接口转发到BRAS-UP1;
    其中,当所述第三接入接口发生链路故障,切换到备ESI进行转发,并封装EVI标签;
    通过所述第二路由器PE2根据EVI标签到所述EVPN VPLS实例下查找MAC1地址对应的物理地址MAC转发表,确定对应出口为所述第一接入接口。
  14. 根据权利要求1至13任一项所述的路由发布方法,其中,所述方法还包括:
    在所述第一路由器PE1上,所述第三接入接口和所述第四接入接口没有水平分割属性;
    在确定所述第三接入接口和所述第四接入接口所绑定的ESI相同的情况下,判定不转发流量。
  15. 根据权利要求11或12所述的路由发布方法,其中,所述路由R11、R12携带ESID I1,以及第一ETI字段。
  16. 一种路由发布装置,包括:
    第一发布模块,设置为通过第一路由器PE1将基于第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1b发布给第二路由器PE2,其中,所述第一以太网段标识ESI1包括以下至少之一:根据所述第一路由器PE1上的第三子接口、第四子接口和第一条件确定的第一用途ESI,所述第二路由器PE2根据第一子接口、第二子接口和所述第一条件确定的所述第一用途ESI;
    第二发布模块,设置为通过所述第一路由器PE1接收所述第二路由器PE2发布的基于所述第一以太网段标识ESI1产生的EVPN RT-1 per ES路由R1a;
    其中,所述第一子接口与所述第二子接口不属于同一父接口,所述第三子接口与所述第四子接口不属于同一父接口,所述EVPN RT-1 per ES路由R1a设置为指示所述第一路由器PE1进行第一处理,所述第一处理为:当所述PE1转发来自所述第三子接口或第四子接口的BUM报文给所述PE2时,封装所述R1a路由中携带的ESI标签;所述第一用途ESI为用于第一过滤的ESI,所述第一过滤为对所述第一子接口面向所述第三子接口或第四子接口之间的BUM报文转发进行的过滤,或者为对所述第二子接口面向所述第三子接口或第四子接口之间的BUM报文进行的过滤;且所述第一过滤根据所述第一用途ESI的ESI标签来进行。
  17. 一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至15任一项中所述的方法。
  18. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至15任一项中所述的方法。
PCT/CN2022/144414 2022-03-22 2022-12-31 路由发布方法、装置、存储介质及电子装置 WO2023179171A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210283485.4A CN116827862A (zh) 2022-03-22 2022-03-22 路由发布方法、装置、存储介质及电子装置
CN202210283485.4 2022-03-22

Publications (1)

Publication Number Publication Date
WO2023179171A1 true WO2023179171A1 (zh) 2023-09-28

Family

ID=88099778

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/144414 WO2023179171A1 (zh) 2022-03-22 2022-12-31 路由发布方法、装置、存储介质及电子装置

Country Status (2)

Country Link
CN (1) CN116827862A (zh)
WO (1) WO2023179171A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10469361B1 (en) * 2016-09-20 2019-11-05 Juniper Networks, Inc. Loop prevention for EVPN and PBB-EVPN
CN112311643A (zh) * 2019-07-24 2021-02-02 深圳市中兴微电子技术有限公司 一种evpn报文转发方法、系统、存储介质和终端
US20210083901A1 (en) * 2017-12-18 2021-03-18 Telefonaktiebolaget Lm Ericsson (Publ) Provider edge device and method implemented thereon for ethernet virtual private network
CN113055295A (zh) * 2018-08-01 2021-06-29 华为技术有限公司 通信方法、通信设备和通信系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10469361B1 (en) * 2016-09-20 2019-11-05 Juniper Networks, Inc. Loop prevention for EVPN and PBB-EVPN
US20210083901A1 (en) * 2017-12-18 2021-03-18 Telefonaktiebolaget Lm Ericsson (Publ) Provider edge device and method implemented thereon for ethernet virtual private network
CN113055295A (zh) * 2018-08-01 2021-06-29 华为技术有限公司 通信方法、通信设备和通信系统
CN112311643A (zh) * 2019-07-24 2021-02-02 深圳市中兴微电子技术有限公司 一种evpn报文转发方法、系统、存储介质和终端

Also Published As

Publication number Publication date
CN116827862A (zh) 2023-09-29

Similar Documents

Publication Publication Date Title
CN109218178B (zh) 一种报文处理方法及网络设备
EP3211839B1 (en) Split-horizon packet forwarding in a mh-pbb-evpn network
CN111740913B (zh) 在计算机网络内转发网络流量的方法、路由器及可读介质
EP3065342B1 (en) Update of mac routes in evpn single-active topology
US11539619B1 (en) Local-bias forwarding of L2 multicast, unknown unicast, and broadcast traffic for an ethernet VPN
US7463597B1 (en) Spanning tree protocol synchronization within virtual private networks
EP1557006B1 (en) Modified spanning tree protocol for metropolitan area network
US8098656B2 (en) Method and apparatus for implementing L2 VPNs on an IP network
JP2019036976A (ja) 誤設定時に分散中継器制御プロトコル(drcp)動作をサポートするための方法及びシステム
US9860169B1 (en) Neighbor resolution for remote EVPN hosts in IPV6 EVPN environment
US7606939B1 (en) Scaling private virtual local area networks (VLANs) across large metropolitan area networks (MANs).
US8879569B2 (en) Virtual network connection method, network system, and network device
US20080080535A1 (en) Method and system for transmitting packet
US7145878B2 (en) Avoiding overlapping segments in transparent LAN services on ring-based networks
US20130254356A1 (en) Systems and methods for recovery from network changes
EP3188422B1 (en) Traffic black holing avoidance and fast convergence for active-active pbb-evpn redundancy
WO2008019630A1 (en) A method, network and node device for data retransmission in network with double-layer
JP2013168998A (ja) アドレス型キャリアネットワークにおける区別転送
CN104378297A (zh) 一种报文转发方法及设备
EP3402130B1 (en) Information transmission method and device
US8902794B2 (en) System and method for providing N-way link-state routing redundancy without peer links in a network environment
CN112422398B (zh) 消息传输方法及通信装置
WO2018014767A1 (zh) 一种信息确定方法、装置及存储介质
WO2015077878A1 (en) Switched path aggregation for data centers
WO2021093463A1 (zh) 报文转发的方法、第一网络设备以及第一设备组

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22933218

Country of ref document: EP

Kind code of ref document: A1