CN117098240A - QUIC protocol-based multipath transmission method and 5G industrial gateway - Google Patents
QUIC protocol-based multipath transmission method and 5G industrial gateway Download PDFInfo
- Publication number
- CN117098240A CN117098240A CN202211009731.3A CN202211009731A CN117098240A CN 117098240 A CN117098240 A CN 117098240A CN 202211009731 A CN202211009731 A CN 202211009731A CN 117098240 A CN117098240 A CN 117098240A
- Authority
- CN
- China
- Prior art keywords
- data
- transmitted
- transmission
- priority
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 209
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000010791 quenching Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 101100513046 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) eth-1 gene Proteins 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/121—Wireless traffic scheduling for groups of terminals or users
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/70—Routing based on monitoring results
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/215—Flow control; Congestion control using token-bucket
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
- H04W76/16—Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/16—Gateway arrangements
Abstract
The invention discloses a QUIC protocol-based multipath transmission method and a 5G industrial gateway, comprising the following steps: acquiring data to be transmitted of each terminal equipment hung down, and setting service priority of each terminal equipment; determining a transmission path and a sending scheduling strategy corresponding to each data to be transmitted according to the service priority; according to a sending scheduling strategy and based on a QUIC protocol, each data to be transmitted is sent to a corresponding network interface through a corresponding transmission path, so that a server side obtains the corresponding data to be transmitted through the network interface; the service priority is determined according to the service data volume and the service type of the data to be transmitted, and the sending scheduling policy is used for determining the sending sequence of the data to be transmitted. The invention determines the service priority according to the service data volume and the service type, and sends the data to be transmitted to the corresponding network interface based on the QUIC protocol and the service priority, thereby ensuring the priority transmission and the transmission reliability of the key service data.
Description
Technical Field
The invention relates to the field of computer communication network transmission control, in particular to a QUIC protocol-based multipath transmission method and a 5G industrial gateway.
Background
In some remote areas or in extreme weather conditions, the network is extremely unstable, and the network connection is easily disconnected or switched, and in order to ensure emergency communication, the existing data transmission method generally uses a transmission control protocol (Transmission Control Protocol, TCP) and a user data packet protocol (UserDatagram Protocol, UDP) as transmission layer protocols. However, TCP is connection-oriented, in an abnormal environment, network connection is often disconnected or switched, and after the terminal changes between IPs, three-way handshake is needed again, that is, the information change of four-way groups (source IP address, destination IP address, source port, destination port) causes reconnection, and the reconnection cost is three-way handshake of TCP, two-way handshake of TLS, which is complicated in process and low in reconnection efficiency, so that the network interaction back-and-forth time delay is prolonged. The UDP protocol is unreliable, and is only responsible for data transmission, and does not care whether data is sent or not, and there is no flow control, and if the sender always sends data, the buffer data will be out of limit, and the device will be blocked. In addition, the existing data transmission method only determines the priority of the data to be transmitted according to parameters such as network card bandwidth, time delay and packet loss rate, and the like, and cannot guarantee the priority transmission of emergency type services, so that the response efficiency of a server side is affected.
Disclosure of Invention
The invention provides a QUIC protocol-based multipath transmission method and a 5G industrial gateway, which ensure the priority transmission and the transmission reliability of key service data of terminal equipment when the network condition is poor or the network is crowded, so that a server can timely receive and respond the key service data of the terminal equipment.
In order to solve the above technical problems, an embodiment of the present invention provides a multi-path transmission method based on the qic protocol, including:
acquiring data to be transmitted of all terminal equipment hung down, and setting service priority of each terminal equipment;
determining a transmission path and a sending scheduling strategy corresponding to each piece of data to be transmitted according to the set service priority;
according to the sending scheduling policy and based on QUIC protocol, each data to be transmitted is sent to a corresponding network interface through a corresponding transmission path, so that a server side obtains the corresponding data to be transmitted through the corresponding network interface;
the service priority is determined according to the service data volume and the service type of the data to be transmitted, and the sending scheduling policy is used for determining the sending sequence of the corresponding data to be transmitted.
By implementing the embodiment of the invention, the service priority is determined according to the type and the data volume of the actual service, and the path selection and the transmission scheduling are carried out on the data to be transmitted according to the predetermined service priority and the transmission scheduling strategy, so that the priority transmission and the transmission reliability of the key service data of all the hung terminal equipment are ensured, and the service end can timely receive the key service data of the terminal equipment and quickly respond. In addition, through QUIC (UDP Internet Connections, fast UDP Internet connection) protocol, multiple concurrent transmission can be realized, so that the transmission efficiency of data to be transmitted is further improved.
As a preferred solution, the multi-path transmission method based on the QUIC protocol further includes:
when the service priority comprises the highest priority, the high priority, the medium priority or the low priority in the weak network environment, rejecting to send all data to be transmitted, of which the service priority is the medium priority or the low priority, sent by the terminal equipment to the service end, and adjusting the sending scheduling policy corresponding to all the data to be transmitted, of which the service priority is the high priority, to be a Token Bucket policy; the Token Bucket policy refers to sequentially transmitting each data to be transmitted when a Token is received, so as to complete the current-limiting transmission of all the data to be transmitted, wherein the service priority of the data to be transmitted is high;
and based on the current sending scheduling policy corresponding to each data to be transmitted, sending all the data to be transmitted, of which the service priority is the highest priority or the high priority, to the corresponding network interface through the corresponding transmission path, so that the server side obtains the corresponding data to be transmitted through the corresponding network interface.
By implementing the preferred scheme of the embodiment of the invention, under the weak network environment, the service of all data to be transmitted with medium or low service priority is refused, for example, the data to be transmitted is refused to be sent to a server, and the sending scheduling strategy corresponding to all data to be transmitted with high service priority is adjusted to be a Token Bucket strategy, so that the current-limiting transmission of all data to be transmitted with high service priority is realized, and the transmission of the data to be transmitted with high service priority is prevented from influencing the transmission efficiency of the data to be transmitted with higher priority.
As a preferred solution, the determining, according to the set service priority, a transmission path and a sending scheduling policy corresponding to each data to be transmitted specifically includes:
setting the sending scheduling strategy of all the data to be transmitted, wherein the service priority is the highest priority or the highest priority, as a redundancy strategy; the redundancy strategy is that a plurality of data packets obtained by copying the data to be transmitted are all sent to the server through a plurality of transmission paths;
setting the sending scheduling strategy of all the data to be transmitted with the service priority being the medium priority as a minimum round trip time strategy; the minimum round-trip time strategy refers to selecting a corresponding transmission path according to the minimum round-trip time corresponding to each transmission path so as to send the data to be transmitted to the server;
setting the sending scheduling strategy of all the data to be transmitted with the highest service priority as a polling strategy; the polling policy refers to polling all the transmission paths to send each data to be transmitted to the server.
By implementing the preferred scheme of the embodiment of the invention, corresponding sending scheduling strategies are set for the data to be transmitted with different priority levels, so that the classified sending of the data to be transmitted is realized, and the problem that key service data cannot be timely fed back to a server because a large amount of unfractionated service data are simultaneously transmitted is avoided.
As a preferred solution, according to the sending scheduling policy and based on the qic protocol, each data to be transmitted is sent to a corresponding network interface through a corresponding transmission path, so that a server side obtains the corresponding data to be transmitted through the corresponding network interface, specifically:
judging whether a Connection ID exists in the server side; wherein, the Connection ID is a transmission parameter between the server and each corresponding terminal device;
if the Connection ID exists in the current server, sending the data to be transmitted to the corresponding network interface through the corresponding transmission path based on the Connection ID, so that the current server obtains the corresponding data to be transmitted through the corresponding network interface;
if the Connection ID does not exist in the current service end, based on a QUIC protocol, a transmission Connection between the current service end and each corresponding terminal device is established, the Connection ID corresponding to the current transmission Connection is stored to the current service end, and then the data to be transmitted is sent to the corresponding network interface through the corresponding transmission path, so that the current service end obtains the corresponding data to be transmitted through the corresponding network interface.
By implementing the preferred scheme of the embodiment of the invention, the 64-bit Connection ID is used as the unique identifier to identify the transmission Connection based on the QUIC protocol, and the transmission Connection is still maintained as long as the Connection ID is unchanged, so that even if the source IP address, the destination IP address, the source port or the destination port changes, for example, a client is switched from WIFI to a cellular network, reconnection is not needed, thereby avoiding network interaction back and forth time delay and improving data transmission efficiency.
As a preferred solution, the multi-path transmission method based on the QUIC protocol further includes:
judging the on-off state of each transmission path according to the connection state of the WIFI module or the dialing state of the 5G module;
or detecting the on-off state of each transmission path by a PING mode;
the WIFI module and the 5G module are used for realizing data transmission between the server and the terminal equipment.
By implementing the preferred scheme of the embodiment of the invention, the on-off state of the transmission path can be detected in real time, and the transmission of the data to be transmitted by the transmission path in the off state is avoided from being selected subsequently, so that the transmission omission of the data to be transmitted is prevented.
In order to solve the same technical problem, the embodiment of the present invention further provides a 5G industrial gateway, including:
the service level setting module is used for acquiring data to be transmitted of all the hung terminal equipment and setting service priority of each terminal equipment; wherein the service priority is determined according to the service data volume and the service type of the data to be transmitted;
the transmission parameter setting module is used for determining a transmission path and a sending scheduling strategy corresponding to each piece of data to be transmitted according to the set service priority; the sending scheduling strategy is used for determining the sending sequence of the corresponding data to be transmitted;
and the data transmission module is used for respectively transmitting each data to be transmitted to a corresponding network interface through the corresponding transmission path based on a QUIC protocol according to the transmission scheduling strategy so that a server side obtains the corresponding data to be transmitted through the corresponding network interface.
As a preferred solution, the 5G industrial gateway further includes:
the weak network transmission module is configured to reject sending all data to be transmitted, sent by the terminal device, to the server, where the data to be transmitted includes a highest priority, a high priority, a middle priority, or a low priority, and adjust the sending scheduling policy corresponding to all data to be transmitted, where the service priority is the middle priority or the low priority, to a Token Bucket policy when the service priority is in a weak network environment; the Token Bucket policy refers to sequentially transmitting each data to be transmitted when a Token is received, so as to complete the current-limiting transmission of all the data to be transmitted, wherein the service priority of the data to be transmitted is high; and based on the current sending scheduling policy corresponding to each data to be transmitted, sending all the data to be transmitted, of which the service priority is the highest priority or the high priority, to the corresponding network interface through the corresponding transmission path, so that the server side obtains the corresponding data to be transmitted through the corresponding network interface.
As a preferred solution, the transmission parameter setting module specifically includes:
a first setting unit, configured to set, as a redundancy policy, a transmission scheduling policy of all the data to be transmitted, where the service priority is the highest priority or a high priority; the redundancy strategy is that a plurality of data packets obtained by copying the data to be transmitted are all sent to the server through a plurality of transmission paths;
a second setting unit, configured to set a transmission scheduling policy of all the data to be transmitted, where the service priority is a medium priority, as a minimum round trip time policy; the minimum round-trip time strategy refers to selecting a corresponding transmission path according to the minimum round-trip time corresponding to each transmission path so as to send the data to be transmitted to the server;
a third setting unit, configured to set a transmission scheduling policy of all the data to be transmitted, where the service priority is the highest priority, as a polling policy; the polling policy refers to polling all the transmission paths to send each data to be transmitted to the server.
As a preferred solution, the data transmission module specifically includes:
the judging unit is used for judging whether a Connection ID exists in the server side; wherein, the Connection ID is a transmission parameter between the server and each corresponding terminal device;
the first data transmission unit is used for sending the data to be transmitted to the corresponding network interface through the corresponding transmission path based on the Connection ID if the Connection ID exists in the current server, so that the current server can acquire the corresponding data to be transmitted through the corresponding network interface;
and the second data transmission unit is used for establishing transmission Connection between the current service end and each corresponding terminal equipment based on a QUIC protocol if the Connection ID does not exist in the current service end, storing the Connection ID corresponding to the current transmission Connection to the current service end, and then sending the data to be transmitted to the corresponding network interface through the corresponding transmission path so as to enable the current service end to acquire the corresponding data to be transmitted through the corresponding network interface.
As a preferred solution, the 5G industrial gateway further includes:
the path on-off judging module is used for judging the on-off state of each transmission path according to the connection state of the WIFI module or the dialing state of the 5G module; the WIFI module and the 5G module are used for realizing data transmission between the server and the terminal equipment; or detecting the on-off state of each transmission path by a PING mode.
Drawings
Fig. 1: a flow diagram of a multi-path transmission method based on a QUIC protocol according to a first embodiment of the present invention is provided;
fig. 2: the first embodiment of the invention provides a logic topology diagram of a multi-path transmission method based on QUIC protocol;
fig. 3: the network data interaction schematic diagram of the terminal equipment with the highest priority based on the redundancy strategy is provided for the first embodiment of the invention;
fig. 4: the first embodiment of the invention provides a structural schematic diagram of a 5G industrial gateway.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Embodiment one:
referring to fig. 1, a multi-path transmission method based on the qic protocol according to an embodiment of the present invention includes steps S1 to S3, where each step is specifically as follows:
step S1, please refer to FIG. 2, the data to be transmitted of all terminal devices hung under the 5G industrial gateway is obtained through the 5G industrial gateway, and the service priority of each terminal device is set; wherein the service priority is determined according to the service data volume and the service type of the data to be transmitted.
It should be noted that, the service priority of the current service may be determined through a 5G industrial gateway debug command or web page setting. Wherein, the business priority is the highest, high, medium, low four-level, the hierarchical tactics are as follows:
(1) highest priority: for ensuring the most critical data arrives and setting the highest priority transmission scheduling policy to a Redundancy policy (Redundancy), typically for small data volume traffic, such as: one-key help seeking and positioning service data;
(2) high priority: the high priority transmission schedule is set to a Redundancy/token bucket policy (used after entering the weak network mode) for ensuring that the medium data traffic data is as reachable as possible, for example: word command service data (word communication device);
(3) medium priority: setting the medium priority service as a minimum round trip time policy (minRTT) sending scheduling policy;
(4) low priority: the low priority traffic is set to a Round-Robin (round_robin) transmit scheduling policy.
Step S2, determining a transmission path and a sending scheduling strategy corresponding to each data to be transmitted according to the set service priority; the sending scheduling strategy is used for determining the sending sequence of the corresponding data to be transmitted.
Before executing step S2, steps S01 to S04 are further included, and each step is specifically as follows:
in step S01, a bridge br0 is created using the linux command brctl addbr br0, and then physical interfaces are added to the bridge one by one using the command brctl addif br0eth0, thereby achieving communication between the bridge and all the physical interfaces.
Step S02, create TAP/TUN virtual device (TAP/TUN is virtual network device in the kernel of the operating system) for monitoring and intercepting all QUIC protocol data packets (i.e. data to be transmitted) passing through and requiring public network routing; the virtual network devices are all implemented in software, and provide the software running on the operating system with the same functions as the hardware network devices.
Step S03, using tunctl-t TAP0-u root to create a TAP equipment interface, and after the creation is completed, performing a bridge control command by a brctl addif br0TAP, wherein the equipment file corresponding to the TAP equipment interface is/dev/TAP 0; the file handle/dev/TAP 0 data is read by the multipath management program to receive and obtain network data on all TAP devices, namely two-layer network data of all LAN ports.
In step S04, all the QUIC protocol data packets (i.e. the data to be transmitted) are identified by monitoring the two-layer network data intercepting all the LAN ports.
Preferably, step S2 includes steps S21 to S23, and each step is specifically as follows:
step S21, setting the sending scheduling strategy of all data to be transmitted with the service priority being the highest priority or the high priority as a Redundancy strategy; the Redundancy policy (Redundancy) refers to that a plurality of data packets obtained by copying data to be transmitted are all sent to the server through a plurality of transmission paths, so as to ensure the maximum possibility that the data is sent to the server.
Step S22, setting the sending scheduling strategy of all data to be transmitted with the service priority being the medium priority as a minimum round trip time strategy (minRTT); the minimum round trip time policy (min RTT) refers to selecting a corresponding transmission path according to a minimum round trip time corresponding to each transmission path, so as to send data to be transmitted to a server.
It should be noted that, according to the min RTT calculation algorithm described in the quit standard protocol, in combination with historical quit network data, the minimum round trip time calculation may be performed on the network interface corresponding to each transmission path, so as to determine the minimum RTT path, and the minimum RTT path is taken as the transmission path corresponding to the data to be transmitted.
Step S23, setting the sending scheduling strategy of all data to be transmitted with the highest service priority as a polling strategy (round_Robin); the polling policy (round_robin) refers to polling all transmission paths to send each data to be transmitted to the server.
As a preferred solution, after determining the transmission paths corresponding to the data to be transmitted, a transmission path on-off state judging process is further included, where the process includes step S4, specifically as follows:
step S4, judging the on-off state of each transmission path according to the connection state of the WIFI module or the dialing state of the 5G module; the WIFI module and the 5G module are used for realizing data transmission between the server and the terminal equipment; or detecting the on-off state of each transmission path by a PING mode.
In this embodiment, two detection modes of path on-off are mainly used. The first is to judge the on-off of the corresponding path according to the connection state of the WIFI module and the dialing state of the 5G module, which is specifically as follows: the 5G industrial gateway can judge the on-off state of a link according to whether the AT command acquisition module of the module successfully dials on the Internet or not, or can acquire the external network IP or gateway information or not through the module. The second method is to develop a link detection function for the multipath management program, so as to detect the on-off of the path in a PING mode at regular time, and if PING is different for a plurality of times, the path is marked as off: the emergency platform service IP can be preset as the opposite end of PING through program configuration, the overtime time of PING is set to be 3 seconds, the overtime times of PING are 3 times, and the path can be marked as disconnected after the PING overtime is continuously performed for 3 times until the PING is detected to be on next time.
Step S3, please refer to FIG. 2,5G, the industrial gateway sends each data to be transmitted to the corresponding network interface via the corresponding transmission path based on the QUIC protocol according to the sending scheduling policy, so that the server (i.e. the emergency platform) obtains the corresponding data to be transmitted via the corresponding network interface.
Preferably, step S3 includes steps S31 to S33, and each step is specifically as follows:
step S31, judging whether a Connection ID exists in the server side; the Connection ID is a transmission parameter between the server and each corresponding terminal device.
In this embodiment, if the Connection ID exists in the current server, step S32 is executed, and if the Connection ID does not exist in the current server, step S33 is executed.
Step S32, based on the Connection ID, the data to be transmitted is sent to the corresponding network interface through the corresponding transmission path, so that the current server side obtains the corresponding data to be transmitted through the corresponding network interface.
Step S33, based on QUIC protocol, establishing transmission Connection between the current service end and each corresponding terminal equipment, storing Connection ID corresponding to the current transmission Connection to the current service end, and then sending the data to be transmitted to the corresponding network interface through the corresponding transmission path, so that the current service end obtains the corresponding data to be transmitted through the corresponding network interface.
It should be noted that, the quench protocol defines Offset data for each Stream, and each request in the quench protocol needs an ACK reply, and when a packet is lost, specific Stream ID and Offset need to be retransmitted to achieve transmission reliability. And, the QUIC protocol employs a TLS encryption component to ensure transmission security. In addition, the QUIC protocol uses Connection ID identification as a unique identifier to identify the Connection of the client to the server. Therefore, after the Connection relationship between the client and the server is disconnected, if data interaction is required between the two ports, if the Connection ID is unchanged, even if the IP or the ports of the client and the server change, for example, the client is switched from WIFI to the cellular network, the original Connection can be multiplexed through the Connection ID identification without reconnecting, and the reconnection of the data transmission relationship is realized without performing three-way handshake. Wherein the Connection ID is a unique identifier describing a Connection, and a change in the quadruple (source IP address, destination IP address, source port, destination port) does not result in a change in the Connection ID.
In this embodiment, if the current client and the current server are already connected, the information (i.e., connection ID) such as the server transmission configuration parameter and the encryption public key of the current server is stored in the client. Therefore, when the client is subsequently reconnected, the interaction of information such as configuration parameters, encryption public keys and the like is not needed, and the data can be immediately transmitted, so that the effect of sending service data by 0RTT (0 Round-Trip Time,0 Time Round Trip Time) is realized. Wherein the encrypted public key is obtained by the TLS encryption component.
As an example, the terminal devices are respectively a video intercom device, a 400M/800M voice intercom device, a text communication device, a one-key help-seeking device, a Beidou positioning device, a multichannel video device and the like in the emergency command vehicle, wherein the service data sent by the one-key help-seeking device is the highest priority. Therefore, the detailed sending and priority processing procedure of the one-key help-seeking device includes steps S05 to S08, and each step is specifically as follows:
in step S05, the highest priority one-key help-seeking device sends the QUIC network data via a wired connection.
In step S06, please refer to the LAN port "eth1" of the industrial gateway of fig. 3,5G for receiving the QUIC network data sent by the on-hook one-key help device, the bridge br0 receives the QUIC network data because the LAN ports are all mounted on the bridge br0, and the TAP virtual network interface will receive the QUIC network data because the public network routing interface of br0 is on the TAP virtual network interface.
In step S07, the 5G industrial gateway (i.e. the hypervisor) listens to all the data of the TAP virtual network interface/dev/TAP 0 handle in step S03, then identifies all the quit protocol data packets according to the UDP protocol feature and the quit protocol feature, and sends quit network data from the LAN "eth1" through all the network paths according to the Redundancy policy (Redundancy) corresponding to the highest priority configured by the LAN "eth1", so that the transmission paths corresponding to each of the WIFI module and the three 5G modules send quit Redundancy packets.
In step S08, please refer to fig. 3, the qic redundancy packet is sent to the emergency platform through the internet/private network via the transmission paths corresponding to the WIFI module and the three 5G modules. The emergency platform receives the QUIC protocol data, describes a Connection according to Connection ID based on the non-Connection characteristic of the QUIC protocol, takes the received first QUIC protocol data packet as a unique message identifier (the QUIC protocol data packet takes the stream ID and the Offset as unique message identifiers), discards the subsequent messages with the same identifier, and the emergency platform service can carry out service processing logic and reply after receiving the QUIC protocol packet, and returns the reply message according to the original path.
As a preferred solution, the multi-path transmission method based on the QUIC protocol provided by the embodiment of the present invention further includes steps S5 to S6, where each step is specifically as follows:
step S5, when the service priority comprises the highest priority, the high priority, the medium priority or the low priority in the weak network environment, refusing to send all data to be transmitted, the service priority of which is the medium priority or the low priority, sent by the terminal equipment to the service end, and adjusting a sending scheduling strategy corresponding to all data to be transmitted, the service priority of which is the high priority, to be a Token Bucket strategy; the Token bucket policy refers to sequentially transmitting each data to be transmitted when receiving a Token, so as to complete the current-limiting transmission of all data to be transmitted with high service priority.
It should be noted that, the algorithm mechanism of Token Bucket policy is that the system adds Token into Bucket according to fixed speed, if the Bucket is full, it will not be added any more. When a request comes, one Token is taken away, the request processing can be continued after the Token is taken, and service is refused without the Token. Therefore, in the weak network mode, if the preset condition is met, the network data of the terminal device with the highest priority is controlled to be sent preferentially, specifically: the network data of the terminal equipment with the highest priority is sent through a redundancy mode, the service data of the terminal equipment with the highest priority can use a Token Bucket strategy, at the moment, a management program only allows the service data to pass through a fixed number of service packets in a fixed time period, the service data of the terminal equipment with the middle priority and the terminal equipment with the low priority are refused, and the network resources are not allowed to be used, so that the network data with the high priority is limited in the weak network mode, and the arrival reliability of the highest priority is not influenced. The preset conditions are specifically as follows: with only one path remaining unbroken; under the redundancy strategy, the service data packet with the highest priority has transmission failure or more than 3 times of retransmission.
And step S6, based on the current sending scheduling strategy corresponding to each data to be transmitted, sending all the data to be transmitted with the service priority being the highest priority or the high priority to the corresponding network interface through the corresponding transmission path so as to enable the server to acquire the corresponding data to be transmitted through the corresponding network interface.
Referring to fig. 4, a schematic structural diagram of a 5G industrial gateway according to an embodiment of the present invention is provided, where the 5G industrial gateway includes a service level setting module 1, a transmission parameter setting module 2, and a data transmission module 3, where each module is specifically as follows:
the service level setting module 1 is used for acquiring data to be transmitted of all the hung terminal devices and setting service priority of each terminal device; wherein, the service priority is determined according to the service data volume and the service type of the data to be transmitted;
the transmission parameter setting module 2 is used for determining a transmission path and a sending scheduling strategy corresponding to each data to be transmitted according to the set service priority; the sending scheduling strategy is used for determining the sending sequence of the corresponding data to be transmitted;
the data transmission module 3 is configured to send each data to be transmitted to a corresponding network interface through a corresponding transmission path according to a sending scheduling policy and based on a QUIC protocol, so that the server side obtains the corresponding data to be transmitted through the corresponding network interface.
As a preferred solution, referring to fig. 4, the 5G industrial gateway further includes a weak network transmission module 4, which is specifically as follows:
the weak network transmission module 4 is configured to reject sending all data to be transmitted, where the service priority sent by the terminal device is middle priority or low priority, to the server and adjust a sending scheduling policy corresponding to all data to be transmitted, where the service priority is high priority, to a Token Bucket policy when the service priority includes the highest priority, the high priority, the middle priority or the low priority in a weak network environment; the Token Bucket policy refers to sequentially transmitting each data to be transmitted when receiving a Token, so as to complete the current-limiting transmission of all data to be transmitted with high service priority; based on the current sending scheduling policy corresponding to each data to be transmitted, sending all data to be transmitted with the service priority being the highest priority or high priority to the corresponding network interface through the corresponding transmission path, so that the server side obtains the corresponding data to be transmitted through the corresponding network interface.
As a preferred solution, the transmission parameter setting module 2 specifically includes a first setting unit 21, a second setting unit 22, and a third setting unit 23, where each unit specifically includes:
a first setting unit 21, configured to set a transmission scheduling policy of all data to be transmitted, where the service priority is the highest priority or the high priority, as a redundancy policy; the redundancy strategy is to send all the data packets obtained by copying the data to be transmitted to the server through a plurality of transmission paths;
a second setting unit 22, configured to set a transmission scheduling policy of all data to be transmitted with a service priority being a medium priority to a minimum round trip time policy; the minimum round trip time strategy is to select a corresponding transmission path according to the minimum round trip time corresponding to each transmission path so as to send data to be transmitted to the server;
a third setting unit 23, configured to set a transmission scheduling policy of all data to be transmitted with a service priority being a highest priority as a polling policy; the polling policy refers to polling all transmission paths to send each data to be transmitted to the server.
As a preferred solution, the data transmission module 3 specifically includes a judging unit 31, a first data transmission unit 32, and a second data transmission unit 33, where each unit specifically includes:
a judging unit 31, configured to judge whether a Connection ID exists in the server; the ConnectionID is a transmission parameter between the server and each corresponding terminal device;
the first data transmission unit 32 is configured to send, if a Connection ID exists in the current server, data to be transmitted to a corresponding network interface through a corresponding transmission path based on the Connection ID, so that the current server obtains the corresponding data to be transmitted through the corresponding network interface;
and the second data transmission unit 33 is configured to establish a transmission Connection between the current server and each corresponding terminal device based on the qic protocol if the Connection ID does not exist in the current server, store the Connection ID corresponding to the current transmission Connection to the current server, and then send the data to be transmitted to the corresponding network interface through the corresponding transmission path, so that the current server obtains the corresponding data to be transmitted through the corresponding network interface.
As a preferred solution, referring to fig. 4, the 5G industrial gateway further includes a path on-off judging module 5, which specifically includes:
the path on-off judging module 5 is used for judging the on-off state of each transmission path according to the connection state of the WIFI module or the dialing state of the 5G module; or detecting the on-off state of each transmission path by a PING mode.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the 5G industrial gateway described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the invention provides a QUIC protocol-based multipath transmission method and a 5G industrial gateway, which are used for determining the service priority corresponding to data to be transmitted according to the service data volume and the service type of the data to be transmitted, and carrying out path selection and transmission scheduling on the data to be transmitted according to the predetermined service priority and a transmission scheduling strategy so as to ensure the priority transmission and the transmission reliability of important service data of all the hung terminal equipment, thereby enabling a server to timely receive the important service data of the terminal equipment and quickly respond. In addition, since the quench protocol defines Offset data for each Stream, and each request in the quench protocol requires ACK reply, when a packet is lost, specific Stream ID and Offset are required to be retransmitted, so as to realize transmission reliability, and the quench protocol adopts TLS encryption component, so that transmission security can be ensured. Meanwhile, through the QUIC protocol, multi-channel concurrent transmission can be realized, so that the transmission efficiency of data to be transmitted is further improved.
Further, in the weak network environment, the service of all data to be transmitted with the service priority being the medium priority or the low priority is refused, and the sending scheduling strategy corresponding to all data to be transmitted with the service priority being the high priority is adjusted, so that the current-limiting transmission of all data to be transmitted with the service priority being the high priority is realized, and the transmission of the data to be transmitted with the service priority being the high priority is prevented from influencing the transmission efficiency of the data to be transmitted with the higher priority.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.
Claims (10)
1. A QUIC protocol-based multipath transmission method, comprising:
acquiring data to be transmitted of all terminal equipment hung down, and setting service priority of each terminal equipment;
determining a transmission path and a sending scheduling strategy corresponding to each piece of data to be transmitted according to the set service priority;
according to the sending scheduling policy and based on QUIC protocol, each data to be transmitted is sent to a corresponding network interface through a corresponding transmission path, so that a server side obtains the corresponding data to be transmitted through the corresponding network interface;
the service priority is determined according to the service data volume and the service type of the data to be transmitted, and the sending scheduling policy is used for determining the sending sequence of the corresponding data to be transmitted.
2. The quit protocol-based multipath transmission method as claimed in claim 1, further comprising:
when the service priority comprises the highest priority, the high priority, the medium priority or the low priority in the weak network environment, rejecting to send all data to be transmitted, of which the service priority is the medium priority or the low priority, sent by the terminal equipment to the service end, and adjusting the sending scheduling policy corresponding to all the data to be transmitted, of which the service priority is the high priority, to be a Token Bucket policy; the Token Bucket policy refers to sequentially transmitting each data to be transmitted when a Token is received, so as to complete the current-limiting transmission of all the data to be transmitted, wherein the service priority of the data to be transmitted is high;
and based on the current sending scheduling policy corresponding to each data to be transmitted, sending all the data to be transmitted, of which the service priority is the highest priority or the high priority, to the corresponding network interface through the corresponding transmission path, so that the server side obtains the corresponding data to be transmitted through the corresponding network interface.
3. The multi-path transmission method based on the QUIC protocol according to claim 1, wherein the determining, according to the set service priority, a transmission path and a transmission scheduling policy corresponding to each data to be transmitted specifically includes:
setting the sending scheduling strategy of all the data to be transmitted, wherein the service priority is the highest priority or the highest priority, as a redundancy strategy; the redundancy strategy is that a plurality of data packets obtained by copying the data to be transmitted are all sent to the server through a plurality of transmission paths;
setting the sending scheduling strategy of all the data to be transmitted with the service priority being the medium priority as a minimum round trip time strategy; the minimum round-trip time strategy refers to selecting a corresponding transmission path according to the minimum round-trip time corresponding to each transmission path so as to send the data to be transmitted to the server;
setting the sending scheduling strategy of all the data to be transmitted with the highest service priority as a polling strategy; the polling policy refers to polling all the transmission paths to send each data to be transmitted to the server.
4. The multi-path transmission method based on the QUIC protocol according to claim 1, wherein the sending scheduling policy and the QUIC protocol are used to send each data to be transmitted to a corresponding network interface through the corresponding transmission path, so that a server obtains the corresponding data to be transmitted through the corresponding network interface, specifically:
judging whether a Connection ID exists in the server side; wherein, the Connection ID is a transmission parameter between the server and each corresponding terminal device;
if the Connection ID exists in the current server, sending the data to be transmitted to the corresponding network interface through the corresponding transmission path based on the Connection ID, so that the current server obtains the corresponding data to be transmitted through the corresponding network interface;
if the Connection ID does not exist in the current service end, based on a QUIC protocol, a transmission Connection between the current service end and each corresponding terminal device is established, the Connection ID corresponding to the current transmission Connection is stored to the current service end, and then the data to be transmitted is sent to the corresponding network interface through the corresponding transmission path, so that the current service end obtains the corresponding data to be transmitted through the corresponding network interface.
5. The quit protocol-based multipath transmission method as claimed in claim 1, further comprising:
judging the on-off state of each transmission path according to the connection state of the WIFI module or the dialing state of the 5G module; the WIFI module and the 5G module are used for realizing data transmission between the server and the terminal equipment;
or detecting the on-off state of each transmission path by a PING mode.
6. A 5G industrial gateway, comprising:
the service level setting module is used for acquiring data to be transmitted of all the hung terminal equipment and setting service priority of each terminal equipment; wherein the service priority is determined according to the service data volume and the service type of the data to be transmitted;
the transmission parameter setting module is used for determining a transmission path and a sending scheduling strategy corresponding to each piece of data to be transmitted according to the set service priority; the sending scheduling strategy is used for determining the sending sequence of the corresponding data to be transmitted;
and the data transmission module is used for respectively transmitting each data to be transmitted to a corresponding network interface through the corresponding transmission path based on a QUIC protocol according to the transmission scheduling strategy so that a server side obtains the corresponding data to be transmitted through the corresponding network interface.
7. The 5G industrial gateway of claim 6, further comprising:
the weak network transmission module is configured to reject sending all data to be transmitted, sent by the terminal device, to the server, where the data to be transmitted includes a highest priority, a high priority, a middle priority, or a low priority, and adjust the sending scheduling policy corresponding to all data to be transmitted, where the service priority is the middle priority or the low priority, to a Token Bucket policy when the service priority is in a weak network environment; the Token Bucket policy refers to sequentially transmitting each data to be transmitted when a Token is received, so as to complete the current-limiting transmission of all the data to be transmitted, wherein the service priority of the data to be transmitted is high; and based on the current sending scheduling policy corresponding to each data to be transmitted, sending all the data to be transmitted, of which the service priority is the highest priority or the high priority, to the corresponding network interface through the corresponding transmission path, so that the server side obtains the corresponding data to be transmitted through the corresponding network interface.
8. The 5G industrial gateway of claim 6, wherein the transmission parameter setting module specifically comprises:
a first setting unit, configured to set, as a redundancy policy, a transmission scheduling policy of all the data to be transmitted, where the service priority is the highest priority or a high priority; the redundancy strategy is that a plurality of data packets obtained by copying the data to be transmitted are all sent to the server through a plurality of transmission paths;
a second setting unit, configured to set a transmission scheduling policy of all the data to be transmitted, where the service priority is a medium priority, as a minimum round trip time policy; the minimum round-trip time strategy refers to selecting a corresponding transmission path according to the minimum round-trip time corresponding to each transmission path so as to send the data to be transmitted to the server;
a third setting unit, configured to set a transmission scheduling policy of all the data to be transmitted, where the service priority is the highest priority, as a polling policy; the polling policy refers to polling all the transmission paths to send each data to be transmitted to the server.
9. The 5G industrial gateway of claim 6, wherein the data transmission module specifically comprises:
the judging unit is used for judging whether a Connection ID exists in the server side; wherein, the Connection ID is a transmission parameter between the server and each corresponding terminal device;
the first data transmission unit is used for sending the data to be transmitted to the corresponding network interface through the corresponding transmission path based on the Connection ID if the Connection ID exists in the current server, so that the current server can acquire the corresponding data to be transmitted through the corresponding network interface;
and the second data transmission unit is used for establishing transmission Connection between the current service end and each corresponding terminal equipment based on a QUIC protocol if the Connection ID does not exist in the current service end, storing the Connection ID corresponding to the current transmission Connection to the current service end, and then sending the data to be transmitted to the corresponding network interface through the corresponding transmission path so as to enable the current service end to acquire the corresponding data to be transmitted through the corresponding network interface.
10. The 5G industrial gateway of claim 6, further comprising:
the path on-off judging module is used for judging the on-off state of each transmission path according to the connection state of the WIFI module or the dialing state of the 5G module; or detecting the on-off state of each transmission path by a PING mode; the WIFI module and the 5G module are used for realizing data transmission between the server and the terminal equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211009731.3A CN117098240A (en) | 2022-08-22 | 2022-08-22 | QUIC protocol-based multipath transmission method and 5G industrial gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211009731.3A CN117098240A (en) | 2022-08-22 | 2022-08-22 | QUIC protocol-based multipath transmission method and 5G industrial gateway |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117098240A true CN117098240A (en) | 2023-11-21 |
Family
ID=88772336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211009731.3A Pending CN117098240A (en) | 2022-08-22 | 2022-08-22 | QUIC protocol-based multipath transmission method and 5G industrial gateway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117098240A (en) |
-
2022
- 2022-08-22 CN CN202211009731.3A patent/CN117098240A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7499395B2 (en) | BFD rate-limiting and automatic session activation | |
US7739384B2 (en) | System and method for load balancing | |
US10530644B2 (en) | Techniques for establishing a communication connection between two network entities via different network flows | |
EP3694160A1 (en) | Date transmission method, apparatus and device | |
US7561587B2 (en) | Method and system for providing layer-4 switching technologies | |
JP2008523735A (en) | Electronic message distribution system having network device | |
US8964766B2 (en) | Session relay equipment and session relay method | |
US10367893B1 (en) | Method and apparatus of performing peer-to-peer communication establishment | |
EP3456006A1 (en) | Improved resource usage in a multipath network | |
US7715401B2 (en) | Router | |
CN100541437C (en) | Prevent network reset denial of service attacks | |
US8782286B2 (en) | Optimizing state sharing between firewalls on multi-homed networks | |
US6977899B1 (en) | Method and apparatus for message-based overload control in a distributed call-processor communication system | |
WO2012049363A1 (en) | Method, system and element for multipurpose data traffic engineering and routing | |
CN114268578B (en) | Data transmission method, device, equipment and storage medium for switching line | |
JP2006165879A (en) | Call control system, call control method and call control program | |
CN117098240A (en) | QUIC protocol-based multipath transmission method and 5G industrial gateway | |
Cisco | Configuring PPP for Wide-Area Networking | |
Cisco | Configuring PPP for Wide-Area Networking | |
Cisco | Configuring PPP for Wide-Area Networking | |
Cisco | Configuring PPP for Wide-Area Networking | |
Cisco | Configuring PPP for Wide-Area Networking | |
CN115766605A (en) | Network congestion control method, device and system | |
CN116016025A (en) | Communication method, device and storage medium | |
Cisco | Configuring PPP for Wide-Area Networking |
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 |