CN115695340A - Message forwarding method and device and electronic equipment - Google Patents

Message forwarding method and device and electronic equipment Download PDF

Info

Publication number
CN115695340A
CN115695340A CN202211112372.4A CN202211112372A CN115695340A CN 115695340 A CN115695340 A CN 115695340A CN 202211112372 A CN202211112372 A CN 202211112372A CN 115695340 A CN115695340 A CN 115695340A
Authority
CN
China
Prior art keywords
node
message
message forwarding
redundant data
data packets
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.)
Pending
Application number
CN202211112372.4A
Other languages
Chinese (zh)
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.)
Shandong Inspur Science Research Institute Co Ltd
Original Assignee
Shandong Inspur Science Research Institute 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 Shandong Inspur Science Research Institute Co Ltd filed Critical Shandong Inspur Science Research Institute Co Ltd
Priority to CN202211112372.4A priority Critical patent/CN115695340A/en
Publication of CN115695340A publication Critical patent/CN115695340A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种报文转发方法、装置及电子设备,涉及通信网络技术领域,报文转发方法,包括:发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。本发明提供的报文转发方法、装置及电子设备,可以为传输链路提供高度确定性的可靠服务。

Figure 202211112372

The present invention provides a message forwarding method, device, and electronic equipment, which relate to the technical field of communication networks. The message forwarding method includes: sending first policy information to the head node of the message forwarding node, and controlling the message based on the first policy information The head node uses the information corresponding to multiple message forwarding paths with the same tail node to copy the data message from the head node to obtain a redundant data message, and then based on the multiple message forwarding paths sending the redundant data message to the tail node of the message forwarding node; sending second policy information to the tail node, so as to control the tail node to deduplicate the redundant data message. The message forwarding method, device and electronic equipment provided by the present invention can provide highly deterministic and reliable services for transmission links.

Figure 202211112372

Description

报文转发方法、装置及电子设备Message forwarding method, device and electronic equipment

技术领域technical field

本发明涉及通信网络技术领域,尤其涉及一种报文转发方法、装置及电子设备。The invention relates to the technical field of communication networks, in particular to a message forwarding method, device and electronic equipment.

背景技术Background technique

SRv6协议为传统专线业务提供了更为灵活高效的组网技术,其在IPv6(即:互联网协议第6版)报文中插入包含段ID(SID,Segment ID)表的段路由扩展头(SRH,SegmentRouting Header)以实现确定的路径转发,通过合理的路径规划和链路资源预留,可用实现带宽及时延的服务保障。随着SRv6技术在垂直行业中的推广,高可靠性、高可用性在远程工业自动化领域内也被认为是关键需求。SRv6协议提供的主备链路倒换机制虽然能提供一定程度的可靠性,但因为其任然存在主备链路倒换时延,难以提供高度确定性的可靠服务。因此,需要提供一种方法,可以为传输链路提供高度确定性的可靠服务。The SRv6 protocol provides a more flexible and efficient networking technology for traditional leased line services. It inserts a Segment Routing Extension Header (SRH , SegmentRouting Header) to achieve definite path forwarding, and through reasonable path planning and link resource reservation, service guarantee of bandwidth and delay can be realized. With the promotion of SRv6 technology in vertical industries, high reliability and high availability are also considered to be key requirements in the field of remote industrial automation. Although the active-standby link switching mechanism provided by the SRv6 protocol can provide a certain degree of reliability, it is difficult to provide highly deterministic and reliable services because of the delay of active-standby link switching. Therefore, there is a need to provide a method that can provide highly deterministic and reliable services for transmission links.

发明内容Contents of the invention

本发明提供一种报文转发方法、装置及电子设备,可以为传输链路提供高度确定性的可靠服务。The invention provides a message forwarding method, device and electronic equipment, which can provide highly deterministic and reliable services for transmission links.

本发明提供一种报文转发方法,包括:The present invention provides a message forwarding method, including:

发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;Sending the first policy information to the head node of the message forwarding node, based on the first policy information, controlling the head node to use the information corresponding to multiple message forwarding paths with the same tail node to transfer the data from the head node Copying the message to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths;

发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。Sending second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets.

根据本发明提供的报文转发方法,所述报文转发路径为SRv6路径,所述第一策略信息包括指示信息和具有相同尾节点的多条SRv6路径对应的信息;According to the message forwarding method provided by the present invention, the message forwarding path is an SRv6 path, and the first policy information includes indication information and information corresponding to multiple SRv6 paths with the same tail node;

所述基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,包括:Controlling the head node based on the first policy information to use information corresponding to multiple message forwarding paths with the same tail node to copy data packets from the head node to obtain redundant data packets, include:

基于所述指示信息控制所述头节点根据所述多条SRv6路径对应的信息,将来自所述头节点的数据报文进行复制,得到所述冗余的数据报文。Based on the indication information, the head node is controlled to copy the data packets from the head node according to the information corresponding to the multiple SRv6 paths, so as to obtain the redundant data packets.

根据本发明提供的报文转发方法,所述基于所述指示信息控制所述头节点根据所述多条SRv6路径对应的信息,将来自所述头节点的数据报文进行复制,得到所述冗余的数据报文,包括:According to the message forwarding method provided by the present invention, the head node is controlled based on the indication information to copy the data message from the head node according to the information corresponding to the multiple SRv6 paths, so as to obtain the redundant The remaining datagrams include:

基于所述指示信息控制所述头节点根据SRv6路径的数量,将来自所述头节点的数据报文进行复制,得到多条数据报文;Based on the indication information, control the head node to copy the data message from the head node according to the number of SRv6 paths to obtain multiple data messages;

在每条数据报文上添加与所述SRv6路径对应段ID表的段路由扩展头,得到所述冗余的数据报文。Adding the segment routing extension header corresponding to the segment ID table of the SRv6 path to each data message to obtain the redundant data message.

根据本发明提供的报文转发方法,所述冗余的数据报文中的报文总数量与所述第一策略信息中SRv6路径的数量相同。According to the packet forwarding method provided by the present invention, the total number of packets in the redundant data packets is the same as the number of SRv6 paths in the first policy information.

根据本发明提供的报文转发方法,每条报文转发路径包含有至少两个中间转发节点,且每个中间转发节点用于通过段ID表或者IPv6协议发送所述冗余的数据报文。According to the message forwarding method provided by the present invention, each message forwarding path includes at least two intermediate forwarding nodes, and each intermediate forwarding node is used to send the redundant data message through the segment ID table or IPv6 protocol.

根据本发明提供的报文转发方法,所述发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重,包括:According to the message forwarding method provided by the present invention, the sending the second policy information to the tail node to control the tail node to deduplicate the redundant data message includes:

发送第二策略信息至所述尾节点,以控制所述尾节点将所述冗余的数据报文中的非目标数据报文去除,其中,目标数据报文为所述冗余的数据报文中最先到达所述尾节点的数据报文。Sending second policy information to the tail node to control the tail node to remove non-target data packets from the redundant data packets, wherein the target data packets are the redundant data packets Among them, the data packets that arrive at the tail node first.

本发明还提供一种报文转发装置,包括:The present invention also provides a message forwarding device, including:

第一发送模块,用于发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;The first sending module is configured to send the first policy information to the head node of the message forwarding node, based on the first policy information, control the head node to use the information corresponding to multiple message forwarding paths with the same tail node to send Copying the data message from the head node to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths;

第二发送模块,用于发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。The second sending module is configured to send second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets.

本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述报文转发方法。The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, it realizes message forwarding according to any of the above method.

本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述报文转发方法。The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any one of the message forwarding methods described above can be implemented.

本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述报文转发方法。The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, any one of the message forwarding methods described above is implemented.

本发明提供的报文转发方法、装置及电子设备,通过发送第一策略信息至报文转发节点的头节点,控制头节点利用具有相同尾节点的多条报文转发路径对应的信息对数据报文进行复制得到冗余的数据报文,并基于多条报文转发路径,将冗余的数据报文下发至报文转发节点的尾节点,再由尾节点对冗余的数据报文进行去重。当首选路径出现故障时,能够在不改变中间转发节点的情况下,控制头节点通过主备链路倒换机制以实现逻辑传输链路的高可靠及高可用。In the message forwarding method, device and electronic equipment provided by the present invention, by sending the first policy information to the head node of the message forwarding node, the control head node uses the information corresponding to multiple message forwarding paths with the same tail node to send the data packet The redundant data message is obtained by copying the text, and based on multiple message forwarding paths, the redundant data message is sent to the tail node of the message forwarding node, and then the redundant data message is processed by the tail node. deduplication. When the preferred path fails, the control head node can achieve high reliability and high availability of the logical transmission link through the active-standby link switching mechanism without changing the intermediate forwarding node.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.

图1是本发明提供的报文转发方法的流程示意图;Fig. 1 is a schematic flow chart of the message forwarding method provided by the present invention;

图2是本发明提供的策略控制节点以及报文转发节点的示意图;Fig. 2 is a schematic diagram of a policy control node and a message forwarding node provided by the present invention;

图3是本发明提供的报文转发装置的结构示意图;Fig. 3 is a schematic structural diagram of a message forwarding device provided by the present invention;

图4是本发明提供的电子设备的结构示意图。Fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

下面结合图1-图4描述本发明的报文转发方法、装置及电子设备。The message forwarding method, device and electronic equipment of the present invention will be described below with reference to FIGS. 1-4 .

如图1所示,本发明提供的报文转发方法,包括:As shown in Figure 1, the message forwarding method provided by the present invention includes:

步骤110、发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点。Step 110: Send the first policy information to the head node of the message forwarding node, based on the first policy information, control the head node to use the information corresponding to multiple message forwarding paths with the same tail node, and send information from the head node The data message of the node is copied to obtain a redundant data message, and then the redundant data message is sent to the tail node of the message forwarding node based on the multiple message forwarding paths.

可以理解的是,本发明提供的方法应用于图2所示的策略控制节点210,策略控制节点210将策略发送至报文转发节点,控制报文转发节点进行数据报文的转发。It can be understood that the method provided by the present invention is applied to the policy control node 210 shown in FIG. 2 . The policy control node 210 sends the policy to the message forwarding node, and controls the message forwarding node to forward the data message.

报文转发节点包含有头节点220、中间转发节点240和尾节点230。在报文转发节点中,头节点220、中间转发节点240和尾节点230依次通信连接。The packet forwarding nodes include a head node 220 , an intermediate forwarding node 240 and a tail node 230 . Among the packet forwarding nodes, the head node 220, the intermediate forwarding node 240 and the tail node 230 are sequentially connected by communication.

冗余的数据报文中包含有多个相同的数据报文。Redundant data packets contain multiple identical data packets.

步骤120、发送第二策略信息至所述尾节点230,以控制所述尾节点230对所述冗余的数据报文去重。Step 120, sending second policy information to the tail node 230, so as to control the tail node 230 to deduplicate the redundant data packets.

可以理解的是,头节点220将冗余的数据报文发送至尾节点230后,尾节点230将冗余的数据报文中重复的数据报文去除,相同的数据报文只保留一个。It can be understood that, after the head node 220 sends redundant data packets to the tail node 230, the tail node 230 removes duplicate data packets from the redundant data packets, and only keeps one identical data packet.

在一些实施例中,所述报文转发路径为SRv6(即:IPv6的段路由)路径,所述第一策略信息包括指示信息和具有相同尾节点230的多条SRv6路径对应的信息;In some embodiments, the message forwarding path is an SRv6 (ie: IPv6 segment routing) path, and the first policy information includes indication information and information corresponding to multiple SRv6 paths with the same tail node 230;

所述基于所述第一策略信息控制所述头节点220利用具有相同尾节点230的多条报文转发路径对应的信息,将来自所述头节点220的数据报文进行复制得到冗余的数据报文,包括:Controlling the head node 220 based on the first policy information to use information corresponding to multiple message forwarding paths with the same tail node 230 to copy data packets from the head node 220 to obtain redundant data messages, including:

基于所述指示信息控制所述头节点220根据所述多条SRv6路径对应的信息,将来自所述头节点220的数据报文进行复制,得到所述冗余的数据报文。Based on the indication information, the head node 220 is controlled to copy the data packets from the head node 220 according to the information corresponding to the multiple SRv6 paths, so as to obtain the redundant data packets.

可以理解的是,第一策略信息包含有多条SRv6路径外,还可以包含有针对该条策略的数据报文传输是否启用冗余发送的指示信息。It can be understood that, in addition to including a plurality of SRv6 paths, the first policy information may also include indication information of whether redundant sending is enabled for data packet transmission of the policy.

当第一策略信息中包含有上述指示信息,则可以控制头节点220进行数据报文复制,以用于数据报文的冗余发送。When the first policy information includes the above indication information, the head node 220 may be controlled to replicate the data message for redundant sending of the data message.

当策略控制节点210下发的策略中不包含有上述的指示信息,则头节点220无需启用冗余发送,头节点220在接收到策略控制节点210发送的数据报文,直接将接收到的数据报文发送至尾节点230即可。When the policy issued by the policy control node 210 does not contain the above-mentioned instruction information, then the head node 220 does not need to enable redundant sending, and the head node 220 will directly send the received data message after receiving the data message sent by the policy control node 210 It only needs to send the message to the tail node 230 .

进一步,第一策略信息中还包含有筛选条件,控制头节点220基于筛选条件,从头节点220所接收的数据报文中筛选出满足筛选条件的数据报文进行复制,以实现冗余发送。Further, the first policy information also includes a filtering condition, and based on the filtering condition, the control head node 220 selects data packets satisfying the filtering condition from the data packets received by the head node 220 and copies them, so as to realize redundant sending.

在一些实施例中,所述基于所述指示信息控制所述头节点220根据所述多条SRv6路径对应的信息,将来自所述头节点220的数据报文进行复制,得到所述冗余的数据报文,包括:In some embodiments, based on the indication information, the head node 220 is controlled to copy the data packets from the head node 220 according to the information corresponding to the multiple SRv6 paths, so as to obtain the redundant Datagrams, including:

基于所述指示信息控制所述头节点220根据SRv6路径的数量,将来自所述头节点220的数据报文进行复制,得到多条数据报文;Controlling the head node 220 to copy the data packets from the head node 220 according to the number of SRv6 paths based on the indication information to obtain multiple data packets;

在每条数据报文上添加与所述SRv6路径对应段ID(即:身份识别号)表的段路由扩展头(SRH,Segment Routing Header),得到所述冗余的数据报文。Adding a Segment Routing Header (SRH, Segment Routing Header) corresponding to the segment ID (ie, identification number) table of the SRv6 path to each data message to obtain the redundant data message.

可以理解的是,段ID表,也即是SID(即:Segment ID)表;第一策略信息中包含有具有相同尾节点230的多条SRv6路径,基于第一策略信息中的SRv6路径对应的信息,可以确定SRv6路径的数量。It can be understood that the segment ID table, that is, the SID (ie: Segment ID) table; the first policy information contains multiple SRv6 paths with the same tail node 230, based on the SRv6 paths in the first policy information corresponding to information, the number of SRv6 paths can be determined.

在复制数据报文结束后,为每个数据报文打上第一策略信息中SRv6路径对应的段ID表的段路由扩展头,得到冗余的数据报文。After copying the data message, mark each data message with the segment routing extension header of the segment ID table corresponding to the SRv6 path in the first policy information, to obtain redundant data messages.

在一些实施例中,所述冗余的数据报文中的报文总数量与所述第一策略信息中SRv6路径的数量相同。In some embodiments, the total number of packets in the redundant data packets is the same as the number of SRv6 paths in the first policy information.

可以理解的是,头节点220对满足第一策略信息中的筛选条件的数据报文进行复制,复制的副本数量等于策略控制节点210下发的第一策略信息中SRv6路径数量减一,即复制后的数据报文个数与第一策略信息中SRv6路径的数量相等。It can be understood that, the head node 220 copies the data packets that meet the screening conditions in the first policy information, and the number of copied copies is equal to the number of SRv6 paths in the first policy information sent by the policy control node 210 minus one, that is, copying The number of subsequent data packets is equal to the number of SRv6 paths in the first policy information.

在一些实施例中,In some embodiments,

每条报文转发路径包含有至少两个中间转发节点240,且每个中间转发节点240用于通过段ID表或者IPv6协议发送所述冗余的数据报文。Each message forwarding path includes at least two intermediate forwarding nodes 240, and each intermediate forwarding node 240 is configured to send the redundant data message through a segment ID table or IPv6 protocol.

可以理解的是,报文转发节点包含多组中间转发节点240,每一组中间转发节点240的数量为1个或者多个。每一组中间转发节点240对应一条SRv6路径。It can be understood that the message forwarding node includes multiple groups of intermediate forwarding nodes 240, and the number of each group of intermediate forwarding nodes 240 is one or more. Each group of intermediate forwarding nodes 240 corresponds to one SRv6 path.

中间转发节点240支持SRv6协议或者仅支持IPv6协议。若中间转发节点240支持SRv6协议,则中间转发节点240按照段路由扩展头中SID标的指示将冗余的数据报文转发至尾节点230;若中间转发节点240仅支持IPv6协议,则中间转发节点240按照IPv6协议将冗余的数据报文转发至尾节点230。The intermediate forwarding node 240 supports the SRv6 protocol or only supports the IPv6 protocol. If the intermediate forwarding node 240 supports the SRv6 protocol, then the intermediate forwarding node 240 forwards redundant data packets to the tail node 230 according to the indication of the SID mark in the segment routing extension header; if the intermediate forwarding node 240 only supports the IPv6 protocol, the intermediate forwarding node The 240 forwards the redundant data packets to the tail node 230 according to the IPv6 protocol.

在一些实施例中,所述发送第二策略信息至所述尾节点230,以控制所述尾节点230对所述冗余的数据报文去重,包括:In some embodiments, the sending the second policy information to the tail node 230 to control the tail node 230 to deduplicate the redundant data packets includes:

发送第二策略信息至所述尾节点230,以控制所述尾节点230将所述冗余的数据报文中的非目标数据报文去除,其中,目标数据报文为所述冗余的数据报文中最先到达所述尾节点230的数据报文。sending the second policy information to the tail node 230 to control the tail node 230 to remove non-target data packets from the redundant data packets, wherein the target data packets are the redundant data Among the packets, the data packets arriving at the tail node 230 first.

可以理解的是,当尾节点230接收到策略控制节点210下发的第二策略信息,对所有来自目标头节点220的冗余的数据报文执行去重。具体地,尾节点230直接根据本地段ID表指示,剥去段路由扩展头,转发最先到达的数据报文。当其他数据报文到达时,执行丢弃动作,不予转发。It can be understood that when the tail node 230 receives the second policy information issued by the policy control node 210 , it performs deduplication on all redundant data packets from the target head node 220 . Specifically, the tail node 230 strips off the segment routing extension header directly according to the indication of the local segment ID table, and forwards the first arriving data message. When other data packets arrive, they will be discarded and not forwarded.

进一步,可以基于哈希运算识别、唯一标识识别等方式对冗余的数据报文中相同报文进行识别,在识别到相同数据报文后,将相同数据报文中的非目标数据报文去除。Further, the same message in the redundant data message can be identified based on methods such as hash operation identification and unique identification identification, and after the same data message is identified, the non-target data message in the same data message is removed .

综上所述,本发明提供的报文转发方法,包括:发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。In summary, the message forwarding method provided by the present invention includes: sending the first policy information to the head node of the message forwarding node, and controlling the head node to use multiple messages with the same tail node based on the first policy information. Information corresponding to the message forwarding path, copying the data message from the head node to obtain a redundant data message, and then based on the multiple message forwarding paths, sending the redundant data message to the An tail node of the packet forwarding node; sending second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets.

在本发明提供的报文转发方法中,通过发送第一策略信息至报文转发节点的头节点,控制头节点利用具有相同尾节点的多条报文转发路径对应的信息对数据报文进行复制得到冗余的数据报文,并基于多条报文转发路径,将冗余的数据报文下发至报文转发节点的尾节点,再由尾节点对冗余的数据报文进行去重。当首选路径出现故障时,能够在不改变中间转发节点的情况下,控制头节点通过主备链路倒换机制以实现逻辑传输链路的高可靠及高可用。In the message forwarding method provided by the present invention, by sending the first policy information to the head node of the message forwarding node, the control head node uses the information corresponding to multiple message forwarding paths with the same tail node to copy the data message Redundant data packets are obtained, and based on multiple message forwarding paths, the redundant data packets are sent to the tail node of the message forwarding node, and then the redundant data packets are deduplicated by the tail node. When the preferred path fails, the control head node can achieve high reliability and high availability of the logical transmission link through the active-standby link switching mechanism without changing the intermediate forwarding node.

下面对本发明提供的报文转发装置进行描述,下文描述的报文转发装置与上文描述的报文转发方法可相互对应参照。The message forwarding device provided by the present invention is described below, and the message forwarding device described below and the message forwarding method described above can be referred to in correspondence.

如图3所示,本发明还提供一种报文转发装置300,包括:As shown in Figure 3, the present invention also provides a message forwarding device 300, including:

第一发送模块310,用于发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;The first sending module 310 is configured to send the first policy information to the head node of the message forwarding node, and control the head node to use information corresponding to multiple message forwarding paths with the same tail node based on the first policy information, Copying the data message from the head node to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths ;

第二发送模块320,用于发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。The second sending module 320 is configured to send second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets.

下面对本发明提供的电子设备、计算机程序产品及存储介质进行描述,下文描述的电子设备、计算机程序产品及存储介质与上文描述的报文转发方法可相互对应参照。The electronic device, computer program product, and storage medium provided by the present invention are described below, and the electronic device, computer program product, and storage medium described below and the message forwarding method described above can be referred to in correspondence.

图4示例了一种电子设备的实体结构示意图,如图4所示,该电子设备可以包括:处理器(processor)410、通信接口(Communications Interface)420、存储器(memory)430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。处理器410可以调用存储器430中的逻辑指令,以执行报文转发方法,该方法包括:FIG. 4 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 4, the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, Wherein, the processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can invoke logic instructions in the memory 430 to execute the message forwarding method, and the method includes:

发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;Sending the first policy information to the head node of the message forwarding node, based on the first policy information, controlling the head node to use the information corresponding to multiple message forwarding paths with the same tail node to transfer the data from the head node Copying the message to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths;

发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。Sending second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets.

此外,上述的存储器430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above logic instructions in the memory 430 may be implemented in the form of software function units and be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的报文转发方法,该方法包括:On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can Executing the message forwarding method provided by each of the above methods, the method includes:

发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;Sending the first policy information to the head node of the message forwarding node, based on the first policy information, controlling the head node to use the information corresponding to multiple message forwarding paths with the same tail node to transfer the data from the head node Copying the message to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths;

发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。Sending second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets.

又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的报文转发方法,该方法包括:In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the message forwarding method provided by the above-mentioned methods is implemented, and the method includes :

发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;Sending the first policy information to the head node of the message forwarding node, based on the first policy information, controlling the head node to use the information corresponding to multiple message forwarding paths with the same tail node to transfer the data from the head node Copying the message to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths;

发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。Sending second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1.一种报文转发方法,其特征在于,包括:1. A message forwarding method, characterized in that, comprising: 发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;Sending the first policy information to the head node of the message forwarding node, based on the first policy information, controlling the head node to use the information corresponding to multiple message forwarding paths with the same tail node to transfer the data from the head node Copying the message to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths; 发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。Sending second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets. 2.根据权利要求1所述的报文转发方法,其特征在于,所述报文转发路径为SRv6路径,所述第一策略信息包括指示信息和具有相同尾节点的多条SRv6路径对应的信息;2. The message forwarding method according to claim 1, wherein the message forwarding path is an SRv6 path, and the first policy information includes indication information and information corresponding to multiple SRv6 paths with the same tail node ; 所述基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,包括:Controlling the head node based on the first policy information to use information corresponding to multiple message forwarding paths with the same tail node to copy data packets from the head node to obtain redundant data packets, include: 基于所述指示信息控制所述头节点根据所述多条SRv6路径对应的信息,将来自所述头节点的数据报文进行复制,得到所述冗余的数据报文。Based on the indication information, the head node is controlled to copy the data packets from the head node according to the information corresponding to the multiple SRv6 paths, so as to obtain the redundant data packets. 3.根据权利要求2所述的报文转发方法,其特征在于,所述基于所述指示信息控制所述头节点根据所述多条SRv6路径对应的信息,将来自所述头节点的数据报文进行复制,得到所述冗余的数据报文,包括:3. The message forwarding method according to claim 2, wherein the head node is controlled based on the indication information to forward the datagram from the head node according to the information corresponding to the multiple SRv6 paths The text is copied to obtain the redundant data message, including: 基于所述指示信息控制所述头节点根据SRv6路径的数量,将来自所述头节点的数据报文进行复制,得到多条数据报文;Based on the indication information, control the head node to copy the data message from the head node according to the number of SRv6 paths to obtain multiple data messages; 在每条数据报文上添加与所述SRv6路径对应段ID表的段路由扩展头,得到所述冗余的数据报文。Adding the segment routing extension header corresponding to the segment ID table of the SRv6 path to each data message to obtain the redundant data message. 4.根据权利要求3所述的报文转发方法,其特征在于,所述冗余的数据报文中的报文总数量与所述第一策略信息中SRv6路径的数量相同。4. The packet forwarding method according to claim 3, wherein the total number of packets in the redundant data packets is the same as the number of SRv6 paths in the first policy information. 5.根据权利要求1所述的报文转发方法,其特征在于,每条报文转发路径包含有至少两个中间转发节点,且每个中间转发节点用于通过段ID表或者IPv6协议发送所述冗余的数据报文。5. message forwarding method according to claim 1, it is characterized in that, each message forwarding path comprises at least two intermediate forwarding nodes, and each intermediate forwarding node is used for sending all information by segment ID table or IPv6 protocol redundant datagrams. 6.根据权利要求1-5任一项所述的报文转发方法,其特征在于,所述发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重,包括:6. The message forwarding method according to any one of claims 1-5, wherein the sending of the second policy information to the tail node is to control the tail node's response to the redundant datagram Text deduplication, including: 发送第二策略信息至所述尾节点,以控制所述尾节点将所述冗余的数据报文中的非目标数据报文去除,其中,目标数据报文为所述冗余的数据报文中最先到达所述尾节点的数据报文。Sending second policy information to the tail node to control the tail node to remove non-target data packets from the redundant data packets, where the target data packets are the redundant data packets Among them, the data packets that arrive at the tail node first. 7.一种报文转发装置,其特征在于,包括:7. A message forwarding device, characterized in that it comprises: 第一发送模块,用于发送第一策略信息至报文转发节点的头节点,基于所述第一策略信息控制所述头节点利用具有相同尾节点的多条报文转发路径对应的信息,将来自所述头节点的数据报文进行复制得到冗余的数据报文,再基于所述多条报文转发路径将所述冗余的数据报文发送至所述报文转发节点的尾节点;The first sending module is configured to send the first policy information to the head node of the message forwarding node, and control the head node to use the information corresponding to multiple message forwarding paths with the same tail node based on the first policy information to send Copying the data message from the head node to obtain a redundant data message, and then sending the redundant data message to the tail node of the message forwarding node based on the multiple message forwarding paths; 第二发送模块,用于发送第二策略信息至所述尾节点,以控制所述尾节点对所述冗余的数据报文去重。The second sending module is configured to send second policy information to the tail node, so as to control the tail node to deduplicate the redundant data packets. 8.一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至6任一项所述报文转发方法。8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor according to claim 1 is implemented when executing the program. The message forwarding method described in any one of to 6. 9.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述报文转发方法。9. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the message forwarding method according to any one of claims 1 to 6 is implemented. 10.一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述报文转发方法的步骤。10. A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the steps of the message forwarding method according to any one of claims 1 to 6 are realized.
CN202211112372.4A 2022-09-13 2022-09-13 Message forwarding method and device and electronic equipment Pending CN115695340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211112372.4A CN115695340A (en) 2022-09-13 2022-09-13 Message forwarding method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211112372.4A CN115695340A (en) 2022-09-13 2022-09-13 Message forwarding method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115695340A true CN115695340A (en) 2023-02-03

Family

ID=85063366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211112372.4A Pending CN115695340A (en) 2022-09-13 2022-09-13 Message forwarding method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115695340A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106922008A (en) * 2017-03-06 2017-07-04 重庆邮电大学 A kind of IPv6 wireless sense network multi-path transmission methods based on RPL Routing Protocols
CN108173755A (en) * 2017-12-08 2018-06-15 同济大学 A Frame Replication and Elimination Method for Time Sensitive Networks
CN109561021A (en) * 2017-09-25 2019-04-02 华为技术有限公司 A kind of method and the network equipment of message forwarding
CN109714272A (en) * 2018-12-29 2019-05-03 苏州睿安芯微电子有限公司 A method of enhancing network stabilization and real-time
CN110808816A (en) * 2019-11-05 2020-02-18 中国铁道科学研究院集团有限公司通信信号研究所 Railway train-ground redundant wireless data communication method
CN111953604A (en) * 2019-05-17 2020-11-17 华为技术有限公司 A method and apparatus for providing business services for business flows
CN114513864A (en) * 2020-10-27 2022-05-17 华为技术有限公司 Multipath transmission method and communication device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106922008A (en) * 2017-03-06 2017-07-04 重庆邮电大学 A kind of IPv6 wireless sense network multi-path transmission methods based on RPL Routing Protocols
CN109561021A (en) * 2017-09-25 2019-04-02 华为技术有限公司 A kind of method and the network equipment of message forwarding
CN113114566A (en) * 2017-09-25 2021-07-13 华为技术有限公司 Message forwarding method and network equipment
CN113839871A (en) * 2017-09-25 2021-12-24 华为技术有限公司 Method and network device for message forwarding
CN108173755A (en) * 2017-12-08 2018-06-15 同济大学 A Frame Replication and Elimination Method for Time Sensitive Networks
CN109714272A (en) * 2018-12-29 2019-05-03 苏州睿安芯微电子有限公司 A method of enhancing network stabilization and real-time
CN111953604A (en) * 2019-05-17 2020-11-17 华为技术有限公司 A method and apparatus for providing business services for business flows
CN110808816A (en) * 2019-11-05 2020-02-18 中国铁道科学研究院集团有限公司通信信号研究所 Railway train-ground redundant wireless data communication method
CN114513864A (en) * 2020-10-27 2022-05-17 华为技术有限公司 Multipath transmission method and communication device

Similar Documents

Publication Publication Date Title
US10693765B2 (en) Failure protection for traffic-engineered bit indexed explicit replication
CN113114566B (en) Message forwarding method and network equipment
US11811872B2 (en) Reducing distributed storage operation latency using segment routing techniques
EP2676411B1 (en) Method and system for classification and management of inter-blade network traffic in a blade server
EP1019833B1 (en) Mechanism for packet field replacement in a multi-layered switched network element
WO2017206793A1 (en) Method and system for creating service function chaining
CN100459517C (en) Method and apparatus for self-configuring routing devices in a network
CN107171977A (en) Message forwarding method and device
EP2731313A1 (en) Distributed cluster processing system and message processing method thereof
CN102823205A (en) Aggregating data traffic from access domains
CN103944828A (en) Method and equipment for transmitting protocol messages
WO2022253087A1 (en) Data transmission method, node, network manager, and system
CN106059791A (en) Business link switching method and storage device in storage system
US20200028779A1 (en) Packet processing method and apparatus
EP3270552B1 (en) Method, system, and apparatus for reducing the size of route updates
CN102355400B (en) Method and intersecting nodes for processing cross-ring services
CN113364679B (en) Segmented routing based forwarding control method, message forwarding method and device
JP7685076B2 (en) Message processing method, apparatus, network device and medium
CN110417707A (en) Data transmission protection method, device, system and computer-readable storage medium
CN115695340A (en) Message forwarding method and device and electronic equipment
WO2022206480A1 (en) Data packet sending method and device
CN104796276B (en) A kind of link switch-over method and system
JP2023145059A (en) Packet transfer device, packet transfer method, and packet transfer system
CN103763170B (en) Looped network protecting method and device
WO2016068238A1 (en) Network control system, control device, network information management method, and program

Legal Events

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