








技术领域technical field
本申请实施例涉及通信领域,尤其涉及一种传输业务报文的方法、设备和系统。The embodiments of the present application relate to the communication field, and in particular to a method, device and system for transmitting service messages.
背景技术Background technique
虚拟专用网络(Virtual Private Network,VPN)是一种常用于私人网络之间的通讯方法。它利用隧道协议(Tunneling Protocol,TP)来达到保密、发送端认证、消息准确性等安全效果。这种技术可用例如互联网等不安全的网络来发送可靠、安全的消息。A virtual private network (Virtual Private Network, VPN) is a communication method commonly used between private networks. It uses tunneling protocol (Tunneling Protocol, TP) to achieve security effects such as confidentiality, sender authentication, and message accuracy. This technique can be used to send reliable, secure messages over insecure networks such as the Internet.
作为隧道协议中的一种,多协议标签交换(Multi-protocol Label Switching,MPLS)协议被广泛应用。利用MPLS协议可以在两个供应商边缘设备(Provider Edge,PE)之间建立一条MPLS标签交换路径(Label Switched Path,LSP)。在该MPLS LSP中,当前网络节点先根据业务报文中携带的MPLS标签确定下一跳设备及端口等信息,然后将业务报文中的MPLS标签更换为下一跳设备的MPLS标签,最后将业务报文发送至下一跳设备,从而完成业务报文从当前网络节点到下一跳设备的传输。As one of the tunneling protocols, the Multi-protocol Label Switching (Multi-protocol Label Switching, MPLS) protocol is widely used. An MPLS label switched path (Label Switched Path, LSP) can be established between two provider edge devices (Provider Edge, PE) by using the MPLS protocol. In this MPLS LSP, the current network node first determines information such as the next-hop device and port according to the MPLS label carried in the service message, and then replaces the MPLS label in the service message with the MPLS label of the next-hop device. The service message is sent to the next-hop device, thereby completing the transmission of the service message from the current network node to the next-hop device.
由此可以看出,业务报文的传输需要依赖业务报文中携带的MPLS标签,这增加封装开销,降低封装效率。It can be seen from this that the transmission of service packets needs to rely on the MPLS labels carried in the service packets, which increases encapsulation overhead and reduces encapsulation efficiency.
发明内容Contents of the invention
本申请实施例提供了一种传输业务报文的方法、设备和系统,用于降低传输业务报文时的封装开销,提高封装效率。Embodiments of the present application provide a method, device, and system for transmitting service messages, which are used to reduce encapsulation overhead when transmitting service messages and improve encapsulation efficiency.
本申请实施例第一方面提供了一种传输业务报文的方法,包括:第一网络边缘设备接收业务报文,由于该业务报文中包含目的设备信息,所以第一网络边缘设备根据目的设备信息确定第一出口时隙;第一网络边缘设备再根据第一出口时隙向下一跳设备发送业务报文。The first aspect of the embodiment of the present application provides a method for transmitting a service packet, including: a first network edge device receives the service packet, and since the service packet contains destination device information, the first network edge device The information determines the first egress time slot; the first network edge device then sends the service packet to the next hop device according to the first egress time slot.
由于第一网络边缘设备根据第一出口时隙即可实现将业务报文发送给下一跳设备,而不需在业务报文中添加隧道标签,所以能够降低封装开销,提高封装效率。Since the first network edge device can send the service message to the next-hop device according to the first egress time slot without adding a tunnel label to the service message, encapsulation overhead can be reduced and encapsulation efficiency can be improved.
基于第一方面,本申请实施例提供了第一方面的第一种实施方式,在该实施方式中,第一网络边缘设备根据第一出口时隙向下一跳设备发送业务报文包括:第一网络边缘设备在业务报文中先添加虚拟专用网络VPN标签,该VPN标签可以包括多种;第一网络边缘设备根据第一出口时隙向下一跳设备发送包含VPN标签的业务报文。Based on the first aspect, the embodiment of this application provides the first implementation of the first aspect. In this implementation, the first network edge device sends the service message to the next-hop device according to the first egress time slot, including: the first A network edge device first adds a virtual private network VPN label to the service message, and the VPN label can include multiple types; the first network edge device sends the service message containing the VPN label to the next-hop device according to the first egress time slot.
在该实施方式中,第一网络边缘设备先在业务报文中添加VPN标签,然后再将业务报文发送给下一跳设备,从而实现对业务报文进行VPN业务处理。In this implementation manner, the first network edge device first adds a VPN label to the service message, and then sends the service message to the next-hop device, thereby implementing VPN service processing on the service message.
基于第一方面的第一种实施方式,本申请实施例提供了第一方面的第二种实施方式,在该实施方式中,第一网络边缘设备发送包含VPN标签的业务报文包括:第一网络边缘设备在包含VPN标签的业务报文中添加时隙封装,该时隙封装可以包括时隙开销和通用成帧规程(Generic Framing Procedure,GFP)封装头;第一网络边缘设备根据第一出口时隙向下一跳设备发送包含时隙封装的业务报文。Based on the first implementation of the first aspect, this embodiment of the present application provides a second implementation of the first aspect. In this implementation, the first network edge device sending a service packet containing a VPN label includes: first The network edge device adds a time slot encapsulation in the service message containing the VPN label, and the time slot encapsulation may include a time slot overhead and a general framing procedure (Generic Framing Procedure, GFP) encapsulation header; the first network edge device according to the first egress The time slot sends the service packet containing the time slot encapsulation to the next-hop device.
该实施方式提供了一种根据第一出口时隙向下一跳设备发送业务送包含VPN标签的业务报文的可行方案。This embodiment provides a feasible solution for sending a service to a next-hop device according to the first egress time slot and sending a service message containing a VPN label.
基于第一方面的第一种实施方式,或第一方面的第二种实施方式,本申请实施例提供了第一方面的第三种实施方式,业务报文中包含以太头。VPN标签为三层VPN标签,即业务报文为三层VPN业务报文。基于此,在第一网络边缘设备向下一跳设备发送业务报文的过程中,在第一网络边缘设备根据第一出口时隙向下一跳设备发送包含VPN标签的业务报文之前,方法还包括:第一网络边缘设备剥离业务报文中的以太头。Based on the first implementation manner of the first aspect, or the second implementation manner of the first aspect, this embodiment of the present application provides a third implementation manner of the first aspect, in which the Ethernet header is included in the service message. The VPN label is a Layer 3 VPN label, that is, the service packet is a Layer 3 VPN service packet. Based on this, during the process of the first network edge device sending 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 time slot, the method It also includes: stripping the Ethernet header in the service message by the first network edge device.
在该实施方式中,在发送业务报文前,第一网络设备剥离掉报文中的以太头,从而进一步降低了封装开销,提高了封装效率。In this embodiment, before sending the service message, the first network device strips off the Ethernet header in the message, thereby further reducing encapsulation overhead and improving 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, this embodiment of the present application provides a fourth implementation manner of the first aspect. kind of implementation. In this embodiment, the first network edge device determines the first egress time slot according to the destination device information includes: the first network edge device determines the bearer tunnel corresponding to the service packet according to the destination device information; the first network edge device determines the bearer tunnel according to the bearer tunnel First exit slot. This embodiment provides a feasible solution for determining the first egress time slot according to the information of the destination device.
基于第一方面,或第一方面的第一种实施方式,或第一方面的第二种实施方式,或第一方面的第三种实施方式,或第一方面的第四种实施方式,本申请实施例提供了第一方面的第五种实施方式。在该实施方式中,第一网络边缘设备根据目的设备信息确定第一出口时隙包括:第一网络边缘设备根据目的设备信息与第一出口时隙的预置关联联系,确定目的设备信息对应的第一出口时隙。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, this The application examples provide the fifth implementation manner of the first aspect. In this embodiment, the first network edge device determining the first egress time slot according to the destination device information includes: the first network edge device determines the destination device information corresponding to the first egress time slot according to the preset association between the destination device information and the first egress time slot First exit slot.
该实施方式提供了一种根据目的设备信息确定第一出口时隙的另一种可行方案。基于第一方面,或第一方面的第一种实施方式,或第一方面的第二种实施方式,或第一方面的第四种实施方式,或第一方面的第五种实施方式,本申请实施例提供了第一方面的第六种实施方式,在该实施方式中,VPN标签为二层L2VPN标签或EVPN标签。This embodiment provides another feasible solution for determining the first egress time slot according to the information of the destination device. 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, this The embodiment of the application provides a sixth implementation manner of the first aspect. In this implementation manner, the VPN label is a Layer 2 L2VPN label or an EVPN label.
本申请实施例第二方面提供了一种传输业务报文的方法,包括:首先,第二网络边缘设备接收业务报文;然后,第二网络边缘设备剥离业务报文中的时隙封装,得到包含目的设备信息和L3VPN标签的业务报文,即业务报文为三层VPN业务报文;基于目的设备信息指示下一跳设备为用户边缘设备,第二网络边缘设备剥离业务报文中的L3VPN标签,并在业务报文添加以太头,得到另一业务报文;第二网络边缘设备向用户边缘设备发送该另一业务报文。The second aspect of the embodiment of the present application provides a method for transmitting service packets, including: first, the second network edge device receives the service packets; then, the second network edge device strips the time slot encapsulation in the service packets to obtain A service message containing destination device information and an L3VPN label, that is, the service message is a Layer 3 VPN service message; based on the destination device information, the next-hop device is indicated as a user edge device, and the second network edge device strips the L3VPN in the service message label, and add an Ethernet header to 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 message received by the second network edge device does not contain an Ethernet header, so the second network device adds an Ethernet header to the service message to ensure that the service message can be processed normally 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. Wherein, the processor, the memory, and the transceiver are interconnected through a line, and the transceiver is used to perform the steps of receiving or sending service messages as described in any implementation mode in the first aspect of the embodiment of the present application; the processor calls the program code in the memory to use To execute the steps of processing service packets described in any implementation manner in the first aspect of the embodiments of the present application.
本申请实施例第四方面提供了一种网络边缘设备,包括:处理器、存储器以及收发器,其中,处理器、存储器以及收发器通过线路互联,收发器用于执行本申请实施例第二方面中的实施方式所述的接收或发送业务报文的步骤;处理器调用存储器中的程序代码用于执行本申请实施例第二方面中的实施方式所述的处理业务报文的步骤。The fourth aspect of the embodiment of the present application provides a network edge device, including: a processor, a memory, and a transceiver, wherein the processor, the memory, and the transceiver are interconnected through lines, and the transceiver is used to implement the second aspect of the embodiment of the present application. The step of receiving or sending a service message described in the implementation mode; the processor calls the program code in the memory to execute the step of processing the service message described in the implementation mode of the second aspect of the embodiment of the present application.
本申请实施例第五方面提供了一种传输业务报文的系统,包括:第一网络边缘设备和第二网络边缘设备;第一网络边缘设备用于执行第一方面中任意一项所述的传输业务报文的方法;第二网络边缘设备用于执行第二方面中的传输业务报文的方法。The fifth aspect of the embodiment of the present application provides a system for transmitting service packets, including: a first network edge device and a second network edge device; the first network edge device is used to perform any one of the first aspect A method for transmitting service packets; the second network edge device is configured to implement the method for transmitting service packets 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, and realizes that the first network edge device transmits service packets to the second At the edge of the network, there is no need to add labels to service packets, so it can reduce encapsulation overhead and improve encapsulation efficiency.
基于第五方面,本申请实施例提供了第五方面的第一种实施方式,在该实施方式中,系统还包括网络中间设备,网络中间设备用于:根据第一入口时隙接收业务报文,该业务报文可以来自第一网络边缘设备;根据预置的第一入口时隙和第二出口时隙的对应关系,确定第一入口时隙对应的第二出口时隙;根据第二出口时隙向下一跳设备发送业务报文。Based on the fifth aspect, the embodiment of the present application provides a first implementation of the fifth aspect. In this implementation, the system further includes a network intermediate device, and the network intermediate device is used to: receive service packets according to the first ingress time slot , the service message may come from the first network edge device; according to the preset correspondence between the first ingress time slot and the second egress time slot, determine the second egress time slot corresponding to the first ingress time slot; The time slot sends service packets to the next-hop device.
在该实施方式中,网络中间设备转发业务报文的过程中,不需要在业务报文中添加标签,所以能够降低封装开销,提高封装效率。In this embodiment, when the network intermediate device forwards the service message, it is not necessary to add a label to the service message, so the encapsulation overhead can be reduced and the encapsulation efficiency can be improved.
基于第五方面,或第五方面的第一种实施方式,本申请实施例提供了第五方面的第三种实施方式,在该实施方式中,第一网络边缘设备还用于:根据预置的通信通道的属性自动建立与相邻的网络设备之间的通信通道,该通信通道可以用于运行建立子承载隧道所需要的协议,相邻的网络设备为第二网络边缘设备或网络中间设备;根据通信通道建立与相邻网络设备的之间的N条子承载隧道,N条子承载隧道的端口的IP地址与通信通道的属性中端口的IP地址相同,N条子承载隧道中的一条子承载隧道为第一网络边缘设备至第二网络边缘设备之间的承载隧道的一段,且指示第一网络边缘设备根据第一出口时隙向相邻网络设备发送业务报文,其中N为正整数。Based on the fifth aspect, or the first implementation manner of the fifth aspect, this embodiment of the present application provides a third implementation manner of the fifth aspect. In this implementation manner, the first network edge device is further configured to: according to the preset The attribute of the communication channel automatically establishes a communication channel with an adjacent network device, which can be used to run the protocol required to establish a sub-bearer tunnel. The adjacent network device is a second network edge device or a network intermediate device ; Establish N sub-bearer tunnels with adjacent network devices according to the communication channel, the IP addresses of the ports of the N sub-bearer tunnels are the same as the IP addresses of the ports in the properties of the communication channel, and one of the N sub-bearer tunnels It is a segment of the bearer tunnel between the first network edge device and the second network edge device, and instructs the first network edge device to send service packets to adjacent network devices according to the first egress time slot, where N is a positive integer.
在该实施方式中,第一网络边缘设备可以自动建立与相邻的网络设备之间的通信通道,并且,基于该通信通道可以建立与相邻网络设备的之间的N条子承载隧道,N条子承载隧道的IP地址与通信通道的属性中的IP地址相同,从而节省资源。In this embodiment, the first network edge device can automatically establish a communication channel with an adjacent network device, and based on the communication channel, it can establish N sub-bearer tunnels with the adjacent network device, and the N sub-carrier tunnels can be established with the adjacent network device. The IP address of the bearer tunnel is the same as the IP address in the properties of the communication channel, thereby saving resources.
本申请实施例第六方面提供了一种数字处理芯片,芯片包括处理器和存储器,存储器和处理器通过线路互联,存储器中存储有指令,处理器用于执行如上述第一方面至第二方面任一项的传输业务报文的方法中与处理相关的步骤。The sixth aspect of the embodiment of the present application provides a digital processing chip. The chip includes a processor and a memory. The memory and the processor are interconnected through a line. Instructions are stored in the memory. The processor is used to execute any of the above-mentioned first to second aspects. A process-related step in a method for transmitting a service message.
本申请实施例第七方面提供了一种存储一个或多个计算机执行指令的计算机可读存储介质,当所述计算机执行指令被处理器执行时,所述处理器执行如上述第一方面至第二方面任一项的传输业务报文的方法。The seventh aspect of the embodiments of the present application provides a computer-readable storage medium storing one or more computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor executes the above-mentioned first to second aspects. A method for transmitting service packets according to any one of the two aspects.
本申请实施例第八方面还提供了一种计算机程序产品,该计算机程序产品包括计算机软件指令,该计算机软件指令可通过处理器进行加载来执行上述第一方面至第二方面任一项的传输业务报文的方法。The eighth aspect of the embodiment of the present application also provides a computer program product, the computer program product includes computer software instructions, and the computer software instructions can be loaded by a processor to perform the transmission of any one of the above first aspect to the second aspect The method of business message.
从以上技术方案可以看出,本申请实施例根据业务报文的目的设备信息来确定时隙资源再发送,无需进行多层封装,可降低封装开销。It can be seen from the above technical solutions that the embodiment of the present application determines the time slot resource according to the destination device information of the service message before sending, without multi-layer encapsulation, which can reduce encapsulation overhead.
附图说明Description of drawings
图1为本申请实施例中传输业务的网络架构示意图;FIG. 1 is a schematic diagram of a network architecture of a transmission service in an embodiment of the present application;
图2为本申请实施例中传输业务报文的方法的实施例示意图;FIG. 2 is a schematic diagram of an embodiment of a method for transmitting a service message in an embodiment of the present application;
图3为本申请实施例中通过静态配置的方法建立承载隧道的实施例示意图;FIG. 3 is a schematic diagram of an embodiment of establishing a bearer tunnel through a static configuration method in an embodiment of the present application;
图4为本申请实施例中自动建立承载隧道的方法实施例示意图;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;
图5为本申请实施例中自动建立的承载隧道的实施例示意图;FIG. 5 is a schematic diagram of an embodiment of a bearer tunnel automatically established in an embodiment of the present application;
图6为现有的标签交换路径中的业务报文封装的示意图;FIG. 6 is a schematic diagram of service packet encapsulation in an existing label switching path;
图7为本申请实施例中业务报文封装的示意图;FIG. 7 is a schematic diagram of service packet encapsulation in the embodiment of the present application;
图8为网络边缘设备的结构示意图;FIG. 8 is a schematic structural diagram of a network edge device;
图9为本申请实施例中传输业务报文的系统的实施例示意图。FIG. 9 is a schematic diagram of an embodiment of a system for transmitting service packets in the embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了一种传输业务报文的方法、设备和系统,用于降低封装开销,提高封装效率。Embodiments of the present application provide a method, device, and system for transmitting service packets, which are used to reduce encapsulation overhead and improve encapsulation efficiency.
下面结合本申请实施例中的附图对本发明实施例进行描述。本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本发明。Embodiments of the present invention are described below with reference to the drawings in the embodiments of the present application. The terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present invention.
下面结合附图对本申请实施例进行的描述,本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The following describes the embodiments of the present application with reference to the accompanying drawings. Those skilled in the art will know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, and this is merely a description of the manner in which objects with the same attribute are described in the embodiments of the present application. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, product, or apparatus comprising a series of elements is not necessarily limited to those elements, but may include elements not expressly included. Other elements listed explicitly or inherent to the process, method, product, or apparatus.
图1为本申请实施例可应用的网络架构示意图。如图1所示,该网络架构包括私有网络和公用网络。其中,私有网络包括一个或多个用户网络边缘设备(Customer Edge,CE),图1示出了4个CE;公用网络可以仅包括一个或多个服务提供商网络边缘设备(ProviderEdge,PE),公用网络也可以包括一个或多个服务提供商网络骨干设备P。图1给出的网络架构示例包括3个PE和4个P。为了便于描述,下面将设备P称为网络中间设备。FIG. 1 is a schematic diagram of a network architecture applicable to an embodiment of the present application. As shown in Figure 1, the network architecture includes a private network and a public network. Wherein, the private network includes one or more user network edge devices (Customer Edge, CE), and Fig. 1 shows four CEs; the public network may only include one or more service provider network edge devices (ProviderEdge, PE), The public network may also include one or more service provider network backbone devices P. The network architecture example shown in Figure 1 includes 3 PEs and 4 Ps. For ease of description, the device P is referred to as a network intermediate device below.
在该网络架构中,PE可以通过UNI接口与一个或多个CE连接。两个PE可以直接连接并建立承载隧道,两个PE也可以通过一个或多个设备P连接并建立承载隧道,其中承载隧道用于传输业务报文。In this network architecture, PEs can be connected to one or more CEs through UNI interfaces. Two PEs can be directly connected and establish a bearer tunnel, or two PEs can be connected through one or more devices P and establish a bearer tunnel, where the bearer tunnel is used to transmit service packets.
基于图1所示的网络架构,在两个PE之间建立了一条承载隧道,其中,该承载隧道在图1中示出;与其中一个PE连接的CE可以通过该承载隧道,向与另一个PE连接的CE发送业务报文。Based on the network architecture shown in Figure 1, a bearer tunnel is established between two PEs, where the bearer tunnel is shown in Figure 1; a CE connected to one of the PEs can communicate with the other through the bearer tunnel The CE connected to the PE sends service packets.
可以理解的是,在发送业务报文前,当前设备需要先确定下一跳设备,才能进行业务报文的发送。以图1所示的承载隧道为例,承载隧道中的起始PE在发送业务报文前,需要从与其连接的两个P设备中确定出下一跳设备。目前,主要依赖于标签交换来确定下一跳设备,这种方法需要在业务报文中添加隧道标签。该隧道标签的种类与承载隧道的类型有关,所以该隧道标签的种类可以有多种。例如可以是多协议标签交换(Multi-protocol LabelSwitching,MPLS)标签。It can be understood that, before sending the service message, the current device needs to determine the next-hop device before sending the service message. Taking the bearer tunnel shown in FIG. 1 as an example, the initial PE in the bearer tunnel needs to determine the next-hop device from the two P devices connected to it before sending service packets. At present, the next-hop device is mainly determined by label switching, and this method needs to add a tunnel label in the service packet. The type of the tunnel label is related to the type of the bearer tunnel, so there may be multiple types of the tunnel label. For example, it may be a Multi-protocol Label Switching (Multi-protocol Label Switching, MPLS) label.
为了避免在业务报文中添加隧道标签导致封装开销增加,本申请实施例提供了一种传输业务报文的方法,该方法不需要在业务报文中添加隧道标签,所以能够降低封装开销,提高封装效率。下面对该传输报文的方法进行具体介绍。In order to avoid the increase of encapsulation overhead caused by adding tunnel labels in service messages, the embodiment of the present application provides a method for transmitting service messages. This method does not need to add tunnel labels in service messages, so it can reduce encapsulation overhead and improve Packaging efficiency. The method for transmitting the message will be described in detail below.
图2为本申请实施例中传输业务报文的方法的实施例示意图。如图2所示,本申请实施例提供了一种传输业务报文的方法的实施例,包括:FIG. 2 is a schematic diagram of an embodiment of a method for transmitting service packets in the embodiment of the present application. As shown in Figure 2, the embodiment of the present application provides an embodiment of a method for transmitting service packets, including:
步骤101,第一网络边缘设备接收业务报文,业务报文中包含目的设备信息。In step 101, the first network edge device receives a service message, and the service message includes destination device information.
例如,第一网络边缘设备可以为图1中所示的服务提供商网络边缘设备PE。根据前述说明可知,在传输报文前,首先需要建立一条承载隧道,所以在执行步骤101前,本申请实施例会建立一条由第一网络边缘设备至第二网络边缘的承载隧道。下面对建立该承载隧道的过程进行介绍。For example, the first network edge device may be the service provider network edge device PE shown in FIG. 1 . According to the foregoing description, it can be seen that before transmitting a message, a bearer tunnel needs to be established first, so before performing step 101, this embodiment of the application will establish a bearer tunnel from the first network edge device to the second network edge. The process of establishing the bearer tunnel is introduced below.
首先,需要说明的是,该承载隧道可以有多种,本申请实施例对此不做限定。例如,承载隧道可以包括MPLS隧道、分段路由(Segment Routing,SR)隧道、SRV6隧道、通用路由封装(Generic Routing Encapsulation,GRE)隧道或互联网协议(Internet Protocol,IP)隧道。由于利用上述承载隧道传输业务报文时,均会在业务报文中添加隧道标签,然后基于该隧道标签确定下一跳设备,所以上述承载隧道又可以叫做标签交换路径(Label SwitchPath,LSP)。First of all, it should be noted that there may be multiple bearer tunnels, which are not limited in this embodiment of the present application. For example, the bearer tunnel may include an MPLS tunnel, a segment routing (Segment Routing, SR) tunnel, an SRV6 tunnel, a generic routing encapsulation (Generic Routing Encapsulation, GRE) tunnel or an Internet Protocol (Internet Protocol, IP) tunnel. Since the above-mentioned bearer tunnel is used to transmit service packets, a tunnel label is added to the service packet, and then the next-hop device is determined based on the tunnel label, so the above-mentioned bearer tunnel can also be called a Label Switch Path (LSP).
相应地,建立该承载隧道的方法也有多种,例如可以通过静态配置的方法建立承载隧道,可以通过软件定义网络(Software Defined Network,SDN)建立承载隧道。Correspondingly, there are various methods for establishing the bearer tunnel, for example, the bearer tunnel may be established through a static configuration method, and the bearer tunnel may be established through a software defined network (Software Defined Network, SDN).
通过静态配置的方法建立承载隧道的大致过程为:预先在该承载隧道所经过的网络设备(包括第一网络边缘设备、第二网络边缘设备以及可能存在的网络中间设备)上进行配置,该配置内容可以包括承载隧道的带宽、每个网络设备上端口的IP地址等属性,然后基于该配置内容先在相邻网络设备之间建立通信通道,然后再基于该通信通道建立承载隧道,该承载隧道与通信通道共用。The general process of establishing a bearer tunnel through the static configuration method is: pre-configure on the network devices (including the first network edge device, the second network edge device, and possible network intermediate devices) that the bearer tunnel passes through. The content can include attributes such as the bandwidth of the bearer tunnel, the IP address of the port on each network device, and then based on the configuration content, first establish a communication channel between adjacent network devices, and then establish a bearer tunnel based on the communication channel. The bearer tunnel shared with the communication channel.
所以,基于通过静态配置的方法建立承载隧道,每建立一条承载隧道,就需要预先进行人工配置,并且每条承载隧道对应一条通信通道。例如,假设在一公网中,存在一个网络中间设备分别与第一网络边缘设备、第二网络边缘设备相邻,若使用静态配置的方法在第一网络边缘设备和第二网络边缘设备之间建立两条承载隧道,两条承载隧道则如图3所示。图3为本申请实施例中通过静态配置的方法建立承载隧道的实施例示意图。在图3中,包含两条承载隧道,一条承载隧道对应下面两条通信通道:第一条通信通道位于第一网络边缘设备与网络中间设备之间,两端端口的IP地址分别为IP1和IP2,第二条通信通道位于网络中间设备和第二网络边缘设备之间,两端端口的IP地址分别为IP3和IP4;另一条承载隧道对应下面两条通信通道:第一条通信通道位于第一网络边缘设备与网络中间设备之间,两端端口的IP地址分别为IP11和IP22,第二条通信通道位于网络中间设备和第二网络边缘设备之间,两端端口的IP地址分别为IP33和IP44。Therefore, based on the establishment of bearer tunnels through the method of static configuration, each time a bearer tunnel is established, manual configuration needs to be performed in advance, and each bearer tunnel corresponds to a communication channel. For example, suppose that in a public network, there is a network intermediate device that is adjacent to the first network edge device and the second network edge device respectively. Two bearer tunnels are established, and the two bearer tunnels are shown in FIG. 3 . FIG. 3 is a schematic diagram of an embodiment of establishing a bearer tunnel through a static configuration method in the embodiment of the present application. In Figure 3, there are two bearer tunnels, and one bearer tunnel corresponds to the following two communication channels: the first communication channel is located between the first network edge device and the network intermediate device, and the IP addresses of the ports at both ends are IP1 and IP2 respectively , the second communication channel is located between the network intermediate device and the second network edge device, and the IP addresses of the ports at both ends are IP3 and IP4 respectively; the other bearer tunnel corresponds to the following two communication channels: the first communication channel is located at the first Between the network edge device and the network intermediate device, the IP addresses of the ports at both ends are IP11 and IP22 respectively, and the second communication channel is located between the network intermediate device and the second network edge device, and the IP addresses of the ports at both ends are IP33 and IP22 respectively. IP44.
由此可以看出,假设通过静态配置的方法建立N条承载隧道,其中N为正整数,则N条承载隧道各自对应一组IP地址,且N组IP地址需要人工配置N次,因此该方法效率较低且浪费资源。为此,本申请实施例还提供了一种自动建立承载隧道的方法,自动建立承载隧道的方法可见图4的相关描述看,在此不予赘述。It can be seen from this that, assuming that N bearer tunnels are established through the static configuration method, where N is a positive integer, each of the N bearer tunnels corresponds to a group of IP addresses, and the N groups of IP addresses need to be manually configured N times, so this method Inefficient and a waste of resources. To this end, the embodiment of the present application also provides a method for automatically establishing a bearer tunnel. The method for automatically establishing a bearer tunnel can be seen in the relevant description in FIG. 4 , and will not be repeated here.
此外,在本申请实施例中,N条子承载隧道中的一条子承载隧道指示第一网络边缘设备,根据第一出口时隙向相邻网络设备发送业务报文。In addition, in the embodiment of the present application, one sub-bearer tunnel among the N sub-bearer tunnels instructs the first network edge device to send service packets to adjacent network devices according to the first egress time slot.
作为其中的一种实现方式,基于第一网络边缘设备至第二网络边缘设备之间的承载隧道为LSP,该LSP对应标签交换表,标签交换表中包含LSP的带宽,以及LSP上的各个网络设备上的入标签和出标签等信息。网络设备根据入标签可以确定出标签,根据出标签可以确定下一跳和出口时隙等信息。所以在该实现方式中,可以建立入口时隙与出标签交换表中的入标签的映射关系,以及出口时隙与出标签的映射关系,使得入口时隙和出口时隙之间形成映射关系,这样,LSP上的各个网络设备则可以根据入口时隙确定出口时隙,然后利用出口时隙向下一跳发送业务报文。As one of the implementation methods, based on the fact that the bearer tunnel between the first network edge device and the second network edge device is an LSP, the LSP corresponds to a label switching table, and the label switching table contains the bandwidth of the LSP, and each network on the LSP Information such as incoming and outgoing labels on the device. The network device can determine the outgoing label according to the incoming label, and can determine information such as the next hop and the outgoing time slot according to the outgoing label. Therefore, in this implementation, the mapping relationship between the ingress time slot and the inbound label in the outbound label exchange table, and the mapping relationship between the outbound time slot and the outbound label can be established, so that a mapping relationship is formed between the ingress time slot and the egress time slot. In this way, each network device on the LSP can determine an egress time slot according to the ingress time slot, and then use the egress time slot to send a service message to the next hop.
基于上述实现方式,业务报文在该承载隧道中的传输不需依赖入标签和出标签;在这种情况下,在第一网络边缘设备和第二网络边缘设备之间,基于两两相邻网络设备之间的通信通道为光传送网(Optical Transport Network,OTN)管道,建立的承载隧道则可以叫做OTN隧道。基于两两相邻网络设备之间的通信通道为或无源光纤网络(PassiveOptical Network,PON)管道,则建立的承载隧道则可以叫做PON隧道。Based on the above implementation, the transmission of service packets in the bearer tunnel does not need to rely on incoming labels and outgoing labels; in this case, between the first network edge device and the second network edge device, based on two adjacent A communication channel between network devices is an optical transport network (Optical Transport Network, OTN) pipe, and an established bearer tunnel may be called an OTN tunnel. Based on the fact that the communication channels between two adjacent network devices are passive optical network (Passive Optical Network, PON) pipes, 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 the first outgoing label corresponding to the first network edge device and the bandwidth of the label switching path. In the embodiment of this application, the mapping relationship between the first outgoing label and the first outgoing time slot as shown in the following table is established:
在该表中,以MPLS标签交换路径和OTN隧道为例,示出了第一出标签和第一出口时隙的映射关系,所以第一网络边缘设备可以根据OTN隧道确定第一出口时隙,然后根据第一出口时隙向下一跳发送业务报文,所以子承载隧道能够指示第一网络边缘设备根据第一出口时隙向相邻网络设备发送业务报文。In this table, taking the MPLS label switched path and the OTN tunnel as examples, the mapping relationship between the first outgoing label and the first egress time slot is shown, so the first network edge device can determine the first egress time slot according to the OTN tunnel, Then, the service packet is sent to the next hop according to the first egress time slot, so the sub-bearer tunnel can instruct the first network edge device to send the service packet to the adjacent network device according to the first egress time slot.
上面对传输报文前建立承载隧道的过程进行了介绍,在建立承载隧道后,第一网络边缘设备便可以通过承载隧道向第二网络边缘传输报文。The above describes the process of establishing a bearer tunnel before transmitting packets. After the bearer tunnel is established, the first network edge device can transmit packets to the second network edge through the bearer tunnel.
步骤102,第一网络边缘设备根据目的设备信息确定第一出口时隙。Step 102, the first network edge device determines a first egress time slot according to the destination device information.
需要说明的是,第一网络边缘设备根据目的设备信息确定第一出口时隙的方法有多种。示例性地,第一网络边缘设备先根据目的设备信息确定业务报文对应的承载隧道,然后第一网络边缘设备根据承载隧道确定第一出口时隙。其中,目的设备信息可以包括目的地址、媒体访问控制(Media Access Control,MAC)地址和虚拟局域网(Virtual LocalArea Network,VLAN)地址。It should be noted that there are multiple methods for the first network edge device to determine the first egress time slot according to the destination device information. Exemplarily, the first network edge device first determines the bearer tunnel corresponding to the service packet according to the destination device information, and then the first network edge device determines the first egress time slot according to the bearer tunnel. Wherein, the destination device information may include a destination address, a Media Access Control (Media Access Control, MAC) address, and a Virtual Local Area Network (Virtual Local Area Network, VLAN) address.
对应不同应用场景,根据目的设备信息判断承载隧道的方法不同。具体地,基于应用场景为二层L2VPN场景,可以根据MAC地址判断承载隧道;基于应用场景为三层L3VPN场景,可以根据目的地址判断承载隧道;基于应用场景为L2专线场景,可以根据VLAN地址判断承载隧道。Corresponding to different application scenarios, the method of judging the bearer tunnel according to the information of the destination device is different. Specifically, if the application scenario is a Layer 2 L2VPN scenario, the bearer tunnel can be determined according to the MAC address; if the application scenario is a Layer 3 L3VPN scenario, the bearer tunnel can be determined according to the destination address; Bearer tunnel.
在本申请实施例中,承载隧道可以包括MPLS LSP、OTN隧道或PON隧道,基于承载隧道为OTN隧道或PON隧道等,则第一网络边缘设备会继续根据承载隧道确定第一出口时隙。In this embodiment of the present application, the bearer tunnel may include an MPLS LSP, an OTN tunnel, or a PON tunnel. Based on whether the bearer tunnel is an OTN tunnel or a PON tunnel, the first network edge device will continue to determine the first egress time slot according to the bearer tunnel.
作为另一种可实现的方式,可以在第一网络边缘设备中预置目的设备信息与第一出口时隙的关联关系,基于接收到业务报文,第一网络边缘设备可以根据该关联关系确定目的设备信息对应的第一出口时隙。As another achievable manner, the association relationship between the destination device information and the first egress time slot can be preset in the first network edge device, and based on the received service message, the first network edge device can determine according to the association relationship The first egress time slot corresponding to the destination device information.
步骤103,第一网络边缘设备根据第一出口时隙向下一跳设备发送业务报文。Step 103, the first network edge device sends the service packet to the next-hop device according to the first egress time slot.
其中,第一网络边缘设备的下一跳设备可以为网络中间设备,也可以为第二网络边缘设备。在图2中,该第一网络边缘设备的下一跳设备为网络中间设备。Wherein, the next-hop device of the first network edge device may be a network intermediate device, or may be a second network edge device. In FIG. 2, the next-hop device of the first network edge device is a network intermediate device.
需要说明的是,第一网络边缘设备发送业务报文的过程与应用场景相关。例如,基于应用场景为VPN场景,在向一下一跳设备发送业务报文前,第一网络边缘设备需要对业务报文进行虚拟专用网络VPN处理;基于应用场景为虚拟专用网络VPN场景,在向一下一跳设备发送业务报文前,第一网络边缘设备不需对业务报文进行虚拟专用网络VPN处理。It should be noted that the process of the first network edge device sending the service packet is related to the application scenario. For example, if the application scenario is a VPN scenario, before sending service packets to the next-hop device, the first network edge device needs to perform virtual private network VPN processing on the service packets; Before the next-hop device sends the service message, the first network edge device does not need to perform virtual private network (VPN) processing on the service message.
作为一种可实现的方式,第一网络边缘设备根据第一出口时隙向下一跳设备发送业务报文包括:As an achievable manner, the sending of the service packet by the first network edge device to the next-hop device according to the first egress time slot includes:
首先,第一网络边缘设备在业务报文中添加VPN标签。First, the first network edge device adds a VPN label to the service packet.
需要说明的是,基于VPN场景为L2VPN场景,VPN标签为L2VPN标签;基于VPN场景为L3VPN场景,VPN标签为L3VPN标签基于VPN场景为EVPN场景,VPN标签为EVPN标签。It should be noted that the VPN-based scenario is an L2VPN scenario, and the VPN label is an L2VPN label; the VPN-based scenario is an L3VPN scenario, and the VPN label is an L3VPN label. The VPN-based scenario is an EVPN scenario, and the VPN label is an EVPN label.
在第一网络边缘设备在业务报文中添加虚拟专用网络VPN标签之后,第一网络边缘设备根据第一出口时隙向下一跳设备发送包含VPN标签的业务报文。After the first network edge device adds a virtual private network VPN label to 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 egress time slot.
需要说明的是,第一网络边缘设备根据第一出口时隙向下一跳设备发送包含VPN标签的业务报文的方法有多种,作为一种可实现的方式,第一网络边缘设备根据第一出口时隙向下一跳设备发送包含VPN标签的业务报文包括:It should be noted that there are many methods for the first network edge device to send the service packet containing the VPN label to the next-hop device according to the first egress time slot. The service packets containing the VPN label sent to the next-hop device in an egress time slot include:
第一网络边缘设备在包含VPN标签的业务报文中添加时隙封装,其中该时隙封装承载隧道的类型有关;以承载隧道为OTN隧道为例,该时隙封装可以包括OTN开销和通用成帧规程(Generic Framing Procedure,GFP)封装头。The first network edge device adds a time slot encapsulation to the service message containing the VPN label, wherein the time slot encapsulation is related to the type of the bearer tunnel; taking the bearer tunnel as an OTN tunnel as an example, the time slot encapsulation may include OTN overhead and general cost Frame Procedure (Generic Framing Procedure, GFP) encapsulation header.
第一网络边缘设备在包含VPN标签的业务报文中添加时隙封装后,第一网络边缘设备根据第一出口时隙向下一跳设备发送包含时隙封装的业务报文。After the first network edge device adds time slot encapsulation to the service message containing the VPN label, the first network edge device sends the service message containing the time slot encapsulation to the next-hop device according to the first egress time slot.
可以理解的是,业务报文中包含净荷和以太头ETH。其中以太头可以包括源设备的MAC地址、目的MAC地址和VLAN标识。VLAN标识用于识别业务报文对应的承载隧道。例如第一网络边缘设备可以根据VLAN识别业务报文对应的承载隧道为OTN隧道,由此可以看出,以太头未携带业务信息。It can be understood that the service message contains the payload and the Ethernet header ETH. The Ethernet header may include the MAC address of the source device, the destination MAC address and the VLAN ID. The VLAN identifier is used to identify the bearer tunnel corresponding to the service packet. For example, the first network edge device may identify the bearer tunnel corresponding to the service packet as an OTN tunnel according to the VLAN. It can be seen from this that the Ethernet header does not carry service information.
另需要说明的是,在L3VPN业务场景下,该以太头与业务报文的传输过程无关,所以基于VPN标签为L3VPN标签,在第一网络边缘设备根据第一出口时隙向下一跳设备发送包含VPN标签的业务报文之前,方法还包括第一网络边缘设备剥离业务报文中的以太头。It should also be noted that in the L3VPN service scenario, the Ethernet header has nothing to do with the transmission process of the service message, so the VPN label is an L3VPN label, and the first network edge device sends it to the next-hop device according to the first egress time slot. Before the service message containing the VPN label, the method further includes stripping the Ethernet header in the service message by the first network edge device.
可以理解的是,本申请实施例对第一网络边缘设备剥离以太头的操作与添加VPN标签的操作的先后顺序不做限定,只要在添加时隙封装之前执行这两个操作即可。It can be understood that the embodiment of the present application does not limit the sequence of the first network edge device stripping the Ethernet header and adding the VPN label, as long as these two operations are performed before adding the time slot encapsulation.
基于上述对第一网络边缘设备根据第一出口时隙向下一跳设备发送业务报文的过程可知,在本申请实施例中,第一网络边缘设备未在业务报文中添加隧道标签,并且,基于VPN标签为L3VPN标签,本申请实施例还可以对业务报文中的以太头进行剥离。Based on the above process of the first network edge device sending a service message to the next-hop device according to the first egress time slot, in this embodiment of the application, the first network edge device does not add a tunnel label to the service message, and , based on the fact that the VPN label is an L3VPN label, the embodiment of the present application may also strip the Ethernet header in the service message.
以VPN标签为L3VPN标签为例,图6为现有的标签交换路径中的业务报文封装的示意图。如图6所示,经过封装后的业务报文包括除了包括净荷、VPN标签和时隙封装外,还包括标签和以太头。图7为本申请实施例中业务报文封装的示意图。如图7所示,经过封装后的业务报文只包括除了包括净荷、VPN标签和时隙封装。Taking the VPN label as an example of an L3VPN label, FIG. 6 is a schematic diagram of service packet encapsulation in an existing label switching path. As shown in FIG. 6 , the encapsulated service message includes not only payload, VPN label and time slot encapsulation, but also label and Ethernet header. FIG. 7 is a schematic diagram of service packet encapsulation in the embodiment of the present application. As shown in FIG. 7 , the encapsulated service packet only includes payload, VPN label and time slot encapsulation.
对比图6和图7可以看出,本申请实施例中的业务报文中不存在隧道标签,所以可以降低封装开销,提高封装效率。并且,申请实施例中的业务报文中还不存在以太头,所以能够进一步降低封装开销,提高封装效率。Comparing FIG. 6 and FIG. 7, it can be seen that there is no tunnel label in the service packet in the embodiment of the present application, so the encapsulation overhead can be reduced and the encapsulation efficiency can be improved. Moreover, there is no Ethernet header in the service message in the embodiment of the application, so the encapsulation overhead can be further reduced and the encapsulation efficiency can be improved.
需要说明的是,当第一网络边缘设备的下一跳设备为网络中间设备时,可以继续执行步骤104-108,若其下一跳设备为第二网络边缘设备时,可以直接执行步骤107-108。It should be noted that, when the next-hop device of the first network edge device is a network intermediate device, steps 104-108 can be continued, and if the next-hop device is a second network edge device, steps 107-107 can be directly performed. 108.
下面以其中一个网络中间设备为例对网络中间设备侧的操作进行说明。当网络中间设备为多个时,操作类似,不再赘述。The following takes one of the network intermediate devices as an example to describe operations on the network intermediate device side. When there are multiple network intermediate devices, the operations are similar and will not be repeated here.
首先,网络中间设备根据第一入口时隙接收业务报文。First, the network intermediate device receives service packets according to the first ingress time slot.
需要说明的是,基于通信通道为OTN管道或PON管道等硬管道,发送该业务报文的网络设备所采用的出口时隙与该第一入口时隙对应。It should be noted that, based on the fact that the communication channel is a hard pipe such as an OTN pipe or a PON pipe, the egress time slot used by the network device sending the service message corresponds to the first ingress time slot.
例如,基于该网络中间设备为第一网络边缘设备的下一跳,第一入口时隙则与第一出口时隙对应,即在第一网络边缘设备在根据第一出口时隙向网络中间设备发送业务报文的情况下,网络中间设备接收业务报文的时隙则对应为第一入口时隙。For example, based on the fact that the network intermediate device is the next hop of the first network edge device, the first ingress time slot corresponds to the first egress time slot, that is, the first network edge device sends a message to the network intermediate device according to the first egress time slot. In the case of sending a service message, the time slot for receiving the service message by the network intermediate device corresponds to the first entry time slot.
步骤104,网络中间设备根据预置的第一入口时隙和第二出口时隙的对应关系,确定第一入口时隙对应的第二出口时隙。Step 104, the network intermediate device determines the second egress time slot corresponding to the first ingress time slot according to the preset correspondence between the first ingress time slot and the second egress time slot.
基于步骤101的相关说明可知,在建立承载隧道的过程中,还建立了标签交换表中的入标签与入口时隙的映射关系,以及出标签和出口时隙的映射关系。以网络中间设备为例,网络中间设备建立了第一入口时隙与第一入标签的映射关系,以及第二出标签与第二出口时隙的映射关系,具体请参阅下表:Based on the related description of step 101, it can be seen that during the process of establishing the bearer tunnel, the mapping relationship between the incoming label and the ingress time slot and the mapping relationship between the outgoing label and the egress time slot in the label switching table are also established. Taking the network intermediate device as an example, the network intermediate device has established the mapping relationship between the first ingress time slot and the first inbound label, and the mapping relationship between the second outbound label and the second egress time slot. For details, please refer to the following table:
在该表中,以MPLS标签交换路径和OTN隧道为例,示出了第一入口时隙与第一入标签的映射关系,以及第二出标签与第二出口时隙的映射关系;由于第一入标签和第二出标签是对应的,所以第一入口时隙和第二出口时隙也是对应的,在接收到业务报文后,网络中间设备则可以根据第一入口时隙和第二出口时隙的对应关系确定第二出口时隙。In this table, taking the MPLS label switched path and the OTN tunnel as examples, it shows the mapping relationship between the first ingress time slot and the first ingress label, and the mapping relationship between the second egress label and the second egress time slot; The first incoming label corresponds to the second outgoing label, so the first ingress time slot and the second egress time slot also correspond. After receiving the service message, the network intermediate device can The correspondence of the egress time slots determines the second egress time slot.
步骤105,网络中间设备根据第二出口时隙向下一跳设备发送业务报文。Step 105, the network intermediate device sends the service message to the next-hop device according to the second egress time slot.
在确定第二出口时隙后,网络中间设备则可以根据该第二出口时隙向下一跳设备发送业务报文。该网络中间设备的下一跳设备可以是第二网络边缘设备或另一个网络中间设备。在图2的示例中,该网络中间设备的下一跳设备为第二网络边缘设备。After determining the second egress time slot, the network intermediate device can send the service packet to the next-hop device according to the second egress time slot. The next-hop device of the network intermediate device may be the second network edge device or another network intermediate device. In the example in FIG. 2 , the next-hop device of the network intermediate device is the second network edge device.
在本申请实施例中,网络中间设备直接根据第一入口时隙和第二出口时隙的对应关系确定第二出口时隙,然后根据第二出口时隙向下一跳设备发送业务报文,无需在业务报文中添加隧道标签,从而可以降低封装开销,提高封装效率。In the embodiment of the present application, the network intermediate device directly determines the second egress time slot according to the corresponding relationship between the first ingress time slot and the second egress time slot, and then sends the service message to the next-hop device according to the second egress time slot, There is no need to add tunnel labels to service packets, which reduces encapsulation overhead and improves encapsulation efficiency.
下面对传输业务报文过程中第二网络边缘设备侧的操作进行说明。Operations on the side of the second network edge device during the process of transmitting service packets will be described below.
首先,第二网络边缘设备接收业务报文。First, the second network edge device receives the service packet.
具体地,第二网络边缘设备从第一网络边缘设备或网络中间设备接收业务报文。Specifically, the second network edge device receives the service packet from the first network edge device or the network intermediate device.
步骤106,第二网络边缘设备剥离业务报文中的时隙封装。Step 106, the second network edge device strips the time slot encapsulation in the service message.
基于步骤103的相关说明可知,第一网络边缘设备在向网络中间设备发送业务报文前,在业务报文中添加了时隙封装。相应地,第二网络边缘设备在接收到业务报文后,会剥离掉业务报文中的时隙封装,得到包含目的设备信息和VPN标签的业务报文。在本申请实施例中,以VPN标签为L3VPN标签为例,对第二网络边缘设备侧的操作进行说明。Based on the relevant description of step 103, it can be seen that the first network edge device adds time slot encapsulation to the service message before sending the service message to the network intermediate device. Correspondingly, after receiving the service message, the second network edge device strips off the time slot encapsulation in the service message to obtain the service message including the destination device information and the VPN label. In this embodiment of the present application, the operation on the side of the second network edge device is described by taking the VPN label as an L3VPN label as an example.
步骤107,基于目的设备信息指示下一跳设备为用户边缘设备,第二网络边缘设备剥离业务报文中的L3VPN标签,并在业务报文添加以太头。Step 107: Based on the information of the destination device, indicating that the next-hop device is the user edge device, the second network edge device strips the L3VPN label in the service message, and adds an Ethernet header to the service message.
基于步骤103的相关说明可知,基于VPN标签为L3VPN标签,第一网络边缘设备可以将业务报文中的以太头剥离。相应地,基于目的设备信息指示下一跳设备为用户边缘设备,第二网络边缘设备会在业务报文中添加以太头,以保证业务报文在后续过程中能够被正常处理,其中该用户边缘设备可以为图1所示的用户网络边缘设备CE。Based on the relevant description of step 103, it can be known that based on the fact that the VPN label is an L3VPN label, the first network edge device may strip the Ethernet header in the service packet. Correspondingly, based on the destination device information indicating that the next-hop device is the user edge device, the second network edge device will add an Ethernet header to the service message to ensure that the service message can be processed normally in the subsequent process, wherein the user edge device The device may be the user network edge device CE shown in FIG. 1 .
除此之外,第二网络边缘设备还会剥离掉业务报文中的VPN标签,本申请实施例对剥离VPN标签的操作和添加以太头的操作的先后顺序不做限定。In addition, the second network edge device will strip off the VPN label in the service packet, and this embodiment of the present application does not limit the sequence of the operation of stripping the VPN label and the operation of adding the Ethernet header.
步骤108,第二网络边缘设备向用户边缘设备发送包含以太头且未包含L3VPN标签的业务报文。Step 108, the second network edge device sends the service packet including the Ethernet header and not including the L3VPN label to the user edge device.
最终,第二网络边缘设备发送至用户边缘设备,从而完成业务报文的传输。Finally, the second network edge device sends the message to the user edge device, thereby completing the transmission of the service packet.
基于前述说明可知,本申请实施例还可以自动建立承载隧道,下面结合图4对本申请实施例中自动建立承载隧道的方法进行具体介绍。如图4所示,本申请实施例中自动建立承载隧道的方法实施例示意图,以第一网络边缘设备为例,该方法包括:Based on the foregoing description, it can be seen that the embodiment of the present application can also automatically establish a bearer tunnel. The method for automatically establishing a bearer tunnel in the embodiment of the present application will be specifically introduced below with reference to FIG. 4 . As shown in Figure 4, a schematic diagram of an embodiment of a method for automatically establishing a bearer tunnel in the embodiment of the present application, taking the first network edge device as an example, the method includes:
步骤201,第一网络边缘设备根据预置的通信通道的属性建立与相邻的网络设备之间的通信通道。In
具体地,第一网络边缘设备可通过光纤搜索等方法先搜索到相邻的网络设备,在建立功能使能的情况下,第一网络边缘设备再根据预置的通信通道的属性建立与相邻的网络设备之间的通信通道,用于传输信令。预置的通信通道的属性可以仅与信令传输有关,例如包括通信通道的带宽和端口IP地址。其中,通信通道的带宽可以设置为较小值。Specifically, the first network edge device can first search for adjacent network devices through methods such as optical fiber search, and when the establishment function is enabled, the first network edge device then establishes a connection with the adjacent network device according to the attributes of the preset communication channel. The communication channel between network devices is used to transmit signaling. The attributes of the preset communication channel may only be related to signaling transmission, for example, include the bandwidth and port IP address of the communication channel. Wherein, the bandwidth of the communication channel may be set to a smaller value.
在本申请实施例中,该通信通道可以为OTN管道或PON管道等。需要说明的是,这几种管道均具备硬管道特性,所以可统称为硬管道。硬管道可以为一类业务报文分配固定带宽,从而可以避免拥塞丢包。对于OTN管道,带宽颗粒主要为光通路数据单元(OpticalChannel Data Unit,ODUk)或波长,其中,k可以为0、1、2、2e、3、4或flex。或者,带宽粒度还可以为更小颗粒度,例如:2M,20M等。对此,本申请不做限定。In this embodiment of the present application, the communication channel may be an OTN pipe or a PON pipe. It should be noted that these types of pipes all have the characteristics of hard pipes, so they can be collectively referred to as hard pipes. The hard pipe can allocate fixed bandwidth for a class of service packets, thereby avoiding packet loss due to congestion. For an OTN pipe, the bandwidth granule is mainly an Optical Channel Data Unit (Optical Channel Data Unit, ODUk) or a wavelength, where k can be 0, 1, 2, 2e, 3, 4 or flex. Alternatively, the bandwidth granularity may be smaller, for example: 2M, 20M, and so on. In this regard, this application does not make a limitation.
同样地,网络中的其他网络设备都可以建立与其相邻的网络设备之间的通信通道。Similarly, other network devices in the network can establish communication channels with their adjacent network devices.
步骤202,第一网络边缘设备根据通信通道建立与相邻网络设备的之间的N条子承载隧道,其中,N条子承载隧道中的一条子承载隧道为第一网络边缘设备至第二网络边缘设备之间的承载隧道的一段,且指示第一网络边缘设备根据第一出口时隙向相邻网络设备发送业务报文,N为正整数。
具体地,以N=1为例,第一网络边缘设备可以先在通信通道的端口上运行路由协议,该路由协议可以为内部网关协议IGP,以保证第一网络边缘设备与相邻的网络设备之间路由可达;同样地,公用网络中的其他网络设备也可以在通信通道的端口上运行路由协议,最终可以使得整个公用网络路由可达。Specifically, taking N=1 as an example, the first network edge device can first run a routing protocol on the port of the communication channel, and the routing protocol can be an interior gateway protocol (IGP), so as to ensure that the first network edge device and adjacent network devices Routing between them is reachable; similarly, other network devices in the public network can also run routing protocols on the ports of the communication channel, and ultimately make the entire public network reachable.
基于路由协议,第一网络边缘设备可以在通信通道的端口上继续运行与预置的隧道属性相关联的隧道协议,从而建立起满足该隧道属性的子承载隧道。该子承载隧道为第一网络边缘设备至第二网络边缘设备之间的承载隧道的一段。同样地,利用该方法,其他网络设备也可以建立起与其相邻网络设备的之间的子承载隧道。最终,多段子承载隧道最终构成一条由第一网络边缘设备至第二网络边缘设备之间的承载隧道。Based on the routing protocol, the first network edge device may continue to run the tunnel protocol associated with the preset tunnel attribute on the port of the communication channel, so as to establish a sub-bearer tunnel satisfying the tunnel attribute. The sub-bearer tunnel is a section of the bearer tunnel between the first network edge device and the second network edge device. Similarly, with this method, other network devices can also establish sub-bearer tunnels with their adjacent network devices. Finally, the multiple sub-bearer tunnels finally constitute a bearer tunnel from the first network edge device to the second network edge device.
隧道协议具体可以根据所要建立的隧道类型进行选择,本申请实施例对此不做限定。例如可以为MPLS协议。具体地,隧道协议可以为MPLS协议中的资源预留协议(ResourceReservation Protocol,RSVP)。Specifically, the tunnel protocol can be selected according to the type of tunnel to be established, which is not limited in this embodiment of the present application. For example, it may be an MPLS protocol. Specifically, the tunnel protocol may be a Resource Reservation Protocol (ResourceReservation Protocol, RSVP) in the MPLS protocol.
隧道属性可以根据实际需要进行设置。例如隧道属性可以包括隧道的带宽,隧道的起点和终点。在本申请实施例中,隧道的起点为第一网络边缘设备,隧道的终点为第二网络边缘设备。Tunnel attributes can be set according to actual needs. For example, the properties of the tunnel may include the bandwidth of the tunnel, the starting point and the ending point of the tunnel. In this embodiment of the present application, the starting point of the tunnel is the first network edge device, and the end point of the tunnel is the second network edge device.
在本申请实施例中,N条子承载隧道的端口的IP地址与通信通道的属性中端口的IP地址相同。具体地,一网络中,网络中间设备分别与第一网络边缘设备、第二网络边缘设备相邻,若使用自动建立承载隧道的方法在第一网络边缘设备和第二网络边缘设备之间建立两条承载隧道,两条承载隧道则如图5所示。图5为本申请实施例中自动建立的承载隧道的实施例示意图。图5包含两条承载隧道。一条承载隧道对应的两条通信通道与另一条承载隧道对应的两条通信通道相同。两条通信通道具体为:第一条通信通道位于第一网络边缘设备与网络中间设备之间,两端端口的IP地址分别为IP5和IP6,第二条通信通道位于网络中间设备和第二网络边缘设备之间,两端端口的IP地址分别为IP7和IP8。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 addresses of the ports in the attributes of the communication channel. Specifically, in a network, the network intermediate device is adjacent to the first network edge device and the second network edge device respectively. If the method of automatically establishing a bearer tunnel is used to establish two There are two bearer tunnels, and two bearer tunnels are shown in Figure 5. FIG. 5 is a schematic diagram of an embodiment of an automatically established bearer tunnel in the embodiment of the present application. Figure 5 contains two bearer tunnels. The two communication channels corresponding to one bearer tunnel are the same as the two communication channels corresponding to the other bearer tunnel. The two communication channels are specifically: the first communication channel is located between the first network edge device and the network intermediate device, the IP addresses of the ports at both ends are IP5 and IP6 respectively, and the second communication channel is located between the network intermediate device and the second network Between the edge devices, the IP addresses of the ports at both ends are IP7 and IP8 respectively.
由此可以看出,假设通过自动建立承载隧道的方法建立的N条承载隧道,N条承载隧道对应一组IP地址,相比于N条承载隧道对应N组IP地址,能够节省IP资源,且该组IP地址只需要配置一次,效率较高。It can be seen from this that, assuming that N bearer tunnels are established through the method of automatically establishing bearer tunnels, the N bearer tunnels correspond to a group of IP addresses. Compared with the N bearer tunnels corresponding to N groups of IP addresses, IP resources can be saved, and This group of IP addresses only needs to be configured once, which is more efficient.
图8为网络设备的结构示意图。具体地,该网络设备可为上述方法实施例中的第一网络边缘设备、网络中间设备以及第二网络边缘设备中的任一个。该转发设备包括处理器301、存储器302和收发器303。处理器301、存储器302和收发器303通过线路互联。其中,存储器302用于存储程序指令和数据。处理器301以及收发器303用于执行图2和图4任一实施例所示的方法步骤。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 foregoing method embodiments. The forwarding device includes a
当所述网络设备为第一网络边缘设备时,收发器303用于执行步骤101以及步骤103。处理器301用于执行步骤102。处理器301用于执行步骤201至步骤202。当所述网络设备为网络中间设备时,收发器303用于执行接收业务报文的步骤以及步骤105。处理器301用于执行步骤104。当所述网络设备为第二网络边缘设备时,收发器303用于执行接收业务报文的步骤以及步骤108。处理器301用于执行步骤106和步骤107。When the network device is the first network edge device, the
图9为本申请实施例中传输业务报文的系统的实施例示意图。如图9所示,本申请实施例提供了一种传输业务报文的系统的一个实施例,包括:第一网络边缘设备100和第二网络边缘设备300。关于第一网络边缘设备100和第二网络边缘设备300的描述可以分别参照图8中的第一网络边缘设备和第二网络边缘设备的说明,在此不再赘述。FIG. 9 is a schematic diagram of an embodiment of a system for transmitting service packets in the embodiment of the present application. As shown in FIG. 9 , this embodiment of the present application provides an embodiment of a system for transmitting service packets, including: a first
可选地,系统还包括一个或多个网络中间设备200。在图9的示例中,网络中间设备200的数量为一个。网络中间设200备用于:根据第一入口时隙接收业务报文,该业务报文可以来自第一网络边缘设备100;根据预置的第一入口时隙和第二出口时隙的对应关系,确定第一入口时隙对应的第二出口时隙;根据第二出口时隙向下一跳设备发送业务报文。Optionally, the system further includes one or more network
需要说明的是,对网络中间设备的说明,可参照前述实施例中步骤104至105的相关说明,在此不再赘述。It should be noted that, for the description of the network intermediate device, reference may be made to the relevant description of steps 104 to 105 in the foregoing embodiments, and details are not repeated here.
可选地,第一网络边缘设备100还用于:根据预置的通信通道的属性自动建立与相邻的网络设备之间的通信通道,该通信通道可以用于运行建立子承载隧道所需要的协议,相邻的网络设备为第二网络边缘设备300或网络中间设备200;根据通信通道建立与相邻网络设备的之间的N条子承载隧道,N条子承载隧道的端口的IP地址与通信通道的属性中端口的IP地址相同,N条子承载隧道中的一条子承载隧道为第一网络边缘设备至第二网络边缘设备之间的承载隧道的一段,且指示第一网络边缘设备根据第一出口时隙向相邻网络设备发送业务报文,其中N为正整数。Optionally, the first
需要说明的是,针对上述第一网络边缘设备100的可选特性的描述可参照图5的相关说明,在此不再赘述。It should be noted that, for the description of the optional features of the above-mentioned first
本申请实施例还提供了一种数字处理芯片。该数字处理芯片中集成了用于实现上述实施例中处理器901的功能的电路和一个或者多个接口。当该数字处理芯片中集成了存储器时,该数字处理芯片可以完成前述实施例中的任一个或多个实施例的方法步骤。当该数字处理芯片中未集成存储器时,可以通过接口与外置的存储器连接。该数字处理芯片根据外置的存储器中存储的程序代码来实现上述实施例中控制设备或转发设备执行的动作。The embodiment of the present application also provides a digital processing chip. The digital processing chip integrates circuits and one or more interfaces for realizing the functions of the processor 901 in the above embodiments. When a memory is integrated in the digital processing chip, the digital processing chip can complete the method steps in any one or more of the foregoing embodiments. When the memory is not integrated in the digital processing chip, it can be connected to 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 code stored in the external memory.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The essence of the technical solution of this application or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products. The computer software products are stored in a storage medium, including several instructions. So that a computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes. .
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010109180.2ACN113300928B (en) | 2020-02-21 | 2020-02-21 | Method, equipment and system for transmitting service message |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010109180.2ACN113300928B (en) | 2020-02-21 | 2020-02-21 | Method, equipment and system for transmitting service message |
| Publication Number | Publication Date |
|---|---|
| CN113300928A CN113300928A (en) | 2021-08-24 |
| CN113300928Btrue CN113300928B (en) | 2023-01-13 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010109180.2AActiveCN113300928B (en) | 2020-02-21 | 2020-02-21 | Method, equipment and system for transmitting service message |
| Country | Link |
|---|---|
| CN (1) | CN113300928B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116419366A (en)* | 2021-12-30 | 2023-07-11 | 中国移动通信有限公司研究院 | Time slot selection method, device, system, equipment and storage medium |
| 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 |
| Publication number | Publication date |
|---|---|
| CN113300928A (en) | 2021-08-24 |
| Publication | Publication Date | Title |
|---|---|---|
| JP7520170B2 (en) | Packet processing method and apparatus, device and system | |
| CN110830352B (en) | A kind of VPN cross-domain realization method, device and border node | |
| CN111953604B (en) | A method and device for providing business services for business flows | |
| US9306855B2 (en) | System and method for using label distribution protocol (LDP) in IPv6 networks | |
| CN110912796B (en) | A communication method, device and system | |
| EP3742683A1 (en) | Method and apparatus for processing packet using unified sr label stack | |
| CN111726286A (en) | EVPN packet processing method, device and system | |
| US20120057599A1 (en) | System and Method for Virtual Private Local Area Network Service to Use the Flow Aware Pseudowire | |
| CN105553810A (en) | Method and device for forwarding special line service packet | |
| CN111213345B (en) | Apparatus, method and system for sending or receiving messages containing control information | |
| CN112583718A (en) | SRv6 message transmission method, system, equipment and medium in SRoU scene | |
| US7864748B2 (en) | Tunnelling TDM traffic over MPLS | |
| WO2022142905A1 (en) | Packet forwarding method and apparatus, and network system | |
| US11570087B2 (en) | Data routing in a customer-premises equipment using link aggregation | |
| US11895021B2 (en) | Message sending and receiving method, apparatus, and system | |
| CN112637237B (en) | Service encryption method, system, equipment and storage medium based on SRoU | |
| CN113300928B (en) | Method, equipment and system for transmitting service message | |
| CN112737951B (en) | End-to-end SR control method, system and readable storage medium in public and private network mixed scene | |
| JP4508238B2 (en) | Data transfer device | |
| JP4450069B2 (en) | Data transfer apparatus, method and system | |
| US20250106157A1 (en) | Method and apparatus for inter-communication between layer 2 and layer 3 vpns | |
| JP4111226B2 (en) | Communications system | |
| JP4535122B2 (en) | Data transfer apparatus, method and system | |
| WO2024255870A1 (en) | Information notification method and apparatus | |
| JP4957818B2 (en) | Data transfer device |
| 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 |