CN113300928B - Method, equipment and system for transmitting service message - Google Patents

Method, equipment and system for transmitting service message Download PDF

Info

Publication number
CN113300928B
CN113300928B CN202010109180.2A CN202010109180A CN113300928B CN 113300928 B CN113300928 B CN 113300928B CN 202010109180 A CN202010109180 A CN 202010109180A CN 113300928 B CN113300928 B CN 113300928B
Authority
CN
China
Prior art keywords
network edge
network
edge device
service message
time slot
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
CN202010109180.2A
Other languages
Chinese (zh)
Other versions
CN113300928A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010109180.2A priority Critical patent/CN113300928B/en
Publication of CN113300928A publication Critical patent/CN113300928A/en
Application granted granted Critical
Publication of CN113300928B publication Critical patent/CN113300928B/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
    • 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
    • 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]
    • H04L12/4645Details on frame tagging
    • H04L12/465Details on frame tagging wherein a single frame includes a plurality of VLAN tags
    • 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
    • H04L2212/00Encapsulation of packets

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 embodiment of the application discloses a method, equipment and a system for transmitting service messages, which are used for reducing the packaging overhead when the service messages are transmitted and improving the packaging efficiency. The method in the embodiment of the application comprises the following steps: the first network edge equipment receives a service message, wherein the service message comprises destination equipment information; the first network edge device may determine a first egress timeslot according to the destination device information, and then the first network edge device sends the service packet to the next hop device according to the first egress timeslot.

Description

Method, equipment and system for transmitting service message
Technical Field
The present invention relates to the field of communications, and in particular, to a method, a device, and a system for transmitting a service packet.
Background
Virtual Private Networks (VPNs) are a common method of communication between Private networks. It uses Tunnel Protocol (TP) to achieve security effects such as confidentiality, sender authentication, message accuracy, etc. Such techniques may use an unsecured network, such as the internet, to send reliable, secure messages.
As one of the tunneling protocols, a Multi-protocol Label Switching (MPLS) protocol is widely used. An MPLS Label Switched Path (LSP) may be established between two Provider Edge devices (PEs) using the MPLS protocol. In the MPLS LSP, a current network node determines information such as a next hop device and a port according to an MPLS label carried in a service packet, then replaces the MPLS label in the service packet with an MPLS label of the next hop device, and finally sends the service packet to the next hop device, thereby completing transmission of the service packet from the current network node to the next hop device.
Therefore, it can be seen that the transmission of the service packet needs to depend on the MPLS label carried in the service packet, which increases the encapsulation overhead and reduces the encapsulation efficiency.
Disclosure of Invention
The embodiment of the application provides a method, equipment and a system for transmitting service messages, which are used for reducing the packaging overhead when the service messages are transmitted and improving the packaging efficiency.
A first aspect of the present application provides a method for transmitting a service packet, including: the first network edge device receives the service message, and determines a first outlet time slot according to the destination device information because the service message contains the destination device information; and the first network edge equipment sends the service message to the next hop equipment according to the first outlet time slot.
The first network edge device can send the service message to the next hop device according to the first exit time slot without adding a tunnel label in the service message, so that the encapsulation overhead can be reduced and the encapsulation efficiency can be improved.
Based on the first aspect, an embodiment of the present application provides a first implementation manner of the first aspect, where sending, by a first network edge device, a service packet to a next-hop device according to a first egress timeslot includes: the first network edge device adds a virtual private network VPN label in the service message, wherein the VPN label can comprise a plurality of types; and the first network edge equipment sends a service message containing the VPN label to the next hop equipment according to the first outlet time slot.
In this embodiment, the first network edge device adds a VPN label to the service packet, and then sends the service packet to the next hop device, thereby implementing VPN service processing on the service packet.
Based on the first implementation manner of the first aspect, an embodiment of the present application provides a second implementation manner of the first aspect, where sending, by a first network edge device, a service packet including a VPN label includes: the first network edge device adds a timeslot encapsulation in the service message containing the VPN label, where the timeslot encapsulation may include a timeslot overhead and Generic Framing Procedure (GFP) encapsulation header; and the first network edge equipment sends a service message containing time slot encapsulation to the next hop equipment according to the first outlet time slot.
The embodiment provides a feasible scheme for sending the service message containing the VPN label to the next hop of equipment according to the first egress timeslot.
Based on the first implementation manner of the first aspect or the second implementation manner of the first aspect, an embodiment of the present application provides a third implementation manner of the first aspect, where the service packet includes an ethernet header. The VPN label is a three-layer VPN label, that is, the service packet is a three-layer VPN service packet. Based on this, in the process that the first network edge device sends the service packet to the next hop device, before the first network edge device sends the service packet containing the VPN label to the next hop device according to the first egress timeslot, the method further includes: the first network edge device strips off the Ethernet header in the service message.
In this embodiment, before sending the service packet, the first network device strips off the ethernet header in the packet, thereby further reducing the encapsulation overhead and improving the encapsulation efficiency.
Based on the first aspect, or the first implementation manner of the first aspect, or the second implementation manner of the first aspect, or the third implementation manner of the first aspect, the present application provides an example of the fourth implementation manner of the first aspect. In this embodiment, the determining, by the first network edge device, the first egress slot based on the destination device information comprises: the first network edge device determines a bearing tunnel corresponding to the service message according to the destination device information; the first network edge device determines a first egress timeslot according to the bearer tunnel. This embodiment provides a possible solution for determining the first egress slot based on the destination device information.
Based on the first aspect, or the first implementation manner of the first aspect, or the second implementation manner of the first aspect, or the third implementation manner of the first aspect, or the fourth implementation manner of the first aspect, the present application provides an example of the fifth implementation manner of the first aspect. In this embodiment, the determining, by the first network edge device, the first egress slot based on the destination device information comprises: and the first network edge equipment determines a first exit time slot corresponding to the destination equipment information according to the preset association relation between the destination equipment information and the first exit time slot.
This embodiment provides another possibility to determine the first egress slot based on the destination device information. Based on the first aspect, or the first implementation manner of the first aspect, or the second implementation manner of the first aspect, or the fourth implementation manner of the first aspect, or the fifth implementation manner of the first aspect, an example of the present application provides a sixth implementation manner of the first aspect, where the VPN label is a two-layer L2VPN label or an EVPN label.
A second aspect of the present application provides a method for transmitting a service packet, including: firstly, a second network edge device receives a service message; then, the second network edge device strips the time slot encapsulation in the service message to obtain a service message containing the target device information and the L3VPN label, namely the service message is a three-layer VPN service message; indicating the next hop equipment as user edge equipment based on the destination equipment information, stripping an L3VPN label in the service message by the second network edge equipment, and adding an Ethernet header in the service message to obtain another service message; the second network edge device sends the other service message to the user edge device.
In this embodiment, the service packet received by the second network edge device does not include an ethernet header, so the second network device adds the ethernet header to the service packet to ensure that the service packet can be normally processed in the subsequent process.
A third aspect of the embodiments of the present application provides a network edge device, including: a processor, a memory, and a transceiver. The processor, the memory and the transceiver are interconnected through a line, and the transceiver is configured to execute the step of receiving or sending the service packet according to any implementation manner in the first aspect of the embodiment of the present application; the processor calls the program code in the memory to execute the step of processing the service packet described in any implementation manner in the first aspect of the embodiment of the present application.
A fourth aspect of the embodiments of the present application provides a network edge device, including: the system comprises a processor, a memory and a transceiver, wherein the processor, the memory and the transceiver are interconnected through a line, and the transceiver is used for executing the step of receiving or sending the service message in the embodiment of the second aspect of the embodiment of the application; the processor calls the program code in the memory for executing the steps of processing the service packet according to the implementation manner in the second aspect of the embodiment of the present application.
A fifth aspect of the present application provides a system for transmitting a service packet, including: a first network edge device and a second network edge device; the first network edge device is configured to execute the method for transmitting the service packet according to any one of the first aspect; the second network edge device is configured to execute the method for transmitting the service packet in the second aspect.
In this embodiment, the first network edge device executes any one of the methods in the first aspect, and the second network edge device executes the method in the second aspect, so that when the first network edge device transmits the service packet to the second network edge, no tag needs to be added in the service packet, thereby reducing the encapsulation overhead and improving the encapsulation efficiency.
Based on the fifth aspect, an embodiment of the present application provides a first implementation manner of the fifth aspect, in which the system further includes a network intermediary device, where the network intermediary device is configured to: receiving a service message according to the first entry time slot, wherein the service message can come from the first network edge device; determining a second outlet time slot corresponding to the first inlet time slot according to a preset corresponding relation between the first inlet time slot and the second outlet time slot; and sending the service message to the next hop equipment according to the second outlet time slot.
In the embodiment, in the process of forwarding the service message by the network intermediate equipment, a tag does not need to be added in the service message, so that the encapsulation overhead can be reduced, and the encapsulation efficiency can be improved.
Based on the fifth aspect or the first implementation manner of the fifth aspect, this application provides a third implementation manner of the fifth aspect, where the first network edge device is further configured to: automatically establishing a communication channel between the network device and the adjacent network device according to the preset attribute of the communication channel, wherein the communication channel can be used for operating a protocol required for establishing a sub-bearer tunnel, and the adjacent network device is a second network edge device or a network intermediate device; the method comprises the steps of establishing N sub-bearing tunnels between adjacent network equipment according to a communication channel, wherein the IP addresses of ports of the N sub-bearing tunnels are the same as the IP addresses of the ports in the attribute of the communication channel, one sub-bearing tunnel in the N sub-bearing tunnels is a section of a bearing tunnel from first network edge equipment to second network edge equipment, and the first network edge equipment is instructed to send a service message to the adjacent network equipment according to a first outlet time slot, wherein N is a positive integer.
In this embodiment, the first network edge device may automatically establish a communication channel with the adjacent network device, and may establish N sub-bearer tunnels with the adjacent network device based on the communication channel, where IP addresses of the N sub-bearer tunnels are the same as IP addresses in the attribute of the communication channel, thereby saving resources.
A sixth aspect of the embodiments of the present application provides a digital processing chip, where the chip includes a processor and a memory, where the memory and the processor are interconnected by a line, and the memory stores instructions, and the processor is configured to execute processing-related steps in the method for transmitting a service packet according to any one of the first aspect to the second aspect.
A seventh aspect of the embodiments of the present application provides a computer-readable storage medium storing one or more computer-executable instructions, where when the computer-executable instructions are executed by a processor, the processor executes the method for transmitting a service packet according to any one of the first to second aspects.
An eighth aspect of the embodiments of the present application further provides a computer program product, where the computer program product includes computer software instructions, and the computer software instructions may be loaded by a processor to execute the method for transmitting a service packet according to any one of the first aspect to the second aspect.
According to the technical scheme, the time slot resource is determined according to the target equipment information of the service message and then sent, multilayer packaging is not needed, and packaging cost can be reduced.
Drawings
Fig. 1 is a schematic diagram of a network architecture for transmitting services in an embodiment of the present application;
fig. 2 is a schematic diagram of an embodiment of a method for transmitting a service packet in an embodiment of the present application;
fig. 3 is a schematic diagram of an embodiment of establishing a bearer tunnel by a static configuration method in the embodiment of the present application;
fig. 4 is a schematic diagram of an embodiment of a method for automatically establishing a bearer tunnel in an embodiment of the present application;
fig. 5 is a schematic diagram of an embodiment of a bearer tunnel automatically established in an embodiment of the present application;
fig. 6 is a schematic diagram of service packet encapsulation in a conventional label switched path;
fig. 7 is a schematic diagram of service packet encapsulation in an embodiment of the present application;
FIG. 8 is a schematic diagram of a network edge device;
fig. 9 is a schematic diagram of an embodiment of a system for transmitting a service packet in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a method, equipment and a system for transmitting service messages, which are used for reducing the packaging overhead and improving the packaging efficiency.
The following describes embodiments of the present invention with reference to the drawings in the embodiments of the present application. The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
In the following description of the embodiments of the present application with reference to the drawings, it is known by those skilled in the art that with the development of technology and the emergence of new scenes, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances and are merely descriptive of the various embodiments of the application and how objects of the same nature can be distinguished. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of elements is not necessarily limited to those elements, but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic diagram of a network architecture to which the present invention is applicable. As shown in fig. 1, the network architecture includes a private network and a public network. Where the private network includes one or more Customer network Edge devices (CEs), fig. 1 shows 4 CEs; the public network may comprise only one or more service Provider network Edge devices (PEs), or the public network may comprise one or more service Provider network backbone devices P. The example network architecture given in fig. 1 includes 3 PEs and 4 ps. For convenience of description, the device P will be referred to as a network intermediary device hereinafter.
In this network architecture, a PE may connect to one or more CEs through a UNI interface. The two PEs may be directly connected and establish a bearer tunnel, or the two PEs may be connected and establish a bearer tunnel through one or more devices P, where the bearer tunnel is used to transmit a service packet.
Based on the network architecture shown in fig. 1, a bearer tunnel is established between two PEs, where the bearer tunnel is shown in fig. 1; the CE connected to one PE may send the service packet to the CE connected to the other PE through the bearer tunnel.
It can be understood that, before sending the service packet, the current device needs to determine the next-hop device first to send the service packet. Taking the bearer tunnel shown in fig. 1 as an example, before sending a service packet, an initial PE in the bearer tunnel needs to determine a next-hop device from two P devices connected to the initial PE. Currently, label switching is mainly relied on to determine the next hop device, and this method needs to add tunnel labels in the service messages. The kind of the tunnel label is related to the type of the bearer tunnel, so the kind of the tunnel label can be various. For example, a Multi-protocol Label Switching (MPLS) Label may be used.
In order to avoid increasing the encapsulation overhead due to adding a tunnel label in a service message, embodiments of the present application provide a method for transmitting a service message, which does not require adding a tunnel label in a service message, so that the encapsulation overhead can be reduced and the encapsulation efficiency can be improved. The method for transmitting the packet is specifically described below.
Fig. 2 is a schematic diagram of an embodiment of a method for transmitting a service packet in an embodiment of the present application. As shown in fig. 2, an embodiment of the present application provides an embodiment of a method for transmitting a service packet, including:
step 101, a first network edge device receives a service message, wherein the service message includes destination device information.
For example, the first network edge device may be the service provider network edge device PE shown in fig. 1. As can be seen from the foregoing description, before transmitting a packet, a bearer tunnel needs to be established first, so before performing step 101, the embodiment of the present invention establishes a bearer tunnel from a first network edge device to a second network edge device. The procedure for establishing the bearer tunnel is described below.
First, it should be noted that the bearer tunnel may be in various types, which is not limited in this embodiment of the present application. For example, the bearer tunnel may include an MPLS tunnel, a Segment Routing (SR) tunnel, an SRV6 tunnel, a Generic Routing Encapsulation (GRE) tunnel, or an Internet Protocol (IP) tunnel. Since a tunnel Label is added to a service packet when the bearer tunnel is used to transmit the service packet, and then the next hop device is determined based on the tunnel Label, the bearer tunnel may also be called a Label Switch Path (LSP).
Accordingly, there are various methods for establishing the bearer tunnel, for example, the bearer tunnel may be established by a static configuration method, and the bearer tunnel may be established by a Software Defined Network (SDN).
The rough process of establishing the bearer tunnel by the static configuration method comprises the following steps: configuring the network devices (including the first network edge device, the second network edge device and the network intermediate device which may exist) through which the bearer tunnel passes in advance, where the configuration content may include attributes such as bandwidth of the bearer tunnel, IP address of a port on each network device, and the like, then establishing a communication channel between adjacent network devices based on the configuration content, and then establishing the bearer tunnel based on the communication channel, where the bearer tunnel is shared with the communication channel.
Therefore, the bearer tunnels are established based on a static configuration method, manual configuration needs to be performed in advance every time one bearer tunnel is established, and each bearer tunnel corresponds to one communication channel. For example, if a network intermediate device is adjacent to a first network edge device and a second network edge device in a public network, two bearer tunnels are established between the first network edge device and the second network edge device by using a static configuration method, and the two bearer tunnels are as shown in fig. 3. Fig. 3 is a schematic diagram of an embodiment of establishing a bearer tunnel by a static configuration method in the embodiment of the present application. In fig. 3, two bearer tunnels are included, and one bearer tunnel corresponds to the following two communication channels: the first communication channel is positioned between the first network edge device and the network middle device, the IP addresses of the two end ports are IP1 and IP2 respectively, the second communication channel is positioned between the network middle device and the second network edge device, and the IP addresses of the two end ports are IP3 and IP4 respectively; the other bearer tunnel corresponds to the following two communication channels: the first communication channel is located between the first network edge device and the network middle device, the IP addresses of the two end ports are IP11 and IP22 respectively, the second communication channel is located between the network middle device and the second network edge device, and the IP addresses of the two end ports are IP33 and IP44 respectively.
Therefore, it can be seen that, assuming that N bearer tunnels are established by a static configuration method, where N is a positive integer, the N bearer tunnels respectively correspond to a group of IP addresses, and the N groups of IP addresses need to be configured manually N times, so that the method is low in efficiency and wastes resources. For this reason, an embodiment of the present application further provides a method for automatically establishing a bearer tunnel, which can be seen in the related description of fig. 4 and is not described herein again.
In addition, in this embodiment of the present application, one of the N sub-bearer tunnels indicates the first network edge device, and sends the service packet to the adjacent network device according to the first egress timeslot.
As one implementation manner, the LSP is based on that a bearer tunnel from the first network edge device to the second network edge device is an LSP, the LSP corresponds to a label switching table, and the label switching table includes information such as a bandwidth of the LSP and an incoming label and an outgoing label on each network device on the LSP. The network equipment can determine the label according to the label, and can determine the information such as the next hop, the exit time slot and the like according to the label. Therefore, in this implementation, a mapping relationship between the ingress timeslot and the ingress label in the egress label switching table and a mapping relationship between the egress timeslot and the egress label may be established, so that a mapping relationship is formed between the ingress timeslot and the egress timeslot, and thus, each network device on the LSP may determine the egress timeslot according to the ingress timeslot and then send the service packet to the next hop using the egress timeslot.
Based on the implementation mode, the transmission of the service message in the bearing tunnel does not depend on the label entering and the label exiting; in this case, between the first Network edge device and the second Network edge device, the communication channel between every two adjacent Network devices is an Optical Transport Network (OTN) pipe, and the established bearer tunnel may be called an OTN tunnel. Based on the fact that a communication channel between every two adjacent Network devices is a Passive Optical Network (PON) or Passive Optical Network (PON) pipeline, the established bearer tunnel may be called a PON tunnel.
Specifically, taking the first network edge device as an example, the label switching table includes information such as a first outgoing label corresponding to the first network edge device and a bandwidth of the label switching path. In the embodiment of the present application, a mapping relationship between a first outgoing label and a first outgoing timeslot is established as shown in the following table:
MPLS label switched paths OTN tunnel
First label First egress timeslot
Bandwidth value Bandwidth value
In this table, an MPLS label switched path and an OTN tunnel are taken as an example to show a mapping relationship between a first egress label and a first egress timeslot, so that a first network edge device may determine the first egress timeslot according to the OTN tunnel, and then send a service packet to a next hop according to the first egress timeslot, so that a sub-bearer tunnel may instruct the first network edge device to send the service packet to an adjacent network device according to the first egress timeslot.
In the above description, the process of establishing the bearer tunnel before transmitting the packet is described, and after establishing the bearer tunnel, the first network edge device may transmit the packet to the second network edge through the bearer tunnel.
Step 102, the first network edge device determines a first egress timeslot according to the destination device information.
It should be noted that there are various methods for the first network edge device to determine the first egress slot according to the destination device information. Illustratively, the first network edge device determines a bearer tunnel corresponding to the service packet according to the destination device information, and then the first network edge device determines the first egress timeslot according to the bearer tunnel. The destination device information may include a destination address, a Media Access Control (MAC) address, and a Virtual Local Area Network (VLAN) address.
And judging different methods for bearing the tunnel according to the information of the target equipment corresponding to different application scenes. Specifically, based on the application scenario being a two-layer L2VPN scenario, the bearer tunnel may be determined according to the MAC address; based on the application scene being a three-layer L3VPN scene, judging a bearing tunnel according to a destination address; based on the application scene being the L2 private line scene, the bearing tunnel can be judged according to the VLAN address.
In this embodiment of the application, the bearer tunnel may include an MPLS LSP, an OTN tunnel, or a PON tunnel, and based on that the bearer tunnel is an OTN tunnel, a PON tunnel, or the like, the first network edge device may continue to determine the first egress timeslot according to the bearer tunnel.
As another implementation manner, an association relationship between the destination device information and the first egress timeslot may be preset in the first network edge device, and based on receiving the service packet, the first network edge device may determine the first egress timeslot corresponding to the destination device information according to the association relationship.
Step 103, the first network edge device sends a service packet to the next hop device according to the first egress timeslot.
The next-hop device of the first network edge device may be a network intermediate device or a second network edge device. In fig. 2, the next-hop device of the first network edge device is a network intermediate device.
It should be noted that the process of sending the service packet by the first network edge device is related to an application scenario. For example, based on the application scenario being a VPN scenario, before sending a service packet to a next-hop device, a first network edge device needs to perform virtual private network VPN processing on the service packet; based on the application scenario being a Virtual Private Network (VPN) scenario, the first network edge device does not need to perform VPN processing on the service packet before sending the service packet to the next-hop device.
As an implementation manner, the sending, by the first network edge device, the service packet to the next-hop device according to the first egress timeslot includes:
first, the first network edge adds a VPN label to a traffic message.
It should be noted that the VPN-based scenario is an L2VPN scenario, and the VPN label is an L2VPN label; the VPN-based scene is an L3VPN scene, the VPN label is an L3VPN label and is an EVPN scene based on the VPN scene, and the VPN label is an EVPN label.
After the first network edge device adds a Virtual Private Network (VPN) label in the service message, the first network edge device sends the service message containing the VPN label to the next hop device according to the first export time slot.
It should be noted that there are various methods for the first network edge device to send the service packet including the VPN label to the next hop device according to the first egress timeslot, and as an implementable manner, the sending, by the first network edge device, the service packet including the VPN label to the next hop device according to the first egress timeslot includes:
adding a time slot encapsulation in a service message containing a VPN label by first network edge equipment, wherein the type of a time slot encapsulation bearing tunnel is related; taking the bearer tunnel as an OTN tunnel as an example, the timeslot encapsulation may include an OTN overhead and a Generic Framing Procedure (GFP) encapsulation header.
After adding the time slot package in the service message containing the VPN label, the first network edge device sends the service message containing the time slot package to the next hop device according to the first export time slot.
It can be understood that the traffic packet includes a payload and an ethernet header ETH. Where the ethernet header may include the MAC address of the source device, the destination MAC address, and the VLAN identification. The VLAN identification is used for identifying a bearing tunnel corresponding to the service message. For example, the first network edge device may identify, according to the VLAN, that the bearer tunnel corresponding to the service packet is an OTN tunnel, so that it can be seen that the ethernet header does not carry service information.
It should be noted that, in an L3VPN service scenario, the ethernet header is not related to a transmission process of the service packet, so that the first network edge device strips the ethernet header in the service packet before sending the service packet including the VPN label to the next-hop device according to the first egress timeslot based on the VPN label as the L3VPN label.
It can be understood that, in the embodiment of the present application, the order of the operation of stripping the ethernet header and the operation of adding the VPN label by the first network edge device is not limited, as long as the two operations are performed before adding the timeslot encapsulation.
Based on the above process of sending the service packet to the next hop device according to the first egress timeslot, in this embodiment of the present application, the first network edge device does not add a tunnel label to the service packet, and based on that the VPN label is an L3VPN label, this embodiment of the present application may also strip an ethernet header in the service packet.
Taking the example that the VPN label is an L3VPN label, fig. 6 is a schematic diagram of service packet encapsulation in the existing label switched path. As shown in fig. 6, the encapsulated service packet includes a payload, a VPN label, and a timeslot encapsulation, as well as a label and an ethernet header. Fig. 7 is a schematic diagram of service packet encapsulation in an embodiment of the present application. As shown in fig. 7, the encapsulated service packet only includes payload, VPN label and timeslot encapsulation.
As can be seen from comparing fig. 6 and fig. 7, the service packet in the embodiment of the present application does not have a tunnel label, so that the encapsulation overhead can be reduced, and the encapsulation efficiency can be improved. Moreover, the Ethernet header does not exist in the service message in the application embodiment, so that the encapsulation overhead can be further reduced, and the encapsulation efficiency is improved.
It should be noted that, when the next-hop device of the first network edge device is the network intermediate device, steps 104 to 108 may be continuously performed, and if the next-hop device is the second network edge device, steps 107 to 108 may be directly performed.
The operation of the network intermediate device side is described below by taking one of the network intermediate devices as an example. When a plurality of network intermediate devices are provided, the operation is similar, and the description is omitted.
Firstly, the network intermediate device receives a service message according to a first entry time slot.
It should be noted that, based on the communication channel being a hard pipeline such as an OTN pipeline or a PON pipeline, the egress timeslot adopted by the network device that sends the service packet corresponds to the first ingress timeslot.
For example, based on that the network intermediate device is the next hop of the first network edge device, the first ingress timeslot corresponds to the first egress timeslot, that is, under the condition that the first network edge device sends the service packet to the network intermediate device according to the first egress timeslot, the timeslot in which the network intermediate device receives the service packet corresponds to the first ingress timeslot.
And step 104, the network intermediate device determines a second exit time slot corresponding to the first entry time slot according to a preset corresponding relationship between the first entry time slot and the second exit time slot.
Based on the relevant description in step 101, in the process of establishing the bearer tunnel, a mapping relationship between an incoming label and an incoming timeslot and a mapping relationship between an outgoing label and an outgoing timeslot in the label switching table are also established. Taking the network intermediate device as an example, the network intermediate device establishes a mapping relationship between a first ingress timeslot and a first ingress label, and a mapping relationship between a second egress label and a second egress timeslot, specifically referring to the following table:
Figure BDA0002389357010000081
in the table, taking MPLS label switched paths and OTN tunnels as examples, a mapping relationship between a first ingress timeslot and a first ingress label and a mapping relationship between a second egress label and a second egress timeslot are shown; since the first incoming label and the second outgoing label are corresponding, the first incoming timeslot and the second outgoing timeslot are also corresponding, and after receiving the service packet, the network intermediate device may determine the second outgoing timeslot according to the correspondence between the first incoming timeslot and the second outgoing timeslot.
And 105, the network intermediate equipment sends a service message to the next hop equipment according to the second outlet time slot.
After determining the second egress timeslot, the network intermediate device may send a service packet to the next-hop device according to the second egress timeslot. The next hop device of the network intermediate device may be the second network edge device or another network intermediate device. In the example of fig. 2, the next-hop device of the network intermediate device is a second network edge device.
In the embodiment of the present application, the network intermediate device directly determines the second egress timeslot according to the correspondence between the first ingress timeslot and the second egress timeslot, and then sends the service packet to the next-hop device according to the second egress timeslot without adding a tunnel label to the service packet, so that the encapsulation overhead can be reduced, and the encapsulation efficiency can be improved.
The following describes operations of the second network edge device side in the process of transmitting the service packet.
First, the second network edge device receives a service packet.
Specifically, the second network edge device receives a service packet from the first network edge device or the network intermediate device.
And 106, the second network edge device strips the time slot encapsulation in the service message.
Based on the relevant description in step 103, before the first network edge device sends the service packet to the network intermediate device, the time slot encapsulation is added to the service packet. Correspondingly, after receiving the service message, the second network edge device strips the timeslot encapsulation in the service message to obtain the service message containing the destination device information and the VPN label. In the embodiment of the present application, an operation of the second network edge device side is described by taking an example in which the VPN label is an L3VPN label.
Step 107, indicating the next hop device as the user edge device based on the destination device information, the second network edge device stripping the L3VPN label in the service message, and adding an ethernet header to the service message.
Based on the description of step 103, the first network edge device may strip off the ethernet header in the traffic message based on the VPN label being the L3VPN label. Accordingly, the destination device information indicates that the next hop device is a customer edge device, and the second network edge device adds an ethernet header to the service packet to ensure that the service packet can be processed normally in the subsequent process, where the customer edge device may be a customer network edge device CE shown in fig. 1.
In addition, the second network edge device may also strip the VPN label in the service message, and the sequence of the operation of stripping the VPN label and the operation of adding the ethernet header is not limited in the embodiment of the present application.
Step 108, the second network edge device sends the service packet containing the ethernet header and not containing the L3VPN label to the customer edge device.
Finally, the second network edge device sends the service message to the user edge device, thereby completing the transmission of the service message.
Based on the foregoing description, it can be known that the bearer tunnel may also be automatically established in the embodiment of the present application, and the method for automatically establishing the bearer tunnel in the embodiment of the present application is specifically described below with reference to fig. 4. As shown in fig. 4, an embodiment of a method for automatically establishing a bearer tunnel in the embodiment of the present application is shown, and taking a first network edge device as an example, the method includes:
step 201, the first network edge device establishes a communication channel with an adjacent network device according to a preset attribute of the communication channel.
Specifically, the first network edge device may first search for an adjacent network device through methods such as optical fiber search, and then establish a communication channel with the adjacent network device according to a preset attribute of the communication channel for signaling transmission when the function is established. The preset properties of the communication channel may relate only to the signaling transmission, including for example the bandwidth and port IP address of the communication channel. Wherein the bandwidth of the communication channel can be set to a small value.
In the embodiment of the present application, the communication channel may be an OTN pipe, a PON pipe, or the like. It should be noted that these pipes all have the characteristics of hard pipes, and therefore, they can be collectively referred to as hard pipes. The hard pipeline can distribute fixed bandwidth for a class of service messages, thereby avoiding congestion and packet loss. For OTN pipes, the bandwidth particles are mainly Optical Channel Data units (ODUk) or wavelengths, where k may be 0, 1, 2e, 3, 4, or flex. Alternatively, the bandwidth granularity may also be smaller granularity, such as: 2M,20M, etc. The present application is not limited thereto.
Likewise, other network devices in the network may establish communication channels with their neighboring network devices.
Step 202, the first network edge device establishes N sub-bearer tunnels with the adjacent network device according to the communication channel, wherein one of the N sub-bearer tunnels is a segment of the bearer tunnel from the first network edge device to the second network edge device, and instructs the first network edge device to send the service packet to the adjacent network device according to the first egress timeslot, where N is a positive integer.
Specifically, taking N =1 as an example, the first network edge device may first run a routing protocol on a port of the communication channel, where the routing protocol may be an interior gateway protocol IGP, so as to ensure that a route between the first network edge device and an adjacent network device is reachable; likewise, other network devices in the public network may also run routing protocols on the ports of the communication channels, eventually making the entire public network route reachable.
Based on the routing protocol, the first network edge device may continue to run the tunneling protocol associated with the preset tunnel attribute on the port of the communication channel, thereby establishing the sub-bearer tunnel satisfying the tunnel attribute. The sub-bearer tunnel is a segment of a bearer tunnel from the first network edge device to the second network edge device. Likewise, with this method, other network devices can also establish sub-bearer tunnels with their neighboring network devices. Finally, the multiple sub-bearer tunnels finally form a bearer tunnel from the first network edge device to the second network edge device.
The tunnel protocol may be specifically selected according to a type of a tunnel to be established, which is not limited in this embodiment of the present application. For example, may be the MPLS protocol. Specifically, the tunneling Protocol may be a Resource Reservation Protocol (RSVP) in the MPLS Protocol.
The tunnel property can be set according to actual needs. For example, the tunnel attributes may include the bandwidth of the tunnel, the start and end of the tunnel. In this embodiment, the starting point of the tunnel is the first network edge device, and the ending point of the tunnel is the second network edge device.
In the embodiment of the present application, the IP addresses of the ports of the N sub-bearer tunnels are the same as the IP address of the port in the attribute of the communication channel. Specifically, in a network, a network intermediate device is adjacent to a first network edge device and a second network edge device, respectively, and if a method for automatically establishing a bearer tunnel is used, two bearer tunnels are established between the first network edge device and the second network edge device, where the two bearer tunnels are as shown in fig. 5. Fig. 5 is a schematic diagram of an embodiment of a bearer tunnel automatically established in an embodiment of the present application. Fig. 5 contains two bearer tunnels. And the two communication channels corresponding to one bearing tunnel are the same as the two communication channels corresponding to the other bearing tunnel. The two communication channels are specifically: the first communication channel is positioned between the first network edge device and the network middle device, the IP addresses of the two end ports are IP5 and IP6 respectively, the second communication channel is positioned between the network middle device and the second network edge device, and the IP addresses of the two end ports are IP7 and IP8 respectively.
Therefore, if the N bearer tunnels established by the method for automatically establishing the bearer tunnels are assumed, the N bearer tunnels correspond to one group of IP addresses, and compared with the N bearer tunnels corresponding to the N groups of IP addresses, the IP resources can be saved, and the group of IP addresses only needs to be configured once, so that the efficiency is higher.
Fig. 8 is a schematic structural diagram of a network device. Specifically, the network device may be any one of the first network edge device, the network intermediate device, and the second network edge device in the above method embodiments. The forwarding device comprises a processor 301, a memory 302 and a transceiver 303. The processor 301, memory 302 and transceiver 303 are interconnected by wires. Memory 302 is used to store, among other things, program instructions and data. The processor 301 and the transceiver 303 are configured to perform the method steps shown in any of the embodiments of fig. 2 and 4.
When the network device is a first network edge device, the transceiver 303 is configured to perform step 101 and step 103. Processor 301 is configured to perform step 102. The processor 301 is configured to perform step 201 to step 202. When the network device is a network intermediate device, the transceiver 303 is configured to perform the step of receiving the service packet and the step 105. Processor 301 is configured to perform step 104. When the network device is a second network edge device, the transceiver 303 is configured to execute the step of receiving the service packet and the step 108. Processor 301 is configured to perform step 106 and step 107.
Fig. 9 is a schematic diagram of an embodiment of a system for transmitting a service packet in an embodiment of the present application. As shown in fig. 9, an embodiment of the present application provides an embodiment of a system for transmitting a service packet, including: a first network edge device 100 and a second network edge device 300. The description of the first network edge device 100 and the second network edge device 300 may refer to the description of the first network edge device and the second network edge device in fig. 8, respectively, and will not be described herein again.
Optionally, the system further comprises one or more network intermediary devices 200. In the example of fig. 9, the number of network intermediate devices 200 is one. The network intermediary 200 is configured to: receiving a service packet according to the first ingress timeslot, where the service packet may be from the first network edge device 100; determining a second outlet time slot corresponding to the first inlet time slot according to a preset corresponding relation between the first inlet time slot and the second outlet time slot; and sending the service message to the next hop equipment according to the second outlet time slot.
It should be noted that, for the description of the network intermediate device, reference may be made to the related description of steps 104 to 105 in the foregoing embodiments, and details are not described herein again.
Optionally, the first network edge device 100 is further configured to: automatically establishing a communication channel between the network device and the adjacent network device according to the preset attribute of the communication channel, wherein the communication channel can be used for running a protocol required for establishing the sub-bearer tunnel, and the adjacent network device is the second network edge device 300 or the network intermediate device 200; the method comprises the steps of establishing N sub-bearer tunnels between adjacent network equipment according to a communication channel, wherein the IP addresses of ports of the N sub-bearer tunnels are the same as the IP addresses of the ports in the attribute of the communication channel, one sub-bearer tunnel in the N sub-bearer tunnels is a section of a bearer tunnel from a first network edge equipment to a second network edge equipment, and the first network edge equipment is instructed to send a service message to the adjacent network equipment according to a first exit time slot, wherein N is a positive integer.
It should be noted that, the description of the optional features of the first network edge device 100 may refer to the related description of fig. 5, and will not be described herein again.
The embodiment of the application also provides a digital processing chip. Integrated with circuitry and one or more interfaces to implement the functions of the processor 901 in the embodiments described above. When integrated with memory, the digital processing chip may perform the method steps of any one or more of the preceding embodiments. When the digital processing chip is not integrated with a memory, the digital processing chip can be connected with an external memory through an interface. The digital processing chip implements the actions performed by the control device or the forwarding device in the above embodiments according to the program codes stored in the external memory.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Claims (13)

1. A method for transmitting a service packet, comprising:
a first network edge device receives a service message, wherein the service message comprises destination device information;
the first network edge device determines a first exit time slot according to the destination device information;
and the first network edge equipment sends the service message to the next hop equipment according to the first outlet time slot.
2. The method of claim 1, wherein the sending, by the first network edge device, the traffic packet to the next hop device according to the first egress timeslot comprises:
the first network edge equipment adds a Virtual Private Network (VPN) label in the service message;
and the first network edge equipment sends a service message containing the VPN label to next hop equipment according to the first outlet time slot.
3. The method of claim 2, wherein the sending, by the first network edge device to a next hop device according to the first egress timeslot, the service packet including the VPN label comprises:
the first network edge device adds a time slot package in a service message containing the VPN label, wherein the time slot package is related to the type of a bearing tunnel corresponding to the service message;
and the first network edge equipment sends a service message containing the time slot package to next hop equipment according to the first outlet time slot.
4. The method according to claim 2 or 3, wherein the VPN label is a three-layer L3VPN label, and the service message includes an Ethernet header;
before the first network edge device sends the service packet containing the VPN label, the method further includes:
and the first network edge equipment strips the Ethernet header in the service message.
5. The method of any of claims 1-3, wherein the first network edge device determining a first egress slot based on the destination device information comprises:
the first network edge device determines a bearer tunnel corresponding to the service message according to the destination device information;
and the first network edge equipment determines the first exit time slot according to the bearing tunnel.
6. A method according to claim 2 or 3, wherein the VPN label is a two-layer VPN label or an EVPN label.
7. A method for transmitting a service packet, comprising:
the second network edge equipment receives the service message;
the second network edge device peels off the time slot encapsulation in the service message to obtain the service message containing target device information and an L3VPN label, and the time slot encapsulation is related to the type of a bearing tunnel corresponding to the service message;
indicating the next-hop device as a user edge device based on the destination device information, stripping an L3VPN label in a service message by the second network edge device, and adding an Ethernet header to the service message to obtain another service message;
and the second network edge equipment sends the other service message to the user edge equipment.
8. A digital processing chip, said chip comprising a processor and a memory, said memory and said processor being interconnected by a wire, said memory having stored therein instructions, said processor being configured to perform a method of transmitting a service message according to any of claims 1 to 7.
9. A network edge device, comprising:
a processor, a memory and a transceiver, wherein the processor, the memory and the transceiver are interconnected by a line, and the transceiver is configured to perform the step of receiving or sending a traffic message according to any one of claims 1 to 6;
the processor invokes program code in the memory for performing the steps of processing a service message according to any of claims 1 to 6.
10. A network edge device, comprising:
a processor, a memory and a transceiver, wherein the processor, the memory and the transceiver are interconnected by a wire, and the transceiver is configured to perform the step of receiving or transmitting the traffic message according to claim 7;
the processor invokes program code in the memory to perform the steps of processing a service message as recited in claim 7.
11. A system for transmitting service messages, comprising: a first network edge device and a second network edge device;
the first network edge device is configured to execute the method for transmitting the service packet according to any one of claims 1 to 5;
the second network edge device is configured to execute the method for transmitting a service packet according to claim 7.
12. The system of claim 11, further comprising a network intermediary device configured to:
receiving a service message according to a first entrance time slot;
determining a second outlet time slot corresponding to a first inlet time slot according to a preset corresponding relation between the first inlet time slot and the second outlet time slot;
and sending a service message to the next hop equipment according to the second outlet time slot.
13. The system of claim 11 or 12, wherein the first network edge device is further configured to:
establishing a communication channel between the second network edge device and an adjacent network device according to the preset attribute of the communication channel, wherein the adjacent network device is the second network edge device or the network intermediate device, and the attribute of the communication channel comprises an IP address of a port;
and establishing N sub-bearer tunnels between the first network edge device and the adjacent network device according to the communication channel, wherein the IP addresses of the ports of the N sub-bearer tunnels are the same as the IP address of the port in the attribute of the communication channel, one sub-bearer tunnel in the N sub-bearer tunnels is a section of the bearer tunnel from the first network edge device to the second network edge device, and the first network edge device is instructed to send the service message to the adjacent network device according to a first exit time slot, wherein N is a positive integer.
CN202010109180.2A 2020-02-21 2020-02-21 Method, equipment and system for transmitting service message Active CN113300928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010109180.2A CN113300928B (en) 2020-02-21 2020-02-21 Method, equipment and system for transmitting service message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010109180.2A CN113300928B (en) 2020-02-21 2020-02-21 Method, equipment and system for transmitting service message

Publications (2)

Publication Number Publication Date
CN113300928A CN113300928A (en) 2021-08-24
CN113300928B true CN113300928B (en) 2023-01-13

Family

ID=77317529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010109180.2A Active CN113300928B (en) 2020-02-21 2020-02-21 Method, equipment and system for transmitting service message

Country Status (1)

Country Link
CN (1) CN113300928B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232460A (en) * 2005-03-10 2008-07-30 华为技术有限公司 Method for access network to realize synthesis business access
CN101729384B (en) * 2008-10-15 2013-04-17 华为技术有限公司 Method, device and system for switching label
US20140376558A1 (en) * 2013-06-19 2014-12-25 Alcatel-Lucent Usa Inc. Dynamic Network Service Association and On Demand Service Provisioning
JP6733655B2 (en) * 2015-03-06 2020-08-05 日本電気株式会社 Network control device, network control method, and program
CN110798415B (en) * 2018-08-03 2022-02-18 中兴通讯股份有限公司 Service transmission method, equipment and computer storage medium
CN108989177A (en) * 2018-08-20 2018-12-11 烽火通信科技股份有限公司 A kind of method of the Packet Service configuration of POTN equipment

Also Published As

Publication number Publication date
CN113300928A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN111385206B (en) Message forwarding method, network system, related equipment and computer storage medium
CN109873760B (en) Method and device for processing route, and method and device for data transmission
JP4511532B2 (en) Device for connection-oriented transfer in packet-switched communication networks
US8184634B2 (en) Packet transfer method and node apparatus
US7120165B2 (en) Method and system for allocating and controlling labels in multi-protocol label switched networks
US8861547B2 (en) Method, apparatus, and system for packet transmission
CN101636973B (en) Method and device for dividing header stack of business unit
US7499449B2 (en) Virtual Ethernet MAC switching
CN113556259B (en) Message processing method and device based on stream following detection
JP2004534431A (en) Network tunneling
US20090041019A1 (en) Multi-protocol label switching
CN112910772A (en) Message forwarding method and device based on segmented routing
US8929366B2 (en) Method and apparatus for transporting packets with specific traffic flows having strict packet ordering requirements over a network using multipath techniques
US8243728B2 (en) Apparatus and method for transmitting packets in a packet switched network
CN101827012B (en) Packet transmitting network as well as method for bearing services of pure three layers of IP packets and outlet node
CN113300928B (en) Method, equipment and system for transmitting service message
KR101851031B1 (en) Pseudo-wire providing an in-band control channel using an offset
EP1434394A1 (en) Multiprotocol label switching label distribution method
WO2024001205A1 (en) Traffic message processing method and device, storage medium, and electronic device
CN113472666B (en) Message forwarding method and device
JP4508238B2 (en) Data transfer device
JP4450069B2 (en) Data transfer apparatus, method and system
KR100684143B1 (en) Method and apparatus for providing various L2VPN service using Simplified multi protocol Label Switching mechanism
CN115865823A (en) Flow transmission method and device, computer equipment and storage medium
JP4535122B2 (en) Data transfer apparatus, method and system

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