CN113973134A - Data transmission method and device, electronic equipment and computer storage medium - Google Patents

Data transmission method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113973134A
CN113973134A CN202010717755.9A CN202010717755A CN113973134A CN 113973134 A CN113973134 A CN 113973134A CN 202010717755 A CN202010717755 A CN 202010717755A CN 113973134 A CN113973134 A CN 113973134A
Authority
CN
China
Prior art keywords
data
transmission
layer
protocol
transmission data
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
CN202010717755.9A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010717755.9A priority Critical patent/CN113973134A/en
Publication of CN113973134A publication Critical patent/CN113973134A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a data transmission method, a data transmission device, electronic equipment and a computer storage medium, wherein the data transmission method comprises the following steps: acquiring first transmission data, wherein the first transmission data comprises data of an application layer in a network protocol; acquiring state information related to a network; for first transmission data, adding state information in data of a first protocol layer to obtain second transmission data, wherein the first transmission data comprises data of the first protocol layer in a network protocol, and the first protocol layer is different from an application layer; and sending the second transmission data. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.

Description

Data transmission method and device, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data transmission method and device, electronic equipment and a computer storage medium.
Background
With the development of communication technology, the efficiency of data transmission is higher and higher. In order to further improve the data transmission efficiency, the network device in the communication network may analyze the application layer data according to the application layer protocol in the network protocol, so as to perform data transmission optimization. However, in the process of implementing the data transmission optimization, because there are many application layer protocols, the scheme for such data transmission optimization has poor adaptability. On the other hand, the application layer protocol can optimize the data transmission protocol according to the state information of the network link, but no more accurate and universal state information acquisition method exists, so that the data transmission optimization scheme is not timely and accurate enough.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a data transmission method, an apparatus, an electronic device, and a computer storage medium to solve some or all of the above problems.
According to a first aspect of the embodiments of the present invention, there is provided a data transmission method, including: acquiring first transmission data, wherein the first transmission data comprises data of an application layer in a network protocol; acquiring state information related to a network; for first transmission data, adding state information in data of a first protocol layer to obtain second transmission data, wherein the first transmission data comprises data of the first protocol layer in a network protocol, and the first protocol layer is different from an application layer; and sending the second transmission data.
According to a second aspect of the embodiments of the present invention, there is provided a data transmission method, including: receiving second transmission data, wherein the second transmission data comprise data of an application layer and data of a first protocol layer in a network protocol, and the first protocol layer is different from the application layer; analyzing the second transmission data, and acquiring state information in the data of the first protocol layer, wherein the state information is used for indicating the state of the network; and adjusting the network parameters according to the state information, and transmitting data according to the adjusted network parameters.
According to a third aspect of the embodiments of the present invention, there is provided a data transmission apparatus, including: the acquisition module is used for acquiring first transmission data, and the first transmission data comprises data of an application layer in a network protocol; the state module is used for acquiring state information related to the network; the processing module is used for adding state information to data of a first protocol layer to obtain second transmission data for the first transmission data, wherein the first transmission data comprise data of the first protocol layer in a network protocol, and the first protocol layer is different from an application layer; and the sending module is used for sending the second transmission data.
According to a fourth aspect of the embodiments of the present invention, there is provided a data transmission apparatus including: the receiving module is used for receiving second transmission data, the second transmission data comprises data of an application layer and data of a first protocol layer in a network protocol, and the first protocol layer is different from the application layer; the analysis module is used for analyzing the second transmission data and acquiring state information in the data of the first protocol layer, wherein the state information is used for indicating the state of the network; and the transmission module is used for adjusting the network parameters according to the state information and transmitting data according to the adjusted network parameters.
According to a fifth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the corresponding operation of the data transmission method of the first aspect or the second aspect.
According to a sixth aspect of embodiments of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements a data transmission method as in the first or second aspect.
According to the data transmission method, the data transmission device, the electronic equipment and the computer storage medium, first transmission data are obtained, wherein the first transmission data comprise data of an application layer in a network protocol; acquiring state information related to a network; for first transmission data, adding state information in data of a first protocol layer to obtain second transmission data, wherein the first transmission data comprises data of the first protocol layer in a network protocol, and the first protocol layer is different from an application layer; and sending the second transmission data. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and it is also possible for a person skilled in the art to obtain other drawings based on the drawings.
Fig. 1 is a schematic view of a scenario of a data transmission method according to an embodiment of the present application;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a flowchart of a data transmission method according to a second embodiment of the present application;
fig. 4 is a schematic view of a scenario of a data transmission method according to a third embodiment of the present application;
fig. 5 is an interaction diagram of a data transmission method according to a third embodiment of the present application;
fig. 6 is a block diagram of a data transmission apparatus according to a fourth embodiment of the present application;
fig. 7 is a block diagram of a data transmission device according to a fifth embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention shall fall within the scope of the protection of the embodiments of the present invention.
The following further describes specific implementation of the embodiments of the present invention with reference to the drawings.
Example one
For convenience of understanding, an application scenario of the data transmission method provided in the first embodiment of the present application is described, and referring to fig. 1, fig. 1 is a scenario diagram of the data transmission method provided in the first embodiment of the present application. The scenario shown in fig. 1 includes a network device 101 and a terminal device 102; the network device 101 may be a device that executes the data transmission method provided in the first embodiment of the present application.
The terminal device 102 may be a smart phone, a tablet computer, a notebook computer, a smart speaker, etc. The terminal device 102 may also access a Network through the Network device 101, and perform data interaction through the Network, where the Network includes a Local Area Network (LAN), a Wide Area Network (WAN), and a mobile communication Network; such as the World Wide Web (WWW), Long Term Evolution (LTE) networks, 2G networks (2 th Generation Mobile Network), 3G networks (3 th Generation Mobile Network), 5G networks (5 th Generation Mobile Network), etc. Of course, this is merely an example and does not represent a limitation of the present application. Network devices 103 may include various devices connected by a network, such as servers, relay devices, Device-to-Device (D2D) devices, base stations, and so forth.
As shown in fig. 1, the network device 101 may receive data sent by the terminal device, add status information to the data in the first protocol layer, and send the data after adding the status information through the network. With reference to the scenario shown in fig. 1, a data transmission method provided in a first embodiment of the present application is described in detail, it should be noted that fig. 1 is only an application scenario of the data transmission method provided in the first embodiment of the present application, and does not represent that the data transmission method must be applied to the scenario shown in fig. 1, referring to fig. 2, fig. 2 is a flowchart of a data transmission method provided in the first embodiment of the present application, and the method includes the following steps:
step 201, first transmission data is obtained.
The first transmission data includes data of an application layer in a network protocol. The network protocol may be a seven layer protocol, a four layer protocol, etc. For example, a seven-layer protocol includes an application layer, a presentation layer, a session layer, a transport layer, a network layer, a data link layer, a physical layer; as another example, a four-layer protocol includes an application layer, a network layer, a data link layer, and a physical layer. Of course, this is merely an example and does not represent a limitation of the present application.
Step 202, obtaining status information associated with the network.
The network may be a network to which the network device executing the data transmission method belongs, that is, a current network, or other networks, and the present application is not limited thereto, and the state information may indicate a network bandwidth, a location of the terminal device, a cell to which the terminal device belongs, a congestion status of the network, and the like. The terminal device may be the device that sends the first transmission data, i.e. the source of the first transmission data. Here, five specific examples are listed for explanation:
optionally, in a first example, obtaining status information related to a network includes: acquiring the network bandwidth and generating state information, wherein the state information comprises the information of the network bandwidth. The network device can detect the bandwidth of the network and generate the state information according to the detected network bandwidth, or the network device receives the bandwidth of the network detected by the detection device and generates the state information.
Optionally, in a second example, obtaining status information related to the network includes: and acquiring position information and generating state information, wherein the position information is used for indicating the position of the terminal equipment corresponding to the first transmission data, and the state information comprises the position information. The terminal device corresponding to the first transmission data may be a terminal device that sends the first transmission data, and the location of the terminal device may be determined by the network device according to the data transmission path, or may be determined according to the location of a router or a base station connected to the terminal device, which is not limited in this application.
Optionally, in a third example, obtaining the state information related to the network includes:
acquiring cell information and generating state information, wherein the cell information is used for indicating the network state of a cell to which the terminal equipment corresponding to the first transmission data belongs, and the state information comprises cell information. In a third example, the terminal device is in communication connection with the base station, and corresponding cell information can be obtained according to information of the base station.
Optionally, in a fourth example, obtaining status information related to a network includes: and generating state information according to the congestion state of the network. The congestion status of the network may be detected by the network device, or may be sent to the network device after being detected by other devices.
Optionally, in a fifth example, obtaining status information related to a network includes: and generating state information according to the transmission delay of the network. The transmission delay of the network may be determined by the network device according to the delay of the received data, or may be sent to the network device after being detected by other devices.
The above five examples are merely illustrative of what the status information may contain, and do not represent a limitation of the present application, and the status information may be used to indicate the status of the network, or the status of the devices in the network.
It should be noted that, step 201 and step 202 may not have a sequential order, and may be executed simultaneously or executed non-simultaneously, which is not limited in this application, and after step 201 and step 202, the method further includes:
step 203, for the first transmission data, adding state information to the data of the first protocol layer to obtain second transmission data.
The first transmission data includes data of a first protocol layer in the network protocol, the first protocol layer being different from the application layer. The first protocol layer may be a non-application layer, i.e., a protocol layer other than the application layer; alternatively, the first protocol layer may be a lower layer of the application layer, because the application layer is usually the uppermost layer in the network protocol, and the data of the first protocol layer is the lower layer data of the application layer. It should be noted that the network protocol may be a seven-layer protocol, a four-layer protocol, etc. For example, a seven-layer protocol includes an application layer, a presentation layer, a session layer, a transport layer, a network layer, a data link layer, a physical layer; as another example, a four-layer protocol includes an application layer, a network layer, a data link layer, and a physical layer. Of course, this is merely an example and does not represent a limitation of the present application. In the seven-layer protocol and the four-layer protocol, the application layer is the uppermost layer, and the first protocol layer may be a presentation layer, a session layer, a transport layer, a network layer, and a data link layer, or the first protocol layer may also be a network layer, a data link layer, and a physical layer, which all belong to the lower layer of the application layer. The data of the first protocol layer can comprise transport layer data, network layer data, data of a data link layer, physical layer data and the like, the protocol of the application layer cannot be changed by adding state information in the data of the first protocol layer, the influence on the data of the application layer is avoided, and the adaptability and the expansibility are better because the protocol of the application layer is not involved.
An extension header may be added to transport layer data or data of a second protocol layer, where the second protocol layer may be a layer other than an application layer and a transport layer in a network protocol, and the status information is added to the extension header to obtain second transmission data, for example, optionally, for first transmission data, adding the status information to data of a first protocol layer to obtain second transmission data, including: for first transmission data, adding an extension header in the data of a transmission layer, wherein the data of a first protocol layer comprises the data of the transmission layer; and adding the state information into an extension header of the transmission layer to obtain second transmission data.
The extension head is added in the data of the transmission layer, the original field in the transmission layer is not changed, the protocol of the transmission layer is not greatly changed, and the adaptability and the expansibility are further enhanced. It should be noted that, an unoccupied free field in the data of the transport layer may be set as an extension header, or a free data bit in the data of the transport layer may be set as an extension header, or the data of the transport layer has an extension header, and only the data bit of the extension header needs to be added, and state information is added to the newly added data bit.
Optionally, in an implementation manner, for first transmission data, adding state information to data in the first protocol layer to obtain second transmission data, including:
for the first transmission data, adding an extension header in data of a GTP-U (General Packet Radio Service Tunneling Protocol-User, User plane General Packet Radio Service tunnel Protocol) layer, wherein the data of the first Protocol layer comprises data of the GTP-U layer; and adding the state information into an expansion head of a GTP-U layer to obtain second transmission data. Because the GTP-U layer can contain a large amount of information, the expansion head is added in the GTP-U layer, and the state information is added, so that more information contents can be transmitted, and the application layer data is not changed, thereby not only increasing the adaptability and the expansibility, but also ensuring the information capacity.
Optionally, in another implementation manner, for the first transmission data, adding state information to data in the first protocol layer to obtain second transmission data, including: for the first transmission data, adding an extension head in the data of a second protocol layer, wherein the data of the first protocol layer comprises the data of a transmission layer and the data of the second protocol layer, and the second protocol layer is different from the transmission layer; and adding the state information into an extension header of the data of the second protocol layer to obtain second transmission data. And adding an extension head in the data of the second protocol layer and adding state information, so that after receiving the second transmission data, a receiver does not need to analyze to a high layer, only needs to analyze to the second protocol layer, and can obtain the state information, thereby reducing the complexity of analysis.
It should be noted that, adding the state information to the data in the first protocol layer may be to repackage the data, for example, acquiring the first transmission data, including: first transmission data under a protocol of the first interface is received through the first interface.
For the first transmission data, adding state information in the data of the first protocol layer to obtain second transmission data, including: and decapsulating the first transmission data according to a protocol of the first interface, encapsulating the decapsulated first transmission data according to a protocol of the second interface to obtain second transmission data, and encapsulating the state information in data of the first protocol layer.
The interface protocol of the network equipment can be different when receiving data and sending data, the first transmission data is analyzed according to the first interface protocol, and then the state information is encapsulated in the data of the first protocol layer when the second interface protocol is used for encapsulation, the original flow of data transmission is not changed, and the efficiency of data transmission is improved; if the first interface protocol is the same as the second interface protocol, and the network device only forwards the data, the network device only needs to analyze the data to the first protocol layer, that is, the layer for encapsulating the state information, and encapsulate the state information in the first protocol layer and then send the encapsulated state information. It should be noted that the first interface protocol may not include the first protocol layer, the first protocol layer may be a protocol layer under the second interface protocol, and the first transmission data under the second interface protocol may include data of the application layer and data of the first protocol layer.
Here, taking the example that the network device is a base station, receiving the first transmission data through the first interface includes: first transmission data under a protocol of an air interface is received over the air interface, the first interface including the air interface.
For the first transmission data, adding state information in the data of the first protocol layer to obtain second transmission data, including: and decapsulating the first transmission data according to a protocol of an air interface, encapsulating the decapsulated first transmission data according to a protocol of an Internet Protocol (IP) interface to obtain second transmission data, and encapsulating the state information in data of a first protocol layer.
Generally, data transmission is performed between a terminal device and a base station by using an air interface, that is, a first interface Protocol is an air interface Protocol, data transmission is performed between the base station and other network devices (for example, a relay device, a server, etc.) by using an IP (Internet Protocol) interface, that is, a second interface Protocol is an IP Protocol, which is, of course, only a base station is taken as an example here for description, and the present application is not limited thereto.
And step 204, sending second transmission data.
The data transmission method provided by the embodiment of the invention comprises the steps of obtaining first transmission data, wherein the first transmission data comprises data of an application layer in a network protocol; acquiring state information related to a network; for first transmission data, adding state information in data of a first protocol layer to obtain second transmission data, wherein the first transmission data comprises data of the first protocol layer in a network protocol, and the first protocol layer is different from an application layer; and sending the second transmission data. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
Example two
With reference to the data transmission method described in the first embodiment, a second embodiment of the present application provides a data transmission method, which describes in detail the execution step of the data receiving end in the first embodiment, that is, the method of the second data transmission receiving end in step 204, and referring to fig. 3, fig. 3 is a flowchart of the data transmission method provided in the second embodiment of the present application, and the method includes the following steps:
step 301, receiving second transmission data.
The second transmission data comprises data of an application layer in a network protocol and data of a first protocol layer, and the first protocol layer is different from the application layer. The description of the second transmission data may refer to the description in the first embodiment, and is not repeated here.
Step 302, the second transmission data is analyzed, and the state information is obtained from the data of the first protocol layer.
The status information is used to indicate the status of the network. The status information may indicate network bandwidth, location of the terminal device, cell to which the terminal device belongs, congestion status of the network, etc. The terminal device may be the device that sends the first transmission data, i.e. the source of the first transmission data. For the description of the status information, reference may be made to the description in the first embodiment, and details are not described here.
And 303, adjusting the network parameters according to the state information, and transmitting data according to the adjusted network parameters.
Adjusting network parameters is a process for optimizing data transmission, where the network parameters may include a network bandwidth, or may also be a sending window and a receiving window, for example, when the state information indicates that the network state is not good (e.g., the network bandwidth is small or the network is congested), the network bandwidth may be increased according to the state information, and when the state information indicates that the network state is good (e.g., the network bandwidth is large or the network is not congested), the network bandwidth may be decreased according to the state information; the network parameters may also include routing information, for example, when the status information indicates that the network status is not good, other transmission links with good network status may be selected for data transmission. Of course, this is merely an example and does not represent a limitation of the present application. The state information may indicate a state of a current network, adjust a network parameter according to the state information, and transmit data according to the adjusted network parameter, including: and adjusting the network parameters of the current network according to the state information, and transmitting data according to the adjusted network parameters. The receiving end can acquire the network state of the current network in time and adjust the network parameters according to the network state of the current network, so that data transmission can adapt to the current network in real time, and the utilization rate of network resources is improved.
The data transmission method provided by the embodiment of the invention receives second transmission data, wherein the second transmission data comprises data of an application layer and data of a first protocol layer in a network protocol; analyzing the second transmission data, and acquiring state information in the data of the first protocol layer, wherein the state information is used for indicating the state of the network; and adjusting the network parameters according to the state information, and transmitting data according to the adjusted network parameters. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
EXAMPLE III
Based on the data transmission methods described in the first embodiment and the second embodiment, the third embodiment of the present application provides a data transmission method, which is described in detail by taking a network device as a base station as an example, and of course, this is only an exemplary description, and does not represent that the present application is limited thereto. In order to facilitate understanding of the data transmission method described in the third embodiment, a scenario used in the third embodiment is described. As shown in fig. 4, fig. 4 is a scene schematic diagram of a data transmission method provided in a third embodiment of the present application, and fig. 4 shows a base station 401, a terminal device 402, and other network devices 403.
The terminal equipment sends first transmission data to the base station, the base station acquires state information, the base station analyzes and re-encapsulates the first transmission data to obtain second transmission data, the state information is encapsulated in data of a first protocol layer in the encapsulation process, and the base station transmits the second transmission data to other network equipment.
Referring to fig. 5 in conjunction with the scenario shown in fig. 4, fig. 5 is an interaction diagram of a data transmission method provided in a third embodiment of the present application, where the method includes the following steps:
step 501, the terminal device sends first transmission data to the base station.
With reference to the scenario shown in fig. 4, taking a 5G Network as AN example, the first transmission Data sent by the terminal device includes application layer Data, where the application layer Data may include a PDU (Protocol Data Unit), and the first transmission Data may further include a 5G-AN (Access Network ) Protocol layer. It should be noted that the first transmission data may be transmitted between the terminal device and the base station through an air interface.
Step 502, the base station obtains the state information of the network.
Taking the example that the status information includes the network bandwidth of the current network, the base station may detect the network bandwidth of the current network and generate the status information.
Step 503, the base station adds the state information to the first transmission data in the data of the first protocol layer to obtain the second transmission data.
The base station may receive the first transmission data through an air interface, analyze the first transmission data according to an air interface protocol, encapsulate the first transmission data according to an IP interface protocol to obtain second transmission data, and encapsulate the state information in a transport layer, where the second transmission data may include an application layer, a transport layer, a network layer, a data link layer, and a physical layer.
The transport layer may include a GTP-U layer, the state information may be encapsulated in an extension header of the GTP-U layer, and the network layer may include a UDP (User Datagram Protocol) layer or an IP layer; the data link layer may include an L2 layer and the physical layer may include an L1 layer. Of course, this is merely an example and does not represent a limitation of the present application.
Illustratively, the data of the GTP-U layer may include information type, information length, source address, destination address, tunnel endpoint identification, and extension header. Of course, the fields included in the GTP-U layer are only described here by way of example, and the present application is not limited thereto.
Step 504, the base station sends the second transmission data to other network devices.
The other device may include a relay device, for example, a UPF (User Plane Function) device, and may also include a server, which is not limited in this application.
And 505, the other network equipment performs data transmission optimization according to the state information contained in the second transmission data.
It should be noted that other network devices may also continue to send the second transmission data according to the same method as the base station, for example, the other network devices may obtain the status information, add the status information to the data of the first protocol layer for the second transmission data to obtain third transmission data, and send the third transmission data.
In combination with the application scenario shown in fig. 4, taking the relay device as an example, the intermediate device may send the third transmission data to the server, or may send the third transmission data to the base station. That is, the data transmission method described in the embodiment of the present application may be that a base station transmits data to a relay device, or that a terminal device transmits data to a base station; the relay devices can mutually transmit data; it is also possible that the relay device transmits data to the server, or the server transmits data to the relay device.
The data transmission method provided by the embodiment of the invention comprises the steps of obtaining first transmission data, wherein the first transmission data comprises data of an application layer in a network protocol; acquiring state information related to a network; for first transmission data, adding state information in data of a first protocol layer to obtain second transmission data, wherein the first transmission data comprises data of the first protocol layer in a network protocol, and the first protocol layer is different from an application layer; and sending the second transmission data. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
Example four
Based on the methods described in the first and third embodiments, a fourth embodiment of the present application provides a data transmission device for performing the methods described in the first and third embodiments, and referring to fig. 6, the data transmission device 60 includes:
an obtaining module 601, configured to obtain first transmission data, where the first transmission data includes data of an application layer in a network protocol;
a status module 602, configured to obtain status information related to a network;
a processing module 603, configured to add, to first transmission data, state information to data in a first protocol layer to obtain second transmission data, where the first transmission data includes data in the first protocol layer in a network protocol, and the first protocol layer is different from an application layer;
a sending module 604, configured to send the second transmission data.
Optionally, the processing module 603 is configured to add, to the first transmission data, an extension header to the data of the transport layer, where the data of the first protocol layer includes the data of the transport layer; and adding the state information into an extension header of the transmission layer to obtain second transmission data.
Optionally, the processing module 603 is configured to add, for the first transmission data, an extension header to data in a GTP-U layer of a gprs tunneling protocol, where the data in the first protocol layer includes data in the GTP-U layer; and adding the state information into an expansion head of a GTP-U layer to obtain second transmission data.
Optionally, the processing module 603 is configured to add an extension header to data in a second protocol layer for the first transmission data, where the data in the first protocol layer includes data in a transmission layer and data in the second protocol layer, and the second protocol layer is different from the transmission layer;
and adding the state information into an extension header of the data of the second protocol layer to obtain second transmission data.
Optionally, the obtaining module 601 is configured to obtain a network bandwidth and generate status information, where the status information includes the network bandwidth.
Optionally, the obtaining module 601 is configured to obtain location information and generate status information, where the location information is used to indicate a location of a terminal device corresponding to the first transmission data, and the status information includes the location information.
Optionally, the obtaining module 601 is configured to obtain cell information, and generate state information, where the cell information is used to indicate a network state of a cell to which the terminal device corresponding to the first transmission data belongs, and the state information includes cell information.
Optionally, the obtaining module 601 is configured to generate the state information according to a congestion status of the network.
Optionally, the obtaining module 601 is configured to generate the state information according to a transmission delay of the network.
Optionally, the obtaining module 601 is configured to receive, through the first interface, first transmission data in a protocol of the first interface;
the processing module 603 is configured to decapsulate the first transmission data according to a protocol of the first interface, encapsulate the decapsulated first transmission data according to a protocol of the second interface to obtain second transmission data, and encapsulate the state information in data of the first protocol layer.
Optionally, the obtaining module 601 is configured to receive, through an air interface, first transmission data under a protocol of the air interface, where the first interface includes the air interface;
the processing module 603 is configured to decapsulate the first transmission data according to a protocol of an air interface, encapsulate the decapsulated first transmission data according to a protocol of an internet protocol IP interface, to obtain second transmission data, and encapsulate the state information in data of a first protocol layer.
The data transmission device provided by the embodiment of the invention obtains first transmission data, wherein the first transmission data comprises data of an application layer in a network protocol; acquiring state information related to a network; for first transmission data, adding state information in data of a first protocol layer to obtain second transmission data, wherein the first transmission data comprises data of the first protocol layer in a network protocol, and the first protocol layer is different from an application layer; and sending the second transmission data. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
EXAMPLE five
Based on the methods described in the second embodiment and the third embodiment, a fourth embodiment of the present application provides a data transmission device for executing the methods described in the second embodiment and the third embodiment, and referring to fig. 7, the data transmission device 70 includes:
a receiving module 701, configured to receive second transmission data, where the second transmission data includes data of an application layer and data of a first protocol layer in a network protocol, and the first protocol layer is different from the application layer;
an analyzing module 702, configured to analyze the second transmission data, and obtain status information in the data of the first protocol layer, where the status information is used to indicate a status of the network;
the transmission module 703 is configured to adjust a network parameter according to the state information, and transmit data according to the adjusted network parameter.
The data transmission method provided by the embodiment of the invention receives second transmission data, wherein the second transmission data comprises data of an application layer and data of a first protocol layer in a network protocol; analyzing the second transmission data, and acquiring state information in the data of the first protocol layer, wherein the state information is used for indicating the state of the network; and adjusting the network parameters according to the state information, and transmitting data according to the adjusted network parameters. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
EXAMPLE six
Based on the methods described in the first to third embodiments, a fifth embodiment of the present application provides an electronic device, which is configured to execute the methods described in the first to third embodiments, and referring to fig. 8, fig. 8 is a schematic structural diagram of the electronic device provided in the fifth embodiment of the present application, and a specific embodiment of the present application does not limit a specific implementation of the electronic device.
As shown in fig. 8, the electronic device may include: a processor (processor)802, a Communications Interface 804, a memory 806, and a communication bus 808.
Wherein:
the processor 802, communication interface 804, and memory 806 are interfaced via a communication bus 808
And communicating with each other.
A communication interface 804 for communicating with other electronic devices, such as a terminal device or a server.
The processor 802 is configured to execute the program 810, and may specifically perform the relevant steps in the above method embodiments.
In particular, the program 810 may include program code comprising computer operating instructions.
The processor 802 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 806 stores a program 810. The memory 806 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 810 may be specifically configured to enable the processor 802 to execute any one of the methods of the first to third embodiments.
For specific implementation of each step in the program 810, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing data transmission method embodiments, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The electronic device provided by the embodiment of the invention acquires first transmission data, wherein the first transmission data comprises data of an application layer and data of a first protocol layer in a network protocol; acquiring state information related to a network; for the first transmission data, adding state information in the data of the first protocol layer to obtain second transmission data; and sending the second transmission data. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
EXAMPLE seven
Based on the methods described in the first to third embodiments, a seventh embodiment of the present application provides a computer storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the methods described in the first to third embodiments.
The computer storage medium provided by the embodiment of the invention acquires first transmission data, wherein the first transmission data comprises data of an application layer in a network protocol and data of a first protocol layer; acquiring state information related to a network; for the first transmission data, adding state information in the data of the first protocol layer to obtain second transmission data; and sending the second transmission data. Because the state information is added in the data of the first protocol layer, the data of the application layer does not need to be analyzed and modified, but the state information is obtained from the data of the first protocol layer for data transmission optimization, so that the method can adapt to more protocols, and has better adaptability and expansibility.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present invention may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present invention.
The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA. It will be appreciated that the computer, processor, microprocessor controller or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the data transmission methods described herein. Further, when a general-purpose computer accesses code for implementing the data transmission method illustrated herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the data transmission method illustrated herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method 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 implementation. 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 embodiments.
The above embodiments are only for illustrating the embodiments of the present invention and not for limiting the embodiments of the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also belong to the scope of the embodiments of the present invention, and the scope of patent protection of the embodiments of the present invention should be defined by the claims.

Claims (16)

1. A method of data transmission, comprising:
acquiring first transmission data, wherein the first transmission data comprises data of an application layer in a network protocol;
acquiring state information related to a network;
for the first transmission data, adding the state information to data of a first protocol layer to obtain second transmission data, wherein the first transmission data comprises data of the first protocol layer in a network protocol, and the first protocol layer is different from the application layer;
and sending the second transmission data.
2. The method of claim 1, wherein the adding the status information to the data of the first protocol layer for the first transmission data to obtain second transmission data comprises:
for the first transmission data, adding an extension header in data of a transmission layer, wherein the data of the first protocol layer comprises the data of the transmission layer;
and adding the state information into an extension header of the transmission layer to obtain the second transmission data.
3. The method of claim 1, wherein the adding the status information to the data of the first protocol layer for the first transmission data to obtain second transmission data comprises:
for the first transmission data, adding an extension header in data of a GTP-U layer of a general packet radio service tunneling protocol (GTP-U), wherein the data of the first protocol layer comprises the data of the GTP-U layer;
and adding the state information into an expansion head of the GTP-U layer to obtain the second transmission data.
4. The method of claim 1, wherein the adding the status information to the data of the first protocol layer for the first transmission data to obtain second transmission data comprises:
for the first transmission data, adding an extension header in data of a second protocol layer, wherein the data of the first protocol layer comprises the data of the transmission layer and the data of the second protocol layer, and the second protocol layer is different from the transmission layer;
and adding the state information into an extension header of the data of the second protocol layer to obtain the second transmission data.
5. The method of claim 1, wherein the obtaining network-related status information comprises:
and acquiring the network bandwidth and generating the state information, wherein the state information comprises the network bandwidth.
6. The method of claim 1, wherein the obtaining network-related status information comprises:
and acquiring position information and generating the state information, wherein the position information is used for indicating the position of the terminal equipment corresponding to the first transmission data, and the state information comprises the position information.
7. The method of claim 1, wherein the obtaining network-related status information comprises:
acquiring cell information and generating the state information, wherein the cell information is used for indicating the network state of a cell to which the terminal equipment corresponding to the first transmission data belongs, and the state information comprises the cell information.
8. The method of claim 1, wherein the obtaining network-related status information comprises:
and generating the state information according to the congestion state of the network.
9. The method of claim 1, wherein the obtaining network-related status information comprises:
and generating the state information according to the transmission delay of the network.
10. The method of any of claims 1-9, wherein the obtaining first transmission data comprises:
receiving the first transmission data under the protocol of the first interface through the first interface;
for the first transmission data, adding the state information to the data of the first protocol layer to obtain second transmission data, including:
and decapsulating the first transmission data according to the protocol of the first interface, and encapsulating the decapsulated first transmission data according to the protocol of the second interface to obtain second transmission data, wherein the state information is encapsulated in the data of the first protocol layer.
11. The method of claim 10, wherein the receiving the first transmission data over a first interface comprises:
receiving the first transmission data under a protocol of an air interface over the air interface, the first interface comprising the air interface;
for the first transmission data, adding the state information to the data of the first protocol layer to obtain second transmission data, including:
and decapsulating the first transmission data according to the protocol of the air interface, and encapsulating the decapsulated first transmission data according to the protocol of the Internet Protocol (IP) interface to obtain the second transmission data, wherein the state information is encapsulated in the data of the first protocol layer.
12. A method of data transmission, comprising:
receiving second transmission data, wherein the second transmission data comprises data of an application layer in a network protocol and data of the first protocol layer, and the first protocol layer is different from the application layer;
analyzing the second transmission data, and acquiring state information in the data of the first protocol layer, wherein the state information is used for indicating the state of the network;
and adjusting network parameters according to the state information, and transmitting data according to the adjusted network parameters.
13. A data transmission apparatus comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first transmission data, and the first transmission data comprises data of an application layer in a network protocol;
the state module is used for acquiring state information related to the network;
a processing module, configured to add the state information to data of a first protocol layer to obtain second transmission data for the first transmission data, where the first transmission data includes data of the first protocol layer in a network protocol, and the first protocol layer is different from the application layer;
and the sending module is used for sending the second transmission data.
14. A data transmission apparatus comprising:
a receiving module, configured to receive second transmission data, where the second transmission data includes data of an application layer in a network protocol and data of the first protocol layer, and the first protocol layer is different from the application layer;
the analysis module is used for analyzing the second transmission data and acquiring state information in the data of the first protocol layer, wherein the state information is used for indicating the state of the network;
and the transmission module is used for adjusting network parameters according to the state information and transmitting data according to the adjusted network parameters.
15. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the data transmission method according to any one of claims 1-12.
16. A computer storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data transmission method according to any one of claims 1 to 12.
CN202010717755.9A 2020-07-23 2020-07-23 Data transmission method and device, electronic equipment and computer storage medium Pending CN113973134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010717755.9A CN113973134A (en) 2020-07-23 2020-07-23 Data transmission method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010717755.9A CN113973134A (en) 2020-07-23 2020-07-23 Data transmission method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN113973134A true CN113973134A (en) 2022-01-25

Family

ID=79585408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010717755.9A Pending CN113973134A (en) 2020-07-23 2020-07-23 Data transmission method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113973134A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334176A (en) * 2022-07-27 2022-11-11 广州安凯微电子股份有限公司 Data transmission method, data transmission device, computer equipment, storage medium and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334176A (en) * 2022-07-27 2022-11-11 广州安凯微电子股份有限公司 Data transmission method, data transmission device, computer equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
CN113411313B (en) Data transmission method, device and system
US9088612B2 (en) Systems and methods for providing link-performance information in socket-based communication devices
JP5718409B2 (en) Apparatus and method for efficiently executing an application on a wireless communication device
EP3331205B1 (en) Data packet transmission method utilized in ipv6 network and device utilizing same
US11563829B2 (en) Simple ethernet header compression
CN111698755B (en) URSP rule-based application data routing method and user equipment
CN110313160B (en) Method and device for avoiding packet segmentation
CN111988212B (en) Message transmission method and related device
CN109120540B (en) Method for transmitting message, proxy server and computer readable storage medium
CN107222887B (en) Communication performance testing method and device for base station wireless side transmission path
CN104993979A (en) Network connection monitoring method, terminal equipment and communication system
US10136375B2 (en) Method for service data management, apparatus, and system
US9762486B2 (en) Method and system for using extension headers to support protocol stack migration
CN113973134A (en) Data transmission method and device, electronic equipment and computer storage medium
CN113766569A (en) Data transmission method, device, system and storage medium
WO2016119269A1 (en) Service data stream data packet processing method and device
CN108848202B (en) Electronic device, data transmission method and related product
CN107431965B (en) Method and device for realizing Transmission Control Protocol (TCP) transmission
CN115514828A (en) Data transmission method and electronic equipment
CN106559838B (en) business processing optimization method and device
WO2014131334A1 (en) Method and device for multi-link fusion
US20160149855A1 (en) Service processing method, system, and relevant device
EP2858415B1 (en) Multi-link-based data transmission method and device
CN105874755B (en) Data packet forwarding processing method and device
CN104871497A (en) Flow table processing method and apparatus

Legal Events

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