Traffic transmission method, apparatus and device, and computer readable storage medium

By keeping the VPLS PW and BD EVPN transmission channels open, and using the evolution indication information in the IMET route advertisement message, the packet loss problem of BUM traffic transmission during the evolution from traditional VPLS to EVPN is solved, and lossless traffic transmission is achieved. and smooth business upgrade.

CN118573618APending Publication Date: 2024-08-30BEIJING HUAWEI DIGITAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310200128.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the process of evolving from traditional VPLS to EVPN, how to transmit BUM traffic losslessly to avoid packet loss and service damage.

Method used

By receiving the IMET route advertisement message in the first network device and carrying the evolution instruction information, keeping both the VPLS PW and BD EVPN transmission channels open, avoiding packet loss caused by timing uncertainty, and confirming all EVPNs before switching the broadcast domain. After the peer device completes evolution, BUM traffic is switched to support smooth service upgrade and downgrade.

Benefits of technology

It realizes the lossless evolution from traditional VPLS to BD EVPN, avoids packet loss and service damage, and improves the flexibility and reliability of traffic transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573618A
    Figure CN118573618A
Patent Text Reader

Abstract

The invention discloses a traffic transmission method, device and equipment and a computer readable storage medium, and relates to the technical field of communication. A transmission channel of a first network device comprises a VPLS PW and a BD EVPN, the VPLS PW and the BD EVPN are both in an open state, and under the condition that the first network device transmits BUM flow of a target service in a first broadcast domain, the first network device receives a first route notification message, the first route notification message comprises evolution indication information, and the evolution indication information indicates that a second network device is in an evolution process from the VPLS PW to the BD EVPN; and transmitting the BUM flow of the target service in the first broadcast domain based on the evolution indication information, wherein a transmission channel supported by the first broadcast domain comprises a VPLS PW. The packet loss caused by the uncertain time sequence of closing the VPLS PW and opening the BD EVPN is avoided, and the multiple packets caused by the dual-channel transmission of the VPLS PW and the BD EVPN are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a traffic transmission method, device, equipment and computer-readable storage medium. Background Art

[0002] In traditional layer 2 virtual private networks (L2VPN), virtual private local area network service (VPLS) technology is used to achieve point-to-multipoint layer 2 network interconnection. However, VPLS has disadvantages such as inability to achieve load sharing and high consumption of network resources. As a result, Ethernet virtual private network (EVPN) technology came into being. Compared with traditional VPLS technology, EVPN has the advantages of supporting control plane learning of media access control (MAC) addresses and reducing network complexity, making EVPN more and more widely used, so traditional VPLS gradually evolved to EVPN.

[0003] In the scenario where traditional VPLS evolves to EVPN, how to transmit traffic has become an urgent problem that needs to be solved. Summary of the invention

[0004] The present application provides a traffic transmission method, apparatus, device and computer-readable storage medium for transmitting BUM traffic during the evolution process of VPLSPW to BD EVPN.

[0005] In a first aspect, a traffic transmission method is provided. Taking a first network device executing the method as an example, a transmission channel of the first network device includes a VPLS pseudo-wire (PW) and a bridge domain (BD) EVPN, and both the VPLS PW and the BD EVPN are in an open state. When the first network device transmits broadcast, unknown unicast, and multicast (BUM) traffic of a target service in a first broadcast domain, the first network device receives a first routing announcement message, and the first routing announcement message is used to announce an EVPN multicast Ethernet tag (IMET) route, and the IMET route is used to guide the BUM traffic of the target service to be transmitted based on BD EVPN in a second broadcast domain, and the second broadcast domain is created based on the first broadcast domain. The first routing announcement message includes evolution indication information, and the evolution indication information indicates that the second network device is in the process of evolving from VPLS PW to BD EVPN, and the second network device can be any device among the EVPN peer devices of the first network device; the first network device continues to transmit the BUM traffic of the target service in the first broadcast domain based on the evolution indication information.

[0006] Among them, the first broadcast domain is a broadcast domain divided based on a virtual switching instance (VSI), and only supports VPLS PW, that is, the transmission channels supported by the first broadcast domain include VPLS PW; the second broadcast domain is a broadcast domain divided based on BD, and supports both VPLS PW and BD EVPN, that is, the transmission channels supported by the second broadcast domain include VPLS PW and BD EVPN. Exemplarily, the VPLS instance corresponding to the target service in BD VPLS and the EVPN instance corresponding to the target service in BD EVPN are bound to the same BD, and the same BD is the second broadcast domain.

[0007] In the process of evolution from traditional VPLS to BD EVPN, this method keeps both the VPLS PW and BD EVPN transmission channels open, thus avoiding packet loss caused by the uncertain timing of closing the VPLS PW and opening the BD EVPN. The IMET route announced between EVPN peer devices carries evolution indication information. Since the evolution indication information can indicate the evolution process, even if the first network device has created the second broadcast domain, if any EVPN peer device is in the process of evolution, the first network device will not switch the BUM traffic of the target service in the first broadcast domain to the second broadcast domain for transmission. Since the first broadcast domain only supports VPLS PW, multiple packets caused by dual-channel transmission of VPLS PW and BD EVPN are avoided.

[0008] In a possible implementation, if the first network device receives multiple second route announcement messages, none of the multiple second route announcement messages include evolution indication information, and the third route announcement message sent by the first network device also does not include evolution indication information, and the multiple second route announcement messages are sent by multiple EVPN peer devices of the first network device respectively; then, the first network device can switch the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission. Among them, the multiple EVPN peer devices can refer to all EVPN peer devices corresponding to the first network device.

[0009] Because before switching to the second broadcast domain, the routing advertisement messages sent by the first network device and all EVPN peer devices corresponding to the first network device do not include evolution indication information, indicating that the first network device and all EVPN peer devices corresponding to the first network device have completed the evolution of VPLS PW to BD EVPN. Therefore, after the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, packet loss will not occur due to the evolution process of VPLS PW to BDEVPN, thereby avoiding packet loss caused by switching of broadcast domains.

[0010] In a possible implementation, after the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, the first network device may shut down the VPLS PW. Since the BD EVPN has been evolved, directly shutting down the VPLS PW will not cause packet loss.

[0011] In a possible implementation, after the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, the first network device can also switch the BUM traffic of the target service transmitted in the second broadcast domain back to the first broadcast domain for transmission, thereby implementing service rollback. Since the relevant configuration of the first broadcast domain is not deleted, this method not only supports smooth service upgrade, but also supports smooth service downgrade, making the traffic transmission method more flexible.

[0012] In a possible implementation, the evolution indication information is carried in a community attribute field or an extended community attribute field of a routing advertisement message. By extending the application of the extended community attribute, the evolution indication information can be carried in the routing advertisement message, thereby ensuring the effective implementation of the method.

[0013] In a possible implementation, since the broadcast domain of the traditional VPLS does not support BD EVPN, in order to achieve the evolution of VPLS PW to BD EVPN, it is necessary to first create a second broadcast domain of BD EVPN that also supports VPLS PW. That is, before the first network device receives the first routing announcement message, when the first network device transmits the BUM traffic of the target service in the first broadcast domain, a second broadcast domain is created based on the first broadcast domain; the second broadcast domain is bound to the sub-interface of the VSI corresponding to the first broadcast domain, and the replication table of the second broadcast domain includes the replication table of the first broadcast domain, and the replication table is used to guide the transmission of the BUM traffic of the target service based on the VPLS PW, so that the second broadcast domain supports VPLS PW; in addition, the second broadcast domain is also bound to the EVPN instance, so that the second broadcast domain supports BD EVPN.

[0014] Since the first network device directly creates the second broadcast domain when transmitting the BUM traffic of the target service in the first broadcast domain, there is no need to delete the first broadcast domain first, that is, there is no need to interrupt the target service transmitted in the first broadcast domain, thus avoiding damage to the service caused by deleting the first broadcast domain.

[0015] In a second aspect, a traffic transmission device is provided, the device is applied to a first network device, the transmission channel of the first network device includes a VPLS PW and a BD EVPN, the VPLS PW and the BD EVPN are both in an open state, the first network device transmits BUM traffic of a target service in a first broadcast domain, and the transmission channel supported by the first broadcast domain includes the VPLS PW, the device includes:

[0016] A receiving module, configured to receive a first routing announcement message, wherein the first routing announcement message is used to announce an EVPN IMET route, wherein the IMET route is used to guide BUM traffic of a target service to be transmitted based on BD EVPN in a second broadcast domain, wherein the second broadcast domain is created based on the first broadcast domain, wherein transmission channels supported by the second broadcast domain include VPLS PW and BD EVPN, wherein the first routing announcement message includes evolution indication information, wherein the evolution indication information indicates that the second network device is in the process of evolving from VPLS PW to BD EVPN, and wherein the second network device is any device among the EVPN peer devices of the first network device;

[0017] The transmission module is used to transmit the BUM traffic of the target service in the first broadcast domain based on the evolution indication information.

[0018] In a possible implementation, the receiving module is further used to receive multiple second routing advertisement messages, none of the multiple second routing advertisement messages include evolution indication information, the multiple second routing advertisement messages are respectively sent by multiple EVPN peer devices of the first network device, and the third routing advertisement message sent by the first network device does not include evolution indication information;

[0019] The transmission module is also used to switch the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission.

[0020] In a possible implementation manner, the device further includes: a closing module, configured to close the VPLS PW.

[0021] In a possible implementation manner, the transmission module is further configured to switch the BUM traffic of the target service transmitted in the second broadcast domain back to the first broadcast domain for transmission.

[0022] In a possible implementation manner, the evolution indication information is carried in a community attribute field or an extended community attribute field of a routing advertisement message.

[0023] In a possible implementation, the device further includes:

[0024] A creation module is used to create a second broadcast domain based on the first broadcast domain when transmitting the BUM traffic of the target service in the first broadcast domain. The second broadcast domain is bound to a sub-interface of the virtual switching instance VSI corresponding to the first broadcast domain. The replication table of the second broadcast domain includes the replication table of the first broadcast domain. The replication table is used to guide the transmission of the BUM traffic of the target service based on VPLSPW.

[0025] In a third aspect, a network device is provided, comprising: a processor, the processor being coupled to a memory, the memory storing at least one program instruction or code, the at least one program instruction or code being loaded and executed by the processor, so that the network device implements the traffic transmission method as described in the first aspect or any one of the first aspects.

[0026] Optionally, the number of the processors is one or more, and the number of the memories is one or more.

[0027] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0028] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.

[0029] In a fourth aspect, a communication device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the communication device executes the method in the first aspect or any possible implementation of the first aspect.

[0030] In a fifth aspect, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to enable a computer to implement the method in the above-mentioned first aspect or any possible implementation of the first aspect.

[0031] In a sixth aspect, a computer program (product) is provided, wherein the computer program (product) comprises: a computer program code, and when the computer program code is executed by a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0032] In a seventh aspect, a chip is provided, comprising a processor for calling and executing instructions stored in a memory from the memory, so that a communication device equipped with the chip executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0033] In an eighth aspect, another chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0034] It should be understood that the beneficial effects achieved by the technical solutions of the second to eighth aspects of the present application and the corresponding possible implementation methods can be referred to the technical effects of the first aspect and its corresponding possible implementation methods mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of a traffic transmission implementation environment provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of a process of evolving a traditional VPLS to a BD VPLS provided in the related art;

[0037] Figure 3 A flow chart of a traffic transmission method provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of another process of evolving traditional VPLS to BD VPLS provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of a broadcast domain switching change provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of the structure of a flow transmission device provided in an embodiment of the present application;

[0041] Figure 7 A schematic diagram of the structure of a network device provided in an embodiment of the present application;

[0042] Figure 8 A schematic diagram of the structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0044] VPLS refers to a point-to-multipoint Layer 2 service carrying technology that uses signaling protocols to establish and maintain PWs between provider edge (PE) nodes in a VPLS instance, so that Layer 2 protocol frames are encapsulated and transmitted on PWs, so that multiple LANs in a wide area are integrated into one network at the data link level, providing users with virtual Ethernet services. However, since PWs are the actual carriers used by VPLS to forward services, PW full connections need to be established between PE nodes on the operator's backbone network, that is, PWs must be established between any two PE nodes on the operator's backbone network. Therefore, when the number of PE nodes is large, network resources are consumed more.

[0045] In addition, since MAC addresses are used to guide Layer 2 forwarding, and PE nodes in VPLS need to learn MAC addresses on the forwarding plane by broadcasting, every time a new MAC address appears in the network, it must be broadcasted throughout the network so that all PE nodes can learn the new MAC address, wasting network bandwidth and increasing the burden on PE nodes. Although VPLS also has a control plane, the control plane of VPLS is used to maintain the establishment, maintenance, and removal of PWs, and does not have the MAC address learning function.

[0046] Then, EVPN came into being. EVPN is a virtual private network (VPN) technology for Layer 2 network interconnection. EVPN subverts the mechanism of learning MAC addresses through the forwarding plane of traditional Layer 2 VPN technology, and uses the control plane to learn MAC addresses, that is, the PE nodes use the border gateway protocol (BGP) extension protocol to transmit MAC address information. Through the BGP route reflector (RR) mechanism, each PE node only needs to establish a neighbor relationship with the RR, and the RR will reflect the EVPN route of any PE node to other PE nodes, thereby avoiding a fully connected mesh structure and greatly reducing network complexity. In addition, it also reduces the amount of network signaling and avoids the waste of network resources, so traditional VPLS gradually evolves to EVPN. In the scenario where traditional VPLS evolves to EVPN, how to transmit traffic has become an urgent problem to be solved.

[0047] Figure 1 Schematic diagram of an implementation environment of traffic transmission provided by an embodiment of the present application. Figure 1As shown, the network of the implementation environment is deployed with PE1, PE2 and PE3, as well as the customer edge device (customeredge1, CE1) connected to PE1, CE2 connected to PE2, and CE3 connected to PE3. Among them, the address of PE1 is 1.1.1.1, the address of PE2 is 2.2.2.2, and the address of PE2 is 3.3.3.3. Among them, Figure 1 An example is given for explanation in which three PEs are connected to one CE per PE. The embodiment of the present application does not limit the number of PEs included in the network and the number of CEs connected to the PEs.

[0048] CE is a user edge device directly connected to the service provider network, and PE is a service provider network-side device connected to CE. PE is mainly responsible for VPN service access, completing the mapping and forwarding of messages from the user network to the public network tunnel and from the public network tunnel to the user network. For example, PE can be a router, switch, or host. CE and PE are connected through an attachment circuit (AC). Among them, AC is a physical circuit or virtual circuit connecting CE and PE, and AC can be, for example, an Ethernet interface.

[0049] like Figure 1 As shown in the figure, VPLS and EVPN are deployed on PE1, PE2, and PE3 to gradually evolve VPLS to EVPN. In traditional VPLS, PEs are connected based on PW, which is a virtual bidirectional connection between two PEs. In EVPN, PEs are connected based on BGP EVPN neighbor relationships, which means that PEs have the ability to send EVPN routes to BGP EVPN neighbors.

[0050] Among them, the EVPN in the embodiment of the present application may refer to EVPN in BD mode, referred to as BD EVPN. EVPN in non-BD mode can only be used to carry Layer 2 services, while BD EVPN can carry both Layer 2 and Layer 3 services. BD EVPN instances are bound to BDs but cannot be bound to interfaces. For example, the physical interface of the PE connected to the user network is divided into different sub-interfaces, each sub-interface is bound to an EVPN instance through a BD, each user uses a separate EVPN instance, and the EVPN instance can be used to carry Layer 2 or Layer 3 services; or, different users are divided using virtual local area networks (VLANs), and different VLANs are bound to EVPN instances through a BD, and the EVPN instance can be used to carry Layer 2 or Layer 3 services.

[0051] BD is used to divide broadcast domains in the Ethernet virtual connection (EVC) model, that is, one BD corresponds to one broadcast domain. Among them, the broadcast domain refers to the collection of devices in the network that can receive the same BUM traffic. Devices in the same broadcast domain can communicate with each other, and devices in different broadcast domains are isolated. BUM traffic includes three forms of traffic: broadcast, unknown unicast, and multicast. The address of BUM traffic is unknown, so it needs to be broadcast to the devices in the broadcast domain.

[0052] However, in traditional VPLS, VSI is used to divide broadcast domains, that is, one VSI corresponds to one broadcast domain, and each VSI provides a separate VPLS service. Users can plan VLANs and traffic within the VSI. For example, different sub-interfaces are deployed on the user-side interface of the PE node. Different sub-interfaces access the operator network by binding different VSIs to achieve isolation between different VSIs. In a virtual eXtensible local area network (VXLAN), VSI refers to a virtual switching instance that provides a Layer 2 switching service for a VXLAN, where the VXLAN tunnel end point (VTEP) is a VXLAN edge device that is used to identify the VXLAN to which Ethernet data frames belong, perform Layer 2 forwarding on data frames based on VXLAN, and encapsulate / decapsulate VXLAN packets.

[0053] Therefore, before evolving traditional VPLS to BD EVPN, it is necessary to evolve traditional VPLS to BD VPLS first. In addition, because traditional VPLS carries VLAN services based on VSI, VLANs do not support isolation, resulting in poor security. If multiple VLANs in the same VSI have the same MAC address, MAC address learning will jump, affecting services. After evolving to BD VPLS, because multiple BDs can carry the same VSI and MAC addresses are learned based on BD, the problem of isolation not being able to be broadcasted and MAC address learning jumping in VSI in traditional VPLS is solved.

[0054] In the related art, see Figure 2The figure shows the process of evolving traditional VPLS to BD VPLS. First, delete the traditional VPLS service, that is, delete the MAC table and replication table in the traditional VPLS. The MAC table is used to guide the forwarding of unicast traffic, and the replication table is used to guide the forwarding of BUM traffic. Then deploy the EVC model on the PE, create a new BD broadcast domain that supports both VPLS and EVPN, add the EVC Layer 2 sub-interface as the AC interface to the BD broadcast domain, and bind the BD broadcast domain to the sub-interface of the VSI. Re-download the MAC table and replication table corresponding to the VPLS service, so that the traffic in the ingress and egress directions are switched to the BD broadcast domain, thereby realizing the evolution from traditional VPLS to BD VPLS. However, since the traditional VPLS service needs to be deleted first, the traditional VPLS service will be damaged.

[0055] After the traditional VPLS evolves to BD VPLS, the BD VPLS can be evolved to BD EVPN. In the related art, the process of evolving BDVPLS to BD EVPN is to bind BD VPLS and BD EVPN to the same BD broadcast domain. When EVPN announces the IMET route, it will close the PW used to transmit traffic in VPLS to switch the traffic from VPLS PW to BD EVPN for transmission. Since the timing of opening EVPN and closing VPLS PW in the related art is uncertain, if they are opened at the same time, multiple packets of traffic may be caused. If the VPLS PW is closed first and then EVPN is opened, or if BD VPLS and BD EVPN are closed at the same time, traffic packet loss may occur.

[0056] Among them, IMET routing can be called (type) type3 routing, which is used for automatic discovery of VTEP and dynamic establishment of VXLAN tunnels to guide BUM traffic in BD broadcast domain to be transmitted based on BD EVPN. In EVPN networking, BGP EVPN peer relationships need to be configured between PEs to transmit EVPN routing information and realize communication between EVPN instances. For example, BGP EVPN neighbors exchange their basic information through mutually published IMET routing. The basic information includes the route distinguisher (RD) of the EVPN instance, the source address of the PE, and the label value for tunnel forwarding, so that each BGP EVPN peer device can update the locally maintained neighbor list based on the received basic information to obtain an up-to-date neighbor list to guide BUM traffic forwarding.

[0057] In summary, evolving traditional VPLS to BD EVPN includes two stages: one is evolving traditional VPLS to BD VPLS; the other is evolving BD VPLS to BD EVPN. In the related art, the need to delete traditional VPLS services will cause damage to services during stage one, and the uncertainty of the timing of opening EVPN and closing VPLS PW may cause multiple packets or packet loss during stage two. The embodiments of the present application improve the implementation of these two stages respectively, so that there is no multiple packets or packet loss during the evolution of traditional VPLS to BD EVPN, that is, lossless evolution of traditional VPLS to BD EVPN is achieved.

[0058] The embodiment of the present application provides a traffic transmission method, which can be applied to any scenario where VPLS and EVPN are deployed, including but not limited to single-homing scenario or dual-homing scenario. A single-homing scenario refers to an access ring that is aggregated on an aggregation node, for example, one CE is connected to one PE; a dual-homing scenario refers to an access ring that is aggregated on two aggregation nodes, for example, one CE is connected to two PEs.

[0059] See also Figure 3 , taking the first network device executing the method as an example, Figure 3 A flow chart of a traffic transmission method provided in an embodiment of the present application, which can be applied in Figure 1 In the implementation environment shown, the first network device can be Figure 1 Any PE node shown. Figure 3 As shown, the method includes but is not limited to the following steps 301 and 302.

[0060] Step 301: A first network device receives a first routing announcement message, where the first routing announcement message is used to announce an EVPNIMET route, where the IMET route is used to guide BUM traffic of a target service to be transmitted based on BD EVPN in a second broadcast domain, where the second broadcast domain is created based on the first broadcast domain, and the first routing announcement message includes evolution indication information, where the evolution indication information indicates that the second network device is in the process of evolving from a VPLS PW to a BD EVPN, and the second network device may be any device among the EVPN peer devices of the first network device.

[0061] The first broadcast domain is a broadcast domain divided based on VSI, and only supports VPLS PW, that is, the transmission channels supported by the first broadcast domain include VPLS PW; the second broadcast domain is a broadcast domain divided based on BD, and supports both VPLS PW and BD EVPN, that is, the transmission channels supported by the second broadcast domain include VPLS PW and BD EVPN. Exemplarily, the VPLS instance corresponding to the target service in BD VPLS and the EVPN instance corresponding to the target service in BD EVPN are bound to the same BD, and the same BD is the second broadcast domain.

[0062] In the embodiment of the present application, the first network device has deployed traditional VPLS and BD EVPN, so the transmission channel of the first network device includes VPLS PW and BD EVPN. Both VPLS PW and BD EVPN are set to the open state to avoid packet loss caused by the uncertain timing of opening BD EVPN and closing VPLS PW, and keep the first network device transmitting the BUM traffic of the target service in the first broadcast domain. Since the first broadcast domain only supports VPLS PW, multiple packets caused by dual-channel transmission of VPLS PW and BD EVPN are avoided.

[0063] In the process of deploying BD EVPN, the first network device is configured with the corresponding BGP EVPN peer device, and the BGP EVPN peer devices send routing advertisement messages to each other to announce EVPN routes such as IMET routes. For example, Figure 1 PE1, PE2 and PE3 in the implementation environment shown are in a peer relationship with each other. Among them, the announcement of IMET routes is mainly used for automatic discovery of VTEPs and dynamic establishment of VXLAN tunnels in the VXLAN control plane. At the same time, if the VXLAN network identifier (VNI) in the received IMET route is the same as the VNI of the local end, a replication table is created for the subsequent transmission of BUM traffic. Exemplarily, taking the replication table including PE1, PE2 and PE3 as an example, after receiving the BUM traffic, PE1 searches the local replication table and copies the BUM traffic into two copies and sends them to PE2 and PE3 respectively.

[0064] Among them, the routing announcement message usually includes a prefix field and an attribute field. The prefix field may include the RD value set under the EVPN instance, the VLAN identifier on the local device, and the address of the local VTEP, etc.; the attribute field is used to indicate the relevant attributes of the IMET route. Therefore, the embodiment of the present application can extend the attribute field in the routing announcement message, and the attribute field can be a group attribute field or an extended group attribute field, so that the extended group attribute or extended group attribute can carry the evolution (migration) indication information. That is, the evolution indication information can be carried in the group attribute field or the extended group attribute field of the routing announcement message, which is used to indicate that it is in the process of evolving from VPLS PW to BD EVPN. The process of evolving from VPLS PW to BD EVPN is the process of evolving from traditional VPLS to BD EVPN in the embodiment of the present application.

[0065] In an embodiment of the present application, before the first network device receives the first routing announcement message, when the first network device transmits the BUM traffic of the target service in the first broadcast domain, a second broadcast domain is created based on the first broadcast domain; the second broadcast domain is bound to a sub-interface of the VSI corresponding to the first broadcast domain, and the replication table of the second broadcast domain includes the replication table of the first broadcast domain, and the replication table of the first broadcast domain is used to guide the transmission of the BUM traffic of the target service based on the VPLS PW, so that the second broadcast domain supports the VPLS PW; in addition, the second broadcast domain is also bound to the EVPN instance, so that the second broadcast domain supports BD EVPN.

[0066] Exemplarily, the BD view is used to configure the BD. You can enter the BD view by executing the command bridge-domain bd-id. A new evolution command line is added under the BD view: vpls-to-evpn migration in-process. After the command line is configured, the created second broadcast domain can be bound to the non-EVC sub-interface. Therefore, the second broadcast domain can be bound to the sub-interface of the VSI corresponding to the first broadcast domain, so that ordinary VPLS can be directly bound to the BD. Since the first broadcast domain is not deleted, the MAC table and replication table in the first broadcast domain can be directly sent to the second broadcast domain.

[0067] Since the first network device directly creates the second broadcast domain when transmitting the BUM traffic of the target service in the first broadcast domain, there is no need to delete the first broadcast domain first, that is, there is no need to interrupt the target service transmitted in the first broadcast domain, thus avoiding damage to the service caused by deleting the first broadcast domain.

[0068] In the embodiment of the present application, after the second broadcast domain is created, without executing step 301, the traffic in the first broadcast domain can be directly switched to the second broadcast domain for transmission, thereby realizing the evolution from traditional VPLS to BD VPLS. Figure 4 The schematic diagram of the process of traditional VPLS evolving to BD VPLS in the embodiment of the present application is shown in FIG. Figure 2 The related technology in the embodiment of the present invention does not need to delete the traditional VPLS service, and thus smoothly switches the traffic in the ingress direction and the egress direction transmitted in the first broadcast domain to the second broadcast domain.

[0069] However, after creating the second broadcast domain, the embodiment of the present application does not switch the second broadcast domain first but executes step 301 to avoid the problem that after switching the second broadcast domain, since both VPLS PW and BD EVPN are in an open state, and the second broadcast domain supports both VPLS PW and BD EVPN, if both VPLS PW and BD EVPN dual channels transmit BUM traffic, it will cause the BUM traffic to double.

[0070] Exemplarily, a new evolution command line is added under the BD view: vpls-to-evpn migration in-process. After the command line is configured, both the ordinary VPLS PW and BD EVPN can be turned on, that is, the ordinary VPLS PW and BDEVPN are set to UP, and the BUM traffic is still transmitted in the first broadcast domain of the ordinary VPLS. The route announcement message used to announce the IMET route will carry the newly added evolution indication information.

[0071] Therefore, based on the newly added evolution command line, when the first network device sends a routing advertisement message to the second network device, the routing advertisement message includes the evolution indication information. Similarly, the second network device will also add a new evolution command line under the BD view: vpls-to-evpn migration in-process. Therefore, the first network device can receive the first routing advertisement message sent by the second network device, and the first routing advertisement message includes the evolution indication information. The second network device can be any device among the EVPN peer devices of the first network device.

[0072] Step 302: The first network device transmits BUM traffic of the target service in the first broadcast domain based on the evolution indication information.

[0073] In an embodiment of the present application, any first routing announcement message received by the first network device includes the evolution indication information, or the routing announcement message sent by the first network device to the second network device includes the evolution indication information, and the first network device continues to transmit the BUM traffic of the target service in the first broadcast domain. Until the first network device receives multiple second routing announcement messages, and the multiple second routing announcement messages do not include the evolution indication information, and the third routing announcement message sent by the first network device does not include the evolution indication information, and the multiple second routing announcement messages are respectively sent by multiple EVPN peer devices of the first network device; then, the first network device can switch the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission. Among them, multiple EVPN peer devices can refer to all EVPN peer devices corresponding to the first network device.

[0074] Because before switching to the second broadcast domain, the routing advertisement messages sent by the first network device and all EVPN peer devices corresponding to the first network device do not include evolution indication information, indicating that the first network device and all EVPN peer devices corresponding to the first network device have completed the evolution of VPLS PW to BD EVPN. Therefore, after the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, packet loss will not occur due to the evolution process of VPLS PW to BDEVPN, thereby avoiding packet loss caused by switching of broadcast domains.

[0075] For example, when the newly added evolution command line in the BD view: vpls-to-evpn migration in-process is deleted, or when the newly added evolution command line in the BD view: vpls-to-evpn migration finish is added, the route advertisement message sent between the EVPN peer devices does not include the evolution indication information, indicating that all EVPN peer devices have completed the configuration of BD EVPN.

[0076] In a possible implementation, after the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, the first network device can close the VPLS PW, thereby completing the evolution from BD VPLS to BD EVPN. Since BD EVPN has already evolved, directly closing the VPLS PW will not cause packet loss. For example, the VPLS PW can be closed by setting the VPLS PW to DOWN (closed), or configuring the priority of the VPLS PW to be lower than the priority of the BD EVPN. Although the VPLS PW is not closed, due to the low priority of the VPLS PW, the traffic is preferentially transmitted based on the BD EVPN, which has the effect of closing the VPLS PW.

[0077] See also Figure 5 ,by Figure 1 Taking PE1, PE2 and PE3 shown as an example, at the beginning, PE1, PE2 and PE3 only deployed VPLSPW, and the traffic was transmitted based on VPLS PW and broadcast in the broadcast domain corresponding to the traditional VPLS, that is, the first broadcast domain in the embodiment of the present application. Then BD EVPN was deployed on PE1, PE2 and PE3 to evolve VPLS PW to BD EVPN. VPLS PW and BDEVPN are set to UP, IMET routes are announced between PE1, PE2 and PE3, and IMET routes carry evolution indication information, then the traffic is still broadcast in the broadcast domain corresponding to the traditional VPLS; when the IMET routes announced between PE1, PE2 and PE3 do not carry evolution indication information, the traffic is switched to the broadcast domain corresponding to EVPN, that is, the second broadcast domain in the embodiment of the present application. Optionally, after the traffic is switched to the second broadcast domain, the traffic can be transmitted based on both VPLS PW and BD EVPN, for example Figure 5 In the figure, bold indicates that traffic is transmitted based on BD EVPN.

[0078] In a possible implementation, when the VPLS PW is not set to DOWN, after the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, the first network device can also switch the BUM traffic of the target service transmitted in the second broadcast domain back to the first broadcast domain for transmission, thereby implementing service fallback. Since the relevant configuration of the first broadcast domain is not deleted, this method not only supports smooth service upgrade, but also supports smooth service downgrade, making the traffic transmission method more flexible.

[0079] The method provided in the embodiment of the present application keeps both the VPLS PW and the BDEVPN transmission channels open during the evolution process from the traditional VPLS to the BD EVPN, thereby avoiding packet loss caused by the uncertain timing of closing the VPLS PW and opening the BD EVPN. The IMET route announced between the EVPN peer devices carries the evolution indication information. Since the evolution indication information can indicate the evolution process, even if the first network device has created the second broadcast domain, if there is any EVPN peer device in the evolution process, the first network device will not switch the BUM traffic of the target service in the first broadcast domain to the second broadcast domain for transmission. Since the first broadcast domain only supports VPLS PW, multiple packets caused by the dual-channel transmission of VPLS PW and BD EVPN are avoided.

[0080] The above introduces the flow transmission method of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a flow transmission device. Figure 6 This is a structural diagram of a traffic transmission device provided by an embodiment of the present application. The device is applied to a first network device. The transmission channel of the first network device includes VPLS PW and BD EVPN. Both VPLS PW and BD EVPN are in an open state. The first network device transmits BUM traffic of the target service in the first broadcast domain. The transmission channels supported by the first broadcast domain include VPLS PW. The first network device is the above Figure 1 Any PE shown or Figure 3 The first network device is shown.

[0081] based on Figure 6 As shown in the following multiple modules, the Figure 6 The traffic transmission device shown can perform all or part of the operations performed by the first network device. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Figure 6 As shown, the device comprises:

[0082] The receiving module 601 is used to receive a first routing announcement message, where the first routing announcement message is used to announce the EVPNIMET route, where the IMET route is used to guide the BUM traffic of the target service to be transmitted based on the BD EVPN in the second broadcast domain, where the second broadcast domain is created based on the first broadcast domain, where the transmission channels supported by the second broadcast domain include VPLS PW and BD EVPN, where the first routing announcement message includes evolution indication information, where the evolution indication information indicates that the second network device is in the process of evolving from the VPLS PW to the BD EVPN, and where the second network device is any device among the EVPN peer devices of the first network device;

[0083] The transmission module 602 is configured to transmit the BUM traffic of the target service in the first broadcast domain based on the evolution indication information.

[0084] In a possible implementation, the receiving module 601 is further used to receive multiple second routing advertisement messages, none of the multiple second routing advertisement messages include evolution indication information, the multiple second routing advertisement messages are respectively sent by multiple EVPN peer devices of the first network device, and the third routing advertisement message sent by the first network device does not include evolution indication information;

[0085] The transmission module 602 is further configured to switch the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission.

[0086] In a possible implementation manner, the device further includes: a closing module, configured to close the VPLS PW.

[0087] In a possible implementation manner, the transmission module 602 is further configured to switch the BUM traffic of the target service transmitted in the second broadcast domain back to the first broadcast domain for transmission.

[0088] In a possible implementation manner, the evolution indication information is carried in a community attribute field or an extended community attribute field of a routing advertisement message.

[0089] In a possible implementation, the device further includes:

[0090] A creation module is used to create a second broadcast domain based on the first broadcast domain when transmitting the BUM traffic of the target service in the first broadcast domain. The second broadcast domain is bound to a sub-interface of the virtual switching instance VSI corresponding to the first broadcast domain. The replication table of the second broadcast domain includes the replication table of the first broadcast domain. The replication table is used to guide the transmission of the BUM traffic of the target service based on VPLSPW.

[0091] During the evolution process from traditional VPLS to BD EVPN, the device keeps both the VPLS PW and BD EVPN transmission channels open, thus avoiding packet loss caused by the uncertain timing of closing the VPLS PW and opening the BD EVPN. The IMET route announced between EVPN peer devices carries evolution indication information. Since the evolution indication information can indicate the evolution process, even if the first network device has created the second broadcast domain, if any EVPN peer device is in the evolution process, the first network device will not switch the BUM traffic of the target service in the first broadcast domain to the second broadcast domain for transmission. Since the first broadcast domain only supports VPLS PW, multiple packets caused by dual-channel transmission of VPLS PW and BD EVPN are avoided.

[0092] It should be understood that the above Figure 6 When the device provided realizes its functions, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0093] See also Figure 7 , Figure 7 A schematic diagram of the structure of a network device 2000 provided by an exemplary embodiment of the present application is shown. Figure 7 The network device 2000 shown is used to perform the above Figure 3The operations involved in the traffic transmission method shown. The network device 2000 is, for example, a switch, a router, etc. The network device 2000 can be implemented by a general bus architecture.

[0094] like Figure 7 As shown, the network device 2000 includes at least one processor 2001 , a memory 2003 , and at least one communication interface 2004 .

[0095] The processor 2001 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing units (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present invention. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0096] Optionally, the network device 2000 further includes a bus. The bus is used to transmit information between the components of the network device 2000. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.

[0097] The memory 2003 is, for example, a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2003 is, for example, independent and connected to the processor 2001 via a bus. The memory 2003 can also be integrated with the processor 2001.

[0098] The communication interface 2004 uses any transceiver type device for communicating with other devices or communication networks, and the communication network can be Ethernet, radio access network (radio access network, RAN) or wireless local area network (wireless local area networks, WLAN) and the like. The communication interface 2004 can include a wired communication interface and can also include a wireless communication interface. Specifically, the communication interface 2004 can be an Ethernet interface, a Fast Ethernet (Fast Ethernet, FE) interface, a Gigabit Ethernet (Gigabit Ethernet, GE) interface, an Asynchronous Transfer Mode (Asynchronous Transfer Mode, ATM) interface, a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. In an embodiment of the present application, the communication interface 2004 can be used for the network device 2000 to communicate with other devices.

[0099] In a specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, such as Figure 70 and CPU1 shown in FIG. Each of these processors may be a single-core CPU processor or a multi-core CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0100] In a specific implementation, as an embodiment, the network device 2000 may include multiple processors, such as Figure 7 2001 and 2005 are shown in FIG. Each of these processors may be a single-core CPU or a multi-core CPU. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0101] In a specific implementation, as an embodiment, the network device 2000 may further include an output device and an input device. The output device communicates with the processor 2001 and may display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 2001 and may receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensor device.

[0102] In some embodiments, the memory 2003 is used to store the program code 2010 for executing the solution of the present application, and the processor 2001 can execute the program code 2010 stored in the memory 2003. That is, the network device 2000 can implement the traffic transmission method provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003. The program code 2010 may include one or more software modules. Optionally, the processor 2001 itself can also store the program code or instruction for executing the solution of the present application.

[0103] In a specific embodiment, the network device 2000 of the embodiment of the present application may correspond to the first network device in each of the above-mentioned method embodiments, and the processor 2001 in the network device 2000 reads the instruction in the memory 2003, so that Figure 7 The illustrated network device 2000 is capable of performing all or part of the operations performed by the first network device.

[0104] Specifically, processor 2001 is used to receive a first routing announcement message, the first routing announcement message is used to announce EVPN, IMET routing, IMET routing is used to guide the BUM traffic of the target service to be transmitted based on BD EVPN in the second broadcast domain, the second broadcast domain is created based on the first broadcast domain, the first routing announcement message includes evolution indication information, the evolution indication information indicates that the second network device is in the process of evolving from VPLS PW to BD EVPN, the second network device can be any device in the EVPN peer device of the first network device; based on the evolution indication information, continue to transmit the BUM traffic of the target service in the first broadcast domain.

[0105] For the sake of brevity, other optional implementations are not described here in detail.

[0106] The network device 2000 may also correspond to the above Figure 6 In the traffic transmission device shown, each functional module in the traffic transmission device is implemented by software of the network device 2000. In other words, the functional modules included in the traffic transmission device are generated after the processor 2001 of the network device 2000 reads the program code 2010 stored in the memory 2003.

[0107] in, Figure 3 Each step of the traffic transmission method shown is completed by an integrated logic circuit of hardware or software instructions in the processor of the network device 2000. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0108] See also Figure 8 , Figure 8 FIG. 2 shows a schematic diagram of the structure of a network device 2100 provided by another exemplary embodiment of the present application. Figure 8 The network device 2100 shown is used to perform the above Figure 3 All or part of the operations involved in the traffic transmission method shown. The network device 2100 is, for example, a switch, a router, etc. The network device 2100 can be implemented by a general bus architecture.

[0109] like Figure 8 As shown, the network device 2100 includes: a main control board 2110 and an interface board 2130 .

[0110] The main control board is also called a main processing unit (MPU) or a route processor card. The main control board 2110 is used to control and manage various components in the network device 2100, including routing calculation, device management, device maintenance, and protocol processing functions. The main control board 2110 includes: a central processing unit 2111 and a memory 2112.

[0111] The interface board 2130 is also called a line processing unit (LPU), a line card (linecard) or a service board. The interface board 2130 is used to provide various service interfaces and realize the forwarding of data packets. The service interface includes but is not limited to an Ethernet interface, a POS (Packet over SONET / SDH) interface, etc., and the Ethernet interface is, for example, a Flexible Ethernet Service Interface (Flexible Ethernet Clients, FlexE Clients). The interface board 2130 includes: a central processing unit 2131, a network processor 2132, a forwarding table entry memory 2134 and a physical interface card (physical interface card, PIC) 2133.

[0112] The central processor 2131 on the interface board 2130 is used to control and manage the interface board 2130 and communicate with the central processor 2111 on the main control board 2110 .

[0113] The network processor 2132 is used to implement the forwarding processing of the message. The network processor 2132 can be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 2132 is used to forward the received message based on the forwarding table stored in the forwarding table entry memory 2134. If the destination address of the message is the address of the network device 2100, the message is sent to the CPU (such as the central processor 2131) for processing; if the destination address of the message is not the address of the network device 2100, the next hop and the output interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to the output interface corresponding to the destination address. Among them, the processing of the uplink message may include: processing of the message input interface, forwarding table search; the processing of the downlink message may include: forwarding table search, etc. In some embodiments, the central processor can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that the forwarding chip is not required in the interface board.

[0114] The physical interface card 2133 is used to implement the physical layer docking function, whereby the original traffic enters the interface board 2130, and the processed message is sent out from the physical interface card 2133. The physical interface card 2133, also called a daughter card, can be installed on the interface board 2130, and is responsible for converting the photoelectric signal into a message and forwarding the message to the network processor 2132 for processing after checking the legitimacy of the message. In some embodiments, the central processor 2131 can also perform the functions of the network processor 2132, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133.

[0115] Optionally, the network device 2100 includes multiple interface boards, for example, the network device 2100 further includes an interface board 2140, and the interface board 2140 includes: a central processor 2141, a network processor 2142, a forwarding table entry memory 2144, and a physical interface card 2143. The functions and implementation methods of the components in the interface board 2140 are the same or similar to those of the interface board 2130, and are not described in detail here.

[0116] Optionally, the network device 2100 further includes a switching fabric board 2120. The switching fabric board 2120 may also be referred to as a switch fabric unit (SFU). When the network device 2100 has multiple interface boards, the switching fabric board 2120 is used to complete data exchange between the interface boards. For example, the interface board 2130 and the interface board 2140 may communicate via the switching fabric board 2120.

[0117] The main control board 2110 is coupled to the interface board. For example, the main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane through the system bus to achieve intercommunication. In a possible implementation, an inter-process communication (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140, and the main control board 2110 and the interface board 2130 and the interface board 2140 communicate through the IPC channel.

[0118] Logically, the network device 2100 includes a control plane and a forwarding plane. The control plane includes a main control board 2110 and a central processing unit 2111. The forwarding plane includes various components for performing forwarding, such as a forwarding table entry memory 2134, a physical interface card 2133, and a network processor 2132. The control plane performs functions such as a router, generating a forwarding table, processing signaling and protocol messages, and configuring and maintaining the status of the network device. The control plane sends the generated forwarding table to the forwarding plane. On the forwarding plane, the network processor 2132 forwards the message received by the physical interface card 2133 based on the forwarding table sent by the control plane. The forwarding table sent by the control plane can be stored in the forwarding table entry memory 2134. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same network device.

[0119] It is worth noting that there may be one or more main control boards, and when there are multiple boards, they may include a primary main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. In a centralized forwarding architecture, network devices may not need switching network boards, and the interface board is responsible for processing the service data of the entire system. In a distributed forwarding architecture, network devices may have at least one switching network board, and data exchange between multiple interface boards is realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with distributed architectures are greater than those of network devices with centralized architectures. Optionally, the network device may have only one board, that is, no switching board, and the functions of the interface board and the main control board are integrated on the board. In this case, the central processor on the interface board and the central processor on the main control board can be combined into one central processor on the board to perform the functions of the two. This type of network device has low data exchange and processing capabilities (for example, low-end switches or routers and other network devices). The specific architecture to be adopted depends on the specific networking deployment scenario, and no limitation is made here.

[0120] In a specific embodiment, the network device 2100 corresponds to the above Figure 6 The traffic transmission device shown is applied to the first network device. In some embodiments, Figure 6 The receiving module 601 in the traffic transmission device shown is equivalent to the physical interface card 2133 in the network device 2100 , and the transmission module 602 is equivalent to the central processor 2111 or the network processor 2132 in the network device 2100 .

[0121] The embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the method required to be executed by the first network device.

[0122] It should be understood that the processor may be a CPU, or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced reduced instruction set machine (ARM) architecture.

[0123] Further, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0124] The memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct memory bus random access memory (DR RAM).

[0125] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The instruction is loaded and executed by a processor so that a computer implements any of the above traffic transmission methods.

[0126] The embodiments of the present application also provide a computer program (product), which, when executed by a computer, can enable a processor or a computer to execute the corresponding steps and / or processes in the above method embodiments.

[0127] An embodiment of the present application also provides a chip, including a processor, for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes any of the above traffic transmission methods.

[0128] An embodiment of the present application also provides another chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute any of the above traffic transmission methods.

[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (solid state disk)), etc.

[0130] Those of ordinary skill in the art will appreciate that, in conjunction with the various method steps and modules described in the embodiments disclosed herein, they can be implemented in software, hardware, firmware, or any combination thereof. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0131] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0132] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the method of the embodiment of the present application can be described in the context of a machine executable instruction, and the machine executable instruction is such as included in the program module executed in the device on the real or virtual processor of the target. Generally speaking, a program module includes a routine, a program, a library, an object, a class, a component, a data structure, etc., which performs a specific task or realizes a specific abstract data structure. In various embodiments, the function of the program module can be merged or divided between the described program modules. The machine executable instruction for the program module can be executed in a local or distributed device. In a distributed device, the program module can be located in both a local and a remote storage medium.

[0133] The computer program code for realizing the method for the embodiment of the present application can be written in one or more programming languages. These computer program codes can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by a computer or other programmable data processing device, causes the function / operation specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on a computer, partially on a computer, as an independent software package, partially on a computer and partially on a remote computer or completely on a remote computer or server.

[0134] In the context of the embodiments of the present application, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like.

[0135] Examples of signals may include electrical, optical, radio, acoustic or other forms of propagated signals, such as carrier waves, infrared signals, etc.

[0136] A machine-readable medium may be any tangible medium that contains or stores a program for or related to an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0138] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or it can be an electrical, mechanical or other form of connection.

[0139] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0140] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0141] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0142] In the present application, the terms "first", "second", etc. are used to distinguish between identical or similar items having substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of various examples, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image. Both the first image and the second image may be images, and in some cases, may be separate and different images.

[0143] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0144] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.

[0145] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0146] It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" is a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0147] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0148] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that ..." or "if [a stated condition or event] is detected" may be interpreted to mean "upon determining that ..." or "in response to determining that ..." or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.

[0149] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.

[0150] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0151] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims

1. A traffic transmission method, characterized in that: The method is applied to a first network device, wherein a transmission channel of the first network device includes a virtual private local area network pseudo wire (VPLS) PW and a bridge domain Ethernet virtual private network (BD EVPN), wherein both the VPLS PW and the BD EVPN are in an open state, and the first network device transmits broadcast, unknown unicast, and multicast (BUM) traffic of a target service in a first broadcast domain, and the transmission channel supported by the first broadcast domain includes the VPLS PW. The method includes: The first network device receives a first route advertisement message, where the first route advertisement message is used to advertise an EVPN multicast Ethernet label (IMET) route, where the IMET route is used to guide BUM traffic of the target service to be transmitted in a second broadcast domain based on the BD EVPN, where the second broadcast domain is created based on the first broadcast domain, where transmission channels supported by the second broadcast domain include the VPLS PW and the BD EVPN, where the first route advertisement message includes evolution indication information, where the evolution indication information indicates that the second network device is in a process of evolving from the VPLS PW to the BD EVPN, and where the second network device is any one of the EVPN peer devices of the first network device; The first network device transmits the BUM traffic of the target service in the first broadcast domain based on the evolution indication information.

2. The method according to claim 1, characterized in that After the first network device transmits the BUM traffic of the target service in the first broadcast domain based on the evolution indication information, the method further includes: The first network device receives multiple second route advertisement messages, each of the multiple second route advertisement messages does not include the evolution indication information, the multiple second route advertisement messages are respectively sent by multiple EVPN peer devices of the first network device, and a third route advertisement message sent by the first network device does not include the evolution indication information; The first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission.

3. The method according to claim 2, characterized in that After the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, the method further includes: The first network device shuts down the VPLS PW.

4. The method according to claim 2, characterized in that After the first network device switches the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission, the method further includes: The first network device switches the BUM traffic of the target service transmitted in the second broadcast domain back to the first broadcast domain for transmission.

5. The method according to any one of claims 1 to 4, characterized in that: The evolution indication information is carried in the community attribute field or the extended community attribute field of the routing advertisement message.

6. The method according to any one of claims 1 to 5, characterized in that: Before the first network device receives the first route advertisement message, the method further includes: When the first network device transmits the BUM traffic of the target service in the first broadcast domain, the second broadcast domain is created based on the first broadcast domain, and the second broadcast domain is bound to the sub-interface of the virtual switching instance VSI corresponding to the first broadcast domain. The replication table of the second broadcast domain includes the replication table of the first broadcast domain, and the replication table is used to guide the transmission of the BUM traffic of the target service based on the VPLS PW.

7. A flow transmission device, characterized in that: The apparatus is applied to a first network device, wherein a transmission channel of the first network device includes a virtual private local area network service pseudo wire (VPLS) PW and a bridge domain Ethernet virtual private network (BD EVPN), wherein both the VPLS PW and the BD EVPN are in an open state, and the first network device transmits broadcast, unknown unicast, and multicast (BUM) traffic of a target service in a first broadcast domain, wherein the transmission channel supported by the first broadcast domain includes the VPLS PW, and the apparatus includes: A receiving module, configured to receive a first route advertisement message, where the first route advertisement message is used to advertise an EVPN multicast Ethernet label IMET route, where the IMET route is used to guide BUM traffic of the target service to be transmitted based on the BD EVPN in a second broadcast domain, where the second broadcast domain is created based on the first broadcast domain, where the transmission channels supported by the second broadcast domain include the VPLS PW and the BD EVPN, where the first route advertisement message includes evolution indication information, where the evolution indication information indicates that a second network device is in the process of evolving from the VPLS PW to the BD EVPN, and where the second network device is any one of the EVPN peer devices of the first network device; A transmission module is used to transmit the BUM traffic of the target service in the first broadcast domain based on the evolution indication information.

8. The device according to claim 7, characterized in that The receiving module is further configured to receive a plurality of second route advertisement messages, wherein none of the plurality of second route advertisement messages includes the evolution indication information, the plurality of second route advertisement messages are respectively sent by a plurality of EVPN peer devices of the first network device, and a third route advertisement message sent by the first network device does not include the evolution indication information; The transmission module is further configured to switch the BUM traffic of the target service transmitted in the first broadcast domain to the second broadcast domain for transmission.

9. The device according to claim 8, characterized in that The device further comprises: The closing module is used to close the VPLS PW.

10. The device according to claim 8, characterized in that The transmission module is further configured to switch the BUM traffic of the target service transmitted in the second broadcast domain back to the first broadcast domain for transmission.

11. The device according to any one of claims 7 to 10, characterized in that: The evolution indication information is carried in the community attribute field or the extended community attribute field of the routing advertisement message.

12. The device according to any one of claims 7 to 11, characterized in that: The device further comprises: A creation module is used to create the second broadcast domain based on the first broadcast domain when transmitting the BUM traffic of the target service in the first broadcast domain, the second broadcast domain is bound to the sub-interface of the virtual switching instance VSI corresponding to the first broadcast domain, the replication table of the second broadcast domain includes the replication table of the first broadcast domain, and the replication table is used to guide the transmission of the BUM traffic of the target service based on the VPLS PW.

13. A network device, characterized in that: The network device includes: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor so that the network device implements the traffic transmission method described in any one of claims 1-6.

14. A computer-readable storage medium, characterized in that The computer storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to enable the computer to implement the traffic transmission method described in any one of claims 1-6.

15. A computer program product, characterized in that The computer program product includes: computer program code, which is loaded and executed by a computer to enable the computer to implement the traffic transmission method according to any one of claims 1 to 6.