Data transmission method, system, device, medium and program

By performing type identification and priority allocation of service data packets and configuring appropriate data transmission strategies, the problem of low data transmission efficiency caused by the inability to identify data packet types in the prior art is solved, and more efficient and reliable data transmission is achieved.

CN119996531APending Publication Date: 2025-05-13SHUOHUANG RAILWAY DEV +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510129427.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-05
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, the actual data type of the data packet cannot be identified during data transmission, resulting in the inability to carry out targeted service quality policies and priority strategies for different data packets, thus affecting the reliability and efficiency of data transmission.

Method used

By obtaining the service data packets of the preset service server and identifying them in type, assigning priority according to the data type, and configuring the corresponding data transmission strategy for data transmission, finally optimizing the data transmission strategy based on the transmission effect.

Benefits of technology

Effectively identify and process business data packets, ensure priority processing of critical data, reduce latency and loss risks, and improve overall performance and efficiency of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996531A_ABST
    Figure CN119996531A_ABST
Patent Text Reader

Abstract

The invention relates to a data transmission method, system and device, a storage medium and a computer program, and the method comprises the steps: obtaining a business data packet of a preset business server, carrying out the type recognition of the business data packet, and obtaining the data type of the business data packet; allocating corresponding priorities to the service data packets according to the data types to obtain priority service data packets; configuring a corresponding data transmission strategy for the priority service data packet for data transmission to obtain target data; and optimizing the data transmission strategy according to the target data to obtain a target transmission strategy. According to the invention, the reliability, the safety and the data transmission efficiency of data transmission are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a data transmission method, system, device, medium and program. Background Art

[0002] Data transmission methods play an increasingly important role in modern society. Data transmission is the basis for realizing communication between computers and the Internet. Data transmission is the transmission of data from the data source to the data terminal through one or more data links in accordance with certain procedures. With the advent of the big data era, the development of data transmission methods has become the focus of attention in all walks of life.

[0003] In the prior art, a single port is often used for data transmission. This method makes it possible to know the data type of each data packet only after parsing the data packet at the application layer. The actual data type of the data packet cannot be identified during the standard three-layer network transmission process, so it is impossible to implement targeted service quality strategies and priority strategies for different data packets, and it is impossible to provide special transmission guarantees for key data. Therefore, how to improve the reliability and efficiency of data transmission has become an urgent problem to be solved. Summary of the invention

[0004] The present application provides a data transmission method, system, device, medium and program to solve the problems of poor data transmission security and transmission efficiency.

[0005] In a first aspect, the present application provides a data transmission method, comprising:

[0006] Acquire a service data packet of a preset service server, and perform type identification on the service data packet to obtain a data type of the service data packet;

[0007] Assigning a corresponding priority to the service data packet according to the data type to obtain a priority service data packet;

[0008] The data transmission strategy corresponding to the configuration of the priority service data packet is used to perform data transmission to obtain target data;

[0009] The data transmission strategy is optimized according to the target data to obtain a target transmission strategy.

[0010] In some embodiments, the performing type identification on the service data packet to obtain the data type of the service data packet includes:

[0011] Parsing the service data packet to obtain a port number corresponding to the service data packet;

[0012] Determine a mapping relationship corresponding to the service data packet based on a preset mapping table between the port number and the data type;

[0013] The data type corresponding to the service data packet is queried according to the mapping relationship.

[0014] In some embodiments, assigning a corresponding priority to the service data packet according to the data type to obtain a priority service data packet includes:

[0015] Setting different preset queues according to different types of service data packets to obtain queue data packets;

[0016] The queue data packets are assigned priorities according to a queue sorting algorithm to obtain priority service data packets.

[0017] In some embodiments, the priority of the queue data packets is assigned according to the queue sorting algorithm to obtain the service data packets in the high priority queue, including:

[0018] Marking the queue data packets to obtain marked service data packets;

[0019] Extracting the corresponding label value according to the marked service data packet;

[0020] The service data packets are prioritized according to the label values ​​based on the priority allocation rules in the queue sorting algorithm to obtain priority service data packets.

[0021] In some embodiments, the step of configuring a data transmission strategy corresponding to the priority service data packet to perform data transmission to obtain target data includes:

[0022] Obtaining a data transmission strategy corresponding to the priority service data packet;

[0023] According to the data transmission strategy, the corresponding priority service data packet is transmitted to obtain the target data.

[0024] In some embodiments, the step of transmitting the corresponding priority service data packet according to the data transmission strategy to obtain the target data includes:

[0025] Constructing a heartbeat frame according to the heartbeat data packet;

[0026] Receiving the heartbeat frame sending request initiated by a preset vehicle-mounted device to obtain heartbeat frame data;

[0027] The heartbeat frame data is forwarded to a preset ground device.

[0028] In some embodiments, the step of transmitting the corresponding priority service data packet according to the data transmission strategy to obtain the target data includes:

[0029] Parsing the data message of the mobile blocking data packet according to the preset IP parsing rule to obtain the target IP address and port information corresponding to the preset ground device;

[0030] The mobile blocking data packet is forwarded to the ground device based on the target IP address and the port information.

[0031] In some embodiments, the step of transmitting the corresponding priority service data packet according to the data transmission strategy to obtain the target data includes:

[0032] Using the port number corresponding to the security tail data packet as an identification port;

[0033] Marking the security queue tail data packet as a highest priority data packet according to the identification port;

[0034] The highest priority data packet is forwarded to a preset vehicle-mounted device.

[0035] In some embodiments, the step of transmitting the corresponding priority service data packet according to the data transmission strategy to obtain the target data includes:

[0036] Receive a data frame request initiated by a preset vehicle-mounted device and obtain a status data frame;

[0037] Parsing the status data frame to obtain key information;

[0038] According to the key information, the status data frame is forwarded to a preset ground device based on a predefined priority strategy.

[0039] In some embodiments, optimizing the data transmission strategy according to the target data to obtain a target transmission strategy includes:

[0040] Determine the data type corresponding to the target data;

[0041] Performing data transmission on the service data packets corresponding to the data types to obtain the transmission effect corresponding to the target data;

[0042] Performing evaluation and analysis based on the transmission effect to obtain target optimization parameters;

[0043] The target optimization parameters are input into a pre-built Bayesian optimization algorithm model to obtain a target data transmission strategy corresponding to the target data.

[0044] In some implementations, inputting the target optimization parameters into a pre-built Bayesian optimization algorithm model to obtain a target data transmission strategy corresponding to the target data includes:

[0045] Using a Gaussian algorithm to fit the target optimization parameters, obtaining an optimization function corresponding to the data transmission strategy;

[0046] The data transmission strategy corresponding to the optimization function is optimized through the Bayesian optimization algorithm model to obtain a target data transmission strategy.

[0047] In a second aspect, the present application provides a data transmission method and apparatus, including:

[0048] A type identification module is used to obtain a service data packet of a preset service server, and perform type identification on the service data packet to obtain a data type of the service data packet;

[0049] A priority allocation module, used to allocate a corresponding priority to the service data packet according to the data type to obtain a priority service data packet;

[0050] A data transmission module, configured to perform data transmission on the data packet of the priority service in accordance with the corresponding data transmission strategy, so as to obtain target data;

[0051] The strategy optimization module is used to optimize the data transmission strategy according to the target data to obtain a target transmission strategy.

[0052] In a third aspect, the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above aspects.

[0053] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the above aspects when executed by a processor.

[0054] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the method described in the above aspects when executed by a processor.

[0055] The present application provides a data transmission method, system, device, medium and program, which can significantly reduce the time of invalid or erroneous processing and effectively realize the identification type of business data packets by acquiring business data packets of a preset business server and identifying the type of the business data packets; assigning corresponding priorities to the business data packets according to the data type helps to ensure that key data can be processed first, reduce the risk of delays and losses, ensure the integrity of data transmission, and thus improve the overall performance of data transmission; configuring corresponding data transmission strategies for the priority business data packets for data transmission can reduce the waste of network resources, and setting specific data transmission strategies for priority business data packets can improve the transmission efficiency of data transmission; optimizing the data transmission strategy according to the target data can further ensure the integrity and reliability of the target data and further improve the overall data transmission speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The present application will be described in more detail below based on embodiments and with reference to the accompanying drawings:

[0057] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;

[0058] Figure 2 A schematic diagram of functional modules of a data transmission device provided in an embodiment of the present application;

[0059] Figure 3 A schematic diagram of the structure of an electronic device for a data transmission method provided in an embodiment of the present application.

[0060] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION

[0061] In order to enable those skilled in the art to better understand the technical solution of the present application, and to fully understand and implement how the present application applies technical means to solve technical problems and achieve the corresponding technical effects, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. The embodiments of the present application and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the scope of protection of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should belong to the scope of protection of the present application.

[0062] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0063] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0064] The embodiment of the present application provides a data transmission method. The execution subject of the data transmission method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the system provided by the embodiment of the present application. In other words, the data transmission method can be executed by software or hardware installed on a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.

[0065] Embodiment 1

[0066] Figure 1 A flow chart of a data transmission method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the data transmission method includes:

[0067] S1. Obtain a service data packet of a preset service server, and perform type identification on the service data packet to obtain a data type of the service data packet.

[0068] In an embodiment of the present invention, the service data packet refers to different types of service data, including heartbeat data, mobile blocking service data, safety tail data, status monitoring data, etc., which are distinguished by defining multiple different port numbers during the data transmission process; the data types include heartbeat service, mobile blocking service, safety tail service, and device status service.

[0069] In detail, the heartbeat data can be used for status synchronization and connection maintenance between on-board equipment and ground equipment; the mobile block service data can be used for mobile block signal transmission in the train operation control system to ensure safe operation of the train; the safety tail data can be used for train tail status monitoring and safety signal transmission; the status monitoring data can be used for real-time status monitoring and diagnosis of on-board and ground equipment.

[0070] In the embodiment of the present invention, programming languages ​​such as Python and Java can be used to connect to the preset service server through the HTTP protocol, and an HTTP request can be sent to obtain a service data packet, thereby obtaining the service data packet.

[0071] In the embodiment of the present invention, the step of performing type identification on the service data packet to obtain the data type of the service data packet includes:

[0072] Parsing the service data packet to obtain a port number corresponding to the service data packet;

[0073] Determine a mapping relationship corresponding to the service data packet based on a preset mapping table between the port number and the data type;

[0074] The data type corresponding to the service data packet is queried according to the mapping relationship.

[0075] The mapping table of the present invention is specifically shown in the following table:

[0076] Data Types Port Number Heartbeat service 1000-1999 Mobile Block Service 2000-2999 Safety tail service 3000-3999 Equipment status service 4000-4999

[0077] In detail, the present invention extracts specific fields from the IP header of the business data packet through bit mask and bit shift operations, and uses network libraries such as Python to obtain the port number corresponding to the business data packet; the port number is used as the key in the mapping table, and the data type is used as the value, and a mapping relationship between the port number and the data type is obtained through a configuration file such as XML, and the data type corresponding to the business data packet is obtained by using the port number as the key for a search operation.

[0078] In the embodiment of the present invention, based on the preset mapping table between the port number and the data type, the mapping relationship corresponding to the service data packet is obtained, which provides efficient search performance and effectively realizes the type identification of the service data packet.

[0079] In an embodiment of the present invention, by obtaining a business data packet of a preset business server and identifying the type of the business data packet to obtain the data type of the business data packet, the time for invalid or error processing can be significantly reduced, the type identification of the business data packet can be effectively implemented, and the overall data transmission speed can be improved.

[0080] S2. Allocate a corresponding priority level to the service data packet according to the data type to obtain a priority service data packet.

[0081] In the embodiment of the present invention, the priority service data packet refers to a service data packet that is assigned a corresponding priority according to the data type in priority allocation, thereby obtaining a priority service data packet.

[0082] In the embodiment of the present invention, the assigning of a corresponding priority to the service data packet according to the data type to obtain a priority service data packet includes:

[0083] Setting different preset queues according to different types of service data packets to obtain queue data packets;

[0084] The queue data packets are assigned priorities according to a queue sorting algorithm to obtain priority service data packets.

[0085] In detail, in order to effectively manage and optimize different types of business data packets, different preset queues are set according to the type of the business data packets. Each queue is used to store business data packets of different data types, and priority is allocated through a queue scheduling algorithm such as a strict priority scheduling algorithm, thereby obtaining business data packets in a high priority queue.

[0086] In the embodiment of the present invention, the priority of the queue data packets is assigned according to the queue sorting algorithm to obtain the service data packets in the high priority queue, including:

[0087] Marking the queue data packets to obtain marked service data packets;

[0088] Extracting the corresponding label value according to the marked service data packet;

[0089] The service data packets are prioritized according to the label values ​​based on the priority allocation rules in the queue sorting algorithm to obtain priority service data packets.

[0090] In detail, the data packet marking refers to adding specific labels or tags to business data packets in network equipment according to specific attributes of the data packets including data types, so as to quickly identify the priority and processing method of the business data packets; the priority allocation rules refer to assigning different processing priorities to data packets according to the tags of the business data packets. The priority allocation rules include key business priority, etc. The key business priority refers to the priority processing of key business data, such as mobile blocking business data, security queue tail data and other key business data.

[0091] Furthermore, the present invention marks the service data packet by adding a differentiated service code point, i.e., a DSCP tag. The DSCP tag first parses the header information of the IP data packet, and extracts the DSCP value in the service type field of the IP data packet header. The DSCP value is a 6-bit binary number that can represent 64 different priorities. A mapping relationship between the DSCP value and the priority queue is obtained through a predefined priority queue mapping table. The priority queue mapping table contains the label value, i.e., the DSCP value, of each marked service data packet. The marked service data packets are prioritized according to the mapping relationship, thereby obtaining priority service data packets.

[0092] In an embodiment of the present invention, a corresponding priority is assigned to the business data packet according to the data type to obtain a priority business data packet, which helps to ensure that critical data can be processed first, reduce the risk of delay and loss, ensure the integrity of data transmission, and thus improve the overall performance of data transmission.

[0093] S3. Configure a corresponding data transmission strategy for the priority service data packet to perform data transmission and obtain target data.

[0094] In an embodiment of the present invention, the data transmission strategy refers to a series of methods adopted during the data transmission process to ensure that data can be efficiently, safely and reliably transmitted from the data source to the destination. The present invention configures the corresponding data transmission strategy for the priority service data packet to perform data transmission, including heartbeat service transmission strategy, mobile blocking service transmission strategy, safety tail transmission strategy, device status transmission strategy, etc.

[0095] In the embodiment of the present invention, the step of configuring a data transmission strategy corresponding to the priority service data packet to perform data transmission to obtain target data includes:

[0096] Obtaining a data transmission strategy corresponding to the priority service data packet;

[0097] According to the data transmission strategy, the corresponding priority service data packet is transmitted to obtain the target data.

[0098] In detail, the heartbeat data can be used for status synchronization and connection maintenance between on-board equipment and ground equipment; the moving block service data can be used for moving block signal transmission in the train operation control system to ensure safe train operation; the safety tail data can be used for train tail status monitoring and safety signal transmission; the status monitoring data can be used for real-time status monitoring and diagnosis of on-board and ground equipment

[0099] In detail, if the priority service data packet is a heartbeat data packet, and the data transmission strategy is a heartbeat service transmission strategy, the corresponding priority service data packet is transmitted according to the data transmission strategy to obtain the target data, including:

[0100] Constructing a heartbeat frame according to the heartbeat data packet;

[0101] Receiving the heartbeat frame sending request initiated by a preset vehicle-mounted device to obtain heartbeat frame data;

[0102] The heartbeat frame data is forwarded to a preset ground device.

[0103] Furthermore, a heartbeat frame is constructed by extracting key information of the heartbeat data packet, wherein the key information includes a frame sequence number, a target device type, a red and blue network identification, time calibration information, etc. The sending period of the heartbeat frame is set to 1 second, and heartbeat frames are periodically sent to the vehicle-mounted device through a preset communication interface between the vehicle-mounted device and the ground device to obtain heartbeat frame data. The heartbeat frame data includes a frame sequence number, a network connection status, a network attachment status, a network signal strength, etc., thereby realizing the data transmission of the heartbeat data packet by the heartbeat service transmission strategy.

[0104] In detail, if the priority service data packet is a mobile blocking data packet, and the data transmission strategy is a mobile blocking service transmission strategy, the step of performing data transmission on the corresponding priority service data packet according to the data transmission strategy to obtain target data includes:

[0105] Parsing the data message of the mobile blocking data packet according to the preset IP parsing rule to obtain the target IP address and port information corresponding to the preset ground device;

[0106] The mobile blocking data packet is forwarded to the ground device based on the target IP address and the port information.

[0107] Furthermore, the data message of the mobile blocking data packet includes the IP address and port information of the ground device. According to the preset IP resolution rule, that is, only the IP address of the red network target device in the packet header is resolved in the red network environment, and only the IP address of the blue network target device in the packet header is resolved in the blue network environment. Based on the target IP address and the port information, the mobile blocking data packet is forwarded to the ground device using a transparent forwarding strategy. The transparent forwarding strategy refers to not parsing the data content of the mobile blocking service data packet, but only transparently forwarding it based on the target IP address and port information, which effectively improves the data forwarding efficiency, while enhancing the security of data transmission and avoiding the performance overhead that may be caused by data content parsing.

[0108] If the priority service data packet is a safety tail data packet, and the data transmission strategy is a safety tail service transmission strategy, the data transmission of the corresponding priority service data packet is performed according to the data transmission strategy to obtain the target data, including:

[0109] Using the port number corresponding to the security tail data packet as an identification port;

[0110] Marking the security queue tail data packet as a highest priority data packet according to the identification port;

[0111] The highest priority data packet is forwarded to a preset vehicle-mounted device.

[0112] In detail, the port number corresponding to the security tail data packet in the preset security tail device is determined as the identification port of the security tail device and the vehicle-mounted device, and the security tail service data packet is marked by adding a DSCP tag to obtain the highest priority data packet, and the highest priority data packet is directly forwarded to the vehicle-mounted device without further processing or delay.

[0113] If the priority service data packet is a status monitoring data packet, and the data transmission strategy is a device status service transmission strategy, the data transmission of the corresponding priority service data packet is performed according to the data transmission strategy to obtain the target data, including:

[0114] Receive a data frame request initiated by a preset vehicle-mounted device and obtain a status data frame;

[0115] Parsing the status data frame to obtain key information;

[0116] According to the key information, the status data frame is forwarded to a preset ground device based on a predefined priority strategy.

[0117] Specifically, the key information includes equipment health status, working mode, warning details and fault codes. According to the predefined priority forwarding strategy such as fault level and urgency, the parsed status data frames are classified and forwarded to the ground equipment through communication protocols such as Ethernet and wireless communication in order of priority.

[0118] In an embodiment of the present invention, a corresponding data transmission strategy is configured for the priority service data packet to perform data transmission, thereby reducing the waste of network resources. Network resources can be utilized more effectively, and a specific data transmission strategy can be set for the priority service data packet, thereby improving the reliability and efficiency of data transmission.

[0119] S4. Optimize the data transmission strategy according to the target data to obtain a target transmission strategy.

[0120] In an embodiment of the present invention, after data transmission is completed, the data transmission strategy is evaluated according to the actual transmission effect (such as transmission time, packet loss rate, delay, etc.) to obtain the required optimization parameters, and the data transmission strategy is adjusted and optimized according to the optimization parameters to adapt to changes in network conditions and development of business needs.

[0121] In the embodiment of the present invention, the step of optimizing the data transmission strategy according to the target data to obtain the target transmission strategy includes:

[0122] Determine the data type corresponding to the target data;

[0123] Performing data transmission on the service data packets corresponding to the data types to obtain the transmission effect corresponding to the target data;

[0124] Performing evaluation and analysis based on the transmission effect to obtain target optimization parameters;

[0125] The target optimization parameters are input into a pre-built Bayesian optimization algorithm model to obtain a target data transmission strategy corresponding to the target data.

[0126] In detail, according to the data type of the target data, a corresponding data transmission strategy is applied to transmit the business data packet to obtain the target data, and the target optimization parameters are obtained by analyzing and evaluating the transmission effect corresponding to the target data, such as the speed of data transmission, the efficiency of data transmission, etc. The target optimization parameters may refer to the network throughput per unit time of the business data packet corresponding to each data type when executing the corresponding data transmission strategy. Whether the network throughput meets the preset optimization conditions is judged. If so, the target optimization parameters are substituted into the Bayesian optimization algorithm model to obtain the target data transmission strategy.

[0127] In an embodiment of the present invention, the step of inputting the target optimization parameters into a pre-built Bayesian optimization algorithm model to obtain a target data transmission strategy corresponding to the target data includes:

[0128] Using a Gaussian algorithm to fit the target optimization parameters, obtaining an optimization function corresponding to the data transmission strategy;

[0129] The data transmission strategy corresponding to the optimization function is optimized through the Bayesian optimization algorithm model to obtain a target data transmission strategy.

[0130] In detail, the optimization function can be an expected improvement function, that is, a function between a data transmission strategy and optimization parameters; the optimization function is optimized by the Bayesian optimization algorithm model to maximize the optimization function, that is, the target data transmission strategy corresponding to the optimization function is obtained, which helps to maintain the high efficiency and reliability of data transmission, thereby improving the efficiency of data transmission.

[0131] In an embodiment of the present invention, the data transmission strategy is optimized according to the target data to ensure the integrity and real-time performance of the target data, thereby obtaining a target transmission strategy, thereby achieving reliable and accurate transmission of business data packets and improving the overall data transmission efficiency.

[0132] The present invention can significantly reduce the time of invalid or erroneous processing and effectively realize the identification type of business data packets by acquiring business data packets of a preset business server and identifying the type of the business data packets; assigning corresponding priorities to the business data packets according to the data types helps to ensure that key data can be processed first, reduce the risk of delays and losses, ensure the integrity of data transmission, and thus improve the overall performance of data transmission; configuring corresponding data transmission strategies for the priority business data packets for data transmission can reduce the waste of network resources, and setting specific data transmission strategies for priority business data packets can improve the transmission efficiency of data transmission; optimizing the data transmission strategy according to the target data can further ensure the integrity and reliability of the target data and further improve the speed of overall data transmission.

[0133] Embodiment 2

[0134] like Figure 2 , which is a functional module diagram of a data transmission device 100 provided for this embodiment.

[0135] The data transmission device 100 described in the present invention can be installed in an electronic device. According to the functions to be implemented, the data transmission device 100 may include a type identification module 101, a priority allocation module 102, a data transmission module 103, and a strategy optimization module 104. The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, and is stored in the memory of the electronic device.

[0136] In this embodiment, the functions of each module / unit are as follows:

[0137] The type identification module 101 is used to obtain a service data packet of a preset service server, and perform type identification on the service data packet to obtain a data type of the service data packet;

[0138] A priority allocation module 102, configured to allocate a corresponding priority to the service data packet according to the data type to obtain a priority service data packet;

[0139] The data transmission module 103 is used to configure the data transmission strategy corresponding to the priority service data packet to perform data transmission to obtain target data;

[0140] The strategy optimization module 104 is used to optimize the data transmission strategy according to the target data to obtain a target transmission strategy.

[0141] Embodiment 3

[0142] Figure 3 A schematic diagram of the structure of an electronic device for a data transmission method provided in an embodiment of the present application.

[0143] On the basis of the above embodiments, this embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above embodiments.

[0144] In some implementations of this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0145] In some implementations of this embodiment, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0146] The processor may include, but is not limited to, one or more processors or microprocessors, etc. Each processor may be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components to execute the methods in the above embodiments.

[0147] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof. The computer-readable storage medium may include, but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (e.g., hard disk, floppy disk, solid-state drive, removable disk, CDROM, DVDROM, Blu-ray disc, etc.).

[0148] The computer-readable storage medium may also store at least one computer executable program, such as a computer-readable instruction. The computer-readable storage medium includes, but is not limited to, for example, a volatile memory and / or a non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The computer-readable storage medium may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. For example, a non-transitory computer-readable storage medium may be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions stored on the computer-readable storage medium, the various methods described above may be performed.

[0149] In addition, the computer device may also include (but not limited to) a data bus, an input / output (I / O) bus, a display, and input / output devices (eg, keyboard, mouse, speaker, etc.), etc.

[0150] The processor may communicate with a communication interface of an external device via an I / O bus via a wired or wireless network.

[0151] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product / computer program product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.

[0152] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can also be implemented in other ways. The system embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the above-mentioned module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] It should be noted that, in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element limited by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0154] Although the implementation methods disclosed in this application are as above, the above contents are only the implementation methods adopted for facilitating the understanding of this application, and are not intended to limit this application. Any technician in the technical field to which this application belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in this application, but the scope of patent protection of this application shall still be based on the scope defined in the attached claims.

Claims

1. A data transmission method, characterized in that: The method comprises: Acquire a service data packet of a preset service server, and perform type identification on the service data packet to obtain a data type of the service data packet; Assigning a corresponding priority to the service data packet according to the data type to obtain a priority service data packet; The data transmission strategy corresponding to the configuration of the priority service data packet is used to perform data transmission to obtain target data; The data transmission strategy is optimized according to the target data to obtain a target transmission strategy.

2. The data transmission method according to claim 1, characterized in that: The performing type identification on the service data packet to obtain the data type of the service data packet includes: Parsing the service data packet to obtain a port number corresponding to the service data packet; Determine a mapping relationship corresponding to the service data packet based on a preset mapping table between the port number and the data type; The data type corresponding to the service data packet is queried according to the mapping relationship.

3. The data transmission method according to claim 1, characterized in that: The assigning a corresponding priority to the service data packet according to the data type to obtain a priority service data packet includes: Different queues are set according to different types of service data packets to obtain queue data packets; The queue data packets are assigned priorities according to a queue sorting algorithm to obtain priority service data packets.

4. The data transmission method according to claim 3, characterized in that: The step of assigning priorities to the queue data packets according to the queue sorting algorithm to obtain priority service data packets includes: Marking the queue data packets to obtain marked service data packets; Extracting the corresponding label value according to the marked service data packet; The service data packets are prioritized according to the label values ​​based on the priority allocation rules in the queue sorting algorithm to obtain priority service data packets.

5. The data transmission method according to claim 1, characterized in that: The step of configuring a data transmission strategy corresponding to the priority service data packet to perform data transmission to obtain target data includes: Obtaining a data transmission strategy corresponding to the priority service data packet; According to the data transmission strategy, the corresponding priority service data packet is transmitted to obtain the target data.

6. The data transmission method according to claim 1, characterized in that: The step of optimizing the data transmission strategy according to the target data to obtain a target transmission strategy includes: Determine the data type corresponding to the target data; Performing data transmission on the service data packets corresponding to the data types to obtain the transmission effect corresponding to the target data; Performing evaluation and analysis based on the transmission effect to obtain target optimization parameters; The target optimization parameters are input into a pre-built Bayesian optimization algorithm model to obtain a target data transmission strategy corresponding to the target data.

7. A data transmission device, characterized in that: The device comprises: A type identification module is used to obtain a service data packet of a preset service server, and perform type identification on the service data packet to obtain a data type of the service data packet; A priority allocation module, used to allocate a corresponding priority to the service data packet according to the data type to obtain a priority service data packet; A data transmission module, configured to perform data transmission on the data packet of the priority service in accordance with the corresponding data transmission strategy, so as to obtain target data; The strategy optimization module is used to optimize the data transmission strategy according to the target data to obtain a target transmission strategy.

8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.