CN108259339B - Message sending method and device - Google Patents

Message sending method and device Download PDF

Info

Publication number
CN108259339B
CN108259339B CN201710771220.8A CN201710771220A CN108259339B CN 108259339 B CN108259339 B CN 108259339B CN 201710771220 A CN201710771220 A CN 201710771220A CN 108259339 B CN108259339 B CN 108259339B
Authority
CN
China
Prior art keywords
message
interface
vxlan
packet
layer protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710771220.8A
Other languages
Chinese (zh)
Other versions
CN108259339A (en
Inventor
刘永奎
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710771220.8A priority Critical patent/CN108259339B/en
Publication of CN108259339A publication Critical patent/CN108259339A/en
Application granted granted Critical
Publication of CN108259339B publication Critical patent/CN108259339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Landscapes

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

Abstract

The disclosure relates to a message sending method and device. The method is used for a first PE device, a first interface of the first PE device binds a first virtual switch instance, and the method comprises the following steps: enabling a first interface of first PE equipment to have a function of transparently transmitting a two-layer protocol message; receiving a first message from a first user edge (CE) device through a first interface of a first PE device, wherein the first message is a two-layer protocol message; and sending a VXLAN message encapsulating the first message to the second PE device, so that the first message is sent to the second CE device through a second interface of the second PE device, and the second interface of the second PE device is bound with the first virtual switching instance, so that the two-layer protocol message can span PE devices in the MPLS L2VPN network and is transmitted from one CE device to another CE device, and aggregation among the CE devices is realized. In addition, point-to-point transmission of two-layer protocol messages is carried out through VXLAN tunnels established among the PE devices, and tunnel resources can be effectively saved.

Description

Message sending method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a message sending method and apparatus.
Background
In the related art, L2PT (Layer 2Protocol Tunneling) is a two-Layer Protocol packet processing technology, which can enable two-Layer Protocol packets of user networks located in different regions to be transparently transmitted or forcibly discarded through a specified channel in an operator network. MPLS L2VPN (Multi-Protocol Label Switching Layer 2Virtual Private Network) provides a two-Layer VPN service based on an MPLS Network, so that an operator can provide two-Layer VPNs based on different media, such as ATM, FR, Ethernet, PPP, on a unified MPLS Network. Meanwhile, the MPLS network can still provide services such as MPLS L3VPN, traffic engineering and QoS.
Disclosure of Invention
In view of this, the present disclosure provides a message sending method and device to solve the problem in the related art that a two-layer protocol message cannot be transparently transmitted in an MPLS L2VPN network.
According to an aspect of the present disclosure, a packet sending method is provided, where the method is used for a first provider edge PE device, and a first interface of the first PE device is bound to a first virtual switch instance, where the method includes:
enabling a first interface of the first PE device to have a function of transparently transmitting a two-layer protocol message;
receiving a first message from a first user edge (CE) device through a first interface of the first PE device, wherein the first message is a two-layer protocol message;
and sending a VXLAN message encapsulating the first message to a second PE device so as to send the first message to a second CE device through a second interface of the second PE device, wherein the second interface of the second PE device is bound with the first virtual switch instance.
According to another aspect of the present disclosure, a packet sending method is provided, where the method is used for a second PE device, and a second interface of the second PE device is bound to a first virtual switch instance, and the method includes:
receiving a VXLAN message from a first PE device for encapsulating a first message, wherein a first interface of the first PE device is bound with the first virtual switch instance;
decapsulating the VXLAN message encapsulated with the first message to obtain a first message;
and sending the first message to a second CE device through a second interface of the second PE device.
According to another aspect of the present disclosure, a packet sending apparatus is provided, where the apparatus is used for a first provider edge PE device, and a first interface of the first PE device is bound to a first virtual switch instance, and the apparatus includes:
a first enabling module, configured to enable a first interface of the first PE device to transparently transmit a function of a two-layer protocol packet;
a first packet receiving module, configured to receive, through a first interface of the first PE device, a first packet from a first customer edge CE device, where the first packet is a two-layer protocol packet;
a first VXLAN packet sending module, configured to send a VXLAN packet encapsulating the first packet to the second PE device, so that the first packet is sent to the second CE device through the second interface of the second PE device, and the second interface of the second PE device binds the first virtual switch instance.
According to another aspect of the present disclosure, a packet sending apparatus is provided, where the apparatus is used for a second PE device, and a second interface of the second PE device is bound to a first virtual switch instance, and the apparatus includes:
a first VXLAN message receiving module, configured to receive a VXLAN message encapsulating a first message from a first PE device, where a first interface of the first PE device is bound to the first virtual switch instance;
the decapsulation module is used for decapsulating the VXLAN message encapsulated with the first message to obtain the first message;
and the first message sending module is used for sending the first message to the second CE equipment through the second interface of the second PE equipment.
According to another aspect of the present disclosure, there is provided a packet forwarding apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
The message sending method and the message sending device are used for a first PE device, a first interface of the first PE device is bound with a first virtual exchange instance, the first interface of the first PE device enables a function of transparently transmitting a two-layer protocol message, the first message from the first CE device is received through the first interface of the first PE device, the first message is the two-layer protocol message, a VXLAN message encapsulating the first message is sent to a second PE device, so that the first message is sent to the second CE device through the second interface of the second PE device, the second interface of the second PE device is bound with the first virtual exchange instance, and therefore the two-layer protocol message can span PE devices in an MPLS L2VPN network and is transmitted from one CE device to another CE device, and aggregation among the CE devices is achieved. In addition, point-to-point transmission of two-layer protocol messages is carried out through VXLAN tunnels established among the PE devices, and tunnel resources can be effectively saved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flow chart of a message sending method according to an embodiment of the present disclosure.
Fig. 2 shows a networking schematic diagram of an application packet sending method according to an embodiment of the present disclosure.
Fig. 3 shows an exemplary flowchart of a message sending method according to an embodiment of the disclosure.
Fig. 4 shows a networking schematic diagram of an application packet sending method according to an embodiment of the present disclosure.
Fig. 5 shows a flow chart of a message sending method according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of a message sending device according to an embodiment of the present disclosure.
Fig. 7 shows a schematic block diagram of a messaging device according to an embodiment of the present disclosure.
Fig. 8 shows a block diagram of a message sending device according to an embodiment of the present disclosure.
Fig. 9 shows a block diagram of a message sending device according to an embodiment of the present disclosure.
Fig. 10 is a block diagram illustrating an apparatus 900 for messaging according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
At present, the two-layer protocol message cannot be transparently transmitted in the MPLS L2VPN network. That is, a two-layer protocol packet cannot span PE (Provider Edge) devices in an MPLS L2VPN network and is transmitted from one CE device to another CE device, so that aggregation between CE (Customer Edge) devices cannot be achieved. In the related art, in the MPLS L2VPN network, when the PE1 receives the two-layer protocol packet from the CE1, the PE1 directly transmits the received two-layer protocol packet to a local CPU (Central Processing Unit, CPU) for operation. The operation of the two-layer protocol message of the user network and the operator network will affect each other, and the user network can not independently complete the operation of the two-layer protocol message.
Fig. 1 shows a flow chart of a message sending method according to an embodiment of the present disclosure. The method is used for a first PE device, and a first interface of the first PE device is bound with a first virtual switching instance. As shown in fig. 1, the method may include steps S11 to S13.
In step S11, the first interface of the first PE device is enabled to transparently transmit the function of the layer two protocol packet.
In step S12, a first packet from a first CE device is received through a first interface of a first PE device, where the first packet is a layer two protocol packet.
In step S13, a VXLAN packet encapsulating the first packet is sent to the second PE device, so that the first packet is sent to the second CE device through the second interface of the second PE device, and the second interface of the second PE device binds the first virtual switch instance.
The function of enabling transparent transmission of the two-layer protocol message may refer to setting a physical interface of the PE device, so that the physical interface of the PE device does not transmit the two-layer protocol message to a local CPU for operation but transmits the two-layer protocol message when receiving the two-layer protocol message.
Those skilled in the art will appreciate that step S11 is a configuration step. In other words, after the function of enabling the first interface of the first PE device to transparently transmit the two-layer protocol packet is completed, the first interface of the first PE device has the function of transparently transmitting the two-layer protocol packet. In the actual application process, the first interface of the first PE device may be configured as described in step S11 in the configuration stage.
In an implementation manner, the two-layer Protocol packet may be an STP (Spanning Tree Protocol) packet, a DLDP (Device Link Detection Protocol) packet, a UDLD (Unidirectional Link Detection Protocol) packet, a PAGP (Port Aggregation Protocol) packet, or a LACP (Link Aggregation Control Protocol) packet, and the disclosure is not limited thereto.
In one implementation, sending a VXLAN packet encapsulating the first packet to the second PE device (step S13) includes: carrying out VXLAN packaging on the first message to obtain a VXLAN message for packaging the first message; and sending the VXLAN message for encapsulating the first message to the second PE equipment.
Fig. 2 shows a networking schematic diagram of an application packet sending method according to an embodiment of the present disclosure. As shown in fig. 2, PE1 is connected to CE1, and PE2 is connected to CE 2. Interface 1 of PE1 binds VSI1 and interface 2 of PE2 binds VSI 1. After interface 1 of PE1 binds VSI1, interface 1 of PE1 creates AC (access Circuit) interface 1. After interface 2 of PE2 binds VSI1, interface 2 of PE2 creates AC interface 3. Since interface 1 of PE1 and interface 2 of PE2 both bind VSI1, VXLAN tunnel 1 may be established between PE1 and PE2 according to AC interface 1 and AC interface 3. Wherein, the interface 1 and the interface 2 are both physical interfaces. AC interface 1 and AC interface 3 are logical interfaces.
In one implementation, interface 1 of PE1 is enabled with the function of transparently transmitting layer two protocol packets during the configuration phase, so interface 1 of PE1 has the function of transparently transmitting layer two protocol packets. As shown in fig. 2, CE1 sends message 1 to PE1, where message 1 is a two-layer protocol message. Interface 1 of PE1 receives message 1 from CE 1. Since the interface 1 of the PE1 has the function of transparently transmitting the two-layer protocol packet, the PE1 does not transmit the packet 1 to the local CPU for operation, but sends the packet 1. The PE1 performs VXLAN encapsulation on the message 1 to obtain VXLAN message 1. PE1 sends VXLAN message 1 to PE2 through VXLAN tunnel 1.
Fig. 3 shows an exemplary flowchart of a message sending method according to an embodiment of the disclosure. The method is used for a first PE device, a first interface of the first PE device is bound with a first virtual switching instance, and the first interface of the first device is also bound with a second virtual switching instance. As shown in fig. 3, the method may include steps S11 to S14.
In step S11, the first interface of the first PE device is enabled to transparently transmit the function of the layer two protocol packet.
In step S12, a first packet from a first CE device is received through a first interface of a first PE device, where the first packet is a layer two protocol packet.
In step S13, a VXLAN packet encapsulating the first packet is sent to the second PE device, so that the first packet is sent to the second CE device through the second interface of the second PE device, and the second interface of the second PE device binds the first virtual switch instance.
In step S14, a VXLAN packet encapsulating the first packet is sent to the third PE device, so that the first packet is sent to the third CE device through the third interface of the third PE device, and the third interface of the third PE device binds the second virtual switch instance.
Fig. 4 shows a networking schematic diagram of an application packet sending method according to an embodiment of the present disclosure. As shown in fig. 4, PE1 is connected to CE1, PE2 is connected to CE2, and PE3 is connected to CE 3. Interface 1 of PE1 binds VSI1 and VSI2, interface 2 of PE2 binds VSI1, and interface 3 of PE3 binds VSI 2. After interface 1 of PE1 binds VSI1, interface 1 of PE1 creates AC interface 1. After interface 1 of PE1 binds VSI2, interface 1 of PE1 creates AC interface 2. After interface 2 of PE2 binds VSI1, interface 2 of PE2 creates AC interface 3. After interface 3 of PE3 binds VSI2, interface 3 of PE3 creates AC interface 4. Since interface 1 of PE1 and interface 2 of PE2 both bind VSI1, VXLAN tunnel 1 may be established between PE1 and PE2 according to AC interface 1 and AC interface 3. Since interface 1 of PE1 and interface 3 of PE3 both bind VSI2, VXLAN tunnel 2 may be established between PE1 and PE3 according to AC interface 2 and AC interface 4. The interface 1, the interface 2 and the interface 3 are all physical interfaces. The AC interface 1, the AC interface 2, the AC interface 3, and the AC interface 4 are logical interfaces.
In one implementation, interface 1 of PE1 is enabled with the function of transparently transmitting layer two protocol packets during the configuration phase, so interface 1 of PE1 has the function of transparently transmitting layer two protocol packets. As shown in fig. 4, CE1 sends message 1 to PE1, where message 1 is a two-layer protocol message. Interface 1 of PE1 receives message 1 from CE 1. Since the interface 1 of the PE1 has the function of transparently transmitting the two-layer protocol packet, the PE1 does not transmit the packet 1 to the local CPU for operation, but sends the packet 1. The PE1 performs VXLAN encapsulation on the message 1 to obtain VXLAN message 1. PE1 sends VXLAN message 1 to PE2 through VXLAN tunnel 1. PE1 sends VXLAN message 1 to PE3 through VXLAN tunnel 2.
According to the message sending method, the two-layer protocol message can span PE equipment in an MPLS L2VPN network and is transmitted from one CE equipment to another CE equipment, and aggregation among the CE equipment is achieved. In addition, point-to-point transmission of two-layer protocol messages is carried out through VXLAN tunnels established among the PE devices, and tunnel resources can be effectively saved.
Fig. 5 shows a flow chart of a message sending method according to an embodiment of the present disclosure. The method is used for a second PE device, and a second interface of the second PE device binds a first virtual switching instance. As shown in fig. 5, the method may include steps S51 to S53.
In step S51, a VXLAN packet encapsulating a first packet is received from a first PE device, and a first interface of the first PE device binds to a first virtual switch instance.
In step S52, the VXLAN packet encapsulating the first packet is decapsulated to obtain the first packet.
In step S53, the first packet is sent to the second CE device through the second interface of the second PE device.
In one implementation, the method further comprises: enabling a second interface of the second PE device to have a function of transparently transmitting a two-layer protocol message; receiving a second message from a second CE device through a second interface of a second PE device, wherein the second message is a two-layer protocol message; and sending the VXLAN message encapsulating the second message to the first PE equipment so as to send the second message to the first CE equipment through the first interface of the first PE equipment.
In one implementation, interface 1 of PE1 is enabled with the function of transparently transmitting layer two protocol packets during the configuration phase, so interface 1 of PE1 has the function of transparently transmitting layer two protocol packets. As shown in fig. 2, CE1 sends message 1 to PE1, where message 1 is a two-layer protocol message. Interface 1 of PE1 receives message 1 from CE 1. The PE1 performs VXLAN encapsulation on the message 1 to obtain VXLAN message 1. PE1 sends VXLAN message 1 to PE2 through VXLAN tunnel 1. PE2 receives VXLAN message 1 from PE 1. PE2 decapsulates VXLAN message 1 to obtain message 1. Interface 2 of PE2 sends message 1 to CE 2. CE2 receives message 1 from PE 2. Therefore, the message 1 of the CE1 is transmitted to the CE2, and the aggregation between the CE1 and the CE2 is realized.
In one implementation, interface 1 of PE1 is enabled with the function of transparently transmitting layer two protocol packets during the configuration phase, so interface 1 of PE1 has the function of transparently transmitting layer two protocol packets. As shown in fig. 4, CE1 sends message 1 to PE1, where message 1 is a two-layer protocol message. Interface 1 of PE1 receives message 1 from CE 1. The PE1 performs VXLAN encapsulation on the message 1 to obtain VXLAN message 1. PE1 sends VXLAN message 1 to PE2 through VXLAN tunnel 1. PE2 receives VXLAN message 1 from PE 1. PE2 decapsulates VXLAN message 1 to obtain message 1. Interface 2 of PE2 sends message 1 to CE 2. CE2 receives message 1 from PE 2. PE1 sends VXLAN message 1 to PE3 through VXLAN tunnel 2. PE3 receives VXLAN message 1 from PE 1. PE3 decapsulates VXLAN message 1 to obtain message 1. Interface 3 of PE3 sends message 1 to CE 3. CE3 receives message 1 from PE 2. Therefore, the message 1 of the CE1 is transmitted to the CE2 and the CE2, and the aggregation between the CE1 and the CE2 and between the CE3 is realized.
Those skilled in the art will appreciate that interface 1 of PE1 may also be bound to VSI3 and interface 4 of PE4 may also be bound to VSI 3. Therefore, when the interface 1 of the PE1 has a function of transparently transmitting a two-layer protocol packet, it is possible to transmit the packet 1 of the CE1 to the CE 4. This disclosure is not repeated herein.
In one implementation, the interface 1 of the PE1 and the interface 2 of the PE2 are enabled to transparently transmit the two-layer protocol packet in the configuration phase, so that the interface 1 of the PE1 and the interface 2 of the PE2 have the function of transparently transmitting the two-layer protocol packet. As shown in fig. 2, CE1 sends message 1 to PE1, where message 1 is a two-layer protocol message. Interface 1 of PE1 receives message 1 from CE 1. The PE1 performs VXLAN encapsulation on the message 1 to obtain VXLAN message 1. PE1 sends VXLAN message 1 to PE2 through VXLAN tunnel 1. PE2 receives VXLAN message 1 from PE 1. PE2 decapsulates VXLAN message 1 to obtain message 1. Interface 2 of PE2 sends message 1 to CE 2. CE2 receives message 1 from PE 2. CE2 sends message 2 to PE2, where message 2 is a two-layer protocol message. Interface 2 of PE2 receives message 2 from CE 2. PE2 performs VXLAN encapsulation on message 2 to obtain VXLAN message 2. PE1 sends VXLAN message 2 to PE1 through VXLAN tunnel 1. PE1 receives VXLAN message 2 from PE 2. PE1 decapsulates VXLAN message 2 to obtain message 2. Interface 1 of PE1 sends message 2 to CE 1. CE1 receives message 1 from PE 1. Therefore, the message 1 of the CE1 is transmitted to the CE2, the message 2 of the CE2 is transmitted to the CE1, and bidirectional aggregation between the CE1 and the CE2 is realized.
Fig. 6 shows a block diagram of a message sending device according to an embodiment of the present disclosure. The device is used for a first PE device, and a first interface of the first PE device is bound with a first virtual exchange instance. As shown in fig. 6, the apparatus includes: a first enabling module 61, configured to enable a first interface of the first PE device to transparently transmit a function of a two-layer protocol packet; a first packet receiving module 62, configured to receive, through a first interface of the first PE device, a first packet from a first customer edge CE device, where the first packet is a two-layer protocol packet; a first VXLAN packet sending module 63, configured to send a VXLAN packet encapsulating the first packet to the second PE device, so that the first packet is sent to the second CE device through the second interface of the second PE device, and the second interface of the second PE device binds the first virtual switch instance.
Fig. 7 shows a schematic block diagram of a messaging device according to an embodiment of the present disclosure. As shown in fig. 7:
in one implementation, the first interface of the first PE device binds a second virtual switch instance, and the apparatus further includes: a second VXLAN packet sending module 64, configured to send a VXLAN packet encapsulating the first packet to a third PE device, so that the first packet is sent to a third CE device through a third interface of the third PE device, where the third interface of the third PE device binds the second virtual switch instance.
In one implementation, the apparatus further comprises: the first VXLAN message sending module 63 includes: the encapsulating submodule 631 is configured to perform VXLAN encapsulation on the first message to obtain a VXLAN message encapsulating the first message; the sending submodule 632 is configured to send a VXLAN packet encapsulating the first packet to the second PE device.
Fig. 8 shows a block diagram of a message sending device according to an embodiment of the present disclosure. The device is used for a second PE device, and a second interface of the second PE device is bound with a first virtual exchange instance. As shown in fig. 8, the apparatus includes: a first VXLAN message receiving module 81, configured to receive a VXLAN message encapsulating a first message from a first PE device, where a first interface of the first PE device is bound to the first virtual switch instance; a decapsulation module 82, configured to decapsulate the VXLAN packet encapsulating the first packet, to obtain the first packet; a first packet sending module 83, configured to send the first packet to a second CE device through a second interface of the second PE device.
Fig. 9 shows a block diagram of a message sending device according to an embodiment of the present disclosure. As shown in fig. 9:
in one implementation, the apparatus further comprises: a second enabling module 84, configured to enable a second interface of the second PE device to enable a function of transparently transmitting a two-layer protocol packet; a second packet receiving module 85, configured to receive, through a second interface of the second PE device, a second packet from a second CE device, where the second packet is a layer two protocol packet; a third VXLAN message sending module 86, configured to send a VXLAN message encapsulating the second message to the first PE device, so that the second message is sent to the first CE device through the first interface of the first PE device.
According to the message sending device, the two-layer protocol message can span PE equipment in an MPLS L2VPN network and is transmitted from one CE equipment to another CE equipment, and aggregation among the CE equipment is achieved. In addition, point-to-point transmission of two-layer protocol messages is carried out through VXLAN tunnels established among the PE devices, and tunnel resources can be effectively saved.
Fig. 10 is a block diagram illustrating an apparatus 900 for messaging according to an example embodiment. Referring to fig. 10, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, the processor 901 performs the messaging method described above by reading machine-executable instructions in the machine-readable storage medium 902 corresponding to messaging logic.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method for sending a message is used for a first Provider Edge (PE) device, a first interface of the first PE device is bound with a first virtual switch instance, the first interface is a physical interface, and the method comprises the following steps:
enabling a first interface of the first PE device to have a function of transparently transmitting a two-layer protocol message;
the function of enabling the transparent transmission of the two-layer protocol message comprises the following steps: setting a first interface of the first PE device, so that the first interface of the first PE device does not transmit a two-layer protocol message to a local CPU for operation under the condition that the first interface of the first PE device receives the two-layer protocol message;
receiving a first message from a first user edge (CE) device through a first interface of the first PE device, wherein the first message is a two-layer protocol message;
and sending a VXLAN message encapsulating the first message to a second PE device so as to send the first message to a second CE device through a second interface of the second PE device, wherein the second interface of the second PE device is bound with the first virtual switch instance.
2. The method of claim 1, wherein the first interface of the first PE device binds a second virtual switch instance, the method further comprising:
and sending a VXLAN message encapsulating the first message to a third PE device so as to send the first message to a third CE device through a third interface of the third PE device, wherein the third interface of the third PE device is bound with the second virtual switch instance.
3. The method of claim 1, wherein sending the VXLAN message encapsulating the first message to the second PE device comprises:
carrying out VXLAN packaging on the first message to obtain a VXLAN message for packaging the first message;
and sending the VXLAN message for encapsulating the first message to the second PE equipment.
4. A method for sending a message is used for a second PE device, a second interface of the second PE device is bound with a first virtual switch instance, the second interface is a physical interface, and the method comprises the following steps:
receiving a VXLAN message from a first PE device for encapsulating a first message, wherein a first interface of the first PE device is bound with the first virtual switch instance;
decapsulating the VXLAN message encapsulated with the first message to obtain a first message;
sending the first message to a second CE device through a second interface of the second PE device;
enabling a second interface of the second PE device to have a function of transparently transmitting a two-layer protocol message;
the function of enabling the transparent transmission of the two-layer protocol message comprises the following steps: setting a second interface of the second PE device, so that the second interface of the second PE device does not transmit a two-layer protocol message to a local CPU for operation under the condition that the second interface of the second PE device receives the two-layer protocol message;
receiving a second message from a second CE device through a second interface of the second PE device, wherein the second message is a layer two protocol message;
and sending a VXLAN message encapsulating a second message to the first PE equipment so as to send the second message to the first CE equipment through the first interface of the first PE equipment.
5. A message sending device is characterized in that the device is used for a first Provider Edge (PE) device, a first interface of the first PE device is bound with a first virtual switch instance, the first interface is a physical interface, and the device comprises:
a first enabling module, configured to enable a first interface of the first PE device to transparently transmit a function of a two-layer protocol packet; the function of enabling the transparent transmission of the two-layer protocol message comprises the following steps: setting a first interface of the first PE device, so that the first interface of the first PE device does not transmit a two-layer protocol message to a local CPU for operation under the condition that the first interface of the first PE device receives the two-layer protocol message;
a first packet receiving module, configured to receive, through a first interface of the first PE device, a first packet from a first customer edge CE device, where the first packet is a two-layer protocol packet;
a first VXLAN packet sending module, configured to send a VXLAN packet encapsulating the first packet to the second PE device, so that the first packet is sent to the second CE device through the second interface of the second PE device, and the second interface of the second PE device binds the first virtual switch instance.
6. The apparatus of claim 5, wherein the first interface of the first PE device binds a second virtual switch instance, the apparatus further comprising:
a second VXLAN message sending module, configured to send a VXLAN message encapsulating the first message to a third PE device, so that the first message is sent to a third CE device through a third interface of the third PE device, where the third interface of the third PE device binds the second virtual switch instance.
7. The apparatus of claim 5, wherein the first VXLAN messaging module comprises:
the encapsulation submodule is used for carrying out VXLAN encapsulation on the first message to obtain a VXLAN message encapsulating the first message;
and the sending submodule is used for sending the VXLAN message for encapsulating the first message to the second PE equipment.
8. A message sending apparatus, where the apparatus is used in a second PE device, a second interface of the second PE device is bound to a first virtual switch instance, and the second interface is a physical interface, and the apparatus includes:
a first VXLAN message receiving module, configured to receive a VXLAN message encapsulating a first message from a first PE device, where a first interface of the first PE device is bound to the first virtual switch instance;
the decapsulation module is used for decapsulating the VXLAN message encapsulated with the first message to obtain the first message;
a first packet sending module, configured to send the first packet to a second CE device through a second interface of the second PE device;
the device further comprises: a second enabling module, configured to enable a second interface of the second PE device to transparently transmit a function of a two-layer protocol packet; the function of enabling the transparent transmission of the two-layer protocol message comprises the following steps: setting a second interface of the second PE device, so that the second interface of the second PE device does not transmit a two-layer protocol message to a local CPU for operation under the condition that the second interface of the second PE device receives the two-layer protocol message;
a second packet receiving module, configured to receive, through a second interface of the second PE device, a second packet from a second CE device, where the second packet is a layer two protocol packet;
and the third VXLAN message sending module is configured to send a VXLAN message encapsulating the second message to the first PE device, so that the second message is sent to the first CE device through the first interface of the first PE device.
9. A message transmission apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1 to 4.
10. A non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method of any of claims 1 to 4.
CN201710771220.8A 2017-08-31 2017-08-31 Message sending method and device Active CN108259339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710771220.8A CN108259339B (en) 2017-08-31 2017-08-31 Message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710771220.8A CN108259339B (en) 2017-08-31 2017-08-31 Message sending method and device

Publications (2)

Publication Number Publication Date
CN108259339A CN108259339A (en) 2018-07-06
CN108259339B true CN108259339B (en) 2020-12-25

Family

ID=62721965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710771220.8A Active CN108259339B (en) 2017-08-31 2017-08-31 Message sending method and device

Country Status (1)

Country Link
CN (1) CN108259339B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3991368A1 (en) * 2020-01-14 2022-05-04 VMware, Inc. Transparent demilitarized zone providing stateful service between physical and logical networks
US11411777B2 (en) 2020-01-14 2022-08-09 Vmware, Inc. Port mapping for bonded interfaces of ECMP group
CN114039814B (en) * 2021-11-30 2024-02-23 锐捷网络股份有限公司 Message forwarding method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136987B (en) * 2010-01-22 2015-01-14 杭州华三通信技术有限公司 Message forwarding method and provider edge (PE) equipment for multi-protocol label switching virtual private network (MPLS VPN)
CN101808042B (en) * 2010-03-16 2014-11-05 中兴通讯股份有限公司 Access method and device of multiprotocol label switching double-layer virtual private network
CN103795630B (en) * 2014-01-15 2017-10-17 新华三技术有限公司 The message transmitting method and device of a kind of label exchange network
KR20150094238A (en) * 2014-02-11 2015-08-19 한국전자통신연구원 VIRTUAL EXTENSIBLE LOCAL AREA NETWORK(VxLAN) SYSTEM OF AUTOMATICALLY CONFIGURING MULTICASTING TUNNEL FOR SEGMENT OF THE VIRTUAL EXTENSIBLE LOCAL AREA NETWORK ACCORDING TO LIFE CYCLE OF AN END-SYSTEM AND OPERATING METHOD THEREOF
CN105591868B (en) * 2015-07-15 2019-03-15 新华三技术有限公司 A kind of cut-in method and device of Virtual Private Network VPN

Also Published As

Publication number Publication date
CN108259339A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
EP3713162A1 (en) Route processing method and apparatus, and data transmission method and apparatus
US7782841B2 (en) Method and system for transporting data using pseudowire circuits over a bridged network
US8861547B2 (en) Method, apparatus, and system for packet transmission
EP3782336B1 (en) Multi-vrf universal device internet protocol address for fabric edge devices
US20120099602A1 (en) End-to-end virtualization
EP1134938A1 (en) System, device and method for supporting a label switched path across a non-MPLS compliant segment
CN112019433B (en) Message forwarding method and device
CN107645433B (en) Message forwarding method and device
US9853833B2 (en) Individual virtual private local area network service conversion to a different virtual private network service
CN108259339B (en) Message sending method and device
CN109412922B (en) Method, forwarding device, controller and system for transmitting message
CN108040135B (en) Method and device for VPWS message to pass through three-layer IP network
CN107547325B (en) Message forwarding method and device
CN111490933B (en) Bidirectional forwarding detection switching method and edge device
CN111213345B (en) Apparatus, method and system for transmitting or receiving a message containing control information
CN105553810A (en) Method and device for forwarding special line service packet
CN111193644A (en) vBRAS service transmission method, device, terminal equipment and medium
CN108390812B (en) Message forwarding method and device
CN107547340A (en) A kind of message forwarding method and device
CN112511483A (en) Data forwarding method, equipment and storage medium
CN102904814B (en) Data transmission method, source PE, object PE and data transmission system
EP3920512A1 (en) Transmission method and device for message
CN101741552A (en) Message transmitting method, equipment and system
CN108075991B (en) Message forwarding method and device
CN103269300B (en) A kind of method and apparatus of realizing heterogeneous network internetworking

Legal Events

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