CN117914936A - Data transmission method, data processing method, device, system and computer medium - Google Patents

Data transmission method, data processing method, device, system and computer medium Download PDF

Info

Publication number
CN117914936A
CN117914936A CN202211248274.3A CN202211248274A CN117914936A CN 117914936 A CN117914936 A CN 117914936A CN 202211248274 A CN202211248274 A CN 202211248274A CN 117914936 A CN117914936 A CN 117914936A
Authority
CN
China
Prior art keywords
data packet
data
target
sent
type
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
Application number
CN202211248274.3A
Other languages
Chinese (zh)
Inventor
陈佳丰
韩瑞
刘泓昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202211248274.3A priority Critical patent/CN117914936A/en
Publication of CN117914936A publication Critical patent/CN117914936A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a data sending method, a data processing device, a data sending system and a computer medium, which can be applied to various scenes such as data transmission, cloud games, cloud live broadcasting, data compression and the like. The method comprises the following steps: acquiring a data packet to be sent; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet; and sending the first target data packet to target equipment, so that the effect of reducing the air interface pressure of the wireless network, improving the smoothness of data and improving the user experience can be achieved.

Description

Data transmission method, data processing method, device, system and computer medium
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a data transmission method, a data processing method, a device, a system, and a computer medium.
Background
In the related art, with the widespread use of cloud games, more and more players can enter the games through various wireless devices. In a cloud game scene, the transmission of uplink data such as game pictures, sounds, mice, keyboards and the like has a great influence on the hand feeling of the game. In the related art, between the user equipment and the wireless equipment router, the number of data packets of uplink data is large, the air interface pressure of the wireless network is large, network jitter is easy to cause, so that data transmission is not smooth, further the time delay of receiving feedback data of a cloud end at the user equipment side is long, and user experience is poor.
Disclosure of Invention
The embodiment of the application provides a data sending method, a data processing device, a data processing system and a computer medium, which can reduce the number of data packets of uplink data between current equipment and target equipment by carrying out advanced aggregation on the uplink data to be sent, thereby reducing air interface pressure in a wireless network environment, improving the smoothness of the data and improving user experience.
In one aspect, an embodiment of the present application provides a data transmission method, where the method includes:
Acquiring a data packet to be sent;
when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet;
and sending the first target data packet to target equipment.
In another aspect, an embodiment of the present application provides a data processing method, where the method includes:
Receiving a first target data packet sent by first equipment, wherein the first target data packet is a data packet to be sent obtained by the first equipment; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
The first target data packet is sent to second equipment, and the second equipment responds correspondingly according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
In another aspect, an embodiment of the present application provides a configuration method, where the method includes:
Acquiring configuration information of an object aiming at a data packet type library;
configuring a data packet type library according to the configuration information;
And sending the data packet type library to first equipment, wherein the first equipment determines the type of the data packet to be sent according to the data packet to be sent and the data packet type library when executing the data sending method.
In another aspect, an embodiment of the present application provides a data transmitting apparatus, including:
an acquisition unit, configured to acquire a data packet to be sent;
The processing unit is used for packaging the data packet to be sent and the data packet which is not sent to obtain a first target data packet when the data packet to be sent is a data packet of a first type and a data packet which is not sent of a second type is cached, wherein the real-time requirement of the data packet of the second type is smaller than that of the data packet of the first type;
and the sending unit is used for sending the first target data packet to target equipment.
In another aspect, an embodiment of the present application provides a data processing apparatus, including:
The receiving unit is used for receiving a first target data packet sent by first equipment, wherein the first target data packet is a data packet to be sent obtained by the first equipment; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
The sending unit is used for sending the first target data packet to second equipment, so that the second equipment responds correspondingly according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
In another aspect, an embodiment of the present application provides a configuration apparatus, including:
The acquisition unit is used for acquiring the configuration information of the object aiming at the data packet type library;
The configuration unit is used for configuring a data packet type library according to the configuration information;
And the sending unit is used for sending the data packet type library to first equipment, and when the first equipment is used for executing the data sending method, the type of the data packet to be sent is determined according to the data packet to be sent and the data packet type library.
In another aspect, an embodiment of the present application provides a data processing system, the system including: the method comprises the steps of a first device, a second device and a target device, wherein:
The first device is configured to perform the foregoing data transmission method;
The target device is configured to receive a first target data packet sent by the first device when the data sending method is executed, and forward the first target data packet to the second device;
The second device is configured to receive a first target data packet forwarded by the target device, and make a corresponding response according to the first target data packet.
In another aspect, embodiments of the present application provide a computer readable storage medium storing a computer program adapted to be loaded by a processor to perform a method as described in any of the embodiments above.
In another aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the method according to any one of the embodiments above by calling the computer program stored in the memory.
In another aspect, embodiments of the present application provide a computer program product comprising computer instructions which, when executed by a processor, implement a method as in any of the embodiments above.
The embodiment of the application provides the following steps: acquiring a data packet to be sent; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet; according to the scheme for transmitting the first target data packet to the target device, when the second type of data packet with lower real-time requirements is received, the second type of data packet is temporarily not transmitted, the second type of data packet is stored, when the first type of data packet with higher real-time requirements is received, the unsent data packet and the data packet to be transmitted are packaged into a first target data packet and then transmitted to the target device, the number of data packets of uplink data transmitted to the target device side can be reduced, the air interface pressure of a wireless network is reduced, the occurrence probability of network jitter is reduced, the smoothness of data transmission is improved, the delay of feedback data received from the second device is shortened, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a schematic diagram of a data transmission mode in a cloud game scene in the related art;
FIG. 1b is a schematic diagram of a transmission situation of data transmitted over an air interface in the related art;
FIG. 2 is a schematic diagram of a data processing system according to an embodiment of the present application;
fig. 3a is a schematic flow chart of a data transmission method according to an embodiment of the present application;
FIG. 3b is a schematic diagram of a method for determining a first destination packet according to an embodiment of the present application;
FIG. 3c is a schematic diagram of another method for determining a first target packet according to an embodiment of the present application;
FIG. 3d is a schematic diagram of another method for determining a first target packet according to an embodiment of the present application;
fig. 3e is a flow chart of a method for sending uplink data on a first device side according to an embodiment of the present application;
Fig. 3f is a schematic diagram of a change situation of an interaction data packet between a client and a cloud after using the data sending method according to the embodiment of the present application;
Fig. 3g is a timing chart of interaction between a client and a cloud data packet when the data transmission method provided by the embodiment of the application is used;
FIG. 4 is a schematic flow chart of a data processing method according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of a configuration method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data transmitting apparatus according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a configuration device according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application 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 application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
First, partial terms or terminology appearing in the course of describing the embodiments of the application are explained as follows:
Network jitter: jitter is a concept commonly used within QOS (Quality of Service ), which means the degree of variation in packet delay. If the network is congested, queuing delay will affect end-to-end delay and cause the delay of packets transmitted over the same connection to vary, jitter being used to describe the extent of this delay variation.
Air port: i.e., the air interface, is a visualized term, relative to the concept of "line interface" in wired communications. "line interface" in wired communications defines the physical dimensions and a range of electrical or optical signal specifications; in wireless communication technology, an "air interface" defines the specification of an electrical wave link between a terminal device (e.g., a first device in the present application) and an access network device (e.g., a router) to make wireless communication as reliable as wired communication.
Air interface competition: refers to the occupation of an air interface caused by different devices transmitting radio waves to another device in the same space environment.
Instruction stream: in the cloud game data transmission process, the cloud game data transmission method is used for transmitting data streams of various control messages such as control transmission, information confirmation and the like.
And (3) uplink: the data transmission from the cloud to the client is referred to as downstream, and the data transmission from the client to the cloud is referred to as upstream. In a cloud game scenario, data transmission from a cloud game server to a cloud game client is referred to as downstream, and data transmission from a cloud game client to a cloud game server is referred to as upstream.
The TCP/IP protocol suite may be divided into 4 layers, an application layer, a transport layer, a network layer, and a data link layer, respectively.
1) Application layer: including communication protocol specifications between application services, such as FTP
(FileTransferProtocol ), DNS (domain NAME SYSTEM, domain name system), and HTTP (Hyper Text Transfer Protocol ).
2) Transmission layer: the transmission layer transmits data between the two computers to the application layer. The transport layer mainly uses the following two protocols: TCP (Transmission Control Protocol ) and UDP (User Datagram Protocol, user datagram protocol), wherein the units of data transmission that rely on TCP transmission are segments; the unit user datagram for data transmission according to UDP transmission does not guarantee the reliability of delivery.
3) Network layer: the network layer transmits the data packet provided by the transmission layer. For processing data packets flowing over a network, connectionless internet protocol IP and a wide variety of routing protocols are used. Yet another task of the network layer is to select the appropriate route.
4) Link layer (data link layer): the processing on the hardware is within the scope of the link layer. Such as: operating system, hardware device driver, network card, etc.
Common terminology interpretation in network communication:
(1) Data load: refers to a data unit that an upper layer protocol transmits to a lower layer protocol;
(2) The message comprises the following steps: units transmitted and exchanged in the network have a format of "header+data payload+trailer";
(3) Head: the information packaged in front of the data load;
(4) Tail part: information encapsulated behind the data payload;
(5) And (3) packaging: a process of adding a header and a trailer to the data payload;
(6) And (5) decapsulating: it is the reverse process of encapsulation, i.e., the process of data payload removal of the header and trailer.
Cloud technology (Cloud technology) refers to a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
The cloud technology is a generic term of network technology, information technology, integration technology, management platform technology, application technology and the like based on cloud computing business model application, can form a resource pool, and is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an identification mark of the article in the future, the article needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
Cloud gaming (Cloud gaming), which may also be referred to as game on demand, is an online gaming technology based on Cloud computing technology. Cloud gaming technology enables lightweight devices (THIN CLIENT) with relatively limited graphics processing and data computing capabilities to run high quality games. In a cloud game scenario, the game is not run in a player game terminal, but in a cloud game server, and the game scenario is rendered into a video-audio stream by the cloud game server and transmitted to the player game terminal, i.e., a cloud game client, through a network. The player game terminal does not need to have strong graphic operation and data processing capability, and only needs to have basic streaming media playing capability and the capability of acquiring player input instructions and sending the player input instructions to the cloud game server.
The embodiment of the application can be applied to various scenes such as data transmission, cloud games, cloud live broadcasting, data compression and the like.
The embodiment of the application provides a data transmission method, a data processing device, a data processing system and a computer medium. Specifically, the foregoing data transmission method according to the embodiment of the present application may be executed by a computer device, and the foregoing configuration method may also be executed by a computer device, where the computer device may be a device such as a terminal. The terminal can be smart phones, tablet computers, notebook computers, intelligent voice interaction equipment, intelligent household appliances, wearable intelligent equipment, aircrafts, intelligent vehicle-mounted terminals and other equipment, and the terminal can also comprise a client, wherein the client can be a video client, a browser client or an instant messaging client and the like.
The data processing method provided by the embodiment of the application can be applied to access network equipment such as a router.
For example, when the foregoing data transmission method is run on the terminal, the terminal may download and install an application program that generates data related to the foregoing data transmission method, and in particular, the application program may be a game application, a live application, a conference application, or the like. And the terminal is used for displaying a graphical user interface and interacting with a user through the graphical user interface when the methods are actually operated. In particular, the manner in which the terminal presents the graphical user interface to the user may include a variety of ways, for example, the graphical user interface may be rendered for display on a display screen of the terminal, or presented by holographic projection. For example, the terminal may include a touch display screen for presenting a graphical user interface, which may include any one of a game screen, a live screen, and a conference screen, and receiving an operation instruction generated by a user acting on the graphical user interface, and a processor for generating the graphical user interface, responding to the operation instruction, and controlling display of the graphical user interface on the touch display screen.
For example, when the second device is a server, the application scenario of the present application may be a cloud game. Cloud gaming refers to a game style based on cloud computing. In the cloud game operation mode, an operation subject of the game application program and a game picture presentation subject are separated, and the storage and operation of the method are completed on a cloud game server. The game image presentation is completed at a cloud game client, which is mainly used for receiving and sending game data and presenting the game image, for example, the cloud game client may be a display device with a data transmission function, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, etc., near a user side, but a terminal for processing the game data is a cloud game server in the cloud. When playing the game, the user operates the cloud game client to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the cloud game client through a network, and finally decodes the data through the cloud game client and outputs the game pictures.
For another example, when the second device is a server, the application scenario of the present application may also be live cloud broadcast. Cloud live broadcast refers to a live broadcast mode based on cloud computing. In the cloud live broadcast operation mode, an operation main body of a live broadcast application program and a live broadcast picture presentation main body are separated, and the storage and operation of the method are completed on a cloud live broadcast server. The live image presentation is completed at a cloud live client, wherein the cloud live client may be a cloud live audience, and the cloud live audience is mainly used for receiving and sending live data and presenting live images, for example, the cloud live audience may be a display device with a data transmission function, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, and the like, near a user side, and the computer device performing live data processing is a cloud live server of the cloud. When live broadcasting is carried out, a user operates the cloud live broadcasting audience terminal to send an operation instruction to the cloud live broadcasting server, the cloud live broadcasting server operates a live broadcasting program according to the operation instruction, data such as live broadcasting pictures and the like are encoded and compressed, the data are returned to the cloud live broadcasting audience terminal through a network, and finally, the cloud live broadcasting audience terminal decodes and outputs the live broadcasting pictures.
The inventor finds that in the cloud game field, the uplink data can comprise various data such as user operation data, business interaction data, feedback control data and the like, and the real-time requirements of various uplink data on network transmission are different. In a wireless network environment, along with the liberation of cloud games on a terminal platform and performance, real-time data transmission with low delay and high code rate has higher requirements on a Wifi environment, in the wireless network environment, the increase of the number of uplink data packets can increase the probability of uplink jitter, and in a cloud game scene, the influence on user experience is not only low-delay transmission of game pictures and sounds, but also the transmission of uplink data such as a mouse and a keyboard has great influence on game handfeel.
Fig. 1a is a schematic diagram of a data transmission manner in a cloud game scene in the related art, where: data 1 refers to cloud game downstream data transmitted between a cloud game server and a router, and mainly comprises: video frames, audio frames. Data 2 is cloud game downlink data transmitted on an air interface. The data 3 refers to cloud game uplink data transmitted on an air interface, and mainly comprises each layer of acknowledgement packet and game operation data. Data 4 refers to cloud game uplink data transmitted to the cloud game server through the wired network from the router. Among them, collision and congestion are likely to occur at the time of air interface transmission with respect to the data 3. Fig. 1b is a schematic diagram of transmission situation of data transmitted by an air interface in the related art, wherein P1, P2, P3, P4, P5, and P6 refer to data packets.
The inventors found through further studies that: the related research mainly focuses on the problem of downlink audio and video streams, and has no effective optimization scheme for reducing the number of uplink packets in a wireless network environment and the influence relationship of the uplink packets on game operation data. From the transport layer, the size of each data packet of the data packets transmitted to the router by the cloud game client is smaller, and the packets are separated by a very large gap. The application provides a scheme, which can dynamically aggregate the uplink instruction stream in the cloud game process, and can aggregate a plurality of small data packets into one large data packet, thereby greatly reducing the number of the uplink data packets and reducing the competitive pressure of the uplink packets for competing for the wireless air interface, so that the real game operation data can be more rapidly sent to the cloud game server, and a user (such as a game player) can have smooth game experience in a wireless network environment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data processing system according to an embodiment of the present application, where the data processing system includes a first device 10, a target device 20, and a second device 30, and the first device 10 and the target device 20, and the target device 20 and the second device 30 are connected through a network, for example, a wired or wireless network connection.
Wherein the first device 10 may be used to display a graphical user interface. The first device 10 is configured to interact with a user through a graphical user interface, download and install a corresponding client and run the corresponding client, call a corresponding applet and run the corresponding applet, and present a corresponding graphical user interface through a login website.
In the embodiment of the present application, the first device 10 may be configured to perform each data transmission method set forth in the embodiment of the present application, for example, may be configured to perform the following steps:
Acquiring a data packet to be sent;
when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet;
and sending the first target data packet to target equipment.
Optionally, the target device 20 is configured to perform each data processing method according to the embodiment of the present application, for example, may be configured to perform the following steps:
Receiving a first target data packet sent by first equipment, wherein the first target data packet is a data packet to be sent obtained by the first equipment; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
The first target data packet is sent to second equipment, and the second equipment responds correspondingly according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
Optionally, the second device 30 is configured to receive the first target data packet forwarded by the target device, and make a corresponding response according to the first target data packet.
Optionally, the foregoing data processing system further includes a configuration device, where the configuration device is specifically configured to:
Acquiring configuration information of an object aiming at a data packet type library;
configuring a data packet type library according to the configuration information;
and sending the data packet type library to first equipment, wherein the first equipment determines the type of the data packet to be sent according to the data packet to be sent and the data packet type library when the first equipment is used for executing each data sending method.
Optionally, the first device 10 and the configuration device may be a terminal, where the terminal may be a smart phone, a tablet computer, a notebook computer, an intelligent voice interaction device, an intelligent home appliance, a wearable intelligent device, an aircraft, an intelligent vehicle-mounted terminal, and the like, and the terminal may further include a client, and the client may be a cloud game client, a video client, a cloud live client, or an instant messaging client, and the like.
Optionally, the second device 30 may be a server, specifically, an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content distribution network (Content Delivery Network, CDN), and basic cloud computing services such as big data and an artificial intelligence platform.
Alternatively, the first device 10 may be the cloud game client of fig. 1a and 1b, and the second device 30 may be the cloud game server of fig. 1 a.
Optionally, the first device 10 may also be a cloud live client, and the second device 30 is a cloud live server.
Alternatively, the target device 20 may be an access network device, such as a router.
The following will describe in detail. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
An embodiment of the present application provides a data transmission method, and fig. 3a is a schematic flow chart of the data transmission method provided in the embodiment of the present application, which is applicable to the foregoing first device 10, and the method includes the following steps S301 to S303:
S301, acquiring a data packet to be transmitted;
Optionally, the data packet to be sent is a data packet of data related to a target object, where the target object may be an application program, a web page, or the like. The type of target object may be game, live, short video, etc.
Optionally, the data related to the target object may be operation instruction information generated after the user operates an operable control in the target object, where the operable control may be a setting control for setting a part of functions of the target object, and may also be a control for enabling the user to interact with display content in the target object in real time.
Optionally, when the application program is a game application program, the control for enabling the display content in the target object to interact with the user in real time may be at least one of a skill operation control, a chat window starting control, a chat content sending control, a microphone starting control, an image quality switching control, and the like in the game scene.
S302, when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet;
In some embodiments, the method further comprises: and when the data packet to be sent is the data packet of the second type, storing the data packet to be sent into the cache.
Wherein the number of the first target data packets is smaller than the sum of the number of the data packets to be sent and the number of the data packets not to be sent.
Optionally, the number of first target data packets is 1.
In some embodiments, the method further comprises: and when the data packet to be sent is a first type data packet and no unsent data packet exists in the cache, sending the data packet to be sent to target equipment.
In some optional embodiments of the present application, in S302, the packaging the to-be-sent data packet and the non-sent data packet to obtain a first target data packet includes: and splicing the data packet to be transmitted with the data packet which is not transmitted to obtain a first target data packet.
Optionally, according to a rule that a data packet to be sent precedes an unsent data packet, the data packet to be sent and the unsent data packet are spliced end to obtain a first target data packet.
Optionally, the number of packets of the unsent data packets is 1 or more, wherein "multiple" in the present application refers to greater than or equal to 2.
When the number of the unsent data packets is multiple, splicing the data packets to be sent with the unsent data packets to obtain a first target data packet, wherein the first target data packet is: and splicing the data packet to be sent with a plurality of data packets which are not sent to obtain a first target data packet, wherein the specific splicing mode can be shown in fig. 3b, real-time data in fig. 3b refers to a first type of data packet, and non-real-time data refers to a second type of data packet.
Optionally, the data packet to be sent further includes a tail, and the data packet not sent also includes a tail.
By the scheme provided by the application, the data packets to be sent and the data packets not to be sent can be directly aggregated end to end, and in the aggregation process, the real-time data is in front, the non-real-time data is in back, and the first target data packet is obtained after the non-real-time data is directly adhered and is sent to target equipment. The method has the advantages of simple aggregation logic, no requirement on the transformation of service protocols and higher data processing speed.
After receiving the first target data, the target device needs to forward the first target data to the second device, the second device may automatically segment the first target data according to the field length of the data header in the first target data packet, parse the first target data into meaningful data again, and a method for parsing the received data packet by the second device may refer to related technologies, which are not described herein again. The target device may be a router, and the second device may be a server.
In some alternative embodiments of the present application, as shown in fig. 3c, the unsent data packet includes a first data header and a first data payload, and in S302, the package of the data packet to be sent and the unsent data packet is performed to obtain a first target data packet, which includes the following S3021 to S3022:
S3021, extracting a first data load in the unsent data packet;
S3022, packaging the data packet to be sent and the first data load to obtain a first target data packet.
Optionally, in S3022, packaging the data packet to be sent and the first data payload to obtain a first target data packet, including the following S21-S22:
S21, performing format conversion on the first data load to obtain data to be filled with a format of a preset format;
optionally, the preset format is an option, specifically a label, a length and a value.
S22, packaging the data packet to be sent and the data to be filled to obtain a first target data packet.
Optionally, referring to fig. 3c and fig. 3d, the first target data packet includes a target data header and a target data payload, the data packet to be sent includes a second data header and a second data payload, and in S22, the data packet to be sent and the data to be filled are packaged to obtain a first target data packet, which includes S221-S222:
S221, generating a target data head of the first target data packet according to the second data head and the data to be filled;
Alternatively, the second data header and the data to be filled may be the target data header.
S222, taking the second data load as the target data load of the first target data packet to obtain the first target data packet.
Specifically, referring to fig. 3d, in this scheme, a plurality of unsent data packets may be extracted to obtain first data payloads thereof, the data packets to be sent and the plurality of first data payloads are recombined into a protocol packet with a single format to be sent, and in this process, the real-time data packet (i.e. the second data payload) is directly used as the data payload of the new protocol packet to be filled. And for the cached non-real-time data packet, the first data load can be extracted and carried in an option (option) mode. The option composition format may be in the common TLV (TYPE LENGTH Value) format. Specifically, the contents (i.e., the first data payload) of the plurality of non-real-time data packets may be extracted and filled into the TLV-formatted content field. After receiving the first target data packet, the second device analyzes the options and the load according to the protocol design, and can understand the first target data packet again, and the flow can be saved by the aggregation mode.
Optionally, the second data header may be used as a target data header, and the data to be filled and the second data payload may be used as target data payloads.
Optionally, in addition, in order to not affect the user experience, the first device and the target device, and the data interaction between the target device and the second device when the foregoing technical effects are achieved, the method further includes the following 001-S002:
001. acquiring the earliest storage time of the unsent data packet in the cache;
Optionally, when the number of the unsent data packets is 1, the earliest storing time of the unsent data packets is the storing time of the unsent data packets stored in the buffer.
Optionally, when the number of the unsent data packets is plural, the earliest storing time of the unsent data packet is the storing time of the unsent data packet stored in the buffer memory earliest among the plural unsent data packets.
002. And when the time length from the current time to the earliest storage time is longer than a preset time length, sending the unsent data packet to target equipment.
Optionally, the method further comprises: and when the data volume of the unsent data packet in the cache is larger than the preset data volume, sending the unsent data packet to target equipment.
Alternatively, the aforementioned preset data amount may be set by a relevant person, and specifically, the aforementioned preset data amount may be 1500B.
In some embodiments, the method further comprises: and when the number of the packets of the unsent data packets in the buffer memory is larger than the preset number, sending the unsent data packets to the target equipment.
S303, the first target data packet is sent to target equipment.
The target device is an access network device, such as a router.
In some embodiments, the method further comprises: and when the data packet to be transmitted is a first type data packet and the data packet which fails to be transmitted at the historical moment exists in the buffer memory, packaging the data packet to be transmitted and the data packet which fails to be transmitted to obtain a second target data packet, and transmitting the second target data packet to target equipment. The type of the data packet with failed transmission can be the first type or the second type.
The method for packaging the data packet to be sent and the data packet failed to be sent to obtain the second target data packet is similar to the method for packaging the data packet to be sent and the data packet not sent to obtain the first target data packet, and specific reference is made to the foregoing, and details are not repeated here.
In some embodiments, when the number of the unsent data packets is a plurality, sending the unsent data packets to the target device includes: and splicing the plurality of unsent data packets, and sending the spliced unsent data packets to the target equipment.
Regarding the determination of the type of data packet to be transmitted, in some alternative embodiments of the application, the method further comprises:
Acquiring a preset data packet type library, wherein the data packet type library comprises a plurality of data packets and types of all the data packets in the plurality of data packets;
And determining the type of the data packet to be transmitted according to the data packet to be transmitted and the data packet type library, wherein the type of the data packet to be transmitted is the second type or the first type.
Alternatively, the aforementioned database of packet types may be received from a configuration device.
The determining the type of the data packet to be sent according to the data packet to be sent and the data packet type library includes: and determining a data packet matched with the data packet to be transmitted from a plurality of data packets contained in the data packet type library, and taking the type of the data packet matched with the data packet to be transmitted in the data packet type library as the type of the data packet to be transmitted.
Optionally, the data packet matched with the data packet to be sent refers to the same data packet as the data packet to be sent.
Optionally, the data packet matched with the data packet to be sent refers to a data packet with the same type identifier as the type identifier contained in the data packet to be sent.
The type identifier may be used to indicate a trigger operation type of the data packet, where the trigger operation type includes any one of the following: keyboard operation, mouse operation, manual image quality switching operation, and game skill operation.
Optionally, the first type of data packet is a data packet of a game operation type or a data packet of a real-time decision feedback type, and such data requires that the client transmits the data to the cloud as soon as possible, so as to ensure the overall game experience. The second type of data packet is data which is used for non-real-time decision or pure information statistics and adjustment in business games, and a better environment can be provided for the rapid return of real-time demand data through the scheme of the application.
The present scheme is further described below with reference to a flow chart of a data transmission method, fig. 3e is a flow chart of a method for transmitting uplink data on the first device side,
The method comprises the steps that a first device obtains a data packet to be transmitted (uplink data), and when the data packet to be transmitted needs to be transmitted in real time and data (such as a data packet which is not transmitted) needs to be transmitted in an aggregation mode, the data packet to be transmitted and the data packet to be aggregated are aggregated, and the aggregated data packet is transmitted;
and when the data packet to be transmitted needs to be transmitted in real time, but no data needs to be transmitted in an aggregation way, the data packet to be transmitted is directly transmitted.
When the data packet to be transmitted does not need to be transmitted in real time, the data packet to be transmitted is stored in a cache;
optionally, whether the buffer of the data packet which is not sent in the buffer is overtime can be periodically judged, if yes, the data packet which is not sent is sent, and if not, the data packet is not processed.
Optionally, the first device may obtain the data to be sent through the data sending interface, so that the data gathering of the uplink data channel may be ensured, and meanwhile, the management of the number of uplink data packets may be unified.
Optionally, the foregoing first device may determine whether the data to be sent needs to be sent in real time according to the packet type library, specifically, when the type of the data to be sent is a first type, it indicates that the data to be sent needs to be sent in real time, and when the type of the data to be sent is a second type, it indicates that the data to be sent does not need to be sent in real time, and generally, the non-real-time data is no longer in a mode of instant sending, but is sent by being triggered by real-time data sending or a timeout timer.
Further, the effect of the scheme is further described by combining with a data transmission schematic diagram, and after the data transmission method of the present application is used, the change situation of the interactive data packet between the client and the cloud can be shown in fig. 3 f. Fig. 3f (a) is a schematic diagram of uplink data transmission of a client in the related art, ①、②、③、④ may represent data packets from different network channels, or may represent uplink data of the same network channel at different times. And (b) after the data sending method of the application is used, the uplink data transmission schematic diagram of the client is ⑤, which refers to the data packet uploaded from the client to the cloud, and through the scheme, the channel number and the instantaneous sending number of the uplink data stream are strictly controlled, thereby reducing the number of the uplink data packet. Optionally, the network channel of the present application may refer to a network channel corresponding to an application program or a network channel corresponding to a website, and optionally, the application program corresponds to the network channel one by one, and the website corresponds to the network channel one by one.
It should be noted that, in the cloud game scene, the real-time data transmission with low delay and high code rate has higher requirements on Wifi environment, and the real-time demand data of uplink data is more than that of other scenes, so that when the scheme of the application is applied to the cloud game scene, the effects of reducing the air interface pressure of the wireless network, reducing the occurrence probability of network jitter, improving the smoothness of data transmission, shortening the delay of feedback data received from the second device and the like are particularly obvious. The embodiment of the present application is further described with reference to fig. 3g, where the first device is a cloud game client used by a user to run a current game, the target device is a router, and the second device is a cloud game server. The aforementioned data packet to be transmitted may be a data packet 1 including a release instruction of the user's skill with respect to hero a in the current game, and the aforementioned second type of data packet not transmitted may be a data packet 2 including an adjustment instruction of the user's clarity with respect to the current game.
When a cloud game client used by a user and running a current game acquires a data packet 1 (namely S1), and determines that the data packet 1 is a data packet of a first type and a data packet 2 which is not transmitted and of a second type is cached, packaging the data packet 1 and the data packet 2 to obtain a first target data packet (namely S2); after the first target data packet is obtained, the cloud game client sends the first target data packet to the router (i.e. S3), so that the router sends the first target data packet to the cloud game server (i.e. S4), the cloud game server analyzes the first target data packet after receiving the first target data packet to obtain an analysis result, and determines feedback information corresponding to the first target data packet according to the analysis result (i.e. S5). After obtaining feedback information, the cloud game server sends the feedback information to a router (namely S6); the router further sends feedback information to the cloud game client (i.e., S7) so that the cloud game client responds accordingly (i.e., S8) based on the feedback information. The feedback information corresponding to the first target data packet may include the picture content to be displayed determined after the cloud game server obtains the release instruction of the user's skill for hero a, and a corresponding control instruction generated after the cloud game server obtains the adjustment instruction of the user's definition for the current game.
The embodiment of the application provides the following steps: acquiring a data packet to be sent; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet; according to the scheme for transmitting the first target data packet to the target device, when the second type of data packet with lower real-time requirements is received, the second type of data packet is temporarily not transmitted, the second type of data packet is stored, when the first type of data packet with higher real-time requirements is received, the unsent data packet and the data packet to be transmitted are packaged into a first target data packet and then transmitted to the target device, the number of data packets of uplink data transmitted to the target device side can be reduced, the air interface pressure of a wireless network is reduced, the occurrence probability of network jitter is reduced, the smoothness of data transmission is improved, the delay of feedback data received from the second device is shortened, and the user experience is improved.
The present application also provides a data processing method, and fig. 4 is a flow chart of a data processing method provided in an embodiment of the present application, where the method is applicable to the foregoing target device, and specifically, the method includes the following steps S401 to S402:
S401, receiving a first target data packet sent by a first device, wherein the first target data packet is a data packet to be sent acquired by the first device; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
S402, the first target data packet is sent to second equipment, and the second equipment makes a corresponding response according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
Wherein the number of the first target data packets is smaller than the sum of the number of the data packets to be sent and the number of the data packets not to be sent.
The foregoing may be referred to in the relevant embodiments of the present application, and will not be described herein.
All the above technical solutions may be combined to form an optional embodiment of the present application, and will not be described in detail herein.
The present application also provides a configuration method, and fig. 5 is a schematic flow chart of a configuration method provided in an embodiment of the present application, where the method is applicable to the foregoing configuration device, and specifically, the method includes the following steps S501-S502:
s501, acquiring configuration information of an object aiming at a data packet type library;
the configuration information may include correspondence between a plurality of data packets and types of the data packets;
Alternatively, the configuration device may include a display screen, and the object may be a person concerned, and the person concerned may edit the type of each of the plurality of data packets through the plurality of data packets displayed in the display screen.
S502, configuring a data packet type library according to the configuration information;
alternatively, a set of correspondence between each of the plurality of data packets and its type may be used as the data packet type library.
S503, the data packet type library is sent to a first device, and when the first device is used for executing the data sending methods, the type of the data packet to be sent is determined according to the data packet to be sent and the data packet type library.
Alternatively, the expression form of the foregoing packet type library may be a table, a graph, or the like, which is not limited to the present application.
All the above technical solutions may be combined to form an optional embodiment of the present application, and will not be described in detail herein.
In order to better implement the data transmission method according to the embodiment of the present application, the embodiment of the present application further provides a data transmission device, and fig. 6 is a schematic structural diagram of the data transmission device according to the embodiment of the present application, where the data transmission device 60 may include:
An acquiring unit 61, configured to acquire a data packet to be sent;
The processing unit 62 is configured to, when the data packet to be sent is a first type of data packet and there is a second type of data packet in the buffer, package the data packet to be sent and the data packet to be sent to obtain a first target data packet, where a real-time requirement of the second type of data packet is less than a real-time requirement of the first type of data packet;
a transmitting unit 63, configured to transmit the first target data packet to a target device.
Optionally, when the data packet to be sent is the second type of data packet, the apparatus is further configured to: and storing the data packet to be sent to the cache.
Optionally, when the data packet to be sent is a first type of data packet and there is no data packet that is not sent in the buffer, the sending unit 63 is further configured to send the data packet to be sent to a target device.
Optionally, when the device is configured to package the data packet to be sent and the data packet not to be sent to obtain the first target data packet, the device is specifically configured to: and splicing the data packet to be transmitted with the data packet which is not transmitted to obtain a first target data packet.
Optionally, the unsent data packet includes a first data header and a first data payload, where the foregoing apparatus is configured to, when configured to package the data packet to be sent and the unsent data packet to obtain a first target data packet, specifically:
extracting a first data load in the unsent data packet;
and packaging the data packet to be transmitted and the first data load to obtain a first target data packet.
Optionally, when the foregoing apparatus is configured to package the data packet to be sent and the first data payload to obtain a first target data packet, the foregoing apparatus is specifically configured to:
performing format conversion on the first data load to obtain data to be filled with a preset format;
and packaging the data packet to be sent and the data to be filled to obtain a first target data packet.
Optionally, the preset format is a label, a length, and a value.
Optionally, the first target data packet includes a target data header and a target data payload, the data packet to be sent includes a second data header and a second data payload, and the device is specifically configured to, when configured to package the data packet to be sent and the data to be filled to obtain the first target data packet:
Generating a target data head of the first target data packet according to the second data head and the data to be filled;
And taking the second data load as the target data load of the first target data packet to obtain the first target data packet.
Optionally, the device is further configured to:
acquiring the earliest storage time of the unsent data packet in the cache;
and when the time length from the current time to the earliest storage time is longer than a preset time length, sending the unsent data packet to target equipment.
Optionally, the device is further configured to: when the number of the unsent data packets is a plurality, sending the unsent data packets to the target device, including: and splicing the plurality of unsent data packets, and sending the spliced unsent data packets to the target equipment.
Optionally, the device is further configured to:
and when the data volume of the unsent data packet in the cache is larger than the preset data volume, sending the unsent data packet to target equipment.
Optionally, the device is further configured to:
Acquiring a preset data packet type library, wherein the data packet type library comprises a plurality of data packets and types of all the data packets in the plurality of data packets;
And determining the type of the data packet to be transmitted according to the data packet to be transmitted and the data packet type library, wherein the type of the data packet to be transmitted is the second type or the first type.
The respective units of the above-described data transmission apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above units may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor invokes and executes operations corresponding to the above units.
The data transmission device 60 may be integrated in a terminal having a memory and a processor and having an arithmetic capability, or the data transmission device 60 may be the terminal.
In order to better implement the data processing method according to the embodiment of the present application, the embodiment of the present application further provides a data processing apparatus, and fig. 7 is a schematic structural diagram of a data processing apparatus according to the embodiment of the present application, where the data processing apparatus 70 may include:
A receiving unit 71, configured to receive a first target data packet sent by a first device, where the first target data packet is a data packet to be sent that is acquired by the first device; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
a transmitting unit 72, configured to transmit the first target data packet to a second device, so that the second device makes a corresponding response according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
The individual units of the above-described data processing apparatus may be realized in whole or in part by software, hardware, and combinations thereof. The above units may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor invokes and executes operations corresponding to the above units.
The data processing device 70 may be integrated into an access network device having a memory and a processor and having an arithmetic capability, or the data processing device 70 may be the access network device.
In order to facilitate better implementation of the configuration method according to the embodiment of the present application, the embodiment of the present application further provides a configuration device, and fig. 8 is a schematic structural diagram of a configuration device provided in the embodiment of the present application, where the configuration device 80 may include:
an obtaining unit 81, configured to obtain configuration information of an object for a packet type library;
A configuration unit 82, configured to configure a packet type library according to the configuration information;
And the sending unit is used for sending the data packet type library to first equipment, and when the first equipment is used for executing the data sending methods, determining the type of the data packet to be sent according to the data packet to be sent and the data packet type library.
The various elements of the configuration device 80 described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above units may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor invokes and executes operations corresponding to the above units.
The configuration device 80 may be integrated in a terminal having a memory and a processor mounted therein and having an arithmetic capability, or the configuration device 80 may be the terminal.
Optionally, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application, where the computer device may be the first device, the second device, or the target device. As shown in fig. 9, the computer device 90 may include: a communication interface 901, a memory 902, a processor 903 and a communication bus 904. Communication interface 901, memory 902, and processor 903 communicate with each other via communication bus 904. The communication interface 901 is used for data communication between the computer device 900 and an external device. The memory 902 may be used to store software programs and modules, and the processor 903 may be configured to execute the software programs and modules stored in the memory 902, such as the software programs for corresponding operations in the foregoing method embodiments.
Alternatively, the processor 903 may call a software program and module stored in the memory 902 to perform the following operations:
Acquiring a data packet to be sent;
when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet;
and sending the first target data packet to target equipment.
Optionally, the processor 903 may also call a software program and modules stored in the memory 902 to perform the following operations:
Receiving a first target data packet sent by first equipment, wherein the first target data packet is a data packet to be sent obtained by the first equipment; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
The first target data packet is sent to second equipment, and the second equipment responds correspondingly according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
Optionally, the processor 903 may also call a software program and modules stored in the memory 902 to perform the following operations:
Acquiring configuration information of an object aiming at a data packet type library;
configuring a data packet type library according to the configuration information;
And sending the data packet type library to first equipment, wherein the first equipment determines the type of the data packet to be sent according to the data packet to be sent and the data packet type library when the first equipment is used for executing the data sending methods.
The present application also provides a computer-readable storage medium storing a computer program. The computer readable storage medium may be applied to a computer device, and the computer program causes the computer device to execute corresponding processes in the methods in the embodiments of the present application, which are not described herein for brevity.
The present application also provides a computer program product comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the corresponding flow in the methods in the embodiments of the present application, which is not described herein for brevity.
The present application also provides a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the corresponding flow in the methods in the embodiments of the present application, which is not described herein for brevity.
It should be appreciated that the processor of an embodiment of the present application may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be implemented by integrated logic circuits of hardware in a processor or instructions in software form. The processor may be a general purpose processor, a digital signal processor (DIGITAL SIGNAL processor, DSP), an Application SPECIFIC INTEGRATED Circuit (ASIC), an off-the-shelf programmable gate array (Field Programmable GATE ARRAY, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
It will be appreciated that the memory in embodiments of the application may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDR SDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and Direct memory bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (19)

1. A method of transmitting data, the method comprising:
Acquiring a data packet to be sent;
when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet to obtain a first target data packet, wherein the real-time requirement of the second type data packet is smaller than that of the first type data packet;
and sending the first target data packet to target equipment.
2. The method according to claim 1, wherein the method further comprises: and when the data packet to be sent is the data packet of the second type, storing the data packet to be sent into the cache.
3. The method according to claim 1, wherein the method further comprises: and when the data packet to be sent is a first type data packet and the data packet which is not sent is not in the buffer memory, sending the data packet to be sent to target equipment.
4. The method of claim 1, wherein packaging the data packet to be transmitted and the data packet not to be transmitted to obtain a first target data packet comprises: and splicing the data packet to be transmitted with the data packet which is not transmitted to obtain a first target data packet.
5. The method of claim 1, wherein the unsent data packet includes a first data header and a first data payload, and wherein the packaging the data packet to be sent and the unsent data packet to obtain a first target data packet includes:
extracting a first data load in the unsent data packet;
and packaging the data packet to be transmitted and the first data load to obtain a first target data packet.
6. The method of claim 5, wherein packaging the data packet to be transmitted and the first data payload to obtain a first target data packet comprises:
performing format conversion on the first data load to obtain data to be filled with a preset format;
and packaging the data packet to be sent and the data to be filled to obtain a first target data packet.
7. The method of claim 6, wherein the predetermined format is a label, a length, and a value.
8. The method of claim 6, wherein the first target data packet includes a target data header and a target data payload, the data packet to be sent includes a second data header and a second data payload, and the packaging the data packet to be sent and the data to be padded to obtain the first target data packet includes:
Generating a target data head of the first target data packet according to the second data head and the data to be filled;
And taking the second data load as the target data load of the first target data packet to obtain the first target data packet.
9. The method according to claim 1, wherein the method further comprises:
acquiring the earliest storage time of the unsent data packet in the cache;
and when the time length from the current time to the earliest storage time is longer than a preset time length, sending the unsent data packet to target equipment.
10. The method of claim 9, wherein when the number of the unsent data packets is plural, sending the unsent data packets to a target device comprises: and splicing the plurality of unsent data packets, and sending the spliced unsent data packets to the target equipment.
11. The method according to claim 1, wherein the method further comprises:
and when the data volume of the unsent data packet in the cache is larger than the preset data volume, sending the unsent data packet to target equipment.
12. The method according to claim 1, wherein the method further comprises:
Acquiring a preset data packet type library, wherein the data packet type library comprises a plurality of data packets and types of all the data packets in the plurality of data packets;
And determining the type of the data packet to be transmitted according to the data packet to be transmitted and the data packet type library, wherein the type of the data packet to be transmitted is the second type or the first type.
13. A method of data processing, the method comprising:
Receiving a first target data packet sent by a first device, wherein the first target data packet is a data packet to be sent acquired by the first device; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
The first target data packet is sent to second equipment, and the second equipment responds correspondingly according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
14. A data transmission apparatus, the apparatus comprising:
an acquisition unit, configured to acquire a data packet to be sent;
The processing unit is used for packaging the data packet to be sent and the data packet which is not sent to obtain a first target data packet when the data packet to be sent is a data packet of a first type and a data packet which is not sent of a second type is cached, wherein the real-time requirement of the data packet of the second type is smaller than that of the data packet of the first type;
and the sending unit is used for sending the first target data packet to target equipment.
15. A data processing apparatus, the apparatus comprising:
The receiving unit is used for receiving a first target data packet sent by a first device, wherein the first target data packet is a data packet to be sent obtained by the first device; when the data packet to be sent is a first type data packet and a second type of unsent data packet exists in a cache, packaging the data packet to be sent and the unsent data packet;
The sending unit is used for sending the first target data packet to second equipment, so that the second equipment responds correspondingly according to the first target data packet;
the real-time requirement of the second type of data packet is smaller than that of the first type of data packet.
16. A data processing system, the system comprising: the method comprises the steps of a first device, a second device and a target device, wherein:
the first device for performing the method of any of claims 1-12;
the target device, configured to receive a first target data packet sent by the first device when performing any one of the methods of claims 1-12, and forward the first target data packet to the second device;
the second device is configured to receive the first target data packet forwarded by the target device, and make a corresponding response according to the first target data packet.
17. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor for performing the method according to any of claims 1-13.
18. A computer device, characterized in that it comprises a processor and a memory, in which a computer program is stored, the processor being arranged to execute the method according to any of claims 1-13 by invoking the computer program stored in the memory.
19. A computer program product comprising computer instructions which, when executed by a processor, implement the method of any of claims 1-13.
CN202211248274.3A 2022-10-12 2022-10-12 Data transmission method, data processing method, device, system and computer medium Pending CN117914936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211248274.3A CN117914936A (en) 2022-10-12 2022-10-12 Data transmission method, data processing method, device, system and computer medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211248274.3A CN117914936A (en) 2022-10-12 2022-10-12 Data transmission method, data processing method, device, system and computer medium

Publications (1)

Publication Number Publication Date
CN117914936A true CN117914936A (en) 2024-04-19

Family

ID=90695151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211248274.3A Pending CN117914936A (en) 2022-10-12 2022-10-12 Data transmission method, data processing method, device, system and computer medium

Country Status (1)

Country Link
CN (1) CN117914936A (en)

Similar Documents

Publication Publication Date Title
CN113423018B (en) Game data processing method, device and storage medium
WO2020259448A1 (en) Data processing method and apparatus, computer-readable storage medium, and electronic device
US20230083441A1 (en) Managing subpacket transmission and reception for advanced interactive services
WO2020155148A1 (en) Method and apparatus for transmitting data
CN108848082B (en) Data processing method, data processing device, storage medium and computer equipment
CN110460496A (en) It is controlled by frame per second and realizes that network self-adapting time delay reduces
CN107819809B (en) Method and device for synchronizing content
CN113676741B (en) Data transmission method and device, storage medium and electronic equipment
CN107872471B (en) Remote desktop image instruction processing method and system
CN109862377B (en) Video transmission method, device, system and computer readable storage medium
TW201540031A (en) Transport accelerator implementing client side transmission functionality
CN112953850B (en) Data transmission method and device, computer readable medium and electronic equipment
US11924255B2 (en) Data transmission method and apparatus, server, storage medium, and program product
KR20160140873A (en) Signaling and operation of an mmtp de-capsulation buffer
CN114221909B (en) Data transmission method, device, terminal and storage medium
US9614900B1 (en) Multi-process architecture for a split browser
CN113747203B (en) Video information transmission method and device, electronic equipment and storage medium
WO2023217188A1 (en) Livestream data transmission method, apparatus and system, device and medium
CN113973224A (en) Method for transmitting media information, computing device and storage medium
US20230336494A1 (en) Data processing method and apparatuses, devices, computer-readable storage medium, and computer program product
US10701118B2 (en) Method for the processing of a multimedia stream, corresponding device and computer program
CN117914936A (en) Data transmission method, data processing method, device, system and computer medium
CN114710568B (en) Audio and video data communication method, device and storage medium
WO2022206016A1 (en) Data layering transport method, apparatus and system
KR20160087226A (en) System for cloud streaming service, method of image cloud streaming service considering terminal performance and apparatus for the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination