WO2023284675A1 - 转发表的查找方法及装置、存储介质及电子装置 - Google Patents

转发表的查找方法及装置、存储介质及电子装置 Download PDF

Info

Publication number
WO2023284675A1
WO2023284675A1 PCT/CN2022/104902 CN2022104902W WO2023284675A1 WO 2023284675 A1 WO2023284675 A1 WO 2023284675A1 CN 2022104902 W CN2022104902 W CN 2022104902W WO 2023284675 A1 WO2023284675 A1 WO 2023284675A1
Authority
WO
WIPO (PCT)
Prior art keywords
route
evpn
forwarding table
forwarding
network
Prior art date
Application number
PCT/CN2022/104902
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 中兴通讯股份有限公司
Priority to EP22841311.8A priority Critical patent/EP4366251A1/en
Publication of WO2023284675A1 publication Critical patent/WO2023284675A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Definitions

  • the present disclosure relates to the communication field, in particular, to a forwarding table search method and device, a storage medium, and an electronic device.
  • FIG. 1 is a schematic diagram of the EVPN network in the related technology of the present disclosure. As shown in Figure 1, although the aliasing behavior on PE3 can be successful, but , the packets that are load-balanced by PE3 to PE2 cannot be forwarded to CE1 by PE2.
  • the basic working principle is as follows:
  • VPLS instances are deployed on PE1, PE2, and PE3.
  • the VPLS of PE1 and PE2 are independent broadcast domains.
  • the VPLS of PE1 joins IRB1, and the VPLS of PE2 joins IRB2.
  • PE1 ⁇ PE2 only communicate with PE3 at Layer 2.
  • IRB1 on PE1 and IRB2 on PE2 are deployed.
  • PE1 and PE2 respectively generate RT1 routes and advertise them to PE3.
  • the corresponding ESI forwarding is formed on PE3, and the next hops are PE1 and PE2.
  • the existing three-layer ESI technology can effectively solve the problem of CE three-layer dual-homing network side protection.
  • ESI when ESI is active, the traffic from PE3 to CE1 will be pushed to PE2. Since there is no local route to CE1 on PE2, The MAC forwarding table of VPLS cannot be found according to the next hop, so it cannot be forwarded from ESI to CE1.
  • the embodiments of the present disclosure provide a forwarding table lookup method and device, a storage medium and an electronic device to at least solve the problem of pushing the traffic from PE3 to CE1 to PE2 when the ESI service is busy, because there is no traffic from PE2 to CE1
  • the MAC forwarding table of VPLS cannot be found according to the next hop, resulting in the problem that PE3 cannot forward from ESI to CE1.
  • a method for searching a forwarding table including: instructing the virtual routing and forwarding table VRF to register with the Ethernet virtual private network EVPN, so that EVPN generates an RT5 route corresponding to a service route, wherein the The RT5 route carries the IP prefix Prefiex1; when it is detected that the next-hop IP address of the service route is IP1, the media access control MAC address M1 corresponding to IP1 resolved through the address resolution protocol ARP is used as the RT5 route Overlay Index of the RT5 route, and publish the RT5 route to the EVPN network; when PE3 receives the RT5 route, it generates a routing entry according to the Prefiex1 carried in the RT5 route, and according to the RT5 route
  • the overlapping index M1 searches the MAC forwarding table in the auxiliary broadcast domain SBD of the IP-VRF instance; wherein, the overlapping index is an index used for iteratively looking up the packet in the Overlay
  • a forwarding table search device including: a processing module configured to instruct the virtual routing and forwarding table VRF to register with the Ethernet virtual private network EVPN, so that EVPN generates service routing correspondence The RT5 route, wherein, the IP prefix Prefiex1 is carried in the RT5 route; the publishing module is configured to resolve the address resolution protocol (ARP) and The media access control MAC address M1 corresponding to IP1 is used as the Overlay Index of the RT5 route, and the RT5 route is published to the EVPN network; the search module is set to, when PE3 receives the RT5 route, according to the RT5 route The Prefiex1 carried in the above generates a routing table entry, and searches the MAC forwarding table in the auxiliary broadcast domain SBD of the IP-VRF instance according to the overlapping index M1 of the RT5 route; wherein, the overlapping index is in the overlapping network Overlay Network
  • a computer-readable storage medium where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above forwarding table when running. Find out how.
  • an electronic device including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the above-mentioned processor executes the above-mentioned translation through the computer program. Published lookup method.
  • the virtual routing forwarding table VRF is instructed to register in the Ethernet virtual private network EVPN, so that EVPN generates the RT5 route corresponding to the service route, wherein the RT5 route carries the IP prefix Prefiex1; when the service route is detected When the next-hop IP address is IP1, the MAC address M1 corresponding to IP1 resolved through the address resolution protocol ARP is used as the Overlay Index of the RT5 route, and the RT5 route is published to the EVPN network ;
  • PE3 receives the RT5 route, generate a routing table entry according to the Prefiex1 carried in the RT5 route, and search for the MAC in the auxiliary broadcast domain SBD of the IP-VRF instance according to the overlapping index M1 of the RT5 route A forwarding table; wherein, the overlapping index is an index used for iterative table lookup of messages in the Overlay Network.
  • the above technical solution solves the problem that when the ESI service is busy, the traffic from PE3 to CE1 will be pushed to PE2. Since there is no local route to CE1 on PE2, the VPLS MAC forwarding table cannot be found according to the next hop, resulting in The problem that PE3 cannot forward data from ESI to CE1. Furthermore, by adopting the above technical solution, the traffic from PE3 to CE1 can be forwarded to CE1 through the ESI.
  • FIG. 1 is a schematic diagram of an EVPN network in the related technology of the present disclosure
  • Fig. 2 is the block diagram of the hardware structure of the computer terminal of the search method of the forwarding table of the embodiment of the present disclosure
  • Fig. 3 is a flow chart of a method for searching a forwarding table according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram (1) of a three-layer dual-homing network of a forwarding table according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram (2) of a three-layer dual-homing network of a forwarding table according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a multiple CE dual-homing network of a forwarding table according to an embodiment of the present disclosure
  • Fig. 7 is a structural block diagram of an apparatus for searching a forwarding table according to an embodiment of the present disclosure.
  • FIG. 2 is a block diagram of a hardware structure of a computer terminal according to a method for searching a forwarding table according to an embodiment of the present disclosure.
  • the computer terminal can include one or more (only one is shown in Figure 2) processors 102 (the processor 102 can include but not limited to a microprocessor (Microprocessor Unit, MPU for short) or programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 configured to store data, in an exemplary embodiment, the above-mentioned computer terminal may also include a transmission device 106 and an input/output device 108 configured as a communication function.
  • MPU Microprocessor Unit
  • PLD programmable logic device
  • the above-mentioned computer terminal may also include a transmission device 106 and an input/output device 108 configured as a communication function.
  • the structure shown in FIG. 2 is only for illustration, and it does not limit the structure of the above computer terminal.
  • the computer terminal may also include more or less components than those shown in FIG. 2 , or have a different configuration with functions equivalent to those shown in FIG. 2 or more functions than those shown in FIG. 2 .
  • the memory 104 can be set to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the forwarding table search method in the embodiment of the present disclosure, and the processor 102 runs the computer program stored in the memory 104, Thereby executing various functional applications and data processing, that is, realizing the above-mentioned method.
  • the memory 104 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 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to a computer terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is configured to receive or transmit data via a network.
  • the specific example of the above-mentioned network may include a wireless network provided by the communication provider of the computer terminal.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is configured to communicate with the Internet in a wireless manner.
  • RF radio frequency
  • FIG. 3 is a flowchart of a method for searching a forwarding table according to an embodiment of the present disclosure. The process includes the following steps:
  • Step S302 instructing the virtual routing and forwarding table VRF to register with the Ethernet virtual private network EVPN, so that EVPN generates the RT5 route corresponding to the service route, wherein the RT5 route carries the IP prefix Prefiex1;
  • one type of the above RT5 routing can be EVPN IP prefix routing.
  • Step S304 when it is detected that the next-hop IP address of the service route is IP1, the media access control MAC address M1 corresponding to IP1 resolved through the address resolution protocol ARP is used as the Overlay Index of the RT5 route , and publish the RT5 route to the EVPN network;
  • Step S306 when PE3 receives the RT5 route, generate a routing table entry according to the Prefiex1 carried in the RT5 route, and send it to the secondary broadcast domain SBD of the IP-VRF instance according to the overlapping index M1 of the RT5 route Finding the MAC forwarding table; wherein, the overlapping index is an index used for iteratively looking up the message in the Overlay Network.
  • the virtual routing and forwarding table VRF instruct the virtual routing and forwarding table VRF to register in the Ethernet virtual private network EVPN, so that EVPN generates the RT5 route corresponding to the service route, wherein, the RT5 route carries the IP prefix Prefiex1; when the service route is detected When the next-hop IP address is IP1, the MAC address M1 corresponding to IP1 resolved through the address resolution protocol ARP is used as the Overlay Index of the RT5 route, and the RT5 route is published to the EVPN network ;
  • PE3 receives the RT5 route, generate a routing table entry according to the Prefiex1 carried in the RT5 route, and search for the MAC in the auxiliary broadcast domain SBD of the IP-VRF instance according to the overlapping index M1 of the RT5 route A forwarding table; wherein, the overlapping index is an index used for iterative table lookup of messages in the Overlay Network.
  • the above technical solution solves the problem that when the ESI service is busy, the traffic from PE3 to CE1 will be pushed to PE2. Since there is no local route to CE1 on PE2, the VPLS MAC forwarding table cannot be found according to the next hop, resulting in The problem that PE3 cannot forward data from ESI to CE1. Furthermore, by adopting the above technical solution, the traffic from PE3 to CE1 can be forwarded to CE1 through the ESI.
  • the SBD is allowed to import the routes of BD1 and BD2.
  • the SBD does not advertise the inclusive multicast Ethernet marked IMET route to PE1 or PE2.
  • the IP address of the IRB interface of the SBD is in unnumbered format, and the IRB interface is bound to the IP-VRF instance.
  • VRF virtual routing and forwarding table
  • EVPN generates the RT5 route corresponding to the service route
  • it also includes: indicating that the PE1 and PE2 are dual-homed to CE1, and the AC1, AC2 of PE2 also belongs to the same Ethernet segment ESI1.
  • the virtual route forwarding table VRF before the virtual route forwarding table VRF is registered in the Ethernet virtual private network EVPN, so that EVPN generates the RT5 route corresponding to the service route, it also includes: instructing PE1 and PE2 to generate the RT2 route for the MAC address M1 respectively, and The RT2 route is published to the EVPN network, and PE3 receives the RT2 routes of PE1 and PE2; wherein, the RT2 route is published by PE1 or PE2 for the BD1 or BD2 respectively, and the RT-2
  • the route carries the identifier ESI1 of the ES1; the PE3 forms a MAC forwarding entry according to the received RT2 route, wherein the MAC forwarding entry implements an aliasing function through the ESI1.
  • the EVPN before the virtual routing and forwarding table VRF is registered in the Ethernet virtual private network EVPN, so that the EVPN generates the RT5 route corresponding to the service route, it also includes: PE1 and PE2 generate the RT1 route for the ESI1 and the EVPN instance, wherein the The RT1 route carries ES information and label forwarding information; and the RT1 route is published to the EVPN network.
  • RT1 route after publishing the RT1 route to the EVPN network, it further includes: PE3 receives the RT1 route published by PE1 and PE2; The above RT1 routing and forwarding information forms aliasing Aliasing.
  • this disclosure proposes a CE MAC that carries dual-homing PEs in EVPN RT5 routes.
  • the dual-homing PE publishes the RT5 route for the private network route IP3 received from the CE, check that the next hop of the IP3 route is 10.2, and specify the router's MAC of the route as the ARP from 10.2
  • the MAC (CE MAC) obtained in the CE1 is published to the EVPN network, and the remote end queries the EVPN Layer 2 unicast forwarding according to the MAC information; among them, the interface int1/int2 of 10.2/20.2 on CE1 has the same MAC, and this MAC is called VA -MAC (Virtual Appliance MAC).
  • the Router's MAC in the RT-5 route in the SBD instance associated with the IP-VRF to which the RT-5 route belongs Check MAC forwarding; wherein, the SBD instance associated with the IP-VRF, that is, its IRB interface is bound to the SBD of the IP-VRF instance.
  • FIG. 4 is a schematic diagram (1) of a three-layer dual-homing network of a forwarding table according to an embodiment of the present disclosure.
  • the present disclosure provides a method for implementing three-layer PE dual-homing through CEMAC, including:
  • Step 1 Configure EVPNVPLS Layer 2 instances on PE1, PE2, and PE3.
  • BD1 and BD2 are independent broadcast domains, and SBD is a secondary broadcast domain. SBD can import routes advertised by BD1 and BD2, but SBD itself does not need to advertise routes;
  • PE1 It is dual-homed to CE1 with PE2, AC1 of PE1, and AC2 of PE2 belong to the Ethernet segment ES I1; each ES instance is assigned an ESID;
  • Step 2 PE1 configures an independent gateway IRB1 (10.1) to join VPLS1 and VRF1, and directly connects to CE1's int1 (10.2) on the same network segment; PE2 configures an independent gateway IRB2 (20.1) to join VPLS2 and VRF2, and CE1's int2 (20.2) The network segment is directly connected.
  • PE3 configures IRB to join VPLS3 and VRF3, without any gateway and no IP address; PE1 and CE1 establish an EBGP neighbor relationship, and advertise CE1 service route 50.0/24 to PE1; CE2 behind PE3 needs to communicate with IP3 described in CE1's service route;
  • Step 3 PE1, PE2, and PE3 respectively generate RT3 routes for BD1, BD2, and SBD and publish them to the EVPN network.
  • PE3 receives the RT3 routes of PE1 and PE2;
  • PE3 forms a broadcast domain based on the received RT3 routes; the network side of the broadcast domain SBD Including: PE1 and PE2;
  • Step 4 PE1 and PE2 generate RT1 routes for the ES and EVPN instances of the device, RT1 routes carry ES information and label forwarding information, and publish them to the EVPN network;
  • Step 5 PE3 receives the RT1 route published by PE1 and PE2, forms ESI protection forwarding according to the label information and ESID, and the next hop points to PE1/PE2 respectively;
  • Step 6 PE1, PE2, and PE3 deploy service VRFs as VRF1, VRF2, and VRF3 respectively, and the inbound and outbound RT attributes are the same (100:100). IRB1 of PE1 is added to VRF1, IRB2 of PE2 is added to VRF2, and the corresponding interface of the H4 host of PE3 is added to VRF3. IRB3 joins VRF3;
  • Step 7 Ping IRB1 of PE1 on CE1, int1 of CE1 and IRB1 of PE1 learn ARP from each other successfully; ping IRB2 of PE2 on CE1, int2 of CE1 and IRB2 of PE1 learn ARP from each other successfully; The VA_MAC address MAC1 of 10.2; on PE2, IRB2 learns the ARP of CE1's VA_MAC address MAC1; the AC ports under VPLS of PE1 and PE2 respectively learn CE1's VA_MAC address as MAC1, and form a MAC unicast forwarding table pointing to ESI1 bound to their respective ACs; AC1 of PE1 generates the RT2 route of MAC1 carrying ESI information (ESI1) and publishes it to PE3; AC2 of PE2 generates the RT2 route of MAC1 carrying ESI information (ESI1) and publishes it to PE3;
  • Step 8 Establish a direct EBGP neighbor relationship between CE1 and PE1 using the IP addresses of IRB1 and int1, and advertise CE1's service route 50.2/32 to PE1;
  • Step 9 PE1 receives the service route (50.2/32) from the IRB1 port, and adds it to the VRF1 routing table to which IRB1 belongs to form a local routing forwarding table.
  • the outbound interface is IRB1, and the next hop is 10.2;
  • Step 10 The VRF virtual routing forwarding table (virtual routing forwarding) is registered with EVPN, EVPN generates the corresponding RT5 route for the service route (50.0/24), and the RT5 route carries the IP prefix (50.0/24) and vpnRT (100:100) attribute, check that the next hop of the service route is 50.2, the exit is IRB1, and the corresponding ARP is MAC1, take the ARP (MAC1) corresponding to (50.2/32) learned by IRB as the router's MAC of the RT5 route, and publish the RT5 route to the EVPN network;
  • VRF virtual routing forwarding table virtual routing forwarding
  • Step 11 PE2 receives the RT5 route, forms a routing table for this, and the next hop is PE1;
  • Step 12 PE3 receives the RT5 route, judges that the outbound RT of the RT5 route is the same as the inbound RT of the VRF, and enters the route into the small table to form a VRF routing table, and according to the VPLS instance associated with the IRB interface under the VRF; Overlay Index points to the MAC1 unicast forwarding table of VPLS;
  • Step 13 The destination IP of the service message sent by H4 is service IP3 (50.2).
  • PE3 receives the message from the VRF entrance and looks up the table from VRF3.
  • the routing Overlay Index is forwarded by MAC1 of VPLS3.
  • the corresponding exit of MAC1 in VPLS3 unicast forwarding is ESI1 and ESI1 forward the next hops to PE1 and PE2 respectively, encapsulate the routed packets into Ethernet packets, and forward the load from ESI to PE1 and PE2;
  • Step 14 PE1 receives the Layer 2 forwarded message, checks that the corresponding egress of MAC1 is ESI1 bound to AC1, and forwards it from AC1 to CE1;
  • Step 15 PE2 receives the Layer 2 forwarded message, checks that the corresponding egress of MAC1 is ESI1 bound to AC2, and forwards it from AC2 to CE1;
  • Step 16 CE1 performs Layer 2 termination according to VA-MAC after receiving the message, and performs destination IP (50.2/32) analysis, and communicates with host H1 (50.2);
  • VRF1, VRF2, and VRF3 in step 5 above belong to the same service VPN, and deploy the same ingress and egress RT attributes.
  • This embodiment provides a method for implementing dual-homing of three-layer PEs through CEMAC.
  • PE1, PE2, and PE3 are respectively deployed with VPLS+IRB and VRF, and VRF is deployed with the same inbound and outbound RT (100:100); IRBs are added to the VRFs of their respective PEs;
  • PE1 VPLS1 of PE2 generates broadcast domain BD1, VPLS2 of PE2 generates broadcast domain BD2, and VPLS3 of PE3 establishes a secondary broadcast domain SBD;
  • PE1 and PE2 are dual-homed to interfaces int1 and int2 of CE1, and the same interface MAC address is configured as VA- MAC (MAC1);
  • the int1 direct connection port on PE1 is added to VPLS1 as AC1 of BD1,
  • the IRB1 interface address of VPLS configured on PE1 is IP1 (10.1), and the int1 interface address IP2 (10.2) of CE1 is the direct connection network segment;
  • PE2 Add VPLS
  • the method flow includes the following steps:
  • Step 101 Configure EVPN VPLS Layer 2 instances on PE1, PE2, and PE3.
  • VPLS1 of PE1 generates broadcast domain BD1
  • VPLS2 of PE2 generates broadcast domain BD2
  • VPLS3 of PE3 establishes a secondary broadcast domain SBD;
  • configure AC1 of PE1 and AC2 of PE2 belong to the same Ethernet segment ES I1;
  • PE1 and PE2 specify an ESID I1 (00.10.32.33.44.55.66.77.88.99) for the ES I1 instance;
  • Step 102 PE1 configures the independent gateway IRB1 (10.1) to join VPLS1 and VRF1, and directly connects to the same network segment as int1 (10.2) of CE1;
  • Step 103 PE2 configures the independent gateway IRB2 (20.1) to join VPLS2 and VRF2, and directly connects to the same network segment as int2 (20.2) of CE1;
  • Step 104 PE3 configures IRB to join VPLS3 and VRF3, and does not make any gateway without IP address;
  • Step 105 PE1 and CE1 establish an EBGP neighbor relationship, and advertise CE1 service route 50.0/24 to PE1;
  • Step 106 PE1 generates RT1 routes for VPLS1 and ES I1 and publishes them to PE3; PE2 generates RT1 routes for VPLS2 and ESI1 and publishes them to PE3; PE3 receives RT1 routes released by PE1 and PE2 to form ESI forwarding, and the next hops are PE1 and PE2 respectively ;
  • Step 107 The ping operation triggers int2 of CE1 and int2 of PE1 to learn ARP, the ARP exit of PE1 learning IP2 (10.2) is IRB1, and the corresponding MAC is VA-MAC (MAC1); the ARP exit of PE2 learning IP4 (20.2) is IRB2, the corresponding MAC is VA-MAC (MAC1); MAC1 is learned from AC1 of PE1, and the forwarding to MAC1 is ESI1 bound to AC1, and an EVPN RT2 MAC route carrying the ESI1 information of AC1 is issued to PE3; AC2 of PE2 Go to MAC1, and the forwarding to MAC1 is ESI1 bound to AC2;
  • Step 108 PE1 receives service route 50.0/24 from the ebgp neighbor of CE1, adds the route to the VRF1 routing table to which IRB1 belongs, and the next hop is int1 (10.2); and generates EVPN RT5 route carrying prefix information (50.0/24) and RT attribute (100:100); at the same time, find the MAC1 corresponding to (10.2) learned through the ARP protocol on the irb interface, and publish the MAC (MAC1) of the next hop (10.2) of the route as the router's MAC of the RT5 route to EVPN The internet;
  • Step 109 PE3 receives the route prefix of (50.0/24) published by PE1 to RT5, enters the VRF3 routing table according to the RT attribute 100:100, and finds the VPLS3 associated with IRB3 of VRF3, and forms a VRF3 route (50.0
  • the overlay index of /24) is the MAC1 forwarding table of VPLS3; the forwarding of MAC1 is ESI1;
  • Step 110 CE1 and CE2 communicate with each other, and the host H2 (100.2/32) of CE2 sends a packet to the host H1 (50.2/32) behind CE1;
  • Step 111 PE1 receives the message of CE2 from the interface of VRF3, checks the overlay index of the routing prefix (50.0/24) in VRF3 for MAC1 of VPLS3, checks the unicast forwarding of MAC1 under VPLS3;
  • Step 112 The egress corresponding to MAC1 under VPLS3 is ESI1, and the next hops are PE1 and PE2 respectively, re-encapsulating the Ethernet header of the packet and forwarding it from Layer 2 ESI, and pushing the traffic to PE1 and PE2 respectively;
  • Step 113 PE1 receives CE2's message with the destination MAC as MAC1, checks that MAC1's forwarding egress is ESI1 bound to AC1, and forwards it from AC1 to CE1;
  • Step 114 PE2 receives CE2's message destination MAC as MAC1, checks that MAC1's forwarding egress is ESI1 bound to AC2, and forwards it from AC2 to CE1;
  • Step 115 CE1 performs Layer 2 termination according to VA-MAC (MAC1) after receiving the message, and performs destination IP (50.2/32) resolution, and communicates with host H1 (50.2).
  • VA-MAC Layer 2 termination according to VA-MAC (MAC1) after receiving the message, and performs destination IP (50.2/32) resolution, and communicates with host H1 (50.2).
  • the embodiment of the present disclosure is a method for realizing dual-homing of three layers of PEs through CE MAC. Except for special instructions, this description is the same as that of embodiment 1; (10.3/24), int21 (20.3/24) configure the MAC of the same interface as MAC2, and directly connect the ports as AC11 of PE1 VPLS1 and AC21 of PE2; configure AC11 of PE1 and AC21 of PE2 to join ES I2 (00.10.20.30.40.50 .70.80.90); The host H2 (101.2) of CE2 will intercommunicate (51.2) with the host H3 of CE3;
  • Fig. 6 is a schematic diagram of a plurality of CE dual-homing networks according to the forwarding table of an embodiment of the present disclosure, as shown in Fig. 6 , The flow process of the method of this implementation comprises the following steps:
  • Step 201 configure AC11 of PE1, and AC21 of PE2 belong to the Ethernet segment ESI2; PE1 and PE2 specify an ESID I2 ((00.10.20.30.40.50.70.80.90)) for the ESI2 instance;
  • Step 202 Unless otherwise specified, this step is the same as step 101;
  • Step 203 Unless otherwise specified, this step is the same as step 102;
  • Step 204 Unless otherwise specified, this step is the same as step 103;
  • Step 205 PE1 and CE3 establish an EBGP neighbor relationship, and publish CE3 service route 51.0/24 to PE1;
  • Step 207 The ping operation triggers int21 and int11 of CE3 to learn ARP, the ARP exit learned by PE1 to IP5 (10.3) is IRB1, and the corresponding MAC is MAC2; the ARP exit learned by PE2 to IP6 (20.3) is IRB2, and the corresponding MAC is MAC2; AC11 of PE1 learns MAC2, generates MAC2's Layer 2 forwarding egress as ESI2 bound to AC11, and generates EVPN RT2 route carrying AC11's ESI2 information and publishes it to PE3; PE2's AC21 learns MAC2; generates MAC2's Layer 2 forwarding egress Esi2 bound for AC21
  • Step 208 PE1 receives CE3's service route 51.0/24 from the IRB1 port, adds the route to the VRF1 routing table to which IRB1 belongs, the next hop is (10.3), and generates EVPNRT5 routes carrying prefix information (51.0/24) and RT attributes ( 100:100); Find the ARP (MAC2) corresponding to (10.3) learned by irb1, and publish the MAC2 corresponding to the next hop (10.3) of the RT5 route as the router's MAC of the RT5 route to the EVPN network;
  • Step 209 PE3 receives the route prefix (51.0/24) published by PE1 to RT5, enters the VRF3 routing table according to the RT attribute 100:100, and finds the VPLS3 associated with IRB3 of VRF3, and forms the VRF3 route (51.0
  • the overlay index of /24) is the MAC2 forwarding table of VPLS3; the forwarding of MAC2 is ESI2;
  • Step 210 CE3 and CE2 intercommunicate, and the host H2 (101.2/32) of CE2 sends a packet to the host H3 (51.2/32) behind CE3;
  • Step 211 PE3 receives the message of CE2 from the interface of VRF3, checks the overlay index of route prefix (51.0/24) to VRF3 for MAC2 of VPLS3, checks the unicast forwarding of MAC2 under VPLS3;
  • Step 212 The egress corresponding to MAC2 under VPLS3 is ESI2, and the next hops are PE1 and PE2 respectively, and the packet is re-encapsulated with the Ethernet header and forwarded from Layer 2 ESI, and the traffic is pushed to PE1 and PE2 respectively;
  • Step 213 PE1 receives the message from CE2 with the destination MAC as MAC2, checks that the forwarding egress of MAC1 is ESI2 bound to AC11, and forwards it from AC11 to CE3;
  • Step 214 PE2 receives CE2's message destination MAC as MAC2, checks that MAC2's forwarding egress is ESI2 bound to AC21, and forwards it from AC21 to CE3;
  • Step 215 After receiving the message, CE3 performs Layer 2 termination according to VA-MAC (MAC2), and performs destination IP (51.2/32) resolution, and communicates with host H1 (51.2).
  • VA-MAC VA-MAC
  • the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also 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 the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods of various embodiments of the present disclosure.
  • a device for searching a forwarding table is also provided, and the device is configured to implement the above embodiments and preferred implementation modes, and those that have already been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that realizes a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
  • Fig. 7 is a structural block diagram of a device for searching a forwarding table according to an embodiment of the present disclosure, the device includes:
  • the processing module 72 is configured to instruct the virtual routing and forwarding table VRF to register with the Ethernet virtual private network EVPN, so that the EVPN generates an RT5 route corresponding to the service route, wherein the RT5 route carries the IP prefix Prefiex1;
  • the issuing module 74 is configured to use the media access control MAC address M1 corresponding to IP1 resolved by the address resolution protocol ARP as the overlap of the RT5 route when the next-hop IP address of the service route is detected to be IP1 Index the Overlay Index and publish the RT5 route to the EVPN network;
  • the search module 76 is configured to generate a routing table entry according to the Prefiex1 carried in the RT5 route when PE3 receives the RT5 route, and send an auxiliary broadcast to the IP-VRF instance according to the overlapping index M1 of the RT5 route Look up the MAC forwarding table in the domain SBD; wherein, the overlapping index is an index used for iterative table lookup for messages in the Overlay Network.
  • the virtual routing forwarding table VRF instructs the virtual routing forwarding table VRF to register in the Ethernet virtual private network EVPN, so that EVPN generates the RT5 route corresponding to the service route, wherein the RT5 route carries the IP prefix Prefiex1; when the service route is detected When the next-hop IP address is IP1, the MAC address M1 corresponding to IP1 resolved through the address resolution protocol ARP is used as the Overlay Index of the RT5 route, and the RT5 route is published to the EVPN network ;
  • PE3 receives the RT5 route, generate a routing table entry according to the Prefiex1 carried in the RT5 route, and search for the MAC in the auxiliary broadcast domain SBD of the IP-VRF instance according to the overlapping index M1 of the RT5 route A forwarding table; wherein, the overlapping index is an index used for iterative table lookup of messages in the Overlay Network.
  • the above technical solution solves the problem that when the ESI service is busy, the traffic from PE3 to CE1 will be pushed to PE2. Since there is no local route to CE1 on PE2, the VPLS MAC forwarding table cannot be found according to the next hop, resulting in The problem that PE3 cannot forward data from ESI to CE1. Furthermore, by adopting the above technical solution, the traffic from PE3 to CE1 can be forwarded to CE1 through the ESI.
  • the processing module 72 is also configured to configure an EVPN VPLS layer 2 instance BD1 for PE1, and configure an EVPN VPLS layer 2 instance BD2 for PE2, wherein BD1 and BD2 do not import each other's routes.
  • the search module 76 is also configured to instruct the SBD to allow importing the routes of BD1 and BD2.
  • the search module 76 is also configured to instruct the SBD not to issue an inclusive multicast Ethernet tagged IMET route to PE1 or PE2.
  • the search module 76 is also configured to indicate that the IP address of the IRB interface of the SBD is in unnumbered format, and the IRB interface is bound to the IP-VRF instance.
  • the processing module 72 is further configured to instruct the PE1 and the PE2 to dual-home to CE1, and the AC1 of the PE1 and the AC2 of the PE2 belong to the same Ethernet segment ESI1.
  • the processing module 72 is also configured to instruct PE1 and PE2 to generate RT2 routes for the MAC address M1 respectively, and publish the RT2 routes to the EVPN network, and PE3 receives the RT2 routes of PE1 and PE2 ;
  • the RT2 route is issued by PE1 or PE2 for the BD1 or BD2 respectively, and the RT-2 route carries the identifier ESI1 of the ES1;
  • PE3 forms a MAC forwarding entry according to the received RT2 route , wherein the MAC forwarding entry implements the Aliasing function through the ESI1.
  • the processing module 72 is also configured to instruct PE1 and PE2 to generate RT1 routes for the ESI1 and EVPN instances, wherein the RT1 routes carry ES information and label forwarding information; and publish the RT1 routes to the EVPN network.
  • the search module 76 is also configured to instruct PE3 to receive the RT1 route released by PE1 and PE2; PE3 forms a mix Stack Aliasing.
  • the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
  • the above-mentioned computer-readable storage medium may include but 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, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • each module or each step of the above-mentioned disclosure can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present disclosure is not limited to any specific combination of hardware and software.

Landscapes

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

Abstract

本公开提供了一种转发表的查找方法及装置、存储介质及电子装置,其中,上述方法包括:指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。

Description

转发表的查找方法及装置、存储介质及电子装置
本公开要求于2021年7月14日提交中国专利局、申请号为202110797837.3、发明名称“转发表的查找方法及装置、存储介质及电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开。
技术领域
本公开涉及通信领域,具体而言,涉及一种转发表的查找方法及装置、存储介质及电子装置。
背景技术
在EVPN网络的三层路由通过三层ESI来实现混叠时,遇到了问题,图1是本公开相关技术中EVPN网络示意图,如图1所示,虽然PE3上的混叠行为可以成功,但是,被PE3负荷分担到PE2节点上的报文却无法被PE2转发给CE1,基本工作原理为:
PE1、PE2、PE3部署VPLS实例,PE1、PE2的VPLS为独立广播域,PE1的VPLS加入IRB1,PE2的VPLS加入IRB2;PE1\PE2各自只和PE3二层互通,PE1上IRB1和PE2上IRB2部署相同ESI(ESI1),PE1和PE2分别产生RT1路由发布给PE3,PE3上形成对应的ESI转发,下一跳为PE1和PE2。
现有三层ESI技术,能有效解决CE三层双归的网络侧保护的问题,但是当ESI多活情况下,PE3到CE1的流量会推到PE2上,PE2上由于没有到CE1的本地路由,不能根据下一跳来找到VPLS的MAC转发表,因此无法从ESI转发给CE1。
针对相关技术,在ESI业务繁忙的情况下,PE3到CE1的流量推到PE2上,由于PE2上没有到CE1的本地路由,不能根据下一跳来找到VPLS的MAC转发表,导致PE3无法从ESI转发给CE1的问题,目前尚未提出有效的解决方案。
因此,有必要对相关技术予以改良以克服相关技术中的所述缺陷。
发明内容
本公开实施例提供了一种转发表的查找方法及装置、存储介质及电子装置,以至少解决在ESI业务繁忙的情况下,PE3到CE1的流量推到PE2上,由于PE2上没有到CE1的本地路由,不能根据下一跳来找到VPLS的MAC转发表,导致PE3无法从ESI转发给CE1的问题。
根据本公开实施例的一方面,提供一种转发表的查找方法,包括:指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
根据本公开实施例的另一方面,还提供了一种转发表的查找装置,包括:处理模块,设置为指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应 的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;发布模块,设置为在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;查找模块,设置为在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
根据本公开实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述转发表的查找方法。
根据本公开实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述转发表的查找方法。
通过本公开,指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。采用上述技术方案,解决了在ESI业务繁忙的情况下,PE3到CE1的流量会推到PE2上,由于PE2上没有到CE1的本地路由,不能根据下一跳来找到VPLS的MAC转发表,导致PE3无法从ESI转发给CE1的问题。进而采用上述技术方案,可以使得PE3到CE1的流量通过ESI转发给CE1。
附图说明
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示例性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:
图1是本公开相关技术中EVPN网络示意图;
图2是本公开实施例的转发表的查找方法的计算机终端的硬件结构框图;
图3是根据本公开实施例的转发表的查找方法的流程图;
图4是根据本公开实施例的转发表的三层双归网络示意图(一);
图5是根据本公开实施例的转发表的三层双归网络示意图(二);
图6是根据本公开实施例的转发表的多个CE双归网络示意图;
图7是根据本公开实施例的转发表的查找装置的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开 一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本申请实施例中所提供的方法实施例可以在计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图2是本公开实施例的转发表的查找方法的计算机终端的硬件结构框图。如图2所示,计算机终端可以包括一个或多个(图2中仅示出一个)处理器102(处理器102可以包括但不限于微处理器(Microprocessor Unit,简称是MPU)或可编程逻辑器件(Programmable logic device,简称是PLD))和设置为存储数据的存储器104,在一个示例性实施例中,上述计算机终端还可以包括设置为通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图2所示的结构仅为示意,其并不对上述计算机终端的结构造成限定。例如,计算机终端还可包括比图2中所示更多或者更少的组件,或者具有与图2所示等同功能或比图2所示功能更多的不同的配置。
存储器104可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的转发表的查找方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输设备106设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。
在本实施例中提供了一种转发表的查找方法,图3是根据本公开实施例的转发表的查找方法的流程图,该流程包括如下步骤:
步骤S302,指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;
需要说明的是,上述RT5路由的一种类型可以是EVPN IP前缀路由。
步骤S304,在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;
步骤S306,在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1 产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
通过上述步骤,指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。采用上述技术方案,解决了在ESI业务繁忙的情况下,PE3到CE1的流量会推到PE2上,由于PE2上没有到CE1的本地路由,不能根据下一跳来找到VPLS的MAC转发表,导致PE3无法从ESI转发给CE1的问题。进而采用上述技术方案,可以使得PE3到CE1的流量通过ESI转发给CE1。可选的,在执行上述步骤S302以前,还需要为PE1配置EVPN VPLS二层实例BD1,为PE2配置EVPNVPLS二层实例BD2,其中,BD1与BD2互相不导入对方的路由。
可选的,上述步骤S306中,所述SBD允许导入BD1和BD2的路由。
可选的,上述步骤S306中,所述SBD不往PE1或PE2发布包容式组播以太标记IMET路由。
可选的,上述步骤S306中,所述SBD的IRB接口的IP地址为unnumbered形式,且所述IRB接口与所述IP-VRF实例相绑定。
可选的,虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由之前,还包括:指示所述PE1和PE2双归到CE1,所述PE1的AC1、PE2的AC2同属于一个以太网分段ESI1。
可选的,虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由之前,还包括:指示PE1、PE2分别为所述MAC地址M1产生RT2路由,并将所述RT2路由发布到所述EVPN网路,以及PE3接收PE1和PE2的所述RT2路由;其中,所述RT2路由是PE1或PE2分别为所述BD1或BD2发布的,且所述RT-2路由携带所述ES1的标识ESI1;PE3根据收到的所述RT2路由形成MAC转发表项,其中,所述MAC转发表项通过所述ESI1实现混叠Aliasing功能。
可选的,虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由之前,还包括:PE1和PE2为所述ESI1和EVPN实例产生RT1路由,其中,所述RT1路由携带ES信息和标签转发信息;将所述RT1路由发布到EVPN网络。
可选的,将所述RT1路由发布到EVPN网络之后,还包括:PE3收到PE1和PE2发布的所述RT1路由;PE3根据所述MAC地址M1的MAC转发表项中的所述ESI1与所述RT1路由转发信息形成混叠Aliasing。
为了更好的理解,在一个完整的实施例中,本公开提出了一种在EVPN RT5路由中携带双归PE的CE MAC,现有成熟二层ESI基础之上,实现三层双归通过二层ESI来实现转发的方法;当双归PE为从CE收到的私网路由IP3发布RT5路由时,检查该IP3路由的下一跳为10.2,则将路由的router’s MAC指定为从10.2的ARP中获得的MAC(CE MAC)并发布到EVPN网 络,远端根据该MAC信息查询EVPN二层单播转发;其中,CE1上10.2/20.2所属接口int1/int2具有相同的MAC,此MAC称为VA-MAC(Virtual Apliance MAC)。
其中,为了更好的理解上述远端根据该MAC信息查询EVPN二层单播转发,具体的,根据RT-5路由中的Router’s MAC在与该RT-5路由所属IP-VRF相关联的SBD实例中查MAC转发;其中,与该IP-VRF相关联的SBD实例,即其IRB接口绑定了所述IP-VRF实例的SBD。
图4是根据本公开实施例的转发表的三层双归网络示意图(一),具体的,本公开提供一种通过CEMAC实现三层PE双归的方法,包括:
步骤1:在PE1、PE2、PE3配置EVPNVPLS二层实例,BD1和BD2为独立广播域,SBD为辅助广播域,SBD可以导入BD1与BD2发布的路由,但SBD本身并没有必要往外发布路由;PE1和PE2双归到CE1,PE1的AC1,PE2的AC2同属以太分段ES I1;其中为每个ES实例分配一个ESID;
步骤2:PE1配置独立网关IRB1(10.1)加入VPLS1和VRF1,和CE1的int1(10.2)同网段直连;PE2配置独立网关IRB2(20.1)加入VPLS2和VRF2,和CE1的int2(20.2)同网段直连。PE3配置IRB加入VPLS3和VRF3,不做任何网关不配IP地址;PE1和CE1建立EBGP邻居,将CE1业务路由50.0/24发布到PE1上;PE3背后CE2要和CE1的业务路由所述IP3互通;
步骤3:PE1、PE2、PE3分别为BD1、BD2、SBD产生RT3路由并发布到EVPN网络,PE3接收PE1和PE2的RT3路由;PE3根据收到的RT3路由形成广播域;广播域SBD的网络侧包括:PE1和PE2;
步骤4:PE1和PE2为本设备的ES和EVPN实例产生RT1路由,RT1路由携带ES信息和标签转发信息,并发布到EVPN网络;
步骤5:PE3收到PE1和PE2发布的RT1路由,根据标签信息和ESID形成ESI的保护转发,下一跳分别指向PE1/PE2;
步骤6:PE1、PE2、PE3部署业务VRF分别为VRF1、VRF2、VRF3,出入RT属性相同(100:100),PE1的IRB1加入VRF1,PE2的IRB2加入VRF2,PE3的H4主机对应接口加入VRF3,IRB3加入VRF3;
步骤7:在CE1上pingPE1的IRB1,CE1的int1和PE1的IRB1互相学习ARP成功;在CE1上ping PE2的IRB2,CE1的int2和PE1的IRB2互相学习ARP成功;在PE1上IRB1学习到ARP为10.2的VA_MAC地址MAC1;在PE2上IRB2学习到ARP为CE1的VA_MAC地址MAC1;PE1和PE2的VPLS下AC口分别学习CE1的VA_MAC为MAC1,形成MAC单播转发表指向各自AC绑定的ESI1;PE1的AC1产生MAC1的RT2路由携带ESI信息(ESI1),发布给PE3;PE2的AC2产生MAC1的RT2路由携带ESI信息(ESI1),发布给PE3;
步骤8:CE1和PE1之间用IRB1和int1的IP地址建立直连EBGP邻居,发布CE1的业务路由50.2/32到PE1上;
步骤9:PE1上从IRB1口收到业务路由(50.2/32),加入到IRB1所属的VRF1路由表,形成本地路由转发表,出接口为IRB1,下一跳为10.2;
步骤10:VRF虚拟路由转发表(virtual routing forwarding)在EVPN注册,EVPN为业务路由(50.0/24)产生对应的RT5路由,RT5路由里携带IP前缀(50.0/24)和vpnRT(100:100)属性,检查该业务路由的下一跳为50.2,出口为IRB1,对应ARP为MAC1,取IRB学习的(50.2/32)对应的ARP(MAC1)作为RT5路由的router’s MAC,并将该RT5路由发布到EVPN 网路;
步骤11:PE2收到该RT5路由,为此形成路由表,下一跳为PE1;
步骤12:PE3收到该RT5路由,判断RT5路由的出向RT和VRF的入向RT相同,路由进小表,形成VRF路由表,并根据VRF下IRB接口关联的VPLS实例;将相应VRF路由的Overlay Index指向VPLS的MAC1单播转发表;
步骤13:H4发业务报文目的IP为业务IP3(50.2),PE3从VRF入口收到该报文从VRF3查表,路由Overlay Index为VPLS3的MAC1转发,MAC1在VPLS3中单播转发对应出口为ESI1,ESI1转发下一跳分别为PE1和PE2,将路由报文封装为以太报文转发,从ESI转发负荷分担到PE1和PE2;
步骤14:PE1收到二层转发报文查MAC1对应出口为AC1绑定的ESI1,从AC1转发到CE1;
步骤15:PE2收到二层转发报文查MAC1对应出口为AC2绑定的ESI1,从AC2转发到CE1;
步骤16:CE1收到报文后根据VA-MAC进行二层终结,并进行目的IP(50.2/32)解析,和主机H1(50.2)互通;
需要说明的是,上述步骤5中的VRF1、VRF2、VRF3属于同一业务VPN,部署相同出入RT属性。
显然,上述所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。为了更好的理解上述转发表的查找方法,以下结合实施例对上述过程进行说明,但不用于限定本公开实施例的技术方案,可选的:
实施例1
本实施例提供一种通过CEMAC实现三层PE双归的方法,PE1、PE2、PE3分别部署VPLS+IRB和VRF,VRF部署相同出入RT(100:100);IRB分别加入各自PE的VRF;PE1的VPLS1产生广播域BD1,PE2的VPLS2产生广播域BD2,PE3的VPLS3建立辅助广播域SBD;PE1和PE2双归到CE1的接口int1和int2上,接口int1和接口int2配置相同接口MAC为VA-MAC(MAC1);PE1上int1直连口加入VPLS1作为BD1的AC1,PE1上配置VPLS的IRB1接口地址为IP1(10.1),和CE1的int1的接口地址IP2(10.2)为直连网段;PE2上int2直连口加入VPLS2作为BD2的AC2,PE2上配置VPLS2的IRB2接口地址为IP3(20.1),和CE1的int2的接口地址IP4(20.2)为直连网段;PE3上配置IRB加入VRF3和VPLS3;AC1和AC2加入同一ES I1(00.10.32.33.44.55.66.77.88.99),部署ES多活;CE1背后的主机H2为(50.2/32),CE2的主机H1为(100.2),PE3背后CE2主机H2(100.2/32)要和CE1的业务路由H1(50.2/32)互通;图5是根据本公开实施例的转发表的三层双归网络示意图(二),如图5所示:
该方法流程包括如下步骤:
步骤101:在PE1、PE2、PE3配置EVPN VPLS二层实例,PE1的VPLS1产生广播域BD1,PE2的VPLS2产生广播域BD2,PE3的VPLS3建立辅助广播域SBD;配置PE1的AC1,PE2的AC2同属以太分段ES I1;PE1和PE2为ES I1实例指定一个ESID I1(00.10.32.33.44.55.66.77.88.99);
步骤102:PE1配置独立网关IRB1(10.1)加入VPLS1和VRF1,和CE1的int1(10.2)同网段直连;
步骤103:PE2配置独立网关IRB2(20.1)加入VPLS2和VRF2,和CE1的int2(20.2)同网段直连;
步骤104:PE3配置IRB加入VPLS3和VRF3,不做任何网关不配IP地址;
步骤105:PE1和CE1建立EBGP邻居,将CE1业务路由50.0/24发布到PE1上;
步骤106:PE1为VPLS1和ES I1产生RT1路由发布到PE3;PE2为VPLS2和ESI1产生RT1路由发布到PE3;PE3收到PE1和PE2发布的RT1路由形成ESI转发,下一跳分别为PE1、PE2;
步骤107:ping操作触发CE1的int2和PE1的int2学习ARP,PE1学到IP2(10.2)的ARP出口为IRB1,对应MAC为VA-MAC(MAC1);PE2学到IP4(20.2)的ARP出口为IRB2,对应MAC为VA-MAC(MAC1);PE1的AC1上学习到MAC1,产生到MAC1的转发为AC1绑定的ESI1,同时产生EVPN RT2 MAC路由携带AC1的ESI1信息发布给PE3;PE2的AC2上学到MAC1,产生到MAC1的转发为AC2绑定的ESI1;
步骤108:PE1从与CE1的ebgp邻居接收业务路由50.0/24,将该路由加入IRB1所属VRF1路由表,下一跳为int1(10.2);并产生EVPN RT5路由携带前缀信息(50.0/24)和RT属性(100:100);同时查找irb接口上通过ARP协议学习的与(10.2)对应的MAC1,将该路由的下一跳(10.2)的MAC(MAC1)作为RT5路由的router’s MAC发布到EVPN网络;
步骤109:PE3收到PE1发布到RT5路由前缀为(50.0/24),根据RT属性100:100进VRF3路由表,并找到VRF3的IRB3关联的VPLS3,根据RT5路由携带的MAC1形成VRF3路由(50.0/24)的overlay index为VPLS3的MAC1转发表;MAC1的转发为ESI1;
步骤110:CE1和CE2互通,CE2的主机H2(100.2/32)发包目的IP为CE1背后的主机H1(50.2/32);
步骤111:PE1从VRF3的接口收到CE2的报文,到VRF3查路由前缀(50.0/24)的overlay index为VPLS3的MAC1,到VPLS3下查MAC1的单播转发;
步骤112:VPLS3下MAC1对应的出口为ESI1,下一跳分别为PE1和PE2,将报文重新封装以太头从二层ESI转发,流量分别推送到PE1和PE2;
步骤113:PE1收到CE2的报文目的MAC为MAC1,查MAC1转发出口为AC1绑定的ESI1,从AC1转发到CE1;
步骤114:PE2收到CE2的报文目的MAC为MAC1,查MAC1转发出口为AC2绑定的ESI1,从AC2转发到CE1;
步骤115:CE1收到报文后根据VA-MAC(MAC1)进行二层终结,并进行目的IP(50.2/32)解析,和主机H1(50.2)互通。
实施例2
本公开实施例一种通过CE MAC实现三层PE双归的方法,除特殊说明之处以外,本描述同实施例1相同;CE1、CE3分别三层双归到PE1、PE2,CE3上接口int11(10.3/24),int21(20.3/24)配置相同接口MAC为MAC2,直连口分别作为PE1 VPLS1的AC11,PE2的AC21;配置PE1的AC11和PE2的AC21加入ES I2(00.10.20.30.40.50.70.80.90);CE2的主机H2(101.2)要和CE3的主机H3互通(51.2);图6是根据本公开实施例的转发表的多个CE双归网络示意图,如图6所示,本实施的方法的流程包括如下步骤:
步骤201:配置PE1的AC11,PE2的AC21同属以太分段ESI2;PE1和PE2为ESI2实例指定一个ESID I2((00.10.20.30.40.50.70.80.90));
步骤202:除特殊说明之处以外,本步骤与步骤101相同;
步骤203:除特殊说明之处以外,本步骤与步骤102相同;
步骤204:除特殊说明之处以外,本步骤与步骤103相同;
步骤205:PE1和CE3建立EBGP邻居,将CE3业务路由51.0/24发布到PE1上;
步骤206:PE1为VPLS1和ES I2产生RT1路由发布到PE3;PE2为VPLS2和ESI2产生RT1路由发布到PE3;PE3收到PE1和PE2发布的RT1路由形成ESI(ESI2)转发,下一跳分别为PE1、PE2;
步骤207:ping操作触发CE3的int21和int11学习ARP,PE1学到IP5(10.3)的ARP出口为IRB1,对应MAC为MAC2;PE2学到IP6(20.3)的ARP出口为IRB2,对应MAC为MAC2;PE1的AC11上学习到MAC2,产生MAC2的二层转发出口为AC11绑定的ESI2,并产生EVPN RT2路由携带AC11的ESI2信息发布给PE3;PE2的AC21上学到MAC2;产生MAC2的二层转发出口为AC21绑定的ESI2
步骤208:PE1从IRB1口接收CE3的业务路由51.0/24,将该路由加入IRB1所属VRF1路由表,下一跳为(10.3),并产生EVPNRT5路由携带前缀信息(51.0/24)和RT属性(100:100);查找irb1学习的(10.3)对应ARP(MAC2),将RT5该路由的下一跳(10.3)对应的MAC2作为RT5路由的router’s MAC发布到EVPN网络;
步骤209:PE3收到PE1发布到RT5路由前缀为(51.0/24),根据RT属性100:100进VRF3路由表,并找到VRF3的IRB3关联的VPLS3,根据RT5路由携带的MAC2形成VRF3路由(51.0/24)的overlay index为VPLS3的MAC2转发表;MAC2的转发为ESI2;
步骤210:CE3和CE2互通,CE2的主机H2(101.2/32)发包目的IP为CE3背后的主机H3(51.2/32);
步骤211:PE3从VRF3的接口收到CE2的报文,到VRF3查路由前缀(51.0/24)的overlay index为VPLS3的MAC2,到VPLS3下查MAC2的单播转发;
步骤212:VPLS3下MAC2对应的出口为ESI2,下一跳分别为PE1和PE2,将报文重新封装以太头从二层ESI转发,流量分别推送到PE1和PE2;
步骤213:PE1收到CE2的报文目的MAC为MAC2,查MAC1转发出口为AC11绑定的ESI2,从AC11转发到CE3;
步骤214:PE2收到CE2的报文目的MAC为MAC2,查MAC2转发出口为AC21绑定的ESI2,从AC21转发到CE3;
步骤215:CE3收到报文后根据VA-MAC(MAC2)进行二层终结,并进行目的IP(51.2/32)解析,和主机H1(51.2)互通。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例的方法。
在本实施例中还提供了一种转发表的查找装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的设备较佳地以软件来实现,但是硬件,或者 软件和硬件的组合的实现也是可能并被构想的。
图7是根据本公开实施例的转发表的查找装置的结构框图,该装置包括:
处理模块72,设置为指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;
发布模块74,设置为在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;
查找模块76,设置为在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
通过上述模块,指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。采用上述技术方案,解决了在ESI业务繁忙的情况下,PE3到CE1的流量会推到PE2上,由于PE2上没有到CE1的本地路由,不能根据下一跳来找到VPLS的MAC转发表,导致PE3无法从ESI转发给CE1的问题。进而采用上述技术方案,可以使得PE3到CE1的流量通过ESI转发给CE1。
可选的,处理模块72还设置为为PE1配置EVPN VPLS二层实例BD1,为PE2配置EVPN VPLS二层实例BD2,其中,BD1与BD2互相不导入对方的路由。
可选的,查找模块76还设置为指示所述SBD允许导入BD1和BD2的路由。
可选的,查找模块76还设置为指示所述SBD不往PE1或PE2发布包容式组播以太标记IMET路由。
可选的,查找模块76还设置为指示所述SBD的IRB接口的IP地址为unnumbered形式,且所述IRB接口与所述IP-VRF实例相绑定。
可选的,处理模块72还设置为指示所述PE1和PE2双归到CE1,所述PE1的AC1、PE2的AC2同属于一个以太网分段ESI1。
可选的,处理模块72还设置为指示PE1、PE2分别为所述MAC地址M1产生RT2路由,并将所述RT2路由发布到所述EVPN网路,以及PE3接收PE1和PE2的所述RT2路由;其中,所述RT2路由是PE1或PE2分别为所述BD1或BD2发布的,且所述RT-2路由携带所述ES1的标识ESI1;PE3根据收到的所述RT2路由形成MAC转发表项,其中,所述MAC转发表项通过所述ESI1实现混叠Aliasing功能。
可选的,处理模块72还设置为指示PE1和PE2为所述ESI1和EVPN实例产生RT1路由,其中,所述RT1路由携带ES信息和标签转发信息;将所述RT1路由发布到EVPN网络。
可选的,查找模块76还设置为指示PE3收到PE1和PE2发布的所述RT1路由;PE3根据所述MAC地址M1的MAC转发表项中的所述ESI1与所述RT1路由转发信息形成混叠Aliasing。
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:
S1,指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;
S2,在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;
S3,在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;
S2,在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;
S3,在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者 将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (12)

  1. 一种转发表的查找方法,包括:
    指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;
    在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;
    在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefix1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;
    其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
  2. 根据权利要求1所述的转发表的查找方法,其中,虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由之前,所述方法还包括:
    为PE1配置EVPN VPLS二层实例BD1,为PE2配置EVPN VPLS二层实例BD2,其中,BD1与BD2互相不导入对方的路由。
  3. 根据权利要求1所述的转发表的查找方法,其中,所述方法还包括:
    所述SBD允许导入BD1和BD2的路由。
  4. 根据权利要求1所述的转发表的查找方法,其中,所述方法还包括:
    所述SBD不往PE1或PE2发布包容式组播以太标记IMET路由。
  5. 根据权利要求1所述的转发表的查找方法,其中,所述方法还包括:
    所述SBD的IRB接口的IP地址为unnumbered形式,且所述IRB接口与所述IP-VRF实例相绑定。
  6. 根据权利要求2所述的转发表的查找方法,其中,所述方法还包括:
    指示所述PE1和PE2双归到CE1,所述PE1的AC1、PE2的AC2同属于一个以太网分段ESI1。
  7. 根据权利要求4所述的转发表的查找方法,其中,虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由之前,所述方法还包括:
    指示PE1、PE2分别为所述MAC地址M1产生RT2路由,并将所述RT2路由发布到所述EVPN网路,以及PE3接收PE1和PE2的所述RT2路由;其中,所述RT2路由是PE1或PE2分别为所述BD1或BD2发布的,且所述RT-2路由携带所述ES1的标识ESI1;
    PE3根据收到的所述RT2路由形成MAC转发表项,其中,所述MAC转发表项通过所述ESI1实现混叠Aliasing功能。
  8. 根据权利要求7所述的转发表的查找方法,其中,虚拟路由转发表VRF在以太网虚拟 专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由之前,所述方法还包括:
    PE1和PE2为所述ESI1和EVPN实例产生RT1路由,其中,所述RT1路由携带ES信息和标签转发信息;
    将所述RT1路由发布到EVPN网络。
  9. 根据权利要求8所述的转发表的查找方法,其中,将所述RT1路由发布到EVPN网络之后,所述方法还包括:
    PE3收到PE1和PE2发布的所述RT1路由;
    PE3根据所述MAC地址M1的MAC转发表项中的所述ESI1与所述RT1路由转发信息形成混叠Aliasing。
  10. 一种转发表的查找装置,包括:
    处理模块,设置为指示虚拟路由转发表VRF在以太网虚拟专用网EVPN注册,以使EVPN产生业务路由对应的RT5路由,其中,所述RT5路由中携带IP前缀Prefiex1;
    发布模块,设置为在检测到所述业务路由的下一跳IP地址为IP1的情况下,将通过地址解析协议ARP解析到的与IP1对应的媒体接入控制MAC地址M1作为RT5路由的重叠索引Overlay Index,并将该RT5路由发布到EVPN网路;
    查找模块,设置为在PE3收到所述RT5路由的情况下,根据RT5路由里携带的所述Prefiex1产生路由表项,并根据RT5路由的所述重叠索引M1到IP-VRF实例的辅助广播域SBD中查找MAC转发表;其中,所述重叠索引为在重叠网络Overlay Network中对报文进行迭代查表所用的索引。
  11. 一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至9任一项中所述的方法。
  12. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至9任一项中所述的方法。
PCT/CN2022/104902 2021-07-14 2022-07-11 转发表的查找方法及装置、存储介质及电子装置 WO2023284675A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22841311.8A EP4366251A1 (en) 2021-07-14 2022-07-11 Forwarding table lookup method and apparatus, and storage medium and electronic apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110797837.3 2021-07-14
CN202110797837.3A CN115701052A (zh) 2021-07-14 2021-07-14 转发表的查找方法及装置、存储介质及电子装置

Publications (1)

Publication Number Publication Date
WO2023284675A1 true WO2023284675A1 (zh) 2023-01-19

Family

ID=84919884

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104902 WO2023284675A1 (zh) 2021-07-14 2022-07-11 转发表的查找方法及装置、存储介质及电子装置

Country Status (3)

Country Link
EP (1) EP4366251A1 (zh)
CN (1) CN115701052A (zh)
WO (1) WO2023284675A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160277210A1 (en) * 2015-03-18 2016-09-22 Juniper Networks, Inc. Evpn inter-subnet multicast forwarding
CN109756409A (zh) * 2017-11-01 2019-05-14 中兴通讯股份有限公司 桥接转发方法
CN110380966A (zh) * 2018-04-13 2019-10-25 华为技术有限公司 一种发现转发路径的方法及其相关设备
CN112311645A (zh) * 2019-07-31 2021-02-02 中兴通讯股份有限公司 一种实现dci三层通信的方法、系统及第一gw
CN112565045A (zh) * 2019-09-26 2021-03-26 中兴通讯股份有限公司 Evpn中报文转发方法、装置、设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160277210A1 (en) * 2015-03-18 2016-09-22 Juniper Networks, Inc. Evpn inter-subnet multicast forwarding
CN109756409A (zh) * 2017-11-01 2019-05-14 中兴通讯股份有限公司 桥接转发方法
CN110380966A (zh) * 2018-04-13 2019-10-25 华为技术有限公司 一种发现转发路径的方法及其相关设备
CN112311645A (zh) * 2019-07-31 2021-02-02 中兴通讯股份有限公司 一种实现dci三层通信的方法、系统及第一gw
CN112565045A (zh) * 2019-09-26 2021-03-26 中兴通讯股份有限公司 Evpn中报文转发方法、装置、设备及存储介质

Also Published As

Publication number Publication date
EP4366251A1 (en) 2024-05-08
CN115701052A (zh) 2023-02-07

Similar Documents

Publication Publication Date Title
US10536285B2 (en) Multicast join message processing by multi-homing devices in an ethernet VPN
US9992154B2 (en) Layer 3 convergence for EVPN link failure
EP3188415B1 (en) Static route advertisement
US11356366B2 (en) Interoperability between symmetric and asymmetric EVPN IRB modes
US8098656B2 (en) Method and apparatus for implementing L2 VPNs on an IP network
EP3264694A1 (en) Signaling ip address mobility in ethernet virtual private networks
US9860169B1 (en) Neighbor resolution for remote EVPN hosts in IPV6 EVPN environment
US8953590B1 (en) Layer two virtual private network having control plane address learning supporting multi-homed customer networks
EP3188422B1 (en) Traffic black holing avoidance and fast convergence for active-active pbb-evpn redundancy
US20130100851A1 (en) Multicast Source Move Detection for Layer-2 Interconnect Solutions
JP2015523788A (ja) 個別管理方式を使用する仮想転送インスタンスの遠端アドレスへのvlanタグ付きパケットのルーティング
US20230081052A1 (en) Method and apparatus for sending multicast packet
CN115118545B (zh) 以太网虚拟专用网多播网络中的组管理协议主机移动性
WO2023284675A1 (zh) 转发表的查找方法及装置、存储介质及电子装置
CN114205297B (zh) 流量转发处理方法及设备
CN113542441B (zh) 一种通信处理方法及装置
CN115225568A (zh) 对以太网虚拟私有网络—虚拟可扩展局域网的快速重路由
EP3190752B1 (en) Method, apparatus and medium for avoiding traffic flooding due to asymmetric mac learning and achieving predictable convergence for pbb-evpn active-active redundancy
WO2023016234A1 (zh) Rt4路由报文r4的发布方法及装置、存储介质及电子装置
WO2023024768A1 (zh) Rt-5g路由报文的发布方法、装置、存储介质和电子装置
WO2023179171A1 (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: 22841311

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112024000609

Country of ref document: BR

WWE Wipo information: entry into national phase

Ref document number: 2022841311

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022841311

Country of ref document: EP

Effective date: 20240201

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112024000609

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20240111