CN115766570A - Protection group strategy-based dual-transmission redundancy method and storage medium - Google Patents
Protection group strategy-based dual-transmission redundancy method and storage medium Download PDFInfo
- Publication number
- CN115766570A CN115766570A CN202211537933.5A CN202211537933A CN115766570A CN 115766570 A CN115766570 A CN 115766570A CN 202211537933 A CN202211537933 A CN 202211537933A CN 115766570 A CN115766570 A CN 115766570A
- Authority
- CN
- China
- Prior art keywords
- message
- redundancy
- protection
- protection group
- path
- 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.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明的一种基于保护组策略的双发冗余方法及存储介质,涉及一种基于保护组复制流量形成多路径冗余备份,且通过冗余过滤策略丢弃冗余流量,以达到网络传输0丢包的方法。通过保护组方式,在发送网元和接收网元间除了正常传输路径外,建立备份传输通道;在报文中封装冗余保护标记和流量唯一性标识,将需要保护的流量复制出N份导入到保护组的多条路径中,从而达到关键流量在网络中的冗余传输,当任一路径因为带宽不足、流控策略或者链路异常等原因出现丢包时,也可以保证发送网元和接收网元之间报文传输的完整性。同时为了避免接收网元收到冗余报文,造成语音、视频或者数据重放,通过辨识和记录报文内的流量唯一性标识,丢弃重复的数据包,从而实现报文在网络间冗余传输,唯一接收的可靠性要求。
A protection group policy-based dual-send redundancy method and storage medium of the present invention relate to a protection group based on copying traffic to form a multi-path redundant backup, and discarding redundant traffic through a redundancy filtering strategy to achieve 0 network transmission The method of packet loss. Through the protection group mode, besides the normal transmission path, a backup transmission channel is established between the sending network element and the receiving network element; the redundant protection mark and the unique flow identifier are encapsulated in the message, and N copies of the flow to be protected are copied and imported Multiple paths to the protection group, so as to achieve redundant transmission of key traffic in the network. When packet loss occurs on any path due to insufficient bandwidth, traffic control policies, or link abnormalities, it can also ensure that the sending network element and Integrity of packet transmission between receiving network elements. At the same time, in order to prevent the receiving network element from receiving redundant messages, resulting in replay of voice, video or data, by identifying and recording the unique traffic identifier in the message, discarding duplicate data packets, so as to realize message redundancy between networks Transmit, only receive reliability requirements.
Description
技术领域technical field
本发明涉及计算机网络数据通信技术领域,具体涉及一种基于保护组策略的双发冗余方法。The invention relates to the technical field of computer network data communication, in particular to a dual-transmission redundancy method based on a protection group policy.
背景技术Background technique
网络流量在设备间传输时,因为链路带宽、设备缓存大小、策略控制以及硬件异常等原因;特别当网络流量需要通过4G/5G或者WiFi传输时,受到物体阻挡、湿度和温度以及雷电天气等原因,无线链路相比较有线链路更为不稳定,这些原因都会造成网络流量的丢包。在远程办公、物联网等场景下,如果丢失音视频报文或者控制信号,不仅会造成用户体验度降低,而且有重大的安全隐患,导致财产损失。所以,保障网络流量传输的0丢包率越来越被关注。When network traffic is transmitted between devices, due to reasons such as link bandwidth, device cache size, policy control, and hardware exceptions; especially when network traffic needs to be transmitted through 4G/5G or WiFi, it is blocked by objects, humidity and temperature, and lightning weather, etc. The reason is that the wireless link is more unstable than the wired link, and these reasons will cause the packet loss of the network traffic. In scenarios such as telecommuting and the Internet of Things, if audio and video messages or control signals are lost, not only will the user experience be reduced, but there will also be major security risks, resulting in property losses. Therefore, more and more attention has been paid to ensuring the zero packet loss rate of network traffic transmission.
当前广泛使用的保障网络流量传输的0丢包率的技术,可分为3类:Currently widely used technologies to ensure zero packet loss rate of network traffic transmission can be divided into three categories:
1. 设备冗余备份。在任一台设备故障的情况下,通过设备间切换,来保障网络流量传输丢包率。常用的技术手段有MC-LAG、VRRP、HSRP、堆叠。设备冗余备份的技术不仅要求成本高,而且设备故障切换必然产生丢包;1. Equipment redundancy backup. In the case of any device failure, switch between devices to ensure the packet loss rate of network traffic transmission. Common technical means include MC-LAG, VRRP, HSRP, and stacking. The technology of equipment redundancy backup not only requires high cost, but also equipment failure switch will inevitably cause packet loss;
2. 链路保护。传输链路之间形成保护关系,同一时间段仅有一条链路传输报文,通过BFD或者保活等机制检测链路状态,当链路异常时,切换到备用链路。常用的技术手段有链路聚合机制、快速重路由、保护组。但是,不可避免在链路切换过程中的丢包;2. Link protection. A protection relationship is formed between the transmission links. Only one link transmits packets at the same time period. The link status is detected through mechanisms such as BFD or keep-alive. When the link is abnormal, switch to the backup link. Common technical means include link aggregation mechanism, fast rerouting, and protection group. However, packet loss during link switching is inevitable;
3. 网络流量冗余传输。网络流量通过不同的传输路径,在发送网元和接收网元间传输N(N>1)份流量,接收网元过滤掉冗余的流量,保障任一时刻以及任一路径发生异常时,网元间总有正常的流量传输,从而达到0丢包率。采用的技术有TSN、PRP。但是,TSN和PRP协议均是通过扩展链路层字段和交互的方式,来实现网络流量冗余传输的,不利于广域网的应用。3. Redundant transmission of network traffic. Network traffic transmits N (N>1) copies of traffic between the sending network element and the receiving network element through different transmission paths, and the receiving network element filters out redundant traffic to ensure that the network There is always normal traffic transmission between cells, so as to achieve zero packet loss rate. The technologies used are TSN and PRP. However, both TSN and PRP protocols implement redundant transmission of network traffic by extending link layer fields and interacting, which is not conducive to wide area network applications.
无论是物联网还是语音、视频等APP应用,存在传输经过的网络节点多和传输协议类型复杂的情况,所以,有必要提供一种既可以支持多种协议类型,又避免因扩展字段带来不必要的带宽消耗;同时,尽可能减少组网成本,不存在保护切换过程中短暂丢包的流量冗余保护方法。Whether it is the Internet of Things or APP applications such as voice and video, there are many network nodes and complex transmission protocol types. Therefore, it is necessary to provide a protocol that can support multiple protocol types and avoid inconvenience caused by extended fields. Necessary bandwidth consumption; at the same time, reduce networking costs as much as possible, and there is no traffic redundancy protection method for transient packet loss during protection switching.
发明内容Contents of the invention
本发明提出的一种基于保护组策略的双发冗余方法,可至少解决上述方法之一。The invention proposes a protection group policy-based dual transmission redundancy method, which can solve at least one of the above-mentioned methods.
为实现上述目的,本发明采用了以下技术方案:To achieve the above object, the present invention adopts the following technical solutions:
一种基于保护组策略的双发冗余方法,包括以下步骤,A kind of dual-send redundancy method based on protection group strategy, comprises the following steps,
步骤1,在发送网元和接收网元之间建立多条传输路径:路径1,路径2,.....,路径N,N条路径的协议类型允许不同,并其作为保护组的成员路径;
步骤2,在发送网元的用户流量流入接口上使能冗余保护,且应用流量过滤策略和路由重定向策略,过滤出的流量被导入到冗余流量保护组;
在冗余流量保护组内,被保护的流量依次复制到保护组的每条成员路径上转发到接收网元;按照成员路径的传输协议类型,封装报文头时,设置报文头内的字段作为冗余保护标记和流量唯一性标识;In the redundant traffic protection group, the protected traffic is copied to each member path of the protection group in turn and forwarded to the receiving network element; according to the transmission protocol type of the member path, when encapsulating the packet header, set the fields in the packet header As a redundant protection mark and a unique identification of traffic;
当保护组中只要有一条成员路径正常,则保护组即为可用状态,不会因为其中成员路径异常引起保护切换而导致丢包;As long as one member path in the protection group is normal, the protection group is in an available state, and no packet loss will be caused by protection switching caused by abnormal member paths;
步骤3,被保护流量作为负载报文,根据保护组中成员路径的协议类型,封装报文头;在保护路径上,被保护流量的报文作为负载不允许修改,按照报文内封装的转发信息传输到接收网元;
步骤4,接收网元将路径1,路径2,.....,路径N设置到冗余选收组,使能冗余过滤;
步骤5,在接收网元上,当选收组成员收到报文,需要检测报文头内定义的字段值;对携带冗余保护标记位的报文,继续解析和记录流量唯一性标识,查询冗余过滤表;Step 5: On the receiving network element, when the selected member of the receiving group receives the message, it needs to detect the field value defined in the message header; for the message carrying the redundant protection flag bit, continue to analyze and record the unique identifier of the flow, and query Redundant filter table;
如果没有命中冗余过滤表内的记录,则说明接收的数据包为首个报文,网元上正常处理;If there is no record in the redundancy filter table, it means that the received data packet is the first packet, and it is processed normally on the network element;
如果命中冗余过滤表内的记录,则说明接收的数据包为冗余报文,网元已处理过一个相同的报文,丢弃当前报文。If the record in the redundancy filter table is matched, it means that the received data packet is a redundant packet, and the network element has already processed the same packet, and the current packet is discarded.
另一方面,本发明还公开一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如上述方法的步骤。On the other hand, the present invention also discloses a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned method.
由上述技术方案可知,本发明的基于保护组策略的双发冗余方法,涉及一种基于保护组复制流量形成多路径冗余备份,且通过冗余过滤策略丢弃冗余流量,以达到网络传输0丢包的方法。本发明方法,通过保护组方式,在发送网元和接收网元间除了正常传输路径外,建立备份传输通道;在报文中封装冗余保护标记和流量唯一性标识,将需要保护的流量复制出N份导入到保护组的多条路径中,从而达到关键流量在网络中的冗余传输,当任一路径因为带宽不足、流控策略或者链路异常等原因出现丢包时,也可以保证发送网元和接收网元之间报文传输的完整性。同时为了避免接收网元收到冗余报文,造成语音、视频或者数据重放,通过辨识和记录报文内的流量唯一性标识,丢弃重复的数据包,从而实现报文在网络间冗余传输,唯一接收的可靠性要求。It can be known from the above technical solution that the dual-transmission redundancy method based on the protection group policy of the present invention relates to a multi-path redundant backup based on the protection group replication traffic, and discards the redundant traffic through the redundancy filtering strategy to achieve network transmission. 0 method of packet loss. In the method of the present invention, a backup transmission channel is established between the sending network element and the receiving network element in addition to the normal transmission path through the protection group; the redundant protection mark and the unique flow identifier are encapsulated in the message, and the flow to be protected is copied N copies are imported to multiple paths in the protection group, so as to achieve redundant transmission of key traffic in the network. When packet loss occurs on any path due to insufficient bandwidth, traffic control policies, or link abnormalities, it can also guarantee Integrity of packet transmission between sending NE and receiving NE. At the same time, in order to prevent the receiving network element from receiving redundant messages, resulting in replay of voice, video or data, by identifying and recording the unique traffic identifier in the message, discarding duplicate data packets, so as to realize message redundancy between networks Transmit, only receive reliability requirements.
本发明提供了一种基于保护组策略复制流量形成多路径冗余备份,且通过冗余过滤策略丢弃冗余流量的方法。本发明体现在四个方面:1.使用保护组策略实现流量冗余保护,允许保护组的成员路径通过不同协议封装转发;2.保护组内只要有一个成员路径状态正常,保护组即为可用,不会因路径异常造成流量中断;3.不扩展报文字段,基于现有报文定义冗余保护标记和流量唯一性标识;4.接收网元过滤冗余流量,实现端到端的“多发收一”。The invention provides a method for duplicating traffic based on protection group policy to form multi-path redundant backup, and discarding redundant traffic through redundant filtering strategy. The present invention is embodied in four aspects: 1. Use the protection group policy to realize traffic redundancy protection, allowing member paths of the protection group to be encapsulated and forwarded through different protocols; 2. As long as one member path in the protection group is in normal state, the protection group is available , will not cause traffic interruption due to abnormal paths; 3. Do not expand the message field, and define redundant protection marks and traffic unique identifiers based on existing messages; 4. Receive network elements to filter redundant traffic to achieve end-to-end "multiple transmission" Receive one".
具体的说,本发明的有益效果是:Specifically, the beneficial effects of the present invention are:
本发明利用已有协议字段定义报文冗余保护标记和流量唯一性标识,避免扩展报文带来的带宽消耗;采用流量冗余备份方案,避免多设备保护带来的组网成本增大;多路径传输避免了异常保护切换的间隔中短暂丢包,实现了异常情况下的0丢包率。本发明方案中,利用保护组策略不仅能够实现多路径的冗余备份保护,且能够支持多种协议封装,满足二三层网络和NAT穿越等多种场景。The present invention uses existing protocol fields to define message redundancy protection marks and flow uniqueness marks, avoiding bandwidth consumption caused by extended messages; adopting flow redundancy backup schemes, avoiding increased networking costs caused by multi-device protection; Multi-path transmission avoids short-term packet loss during the interval of abnormal protection switching, and realizes zero packet loss rate under abnormal conditions. In the solution of the present invention, the use of the protection group strategy can not only realize the redundant backup protection of multiple paths, but also support multiple protocol encapsulation, and satisfy multiple scenarios such as
附图说明Description of drawings
图1为本发明实施例提供的基于保护组策略实现端到端“多发收一”的流量冗余保护方案的模型图;FIG. 1 is a model diagram of an end-to-end "multiple transmission and one reception" traffic redundancy protection scheme based on protection group policy provided by an embodiment of the present invention;
图2为本发明实施例提供的发送网元上基于保护组策略实现流量冗余发送的处理流程图;Fig. 2 is a processing flow chart of implementing redundant transmission of traffic based on a protection group policy on a sending network element provided by an embodiment of the present invention;
图3为本发明实施例提供的IPv4报文头中定义冗余保护标记和报文唯一性的字段;Fig. 3 defines the field of redundancy protection mark and message uniqueness in the IPv4 message header that the embodiment of the present invention provides;
图4为本发明实施例提供的IPv6报文头中定义冗余保护标记和报文唯一性的字段;Fig. 4 defines the field of redundancy protection mark and message uniqueness in the IPv6 message header that the embodiment of the present invention provides;
图5为本发明实施例提供的Ethernet报文头中定义冗余保护标记和报文唯一性的字段;Fig. 5 defines the fields of redundancy protection mark and message uniqueness in the Ethernet message header that the embodiment of the present invention provides;
图6为本发明实施例提供的接收网元上解析报文和过滤冗余报文的处理流程图;FIG. 6 is a processing flowchart of parsing messages and filtering redundant messages on a receiving network element provided by an embodiment of the present invention;
图7为本发明实施例提供的接收网元上冗余过滤表的建立、修改和老化的处理流程图。Fig. 7 is a processing flow chart of establishing, modifying and aging a redundancy filter table on a receiving network element provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments.
本发明实施例提供了一种基于保护组复制流量形成多路径冗余备份,且通过冗余过滤策略丢弃冗余流量,以达到网络传输0丢包的方法。The embodiment of the present invention provides a method for forming multi-path redundant backup based on protection group replication traffic, and discarding redundant traffic through redundancy filtering strategy, so as to achieve zero packet loss in network transmission.
图1描述了发送端A基于保护组策略发送冗余流量的过程,处理方法包括:Figure 1 describes the process of sender A sending redundant traffic based on the protection group policy. The processing methods include:
步骤S101、在发送端A和接收端B之间建立多条传输路径:路径1,路径2,路径3,3条路径的传输协议不同;Step S101, establishing multiple transmission paths between the sending end A and the receiving end B:
步骤S102、建立冗余流量保护组,路径1、路径2和路径3为保护组成员;Step S102, establishing a redundant traffic protection group,
步骤S103、在发送端A的用户流量流入接口上使能冗余保护;Step S103, enabling redundancy protection on the user traffic inflow interface of the sending end A;
步骤S104、在发送端A的用户流量流入接口上应用流量过滤策略和路由重定向策略,过滤出的流量被导入到冗余流量保护组;Step S104, applying a traffic filtering policy and a routing redirection policy on the user traffic inflow interface of the sending end A, and the filtered traffic is imported into the redundant traffic protection group;
在冗余流量保护组内,被保护的流量依次复制到保护组的每条成员路径上转发到接收网元;按照成员路径的传输协议类型,封装报文头时,设置报文头内的字段作为冗余保护标记和流量唯一性标识;In the redundant traffic protection group, the protected traffic is copied to each member path of the protection group in turn and forwarded to the receiving network element; according to the transmission protocol type of the member path, when encapsulating the packet header, set the fields in the packet header As a redundant protection mark and a unique identification of traffic;
步骤S105、接收网元将路径1、路径2和路径3设置到冗余选收组,使能冗余过滤;Step S105, the receiving network element sets
步骤S106、在接收网元上,当选收组成员收到报文,需要检测报文头内定义的字段值;对携带冗余保护标记位的报文,继续解析和记录流量唯一性标识,查询冗余过滤表;Step S106, on the receiving network element, when the member of the selected receiving group receives the message, it needs to detect the field value defined in the message header; for the message carrying the redundant protection flag bit, continue to analyze and record the unique identifier of the flow, and query Redundant filter table;
如果没有命中冗余过滤表内的记录,则说明接收的数据包为首个报文,网元上正常处理;If there is no record in the redundancy filter table, it means that the received data packet is the first packet, and it is processed normally on the network element;
如果命中冗余过滤表内的记录,则说明接收的数据包为冗余报文,网元已处理过一个相同的报文,丢弃当前报文。If the record in the redundancy filter table is matched, it means that the received data packet is a redundant packet, and the network element has already processed the same packet, and the current packet is discarded.
图2描述了发送端A基于保护组策略产生和发送冗余保护报文的过程,处理方法包括:Figure 2 describes the process of the sender A generating and sending redundant protection packets based on the protection group policy. The processing methods include:
步骤201、在发送端A的报文接入链路上使能冗余保护;Step 201, enabling redundancy protection on the message access link of the sending end A;
步骤202、在发送端A的报文接入链路上应用保护组策略;Step 202, apply the protection group policy on the message access link of the sending end A;
步骤203、基于保护组的流量过滤策略,过滤出需要冗余保护的报文;Step 203, based on the traffic filtering policy of the protection group, filter out the packets requiring redundant protection;
步骤204、将过滤出的报文重定向到保护组的成员链路;Step 204, redirecting the filtered message to a member link of the protection group;
步骤205、按照成员链路的协议类型,封装报文头,设置冗余保护标记字段和唯一性标识字段;通过链路发送报文。Step 205, according to the protocol type of the member link, encapsulate the message header, set the redundancy protection flag field and the unique identification field; send the message through the link.
图3颜色标识的字段被用来作为IPv4报文的冗余保护标记和唯一性标识,处理方法包括:The color-coded fields in Figure 3 are used as redundant protection marks and unique identifiers for IPv4 packets, and the processing methods include:
步骤301、对于基于IPv4协议转发的报文,设置IPv4的3 bits的标志字段中的PF位为1,作为报文中的冗余保护标记;Step 301, for the message forwarded based on the IPv4 protocol, the PF bit in the flag field of 3 bits of IPv4 is set to be 1, as the redundancy protection mark in the message;
步骤302、用全局计数器设置16 bits的标识字段;Step 302, set the identification field of 16 bits with the global counter;
步骤303、根据是否是分片报文,设置片偏移字段值。Step 303: Set the fragment offset field value according to whether the packet is fragmented or not.
图4颜色标识的字段被用来作为IPv6报文的冗余保护标记和唯一性标识,处理方法包括:The color-coded fields in Figure 4 are used as redundant protection marks and unique identifiers for IPv6 packets, and the processing methods include:
步骤401、对于基于IPv6协议转发的报文,IPv6转发报文中增加Fragment Header扩展头;Step 401, for the message forwarded based on the IPv6 protocol, the Fragment Header extension header is added in the IPv6 forwarded message;
步骤402、Fragment Header扩展头中的Res字段赋值为01,作为报文中的冗余保护标记;Step 402, the Res field in the Fragment Header extension header is assigned a value of 01, which is used as a redundancy protection mark in the message;
步骤403、用全局计数器设置Fragment Header中的标识符字段;Step 403, using the global counter to set the identifier field in the Fragment Header;
步骤404、根据是否是分片报文,设置Fragment Header的分片偏移值。Step 404, according to whether the message is a fragment, set the fragment offset value of the Fragment Header.
图5颜色标识的字段被用来作为Ethernet报文的冗余保护标记和唯一性标识,处理方法包括:The color-coded fields in Figure 5 are used as redundant protection marks and unique identifiers for Ethernet packets, and the processing methods include:
步骤501、对于基于Ethernet协议转发的报文,采用多层ETYPE+TAG封装的方式;Step 501, for the message forwarded based on the Ethernet protocol, adopt the multi-layer ETYPE+TAG encapsulation mode;
步骤502、最内层的ETYPE+TAG封装,ETYPE的值基于DATA中的协议类型设置;用全局计数器设置TAG字段值,作为报文唯一性标识;Step 502, the innermost ETYPE+TAG encapsulation, the value of ETYPE is set based on the protocol type in the DATA; the TAG field value is set with the global counter as the unique identifier of the message;
步骤503、次内层的ETYPE+TAG封装,ETYPE的值定义为0xA100,标识报文被用于冗余保护。Step 503, ETYPE+TAG encapsulation of the sub-inner layer, the value of ETYPE is defined as 0xA100, and the identification message is used for redundancy protection.
图6描述了接收端B接收冗余流量的过程,处理方法包括:Figure 6 describes the process of receiver B receiving redundant traffic, and the processing methods include:
步骤601、接收端B将路径1,路径2,......,路径N设置到冗余选收组,使能冗余过滤;Step 601, receiving end B sets
步骤602、冗余选收组成员解析链路上接收的报文,检测报文头内是否携带冗余保护标记;Step 602, members of the redundant selective receiving group analyze the message received on the link, and detect whether the message header carries a redundancy protection mark;
如果报文头内有冗余保护标记,则继续解析报文的唯一性标识字段,并查询系统内的冗余过滤表。如果冗余过滤表内已有唯一性标识记录,则说明收到的是冗余报文,将之丢弃;如果冗余过滤表内没有唯一性标识记录,则说明收到的不是冗余报文,继续处理;If there is a redundancy protection mark in the packet header, continue to analyze the unique identification field of the packet, and query the redundancy filtering table in the system. If there is a unique identification record in the redundancy filtering table, it means that the received redundant message is discarded; if there is no unique identification record in the redundant filtering table, it means that the received is not a redundant message , continue processing;
如果报文头内没有冗余保护标记,则说明是非冗余保护报文,按照正常流程处理。If there is no redundancy protection flag in the packet header, it means that it is a non-redundancy protection packet, and it is processed according to the normal process.
图7描述了为了避免链路异常时,冗余报文丢失,造成唯一性标识无法清空,引起后续基于唯一性标识过滤冗余报文的错误,接收端B的冗余过滤表老化过程,处理方法包括:Figure 7 describes the process of aging the redundancy filtering table of receiving end B in order to avoid the loss of redundant packets when the link is abnormal, causing the unique identifier to be unable to be cleared, causing subsequent errors in filtering redundant packets based on the unique identifier, and the aging process of the redundant filter table of receiver B. Methods include:
步骤701、冗余选收组成员链路接收到带有冗余保护标记的报文后,查询冗余过滤表;Step 701, after receiving the message with the redundancy protection flag, the member link of the redundant selective receiving group queries the redundancy filter table;
如果冗余过滤表中没有报文携带的唯一性标识,则增加条目,并且匹配次数加1;If there is no unique identifier carried by the message in the redundancy filter table, add an entry, and add 1 to the number of matches;
如果冗余过滤表中有报文携带的唯一性标识,则仅将匹配次数加1;If there is a unique identifier carried by the message in the redundancy filter table, only add 1 to the number of matches;
步骤702、系统启动循环定时器,周期性巡检冗余过滤表。每个巡检周期点,将每个唯一性标识记录的匹配次数加1,计算每个记录的匹配次数和冗余选收组成员链路数的差值;Step 702, the system starts a cycle timer, and periodically inspects the redundancy filter table. At each inspection cycle point, add 1 to the number of matches of each unique identification record, and calculate the difference between the number of matches of each record and the number of member links of the redundant selective receiving group;
如果差值大于2,则说明和冗余选收组的接收能力不匹配,出现了异常,需要删除冗余过滤表内的此条唯一性标识记录。If the difference is greater than 2, it means that the receiving capability of the redundant selective receiving group does not match, and an exception occurs, and this unique identification record in the redundant filter table needs to be deleted.
综上所述,本发明利用已有协议字段定义报文冗余保护标记和流量唯一性标识,避免扩展报文带来的带宽消耗;采用流量冗余备份方案,避免多设备保护带来的组网成本增大;多路径传输避免了异常保护切换的间隔中短暂丢包,实现了异常情况下的0丢包率。本发明方案中,利用保护组策略不仅能够实现多路径的冗余备份保护,且能够支持多种协议封装,满足二三层网络和NAT穿越等多种场景。To sum up, the present invention utilizes the existing protocol fields to define message redundancy protection marks and flow unique identifiers, avoiding bandwidth consumption caused by extended messages; adopting a flow redundancy backup scheme, avoiding grouping caused by multi-device protection Increased network costs; multi-path transmission avoids short-term packet loss during abnormal protection switching intervals, and achieves zero packet loss rate under abnormal conditions. In the solution of the present invention, the use of the protection group strategy can not only realize the redundant backup protection of multiple paths, but also support multiple protocol encapsulation, and satisfy multiple scenarios such as
又一方面,本发明还公开一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如上述任一方法的步骤。In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor is made to perform the steps of any one of the above methods.
再一方面,本发明还公开一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上述任一方法的步骤。In another aspect, the present invention also discloses a computer device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any one of the above methods A step of.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一方法的步骤。In yet another embodiment provided by the present application, a computer program product including instructions is also provided, which, when run on a computer, causes the computer to execute the steps of any one of the methods in the above embodiments.
可理解的是,本发明实施例提供的系统与本发明实施例提供的方法相对应,相关内容的解释、举例和有益效果可以参考上述方法中的相应部分。It can be understood that the system provided in the embodiment of the present invention corresponds to the method provided in the embodiment of the present invention, and the explanations, examples and beneficial effects of related content can refer to corresponding parts in the above method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。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 described in the foregoing embodiments Modifications are made to the recorded technical solutions, 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 embodiments of the present invention.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211537933.5A CN115766570B (en) | 2022-12-02 | 2022-12-02 | Dual-transmission redundancy method and storage medium based on protection group strategy |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211537933.5A CN115766570B (en) | 2022-12-02 | 2022-12-02 | Dual-transmission redundancy method and storage medium based on protection group strategy |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115766570A true CN115766570A (en) | 2023-03-07 |
| CN115766570B CN115766570B (en) | 2025-08-22 |
Family
ID=85342653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211537933.5A Active CN115766570B (en) | 2022-12-02 | 2022-12-02 | Dual-transmission redundancy method and storage medium based on protection group strategy |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115766570B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116418599A (en) * | 2023-06-09 | 2023-07-11 | 北京安帝科技有限公司 | Message detection method and device based on industrial switch |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090158300A1 (en) * | 2007-12-13 | 2009-06-18 | Moxa Technologies Co., Ltd. | Network redundancy check application program management method |
| CN101500262A (en) * | 2009-03-17 | 2009-08-05 | 西南大学 | Data redundance sending method for industrial wireless network |
| CN102075415A (en) * | 2010-12-15 | 2011-05-25 | 中兴通讯股份有限公司 | Multi-element network and cross network element complex section protection switching method |
| EP2562960A1 (en) * | 2011-08-23 | 2013-02-27 | Siemens Aktiengesellschaft | Redundant data transmission method in a communication network |
| US20130265869A1 (en) * | 2012-04-04 | 2013-10-10 | Futurewei Technologies, Inc. | Systems and Methods for Selective Data Redundancy Elimination for Resource Constrained Hosts |
| WO2016107210A1 (en) * | 2014-12-30 | 2016-07-07 | 国电南瑞科技股份有限公司 | Redundant industrial ethernet system with multistage packet filtering and service classification control |
| CN113973020A (en) * | 2020-07-22 | 2022-01-25 | 华为技术有限公司 | Multicast message sending method, device and system |
-
2022
- 2022-12-02 CN CN202211537933.5A patent/CN115766570B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090158300A1 (en) * | 2007-12-13 | 2009-06-18 | Moxa Technologies Co., Ltd. | Network redundancy check application program management method |
| CN101500262A (en) * | 2009-03-17 | 2009-08-05 | 西南大学 | Data redundance sending method for industrial wireless network |
| CN102075415A (en) * | 2010-12-15 | 2011-05-25 | 中兴通讯股份有限公司 | Multi-element network and cross network element complex section protection switching method |
| WO2012079399A1 (en) * | 2010-12-15 | 2012-06-21 | 中兴通讯股份有限公司 | Multiplex section protection switching method for multiple element network system and inter network elements |
| EP2562960A1 (en) * | 2011-08-23 | 2013-02-27 | Siemens Aktiengesellschaft | Redundant data transmission method in a communication network |
| US20130265869A1 (en) * | 2012-04-04 | 2013-10-10 | Futurewei Technologies, Inc. | Systems and Methods for Selective Data Redundancy Elimination for Resource Constrained Hosts |
| WO2016107210A1 (en) * | 2014-12-30 | 2016-07-07 | 国电南瑞科技股份有限公司 | Redundant industrial ethernet system with multistage packet filtering and service classification control |
| CN113973020A (en) * | 2020-07-22 | 2022-01-25 | 华为技术有限公司 | Multicast message sending method, device and system |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116418599A (en) * | 2023-06-09 | 2023-07-11 | 北京安帝科技有限公司 | Message detection method and device based on industrial switch |
| CN116418599B (en) * | 2023-06-09 | 2023-09-15 | 北京安帝科技有限公司 | Message detection method and device based on industrial switch |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115766570B (en) | 2025-08-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113709057B (en) | Network congestion notification method, proxy node, network node and computer equipment | |
| CN111953604B (en) | A method and device for providing business services for business flows | |
| CN107547366B (en) | Message forwarding method and device | |
| US20210226884A1 (en) | Router device using flow duplication | |
| US10063464B2 (en) | Protection switched source routing | |
| US7706281B2 (en) | Selecting paths in multi-homed transport-layer network associations | |
| EP4333408B1 (en) | Method and apparatus for managing routing disruptions in a computer network | |
| US8144579B2 (en) | Wireless performance improvement via client-free forward error correction | |
| WO2017152576A1 (en) | Packet forwarding method and apparatus | |
| CN102299835B (en) | Ring network failover method and device | |
| CN115766571B (en) | Dual-transmission redundancy method and storage medium based on traffic mirroring | |
| CN115765939B (en) | Redundancy protection method based on IPSec transmission and storage medium | |
| CN115884224B (en) | A reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications | |
| WO2023226633A1 (en) | Fault processing method, and related device and system | |
| CN115766570A (en) | Protection group strategy-based dual-transmission redundancy method and storage medium | |
| WO2025152824A1 (en) | Traffic scheduling method and apparatus, and communication node and storage medium | |
| CN114697254B (en) | Message processing method and related device | |
| CN115766572B (en) | Redundancy protection method and storage medium based on L2TP transmission | |
| US20240235986A1 (en) | Loop detection method and apparatus | |
| US20240089198A1 (en) | Packet processing method and system, and network device | |
| CN103856404A (en) | Looped network data transmission method, device and system | |
| WO2018149294A1 (en) | Method and apparatus for processing service flow in packet network | |
| CN117640538A (en) | Protection method and medium for realizing flow redundancy transmission by adding cushion layer after Ethernet head | |
| CN116962537A (en) | Data transmission methods, devices, network equipment and storage media | |
| CN118827450A (en) | Method, device, equipment, medium and product for processing flow detection information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |