A reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications
By establishing and aggregating two L2-GRE tunnels on 5G gateway devices, redundant transmission of data is achieved, and the problem of low transmission reliability of 5G gateway devices is solved, and low packet loss, low latency, and high availability communication is achieved.
Patent Information
- Application Number
- CN202211488809.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-25
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-11-25
AI Technical Summary
5G gateway equipment uses single-link or single-tunnel technology when transmitting service traffic, resulting in low reliability, easy transmission quality to be affected by network conditions, and cannot provide a redundant backup mechanism.
By establishing two L2-GRE tunnels on 5G gateway devices and aggregating them into bond0 aggregation port, redundant transmission and reception methods are adopted to realize the copying and deduplication of data packets to ensure reliable data transmission.
It realizes low packet loss, low latency and high availability communication methods, improves network quality, and ensures reliable data transmission in 5G networks.
Smart Images

Figure CN115884224B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a reliability assurance method for dual-transmission optimization of a 5G gateway in the application of the electric power industry, and belongs to the technical field of communication methods. Background Art
[0002] The single-link or single-tunnel technology commonly used by current 5G gateway devices when transmitting business traffic is not highly reliable, the transmission quality is easily affected by network conditions, and there is no problem of providing a redundant backup mechanism. This method provides a low-packet-loss, low-latency, and highly available networking communication method with redundant sending and receiving. It is advantageous to use the Linux kernel protocol stack aggregation technology to transmit data packets by using dual links on the end computing gateway side, wherein the sending end completes the copying and sending of data packets, and the receiving end deduplicates the data packets from the dual-link physical port and selects the priority received message for transmission, thereby ensuring that user data is reliably transmitted to the receiving end. The advantage of this method is that there is no need to modify the user data content. Based on the Linux kernel open source protocol stack, the sending end only needs to increase the count value when encapsulating the tunnel header to achieve data packet replication through the protocol stack aggregation technology, and the receiving end maintains the processed data packet mark to achieve deduplication and then selective reception. Summary of the invention
[0003] In order to overcome the above problems, the present invention provides a reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications. This method is aimed at comprehensive application scenarios that require redundant and reliable transmission of user-side data traffic through 5G technology and Layer 2 VPN technology based on the Linux kernel protocol stack. It achieves low packet loss, low latency, and high-availability communication through redundant sending and receiving.
[0004] The technical solution of the present invention is as follows:
[0005] First aspect
[0006] A reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications, two L2-GRE tunnels are established between end computing gateways, and the two L2-GRE tunnels are aggregated to the bond0 aggregation port, and the aggregation mode is the broadcast strategy mode; after the data stream is sent from the PC client, it is first transmitted to the LAN side network port of the computing gateway through the Layer 2 network, and after the LAN side network port of the computing gateway receives the Layer 2 transparent data, it is transmitted on the WAN ports corresponding to the two L2-GRE tunnels through the bond0 aggregation port, and finally the data stream is transmitted to the server.
[0007] Furthermore, the bond0 aggregation port is bound to the LAN port eth0 under the same bridge br0, and connected to the PC client or server, and connected to the PC client or server through the eth0 port, binding eth0 and the aggregation port together.
[0008] Furthermore, by using the extended field sequence number field in the L2-GRE protocol header, after the CPE application layer sends a message that is aggregated by the bond port configured in the broadcast policy mode, multiple L2-GRE tunnels under the bond0 port can receive the application layer message, and the ID identification value in the IP header is the same;
[0009] Specifically, when sending an L2-GRE message, the following steps are performed:
[0010] S1. Determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for transmitting the packet belongs to the configured tunnel physical WAN port. If the condition is met, execute step S2, otherwise the original message encapsulation is not modified;
[0011] S2. Encapsulate the L2-GRE header extension field sequence number field, where the L2-GRE header extension field sequence number field is obtained by hashing the three fields of the ID identification value, source address, and destination address in the IP header, so that the original message and the copied message after bond aggregation use the same sequence number counting information.
[0012] Furthermore, after receiving the data packet, the hash table is maintained and the flow mode of the data packet is judged, specifically:
[0013] G1. Complete the initialization of the hash table, where the hash KEY value uses the packet count value after the hash operation at the sender, and the hash table record value maintains the number of deduplication times and the data packet processing timestamp; the initialization process completes the configuration initialization, and creates the hash table and the hash table aging cycle timer;
[0014] G2. After receiving the L2-GRE tunnel message, determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for receiving packets belongs to the configured tunnel physical WAN port. If the conditions are met, execute step G3, otherwise continue to transmit the message by the protocol stack;
[0015] G3. Parse the L2-GRE message, obtain the newly added packet count value as the KEY value to traverse the hash table. If the record is not found, construct a new record value and add it to the hash table. Continue to transmit the message through the protocol stack. Otherwise, execute step G4.
[0016] G4. If the message is found in the hash table, the message needs to be discarded. At the same time, after the deduplication times are incremented, it is determined whether the deduplication times exceed the number of aggregated WAN ports. If so, the record value is deleted, otherwise, step G5 is executed;
[0017] G5. If the number of deduplication counts after self-increment does not exceed the number of aggregated WAN ports, the timestamp and deduplication count value of the current record value are updated;
[0018] G6. Complete the judgment of the flow mode of the data packet, execute the destruction of the hash table, delete the cycle timer to complete the recycling of the allocated resources.
[0019] Furthermore, the creation of the hash table and the hash table aging cycle timer is specifically as follows: after the flow mode of the data packet is judged, the timer is started, and when the timer times out, the hash table is traversed and record values exceeding a preset range are deleted.
[0020] Second aspect
[0021] A reliability assurance device for dual-transmission optimization of 5G gateways in power industry applications, applying a reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications as described in the first aspect, including a PC client, a first 5G gateway located on the PC side, a server and a second 5G gateway located on the server side; the PC client is communicated with the first 5G gateway, and the server is communicated with the second 5G gateway; the first WAN port of the first 5G gateway and the first WAN port of the second 5G gateway are wired for communication, and a first L2-GRE tunnel is established; the second WAN port of the first 5G gateway and the second WAN port of the second 5G gateway are wired for communication, and a second L2-GRE tunnel is established; the first L2-GRE tunnel and the second L2-GRE tunnel are aggregated to the bond0 aggregation port, and the aggregation mode is the broadcast strategy mode.
[0022] Furthermore, the bond0 aggregation port of the first 5G gateway is bound to the LAN port eth0 under the same bridge br0 and connected to the PC client; the bond0 aggregation port of the second 5G gateway is bound to the LAN port eth0 under the same bridge br0 and connected to the server.
[0023] By using the extended field sequence number field in the L2-GRE protocol header, after the CPE application layer sends a message that is aggregated by the bond port configured in broadcast policy mode, multiple L2-GRE tunnels under the bond0 port can receive the application layer message, and the ID identification value in the IP header is the same;
[0024] Specifically, it includes an L2-GRE sending module, and when the L2-GRE sending module sends an L2-GRE message, the following steps are performed:
[0025] T1: Determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for transmitting the packet belongs to the configured tunnel physical WAN port. If the conditions are met, execute step T2; otherwise, do not modify the original message encapsulation;
[0026] T2. Encapsulate the L2-GRE header extension field sequence number field, where the L2-GRE header extension field sequence number field is obtained by hashing the three fields of the ID identification value, source address, and destination address in the IP header, so that the original message and the copied message after bond aggregation use the same sequence number counting information.
[0027] Furthermore, after receiving the data packet, the hash table is maintained and the flow mode of the data packet is judged, specifically:
[0028] D1. Complete the hash table initialization, where the hash KEY value uses the packet count value after the hash operation at the sender, and the hash table record value maintains the number of deduplication times and the data packet processing timestamp; the initialization process completes the configuration initialization, and creates the hash table and hash table aging cycle timer;
[0029] D2. After receiving the L2-GRE tunnel message, determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for receiving packets belongs to the configured tunnel physical WAN port. If the conditions are met, execute step D3. Otherwise, continue to transmit the message by the protocol stack.
[0030] D3, parse the L2-GRE message, obtain the newly added packet count value as the KEY value to traverse the hash table, if the record is not found, construct a new record value and add it to the hash table, and continue to transmit the message by the protocol stack, otherwise execute step D4;
[0031] D4. If the message is found in the hash table, the message needs to be discarded. At the same time, the deduplication times are incremented to determine whether the deduplication times exceed the number of aggregated WAN ports. If so, the record value is deleted, otherwise, step D5 is executed;
[0032] D5. If the number of deduplication counts after self-increment does not exceed the number of aggregated WAN ports, the timestamp and deduplication count value of the current record value are updated;
[0033] D6. Complete the judgment of the flow mode of the data packet, execute the destruction of the hash table, delete the cycle timer to complete the recycling of the allocated resources.
[0034] Furthermore, the creation of the hash table and the hash table aging cycle timer is specifically as follows: after the flow mode of the data packet is judged, the timer is started, and when the timer times out, the hash table is traversed and record values exceeding a preset range are deleted.
[0035] The present invention has the following beneficial effects:
[0036] The present invention provides a low packet loss, low latency, and high availability communication networking mode for redundant transmission and reception in a comprehensive application scenario that requires redundant and reliable transmission of user-side data traffic through 5G technology and layer 2 VPN technology based on the Linux kernel protocol stack. The user's data packets can be copied and sent, and repeated link messages with high latency can be removed, and links with low latency can be selected for reception, thereby effectively improving network quality problems such as network packet loss and latency.
[0037] In addition, this method can be extended to other VPN tunnel networking, wireless WiFi and 5G dual-link applications, and networking scenarios that require redundant transmission.
[0038] This method can ensure the high reliability of network transmission links in the power business, ensure the selection of the optimal path and link to ensure data transmission in the 5G network, thereby ensuring the safety and reliability of the power business. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a network topology diagram of the prior art.
[0040] Figure 2 This is the network topology diagram of the present invention.
[0041] Figure 3 The figure is a schematic diagram of a network configuration according to an embodiment of the present invention.
[0042] Figure 4 The figure is a processing flow of a data packet according to an embodiment of the present invention.
[0043] Figure 5 This is a timer processing flow of an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0045] Figure 1 It is a wireless networking L2-GRE tunnel in the existing technology. In the wireless networking environment, the client is configured to access the gateway device at the second layer, and reaches the peer gateway through the on-site wireless network to achieve the second layer data transparent transmission and achieve the effect of data access. The reliability of transmitting business traffic is not high.
[0046] First aspect
[0047] refer to Figure 2A reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications, two L2-GRE tunnels are established between end computing gateways, and the two L2-GRE tunnels are aggregated to the bond0 aggregation port, and the aggregation mode is the broadcast strategy mode; after the data stream is sent from the PC client, it is first transmitted to the LAN side network port of the computing gateway through the Layer 2 network, and after the data of the Layer 2 transparent transmission of the LAN side network port of the computing gateway is transmitted on the WAN port corresponding to the two L2-GRE tunnels through the bond0 aggregation port, and finally the data stream is transmitted to the server.
[0048] In one embodiment of the present invention, the bond0 aggregation port is bound to the LAN port eth0 under the same bridge br0, and connected to the PC client or server, and connected to the PC client or server through the eth0 port, and eth0 is bound to the aggregation port. If other eth ports are used here, they can also be bound accordingly.
[0049] In order for the receiving end to be able to deduplicate duplicate messages, it is necessary to add a count value field to the message when the sending end encapsulates the L2-GRE header data of the user packet. Therefore, it is necessary to modify the L2-GRE modules of the Linux kernel sending and receiving ends.
[0050] In one embodiment of the present invention, the modification is performed in the following manner:
[0051] By using the extended field sequence number field in the L2-GRE protocol header, after the CPE application layer sends a message that is aggregated by the bond port configured in broadcast policy mode, multiple L2-GRE tunnels under the bond0 port can receive the application layer message, and the ID identification value in the IP header is the same;
[0052] Specifically, when sending an L2-GRE message, the following steps are performed:
[0053] S1. Determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for transmitting the packet belongs to the configured tunnel physical WAN port. If the condition is met, execute step S2, otherwise the original message encapsulation is not modified;
[0054] S2. Encapsulate the L2-GRE header extension field sequence number field, where the L2-GRE header extension field sequence number field is obtained by hashing the three fields of the ID identification value, source address, and destination address in the IP header, so that the original message and the copied message after bond aggregation use the same sequence number counting information.
[0055] refer to Figure 4 In one embodiment of the present invention, after receiving a data packet, a hash table is maintained and the flow mode of the data packet is determined, specifically:
[0056] G1. Complete the initialization of the hash table, where the hash KEY value uses the packet count value after the hash operation at the sender, and the hash table record value maintains the number of deduplication times and the data packet processing timestamp; the initialization process completes the configuration initialization, and creates the hash table and the hash table aging cycle timer;
[0057] G2. After receiving the L2-GRE tunnel message, determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for receiving packets belongs to the configured tunnel physical WAN port. If the conditions are met, execute step G3, otherwise continue to transmit the message by the protocol stack;
[0058] G3. Parse the L2-GRE message, obtain the newly added packet count value as the KEY value to traverse the hash table. If the record is not found, construct a new record value and add it to the hash table. Continue to transmit the message through the protocol stack. Otherwise, execute step G4.
[0059] G4. If the message is found in the hash table, the message needs to be discarded. At the same time, after the deduplication times are incremented, it is determined whether the deduplication times exceed the number of aggregated WAN ports. If so, the record value is deleted, otherwise, step G5 is executed;
[0060] G5. If the number of deduplication counts after self-increment does not exceed the number of aggregated WAN ports, the timestamp and deduplication count value of the current record value are updated;
[0061] G6. Complete the judgment of the flow mode of the data packet, execute the destruction of the hash table, delete the cycle timer to complete the recycling of the allocated resources.
[0062] refer to Figure 5 In one embodiment of the present invention, the creation of a hash table and a hash table aging cycle timer is specifically as follows: after determining the flow mode of the data packet, the timer is started, and when the timer times out, the hash table is traversed and record values exceeding a preset range are deleted.
[0063] Second aspect
[0064] refer to Figure 2-3 A reliability assurance device for dual-transmission optimization of 5G gateways in power industry applications, comprising a PC client, a first 5G gateway located at the PC end, a server and a second 5G gateway located at the server end; the PC client is connected to the first 5G gateway in communication, and the server is connected to the second 5G gateway in communication; the first WAN port of the first 5G gateway and the first WAN port of the second 5G gateway are connected in wired communication, and a first L2-GRE tunnel is established; the second WAN port of the first 5G gateway and the second WAN port of the second 5G gateway are connected in wired communication, and a second L2-GRE tunnel is established; the first L2-GRE tunnel and the second L2-GRE tunnel are aggregated to the bond0 aggregation port, and the aggregation mode is the broadcast strategy mode.
[0065] Furthermore, the bond0 aggregation port of the first 5G gateway is bound to the LAN port eth0 under the same bridge br0 and connected to the PC client; the bond0 aggregation port of the second 5G gateway is bound to the LAN port eth0 under the same bridge br0 and connected to the server.
[0066] In one embodiment of the present invention, the extended field sequence number field in the L2-GRE protocol header is used to realize that after the CPE application layer sends a message through the bond port aggregation configured as the broadcast policy mode, multiple L2-GRE tunnels belonging to the bond0 port can receive the application layer message, and the ID identification value in the IP header is the same;
[0067] Specifically, it includes an L2-GRE sending module, and when the L2-GRE sending module sends an L2-GRE message, the following steps are performed:
[0068] T1: Determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for transmitting the packet belongs to the configured tunnel physical WAN port. If the conditions are met, execute step T2; otherwise, do not modify the original message encapsulation;
[0069] T2. Encapsulate the L2-GRE header extension field sequence number field, where the L2-GRE header extension field sequence number field is obtained by hashing the three fields of the ID identification value, source address, and destination address in the IP header, so that the original message and the copied message after bond aggregation use the same sequence number counting information.
[0070] refer to Figure 4 In one embodiment of the present invention, after receiving a data packet, a hash table is maintained and the flow mode of the data packet is determined, specifically:
[0071] D1. Complete the hash table initialization, where the hash KEY value uses the packet count value after the hash operation at the sender, and the hash table record value maintains the number of deduplication times and the data packet processing timestamp; the initialization process completes the configuration initialization, and creates the hash table and hash table aging cycle timer;
[0072] D2. After receiving the L2-GRE tunnel message, determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for receiving packets belongs to the configured tunnel physical WAN port. If the conditions are met, execute step D3. Otherwise, continue to transmit the message by the protocol stack.
[0073] D3, parse the L2-GRE message, obtain the newly added packet count value as the KEY value to traverse the hash table, if the record is not found, construct a new record value and add it to the hash table, and continue to transmit the message by the protocol stack, otherwise execute step D4;
[0074] D4. If the message is found in the hash table, the message needs to be discarded. At the same time, the deduplication times are incremented to determine whether the deduplication times exceed the number of aggregated WAN ports. If so, the record value is deleted, otherwise, step D5 is executed;
[0075] D5. If the number of deduplication counts after self-increment does not exceed the number of aggregated WAN ports, the timestamp and deduplication count value of the current record value are updated;
[0076] D6. Complete the judgment of the flow mode of the data packet, execute the destruction of the hash table, delete the cycle timer to complete the recycling of the allocated resources.
[0077] refer to Figure 5 In one embodiment of the present invention, the creation of a hash table and a hash table aging cycle timer is specifically as follows: after determining the flow mode of the data packet, the timer is started, and when the timer times out, the hash table is traversed and record values exceeding a preset range are deleted.
[0078] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure made using the contents of the present invention's specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications, characterized in that: Two L2-GRE tunnels are established between the end computing gateways and aggregated to the bond0 aggregation port. The aggregation mode is the broadcast policy mode. After the data stream is sent from the PC client, it is first transmitted to the LAN side network port of the computing gateway through the Layer 2 network. After the LAN side network port of the computing gateway receives the Layer 2 transparent data, it transmits it on the WAN ports corresponding to the two L2-GRE tunnels through the bond0 aggregation port, and finally transmits the data stream to the server; The bond0 aggregation port and LAN port eth0 are bound to the same bridge br0, and connected to the PC client or server through the eth0 port to bind eth0 and the aggregation port together; By using the extended field sequence number field in the L2-GRE protocol header, after the CPE application layer sends a message that is aggregated by the bond port configured in broadcast policy mode, multiple L2-GRE tunnels under the bond0 port can receive the application layer message, and the ID identification value in the IP header is the same; Specifically, when sending an L2-GRE message, the following steps are performed: S1. Determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for transmitting the packet belongs to the configured tunnel physical WAN port. If the condition is met, execute step S2, otherwise the original message encapsulation is not modified; S2, encapsulate the L2-GRE header extension field sequence number field, where the L2-GRE header extension field sequence number field is obtained by hashing the three fields of the ID identification value, source address, and destination address in the IP header, so that the original message and the copied message after bond aggregation have the same sequence number counting information; After receiving the data packet, the hash table is maintained and the flow mode of the data packet is judged, specifically: G1. Complete the initialization of the hash table, where the hash KEY value uses the packet count value after the hash operation at the sender, and the hash table record value maintains the number of deduplication times and the data packet processing timestamp; The initialization process completes the configuration initialization and creates the hash table and hash table aging cycle timer; G2. After receiving the L2-GRE tunnel message, determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for receiving packets belongs to the configured tunnel physical WAN port. If the conditions are met, execute step G3, otherwise continue to transmit the message by the protocol stack; G3. Parse the L2-GRE message, obtain the newly added packet count value as the KEY value to traverse the hash table. If the record is not found, construct a new record value and add it to the hash table. Continue to transmit the message through the protocol stack. Otherwise, execute step G4. G4. If the message is found in the hash table, the message needs to be discarded. At the same time, after the deduplication times are incremented, it is determined whether the deduplication times exceed the number of aggregated WAN ports. If so, the record value is deleted, otherwise, step G5 is executed; G5. If the number of deduplication counts after self-increment does not exceed the number of aggregated WAN ports, the timestamp and deduplication count value of the current record value are updated; G6. Complete the judgment of the flow mode of the data packet, execute the destruction of the hash table, delete the cycle timer to complete the recycling of the allocated resources.
2. According to claim 1, the reliability assurance method for dual-transmission optimization of 5G gateway in the power industry application is characterized in that: The creation of the hash table and the hash table aging cycle timer is specifically as follows: starting the timer after determining the flow mode of the data packet, traversing the hash table when the timer times out, and deleting the record values that exceed the preset range.
3. A reliability assurance device for dual-transmission optimization of 5G gateways in power industry applications, using a reliability assurance method for dual-transmission optimization of 5G gateways in power industry applications as described in any one of claims 1-2, characterized in that: It includes a PC client, a first 5G gateway located on the PC side, a server and a second 5G gateway located on the server side; the PC client is connected to the first 5G gateway for communication, and the server is connected to the second 5G gateway for communication; the first WAN port of the first 5G gateway and the first WAN port of the second 5G gateway are connected to each other by wired communication, and a first L2-GRE tunnel is established; the second WAN port of the first 5G gateway and the second WAN port of the second 5G gateway are connected to each other by wired communication, and a second L2-GRE tunnel is established; the first L2-GRE tunnel and the second L2-GRE tunnel are aggregated to the bond0 aggregation port, and the aggregation mode is the broadcast strategy mode.
4. According to claim 3, the reliability assurance device for dual-transmission optimization of 5G gateway in the power industry application is characterized in that: The bond0 aggregation port of the first 5G gateway is bound to the same bridge br0 with the LAN port eth0 and connected to the PC client; the bond0 aggregation port of the second 5G gateway is bound to the same bridge br0 with the LAN port eth0 and connected to the server.
5. According to claim 4, the reliability assurance device for dual-transmission optimization of 5G gateway in the application of the power industry is characterized in that: By using the extended field sequence number field in the L2-GRE protocol header, after the CPE application layer sends a message that is aggregated by the bond port configured in broadcast policy mode, multiple L2-GRE tunnels under the bond0 port can receive the application layer message, and the ID identification value in the IP header is the same; Specifically, it includes an L2-GRE sending module, and when the L2-GRE sending module sends an L2-GRE message, the following steps are performed: T1: Determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for transmitting the packet belongs to the configured tunnel physical WAN port. If the conditions are met, execute step T2; otherwise, do not modify the original message encapsulation; T2. Encapsulate the L2-GRE header extension field sequence number field, where the L2-GRE header extension field sequence number field is obtained by hashing the three fields of the ID identification value, source address, and destination address in the IP header, so that the original message and the copied message after bond aggregation use the same sequence number counting information.
6. According to claim 5, the reliability assurance device for dual-transmission optimization of 5G gateway in the application of the power industry is characterized in that: After receiving the data packet, the hash table is maintained and the flow mode of the data packet is judged, specifically: D1. Complete the initialization of the hash table, where the hash KEY value uses the packet count value after the hash operation at the sender, and the hash table record value maintains the number of deduplications and the data packet processing timestamp; The initialization process completes the configuration initialization and creates the hash table and hash table aging cycle timer; D2. After receiving the L2-GRE tunnel message, determine whether the L2-GRE dual-transmission preferred transmission function is enabled and the physical port for receiving packets belongs to the configured tunnel physical WAN port. If the conditions are met, execute step D3. Otherwise, continue to transmit the message by the protocol stack. D3, parse the L2-GRE message, obtain the newly added packet count value as the KEY value to traverse the hash table, if the record is not found, construct a new record value and add it to the hash table, and continue to transmit the message by the protocol stack, otherwise execute step D4; D4. If the message is found in the hash table, the message needs to be discarded. At the same time, after the deduplication times are incremented, it is determined whether the deduplication times exceed the number of aggregated WAN ports. If so, the record value is deleted, otherwise, step D5 is executed; D5. If the number of deduplication counts after self-increment does not exceed the number of aggregated WAN ports, the timestamp and deduplication count value of the current record value are updated; D6. Complete the judgment of the flow mode of the data packet, execute the destruction of the hash table, delete the cycle timer to complete the recycling of the allocated resources.
7. According to claim 6, the reliability assurance device for dual-transmission optimization of 5G gateway in the application of the power industry is characterized in that: The creation of the hash table and the hash table aging cycle timer is specifically as follows: after the flow mode of the data packet is judged, the timer is started, and when the timer times out, the hash table is traversed and the record values exceeding the preset range are deleted.
Citation Information
Patent Citations
Stack link establishing method, equipment and system
CN103401754A
Network redundancy fault tolerance method and system based on IP protocol expansion
CN104734825A