Dual-transmission redundancy method and storage medium based on protection group strategy
By establishing multi-path redundant backups in the network and filtering redundant traffic on the receiving end, the protection group policy solves the problem of high packet loss rate in network transmission, realizes packet loss-free network transmission, reduces bandwidth consumption and networking costs, and is suitable for a variety of network environments.
Patent Information
- Application Number
- CN202211537933.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-02
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-12-02
AI Technical Summary
When the prior art ensures the zero packet loss rate of network traffic transmission, there are problems such as high redundant backup cost of equipment, inevitable packet loss during link switching, and protocol expansion is not suitable for wide area networks, especially in wireless networks with poor stability.
The dual-send redundancy method based on protection group policy is adopted. By establishing multiple transmission paths between the sending network element and the receiving network element, copying and encapsulating packets with redundant protection marks and traffic uniqueness identification, multi-path redundant backup is realized, and redundant traffic is filtered at the receiving end to avoid packet loss.
It realizes network transmission without packet loss in abnormal situations, reduces bandwidth consumption and networking costs, supports multiple protocol types, and is suitable for a variety of network scenarios.
Smart Images

Figure CN115766570B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer network data communication, and in particular to a dual-transmission redundancy method based on a protection group strategy. Background Art
[0002] When network traffic is transmitted between devices, it can be affected by factors such as link bandwidth, device cache size, policy controls, and hardware anomalies. Especially when network traffic needs to be transmitted via 4G / 5G or WiFi, wireless links are more unstable than wired links due to obstructions, humidity, temperature, and lightning. These factors can all cause packet loss. In scenarios such as remote work and the Internet of Things, the loss of audio, video, or control signals not only reduces user experience but also poses a significant security risk and can lead to financial loss. Therefore, ensuring zero packet loss in network traffic transmission is becoming increasingly important.
[0003] Currently, widely used technologies to ensure zero packet loss in network traffic transmission can be divided into three categories:
[0004] 1. Device redundancy. In the event of a device failure, network traffic transmission packet loss is minimized by switching between devices. Commonly used technologies include MC-LAG, VRRP, HSRP, and stacking. Device redundancy is not only costly, but also inevitably results in packet loss during device failure switching.
[0005] 2. Link protection. A protection relationship is formed between transmission links, with only one link transmitting packets at a time. Link status is monitored using mechanisms such as BFD or keepalive. When a link fails, the link switches to a backup link. Commonly used technologies include link aggregation, fast rerouting, and protection groups. However, packet loss during link switching is unavoidable.
[0006] 3. Redundant network traffic transmission. Network traffic is transmitted between the sending and receiving NEs over different transmission paths, with N (N > 1) copies of the traffic transmitted. The receiving NE filters out redundant traffic, ensuring that normal traffic is always transmitted between NEs even when an anomaly occurs on any path, achieving zero packet loss. Technologies used include Transmission Network (TSN) and Public Transport Protocol (PRP). However, both TSN and PRP protocols achieve redundant network traffic transmission through extended link layer fields and interactions, which is not conducive to wide area network applications.
[0007] 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 traffic redundancy protection method that can support multiple protocol types while avoiding unnecessary bandwidth consumption due to extended fields; at the same time, it should minimize networking costs and avoid short-term packet loss during protection switching. Summary of the Invention
[0008] The present invention proposes a dual-transmission redundancy method based on a protection group strategy, which can solve at least one of the above methods.
[0009] To achieve the above object, the present invention adopts the following technical solutions:
[0010] A dual-transmission redundancy method based on a protection group strategy includes the following steps:
[0011] Step 1: Establish multiple transmission paths between a sending network element and a receiving network element: path 1, path 2, ..., path N, where the protocol types of the N paths are allowed to be different, and serve as member paths of a protection group;
[0012] Step 2: Enable redundancy protection on the user traffic inflow interface of the sending network element, apply traffic filtering policy and route redirection policy, and import the filtered traffic into the redundant traffic protection group;
[0013] Within a redundant traffic protection group, protected traffic is replicated to each member path of the protection group and forwarded to the receiving network element. Based on the transport protocol type of the member paths, when encapsulating the packet header, a field in the packet header is set as a redundant protection flag and traffic uniqueness identifier.
[0014] As long as one member path in the protection group is normal, the protection group is available and packet loss will not occur due to protection switching caused by abnormal member paths.
[0015] Step 3: The protected traffic is used as a payload message and encapsulated with a message header based on the protocol type of the member path in the protection group. On the protection path, the protected traffic message, as the payload, is not allowed to be modified and is transmitted to the receiving network element according to the forwarding information encapsulated in the message.
[0016] Step 4: The receiving network element sets path 1, path 2, ..., and path N to the redundant receiving group to enable redundant filtering.
[0017] Step 5: On the receiving network element, when the selected receiving group member receives the message, it needs to check the field value defined in the message header; for the message carrying the redundancy protection flag bit, it continues to parse and record the unique traffic identifier and query the redundancy filter table;
[0018] If no record in the redundancy filter table is matched, the received data packet is the first one and is processed normally on the network element.
[0019] If a record in the redundancy filter table is hit, it means that the received data packet is a redundant message, the network element has processed an identical message, and the current message is discarded.
[0020] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the above method.
[0021] As can be seen from the above technical solution, the dual-transmission redundancy method based on the protection group strategy of the present invention relates to a method for forming a multi-path redundant backup based on the protection group replication traffic, and discarding redundant traffic through a redundant filtering strategy to achieve zero packet loss in network transmission. The method of the present invention, through the protection group method, establishes a backup transmission channel between the sending network element and the receiving network element in addition to the normal transmission path; encapsulates the redundant protection mark and traffic uniqueness identifier in the message, and copies the traffic to be protected into N copies and imports them into multiple paths of the protection group, thereby achieving redundant transmission of critical traffic in the network. When any path loses packets due to insufficient bandwidth, flow control strategy or link abnormality, the integrity of the message transmission between the sending network element and the receiving network element can also be guaranteed. At the same time, in order to prevent the receiving network element from receiving redundant messages and causing voice, video or data replay, by identifying and recording the traffic uniqueness identifier in the message, duplicate data packets are discarded, thereby achieving the reliability requirements of redundant transmission and unique reception of messages between networks.
[0022] The present invention provides a method for replicating traffic based on a protection group policy to form a multi-path redundant backup, and discarding redundant traffic through a redundant filtering policy. The present invention is embodied in four aspects: 1. Using a protection group policy to implement 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 a normal state, the protection group is available, and traffic interruption due to path anomalies will not occur; 3. Without expanding the message field, redundant protection tags and traffic uniqueness identifiers are defined based on existing messages; 4. The receiving network element filters redundant traffic, achieving end-to-end "multiple send, one receive".
[0023] Specifically, the beneficial effects of the present invention are:
[0024] This invention utilizes existing protocol fields to define message redundancy protection flags and traffic uniqueness identifiers, avoiding bandwidth consumption associated with extended messages. It also employs a traffic redundancy backup solution to mitigate the increased networking costs associated with multiple device protections. Multipath transmission avoids brief packet loss during abnormal protection switching intervals, achieving a zero packet loss rate in abnormal situations. The invention utilizes protection group policies to not only implement multipath redundant backup protection but also support multiple protocol encapsulations, addressing diverse scenarios such as Layer 2 and Layer 3 networks and NAT traversal. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A model diagram of an end-to-end "multiple send, one receive" traffic redundancy protection solution based on a protection group policy provided in an embodiment of the present invention;
[0026] Figure 2 A flowchart of a process for implementing traffic redundancy transmission based on a protection group policy on a sending network element according to an embodiment of the present invention;
[0027] Figure 3 The field defining the redundancy protection flag and message uniqueness in the IPv4 message header provided by the embodiment of the present invention;
[0028] Figure 4 The field defining the redundancy protection flag and message uniqueness in the IPv6 message header provided by the embodiment of the present invention;
[0029] Figure 5 A field defining a redundancy protection flag and message uniqueness in an Ethernet message header provided in an embodiment of the present invention;
[0030] Figure 6 A flowchart of a process for parsing messages and filtering redundant messages on a receiving network element provided in an embodiment of the present invention;
[0031] Figure 7 A flowchart of the process of establishing, modifying and aging a redundant filter table on a receiving network element provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] 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 are only part of the embodiments of the present invention, not all of the embodiments.
[0033] The embodiment of the present invention provides a method for forming a multi-path redundant backup based on protection group replication traffic and discarding redundant traffic through a redundant filtering strategy to achieve zero packet loss in network transmission.
[0034] Figure 1 This section describes the process of sending redundant traffic at sender A based on the protection group policy. The processing method includes:
[0035] Step S101: Establish multiple transmission paths between the transmitting end A and the receiving end B: path 1, path 2, and path 3, where the transmission protocols of the three paths are different;
[0036] Step S102: Establish a redundant traffic protection group, with path 1, path 2, and path 3 as members of the protection group;
[0037] Step S103: Enable redundancy protection on the user traffic inflow interface of the sending end A;
[0038] Step S104: Apply the traffic filtering policy and routing redirection policy to the user traffic inflow interface of the sending end A, and import the filtered traffic into the redundant traffic protection group;
[0039] Within a redundant traffic protection group, protected traffic is replicated to each member path of the protection group and forwarded to the receiving network element. Based on the transport protocol type of the member paths, when encapsulating the packet header, a field in the packet header is set as a redundant protection flag and traffic uniqueness identifier.
[0040] Step S105: The receiving network element sets path 1, path 2, and path 3 to a redundant receiving group to enable redundant filtering.
[0041] Step S106: On the receiving network element, when the selected receiving group member receives the message, it is necessary to check the field values defined in the message header; for the message carrying the redundancy protection flag bit, it continues to parse and record the traffic unique identifier and query the redundancy filter table;
[0042] If no record in the redundancy filter table is matched, the received data packet is the first one and is processed normally on the network element.
[0043] If a record in the redundancy filter table is hit, it means that the received data packet is a redundant message, the network element has processed an identical message, and the current message is discarded.
[0044] Figure 2 This section describes the process by which sender A generates and sends redundant protection messages based on the protection group policy. The processing method includes:
[0045] Step 201: Enable redundancy protection on the message access link of the sending end A.
[0046] Step 202: Apply the protection group policy to the message access link of the sending end A;
[0047] Step 203: Filter out packets requiring redundant protection based on the traffic filtering policy of the protection group;
[0048] Step 204: redirect the filtered messages to the member links of the protection group;
[0049] Step 205: Encapsulate the message header according to the protocol type of the member link, set the redundancy protection flag field and the unique identification field; and send the message through the link.
[0050] Figure 3 The color-coded field is used as a redundancy protection marker and unique identifier for IPv4 packets. The processing methods include:
[0051] Step 301: For a message forwarded based on the IPv4 protocol, set the PF bit in the 3-bit flag field of the IPv4 protocol to 1 as a redundancy protection flag in the message.
[0052] Step 302: Use the global counter to set a 16-bit identification field.
[0053] Step 303: Set the Fragment Offset field value according to whether it is a fragmented message.
[0054] Figure 4 The color-coded field is used as a redundancy protection marker and unique identifier for IPv6 packets. The processing methods include:
[0055] Step 401: For a message forwarded based on the IPv6 protocol, a Fragment Header extension header is added to the IPv6 forwarded message;
[0056] Step 402: The Res field in the Fragment Header extension header is assigned a value of 01, which serves as a redundancy protection flag in the message.
[0057] Step 403: Use the global counter to set the identifier field in the Fragment Header;
[0058] Step 404: Set the fragment offset value of the Fragment Header according to whether it is a fragment message.
[0059] Figure 5 The color-coded field is used as a redundancy protection marker and unique identifier for Ethernet packets. The processing methods include:
[0060] Step 501: For messages forwarded based on the Ethernet protocol, a multi-layer ETYPE+TAG encapsulation method is adopted;
[0061] Step 502: The innermost layer of ETYPE+TAG encapsulation, where the ETYPE value is set based on the protocol type in the DATA; the TAG field value is set using a global counter as a unique identifier for the message;
[0062] Step 503: ETYPE+TAG encapsulation in the second inner layer, where the value of ETYPE is defined as 0xA100, indicating that the message is used for redundancy protection.
[0063] Figure 6 This section describes the process of receiving redundant traffic at receiver B. The processing method includes:
[0064] Step 601: Receiver B sets path 1, path 2, ..., path N to a redundant selection group to enable redundant filtering.
[0065] Step 602: The redundant receiving group member parses the message received on the link and detects whether the message header carries a redundant protection flag.
[0066] If the message header contains a redundancy protection flag, the unique identifier field of the message will be parsed and the redundancy filter table in the system will be searched. If a unique identifier record is found in the redundancy filter table, it means that the received message is a redundant message and will be discarded. If there is no unique identifier record in the redundancy filter table, it means that the received message is not a redundant message and processing will continue.
[0067] If there is no redundancy protection mark in the message header, it means that it is a non-redundancy protection message and is processed according to the normal process.
[0068] Figure 7 This section describes the aging process of the redundant filtering table at receiver B to prevent the loss of redundant messages during link failures, which can cause unique identifiers to be unable to be cleared and subsequent errors in filtering redundant messages based on unique identifiers. The solution includes the following:
[0069] Step 701: After receiving a message with a redundancy protection flag, the member link of the redundant receiving group queries the redundancy filter table;
[0070] If the unique identifier carried by the message is not in the redundant filtering table, an entry is added and the number of matches is increased by 1;
[0071] If the redundant filter table contains a unique identifier carried by the message, the number of matches is increased by 1.
[0072] Step 702: The system starts a cyclic timer to periodically inspect the redundant filter table. At each inspection cycle, the number of matches for each unique identifier record is incremented by 1, and the difference between the number of matches for each record and the number of links in the redundant selection group is calculated.
[0073] If the difference is greater than 2, it means that the receiving capacity does not match that of the redundant selection group, an abnormality has occurred, and this unique identification record in the redundant filter table needs to be deleted.
[0074] In summary, the present invention utilizes existing protocol fields to define message redundancy protection flags and traffic uniqueness identifiers, avoiding bandwidth consumption associated with extended messages. A traffic redundancy backup solution is employed to avoid increased networking costs associated with multiple device protections. Multipath transmission avoids brief packet loss during abnormal protection switching intervals, achieving a zero packet loss rate in abnormal situations. The present invention utilizes protection group policies to not only implement multipath redundant backup protection but also support multiple protocol encapsulations, addressing diverse scenarios such as Layer 2 and Layer 3 networks and NAT traversal.
[0075] In another aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of any of the above methods.
[0076] On the other hand, the present invention further discloses a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any of the above methods.
[0077] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of any one of the methods in the above embodiments.
[0078] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts of the above method.
[0079] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When executed, the program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the various embodiments provided herein may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).
[0080] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0081] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A dual-transmission redundancy method based on a protection group strategy, characterized in that: The following steps are included: Step 1: Establish multiple transmission paths between a sending network element and a receiving network element: path 1, path 2, ..., path N, where the protocol types of the N paths are allowed to be different, and use them as member paths of a protection group; Step 2: Enable the redundancy protection function on the user traffic inflow interface of the sending network element, and apply the traffic filtering policy and route redirection policy. The filtered traffic is imported into the redundant traffic protection group. Step 3: The protected traffic is used as a payload message and encapsulated into a message header according to the protocol type of the member path in the protection group. Step 4: The receiving network element sets path 1, path 2, ..., and path N to the redundant receiving group and enables the redundant filtering function. Step 5: On the receiving network element, when the selected receiving group member receives the message, it needs to check the field value defined in the message header; for the message carrying the redundancy protection flag bit, it continues to parse and record the unique traffic identifier and query the redundancy filter table; The traffic uniqueness identifier is information set based on the transport protocol field of the member path and used to uniquely identify the protected traffic, including a global counter value and a specified identifier in the protocol field; If no record in the redundancy filter table is matched, the received data packet is the first message, and the network element processes the message according to the normal process, including forwarding it to the target interface and parsing the message content; If a record in the redundancy filter table is hit, it means that the received data packet is a redundant message and the network element has already processed an identical message, so the current message is discarded. Step 2 further includes, within the redundant traffic protection group, sequentially copying the protected traffic to each member path of the protection group and forwarding the traffic to the receiving network element through the member paths; and setting a field in the message header as a redundant protection flag and a traffic unique identifier when encapsulating the message header according to the transport protocol type of the member paths; As long as one member path in the protection group is normal, the protection group is in an available state, and there will be no packet loss caused by protection switching due to abnormal member paths.
2. The dual-transmission redundancy method based on the protection group strategy according to claim 1 is characterized in that: The step 3 also includes that on the protection path, the message of the protected traffic is used as a payload and is not allowed to be modified, and is transmitted to the receiving network element according to the forwarding information encapsulated in the message.
3. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to claim 1 or 2.
Citation Information
Patent Citations
Data redundance sending method for industrial wireless network
CN101500262A
Multi-element network and cross network element complex section protection switching method
CN102075415A