Movatterモバイル変換


[0]ホーム

URL:


CN110324225B - Method and device for processing message - Google Patents

Method and device for processing message
Download PDF

Info

Publication number
CN110324225B
CN110324225BCN201810271880.4ACN201810271880ACN110324225BCN 110324225 BCN110324225 BCN 110324225BCN 201810271880 ACN201810271880 ACN 201810271880ACN 110324225 BCN110324225 BCN 110324225B
Authority
CN
China
Prior art keywords
network node
node
tunnel
ring
network
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
CN201810271880.4A
Other languages
Chinese (zh)
Other versions
CN110324225A (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 LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN202011213066.0ApriorityCriticalpatent/CN112491687B/en
Priority to CN201810271880.4Aprioritypatent/CN110324225B/en
Publication of CN110324225ApublicationCriticalpatent/CN110324225A/en
Application grantedgrantedCritical
Publication of CN110324225BpublicationCriticalpatent/CN110324225B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

一种处理报文的方法及装置,所述方法应用于PTN网络系统中的控制器或网络节点,所述方法包括:控制器确定段路由SR隧道标签与FlexE隧道的映射关系,向所述第一网络节点发送所述映射关系,以便所述第一网络节点根据所述映射关系,通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的报文,其中,所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。通过FLexE隧道完成业务的承载,能够实现满足综合业务的独立调度和流量隔离的需求,也能提高降低业务时延。

Figure 201810271880

A method and apparatus for processing messages, the method being applied to a controller or network node in a PTN network system. The method comprises: the controller determining a mapping relationship between a segment routing (SR) tunnel label and a FlexE tunnel, and sending the mapping relationship to a first network node, so that the first network node, based on the mapping relationship, sends a message including the SR tunnel label to a second network node via the FlexE tunnel. The FlexE tunnel is an end-to-end FlexE tunnel deployed between the first and second network nodes. Carrying services through the FlexE tunnel can meet the requirements of independent scheduling and traffic isolation for integrated services, and can also improve and reduce service latency.

Figure 201810271880

Description

Translated fromChinese
一种处理报文的方法及装置A method and device for processing messages

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种处理报文的方法、装置及存储介质。The present application relates to the field of communication technologies, and in particular, to a method, an apparatus, and a storage medium for processing a message.

背景技术Background technique

在第五代移动通信技术(fifth-generation,5G)网络业务演进中,基于SR隧道承载三层虚拟专用网(layer 3virtual private network,L3VPN)业务的机制能够满足承载部分综合的5G网络业务需求,该机制包括基于流量工程的段路由(segment routing-traffic,SR-TE)隧道和基于尽力转发的段路由(segment routing-best effort,SR-BE)隧道两种机制,SR-TE隧道机制采用最外层邻接标签转发报文到对应的链路端口,SR-BE隧道机制基于内部网关协议(interior gateway protocol,IGP)协议规划最短转发路径,根据最外层节点标签转发报文到对应的链路端口。采用这两种机制就能够实现分组报文的转发,通过调整源节点封装的标签就能够调整业务路径和SR隧道重路由功能对不同类型业务流量对物理带宽的隔离、独立调度和综合业务承载。但是基于SR隧道的业务需要逐跳网络节点进行分组报文转发,但是受限于接入环的组网规模、光纤距离和网络节点的芯片能力,因此整体转发效率较低。其次,由于只能基于严格显示路径转发报文,且就近转发报文的路径较长,导致报文的转发时延增加。由此可见,目前的基于SR隧道承载L3VPN业务的机制不能满足转发面的网络分片应用,即并不能满足不同业务对带宽的完全隔离需求。In the evolution of fifth-generation (5G) network services, the mechanism of carrying Layer 3 virtual private network (L3VPN) services based on SR tunnels can meet the needs of carrying some comprehensive 5G network services. The mechanism includes two mechanisms: segment routing-traffic (SR-TE) tunnel based on traffic engineering and segment routing-best effort (SR-BE) tunnel based on best effort forwarding. The SR-TE tunnel mechanism adopts the most The outer layer adjacency label forwards the packet to the corresponding link port. The SR-BE tunnel mechanism plans the shortest forwarding path based on the interior gateway protocol (IGP) protocol, and forwards the packet to the corresponding link according to the outermost node label. port. By using these two mechanisms, packet forwarding can be achieved. By adjusting the label encapsulated by the source node, the service path and SR tunnel rerouting function can be used to isolate different types of service traffic from physical bandwidth, independent scheduling and integrated service bearing. However, services based on SR tunnels require hop-by-hop network node forwarding of packet packets, but are limited by the network scale of the access ring, the fiber distance, and the chip capabilities of network nodes, so the overall forwarding efficiency is low. Second, since packets can only be forwarded based on the strictly displayed path, and the path for forwarding packets is relatively long, the packet forwarding delay increases. It can be seen that the current mechanism for carrying L3VPN services based on SR tunnels cannot meet the network fragmentation application on the forwarding plane, that is, it cannot meet the complete isolation requirements of different services on bandwidth.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种处理报文的方法、装置及存储介质,能够解决现有技术中基于SR隧道承载L3VPN业务的机制进行综合的5G业务的移动承载网络的性能较低的问题。The present application provides a method, device and storage medium for processing messages, which can solve the problem of low performance of a mobile bearer network that integrates 5G services based on the mechanism of SR tunnel bearer L3VPN services in the prior art.

第一方面,本申请实施例提供一种处理报文的方法,该方法由分组传送网PTN网络系统中的控制器执行,所述汇聚式网络系统还包括第一网络节点和第二网络节点。该方法包括:In a first aspect, an embodiment of the present application provides a method for processing a packet, where the method is executed by a controller in a PTN network system of a packet transport network, and the converged network system further includes a first network node and a second network node. The method includes:

确定段路由SR隧道标签与FlexE隧道的映射关系。Determine the mapping between segment route SR tunnel labels and FlexE tunnels.

向所述第一网络节点发送所述映射关系,以便所述第一网络节点根据所述映射关系,通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的报文,其中,所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。sending the mapping relationship to the first network node, so that the first network node sends a packet including the SR tunnel label to the second network node through the FlexE tunnel according to the mapping relationship, wherein , the FlexE tunnel is an end-to-end FlexE tunnel deployed between the first network node and the second network node.

本申请实施例中,控制器确定SR隧道标签与FlexE隧道的映射关系后,将该映射关系下发给对应的第一网络节点,使得第一网络节点能够根据该映射关系确定的FlexE隧道向第二网络节点发送报文。通过FlexE隧道和SR隧道共同完成业务的承载,能够实现满足综合业务的独立调度和流量隔离的需求,也能降低业务时延。In this embodiment of the present application, after determining the mapping relationship between the SR tunnel label and the FlexE tunnel, the controller delivers the mapping relationship to the corresponding first network node, so that the first network node can forward the FlexE tunnel determined according to the mapping relationship to the first network node. Two network nodes send packets. Through the FlexE tunnel and the SR tunnel, the service is carried together, which can meet the requirements of independent scheduling and traffic isolation of comprehensive services, and can also reduce the service delay.

一些可能的设计中,本申请实施例中,所述第一网络节点与所述第二网络节点之间可以包括中间节点。例如,所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道可以是根据IGP可自动地建立节点1->节点2之间的FlexE隧道,也可以根据IGP可自动地建立节点1->节点3->节点4->节点2之间的FlexE隧道。In some possible designs, in this embodiment of the present application, an intermediate node may be included between the first network node and the second network node. For example, the end-to-end FlexE tunnel between the first network node and the second network node may be a FlexE tunnel between Node 1 -> Node 2 that can be automatically established according to IGP, or a FlexE tunnel that can be automatically established according to IGP Establish a FlexE tunnel between Node 1 -> Node 3 -> Node 4 -> Node 2.

一些可能的设计中,所述PTN网络系统包括接入环,其中,所述第一网络节点和所述第二网络节点均为所述接入环中的节点。通过为第一网络节点配置映射关系,使得在接入环内,第一网络节点能够通过映射的FlexE隧道与该接入环内的第二网络节点通信,从而降低同一个接入环内各节点之间的转发时延。In some possible designs, the PTN network system includes an access ring, wherein both the first network node and the second network node are nodes in the access ring. By configuring the mapping relationship for the first network node, in the access ring, the first network node can communicate with the second network node in the access ring through the mapped FlexE tunnel, thereby reducing the number of nodes in the same access ring. the forwarding delay between.

一些可能的设计中,所述PTN网络系统包括接入环和汇聚环,其中,所述第一网络节点为所述接入环中的节点,所述第二网络节点为所述汇聚环中的节点。通过为第一网络节点配置映射关系,使得在接入环内的第一网络节点能够通过映射的FlexE隧道与汇聚环内的第二网络节点通信,能够降低接入环到汇聚环之间的转发时延,保障业务的流畅性。In some possible designs, the PTN network system includes an access ring and an aggregation ring, wherein the first network node is a node in the access ring, and the second network node is a node in the aggregation ring. node. By configuring the mapping relationship for the first network node, the first network node in the access ring can communicate with the second network node in the aggregation ring through the mapped FlexE tunnel, which can reduce the forwarding between the access ring and the aggregation ring. Delay, to ensure the smoothness of business.

一些可能的设计中,所述PTN网络系统包括汇聚环和核心环,其中,所述第一网络节点为所述汇聚环中的节点,所述第二网络节点为所述核心环中的节点。可见,通过为第一网络节点配置映射关系,使得在汇聚环内的第一网络节点能够通过映射的FlexE隧道与核心环内的第二网络节点通信,能够降低汇聚环到核心环之间的转发时延,保障业务的流畅性。In some possible designs, the PTN network system includes an aggregation ring and a core ring, wherein the first network node is a node in the aggregation ring, and the second network node is a node in the core ring. It can be seen that by configuring the mapping relationship for the first network node, the first network node in the aggregation ring can communicate with the second network node in the core ring through the mapped FlexE tunnel, which can reduce the forwarding between the aggregation ring and the core ring. Delay, to ensure the smoothness of business.

一些可能的设计中,所述PTN网络系统包括第一接入环,第二接入环和汇聚环,所述第一网络节点为所述第一接入环中的节点,所述第二网络节点为所述汇聚环中的节点,所述报文的目的IP地址为所述第二接入环中的第三网络节点的IP地址,所述第一网络节点通过所述第二网络节点与所述第三网络节点通信。In some possible designs, the PTN network system includes a first access ring, a second access ring, and an aggregation ring, the first network node is a node in the first access ring, and the second network The node is a node in the aggregation ring, the destination IP address of the packet is the IP address of the third network node in the second access ring, and the first network node communicates with the second network node through the second network node. The third network node communicates.

其中,第二网络节点与第三网络节点之间通信时,第二网络节点可基于从控制器获取到的SR隧道标签与FlexE隧道之间的映射关系,先确定与SR隧道标签相映射的FlexE隧道,然后基于该FlexE隧道将报文转发给第三网络节点。第二网络节点与第三网络节点之间的通信方式可参考第一网路节点与第二网络节点之间的通信方式,也可以采用其它的通信方式,本申请不作限定。Wherein, when the second network node communicates with the third network node, the second network node may first determine the FlexE tunnel mapped to the SR tunnel label based on the mapping relationship between the SR tunnel label and the FlexE tunnel obtained from the controller. tunnel, and then forward the packet to the third network node based on the FlexE tunnel. For the communication mode between the second network node and the third network node, reference may be made to the communication mode between the first network node and the second network node, and other communication modes may also be used, which are not limited in this application.

可见,通过为第一网络节点配置映射关系,使得在接入环内的第一网络节点能够通过映射的FlexE隧道与汇聚环内的第二网络节点通信,从而降低接入环到汇聚环之间的转发时延。另外,报文发给第二网络节点后,第二网络节点再通过相映射的FlexE隧道将报文发给第三网络节点,从而实现在不同接入环内的网络节点之间的通信,同时也降低不同接入环内的网络节点之间的转发时延。It can be seen that by configuring the mapping relationship for the first network node, the first network node in the access ring can communicate with the second network node in the aggregation ring through the mapped FlexE tunnel, thereby reducing the distance between the access ring and the aggregation ring. forwarding delay. In addition, after the packet is sent to the second network node, the second network node sends the packet to the third network node through the mapped FlexE tunnel, thereby realizing communication between network nodes in different access rings, and at the same time It also reduces the forwarding delay between network nodes in different access rings.

一些可能的设计中,所述SR隧道标签为基于尽力转发的段路由SR-BE隧道标签。In some possible designs, the SR tunnel label is a segment routing SR-BE tunnel label based on best effort forwarding.

例如,第一网络节点和第二网络节点均为同一个接入环内的节点时,所述SR-BE隧道标签为所述第二网络节点的节点标签。For example, when both the first network node and the second network node are nodes in the same access ring, the SR-BE tunnel label is the node label of the second network node.

又例如,第一网络节点、第二网络节点分别为接入环、汇聚环内的节点时,所述SR-BE隧道标签为所述第二网络节点的节点标签。For another example, when the first network node and the second network node are nodes in the access ring and the aggregation ring, respectively, the SR-BE tunnel label is the node label of the second network node.

又例如,第一网络节点、第二网络节点、第三网络节点分别依次位于第一接入环、汇聚环、第二接入环时(即第一网络节点通过第二网络节点与第三网络节点通信时),报文在第一网络节点与第二网络节点之间传输时,所述SR-BE隧道标签为所述第二网络节点的节点标签;报文在第二网络节点与第三网络节点之间传输时,所述SR-BE隧道标签为所述第三网络节点的节点标签。For another example, when the first network node, the second network node, and the third network node are located in the first access ring, the aggregation ring, and the second access ring, respectively (that is, the first network node communicates with the third network through the second network node node communication), when the message is transmitted between the first network node and the second network node, the SR-BE tunnel label is the node label of the second network node; the message is transmitted between the second network node and the third network node. During transmission between network nodes, the SR-BE tunnel label is the node label of the third network node.

可选的,所述SR隧道标签为SR-BE隧道标签时,与所述SR隧道标签相映射的FlexE隧道可以承载第一业务,第一业务可包括不同基站之间的流量互通的业务,例如为eX2业务。Optionally, when the SR tunnel label is an SR-BE tunnel label, the FlexE tunnel mapped with the SR tunnel label can carry a first service, and the first service can include traffic interworking between different base stations, for example For eX2 business.

一些可能的设计中,所述SR隧道标签为基于流量工程的段路由SR-TE隧道标签。In some possible designs, the SR tunnel label is a segment routing SR-TE tunnel label based on traffic engineering.

可选的,所述SR-TE隧道标签为SR-TE隧道标签栈的最外层邻接标签。基于SR-TE隧道标签栈的最外层邻接标签将报文映射到FlexE隧道的方案,可以减少SR-TE隧道标签封装的标签数量,进而提高报文的整体封装效率,也可提升系统转发性能和MTU支持的最大规格;同时可以实现业务绝对隔离,同时降低端到端传输时延。Optionally, the SR-TE tunnel label is the outermost adjacent label of the SR-TE tunnel label stack. The solution of mapping packets to FlexE tunnels based on the outermost adjacency label of the SR-TE tunnel label stack can reduce the number of labels encapsulated in SR-TE tunnel labels, thereby improving the overall packet encapsulation efficiency and improving system forwarding performance. and the maximum specification supported by MTU; at the same time, it can achieve absolute isolation of services and reduce end-to-end transmission delay.

可选的,所述SR隧道标签为SR-TE隧道标签时,所述报文对应的业务为第二业务,所述第二业务包括基站与核心网之间的流量互通的业务,例如为S1业务。Optionally, when the SR tunnel label is an SR-TE tunnel label, the service corresponding to the packet is a second service, and the second service includes a service for interworking traffic between the base station and the core network, such as S1 business.

一些可能的设计中,控制器还可以建立不同SR隧道标签与相同FlexE隧道之间的映射关系,从而将将至少两个业务对应的SR-TE隧道均映射到相同的FlexE隧道。通过这种方式,能够实现同一FlexE隧道承载不同的业务,同时还可以实现不同业务之间的隔离。In some possible designs, the controller may also establish a mapping relationship between different SR tunnel labels and the same FlexE tunnel, so as to map the SR-TE tunnels corresponding to at least two services to the same FlexE tunnel. In this way, the same FlexE tunnel can carry different services, and at the same time, different services can be isolated.

例如,若同时部署第一S1业务和第二S1业务,分别为第一S1业务和第二S1业务部署不同的SR-TE隧道,将第一S1业务和第二S1业务部署的SR-TE隧道均映射到相同FlexE隧道。通过这种方式,能够实现同一FlexE隧道承载不同的S1业务,同时还可以实现不同S1业务之间的隔离。For example, if the first S1 service and the second S1 service are deployed at the same time, different SR-TE tunnels are respectively deployed for the first S1 service and the second S1 service, and the SR-TE tunnels for the first S1 service and the second S1 service are deployed are mapped to the same FlexE tunnel. In this way, the same FlexE tunnel can be implemented to carry different S1 services, and at the same time, the isolation between different S1 services can be implemented.

一些可能的设计中,汇聚环内的节点对应的FlexE隧道的带宽根据所述汇聚环节点待接入的基站数量、所述接入环到所述汇聚环的带宽收敛比得到。不需要为每个业务规划固定的FlexE隧道带宽,也能够实现带宽复用。In some possible designs, the bandwidth of the FlexE tunnel corresponding to the node in the aggregation ring is obtained according to the number of base stations to be accessed by the aggregation ring node and the bandwidth convergence ratio from the access ring to the aggregation ring. There is no need to plan a fixed FlexE tunnel bandwidth for each service, and bandwidth multiplexing can also be implemented.

一些可能的设计中,所述接入环内的各节点分别对应不同的IGP域;所述汇聚环内的节点对应的IGP域,与所述核心环内的节点对应的IGP域相同。通过划分IGP域的方式在汇聚环节点对L3VPN进行分层,能够避免L3VPN域规模过大,进而避免接入环之间相互扩散路由,降低接入环节点之间的运维复杂度。In some possible designs, each node in the access ring corresponds to a different IGP domain; the IGP domain corresponding to the node in the aggregation ring is the same as the IGP domain corresponding to the node in the core ring. By dividing the IGP domain, the L3VPN is layered at the aggregation point, which can avoid the L3VPN domain from being too large, thereby avoiding the mutual diffusion of routes between the access rings, and reducing the complexity of operation and maintenance between the access ring points.

第二方面,本申请实施例提供一种处理报文的方法,所述方法由分组传送网PTN网络系统中包括的第一网络节点执行,所述PTN网络系统还包括第二网络节点,其特征在于,所述方法包括:In a second aspect, an embodiment of the present application provides a method for processing a packet. The method is executed by a first network node included in a PTN network system of a packet transport network, and the PTN network system further includes a second network node. That is, the method includes:

获取包括SR隧道标签的报文;Obtain the packet including the SR tunnel label;

基于所述SR隧道标签与灵活以太网FlexE隧道之间的映射关系,确定与所述SR隧道标签相映射的所述FlexE隧道。Based on the mapping relationship between the SR tunnel label and the flexible Ethernet FlexE tunnel, the FlexE tunnel mapped with the SR tunnel label is determined.

通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的所述报文,其中,所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。Send the packet including the SR tunnel label to the second network node through the FlexE tunnel, where the FlexE tunnel is a network node deployed between the first network node and the second network node End-to-end FlexE tunnel.

本申请实施例中,第一网络节点在转发所述报文时,可基于SR隧道标签与FlexE隧道之间的映射关系确定出与所述SR隧道标签相映射的FlexE隧道,然后就可以通过映射得到的FlexE隧道转发所述报文。可见,通过FLexE隧道和SR隧道共同完成业务的承载,能够实现满足综合业务的独立调度和流量隔离的需求,也能降低业务时延。In this embodiment of the present application, when forwarding the packet, the first network node may determine the FlexE tunnel mapped to the SR tunnel label based on the mapping relationship between the SR tunnel label and the FlexE tunnel, and then the mapping The obtained FlexE tunnel forwards the packet. It can be seen that the FLexE tunnel and the SR tunnel jointly complete the service bearing, which can meet the needs of independent scheduling and traffic isolation of comprehensive services, and can also reduce the service delay.

在一些可能的设计中,所述获取包括SR隧道标签的报文,包括:In some possible designs, the obtaining the packet including the SR tunnel label includes:

接收第一报文,所述第一报文携带目的互联网协议IP地址。A first packet is received, where the first packet carries a destination Internet Protocol IP address.

根据所述目的IP地址,在所述第一报文中封装段路由SR隧道标签,得到包括所述SR隧道标签的第二报文。According to the destination IP address, a segment routing SR tunnel label is encapsulated in the first packet to obtain a second packet including the SR tunnel label.

在一些可能的设计中,所述PTN网络系统还包括控制器,在获取包括段路由SR隧道标签的报文之前,所述方法还包括:In some possible designs, the PTN network system further includes a controller, and before acquiring the packet including the segment route SR tunnel label, the method further includes:

接收所述控制器发送的所述映射关系。该映射关系用于第一网络节点确定与SR隧道标签相映射的FlexE隧道,然后通过确定的FlexE隧道转发报文到下一跳网络节点。The mapping relationship sent by the controller is received. The mapping relationship is used for the first network node to determine the FlexE tunnel mapped with the SR tunnel label, and then forward the packet to the next-hop network node through the determined FlexE tunnel.

在一些可能的设计中,所述PTN网络系统包括接入环,其中,所述第一网络节点和所述第二网络节点均为所述接入环中的节点。可见,通过为第一网络节点配置映射关系,使得在接入环内,第一网络节点能够通过映射的FlexE隧道与该接入环内的第二网络节点通信,从而降低同一个接入环内各节点之间的转发时延。In some possible designs, the PTN network system includes an access ring, wherein both the first network node and the second network node are nodes in the access ring. It can be seen that by configuring the mapping relationship for the first network node, in the access ring, the first network node can communicate with the second network node in the access ring through the mapped FlexE tunnel, thereby reducing the number of internal connections in the same access ring. Forwarding delay between nodes.

在一些可能的设计中,所述PTN网络系统包括接入环和汇聚环,其中,所述第一网络节点为所述接入环中的节点,所述第二网络节点为所述汇聚环中的节点。可见,在接入环内的第一网络节点能够基于上述映射关系确定对应的FlexE隧道,通过映射的FlexE隧道与汇聚环内的第二网络节点通信,能够降低接入环到汇聚环之间的转发时延,保障业务的流畅性。In some possible designs, the PTN network system includes an access ring and an aggregation ring, wherein the first network node is a node in the access ring, and the second network node is a node in the aggregation ring node. It can be seen that the first network node in the access ring can determine the corresponding FlexE tunnel based on the above mapping relationship, and communicate with the second network node in the aggregation ring through the mapped FlexE tunnel, which can reduce the time between the access ring and the aggregation ring. Forwarding delay to ensure business fluency.

在一些可能的设计中,所述PTN网络系统还包括汇聚环和核心环,其中,所述第一网络节点为所述汇聚环中的节点,所述第二网络节点为所述核心环中的节点。可见,在汇聚环内的第一网络节点能够基于上述映射关系确定对应的FlexE隧道,通过映射的FlexE隧道与核心环内的第二网络节点通信,能够降低汇聚环到核心环之间的转发时延,保障业务的流畅性。In some possible designs, the PTN network system further includes an aggregation ring and a core ring, wherein the first network node is a node in the aggregation ring, and the second network node is a node in the core ring node. It can be seen that the first network node in the aggregation ring can determine the corresponding FlexE tunnel based on the above mapping relationship, and communicate with the second network node in the core ring through the mapped FlexE tunnel, which can reduce the forwarding time between the aggregation ring and the core ring. to ensure the smoothness of business.

在一些可能的设计中,所述PTN网络系统包括第一接入环,第二接入环和汇聚环,所述第一网络节点为所述第一接入环中的节点,所述第二网络节点为所述汇聚环中的节点,所述第一报文的目的IP地址为所述第二接入环中的第三网络节点的IP地址,所述第一网络节点通过所述第二网络节点与所述第三网络节点通信。In some possible designs, the PTN network system includes a first access ring, a second access ring and an aggregation ring, the first network node is a node in the first access ring, the second access ring The network node is a node in the aggregation ring, the destination IP address of the first packet is the IP address of a third network node in the second access ring, and the first network node passes through the second A network node communicates with the third network node.

可见,在接入环内的第一网络节点能够基于上述映射关系确定对应的FlexE隧道,通过映射的FlexE隧道与汇聚环内的第二网络节点通信,从而降低接入环到汇聚环之间的转发时延。另外,第二报文发给第二网络节点后,第二网络节点再通过相映射的FlexE隧道将报文发给第三网络节点,从而实现在不同接入环内的网络节点之间的通信,同时也降低不同接入环内的网络节点之间的转发时延。由此可见,本申请实施例不需要为第二业务(例如eX2业务)在第一接入环和第二接入环之间建立全互联的FLexE隧道1,也能够实现跨接入环的第二业务,进而减少跨接入环之间的FlexE隧道配置和管理,也降低整个接入环的组网复杂度,便于管理。It can be seen that the first network node in the access ring can determine the corresponding FlexE tunnel based on the above mapping relationship, and communicate with the second network node in the aggregation ring through the mapped FlexE tunnel, thereby reducing the time between the access ring and the aggregation ring. forwarding delay. In addition, after the second packet is sent to the second network node, the second network node sends the packet to the third network node through the mapped FlexE tunnel, thereby implementing communication between network nodes in different access rings , and also reduces the forwarding delay between network nodes in different access rings. It can be seen that the embodiment of the present application does not need to establish a fully interconnected FLexE tunnel 1 between the first access ring and the second access ring for the second service (for example, the eX2 service), and can also realize the first cross-access ring. Two services, thereby reducing the configuration and management of FlexE tunnels across access rings, reducing the networking complexity of the entire access ring, and facilitating management.

在一些可能的设计中,所述SR隧道标签为基于尽力转发的段路由SR-BE隧道标签。In some possible designs, the SR tunnel label is a segment routing SR-BE tunnel label based on best effort forwarding.

例如,第一网络节点和第二网络节点均为同一个接入环内的节点时,所述SR-BE隧道标签为所述第二网络节点的节点标签。第一网络节点可以根据第二网络节点的节点标签与FlexE隧道1的映射关系,将所述第二报文映射到所述第一网络节点与所述第二网络节点之间的端到端FlexE隧道1,从而实现报文的转发。For example, when both the first network node and the second network node are nodes in the same access ring, the SR-BE tunnel label is the node label of the second network node. The first network node can map the second packet to the end-to-end FlexE between the first network node and the second network node according to the mapping relationship between the node label of the second network node and the FlexE tunnel 1 Tunnel 1 is used to forward packets.

又例如,第一网络节点、第二网络节点分别为接入环、汇聚环内的节点时,所述SR-BE隧道标签为所述第二网络节点的节点标签。第一网络节点可以根据第二网络节点的节点标签与FlexE隧道1的映射关系,将所述第二报文映射到所述第一网络节点与所述第二网络节点之间的端到端FlexE隧道1,从而实现报文的转发。For another example, when the first network node and the second network node are nodes in the access ring and the aggregation ring, respectively, the SR-BE tunnel label is the node label of the second network node. The first network node can map the second packet to the end-to-end FlexE between the first network node and the second network node according to the mapping relationship between the node label of the second network node and the FlexE tunnel 1 Tunnel 1 is used to forward packets.

又例如,第一网络节点、第二网络节点、第三网络节点分别依次位于第一接入环、汇聚环、第二接入环时(即第一网络节点通过第二网络节点与第三网络节点通信时),报文在第一网络节点与第二网络节点之间传输时,所述SR-BE隧道标签为所述第二网络节点的节点标签;报文在第二网络节点与第三网络节点之间传输时,所述SR-BE隧道标签为所述第三网络节点的节点标签。For another example, when the first network node, the second network node, and the third network node are located in the first access ring, the aggregation ring, and the second access ring, respectively (that is, the first network node communicates with the third network through the second network node node communication), when the message is transmitted between the first network node and the second network node, the SR-BE tunnel label is the node label of the second network node; the message is transmitted between the second network node and the third network node. During transmission between network nodes, the SR-BE tunnel label is the node label of the third network node.

可选的,所述SR隧道标签为SR-BE隧道标签时,与所述SR隧道标签相映射的FlexE隧道可以承载第一业务,第一业务可包括不同基站之间的流量互通的业务,例如为eX2业务。Optionally, when the SR tunnel label is an SR-BE tunnel label, the FlexE tunnel mapped with the SR tunnel label can carry a first service, and the first service can include traffic interworking between different base stations, for example For eX2 business.

在一些可能的设计中,所述SR隧道标签为基于流量工程的段路由SR-TE隧道标签。In some possible designs, the SR tunnel label is a segment routing SR-TE tunnel label based on traffic engineering.

可选的,所述SR-TE隧道标签为SR-TE隧道标签栈的最外层邻接标签。基于SR-TE隧道标签栈的最外层邻接标签将报文映射到FlexE隧道的方案,可以减少SR-TE隧道标签封装的标签数量,进而提高报文的整体封装效率,也可提升系统转发性能和MTU支持的最大规格;同时可以隔离不同业务、降低端到端的传输时延。Optionally, the SR-TE tunnel label is the outermost adjacent label of the SR-TE tunnel label stack. The solution of mapping packets to FlexE tunnels based on the outermost adjacency label of the SR-TE tunnel label stack can reduce the number of labels encapsulated in SR-TE tunnel labels, thereby improving the overall packet encapsulation efficiency and improving system forwarding performance. and the maximum specification supported by MTU; at the same time, it can isolate different services and reduce end-to-end transmission delay.

在一些可能的设计中,第一网络节点可为转发报文的中间节点,也可以是转发报文的源节点。若第一网络节点为PTN网络系统中转发报文的源节点时,第一网络节点接收报文后,还可以对所述第一报文添加第一SR-TE隧道标签栈,得到第二报文,该第一SR-TE隧道标签栈用于将所述第二报文从所述接入环发送到所述汇聚环。可见,仅在作为源节点的第一网络节点增加所有转发路径的邻接或节点标签,中间节点除粘连标签,不会再增加任何标签。每个环内,只配置在该环内的标签,不需要在接入环的源节点为整个系统的标签全部配置,这样就可以减少在接入环内的标签数量,同时提高报文在接入环的封装效率。In some possible designs, the first network node may be an intermediate node that forwards the packet, or may be a source node that forwards the packet. If the first network node is the source node that forwards the packet in the PTN network system, after receiving the packet, the first network node may add the first SR-TE tunnel label stack to the first packet to obtain the second packet message, the first SR-TE tunnel label stack is used to send the second message from the access ring to the aggregation ring. It can be seen that the adjacency or node labels of all forwarding paths are only added to the first network node serving as the source node, and the intermediate nodes will not add any labels except for the sticky labels. In each ring, only the labels in the ring are configured, and it is not necessary to configure all the labels of the whole system at the source node of the access ring. This can reduce the number of labels in the access ring, and improve the transmission rate of packets. Encapsulation efficiency into the ring.

例如,第一网络节点为接入环中的节点,第二网络节点为汇聚环中的节点。第二报文从第一网络节点转发到第二网络节点的过程中,若源节点与汇聚环节点之间存在其他中间节点,那么在接入环内转发第二报文时,基于FlexE隧道1转发报文可包括下述两种实施方式:一种实施方式中,作为源节点的第一网络节点根据所述第二报文当前的最外层邻接标签,将该报文映射到与最外层邻接标签对应的FlexE隧道1,待报文达到中间节点时,中间节点无需基于L3VPN对第二报文进行分组处理,直接通过FlexE隧道1转发到达汇聚环中的第二网络节点。在报文达到第二网络节点时,第二网络节点移除第二报文的第一SR-TE隧道标签栈。同理,第二网络节点需要在该第二报文中添加第二SR-TE隧道标签栈,第二网络节点根据所述第二报文的最外层邻接标签,通过相映射的FlexE隧道2转发所述第二报文,第二网络节点转发第二报文的操作与第一网络节点相同,不作赘述。另一种实施方式中,作为源节点的第一网络节点可移除所述第二报文当前的最外层邻接标签,将该第二报文映射到对应的FlexE隧道1,待第二报文达到中间节点时,中间节点同样移除所述第二报文当前的最外层邻接标签,直至第二报文到达汇聚环中的第二网络节点。在第二报文达到第二网络节点时,第二报文的第一SR-TE隧道标签栈已全部被移除。同理,第二网络节点需要在该报文中添加第二SR-TE隧道标签栈,第二网络节点移除所述第二报文的最外层邻接标签,通过映射的FlexE隧道2转发所述第二报文,第二网络节点转发第二报文的操作与第一网络节点相同,不作赘述。For example, the first network node is a node in the access ring, and the second network node is a node in the aggregation ring. During the process of forwarding the second packet from the first network node to the second network node, if there are other intermediate nodes between the source node and the aggregation ring node, the second packet is forwarded in the access ring based on FlexE tunnel 1 Forwarding the packet may include the following two implementations: In one implementation, the first network node as the source node maps the second packet to the outermost adjacency label according to the current outermost adjacency label of the second packet. FlexE tunnel 1 corresponding to the layer adjacency label, when the packet reaches the intermediate node, the intermediate node does not need to process the second packet based on L3VPN, and directly forwards the packet through FlexE tunnel 1 to the second network node in the aggregation ring. When the packet reaches the second network node, the second network node removes the first SR-TE tunnel label stack of the second packet. Similarly, the second network node needs to add a second SR-TE tunnel label stack to the second packet, and the second network node passes the mapped FlexE tunnel 2 according to the outermost adjacency label of the second packet. For forwarding the second packet, the operation of the second network node to forward the second packet is the same as that of the first network node, which will not be repeated. In another implementation manner, the first network node serving as the source node may remove the current outermost adjacency label of the second packet, map the second packet to the corresponding FlexE tunnel 1, and wait for the second packet When the message reaches the intermediate node, the intermediate node also removes the current outermost adjacency label of the second message until the second message reaches the second network node in the aggregation ring. When the second packet reaches the second network node, the first SR-TE tunnel label stack of the second packet has been completely removed. Similarly, the second network node needs to add a second SR-TE tunnel label stack to the packet, the second network node removes the outermost adjacency label of the second packet, and forwards the packet through the mapped FlexE tunnel 2. Referring to the second packet, the operation of the second network node to forward the second packet is the same as that of the first network node, and details are not repeated here.

可选的,当所述SR隧道标签为SR-TE隧道标签时,所述第二报文对应的业务可为第二业务,所述第二业务包括基站与核心网之间的流量互通的业务,例如为S1业务。Optionally, when the SR tunnel label is an SR-TE tunnel label, the service corresponding to the second packet may be a second service, and the second service includes a service for traffic interworking between the base station and the core network , for example, S1 service.

第三方面,本申请实施例提供了一种控制器,用于执行上述第一方面或第一方面中任意可能的设计中的方法。具体地,该控制器可包括用于执行上述第一方面或第一方面中任意可能的设计中的方法的模块。In a third aspect, an embodiment of the present application provides a controller, configured to execute the method in the first aspect or any possible design of the first aspect. In particular, the controller may include means for performing the method in the first aspect or any possible design of the first aspect described above.

第四方面,本申请实施例提供了一种网络节点,用于执行上述第二方面或第二方面中任意可能的设计中的方法。具体地,该网络节点可包括用于执行上述第二方面或第二方面中任意可能的设计中的方法的模块。In a fourth aspect, an embodiment of the present application provides a network node configured to execute the method in the second aspect or any possible design of the second aspect. In particular, the network node may comprise means for performing the method in the second aspect or any possible design of the second aspect above.

第五方面,本申请实施例提供了一种用于处理报文的通信装置,其包括处理器、存储器、收发器和总线,处理器、存储器和收发器通过总线相连。其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码来执行第一方面中由控制器所执行的操作,或者执行第二方面中由网络节点所执行的操作。In a fifth aspect, an embodiment of the present application provides a communication device for processing a message, which includes a processor, a memory, a transceiver, and a bus, where the processor, the memory, and the transceiver are connected through the bus. Wherein, the memory is used for storing program codes, and the processor is used for calling the program codes in the memory to perform the operations performed by the controller in the first aspect, or perform the operations performed by the network node in the second aspect operate.

其中,该收发器也可以用接收器和发送器代替,可以为相同或者不同的物理实体。为相同的物理实体时,可以统称为收发器。所述存储器可以集成在所述处理器中,也可以与所述处理器分开设置。The transceiver may also be replaced by a receiver and a transmitter, which may be the same or different physical entities. When they are the same physical entity, they can be collectively referred to as transceivers. The memory may be integrated in the processor, or may be provided separately from the processor.

第六方面,本申请实施例提供了一种用于处理报文的通信装置,其包括处理器、存储器、收发器和总线,处理器、存储器和收发器通过总线相连。其中,所述存储器用于存储程序代码,所述处理器用于调用所述存储器中的程序代码来执行第二方面中由网络节点所执行的操作。In a sixth aspect, an embodiment of the present application provides a communication device for processing a message, which includes a processor, a memory, a transceiver, and a bus, where the processor, the memory, and the transceiver are connected through the bus. Wherein, the memory is used for storing program code, and the processor is used for calling the program code in the memory to perform the operation performed by the network node in the second aspect.

其中,该收发器也可以用接收器和发送器代替,可以为相同或者不同的物理实体。为相同的物理实体时,可以统称为收发器。所述存储器可以集成在所述处理器中,也可以与所述处理器分开设置。The transceiver may also be replaced by a receiver and a transmitter, which may be the same or different physical entities. When they are the same physical entity, they can be collectively referred to as transceivers. The memory may be integrated in the processor, or may be provided separately from the processor.

第七方面,本申请实施例提供了一种通信系统,该通信系统包括第三方面中所述的控制器和第四方面中所述的网络节点;或者,该通信系统包括第五方面中所述的通信装置和第六方面中所述的通信装置。In a seventh aspect, an embodiment of the present application provides a communication system, where the communication system includes the controller described in the third aspect and the network node described in the fourth aspect; or, the communication system includes the communication system described in the fifth aspect The communication device described above and the communication device described in the sixth aspect.

第八方面,本申请实施例提供了一种计算机存储介质,其包括指令,当其在计算机上运行时,使得计算机执行上述第一方面中由控制器执行的操作,或者执行上述第二方面中由网络节点执行的操作。In an eighth aspect, an embodiment of the present application provides a computer storage medium, which includes instructions, which when run on a computer, cause the computer to perform the operations performed by the controller in the first aspect above, or perform the operations performed in the second aspect above. An operation performed by a network node.

附图说明Description of drawings

图1为现有机制中PTN网络系统架构的一种示意图;1 is a schematic diagram of a PTN network system architecture in an existing mechanism;

图2为本申请实施例中PTN网络系统架构的一种示意图;2 is a schematic diagram of a PTN network system architecture in an embodiment of the application;

图3为本申请实施例中处理报文的方法的一种流程示意图;3 is a schematic flowchart of a method for processing a message in an embodiment of the present application;

图4a为本申请实施例中eX2业务报文和S1业务报文转发的一种流程示意图;FIG. 4a is a schematic flowchart of the forwarding of the eX2 service message and the S1 service message in the embodiment of the application;

图4b为本申请实施例中eX2业务报文和S1业务报文转发的一种流程示意图;FIG. 4b is a schematic flowchart of the forwarding of the eX2 service message and the S1 service message in the embodiment of the application;

图5为本申请实施例中eX2业务报文转发的一种流程示意图;FIG. 5 is a schematic flowchart of eX2 service message forwarding in the embodiment of the application;

图6为本申请实施例中控制器的一种结构示意图;6 is a schematic structural diagram of a controller in an embodiment of the application;

图7为本申请实施例中网络节点的一种结构示意图;FIG. 7 is a schematic structural diagram of a network node in an embodiment of the application;

图8为本申请实施例中用于处理报文的通信装置的一种结构示意图。FIG. 8 is a schematic structural diagram of a communication apparatus for processing a message in an embodiment of the present application.

具体实施方式Detailed ways

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块,本申请中所出现的模块的划分,仅仅是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个模块可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块之间的间接耦合或通信连接可以是电性或其他类似的形式,本申请中均不作限定。并且,作为分离部件说明的模块或子模块可以是也可以不是物理上的分离,可以是也可以不是物理模块,或者可以分布到多个电路模块中,可以根据实际的需要选择其中的部分或全部模块来实现本申请方案的目的。The terms "first", "second" and the like in the description 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 order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or modules is not necessarily limited to those expressly listed Those steps or modules, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products or devices, the division of modules appearing in this application is only a logical division , in practical applications, there may be other division methods, for example, multiple modules may be combined or integrated in another system, or some features may be ignored or not implemented, in addition, the displayed or discussed mutual Coupling or direct coupling or communication connection may be through some interfaces, and indirect coupling or communication connection between modules may be electrical or other similar forms, which are not limited in this application. In addition, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed into multiple circuit modules, and some or all of them may be selected according to actual needs. module to achieve the purpose of the solution of this application.

本申请供了一种处理报文的方法、装置及存储介质,可用于网络业务,例如用于5G网络业务向综合业务的演进,可以满足5G网络业务(例如增强型移动宽带、大规模机器通信和高可靠低时延通信等)、集客专线和家宽业务等综合业务的承载。以下进行详细说明。如图1所示的分组数据网(packet transport network,PTN)网络系统架构示意图,该PTN网络系统包括控制器(本申请的PTN网络系统结构中未列出)、接入环、汇聚环和核心环等PTN网络链路。该PTN网络系统中包括两个接入环,一个接入环包括节点A、B、C、D和E,另一个接入环包括节点D、E和J。汇聚环包括节点D、E、F和G。核心环包括节点F、G、H和I。该PTN网络系统主要承载5G的第一业务和第二业务,也可以承载其它类型的业务,具体本申请不作限定。为便于表述,节点A可简化为A,其他节点同理,不作赘述。其中,本申请所述的第一业务是指5G基站和核心网之间的流量互通的业务,例如为S1业务。本申请所述的第二业务是指不同5G基站之间的流量互通的业务,例如为eX2业务。为便于引用,本申请实施例中,可将接入环内的网络节点简称为接入环节点,汇聚环内的网络节点称为汇聚环节点,核心环内的网络节点称为核心环节点。This application provides a method, device and storage medium for processing messages, which can be used for network services, such as the evolution of 5G network services to integrated services, and can meet the requirements of 5G network services (such as enhanced mobile broadband, large-scale machine communication and high-reliability and low-latency communication, etc.), inbound private lines and home broadband services and other integrated services. A detailed description will be given below. As shown in FIG. 1 , a schematic diagram of the architecture of a packet transport network (PTN) network system includes a controller (not listed in the PTN network system architecture of this application), an access ring, an aggregation ring, and a core. Ring and other PTN network links. The PTN network system includes two access rings, one access ring includes nodes A, B, C, D and E, and the other access ring includes nodes D, E and J. The aggregation ring includes nodes D, E, F and G. The core ring includes nodes F, G, H and I. The PTN network system mainly carries the first service and the second service of 5G, and may also carry other types of services, which are not specifically limited in this application. For ease of expression, node A can be simplified as A, and the same is true for other nodes, which will not be repeated. Wherein, the first service mentioned in this application refers to the service of traffic intercommunication between the 5G base station and the core network, for example, the S1 service. The second service mentioned in this application refers to the service of traffic intercommunication between different 5G base stations, such as eX2 service. For ease of reference, in the embodiments of the present application, the network nodes in the access ring may be referred to as access ring nodes for short, the network nodes in the aggregation ring are referred to as aggregation ring nodes, and the network nodes in the core ring are referred to as core ring nodes.

基于图1所示的PTN网络系统,在接入环内部署端到端的L3VPN业务(例如eX2业务),例如部署节点A->B的L3VPN业务,节点C->A的eX2业务,以及部署节点A->B->D->F->H的S1业务。举例来说,部署节点C->A的eX2业务时,源节点C在报文中增加目的节点标签A,报文经过每个节点时,接收到报文的节点都会根据最外层节点标签将报文就近转发到对应的端口。基于SR隧道的业务需要逐跳网络节点进行分组报文转发,但是受限于接入环的组网规模、光纤距离和网络节点的芯片能力,因此整体转发效率较低。例如部署A->B->D->F->H的S1业务时,节点A是基于相邻链路分配邻接标签,例如节点A在报文中增加邻接标签J,K,L和M。报文经过每个节点时,接收到报文的节点会根据最外层邻接标签转发到对应的链路端口,并剥离最外层邻接标签。只能基于严格显示路径转发报文,且就近转发报文的路径较长,导致报文的转发时延增加。虽然该PTN网络系统能够通过调整源节点封装的标签调整业务路径和SR隧道重路由功能对不同类型业务流量,实现对业务流量进行物理带宽的隔离和调度,基于SR隧道转发报文的时延较高,所以不能同时满足综合业务的独立调度、流量隔离和低时延的需求。为解决上述技术问题,本申请主要提供以下技术方案:Based on the PTN network system shown in Figure 1, deploy end-to-end L3VPN services (such as eX2 services) in the access ring, such as deploying the L3VPN service of node A->B, the eX2 service of node C->A, and the deployment node The S1 service of A->B->D->F->H. For example, when deploying the eX2 service of node C->A, the source node C adds the destination node label A to the message. When the message passes through each node, the node that receives the message will send the message according to the outermost node label. The packet is forwarded to the nearest port. SR tunnel-based services require hop-by-hop network nodes to forward packet packets, but are limited by the network scale of the access ring, the fiber distance, and the chip capabilities of network nodes, so the overall forwarding efficiency is low. For example, when deploying the S1 service of A->B->D->F->H, node A allocates adjacency labels based on adjacent links. For example, node A adds adjacency labels J, K, L, and M to the packet. When a packet passes through each node, the node that receives the packet forwards the packet to the corresponding link port according to the outermost adjacency label, and strips the outermost adjacency label. Packets can only be forwarded based on the strictly displayed path, and the nearest path for forwarding packets is long, which increases the packet forwarding delay. Although the PTN network system can adjust the service path by adjusting the label encapsulated by the source node and the SR tunnel rerouting function to different types of service traffic, to achieve physical bandwidth isolation and scheduling of the service traffic, the delay of forwarding packets based on the SR tunnel is relatively low. Therefore, it cannot meet the requirements of independent scheduling, traffic isolation and low latency of integrated services at the same time. In order to solve the above-mentioned technical problems, the application mainly provides the following technical solutions:

基于图1所示的PTN网络系统,本申请对网络节点间部署的隧道进行改造,例如图2所示的改造后的一种PTN网络系统架构图,图2所示的PTN网络系统包括控制器、接入环、汇聚环和核心环,各环内的节点也可称为网络节点,本申请实施例中不加以区分。在图2中,在接入环和汇聚环内均部署SR隧道和FlexE隧道,并建立SR隧道标签与FlexE隧道的映射关系。接入环、汇聚环和核心环内的各网络节点均为转发平面的节点,都可以从控制器获取SR隧道标签与FlexE隧道的映射关系和SR隧道标签栈。当在SR隧道传输报文时,根据SR隧道标签与FLexE隧道的映射关系将报文映射到“节点间的FlexE隧道”,节点与节点间的转发网络能够通过“节点间的FlexE隧道”对报文进行端到端的转发,各环内的节点均可基于报文中的目的互联网协议(internet protocol,IP)地址对报文进行转发,能够同时满足综合业务的独立调度、流量隔离和低时延的需求。一些实施方式中,SR隧道和FlexE隧道均可基于IGP自动建立,下面分别进行介绍SR隧道和FlexE隧道的部署方式:Based on the PTN network system shown in FIG. 1 , the present application transforms the tunnels deployed between network nodes, for example, the architecture diagram of a transformed PTN network system shown in FIG. 2 , the PTN network system shown in FIG. 2 includes a controller , an access ring, an aggregation ring, and a core ring, and the nodes in each ring may also be referred to as network nodes, which are not distinguished in the embodiments of this application. In Figure 2, SR tunnels and FlexE tunnels are deployed in both the access ring and the aggregation ring, and a mapping relationship between SR tunnel labels and FlexE tunnels is established. Each network node in the access ring, aggregation ring, and core ring is a node of the forwarding plane, and can obtain the mapping relationship between the SR tunnel label and the FlexE tunnel and the SR tunnel label stack from the controller. When a packet is transmitted in an SR tunnel, the packet is mapped to the "FlexE tunnel between nodes" according to the mapping relationship between the SR tunnel label and the FLexE tunnel. The forwarding network between nodes can communicate with each other through the "FlexE tunnel between nodes". The packets are forwarded end-to-end, and the nodes in each ring can forward the packets based on the destination Internet Protocol (IP) address in the packets, which can simultaneously satisfy the independent scheduling of integrated services, traffic isolation and low latency. demand. In some embodiments, both SR tunnels and FlexE tunnels can be automatically established based on IGP. The following describes the deployment methods of SR tunnels and FlexE tunnels respectively:

1、部署SR隧道:1. Deploy the SR tunnel:

一些实施方式中,可在所述接入环内互通第一业务的接入环节点之间,建立SR-BE隧道,以及建立SR-BE隧道标签与FlexE隧道1的映射关系。该SR-BE隧道可用于传输eX2业务报文,例如在任意两个互通eX2业务的接入环节点之间通过IGP协议自动创建SR-BE隧道。本实施方式中,通过仅在互通第一业务的接入环节点之间建立SR-BE隧道,以及建立这些SR-BE隧道与FlexE隧道1的映射关系,便于接入环内的各节点在SR-BE隧道传输第一业务报文时,能够准确的根据该映射关系将该第一业务报文映射到对应的FLexE隧道1,进而实现业务绝对隔离、降低端到端的转发时延。In some embodiments, an SR-BE tunnel may be established between the access ring nodes that communicate the first service in the access ring, and a mapping relationship between the SR-BE tunnel label and the FlexE tunnel 1 may be established. The SR-BE tunnel can be used to transmit eX2 service packets, for example, an SR-BE tunnel is automatically created through the IGP protocol between any two access link nodes that communicate with the eX2 service. In this embodiment, only SR-BE tunnels are established between the access ring nodes that communicate the first service, and the mapping relationship between these SR-BE tunnels and the FlexE tunnel 1 is established, so that each node in the access ring is convenient for the SR -When the BE tunnel transmits the first service packet, the first service packet can be accurately mapped to the corresponding FLexE tunnel 1 according to the mapping relationship, thereby realizing absolute service isolation and reducing end-to-end forwarding delay.

一种些实施方式中,可在所述接入环内互通第二业务的接入环节点之间、在所述汇聚环内互通第二业务的汇聚环节点之间、在所述核心环内互通第二业务的核心环节点之间,分别建立SR-TE隧道,以及建立SR-TE隧道标签与FLexE隧道2的映射关系。该SR-BE隧道可用于传输S1业务报文。本实施方式中,通过仅在互通第二业务的接入环节点之间建立SR-TE隧道,以及建立这些SR-TE隧道与FLexE隧道2的映射关系,便于各环内的节点在SR-BE隧道传输第二业务报文时,能够准确的根据该映射关系将该第二业务报文映射到对应的FLexE隧道2,进而降低端到端的转发时延。In some embodiments, the access ring nodes that communicate the second service within the access ring, between the aggregation ring nodes that communicate the second service within the aggregation ring, and within the core ring SR-TE tunnels are respectively established between the core link nodes that communicate with the second service, and a mapping relationship between the SR-TE tunnel label and the FLexE tunnel 2 is established. The SR-BE tunnel can be used to transmit S1 service packets. In this embodiment, only SR-TE tunnels are established between the access ring nodes that communicate with the second service, and the mapping relationship between these SR-TE tunnels and the FLexE tunnel 2 is established, so that the nodes in each ring can connect to the SR-BE tunnel easily. When the second service packet is transmitted through the tunnel, the second service packet can be mapped to the corresponding FLexE tunnel 2 according to the mapping relationship, thereby reducing the end-to-end forwarding delay.

2、部署FlexE隧道:2. Deploy a FlexE tunnel:

一些实施方式中,在所述接入环内的任意两接入环节点之间,建立FLexE隧道1;在所述汇聚环内的汇聚环节点与所述核心环内的核心环节点之间,分别建立FLexE隧道2。例如图1所示,在接入环内,在节点A和B、A和C、A和D、或者A和E之间分别建立FLexE隧道1,在节点B和C、B和D、或者B和E之间分别建立FLexE隧道1,在节点C和D、或在者C和E之间分别建立FLexE隧道1,节点D和E之间分别建立FLexE隧道1。在汇聚环内,在节点D和H、或者D和I之间分别建立主用、备用的端到端的FLexE隧道2(图2中未标出)。举例来说,上述的节点D和H之间的主用的FLexE隧道2可以是控制器配置的从节点D->F->H的端到端的隧道,上述的节点D和H之间的备用的FLexE隧道2可以是控制器配置的从节点D->G->H的端到端的隧道。在节点E和H、或者E和I之间分别建立主用、备用的端到端的FLexE隧道2(图2中未标出)。举例来说,上述的节点E和H之间的主用的端到端FLexE隧道2可以是控制器配置的从节点E->G->H的端到端的隧道,上述的E和H之间的备用的端到端FLexE隧道2可以是控制器配置的从节点E->F->H的端到端的隧道。当然,本领域技术人员可以理解的是,在汇聚环节点和核心环节点之间也可以不配置备用的端到端FLexE隧道,但是为了保证报文传输可靠性,通常会配置备用的端到端FLexE隧道,以便当主用的端到端FLexE隧道故障时,可以进行路径倒换,进而避免业务中断,提高业务传输的稳定性。In some embodiments, a FLexE tunnel 1 is established between any two access ring nodes in the access ring; between the aggregation ring node in the aggregation ring and the core ring node in the core ring, Establish FLexE tunnel 2 respectively. For example, as shown in Figure 1, in the access ring, FLexE tunnel 1 is established between nodes A and B, A and C, A and D, or A and E, respectively, and between nodes B and C, B and D, or B A FLexE tunnel 1 is established between nodes C and E, respectively, a FLexE tunnel 1 is established between nodes C and D, or between nodes C and E, and a FLexE tunnel 1 is established between nodes D and E respectively. In the aggregation ring, active and standby end-to-end FLexE tunnels 2 (not shown in FIG. 2 ) are established between nodes D and H, or D and I, respectively. For example, the above-mentioned primary FLexE tunnel 2 between nodes D and H may be an end-to-end tunnel from node D->F->H configured by the controller, and the above-mentioned standby FLexE tunnel between nodes D and H The FLexE tunnel 2 can be an end-to-end tunnel from node D->G->H configured by the controller. Active and standby end-to-end FLexE tunnels 2 (not shown in FIG. 2 ) are established between nodes E and H, or E and I, respectively. For example, the above-mentioned main end-to-end FLexE tunnel 2 between nodes E and H may be an end-to-end tunnel configured by the controller from nodes E->G->H, and the above-mentioned E and H The standby end-to-end FLexE tunnel 2 can be an end-to-end tunnel from node E->F->H configured by the controller. Of course, those skilled in the art can understand that the backup end-to-end FLexE tunnel may not be configured between the aggregation link node and the core link node, but to ensure the reliability of packet transmission, a backup end-to-end FLexE tunnel is usually configured. FLexE tunnel, so that when the main end-to-end FLexE tunnel fails, path switching can be performed to avoid service interruption and improve the stability of service transmission.

在本申请实施例中,同一个FlexE隧道可承载不同的SR隧道业务,即可将传输第一业务报文的SR隧道1、传输第二业务报文的SR隧道2分别映射到同一个FlexE隧道1。例如,如S1业务和eX2业务分别采用SR-TE隧道和SR-BE隧道承载,S1业务和eX2业务可以被映射到同一个FlexE隧道1。In this embodiment of the present application, the same FlexE tunnel can carry different SR tunnel services, that is, the SR tunnel 1 that transmits the first service packet and the SR tunnel 2 that transmits the second service packet can be respectively mapped to the same FlexE tunnel 1. For example, if S1 service and eX2 service are carried by SR-TE tunnel and SR-BE tunnel respectively, S1 service and eX2 service can be mapped to the same FlexE tunnel 1.

参照图3,以下介绍本申请提供一种处理报文的方法,所述方法可应用于图2所示的PTN网络系统,本申请实施例中,所述PTN网络系统包括控制器、第一网络节点、第二网络节点和第三网络节点,后面将按照转发场景分别介绍第一网络节点、第二网络节点和第三网络节点所在的环。所述方法包括:Referring to FIG. 3 , the following describes a method for processing packets provided by the present application. The method can be applied to the PTN network system shown in FIG. 2 . In this embodiment of the present application, the PTN network system includes a controller, a first network node, the second network node, and the third network node. The rings in which the first network node, the second network node, and the third network node are located will be described later according to the forwarding scenario. The method includes:

301、控制器确定SR隧道标签与FlexE隧道的映射关系。301. The controller determines the mapping relationship between the SR tunnel label and the FlexE tunnel.

以下分别介绍SR隧道标签、FlexE隧道和所述映射关系。The following describes the SR tunnel label, the FlexE tunnel and the mapping relationship respectively.

所述SR隧道标签为SR隧道的隧道标签。一些实施方式中,所述SR隧道标签可为SR-BE隧道标签或SR-TE隧道标签。所述SR隧道标签为SR-BE隧道标签时,与所述SR隧道标签相映射的FlexE隧道可以承载第一业务;所述SR隧道标签为SR-TE隧道标签时,所述第二报文对应的业务为第二业务。The SR tunnel label is the tunnel label of the SR tunnel. In some embodiments, the SR tunnel label may be an SR-BE tunnel label or an SR-TE tunnel label. When the SR tunnel label is an SR-BE tunnel label, the FlexE tunnel mapped with the SR tunnel label can carry the first service; when the SR tunnel label is an SR-TE tunnel label, the second packet corresponds to The business is the second business.

一些实施方式中,所述SR-BE隧道标签可为网络节点的节点标签。例如,若第一网络节点和第二网络节点均为同一个接入环内的节点,所述SR-BE隧道标签为所述第二网络节点的节点标签。又例如,若第一网络节点为接入环节点、第二网络节点为汇聚环节点,所述SR-BE隧道标签为所述第二网络节点的节点标签。又例如,若第一网络节点、第二网络节点、第三网络节点分别依次位于第一接入环、汇聚环、第二接入环时(即第一网络节点通过第二网络节点与第三网络节点通信时),报文在第一网络节点与第二网络节点之间传输时,所述SR-BE隧道标签为所述第二网络节点的节点标签;报文在第二网络节点与第三网络节点之间传输时,所述SR-BE隧道标签为所述第三网络节点的节点标签。In some embodiments, the SR-BE tunnel label may be a node label of a network node. For example, if the first network node and the second network node are both nodes in the same access ring, the SR-BE tunnel label is the node label of the second network node. For another example, if the first network node is an access ring node and the second network node is an aggregation ring node, the SR-BE tunnel label is the node label of the second network node. For another example, if the first network node, the second network node, and the third network node are located in the first access ring, the aggregation ring, and the second access ring, respectively (that is, the first network node communicates with the third network node through the second network node network node communication), when the packet is transmitted between the first network node and the second network node, the SR-BE tunnel label is the node label of the second network node; the packet is transmitted between the second network node and the second network node. During transmission between three network nodes, the SR-BE tunnel label is the node label of the third network node.

一些实施方式中,所述SR-TE隧道标签为SR-TE隧道标签栈的最外层邻接标签。In some embodiments, the SR-TE tunnel label is the outermost adjacent label of the SR-TE tunnel label stack.

所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。所述第一网络节点与所述第二网络节点之间可以包括中间节点,所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道可以是根据IGP可自动地建立节点1->节点2之间的端到端FlexE隧道,也可以根据IGP自动地建立节点1->节点3->节点4->节点2之间的端到端FlexE隧道。The FlexE tunnel is an end-to-end FlexE tunnel deployed between the first network node and the second network node. An intermediate node may be included between the first network node and the second network node, and the end-to-end FlexE tunnel between the first network node and the second network node may be a node that can be automatically established according to the IGP For the end-to-end FlexE tunnel between 1->node 2, the end-to-end FlexE tunnel between node 1->node 3->node 4->node 2 can also be automatically established according to the IGP.

一些实施方式中,所述映射关系包括网络节点的节点标签与FlexE隧道之间的映射关系,或者包括最外层邻接标签与FlexE隧道之间的映射关系。In some embodiments, the mapping relationship includes a mapping relationship between a node label of a network node and a FlexE tunnel, or includes a mapping relationship between an outermost adjacency label and a FlexE tunnel.

302、控制器向第一网络节点发送所述映射关系。302. The controller sends the mapping relationship to the first network node.

303、第一网络节点从控制器接收所述映射关系。303. The first network node receives the mapping relationship from the controller.

304、第一网络节点获取包括段路由SR隧道标签的报文304. The first network node obtains the packet including the segment route SR tunnel label

一种实施方式中,获取包括段路由SR隧道标签的报文,包括:In one embodiment, obtaining a packet including a segment route SR tunnel label includes:

第一网络节点接收第一报文,该第一报文包括目的IP地址,该目的IP地址用于选择要封装到第一报文中的SR隧道标签,以便封装到第一报文中的SR隧道标签能够准确地映射到对应的FlexE隧道。The first network node receives the first packet, where the first packet includes a destination IP address, and the destination IP address is used to select the SR tunnel label to be encapsulated into the first packet, so as to encapsulate the SR in the first packet Tunnel labels can be accurately mapped to the corresponding FlexE tunnels.

第一网络节点根据所述目的IP地址,在所述第一报文中封装段路由SR隧道标签,得到包括所述SR隧道标签的第二报文,该第二报文为步骤304中获取得到的报文,本申请实施例中不对二者进行区分。The first network node encapsulates a segment routing SR tunnel label in the first packet according to the destination IP address, and obtains a second packet including the SR tunnel label, where the second packet is obtained in step 304 message, the embodiment of this application does not distinguish between the two.

第一网络节点可以是PTN网络系统中转发报文的源节点,也可以是转发报文的中间节点。例如,报文从节点A->节点B->节点D->节点F,其中,节点A为转发报文的源节点,节点B和节点D均为转发报文的中间节点。在一些具体的实施例中,第一网络节点可以为节点A,也可以为节点B或节点D。当第一网络节点为节点A时,节点A在接收第一报文后,需要根据该第一报文中的目的IP地址,在第一报文中封装SR隧道标签,得到第二报文。当第一网络节点为节点B时,节点B在获取到报文后,不需要对报文进行封装处理,节点B接收到的报文中已经携带节点A封装的SR隧道标签。节点D同理,不作赘述。The first network node may be a source node that forwards the packet in the PTN network system, or may be an intermediate node that forwards the packet. For example, a message is sent from node A->node B->node D->node F, where node A is the source node that forwards the message, and node B and node D are both intermediate nodes that forward the message. In some specific embodiments, the first network node may be node A, node B or node D. When the first network node is node A, after receiving the first packet, node A needs to encapsulate the SR tunnel label in the first packet according to the destination IP address in the first packet to obtain the second packet. When the first network node is Node B, Node B does not need to encapsulate the packet after acquiring the packet, and the packet received by Node B already carries the SR tunnel label encapsulated by Node A. The same is true for node D, which is not repeated here.

一些实施方式中,第一网络节点可在第一报文中封装SR-BE隧道标签或SR-TE隧道标签。In some embodiments, the first network node may encapsulate the SR-BE tunnel label or the SR-TE tunnel label in the first packet.

305、第一网络节点根据所述映射关系确定与SR隧道标签相映射的FlexE隧道。305. The first network node determines, according to the mapping relationship, the FlexE tunnel mapped with the SR tunnel label.

306、第一网络节点通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的所述报文。306. The first network node sends the packet including the SR tunnel label to the second network node through the FlexE tunnel.

本申请实施例中,控制器确定SR隧道标签与FlexE隧道的映射关系后,将该映射关系下发给对应的第一网络节点,使得第一网络节点能够根据该映射关系确定的FlexE隧道向第二网络节点发送报文。通过FLexE隧道和SR隧道共同完成业务的承载,能够实现满足综合业务的独立调度和流量隔离的需求,也能降低业务时延。此外,本申请实施例中,通过将SR隧道与FlexE隧道充分的融合,无需建立全互联(fullmesh)的FlexE隧道,大幅度的减少PTN网络系统中所需部署的FlexE隧道数量,进而降低FlexE隧道的配置和运营的复杂度。In this embodiment of the present application, after determining the mapping relationship between the SR tunnel label and the FlexE tunnel, the controller delivers the mapping relationship to the corresponding first network node, so that the first network node can forward the FlexE tunnel determined according to the mapping relationship to the first network node. Two network nodes send packets. The FLexE tunnel and the SR tunnel jointly complete the service bearing, which can meet the needs of independent scheduling and traffic isolation of comprehensive services, and can also reduce the service delay. In addition, in the embodiment of the present application, by fully integrating the SR tunnel and the FlexE tunnel, there is no need to establish a full mesh (full mesh) FlexE tunnel, which greatly reduces the number of FlexE tunnels that need to be deployed in the PTN network system, thereby reducing the number of FlexE tunnels. configuration and operational complexity.

例如,在所述接入环内,接入环节点根据SR隧道标签与FlexE隧道1的映射关系转发所述第二报文。基于该映射关系,能够将SR隧道中传输的报文传送到FlexE隧道1,从而降低报文在接入环内的传输时延,提高传输效率、保障业务的流畅。例如,FlexE隧道的源节点的转发时延为10微秒左右,中间节点的转发时延小于5微秒。若接入环包括n个接入环节点,那么在该接入环内,报文在所有接入环节点的最大转发时延Lmax=L1*2+L2*(n-2),L1为源节点的转发时延,L2为中间节点的转发时延,n为正整数。例如,当n=8时,Lmax=10*2+5*(8-2)=50微秒,而现有机制中采用L3VPN转发报文时,接入环内的单个IP分组设备的转发时延为50微秒左右,那么,一个接入环有8个接入环节点时,报文在该接入环的转发时延则为400微秒左右。由此可见,相比现有机制中的IP分组设备的转发时延,本申请能够降低90%左右的转发时延。For example, in the access ring, the access ring node forwards the second packet according to the mapping relationship between the SR tunnel label and the FlexE tunnel 1. Based on this mapping relationship, the packets transmitted in the SR tunnel can be transmitted to FlexE tunnel 1, thereby reducing the transmission delay of packets in the access ring, improving transmission efficiency, and ensuring smooth services. For example, the forwarding delay of the source node of a FlexE tunnel is about 10 microseconds, and the forwarding delay of the intermediate node is less than 5 microseconds. If the access ring includes n access ring nodes, then in the access ring, the maximum forwarding delayLmax =L1*2+L2*(n-2) of the packet at all access ring nodes, L1 is The forwarding delay of the source node, L2 is the forwarding delay of the intermediate node, and n is a positive integer. For example, when n=8, Lmax =10*2+5*(8-2)=50 microseconds, and when L3VPN is used to forward packets in the existing mechanism, the forwarding of a single IP packet device in the access ring The delay is about 50 microseconds. Then, when an access ring has 8 access ring nodes, the packet forwarding delay on the access ring is about 400 microseconds. It can be seen that, compared with the forwarding delay of the IP packet equipment in the existing mechanism, the present application can reduce the forwarding delay by about 90%.

下面根据第一网络节点和第二网络节点所在的环,介绍第一网络节点向第二网络节点转发第二报文几种转发场景,至少包括如下几种转发场景。The following describes several forwarding scenarios for the first network node to forward the second packet to the second network node according to the rings where the first network node and the second network node are located, including at least the following forwarding scenarios.

(1)对于同一个接入环内的业务。(1) For services in the same access ring.

例如,当所述第一网络节点和所述第二网络节点均为所述接入环中的节点时,控制器为第一网络节点配置映射关系,使得在接入环内,第一网络节点能够通过映射的FlexE隧道与该接入环内的第二网络节点通信,从而降低同一个接入环内各接入环节点之间的转发时延。For example, when both the first network node and the second network node are nodes in the access ring, the controller configures a mapping relationship for the first network node, so that within the access ring, the first network node It can communicate with the second network node in the access ring through the mapped FlexE tunnel, thereby reducing the forwarding delay between the access ring nodes in the same access ring.

一些实施方式中,第一网络节点可根据目的节点(例如第二网络节点)的节点标签与FlexE隧道1的映射关系,将所述第二报文映射到所述第一网络节点与所述第二网络节点之间的端到端FlexE隧道1,以转发所述第二报文。为便于理解,以下以eX2业务为例,分别介绍配置FlexE隧道后建立SR隧道标签与FlexE隧道的映射关系、以及根据SR隧道标签与FlexE隧道的映射关系转发报文的流程。In some embodiments, the first network node may map the second packet to the first network node and the first network node according to the mapping relationship between the node label of the destination node (for example, the second network node) and the FlexE tunnel 1. The end-to-end FlexE tunnel 1 between the two network nodes is used to forward the second packet. For ease of understanding, the following uses the eX2 service as an example to describe the process of establishing the mapping relationship between the SR tunnel label and the FlexE tunnel after configuring the FlexE tunnel, and forwarding packets according to the mapping relationship between the SR tunnel label and the FlexE tunnel.

如图4a所示,在第一接入环(A、B、C、D、E)内,以部署在C->A之间的eX2业务为例,节点C为源节点(例如可以是第一网络节点),节点A为目的节点(例如可以是第二网络节点)。控制器在节点C的入口配置“节点标签A(即节点A的节点标签,为便于表述,后续类似之处均可参考此处)”与“C与A间的FlexE隧道1(也可称为从C->A的FlexE隧道1)”的映射关系。节点C将节点标签A封装到报文,根据该映射关系将报文映射到“C与A间的FlexE隧道1”。由于C与A之间的eX2业务互通,所以C与A之间的转发网络主要根据“C与A间的FlexE隧道1”进行端到端的转发。As shown in Figure 4a, in the first access ring (A, B, C, D, E), taking the eX2 service deployed between C->A as an example, node C is the source node (for example, it may be the first A network node), node A is the destination node (for example, it may be a second network node). The controller configures "node label A (that is, the node label of node A, for ease of expression, the following similarities can be referred to here)" and "FlexE tunnel 1 between C and A (also referred to as FlexE tunnel from C->A 1)" mapping relationship. Node C encapsulates node label A into the packet, and maps the packet to "FlexE tunnel 1 between C and A" according to the mapping relationship. Since the eX2 services between C and A are interconnected, the forwarding network between C and A mainly performs end-to-end forwarding based on "FlexE tunnel 1 between C and A".

可见,同一个接入环内的eX2业务,采用现有的目的节点的节点标签作为SR-BE隧道标签,第一网络节点根据该目的节点的节点标签即可准确的将第二报文映射到对应的FlexE隧道1,并且不需要在第一报文中引入新的用于与FlexE隧道建立映射关系的标识,减少对第一报文的封装操作。It can be seen that for the eX2 service in the same access ring, the node label of the existing destination node is used as the SR-BE tunnel label, and the first network node can accurately map the second packet to the SR-BE tunnel label according to the node label of the destination node. The corresponding FlexE tunnel 1 does not need to introduce a new identifier for establishing a mapping relationship with the FlexE tunnel into the first packet, thereby reducing the encapsulation operation for the first packet.

(2)对于跨接入环的转发场景。(2) For forwarding scenarios across access rings.

例如,所述PTN网络系统包括第一接入环和第二接入环,所述第一网络节点为所述第一接入环中的节点,所述第二网络节点为所述汇聚环中的节点。步骤304中所述第一报文的目的IP地址为所述第二接入环中的第三网络节点的IP地址,所述第一网络节点通过所述第二网络节点与所述第三网络节点通信。所述第二报文从第一网络节点,途径第二网络节点转发至第三网络节点。所述第二网络节点与所述第三网络节点通信时,所述第二网络节点可基于从控制器获取到的SR隧道标签1与FlexE隧道1之间的映射关系,先确定与SR隧道标签1相映射的FlexE隧道1,然后基于该FlexE隧道1将报文转发给第三网络节点。可通过映射的FlexE隧道1向第三网络节点转发第二报文。第二网络节点与第三网络节点之间的通信方式可参考第一网路节点与第二网络节点之间的通信方式,也可以采用其它的通信方式,具体的通信方式本申请不作限定。For example, the PTN network system includes a first access ring and a second access ring, the first network node is a node in the first access ring, and the second network node is a node in the aggregation ring node. In step 304, the destination IP address of the first packet is the IP address of the third network node in the second access ring, and the first network node communicates with the third network through the second network node. Node communication. The second packet is forwarded from the first network node to the third network node via the second network node. When the second network node communicates with the third network node, the second network node may first determine the relationship with the SR tunnel label based on the mapping relationship between the SR tunnel label 1 and the FlexE tunnel 1 obtained from the controller. 1-mapped FlexE tunnel 1, and then forward the packet to the third network node based on the FlexE tunnel 1. The second packet may be forwarded to the third network node through the mapped FlexE tunnel 1. For the communication mode between the second network node and the third network node, reference may be made to the communication mode between the first network node and the second network node, and other communication modes may also be used. The specific communication mode is not limited in this application.

本申请实施例中,控制器会分别为第一网络节点、第二网络节点和第三网络节点配置SR隧道标签与FlexE隧道之间的映射关系。例如,控制器为第一网络节点配置SR隧道标签1与FlexE隧道1之间的映射关系,为第二网络节点配置SR隧道标签2与FlexE隧道1之间的映射关系,为第三网络节点配置SR隧道标签3与FlexE隧道1之间的映射关系。FlexE隧道1与FlexE隧道2可以是相同或不同的FlexE隧道。In this embodiment of the present application, the controller configures the mapping relationship between the SR tunnel label and the FlexE tunnel for the first network node, the second network node, and the third network node, respectively. For example, the controller configures the mapping relationship between SR tunnel label 1 and FlexE tunnel 1 for the first network node, configures the mapping relationship between SR tunnel label 2 and FlexE tunnel 1 for the second network node, and configures the mapping relationship between SR tunnel label 2 and FlexE tunnel 1 for the third network node The mapping relationship between SR tunnel label 3 and FlexE tunnel 1. FlexE tunnel 1 and FlexE tunnel 2 may be the same or different FlexE tunnels.

可见,通过为第一网络节点配置映射关系,使得在接入环内的第一网络节点能够通过映射的FlexE隧道与汇聚环内的第二网络节点通信,从而降低接入环到汇聚环之间的转发时延。另外,第二报文转发至第二网络节点后,第二网络节点再通过相映射的FlexE隧道将第二报文发给第三网络节点,从而实现在不同接入环内的网络节点之间的通信,同时也降低不同接入环内的网络节点之间的转发时延。It can be seen that by configuring the mapping relationship for the first network node, the first network node in the access ring can communicate with the second network node in the aggregation ring through the mapped FlexE tunnel, thereby reducing the distance between the access ring and the aggregation ring. forwarding delay. In addition, after the second packet is forwarded to the second network node, the second network node sends the second packet to the third network node through the mapped FlexE tunnel, so as to realize the communication between network nodes in different access rings It also reduces the forwarding delay between network nodes in different access rings.

在跨接入环转发场景的一些实施方式中,所述第一网络节点可为所述汇聚环中的节点,所述第二网络节点为所述接入环中的节点。在第一接入环内,第一网络节点按照第二网络节点的节点标签与FlexE隧道1的映射关系转发第二报文,在第二接入环内,第二网络节点按照第三网络节点的节点标签与FlexE隧道2的映射关系转发第二报文。In some implementations of a cross-access ring forwarding scenario, the first network node may be a node in the aggregation ring, and the second network node may be a node in the access ring. In the first access ring, the first network node forwards the second packet according to the mapping relationship between the node label of the second network node and the FlexE tunnel 1; The mapping relationship between the node label and FlexE tunnel 2 forwards the second packet.

例如图5所示,在第一接入环(A、B、C、D、E)和第二接入环(J、D、E)部署eX2业务时,以从C->J之间的eX2业务为例,节点C为源节点,节点J为目的节点。控制器在节点C的入口配置“节点标签D”与“C与D间的FLexE隧道1”的映射关系。在节点C的入口处将节点标签D封装到报文,根据该映射关系将报文映射到“C与D间的FlexE隧道1”。报文在节点D离开“C与D间的FlexE隧道1”之后,控制器在节点D的入口配置“节点标签J”与“D与J间的FLexE隧道1”的映射关系,通过该映射关系将报文映射到“D与J间的FlexE隧道2”,即将报文转发到第二接入环(J、D、E)内。在转发平面,节点C和D均基于目的IP地址对报文进行转发,同理,C与D间的转发网络主要根据“C与D间的FlexE隧道1”进行端到端的转发,D与J间的转发网络主要根据“D与J间的FlexE隧道2”进行端到端的转发。For example, as shown in FIG. 5 , when eX2 services are deployed on the first access ring (A, B, C, D, E) and the second access ring (J, D, E), Take eX2 service as an example, node C is the source node, and node J is the destination node. The controller configures the mapping relationship between "node label D" and "FLexE tunnel 1 between C and D" at the entry of node C. The node label D is encapsulated into the packet at the entry of node C, and the packet is mapped to "FlexE tunnel 1 between C and D" according to the mapping relationship. After the packet leaves "FlexE tunnel 1 between C and D" at node D, the controller configures the mapping relationship between "node label J" and "FlexE tunnel 1 between D and J" at the ingress of node D, through the mapping relationship Map the packet to "FlexE tunnel 2 between D and J", that is, forward the packet to the second access ring (J, D, E). On the forwarding plane, nodes C and D both forward packets based on the destination IP address. Similarly, the forwarding network between C and D mainly performs end-to-end forwarding based on "FlexE tunnel 1 between C and D". The forwarding network between D and J mainly performs end-to-end forwarding according to "FlexE tunnel 2 between D and J".

可见,对于跨接入环内的eX2业务,先根据SR-BE标签将报文从第一接入环映射到汇聚环节点,然后汇聚环节点根据映射关系将报文从汇聚环节点映射到第二接入环内,从而实现跨接入环的eX2业务。本实施方式不需要为eX2业务在第一接入环和第二接入环之间建立全互联的FlexE隧道1,也能够实现跨接入环的eX2业务,进而减少跨接入环之间的FlexE隧道配置和管理,也降低整个接入环的组网复杂度,便于管理。It can be seen that for the eX2 service across the access ring, the packet is first mapped from the first access ring to the aggregation ring node according to the SR-BE label, and then the aggregation ring node maps the packet from the aggregation ring node to the second according to the mapping relationship. In the second access ring, eX2 services across the access ring can be realized. This embodiment does not need to establish a fully interconnected FlexE tunnel 1 between the first access ring and the second access ring for eX2 services, and can also implement eX2 services across access rings, thereby reducing cross-access rings. FlexE tunnel configuration and management also reduces the networking complexity of the entire access ring and facilitates management.

(3)所述第一网络节点为所述接入环中的节点,所述第二网络节点为所述汇聚环中的节点时,在所述接入环内,第一网络节点通过所述接入环内的FLexE隧道和SR隧道将所述第二报文转发至所述汇聚环。可见,通过为第一网络节点配置映射关系,使得在接入环内的第一网络节点能够通过映射的FlexE隧道与汇聚环内的第二网络节点通信,能够降低接入环到汇聚环之间的转发时延,保障业务的流畅性。(3) When the first network node is a node in the access ring, and the second network node is a node in the aggregation ring, in the access ring, the first network node passes the The FLexE tunnel and the SR tunnel in the access ring forward the second packet to the aggregation ring. It can be seen that by configuring the mapping relationship for the first network node, the first network node in the access ring can communicate with the second network node in the aggregation ring through the mapped FlexE tunnel, which can reduce the distance between the access ring and the aggregation ring. The forwarding delay is guaranteed to ensure the smoothness of the business.

一些实施方式中,第一网络节点可采用SR-TE隧道标签栈的最外层邻接标签将报文映射到FlexE隧道。在本申请实施例的转发场景(3)中,第一报文从第一网络节点转发到第二网络节点的流程可参考如下a1和b1中的任一种:In some embodiments, the first network node may use the outermost adjacency label of the SR-TE tunnel label stack to map the packet to the FlexE tunnel. In the forwarding scenario (3) of the embodiment of the present application, for the process of forwarding the first packet from the first network node to the second network node, reference may be made to any one of the following a1 and b1:

a1、在所述接入环内,第一网络节点在所述第一报文中添加第一SR-TE隧道标签栈,得到第二报文。第一网络节点根据所述第一SR-TE隧道标签栈的最外层邻接标签与FLexE隧道1的映射关系,将所述第二报文映射到所述第二报文在第一网络节点与第二网络节点之间的端到端FlexE隧道1。若第一网络节点与第二网络节点之间存在其他中间节点,那么在接入环内转发第二报文时,作为源节点的第一网络节点根据所述第二报文当前的最外层邻接标签,将该报文映射到对应的FlexE隧道1,待第二报文达到中间节点时,中间节点不需要基于L3VPN对第二报文进行分组处理,中间节点继续通过相映射的FlexE隧道转发第二报文,直至第二报文到达汇聚环中的第二网络节点。在第二报文达到第二网络节点时,第二网络节点移除第二报文的第一SR隧道标签栈。a1. In the access ring, the first network node adds a first SR-TE tunnel label stack to the first packet to obtain a second packet. The first network node maps the second packet to the second packet between the first network node and the FLexE tunnel 1 according to the mapping relationship between the outermost adjacent label of the first SR-TE tunnel label stack and the FLexE tunnel 1. End-to-end FlexE tunnel 1 between the second network nodes. If there are other intermediate nodes between the first network node and the second network node, when forwarding the second packet in the access ring, the first network node serving as the source node according to the current outermost layer of the second packet The adjacency label maps the packet to the corresponding FlexE tunnel 1. When the second packet reaches the intermediate node, the intermediate node does not need to process the second packet based on L3VPN, and the intermediate node continues to forward it through the mapped FlexE tunnel. the second packet until the second packet reaches the second network node in the aggregation ring. When the second packet reaches the second network node, the second network node removes the first SR tunnel label stack of the second packet.

b1、在所述接入环内,第一网络节点在所述第一报文中添加第一SR-TE隧道标签栈,得到第二报文。第一网络节点根据所述第一SR-TE隧道标签栈的最外层邻接标签与FLexE隧道1的映射关系,将所述第二报文映射到所述报文在第一网络节点与第二网络节点之间的FLexE隧道1。若第一网络节点与第二网络节点之间存在其他中间节点,那么在接入环内转发第二报文时,作为源节点的第一网络节点移除所述第二报文当前的最外层邻接标签,将该第二报文映射到对应的FLexE隧道1,待第二报文达到中间节点时,中间节点同样移除所述第二报文当前的最外层邻接标签,直至第二报文到达汇聚环中的第二网络节点。在第二报文达到第二网络节点时,第二报文的第一SR隧道标签栈已全部被移除。b1. In the access ring, the first network node adds a first SR-TE tunnel label stack to the first packet to obtain a second packet. According to the mapping relationship between the outermost adjacent label of the first SR-TE tunnel label stack and FLexE tunnel 1, the first network node maps the second packet to the first network node and the second packet. FLexE tunnel 1 between network nodes. If there are other intermediate nodes between the first network node and the second network node, when forwarding the second packet in the access ring, the first network node as the source node removes the current outermost part of the second packet layer adjacency label, and map the second packet to the corresponding FLexE tunnel 1. When the second packet reaches the intermediate node, the intermediate node also removes the current outermost adjacency label of the second packet until the second packet reaches the intermediate node. The packet arrives at the second network node in the aggregation ring. When the second packet reaches the second network node, the first SR tunnel label stack of the second packet has been completely removed.

一些实施方式中,第一网络节点所配置的第一SR-TE隧道标签栈仅用于将所述第二报文从所述接入环发送到所述汇聚环,进而减少作为源节点的第一网络节点所需配置的标签数量,从而提高报文封装效率。In some implementation manners, the first SR-TE tunnel label stack configured by the first network node is only used to send the second packet from the access ring to the aggregation ring, thereby reducing the number of the first packet serving as the source node. The number of labels that a network node needs to configure, so as to improve the efficiency of packet encapsulation.

(4)所述第一网络节点为所述汇聚环中的节点,所述第二网络节点为所述核心环中的节点时,控制器为第一网络节点配置映射关系,使得在汇聚环内的第一网络节点能够通过映射的FlexE隧道与核心环内的第二网络节点通信,从而降低汇聚环到核心环之间的转发时延,保障业务的流畅性。在本申请实施例的转发场景(4)中,第二报文从第一网络节点转发到第二网络节点的流程可参考如下a2和b2中的任一种:(4) When the first network node is a node in the aggregation ring, and the second network node is a node in the core ring, the controller configures a mapping relationship for the first network node, so that in the aggregation ring The first network node can communicate with the second network node in the core ring through the mapped FlexE tunnel, thereby reducing the forwarding delay between the aggregation ring and the core ring and ensuring the fluency of services. In the forwarding scenario (4) of this embodiment of the present application, for the process of forwarding the second packet from the first network node to the second network node, reference may be made to any one of the following a2 and b2:

a2、当第二报文到达汇聚环中的第二网络节点后,在所述汇聚环内,第二网络节点在所述第二报文中添加第二SR-TE隧道标签栈,得到第三报文。第二网络节点根据SR隧道标签与FlexE隧道2之间的映射关系转发所述第三报文时,可以根据所述第二SR-TE隧道标签栈的最外层邻接标签与FlexE隧道2的映射关系,将所述第三报文映射到第二网络节点与核心环节点之间的FlexE隧道2,从而通过FlexE隧道2将第三报文转发至核心环。a2. After the second packet reaches the second network node in the aggregation ring, in the aggregation ring, the second network node adds a second SR-TE tunnel label stack to the second packet to obtain a third message. When forwarding the third packet according to the mapping relationship between the SR tunnel label and the FlexE tunnel 2, the second network node may forward the third packet according to the mapping between the outermost adjacency label of the second SR-TE tunnel label stack and the FlexE tunnel 2 The third packet is mapped to the FlexE tunnel 2 between the second network node and the core ring node, so that the third packet is forwarded to the core ring through the FlexE tunnel 2.

b2、当第二报文到达汇聚环中的第二网络节点后,在所述汇聚环内,第二网络节点在所述第二报文中添加第二SR-TE隧道标签栈,得到第三报文。第二网络节点根据SR隧道标签与FLexE隧道2之间的映射关系转发所述第三报文时,可以根据所述第二SR-TE隧道标签栈的最外层邻接标签与FLexE隧道2的映射关系,将所述第三报文映射到第二网络节点与核心环节点之间的FLexE隧道2,从而通过FlexE隧道2将第三报文转发至核心环。b2. After the second packet reaches the second network node in the aggregation ring, in the aggregation ring, the second network node adds a second SR-TE tunnel label stack to the second packet to obtain a third message. When forwarding the third packet according to the mapping relationship between the SR tunnel label and the FLexE tunnel 2, the second network node may use the mapping between the outermost adjacency label of the second SR-TE tunnel label stack and the FLexE tunnel 2 The third packet is mapped to the FLexE tunnel 2 between the second network node and the core ring node, so that the third packet is forwarded to the core ring through the FlexE tunnel 2.

一些实施方式中,第二网络节点所配置的第二SR-TE隧道标签栈仅用于将所述第三报文从所述汇聚环发送到所述核心环,或者仅用于将所述第三报文从所述汇聚环发送到所述第二接入环,进而减少转发报文的源节点(例如转发场景3中所述的第一网络节点)所需配置的标签数量,从而提高报文的封装效率。In some embodiments, the second SR-TE tunnel label stack configured by the second network node is only used to send the third packet from the aggregation ring to the core ring, or only used to send the third packet to the core ring. The three packets are sent from the aggregation ring to the second access ring, thereby reducing the number of labels that need to be configured on the source node (for example, the first network node described in forwarding scenario 3) that forwards the packets, thereby increasing the number of The packaging efficiency of the text.

一些实施方式中,所述SR-BE隧道标签可为网络节点的节点标签。通过采用现有的目的节点的节点标签作为SR-BE隧道标签,第二网络节点根据该目的节点的节点标签即可准确的将报文映射到对应的FlexE隧道2,并且不需要在报文中引入新的用于与FlexE隧道建立映射关系的标识,减少报文的封装操作。In some embodiments, the SR-BE tunnel label may be a node label of a network node. By using the node label of the existing destination node as the SR-BE tunnel label, the second network node can accurately map the packet to the corresponding FlexE tunnel 2 according to the node label of the destination node, and does not need to be included in the packet. A new identifier for establishing a mapping relationship with a FlexE tunnel is introduced to reduce packet encapsulation operations.

由上述介绍的转发场景(3)和(4)可知,当PTN网络系统部署第二业务时,第二业务的报文会依次从接入环、汇聚环和核心环进行转发,最后达到核心网设备。下面以转发S1业务报文为例,分别介绍本申请实施例中的两种报文转发流程:From the forwarding scenarios (3) and (4) described above, when the PTN network system deploys the second service, the packets of the second service will be forwarded from the access ring, the aggregation ring, and the core ring in turn, and finally reach the core network. equipment. Taking forwarding of S1 service packets as an example, the following describes the two packet forwarding processes in the embodiments of the present application:

举例来说,如图4a所示,基于IGP自动建立从A->B->D的FlexE隧道1,以及配置从D->F->H的FlexE隧道2。在接入环内,节点A为源节点,控制器在节点A对报文添加SR-TE隧道标签栈,所添加的SR-TE隧道标签栈为外层“邻接标签J/K”,同时控制器配置外层“邻接标签J”与“从A->B->D的FlexE隧道1”的映射关系。这样,在接入环的转发平面,节点A和D就可以基于目的IP地址进行S1业务报文的转发。具体来说,报文从A->B->D的FlexE隧道1的转发过程中,报文到达中间节点(例如节点B)后,节点B不需要基于L3VPN对报文进行分组处理,节点B继续通过相映射的“从A->B->D的FLexE隧道1”将报文转发给节点D,报文在达到节点D时,节点D移除该报文的SR-TE隧道标签栈。若节点A与D之间还有其他中间节点,其他中间节点基于FlexE隧道1转发报文的机制同理,不作赘述。For example, as shown in Figure 4a, FlexE tunnel 1 from A->B->D is automatically established based on IGP, and FlexE tunnel 2 from D->F->H is configured. In the access ring, node A is the source node, and the controller adds an SR-TE tunnel label stack to the packet at node A. The added SR-TE tunnel label stack is the outer "adjacency label J/K", and controls the Configure the mapping relationship between the outer layer "adjacency label J" and "FlexE tunnel 1 from A->B->D". In this way, on the forwarding plane of the access ring, nodes A and D can forward the S1 service message based on the destination IP address. Specifically, during the forwarding process of the packet from FlexE tunnel 1 of A->B->D, after the packet reaches the intermediate node (for example, node B), node B does not need to perform packet processing based on L3VPN. Continue to forward the packet to node D through the mapped "FLexE tunnel 1 from A->B->D". When the packet reaches node D, node D removes the SR-TE tunnel label stack of the packet. If there are other intermediate nodes between nodes A and D, the mechanism for other intermediate nodes to forward packets based on FlexE tunnel 1 is the same, and will not be repeated here.

在汇聚环内,控制器在节点D处对报文添加SR-TE隧道标签栈(即邻接标签L/M),以及配置最外层“邻接标签L”与“对应D->F->H的FlexE隧道2”的映射关系,在节点D处,通过报文的最外层“邻接标签L”将报文封装到“从D->F->H的FlexE隧道2”。在汇聚环的转发平面,报文可基于目的IP地址进行S1业务报文的转发。具体来说,报文从D->F->H的FlexE隧道2的转发过程中。报文到达中间节点(例如节点F)后,节点F不需要基于L3VPN对报文进行分组处理,节点F继续通过相映射的“从D->F->H的FlexE隧道2”将报文转发给节点H,报文在达到节点H时,节点H移除该报文的SR-TE隧道标签栈。若节点D与H之间还有其他中间节点,其他中间节点基于FlexE隧道2转发报文的机制同理,不作赘述。当报文到达节点H后,将报文从“从D->F->H的FlexE隧道2”离开,节点H将该报文发往核心网的网关设备。In the aggregation ring, the controller adds the SR-TE tunnel label stack (that is, the adjacency label L/M) to the packet at node D, and configures the outermost "adjacency label L" and "corresponding to D->F->H" FlexE tunnel 2", at node D, the packet is encapsulated into "FlexE tunnel 2 from D->F->H" through the outermost "adjacency label L" of the packet. On the forwarding plane of the aggregation ring, packets can be forwarded based on the destination IP address of S1 service packets. Specifically, the packet is forwarded from FlexE tunnel 2 of D->F->H. After the packet reaches the intermediate node (for example, node F), node F does not need to perform packet processing based on L3VPN, and node F continues to forward the packet through the mapped "FlexE tunnel 2 from D->F->H". For node H, when the packet reaches node H, node H removes the SR-TE tunnel label stack of the packet. If there are other intermediate nodes between nodes D and H, the mechanism for the other intermediate nodes to forward packets based on FlexE tunnel 2 is the same, and will not be repeated here. After the packet reaches node H, it leaves the packet from "FlexE tunnel 2 from D->F->H", and node H sends the packet to the gateway device of the core network.

又举例来说,如图4b所示,基于IGP自动建立从A->B->D的FLexE隧道1,以及配置从D->F->H的FLexE隧道2。在接入环内,节点A为源节点,控制器在节点A对报文添加SR-TE隧道标签栈,所添加的SR-TE隧道标签栈为外层“邻接标签J/K”,同时控制器配置外层“邻接标签J”与“对应A->B->D的FLexE隧道1”的映射关系。这样,在接入环的转发平面,节点A、B和D就可以基于目的IP地址进行S1业务报文的转发。具体来说,报文从A->B->D的FLexE隧道1的转发过程中,报文到达中间节点(例如节点B)后,节点B移除报文中的邻接标签K,并将报文通过邻接标签K映射的FLexE隧道1转发给节点D,报文在达到节点D时,报文的SR-TE隧道标签栈全部被移除。若节点A与D之间还有其他中间节点,其他中间节点基于FLexE隧道1转发报文的机制同理,不作赘述。For another example, as shown in FIG. 4b, FLexE tunnel 1 from A->B->D is automatically established based on IGP, and FLexE tunnel 2 from D->F->H is configured. In the access ring, node A is the source node, and the controller adds an SR-TE tunnel label stack to the packet at node A. The added SR-TE tunnel label stack is the outer "adjacency label J/K", and controls the Configure the mapping relationship between the outer layer "adjacency label J" and "FLexE tunnel 1 corresponding to A->B->D". In this way, on the forwarding plane of the access ring, nodes A, B, and D can forward the S1 service message based on the destination IP address. Specifically, during the forwarding process of the packet from FLexE tunnel 1 of A->B->D, after the packet reaches the intermediate node (for example, node B), node B removes the adjacency label K in the packet, and sends the packet to the intermediate node (for example, node B). The message is forwarded to node D through the FLexE tunnel 1 mapped by the adjacency label K. When the message reaches node D, the SR-TE tunnel label stack of the message is all removed. If there are other intermediate nodes between nodes A and D, the mechanism for the other intermediate nodes to forward packets based on the FLexE tunnel 1 is the same, and details are not repeated here.

在汇聚环内,控制器配置最外层“邻接标签L”与“对应D->F->H的FLexE隧道2”的映射关系,并下发给节点D。节点D接收到报文后,对报文添加SR-TE隧道标签栈(即邻接标签L/M),节点D通过报文的最外层“邻接标签L”将报文封装到“对应D->F->H的FLexE隧道2”。在汇聚环的转发平面,报文可基于目的IP地址进行S1业务报文的转发。具体来说,报文从D->F->H的FLexE隧道2的转发过程中。报文到达中间节点(例如节点F)后,节点F移除报文中的邻接标签M,并将报文通过邻接标签M映射的FLexE隧道2转发给节点H,报文在达到节点H时,报文的SR-TE隧道标签栈全部被移除。若节点D与H之间还有其他中间节点,其他中间节点基于FLexE隧道2转发报文的机制同理,不作赘述。当报文到达节点H后,将报文从“对应D->F->H的FLexE隧道2”剥离,将该报文发往核心网的网关设备。In the aggregation ring, the controller configures the mapping relationship between the outermost "adjacency label L" and "FLexE tunnel 2 corresponding to D->F->H", and delivers it to node D. After receiving the packet, node D adds the SR-TE tunnel label stack (that is, the adjacency label L/M) to the packet, and node D encapsulates the packet into the "corresponding D- >F->H FLexE Tunnel 2". On the forwarding plane of the aggregation ring, packets can be forwarded based on the destination IP address of S1 service packets. Specifically, the packet is forwarded from the FLexE tunnel 2 of D->F->H. After the packet reaches the intermediate node (for example, node F), node F removes the adjacency label M in the packet, and forwards the packet to node H through the FLexE tunnel 2 mapped by the adjacency label M. When the packet reaches node H, All SR-TE tunnel label stacks of packets are removed. If there are other intermediate nodes between nodes D and H, the mechanism for other intermediate nodes to forward packets based on the FLexE tunnel 2 is the same, and will not be repeated. When the packet arrives at node H, the packet is stripped from "FLexE tunnel 2 corresponding to D->F->H", and the packet is sent to the gateway device of the core network.

可见,基于SR-TE隧道标签栈的最外层邻接标签将报文映射到FlexE隧道实现方案,能够减少SR-TE隧道标签封装的标签数量,进而提高报文的整体封装效率,也能够提升通信系统转发性能和最大传输单元(maximum transmission unit,MTU)支持的最大规格。同时,由于接入环内的eX2业务报文或跨接入环的eX2业务报文均可基于FlexE隧道转发,这样各节点之间的转发网络转发eX2业务报文的时延可以限制在5微秒以内,例如,通过C->A->B->D的FlexE隧道转发报文时,报文在中间节点A和B的转发时延在5微秒以内,可见,本申请中采用的映射到FlexE隧道的方案能够降低端到端传输时延,同时实现业务绝对隔离。It can be seen that the implementation scheme of mapping packets to FlexE tunnels based on the outermost adjacency label of the SR-TE tunnel label stack can reduce the number of labels encapsulated in SR-TE tunnel labels, thereby improving the overall packet encapsulation efficiency and improving communication. The system forwarding performance and the maximum size supported by the maximum transmission unit (MTU). At the same time, since the eX2 service packets within the access ring or the eX2 service packets across the access ring can be forwarded based on the FlexE tunnel, the delay in forwarding the eX2 service packets by the forwarding network between nodes can be limited to 5 microseconds. Within seconds, for example, when forwarding packets through the FlexE tunnel of C->A->B->D, the forwarding delay of the packets between intermediate nodes A and B is within 5 microseconds. It can be seen that the mapping used in this application The solution to the FlexE tunnel can reduce the end-to-end transmission delay and achieve absolute isolation of services.

另外,本实施方式中,仅在作为源节点的第一网络节点增加所有转发路径的邻接标签或节点标签,中间节点除粘粘标签,不会再增加任何标签。每个环内,只配置在该环内的标签,不需要在接入环的源节点为整个PTN网络系统的标签全部配置,这样就可以减少在接入环内的标签数量,同时提高报文在接入环的封装效率。In addition, in this embodiment, the adjacency labels or node labels of all forwarding paths are only added to the first network node serving as the source node, and the intermediate nodes will not add any labels except for sticky labels. In each ring, only the labels in the ring are configured, and it is not necessary to configure all the labels of the entire PTN network system at the source node of the access ring. This can reduce the number of labels in the access ring and increase the number of packets. Packaging efficiency in the access ring.

可选的,在本申请的一些实施例中,控制器还可以建立不同SR隧道标签与相同FlexE隧道之间的映射关系,从而将将至少两个业务对应的SR-TE隧道均映射到相同的FlexE隧道。通过这种方式,能够实现同一FlexE隧道承载不同的业务,同时还可以实现不同业务之间的隔离。Optionally, in some embodiments of the present application, the controller may also establish a mapping relationship between different SR tunnel labels and the same FlexE tunnel, so as to map the SR-TE tunnels corresponding to at least two services to the same FlexE tunnel. FlexE tunnel. In this way, the same FlexE tunnel can carry different services, and at the same time, different services can be isolated.

例如,若同时部署第一S1业务和第二S1业务,分别为第一S1业务和第二S1业务部署不同的SR-TE隧道,将第一S1业务和第二S1业务部署的SR-TE隧道均映射到相同FlexE隧道。通过这种方式,能够实现同一FlexE隧道承载不同的S1业务,同时还可以实现不同S1业务之间的隔离。例如,PTN网络系统部署4G L3VPN业务和5G L3VPN业务时,从接入环到核心环(例如从节点A->H),可针对4G L3VPN业务和5G L3VPN业务分别部署不同的SR-TE隧道,可以将4G L3VPN业务和5G L3VPN业务部署的SR-TE隧道均映射到相同FlexE隧道,这样可实现同一FlexE隧道承载不同的L3VPN业务,同时还可以实现不同L3VPN业务之间的隔离,从而补偿仅部署SR隧道时的缺陷。也不需要在PTN网络系统的所有节点之间建立全互联的FlexE隧道,同时也降低规划FlexE隧道的复杂度。For example, if the first S1 service and the second S1 service are deployed at the same time, different SR-TE tunnels are respectively deployed for the first S1 service and the second S1 service, and the SR-TE tunnels for the first S1 service and the second S1 service are deployed are mapped to the same FlexE tunnel. In this way, the same FlexE tunnel can be implemented to carry different S1 services, and at the same time, the isolation between different S1 services can be implemented. For example, when the PTN network system deploys 4G L3VPN services and 5G L3VPN services, from the access ring to the core ring (for example, from node A->H), different SR-TE tunnels can be deployed for 4G L3VPN services and 5G L3VPN services respectively. The SR-TE tunnels deployed by the 4G L3VPN service and the 5G L3VPN service can be mapped to the same FlexE tunnel, so that the same FlexE tunnel can carry different L3VPN services, and at the same time, the isolation between different L3VPN services can be realized, so as to compensate for the deployment of only Defects when SR tunneling. There is also no need to establish fully interconnected FlexE tunnels between all nodes of the PTN network system, and the complexity of planning FlexE tunnels is also reduced.

可选的,在本申请的一些实施例中,核心网网关会下沉到汇聚环节点(例如图2中的节点D和E),因此接入环带宽收敛比较大,从汇聚环节点(例如图2中的节点D和E)到核心环的带宽收敛相对比较小,在部署FlexE隧道的带宽时需要考虑接入环到汇聚环之间的带宽收敛比。对于所述汇聚环内的汇聚环节点,汇聚节点对应的FlexE隧道的带宽根据所述汇聚环节点待接入的基站数量、所述接入环到所述汇聚环的带宽收敛比得到。例如,汇聚环节点规划接入8个5G基站,那么FlexE隧道部署的带宽为W,W=8*5G*1/4=10G,其中1/4为接入环到汇聚环的带宽收敛比。可见,本申请中由于可实现同一FlexE隧道承载不同的L3VPN业务,并且不需要为每条业务流规划固定的FlexE隧道带宽,这样在基站规划固定带宽的前提下,不需要非常大的核心网承载设备的带宽,也能够最大限度的实现对基站流量的带宽统计复用。Optionally, in some embodiments of the present application, the core network gateway will sink to the aggregation ring nodes (for example, nodes D and E in FIG. 2 ), so the bandwidth of the access ring is relatively large, and The bandwidth convergence from nodes D and E) to the core ring in Figure 2 is relatively small, and the bandwidth convergence ratio between the access ring and the aggregation ring needs to be considered when deploying the bandwidth of the FlexE tunnel. For the aggregation ring node in the aggregation ring, the bandwidth of the FlexE tunnel corresponding to the aggregation node is obtained according to the number of base stations to be accessed by the aggregation ring node and the bandwidth convergence ratio from the access ring to the aggregation ring. For example, if the aggregation ring node is planned to access 8 5G base stations, the bandwidth deployed by the FlexE tunnel is W, W=8*5G*1/4=10G, where 1/4 is the bandwidth convergence ratio from the access ring to the aggregation ring. It can be seen that in this application, the same FlexE tunnel can be implemented to carry different L3VPN services, and there is no need to plan a fixed FlexE tunnel bandwidth for each service flow. In this way, under the premise of planning a fixed bandwidth for the base station, it does not require a very large core network to carry The bandwidth of the device can also maximize the statistical multiplexing of the bandwidth of the base station traffic.

可选的,在本申请的一些实施例中,所述接入环内的各接入环节点分别对应不同的IGP域;所述汇聚环内的汇聚环节点对应的IGP域,与所述核心环内的核心环节点对应的IGP域相同。例如,节点D和E部署分层L3VPN业务时:确保不同的接入环节点配置单独的IGP域(如节点A、B、C、D和E在接入环链路中均为单独的IGP域,以及确保所有汇聚环节点和核心环节点部署在相同的IGP域,即节点D、E、F、G在汇聚环链路中,以及节点E、G、H和I节点在核心环链路中均为相同IGP域)。可见,通过划分IGP域的方式在汇聚环节点对L3VPN进行分层,能够避免L3VPN域规模过大,进而避免接入环之间相互扩散路由,降低接入环节点之间的运维复杂度。Optionally, in some embodiments of the present application, each access ring node in the access ring corresponds to a different IGP domain; the IGP domain corresponding to the aggregation ring node in the aggregation ring is the same as the core. The IGP domains corresponding to the core ring nodes in the ring are the same. For example, when nodes D and E deploy layered L3VPN services: ensure that different access ring nodes are configured with separate IGP domains (for example, nodes A, B, C, D, and E all have separate IGP domains in the access ring link) , and ensure that all aggregation ring nodes and core ring nodes are deployed in the same IGP domain, i.e. nodes D, E, F, G are in the aggregation ring link, and nodes E, G, H and I nodes are in the core ring link are the same IGP domain). It can be seen that by dividing the IGP domain and layering the L3VPN at the aggregation point, it can avoid the L3VPN domain from being too large, thereby avoiding the mutual diffusion of routes between the access rings, and reducing the complexity of operation and maintenance between the access points.

上述各实施例中所介绍的技术特征,例如部署SR隧道或FlexE隧道、映射关系、通过FlexE隧道转发报文、第一业务、第二业务、SR隧道标签、SR隧道标签栈、FlexE隧道带宽计算方式等技术特征、也同样适用于本申请中的图6-图8所对应的实施例,后续类似之处不再赘述。The technical features introduced in the above embodiments, such as deploying SR tunnels or FlexE tunnels, mapping relationships, forwarding packets through FlexE tunnels, first service, second service, SR tunnel label, SR tunnel label stack, and FlexE tunnel bandwidth calculation The technical features such as the method are also applicable to the embodiments corresponding to FIG. 6 to FIG. 8 in the present application, and the similarities will not be repeated hereafter.

以上介绍了本申请中一种处理报文的方法,下面分别介绍执行上述方法的处理报文的控制器和网络节点。A method for processing a packet in the present application has been described above, and the following describes the controller and the network node that execute the method for processing the packet.

如图6所示的一种控制器的结构示意图,本申请实施例中的控制器能够实现对应于上述图2-图5中任一所对应的实施例中由控制器所执行的配置SR隧道或FlexE隧道、确定映射关系、发送映射关系的步骤。控制器实现的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。所述控制器可包括收发模块和处理模块,处理模块可用于控制所述收发模块的收发操作。所述处理模块的功能实现可参考图2-图5中任一所所对应的实施例中由控制器执行的建立SR隧道或FlexE隧道、确定映射关系等操作,此处不作赘述。所述收发模块的功能实现可参考图2-图5中任一所所对应的实施例中由控制器向网络节点下发映射关系等操作,处理模块可用于控制所述收发模块的收发操作。As shown in FIG. 6 is a schematic structural diagram of a controller, the controller in this embodiment of the present application can implement the configuration of the SR tunnel corresponding to any one of the above-mentioned embodiments corresponding to FIG. 2 to FIG. 5 executed by the controller or FlexE tunnel, determine the mapping relationship, and send the mapping relationship. The functions implemented by the controller can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, and the modules may be software and/or hardware. The controller may include a transceiving module and a processing module, and the processing module may be used to control the transceiving operation of the transceiving module. For the function implementation of the processing module, reference may be made to operations such as establishing an SR tunnel or a FlexE tunnel and determining a mapping relationship performed by the controller in any of the embodiments corresponding to FIG. 2 to FIG. 5 , and details are not described here. The function implementation of the transceiver module may refer to operations such as the controller delivering the mapping relationship to the network node in any of the corresponding embodiments in FIG. 2 to FIG. 5 , and the processing module may be used to control the transceiver operation of the transceiver module.

本申请实施例中,所述控制器应用于分组传送网PTN网络系统,所述PTN网络系统还包括第一网络节点和第二网络节点。所述控制器包括:In the embodiment of the present application, the controller is applied to a PTN network system of a packet transport network, and the PTN network system further includes a first network node and a second network node. The controller includes:

处理模块,用于确定段路由SR隧道标签与FlexE隧道的映射关系;The processing module is used to determine the mapping relationship between the segment route SR tunnel label and the FlexE tunnel;

收发模块,用于向所述第一网络节点发送所述映射关系,以便所述第一网络节点根据所述映射关系,通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的报文,其中,所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。a transceiver module, configured to send the mapping relationship to the first network node, so that the first network node sends the SR tunnel label to the second network node through the FlexE tunnel according to the mapping relationship message, wherein the FlexE tunnel is an end-to-end FlexE tunnel deployed between the first network node and the second network node.

一些可能的实施方式中,所述第一网络节点和所述第二网络节点均为所述接入环中的节点。In some possible implementations, both the first network node and the second network node are nodes in the access ring.

一些可能的实施方式中,所述第一网络节点为所述接入环中的节点,所述第二网络节点为所述汇聚环中的节点。In some possible implementations, the first network node is a node in the access ring, and the second network node is a node in the aggregation ring.

一些可能的实施方式中,所述第一网络节点为所述汇聚环中的节点,所述第二网络节点为所述核心环中的节点。In some possible implementations, the first network node is a node in the aggregation ring, and the second network node is a node in the core ring.

一些可能的实施方式中,所述第一网络节点为所述第一接入环中的节点,所述第二网络节点为所述汇聚环中的节点,所述第二报文的目的IP地址为所述第二接入环中的第三网络节点的IP地址,所述第一网络节点通过所述第二网络节点与所述第三网络节点通信。In some possible implementation manners, the first network node is a node in the first access ring, the second network node is a node in the aggregation ring, and the destination IP address of the second packet is the IP address of the third network node in the second access ring, and the first network node communicates with the third network node through the second network node.

如图7所示的一种网络节点的结构示意图,本申请实施例中的网络节点能够实现对应于上述图2-图5中任一所对应的实施例中由第一网络节点所执行的接收报文、接收映射关系、在第一报文中封装SR隧道标签、确定FlexE隧道、通过FlexE隧道转发报文的步骤。控制器实现的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,所述模块可以是软件和/或硬件。所述网络节点可包括收发模块和处理模块,处理模块可用于控制所述收发模块的收发操作。所述处理模块的功能实现可参考图2-图5中任一所所对应的实施例中由第一网络节点所执行的在第一报文中封装SR隧道标签、确定FlexE隧道等操作,此处不作赘述。所述收发模块的功能实现可参考图2-图5中任一所所对应的实施例中由第一网络节点所执行的获取报文、接收映射关系、通过FlexE隧道转发报文等操作。As shown in FIG. 7 is a schematic structural diagram of a network node, the network node in this embodiment of the present application can implement the reception performed by the first network node corresponding to any of the above-mentioned embodiments corresponding to FIG. 2 to FIG. 5 . Packet, receiving the mapping relationship, encapsulating the SR tunnel label in the first packet, determining the FlexE tunnel, and forwarding the packet through the FlexE tunnel. The functions implemented by the controller can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, and the modules may be software and/or hardware. The network node may include a transceiving module and a processing module, and the processing module may be used to control the transceiving operation of the transceiving module. For the function realization of the processing module, reference may be made to the operations performed by the first network node, such as encapsulating the SR tunnel label in the first packet, determining the FlexE tunnel, etc. No further elaboration here. For the function implementation of the transceiver module, reference may be made to the operations performed by the first network node, such as acquiring a message, receiving a mapping relationship, and forwarding a message through a FlexE tunnel, performed by the first network node in any of the embodiments corresponding to FIG. 2 to FIG. 5 .

本申请实施例中,用作第一网络节点,所述第一网络节点应用于分组传送网PTN网络系统,所述PTN网络系统还包括第二网络节点。In the embodiment of the present application, it is used as a first network node, and the first network node is applied to a PTN network system of a packet transmission network, and the PTN network system further includes a second network node.

所述处理模块可用于获取包括段路由SR隧道标签的报文。The processing module may be configured to obtain a packet including a segment route SR tunnel label.

所述处理模块还可用于基于所述SR隧道标签与灵活以太网FlexE隧道之间的映射关系,确定与所述SR隧道标签相映射的所述FlexE隧道;The processing module is further configured to determine the FlexE tunnel mapped with the SR tunnel label based on the mapping relationship between the SR tunnel label and the flexible Ethernet FlexE tunnel;

所述收发模块可用于通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的所述报文,其中,所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。The transceiver module may be configured to send the message including the SR tunnel label to the second network node through the FlexE tunnel, where the FlexE tunnel is deployed on the first network node and the second network node. An end-to-end FlexE tunnel between two network nodes.

一些可能的实施方式中,所述处理模块用于:接收第一报文,所述第一报文携带目的互联网协议IP地址。In some possible implementation manners, the processing module is configured to: receive a first packet, where the first packet carries a destination Internet Protocol IP address.

根据所述目的IP地址,在所述第一报文中封装段路由SR隧道标签,得到包括所述SR隧道标签的第二报文。According to the destination IP address, a segment routing SR tunnel label is encapsulated in the first packet to obtain a second packet including the SR tunnel label.

一些可能的实施方式中,所述PTN网络系统还包括控制器,在所述接收第一报文之前,所述收发模块还用于:In some possible implementation manners, the PTN network system further includes a controller, and before receiving the first packet, the transceiver module is further configured to:

接收所述控制器发送的所述映射关系。The mapping relationship sent by the controller is received.

一些可能的实施方式中,所述第一网络节点和所述第二网络节点均为所述接入环中的节点。In some possible implementations, both the first network node and the second network node are nodes in the access ring.

一些可能的实施方式中,所述第一网络节点为所述接入环中的节点,所述第二网络节点为所述汇聚环中的节点。In some possible implementations, the first network node is a node in the access ring, and the second network node is a node in the aggregation ring.

一些可能的实施方式中,所述PTN网络系统还包括汇聚环和核心环,其中,所述第一网络节点为所述汇聚环中的节点,所述第二网络节点为所述核心环中的节点。In some possible implementation manners, the PTN network system further includes an aggregation ring and a core ring, wherein the first network node is a node in the aggregation ring, and the second network node is a node in the core ring. node.

一些可能的实施方式中,所述第一网络节点为所述第一接入环中的节点,所述第二网络节点为所述汇聚环中的节点,所述第二报文的目的IP地址为所述第二接入环中的第三网络节点的IP地址,所述第一网络节点通过所述第二网络节点与所述第三网络节点通信。In some possible implementation manners, the first network node is a node in the first access ring, the second network node is a node in the aggregation ring, and the destination IP address of the second packet is the IP address of the third network node in the second access ring, and the first network node communicates with the third network node through the second network node.

图8为本申请实施例提供的用于处理报文的通信装置的一种结构示意图,其中,可包括至少一个处理器、至少一个收发器、存储器、至少一个总线。其中,至少一个处理器、至少一个收发器和存储器可通过总线或其它方式连接,其中,图8中以通过总线连接为例。FIG. 8 is a schematic structural diagram of a communication apparatus for processing a message according to an embodiment of the present application, which may include at least one processor, at least one transceiver, memory, and at least one bus. Wherein, at least one processor, at least one transceiver, and memory may be connected through a bus or in other manners, and FIG. 8 takes the connection through a bus as an example.

存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(non-volatile random accessmemory,NVRAM)。存储器存储有操作系统和程序指令、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,程序指令可包括各种操作指令,用于实现各种操作。操作系统可包括各种系统程序,用于实现各种基础任务以及处理基于硬件的任务。The memory, which may include read-only memory and random access memory, provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (NVRAM). The memory stores operating system and program instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the program instructions may include various operation instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and handling hardware-based tasks.

处理器可以控制处理报文的通信装置的操作,处理器还可以称为中央处理单元(central processing unit,CPU)。具体的应用中,软件升级管理的设备的各个组件通过总线耦合在一起,其中总线除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图8中将各种总线都可称为总线。The processor may control the operation of the communication device that processes the message, and the processor may also be referred to as a central processing unit (central processing unit, CPU). In a specific application, various components of the device managed by the software upgrade are coupled together through a bus, where the bus may include a power bus, a control bus, a status signal bus, and the like in addition to a data bus. However, for the sake of clarity, various buses may be referred to as buses in FIG. 8 .

需要说明的是,在本申请各实施例(包括图6、图7所示的各实施例)中所有的收发模块对应的实体设备可以为收发器,所有的处理模块对应的实体设备可以为处理器。图6、图7所示的各装置均可以具有如图8所示的结构,当其中一种装置具有如图8所示的结构时,图8中的处理器和收发器实现前述对应该装置的装置实施例提供的处理模块和收发模块相同或相似的功能,图8中的存储器存储处理器执行上述处理报文的方法时需要调用的程序代码。其中,该收发器也可以用接收器和发送器代替,可以为相同或者不同的物理实体。为相同的物理实体时,可以统称为收发器,例如该收发器可以为射频(radio frequency,英文简称:RF)电路。所述存储器可以集成在所述处理器中,也可以与所述处理器分开设置。It should be noted that, in each embodiment of the present application (including the embodiments shown in FIG. 6 and FIG. 7 ), the physical devices corresponding to all transceiver modules may be transceivers, and the physical devices corresponding to all processing modules may be processing device. Each of the apparatuses shown in FIG. 6 and FIG. 7 may have the structure shown in FIG. 8 . When one of the apparatuses has the structure shown in FIG. 8 , the processor and transceiver in FIG. 8 implement the aforementioned corresponding apparatus. The processing module and the transceiver module provided by the apparatus embodiment of FIG. 8 have the same or similar functions, and the memory in FIG. 8 stores the program code that needs to be called when the processor executes the above method for processing packets. The transceiver may also be replaced by a receiver and a transmitter, which may be the same or different physical entities. When they are the same physical entity, they may be collectively referred to as transceivers, for example, the transceiver may be a radio frequency (radio frequency, English abbreviation: RF) circuit. The memory may be integrated in the processor, or may be provided separately from the processor.

上述本申请各实施例揭示的处理报文的方法可以应用于图8所示的处理器中,或者由图8所示的处理器实现。例如,在一些实施方式中,图8中的处理器可通过调用存储器存储的程序指令,上述处理器具体执行本申请实施例中的处理报文的方法时需要调用的程序代码。The methods for processing packets disclosed in the above embodiments of the present application may be applied to the processor shown in FIG. 8 or implemented by the processor shown in FIG. 8 . For example, in some embodiments, the processor in FIG. 8 may call program instructions stored in the memory, and the processor specifically executes the program code that needs to be called when the method for processing a message in the embodiments of the present application.

例如,当控制器具有如图8所示的结构时,图8中的存储器存储处理器执行上述由控制器执行处理报文的方法时需要调用的程序代码。具体来说,图8中的处理器能够调用存储器中的程序代码执行以下操作:For example, when the controller has the structure shown in FIG. 8 , the memory in FIG. 8 stores program codes that need to be called when the processor executes the above-mentioned method for processing a message by the controller. Specifically, the processor in Figure 8 is able to invoke program code in memory to perform the following operations:

确定段路由SR隧道标签与FlexE隧道的映射关系;Determine the mapping relationship between segment route SR tunnel labels and FlexE tunnels;

通过所述收发器向所述第一网络节点发送所述映射关系,以便所述第一网络节点根据所述映射关系,通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的报文,其中,所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。The mapping relationship is sent to the first network node through the transceiver, so that the first network node sends the SR tunnel label including the SR tunnel label to the second network node through the FlexE tunnel according to the mapping relationship message, wherein the FlexE tunnel is an end-to-end FlexE tunnel deployed between the first network node and the second network node.

又例如,当网络节点具有如图8所示的结构时,图8中的存储器存储处理器执行上述由网络节点执行处理报文的方法时需要调用的程序代码。具体来说,图8中的处理器能够调用存储器中的程序代码执行以下操作:For another example, when the network node has the structure shown in FIG. 8 , the memory in FIG. 8 stores program codes that need to be called when the processor executes the above-mentioned method for processing a message by the network node. Specifically, the processor in Figure 8 is able to invoke program code in memory to perform the following operations:

获取包括段路由SR隧道标签的报文;Obtain the packet including the segment route SR tunnel label;

基于所述SR隧道标签与灵活以太网FlexE隧道之间的映射关系,确定与所述SR隧道标签相映射的所述FlexE隧道;determining the FlexE tunnel mapped to the SR tunnel label based on the mapping relationship between the SR tunnel label and the flexible Ethernet FlexE tunnel;

控制所述收发器通过所述FlexE隧道向所述第二网络节点发送包括所述SR隧道标签的所述报文,其中,所述FlexE隧道为部署在所述第一网络节点和所述第二网络节点之间的端到端FlexE隧道。controlling the transceiver to send the packet including the SR tunnel label to the second network node through the FlexE tunnel, where the FlexE tunnel is deployed on the first network node and the second network node End-to-end FlexE tunnels between network nodes.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and module described above can refer to the corresponding process in the foregoing method embodiments, which is not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may be stored in a computer-readable storage medium.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product.

所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server, data center, etc., which includes one or more available media integrated. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.

以上对本申请所提供的技术方案进行了详细介绍,本申请中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The technical solutions provided by the present application have been introduced in detail above, and the principles and implementations of the present application have been described with specific examples in the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. At the same time, for those skilled in the art, according to the idea of the application, there will be changes in the specific implementation and application scope. To sum up, the content of this specification should not be construed as a limitation to the application.

Claims (29)

CN201810271880.4A2018-03-292018-03-29Method and device for processing messageActiveCN110324225B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202011213066.0ACN112491687B (en)2018-03-292018-03-29Method and device for processing message
CN201810271880.4ACN110324225B (en)2018-03-292018-03-29Method and device for processing message

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810271880.4ACN110324225B (en)2018-03-292018-03-29Method and device for processing message

Related Child Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011213066.0ADivisionCN112491687B (en)2018-03-292018-03-29Method and device for processing message

Publications (2)

Publication NumberPublication Date
CN110324225A CN110324225A (en)2019-10-11
CN110324225Btrue CN110324225B (en)2020-11-17

Family

ID=68110865

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN201810271880.4AActiveCN110324225B (en)2018-03-292018-03-29Method and device for processing message
CN202011213066.0AActiveCN112491687B (en)2018-03-292018-03-29Method and device for processing message

Family Applications After (1)

Application NumberTitlePriority DateFiling Date
CN202011213066.0AActiveCN112491687B (en)2018-03-292018-03-29Method and device for processing message

Country Status (1)

CountryLink
CN (2)CN110324225B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111181848B (en)*2018-11-092022-02-15中国电信股份有限公司Network fragmentation method, system, router and storage medium
CN112910771B (en)*2019-12-032023-08-01南京中兴新软件有限责任公司 Connection establishment method, device, equipment and storage medium
CN112929261B (en)*2019-12-052024-03-12中兴通讯股份有限公司Fiber breakage prevention method and device for segmented routing tunnel, entry node and storage medium
CN113381920B (en)*2020-03-092022-11-22中国移动通信有限公司研究院 A data transmission method, node and storage medium
CN111585842B (en)*2020-04-302021-08-24烽火通信科技股份有限公司Network quality monitoring and diagnosing method and system
CN115842696B (en)*2021-08-302025-08-22中国移动通信集团设计院有限公司 Communication method, device, and computer-readable storage medium
CN116346710B (en)*2021-12-222024-11-22华为技术有限公司 Data forwarding method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101656673A (en)*2009-09-172010-02-24华为技术有限公司Pseudo wire establishing method and node device
CN102469014A (en)*2010-11-162012-05-23中国移动通信集团公司Networking method for packet transport network (PTN) access node equipment chain and relevant equipment
CN104618150A (en)*2015-01-092015-05-13烽火通信科技股份有限公司Business configuration method and system under two layer-to-three layer business scene of PTN

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9225772B2 (en)*2011-09-262015-12-29Knoa Software, Inc.Method, system and program product for allocation and/or prioritization of electronic resources
WO2014152839A1 (en)*2013-03-142014-09-25Cisco Technology, Inc.Segment routing: pce driven dynamic setup of forwarding adjacencies and explicit path
CN112087386B (en)*2015-09-222024-01-02华为技术有限公司Message processing method, device and system
CN107612825B (en)*2017-08-042020-10-27华为技术有限公司Method and network device for establishing flexible Ethernet path

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101656673A (en)*2009-09-172010-02-24华为技术有限公司Pseudo wire establishing method and node device
CN102469014A (en)*2010-11-162012-05-23中国移动通信集团公司Networking method for packet transport network (PTN) access node equipment chain and relevant equipment
CN104618150A (en)*2015-01-092015-05-13烽火通信科技股份有限公司Business configuration method and system under two layer-to-three layer business scene of PTN

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于灵活以太网技术的传送网》;占治国;《电信快报》;20180110(第1期);第17-19页*

Also Published As

Publication numberPublication date
CN112491687A (en)2021-03-12
CN112491687B (en)2022-04-12
CN110324225A (en)2019-10-11

Similar Documents

PublicationPublication DateTitle
CN110324225B (en)Method and device for processing message
JP7079866B2 (en) Packet processing method and device
EP3154227B1 (en)Packet transmission method, node, path management server and storage medium
US20210176178A1 (en)Pseudowire protection using a standby pseudowire
KR102342286B1 (en) DCN message processing method, network device, and network system
CN102724118B (en)Label distribution method and device
CN112583690B (en)Tunnel configuration method, device, system, equipment and storage medium
WO2019214747A1 (en)Configuration method, data transmission method and apparatus
CN103391296B (en)A kind of controller, transponder and Path Setup method and system
CN111385165A (en)Method and device for configuring Seamless Bidirectional Forwarding Detection (SBFD) mechanism
CN102576353A (en)Systems and methods for fractional routing redundancy
CN103747499A (en) Method and apparatus for common control protocol for wired and wireless nodes
US11824685B2 (en)Method for implementing GRE tunnel, access point and gateway
CN109788018B (en)Cross-domain service intercommunication method, network equipment and storage medium
WO2016197950A1 (en)Route detection method, router device and system
WO2023130989A1 (en)Communication method and apparatus
JP7298606B2 (en) Communication system and communication method
CN116436729B (en) Message transmission method, networking system and access cloud gateway
CN110572326A (en)Method, device, network equipment and system for establishing forwarding path
CN107251517B (en)Access network system, method and device for processing data packet
CN102868606B (en)Method, primary route device and the system that VRRP heartbeat message sends
WO2021135490A1 (en)Access network system, transport method, and related apparatus
CN102347883A (en)Method and device for transmitting service through pseudo wire
CN115460141B (en) Network intercommunication method and device
CN116112540A (en)Service deployment method, device and system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp