WO2022100199A1 - Data transmission method and apparatus, and medium, electronic device and network access device - Google Patents

Data transmission method and apparatus, and medium, electronic device and network access device Download PDF

Info

Publication number
WO2022100199A1
WO2022100199A1 PCT/CN2021/114345 CN2021114345W WO2022100199A1 WO 2022100199 A1 WO2022100199 A1 WO 2022100199A1 CN 2021114345 W CN2021114345 W CN 2021114345W WO 2022100199 A1 WO2022100199 A1 WO 2022100199A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
network access
target data
electronic device
access device
Prior art date
Application number
PCT/CN2021/114345
Other languages
French (fr)
Chinese (zh)
Inventor
刘伟
彭昊
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022100199A1 publication Critical patent/WO2022100199A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2475Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a data transmission method, apparatus, medium, electronic device and network access device.
  • Electronic devices such as smart phones and tablet computers can establish network connections with network access devices (such as Wi-Fi routers), and use the network access services provided by network access devices to access networks (such as the Internet, intranet, etc.), So you can listen to songs, watch videos and play games online.
  • network access devices such as Wi-Fi routers
  • network access services such as Wi-Fi routers
  • network access networks such as the Internet, intranet, etc.
  • the present application provides a data transmission method, apparatus, medium, electronic device and network access device.
  • the present application provides a data transmission method, which is applied to an electronic device.
  • the electronic device is provided with a network access service by a network access device.
  • the data transmission method includes: acquiring a data packet to be sent; When the data packet to be sent is a data packet of a preset application, a priority transmission identifier is added to the to-be-sent data packet to obtain a target data packet, and the priority transmission identifier includes a random number obtained through pre-negotiation between the electronic device and the network access device. value; transmit the target data packet to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier.
  • the present application provides a data transmission method, which is applied to a network access device, where the network access device provides a network access service for an electronic device, and the data transmission method includes: acquiring a destination for transmission by the electronic device data packet; when the target data packet carries a priority sending identifier, the target data packet is sent preferentially; wherein the priority sending identifier includes a random value pre-negotiated by the network access device and the electronic device.
  • the present application provides a data processing apparatus, which is applied to an electronic device, where a network access service is provided by a network access device, and the data processing apparatus includes: an acquisition module configured to acquire a data packet to be sent The identification module is used to add a priority transmission identification for the to-be-sent data packet when the data packet to be sent is the data packet of the preset application to obtain the target data packet, and the preferential transmission identification includes the electronic equipment and the a random value pre-negotiated by the network access device; a transmission module, configured to transmit the target data packet to the network access device, so that the network access device preferentially sends the target according to the priority sending identifier data pack.
  • the present application provides a data processing apparatus, which is applied to a network access device, the network access device provides network access services for electronic equipment, and the data processing apparatus includes: an acquisition module for acquiring the The target data packet transmitted by the electronic device; the forwarding module is configured to preferentially send the to-be-sent data packet when the to-be-sent data packet carries the priority-sending identifier; wherein the prioritized sending identifier includes the network access device A random value pre-negotiated with the electronic device.
  • the present application provides a storage medium on which a computer program is stored, and when the computer program is loaded by a processor of a network access device, the data transmission method applied to the network access device as provided by the present application is executed. , or when the computer program is loaded by the processor of the electronic device, the data transmission method applied to the electronic device as provided in the present application is executed.
  • the present application provides a network access device, the network access device includes a processor and a memory, the memory stores a computer program, and the processor executes the method provided by the present application by loading the computer program A data transmission method applied to a network access device.
  • the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores a computer program, and the processor executes the application to the electronic device as provided by the present application by loading the computer program data transfer method.
  • FIG. 1 is a schematic diagram of a data transmission system provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 3 is an example diagram of an electronic device acquiring to-be-sent data packets from other electronic devices in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an electronic device adding a priority transmission identifier to a data packet to be sent to obtain a target data packet in an embodiment of the present application.
  • FIG. 5 is an example diagram of an electronic device redundantly transmitting a target data packet in an embodiment of the present application.
  • FIG. 6 is an example diagram of adding a priority sending identifier to a data packet to be sent by an electronic device in an embodiment of the present application.
  • FIG. 7 is another schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 8 is another schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a data transmission apparatus provided by an embodiment of the present application.
  • FIG. 10 is another schematic structural diagram of a data transmission apparatus provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a network access device provided by an embodiment of the present application.
  • the present application provides a data transmission system. Please refer to FIG. 1 .
  • the data transmission system provided by the present application includes electronic equipment and network access equipment. It should be noted that the embodiments of the present application do not specifically limit the entity presentation forms of the electronic device and the network access device.
  • the entity presentation form of the electronic device may be the smartphone shown in FIG.
  • the presentation form may be the router shown in FIG. 1 .
  • the electronic device and the network access device perform data interaction through a network connection between the two
  • the network connection may be a wired network connection (for example, directly connecting the electronic device and the network access device through a data cable, so as to establish a connection between the two
  • the network connection can also be a wireless network connection (including but not limited to wireless communication methods such as Bluetooth, infrared, and wireless fidelity), and a wired network connection and a wireless network connection can be established at the same time.
  • the network access device provides network access services for the electronic device.
  • the electronic device when the electronic device has a data packet to be sent, if the to-be-sent data packet is a data packet of a preset application, it will add a priority sending flag to the to-be-sent data packet to obtain the target data packet, and then transmit the target data packet to the network connection. Then, the network access device preferentially sends the target data packet according to the priority sending identifier, and transmits it to the peer device via the network, so as to ensure the data transmission quality of the specific application.
  • FIG. 1 shows only an example of a system architecture for implementing the embodiments of the present application, and the embodiments of the present application are not limited to the system architecture shown in the foregoing FIG. 1 .
  • Various embodiments of the present application are presented below by taking the system architecture shown in FIG. 1 as an example.
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • the data transmission method is applied to the electronic device in the data transmission system provided by the present application.
  • the process of the data transmission method provided by the embodiment of the present application may be as follows:
  • Electronic devices such as smart phones and tablet computers can establish network connections with network access devices (such as Wi-Fi routers), and use the network access services provided by network access devices to access networks (such as the Internet, intranet, etc.), So you can listen to songs, watch videos and play games online.
  • network quality is more and more important to users. For example, when a smartphone is connected to the Internet through a Wi-Fi router to play games, the Wi-Fi connection between the smartphone and the Wi-Fi router is easily disturbed and faces the same Wi-Fi connection. The preemptive competition of other devices under the Fi router makes it impossible to guarantee the data transmission quality of applications that require low transmission delay, such as game applications.
  • the data transmission method provided by the present application will be described below from the perspective of an electronic device.
  • the network access device provides a network access service for the electronic device, so that the electronic device can access the network (such as the Internet, an internal network of an institution, etc.) through the network access device, so as to perform data interaction with other devices through the network.
  • the network such as the Internet, an internal network of an institution, etc.
  • a game application running on an electronic device enables a user to play normally online only through data interaction with a game server on the other end of the network.
  • the electronic device acquires the data packet to be sent in real time, wherein the data packet to be sent may be generated by a local application of the electronic device, or may be generated by other electronic devices when the electronic device shares the network with other electronic devices forwarded to electronic devices.
  • the electronic device runs a game application
  • the game application generates a data packet that needs to be sent to the game server, and the electronic device regards the data packet as the data packet to be sent.
  • an electronic device is provided with a network access service by a network access device, and the electronic device shares the network with other electronic devices.
  • the data packet of the communication server is correspondingly transmitted to the electronic device, and at this time, the electronic device regards the data packet as the data packet to be sent.
  • a priority transmission identifier is added to the to-be-sent data packet to obtain the target data packet, and the priority transmission identifier includes a random value pre-negotiated by the electronic device and the network access device.
  • the preset application may be configured by default by the electronic device, or may be correspondingly configured by the electronic device according to user input. For example, by default, the electronic device configures applications that require high data transmission quality, such as game applications and live broadcast applications, as default applications that need to ensure transmission quality.
  • the electronic device further parses the data packet to be sent to determine the application to which the data packet to be sent belongs, or, in other words, to determine which application the data packet to be sent belongs to. produce. Then, the electronic device further identifies whether the application to which the data packet to be sent belongs is a preset application, and if so, determines that the transmission quality of the data packet to be sent needs to be guaranteed.
  • a priority sending identifier is provided in the embodiment of the present application, and the priority sending identifier is configured to instruct the network access device to send the corresponding data packet preferentially.
  • the priority transmission identifier is a random value obtained through pre-negotiation between the electronic device and the network access device.
  • the electronic device when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device;
  • the configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
  • the electronic device when recognizing that the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent, and marks the data packet to be sent to which the priority transmission identifier is added as destination packet.
  • how to add the priority sending identifier to the data packet to be sent is not specifically limited in this embodiment of the present application, and can be configured by those of ordinary skill in the art according to actual needs.
  • the priority sending identifier can be added to the data packet to be sent.
  • the header field of the data packet to be sent can also be added to the packet tail field of the data packet to be sent.
  • the target data packet is transmitted to the network access device, so that the network access device preferentially sends the target data packet according to the priority transmission identifier.
  • the electronic device after adding a priority sending identifier to the data packet to be sent to obtain the target data packet, the electronic device transmits the target data packet to the network access device.
  • the network access device After receiving the target data packet from the electronic device, the network access device will determine that the target data packet needs to be sent preferentially according to the priority sending identifier carried in it, so as to send the target data preferentially according to the preconfigured priority sending policy packet, and transmit the target data packet to the corresponding peer device via the network.
  • the specific configuration of the priority sending policy is not limited here, and can be configured by those of ordinary skill in the art according to actual needs.
  • the network access device is configured with a priority sending queue and a normal sending queue, and the network access device is configured to send the data packets in the normal sending queue after all the data packets in the priority sending queue are sent.
  • the network access device preferentially sends the target data packet, it inserts the target data packet into the priority transmission queue. If there are other data packets before the target data packet in the priority transmission queue, the network access device will send the target data packet in turn. After completing other data packets, the target data packet is sent again; if there is no other data packet before the target data packet in the priority sending queue, the network access device directly sends the target data packet.
  • the present application obtains the data packet to be sent through the electronic device, and when the data packet to be sent is the data packet of the preset application, the target data packet is obtained by adding a priority transmission identifier to the data packet to be sent, and the priority transmission identifier includes the electronic device.
  • the electronic device negotiates a random value with the network access device in advance as the priority sending identifier, and the electronic device adds the priority sending identifier to the data packet of the preset application that needs to ensure the data transmission quality, so that the network access device can According to the instruction of the priority sending flag, the data packet with the priority sending flag is sent preferentially, so as to achieve the purpose of ensuring the data transmission quality of a specific application.
  • transmitting the target data packet to the network access device includes:
  • the target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
  • the electronic device redundantly sends the target data packet.
  • the electronic device when transmitting the target data packet to the network access device, duplicates the target data packet at least once, thereby obtaining at least two target data packets, including the original target data packet and at least one duplicated target data.
  • the number of times of copying the target data packet is not specifically limited, and can be configured by those of ordinary skill in the art according to actual needs.
  • the electronic device After copying the target data packets and obtaining at least two target data packets, the electronic device transmits the obtained at least two target data packets to the network access device. In this way, in the case of packet loss, the network access device can also receive the target data packet transmitted by the electronic device to the greatest extent possible.
  • the network access device may receive One target data packet transmitted to the electronic device may also receive at least two target data packets transmitted by the electronic device.
  • the network access device may only preferentially send a received target data packet, or may preferentially send all received target data packets, etc. This embodiment of the present application does not impose specific restrictions on this, and can be determined by those of ordinary skill in the art according to actual conditions. Configuration is required.
  • the electronic device and the network access device establish N network connections, where N is a positive integer greater than or equal to 2, and the target data packet is copied at least once to obtain at least two target data packets. , and transmit at least two target data packets to the network access device, including:
  • N network connections are established between the electronic device and the network access device, where N is a positive integer greater than or equal to 2.
  • the electronic device can transmit the target data packet to the network access device through multiple network connections established between the electronic device and the network access device.
  • the electronic device replicates the target data packet N-1 times, thereby obtaining N-1 replicated target data packets, including a total of N target data packets including the original target data packet. Then, the electronic device allocates the N target data packets to the N network connections one by one for transmission to the network access device, that is, each target data packet in the N target data packets is respectively allocated to one network connection for transmission to network access equipment.
  • two network connections are established between the electronic device and the network access device, which are the first network connection based on the 2.4G frequency point and the second network connection based on the 5G frequency point.
  • adding a priority transmission identifier to the data packet to be sent to obtain the target data packet including:
  • This embodiment of the present application provides an optional implementation manner of adding a priority sending identifier to a data packet to be sent.
  • a data packet can be roughly divided into three parts, namely the packet header, the packet body and the packet tail.
  • the packet body is used to fill in the data that actually needs to be transmitted, and the packet header and the packet tail are used to fill some auxiliary transmission related data.
  • the packet header includes a source IP address field and a destination IP address field, where the destination IP address field is used to fill in the destination IP address, the destination IP address is used to indicate to whom the data packet is to be sent, and the source IP address field is used to Fill in the source IP address, the source IP address is used for where this packet is sent from.
  • the packet header also includes a service type field.
  • the service type field has a total of 8 bits, including a 3-bit priority subfield (the value can be all values from 000-111), and a 4-bit service type subfield. Field and 1 bit must be set to 0 reserved bits.
  • the 8 priorities of 3 bits are defined as follows:
  • the priorities "111” and “110” are generally reserved for network control data (such as routing data).
  • the priority “101” is recommended for voice data
  • the priority "100” is recommended for video conference and video streaming
  • the priority "011” is recommended for voice control data
  • the priorities "010” and “001” are for data services
  • the priority "000” is the default tag value.
  • the priority subfield in the service type field can be directly reused to fill in the priority transmission identifier.
  • the electronic device may write the priority sending identifier into the priority subfield in the service type field of the data packet to be sent.
  • the data length of the random value negotiated between the electronic device and the network access device and used as the priority transmission identifier is at most 3 bits.
  • the method further includes:
  • the network access device in addition to preferentially sending the target data packet from the electronic device, the network access device also preferentially forwards the response data packet returned by the opposite end device of the target data packet to the electronic device.
  • the network access device after receiving the target data packet from the electronic device, in addition to sending the target data packet preferentially, the network access device also records the quintuple data of the target data packet, including the source IP address, source port, and destination IP address. , destination port, and transport layer protocol.
  • the data packet is regarded as a response data packet of the target data packet and sent to the electronic device preferentially.
  • the quintuple data of the recorded target data packet is: "192.168.1.1, 10000, TCP, 121.14.88.76, 80" constitutes a quintuple, in which 192.168.1.1 is the source IP address of the target data packet , 10000 is the source port of the target data packet, TCP is the transport layer protocol of the target data packet, 121.14.88.76 is the destination IP address of the target data packet (indicating the peer device of the target data packet), 80 is the target data packet destination port.
  • the quintuple data of a data packet is "121.14.88.76, 80, TCP, 192.168.1.1, 10000", 121.14.88.76 is the source IP address of the data packet, and 80 is the source port of the data packet , TCP is the transport layer protocol of the data packet, 192.168.1.1 is the destination IP address of the data packet, and 10000 is the destination port of the data packet.
  • the quintuple data of the data packet matches the quintuple data of the target data packet, and the network access device preferentially sends the data packet to the electronic device as a response data packet of the target data packet.
  • the electronic device will receive the response data packet corresponding to the target data packet preferentially sent by the network access device.
  • it also includes:
  • the electronic device disconnects the network connection with the network access device and establishes the network connection again, it negotiates a new random value with the network access device as the priority sending identifier.
  • the electronic device disconnects the network connection with the network access device and establishes the network connection again, it negotiates a new random value with the network access device as the priority sending identifier.
  • FIG. 7 is another schematic flowchart of the data transmission method provided by the present application.
  • the data transmission method is applied to the network access device in the data transmission system provided by the present application.
  • the flow of the data transmission method may be as follows:
  • a target data packet transmitted by the electronic device is obtained.
  • the data transmission method provided by the present application will be described below from the perspective of a network access device.
  • the network access device provides a network access service for the electronic device, so that the electronic device can access the network (such as the Internet, an internal network of an institution, etc.) through the network access device, so as to perform data interaction with other devices through the network.
  • the network such as the Internet, an internal network of an institution, etc.
  • a game application running on an electronic device enables a user to play normally online only through data interaction with a game server on the other end of the network.
  • the electronic device acquires the data packet to be sent in real time, wherein the data packet to be sent may be generated by a local application of the electronic device, or may be generated by other electronic devices when the electronic device shares the network with other electronic devices forwarded to electronic devices.
  • the electronic device runs a game application
  • the game application generates a data packet that needs to be sent to the game server, and the electronic device regards the data packet as the data packet to be sent.
  • an electronic device is provided with a network access service by a network access device, and the electronic device shares the network with other electronic devices.
  • the data packet of the communication server is correspondingly transmitted to the electronic device, and at this time, the electronic device regards the data packet as the data packet to be sent.
  • the preset application may be configured by default by the electronic device, or may be correspondingly configured by the electronic device according to user input. For example, by default, the electronic device configures applications that require high data transmission quality, such as game applications and live broadcast applications, as default applications that need to ensure transmission quality.
  • the electronic device further parses the data packet to be sent to determine the application to which the data packet to be sent belongs, or, in other words, to determine which application the data packet to be sent belongs to. produce. Then, the electronic device further identifies whether the application to which the data packet to be sent belongs is a preset application, and if so, determines that the transmission quality of the data packet to be sent needs to be guaranteed.
  • a priority sending identifier is provided in the embodiment of the present application, and the priority sending identifier is configured to instruct the network access device to send the corresponding data packet preferentially.
  • the priority transmission identifier is a random value obtained through pre-negotiation between the electronic device and the network access device.
  • the electronic device when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device;
  • the configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
  • the electronic device when recognizing that the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent, and marks the data packet to be sent to which the priority transmission identifier is added as destination packet.
  • how to add the priority sending identifier to the data packet to be sent is not specifically limited in this embodiment of the present application, and can be configured by those of ordinary skill in the art according to actual needs.
  • the priority sending identifier can be added to the data packet to be sent.
  • the header field of the data packet to be sent can also be added to the packet tail field of the data packet to be sent.
  • the electronic device after adding a priority sending identifier to the data packet to be sent to obtain the target data packet, the electronic device transmits the target data packet to the network access device.
  • the network access device will receive the target data packet transmitted by the electronic device.
  • the target data packet when the target data packet carries a priority sending identifier, the target data packet is sent preferentially, wherein the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
  • the target data packet transmitted by the electronic device to the network access device is added with a priority sending identifier.
  • the network access device will recognize that the target data packet carries the priority sending identifier, and accordingly, according to the indication of the priority sending identifier, it is determined that priority is required.
  • the target data packet is sent, so that the target data packet is preferentially sent according to the preconfigured priority sending policy, and the target data packet is transmitted to the corresponding peer device via the network.
  • the specific configuration of the priority sending policy is not limited here, and can be configured by those of ordinary skill in the art according to actual needs.
  • the network access device is configured with a priority sending queue and a normal sending queue, and the network access device is configured to send the data packets in the normal sending queue after all the data packets in the priority sending queue are sent.
  • the network access device preferentially sends the target data packet, it inserts the target data packet into the priority transmission queue. If there are other data packets before the target data packet in the priority transmission queue, the network access device will send the target data packet in turn. After completing other data packets, the target data packet is sent again; if there is no other data packet before the target data packet in the priority sending queue, the network access device directly sends the target data packet.
  • acquiring the target data packet transmitted by the electronic device includes:
  • Send destination packets with priority including:
  • the first target data packet When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the first preset network transmission protocol, the first target data packet is sent first, and subsequent receptions are discarded to other destination packets.
  • the electronic device redundantly sends the target data packet.
  • the electronic device when transmitting the target data packet to the network access device, duplicates the target data packet at least once, thereby obtaining at least two target data packets, including the original target data packet and at least one duplicated target data.
  • the number of times of copying the target data packet is not specifically limited, and can be configured by those of ordinary skill in the art according to actual needs.
  • the electronic device After copying the target data packets and obtaining at least two target data packets, the electronic device transmits the obtained at least two target data packets to the network access device. In this way, in the case of packet loss, the network access device can also receive the target data packet transmitted by the electronic device to the greatest extent possible.
  • the network access device may receive One target data packet transmitted to the electronic device may also receive at least two target data packets transmitted by the electronic device.
  • the network access device when receiving the first target data packet from the electronic device, identifies the transport layer network transmission protocol required by the first target data packet, if the network transmission protocol required by the first target data packet is In the first preset network transmission protocol, the first target data packet is preferentially sent, and other target data packets received subsequently are discarded.
  • the first preset network transmission protocol may be any network transmission protocol that does not have the function of data packet deduplication, and can be specifically configured by those of ordinary skill in the art according to actual needs.
  • preferentially sending the target data packet further includes:
  • the first target data packet When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the second preset network transmission protocol, the first target data packet is preferentially sent, and the subsequent data packets are preferentially sent. Other destination packets received.
  • the network access device recognizes that the network transmission protocol required by the first target data packet it receives is the second preset network transmission protocol, it preferentially sends the first target data packet, and preferentially sends the subsequent target data packets. Other destination packets received.
  • the second preset network transmission protocol may be any network transmission protocol that does not have the function of data packet deduplication, and can be specifically configured by those of ordinary skill in the art according to actual needs.
  • the network access device establishes multiple network connections with the electronic device, and receives multiple identical target data packets from the electronic device, including:
  • One of a plurality of identical target packets is received over each network connection.
  • N network connections are established between the electronic device and the network access device, where N is a positive integer greater than or equal to 2.
  • the electronic device can transmit the target data packet to the network access device through multiple network connections established between the electronic device and the network access device.
  • the electronic device replicates the target data packet N-1 times, thereby obtaining N-1 replicated target data packets, including a total of N target data packets including the original target data packet. Then, the electronic device allocates the N target data packets to the N network connections one by one for transmission to the network access device, that is, each target data packet in the N target data packets is respectively allocated to one network connection for transmission to network access equipment.
  • two network connections are established between the electronic device and the network access device, which are the first network connection based on the 2.4G frequency point and the second network connection based on the 5G frequency point.
  • the network access device will receive one target data packet of a plurality of identical target data packets through each network connection between it and the electronic device.
  • FIG. 8 is another schematic flowchart of the data transmission method provided by the present application. As shown in FIG. 8, the process of the data transmission method may be as follows:
  • a random value is obtained through negotiation as a priority sending identifier.
  • the electronic device may negotiate with the network access device to send the identifier preferentially when establishing a network connection with the network access device for the first time, or when establishing a connection with the network access device again.
  • the electronic device when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device;
  • the configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
  • the electronic device obtains the data packet to be sent.
  • the electronic device acquires the data packet to be sent in real time, wherein the data packet to be sent may be generated by a local application of the electronic device, or may be generated by other electronic devices when the electronic device shares the network with other electronic devices forwarded to electronic devices.
  • the electronic device runs a game application
  • the game application generates a data packet that needs to be sent to the game server, and the electronic device regards the data packet as the data packet to be sent.
  • an electronic device is provided with a network access service by a network access device, and the electronic device shares the network with other electronic devices.
  • the data packet of the communication server is correspondingly transmitted to the electronic device, and at this time, the electronic device regards the data packet as the data packet to be sent.
  • the electronic device when the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent to obtain the target data packet.
  • the preset application may be configured by default by the electronic device, or may be correspondingly configured by the electronic device according to user input. For example, by default, the electronic device configures applications that require high data transmission quality, such as game applications and live broadcast applications, as default applications that need to ensure transmission quality.
  • the electronic device further parses the data packet to be sent to determine the application to which the data packet to be sent belongs, or, in other words, to determine which application the data packet to be sent belongs to. produce. Then, the electronic device further identifies whether the application to which the data packet to be sent belongs is a preset application, and if so, determines that the transmission quality of the data packet to be sent needs to be guaranteed.
  • a priority sending identifier is provided in the embodiment of the present application, and the priority sending identifier is configured to instruct the network access device to send the corresponding data packet preferentially.
  • the priority transmission identifier is a random value obtained through pre-negotiation between the electronic device and the network access device.
  • the electronic device when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device;
  • the configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
  • the electronic device when recognizing that the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent, and marks the data packet to be sent to which the priority transmission identifier is added as destination packet.
  • how to add the priority sending identifier to the data packet to be sent is not specifically limited in this embodiment of the present application, and can be configured by those of ordinary skill in the art according to actual needs.
  • the priority sending identifier can be added to the data packet to be sent.
  • the header field of the data packet to be sent can also be added to the packet tail field of the data packet to be sent.
  • the electronic device transmits the target data packet to the network access device.
  • the electronic device after adding a priority sending identifier to the data packet to be sent to obtain the target data packet, the electronic device transmits the target data packet to the network access device.
  • the network access device preferentially transmits the target data packet according to the preferential transmission identifier.
  • the network access device After receiving the target data packet from the electronic device, the network access device will determine that the target data packet needs to be sent preferentially according to the priority transmission identifier carried in it, so as to preferentially send the target data packet according to the pre-configured priority transmission policy, via the network. Transmit the target data packet to the corresponding peer device.
  • the specific configuration of the priority sending policy is not limited here, and can be configured by those of ordinary skill in the art according to actual needs.
  • the network access device is configured with a priority sending queue and a normal sending queue, and the network access device is configured to send the data packets in the normal sending queue after all the data packets in the priority sending queue are sent.
  • the network access device preferentially sends the target data packet, it inserts the target data packet into the priority transmission queue. If there are other data packets before the target data packet in the priority transmission queue, the network access device will send the target data packet in turn. After completing other data packets, the target data packet is sent again; if there is no other data packet before the target data packet in the priority sending queue, the network access device directly sends the target data packet.
  • the network access device upon receiving a response data packet corresponding to the target data packet, preferentially sends the response data packet to the electronic device.
  • the network access device in addition to preferentially sending the target data packet from the electronic device, the network access device also preferentially forwards the response data packet returned by the opposite end device of the target data packet to the electronic device.
  • the network access device after receiving the target data packet from the electronic device, in addition to sending the target data packet preferentially, the network access device also records the quintuple data of the target data packet, including the source IP address, source port, and destination IP address. , destination port, and transport layer protocol.
  • the data packet is regarded as a response data packet of the target data packet and sent to the electronic device preferentially.
  • the quintuple data of the recorded target data packet is: "192.168.1.1, 10000, TCP, 121.14.88.76, 80" constitutes a quintuple, in which 192.168.1.1 is the source IP address of the target data packet , 10000 is the source port of the target data packet, TCP is the transport layer protocol of the target data packet, 121.14.88.76 is the destination IP address of the target data packet (indicating the peer device of the target data packet), 80 is the target data packet destination port.
  • the quintuple data of a data packet is "121.14.88.76, 80, TCP, 192.168.1.1, 10000", 121.14.88.76 is the source IP address of the data packet, and 80 is the source port of the data packet , TCP is the transport layer protocol of the data packet, 192.168.1.1 is the destination IP address of the data packet, and 10000 is the destination port of the data packet.
  • the quintuple data of the data packet matches the quintuple data of the target data packet, and the network access device preferentially sends the data packet to the electronic device as a response data packet of the target data packet.
  • the present application further provides a data transmission device, the data transmission device is applied to electronic equipment, and the electronic equipment is accessed by a network
  • the device provides network access services.
  • the data transmission apparatus may include:
  • an obtaining module 410 configured to obtain a data packet to be sent
  • the identification module 420 is configured to add a priority transmission identifier to the to-be-sent data packet to obtain the target data packet when the data packet to be sent is a data packet of a preset application, and the priority transmission identifier includes a random number obtained through pre-negotiation between the electronic device and the network access device. value;
  • the transmission module 430 is configured to transmit the target data packet to the network access device, so that the network access device preferentially sends the target data packet according to the priority transmission identifier.
  • the transmission module 430 is used to:
  • the target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
  • the electronic device and the network access device establish N network connections, where N is a positive integer greater than or equal to 2, and the transmission module 430 is configured to:
  • the identification module 420 is used to:
  • the transmission module 430 is further configured to receive a response data packet corresponding to the target data packet preferentially sent by the network access device.
  • the data transmission apparatus provided by the present application further includes a negotiation module, configured to communicate with the network access device when the electronic device disconnects the network connection with the network access device and establishes the network connection again.
  • the device negotiates a new random value as the priority sending identifier.
  • the present application further provides a data transmission device, the data transmission device is applied to network access equipment, and the network access device
  • the access device provides network access services for electronic devices.
  • the data transmission apparatus may include:
  • an acquisition module 510 configured to acquire the target data packet transmitted by the electronic device
  • the forwarding module 520 is configured to preferentially send the data packet to be sent when the data packet to be sent carries a priority transmission identifier
  • the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
  • the obtaining module 510 is configured to receive multiple identical target data packets from the electronic device;
  • the forwarding module 520 is configured to send the first target data packet preferentially when receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the first preset network transmission protocol , and discard other target packets received subsequently.
  • the forwarding module 520 is further configured to:
  • the first target data packet When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the second preset network transmission protocol, the first target data packet is preferentially sent, and the subsequent data packets are preferentially sent. Other destination packets received.
  • the network access device establishes multiple network connections with the electronic device, and the obtaining module 510 is configured to receive one target data packet from the multiple identical target data packets through each network connection.
  • Embodiments of the present application further provide an electronic device including a memory and a processor, wherein the processor is configured to execute the steps in the data transmission method applied to the electronic device provided by this embodiment by calling a computer program stored in the memory.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device may include components such as a network interface 610, a memory 620, a processor 630, and the like.
  • components such as a network interface 610, a memory 620, a processor 630, and the like.
  • FIG. 8 does not constitute a limitation on the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components.
  • Network interface 610 may be used to make network connections between devices.
  • Memory 620 may be used to store computer programs and data.
  • the computer program stored in the memory 620 contains executable code.
  • a computer program can be divided into various functional modules.
  • the processor 630 executes various functional applications and data processing by executing computer programs stored in the memory 620 .
  • the processor 630 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the computer program stored in the memory 620 and calling the data stored in the memory 620. various functions and processing data, so as to carry out overall control of electronic equipment.
  • the processor 630 in the electronic device loads executable codes corresponding to one or more computer programs into the memory 620 according to the following instructions, and the processor 630 executes the following steps to execute the following steps: :
  • a priority transmission identifier is added to the data packet to be sent to obtain the target data packet, and the priority transmission identifier includes a random value negotiated in advance between the electronic device and the network access device;
  • the target data packet is transmitted to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier.
  • the processor 630 when the target data packet is transmitted to the network access device, the processor 630 is configured to execute:
  • the target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
  • the electronic device and the network access device establish N network connections, where N is a positive integer greater than or equal to 2, and the target data packet is copied at least once to obtain at least two target data packets.
  • the processor 630 is configured to execute:
  • the processor 630 when adding a priority transmission identifier to the data packet to be sent to obtain the target data packet, the processor 630 is configured to execute:
  • the processor 630 is further configured to execute:
  • the processor 630 is further configured to execute:
  • An embodiment of the present application further provides a network access device, including a memory and a processor, wherein the processor is used to execute the data transmission method applied to the network access device provided by this embodiment by invoking a computer program stored in the memory A step of.
  • FIG. 12 is a schematic structural diagram of a network access device provided by an embodiment of the present application.
  • the network access device may include components such as a network interface 710, a memory 720, a processor 730, and the like.
  • components such as a network interface 710, a memory 720, a processor 730, and the like.
  • FIG. 8 does not constitute a limitation on the network access device, and may include more or less components than the one shown, or combine some components, or different component layout.
  • Network interface 710 may be used to make network connections between devices.
  • Memory 720 may be used to store computer programs and data.
  • the computer program stored in the memory 720 contains executable code.
  • a computer program can be divided into various functional modules.
  • the processor 730 executes various functional applications and data processing by executing computer programs stored in the memory 720 .
  • the processor 730 is the control center of the network access device, uses various interfaces and lines to connect various parts of the entire network access device, runs or executes the computer program stored in the memory 720, and calls the data stored in the memory 720. , perform various functions of the network access device and process data, so as to carry out overall control of the network access device.
  • the processor 730 in the network access device loads executable codes corresponding to one or more computer programs into the memory 720 according to the following instructions, and is executed by the processor 730 to execute follows the steps below:
  • the to-be-sent data packet When the to-be-sent data packet carries the priority-sending identifier, the to-be-sent data packet is preferentially sent;
  • the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
  • the processor 730 when acquiring the target data packet transmitted by the electronic device, the processor 730 is configured to execute:
  • the processor 730 is configured to execute:
  • the first target data packet When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the first preset network transmission protocol, the first target data packet is sent first, and subsequent receptions are discarded to other destination packets.
  • the processor 730 is further configured to execute:
  • the first target data packet When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the second preset network transmission protocol, the first target data packet is preferentially sent, and the subsequent data packets are preferentially sent. Other destination packets received.
  • the network access device establishes multiple network connections with the electronic device, and when receiving multiple identical target data packets from the electronic device, the processor 730 is further configured to execute:
  • One of a plurality of identical target packets is received over each network connection.
  • network access device provided in the embodiments of the present application and the data transmission method applied to the network access device in the above embodiments belong to the same concept, and the specific implementation process is detailed in the above related embodiments, and is not described here. Repeat.
  • the embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, and when the stored computer program is executed on the processor of the electronic device provided by the embodiments of the present application, the processor of the electronic device executes Any of the above steps in a data transmission method applied to an electronic device; or, when the stored computer program is executed on the processor of the network access device provided by the embodiment of the present application, the processor of the network access device is made to execute Any of the above steps are applied to the data transmission method of the network access device.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), and the like.

Abstract

Disclosed are a data transmission method and apparatus, and a medium, an electronic device and a network access device. The method comprises: an electronic device acquiring a data packet to be sent, and when the data packet to be sent is a data packet of a preset application, adding a sending priority identifier to the data packet to be sent, so as to obtain a target data packet; and transmitting the target data packet to a network access device, so that the network access device preferentially sends the target data packet according to the sending priority identifier.

Description

数据传输方法、装置、介质、电子设备及网络接入设备Data transmission method, device, medium, electronic device and network access device
本申请要求于2020年11月13日提交专利局、申请号为202011272675.3、申请名称为“数据传输方法、装置、介质、电子设备及网络接入设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Patent Office on November 13, 2020, the application number is 202011272675.3, and the application name is "data transmission method, device, medium, electronic equipment and network access equipment", the entire content of which is Incorporated herein by reference.
技术领域technical field
本申请涉及通信技术领域,具体涉及一种数据传输方法、装置、介质、电子设备及网络接入设备。The present application relates to the field of communication technologies, and in particular, to a data transmission method, apparatus, medium, electronic device and network access device.
背景技术Background technique
如智能手机、平板电脑等电子设备可以与网络接入设备(比如Wi-Fi路由器)建立网络连接,利用网络接入设备所提供的网络接入服务访问网络(比如互联网,机构内部网络等),从而在线听歌、看视频以及玩游戏等。Electronic devices such as smart phones and tablet computers can establish network connections with network access devices (such as Wi-Fi routers), and use the network access services provided by network access devices to access networks (such as the Internet, intranet, etc.), So you can listen to songs, watch videos and play games online.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种数据传输方法、装置、介质、电子设备及网络接入设备。The present application provides a data transmission method, apparatus, medium, electronic device and network access device.
第一方面,本申请提供一种数据传输方法,应用于电子设备,所述电子设备由网络接入设备提供网络接入服务,所述数据传输方法包括:获取待发送数据包;在所述待发送数据包为预设应用的数据包时,为所述待发送数据包添加优先发送标识得到目标数据包,所述优先发送标识包括所述电子设备与所述网络接入设备预先协商得到的随机值;将所述目标数据包传输至所述网络接入设备,使得所述网络接入设备根据所述优先发送标识优先发送所述目标数据包。In a first aspect, the present application provides a data transmission method, which is applied to an electronic device. The electronic device is provided with a network access service by a network access device. The data transmission method includes: acquiring a data packet to be sent; When the data packet to be sent is a data packet of a preset application, a priority transmission identifier is added to the to-be-sent data packet to obtain a target data packet, and the priority transmission identifier includes a random number obtained through pre-negotiation between the electronic device and the network access device. value; transmit the target data packet to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier.
第二方面,本申请提供一种数据传输方法,应用于网络接入设备,所述网络接入设备为电子设备提供网络接入服务,所述数据传输方法包括:获取所述电子设备传输的目标数据包;在所述目标数据包携带有优先发送标识时,优先发送所述目标数据包;其中,所述优先发送标识包括所述网络接入设备与所述电子设备预先协商得到的随机值。In a second aspect, the present application provides a data transmission method, which is applied to a network access device, where the network access device provides a network access service for an electronic device, and the data transmission method includes: acquiring a destination for transmission by the electronic device data packet; when the target data packet carries a priority sending identifier, the target data packet is sent preferentially; wherein the priority sending identifier includes a random value pre-negotiated by the network access device and the electronic device.
第三方面,本申请提供一种数据处理装置,应用于电子设备,所述电子设备由网络接入设备提供网络接入服务,所述数据处理装置包括:获取模块,用于获取待发送数据包;标识模块,用于在所述待发送数据包为预设应用的数据包时,为所述待发送数据包添加优先发送标识得到目标数据包,所述优先发送标识包括所述电子设备与所述网络接入设备预先协商得到的随机值;传输模块,用于将所述目标数据包传输至所述网络接入设备,使得所述网络接入设备根据所述优先发送标识优先发送所述目标数据包。In a third aspect, the present application provides a data processing apparatus, which is applied to an electronic device, where a network access service is provided by a network access device, and the data processing apparatus includes: an acquisition module configured to acquire a data packet to be sent The identification module is used to add a priority transmission identification for the to-be-sent data packet when the data packet to be sent is the data packet of the preset application to obtain the target data packet, and the preferential transmission identification includes the electronic equipment and the a random value pre-negotiated by the network access device; a transmission module, configured to transmit the target data packet to the network access device, so that the network access device preferentially sends the target according to the priority sending identifier data pack.
第四方面,本申请提供一种数据处理装置,应用于网络接入设备,所述网络接入设备为电子设备提供网络接入服务,所述数据处理装置包括:获取模块,用于获取所述电子设备传输的目标数据包;转发模块,用于在所述待发送数据包携带有优先发送标识时,优先发送所述待发送数据包;其中,所述优先发送标识包括所述网络接入设备与所述电子设备预先协商得到的随机值。In a fourth aspect, the present application provides a data processing apparatus, which is applied to a network access device, the network access device provides network access services for electronic equipment, and the data processing apparatus includes: an acquisition module for acquiring the The target data packet transmitted by the electronic device; the forwarding module is configured to preferentially send the to-be-sent data packet when the to-be-sent data packet carries the priority-sending identifier; wherein the prioritized sending identifier includes the network access device A random value pre-negotiated with the electronic device.
第五方面,本申请提供一种存储介质,其上存储有计算机程序,当所述计算机程序被网络接入设备的处理器加载时执行如本申请提供的应用于网络接入设备的数据传输方法,或者当所述计算机程序被电子设备的处理器加载时执行如本申请提供的应用于电子设备的数据传输方法。In a fifth aspect, the present application provides a storage medium on which a computer program is stored, and when the computer program is loaded by a processor of a network access device, the data transmission method applied to the network access device as provided by the present application is executed. , or when the computer program is loaded by the processor of the electronic device, the data transmission method applied to the electronic device as provided in the present application is executed.
第六方面,本申请提供一种网络接入设备,所述网络接入设备包括处理器和存储器,所述存储器储存有计算机程序,所述处理器通过加载所述计算机程序执行如本申请提供的应用于网络接入设备的数据传输方法。In a sixth aspect, the present application provides a network access device, the network access device includes a processor and a memory, the memory stores a computer program, and the processor executes the method provided by the present application by loading the computer program A data transmission method applied to a network access device.
第七方面,本申请提供一种电子设备,所述电子设备包括处理器和存储器,所述存储器存储有计算机程序,所述处理器通过加载所述计算机程序执行如本申请提供的应用于电子设备的数据传输方法。In a seventh aspect, the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores a computer program, and the processor executes the application to the electronic device as provided by the present application by loading the computer program data transfer method.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请实施例提供的数据传输系统的示意图。FIG. 1 is a schematic diagram of a data transmission system provided by an embodiment of the present application.
图2是本申请实施例提供的数据传输方法的一流程示意图。FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
图3是本申请实施例中电子设备从其它电子设备处获取待发送数据包的示例图。FIG. 3 is an example diagram of an electronic device acquiring to-be-sent data packets from other electronic devices in an embodiment of the present application.
图4是本申请实施例中电子设备为待发送数据包添加优先发送标识得到目标数据包的示意图。4 is a schematic diagram of an electronic device adding a priority transmission identifier to a data packet to be sent to obtain a target data packet in an embodiment of the present application.
图5是本申请实施例中电子设备冗余传输目标数据包的示例图。FIG. 5 is an example diagram of an electronic device redundantly transmitting a target data packet in an embodiment of the present application.
图6是本申请实施例中电子设备为待发送数据包添加优先发送标识的示例图。FIG. 6 is an example diagram of adding a priority sending identifier to a data packet to be sent by an electronic device in an embodiment of the present application.
图7是本申请实施例提供的数据传输方法的另一流程示意图。FIG. 7 is another schematic flowchart of a data transmission method provided by an embodiment of the present application.
图8是本申请实施例提供的数据传输方法又一流程示意图。FIG. 8 is another schematic flowchart of a data transmission method provided by an embodiment of the present application.
图9是本申请实施例提供的数据传输装置的一结构示意图。FIG. 9 is a schematic structural diagram of a data transmission apparatus provided by an embodiment of the present application.
图10是本申请实施例提供的数据传输装置的另一结构示意图。FIG. 10 is another schematic structural diagram of a data transmission apparatus provided by an embodiment of the present application.
图11是本申请实施例提供的电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图12是本申请实施例提供的网络接入设备的结构示意图。FIG. 12 is a schematic structural diagram of a network access device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, wherein the same component symbols represent the same components, and the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.
应当说明的是,本申请以下实施例中所涉及的诸如第一和第二等关系术语仅用于将一个实体或者操作与另一个实体或者操作区分开来,并不用于限定这些实体或操作之间存在着实际的顺序关系。It should be noted that the relational terms such as first and second involved in the following embodiments of this application are only used to distinguish one entity or operation from another entity or operation, and are not used to limit these entities or operations. There is an actual sequential relationship between them.
本申请提供一种数据传输系统,请参照图1,本申请提供的数据传输系统包括电子设备和网络接入设备。应当说明的是,本申请实施例对电子设备和网络接入设备的实体展现形式不做具体限制,比如,电子设备的实体展现形式可以为图1示出的智能手机,网络接入设备的实体展现形式可以为图1示出的路由器。The present application provides a data transmission system. Please refer to FIG. 1 . The data transmission system provided by the present application includes electronic equipment and network access equipment. It should be noted that the embodiments of the present application do not specifically limit the entity presentation forms of the electronic device and the network access device. For example, the entity presentation form of the electronic device may be the smartphone shown in FIG. The presentation form may be the router shown in FIG. 1 .
其中,电子设备和网络接入设备通过二者之间的网络连接进行数据交互,该网络连接可以为有线网络连接(比如,直接通过数据线连接电子设备和网络接入设备,从而建立二者间的有线网络连接),也可以为无线网络连接(包括但不限于蓝牙、红外以及无线保真等无线通信方式),还可以同时建立有线网络连接和无线网络连接。通过二者之间的网络连接,网络接入设备为电子设备提供网络接入服务。比如,电子设备在有待发送数据包时,若该待发送数据包为预设应用的数据包,则为待发送数据包添加优先发送标识得到目标数据包,然后将该目标数据包传输至网络接入设备,进而由网络接入设备根据优先发送标识优先发送该目标数据包,经由网络传输至对端设备,以此确保特定应用的数据传输质量。Wherein, the electronic device and the network access device perform data interaction through a network connection between the two, and the network connection may be a wired network connection (for example, directly connecting the electronic device and the network access device through a data cable, so as to establish a connection between the two It can also be a wireless network connection (including but not limited to wireless communication methods such as Bluetooth, infrared, and wireless fidelity), and a wired network connection and a wireless network connection can be established at the same time. Through the network connection between the two, the network access device provides network access services for the electronic device. For example, when the electronic device has a data packet to be sent, if the to-be-sent data packet is a data packet of a preset application, it will add a priority sending flag to the to-be-sent data packet to obtain the target data packet, and then transmit the target data packet to the network connection. Then, the network access device preferentially sends the target data packet according to the priority sending identifier, and transmits it to the peer device via the network, so as to ensure the data transmission quality of the specific application.
应当说明的是,上述图1示出的仅是实现本申请实施例的一个系统架构实例,本申请实施例并不限于上述图1所示的系统架构。以下以图1示出的系统架构为例,提出本申请的各个实施例。It should be noted that the foregoing FIG. 1 shows only an example of a system architecture for implementing the embodiments of the present application, and the embodiments of the present application are not limited to the system architecture shown in the foregoing FIG. 1 . Various embodiments of the present application are presented below by taking the system architecture shown in FIG. 1 as an example.
请参照图2,图2为本申请实施例提供的数据传输方法的流程示意图。该数据传输方法应用于本申请提供的数据传输系统中的电子设备,如图2所示,本申请实施例提供的数据传输方法的流程可以如下:Please refer to FIG. 2 , which is a schematic flowchart of a data transmission method provided by an embodiment of the present application. The data transmission method is applied to the electronic device in the data transmission system provided by the present application. As shown in FIG. 2 , the process of the data transmission method provided by the embodiment of the present application may be as follows:
在110中,获取待发送数据包。In 110, a data packet to be sent is obtained.
如智能手机、平板电脑等电子设备可以与网络接入设备(比如Wi-Fi路由器)建立网络连接,利用网络接入设备所提供的网络接入服务访问网络(比如互联网,机构内部网络等),从而在线听歌、看视频以及玩游戏等。目前,网络质量越来越受用户重视,比如智能手机在通过Wi-Fi路由器接入互联网玩游戏时,由于智能手机与Wi-Fi路由器之间的Wi-Fi连接易被干扰且面临相同Wi-Fi路由器下其它设备的抢占式竞争,导致如游戏应用等需求低传输延时的应用的数据传输质量无法得到保障。Electronic devices such as smart phones and tablet computers can establish network connections with network access devices (such as Wi-Fi routers), and use the network access services provided by network access devices to access networks (such as the Internet, intranet, etc.), So you can listen to songs, watch videos and play games online. At present, network quality is more and more important to users. For example, when a smartphone is connected to the Internet through a Wi-Fi router to play games, the Wi-Fi connection between the smartphone and the Wi-Fi router is easily disturbed and faces the same Wi-Fi connection. The preemptive competition of other devices under the Fi router makes it impossible to guarantee the data transmission quality of applications that require low transmission delay, such as game applications.
以下将从电子设备的角度对本申请所提供的数据传输方法进行说明。The data transmission method provided by the present application will be described below from the perspective of an electronic device.
其中,网络接入设备为电子设备提供网络接入服务,使得电子设备能够通过网络接入设备访问网络(比如互联网,机构内部网络等),从而通过网络与其他设备进行数据交互。比如,电子设备运行的游戏应用通过与网络另一端的游戏服务器进行数据交互,才使得用户能够正常的在线游玩。The network access device provides a network access service for the electronic device, so that the electronic device can access the network (such as the Internet, an internal network of an institution, etc.) through the network access device, so as to perform data interaction with other devices through the network. For example, a game application running on an electronic device enables a user to play normally online only through data interaction with a game server on the other end of the network.
本申请实施例中,电子设备实时获取待发送数据包,其中,该待发送数据包可以是电子设备本地的应用所产生的,也可以是电子设备为其它电子设备共享网络时,由其它电子设备转发至电子设备的。In this embodiment of the present application, the electronic device acquires the data packet to be sent in real time, wherein the data packet to be sent may be generated by a local application of the electronic device, or may be generated by other electronic devices when the electronic device shares the network with other electronic devices forwarded to electronic devices.
比如,电子设备在运行某游戏应用时,该游戏应用产生了一需要发送至游戏服务器的数据包,电子设备将该数据包作为待发送数据包。For example, when the electronic device runs a game application, the game application generates a data packet that needs to be sent to the game server, and the electronic device regards the data packet as the data packet to be sent.
又比如,请参照图3,电子设备由网络接入设备提供网络接入服务,电子设备向其它电子设备共享网络,在某时刻,其它电子设备运行的某即时通讯应用产生了一需要发送至即时通讯服务器的数据包,相应将该数据包传输至电子设备,此时,电子设备将该数据包作为待发送数据包。For another example, please refer to FIG. 3, an electronic device is provided with a network access service by a network access device, and the electronic device shares the network with other electronic devices. The data packet of the communication server is correspondingly transmitted to the electronic device, and at this time, the electronic device regards the data packet as the data packet to be sent.
当然,本申请普通技术人员可以理解的是,对于电子设备如何获取待发送数据包,还可以为本申请实施例所未列出的其它情况。Of course, those of ordinary skill in the present application can understand that, for how the electronic device acquires the data packet to be sent, other situations not listed in the embodiments of the present application may also be used.
在120中,在待发送数据包为预设应用的数据包时,为待发送数据包添加优先发送标识得到目标数据包,优先发送标识包括电子设备与网络接入设备预先协商得到的随机值。In 120, when the data packet to be sent is a data packet of a preset application, a priority transmission identifier is added to the to-be-sent data packet to obtain the target data packet, and the priority transmission identifier includes a random value pre-negotiated by the electronic device and the network access device.
应当说明的是,本申请实施例中,仅对预设应用的数据传输质量进行保障。It should be noted that, in this embodiment of the present application, only the data transmission quality of the preset application is guaranteed.
其中,预设应用可由电子设备缺省配置,也可由电子设备根据用户输入对应配置。比如,电子设备缺省将游戏应用、直播应用等对数据传输质量要求较高的应用配置为需要保障传输质量的预设应用。The preset application may be configured by default by the electronic device, or may be correspondingly configured by the electronic device according to user input. For example, by default, the electronic device configures applications that require high data transmission quality, such as game applications and live broadcast applications, as default applications that need to ensure transmission quality.
相应的,电子设备在获取到待发送数据包之后,电子设备进一步对该待发送数据包进行解析,以确定该待发送数据包所属的应用,或者说,确定该待发送数据包由哪一应用产生。然后,电子设备进一步识别待发送数据包所属的应用是否为预设应用,若是,则判定需要保障该待发送数据包的传输质量。Correspondingly, after the electronic device obtains the data packet to be sent, the electronic device further parses the data packet to be sent to determine the application to which the data packet to be sent belongs, or, in other words, to determine which application the data packet to be sent belongs to. produce. Then, the electronic device further identifies whether the application to which the data packet to be sent belongs is a preset application, and if so, determines that the transmission quality of the data packet to be sent needs to be guaranteed.
为了实现对预设应用传输质量的保障,本申请实施例中提供有优先发送标识,该优先发送标识被配 置为指示网络接入设备优先发送对应的数据包。此外,为了确保数据传输的稳定性,该优先发送标识为电子设备与网络接入设备预先协商得到的随机值。其中,对于电子设备与网络接入设备之间如何进行优先发送标识的协商,此处不作具体限制,可由本领域普通技术人员根据实际需要进行配置。In order to guarantee the transmission quality of the preset application, a priority sending identifier is provided in the embodiment of the present application, and the priority sending identifier is configured to instruct the network access device to send the corresponding data packet preferentially. In addition, in order to ensure the stability of data transmission, the priority transmission identifier is a random value obtained through pre-negotiation between the electronic device and the network access device. There is no specific limitation on how to perform the negotiation between the electronic device and the network access device to send the identifier preferentially, and can be configured by those of ordinary skill in the art according to actual needs.
比如,电子设备在与网络接入设备建立网络连接时,按照与网络接入设备约定的报文格式,生成协商请求传输至网络接入设备;网络接入设备根据来自电子设备的协商请求,通过配置的随机数生成算法生成一个随机值,将该随机值作为优先发送标识,然后与电子设备预先约定的报文格式,生成携带优先发送标识的协商响应传输至电子设备;电子设备若接受网络接入设备所返回的优先发送标识,则返回确认响应至网络接入设备。至此,电子设备与网络接入设备完成优先发送标识的协商。For example, when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device; The configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
如上,请参照图4,在识别到待发送数据包为预设应用的数据包时,电子设备为该待发送数据包添加优先发送标识,并将添加了优先发送标识的待发送数据包记为目标数据包。其中,对于如何将优先发送标识添加至待发送数据包中,本申请实施例中不作具体限制,可由本领域普通技术人员根据实际需要进行配置,比如,可以将优先发送标识添加至待发送数据包的包头字段,也可以将优先发送标识添加至待发送数据包的包尾字段。As above, please refer to FIG. 4 , when recognizing that the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent, and marks the data packet to be sent to which the priority transmission identifier is added as destination packet. Wherein, how to add the priority sending identifier to the data packet to be sent is not specifically limited in this embodiment of the present application, and can be configured by those of ordinary skill in the art according to actual needs. For example, the priority sending identifier can be added to the data packet to be sent. The header field of the data packet to be sent can also be added to the packet tail field of the data packet to be sent.
在130中,将目标数据包传输至网络接入设备,使得网络接入设备根据优先发送标识优先发送目标数据包。In 130, the target data packet is transmitted to the network access device, so that the network access device preferentially sends the target data packet according to the priority transmission identifier.
本申请实施例中,在为待发送数据包添加优先发送标识而得到目标数据包之后,电子设备即将该目标数据包传输至网络接入设备。In the embodiment of the present application, after adding a priority sending identifier to the data packet to be sent to obtain the target data packet, the electronic device transmits the target data packet to the network access device.
另一方面,网络接入设备在接收到来自电子设备的目标数据包之后,将根据其中携带的优先发送标识判定需要优先发送该目标数据包,从而按照预先配置的优先发送策略优先发送该目标数据包,经由网络将目标数据包传输至对应的对端设备。此处对于优先发送策略的具体配置不作限制,可由本领域普通技术人员根据实际需要进行配置。On the other hand, after receiving the target data packet from the electronic device, the network access device will determine that the target data packet needs to be sent preferentially according to the priority sending identifier carried in it, so as to send the target data preferentially according to the preconfigured priority sending policy packet, and transmit the target data packet to the corresponding peer device via the network. The specific configuration of the priority sending policy is not limited here, and can be configured by those of ordinary skill in the art according to actual needs.
比如,网络接入设备配置有优先发送队列和正常发送队列,网络接入设备被配置为将优先发送队列中的数据包全部发送完成之后,再发送正常发送队列中的数据包。以此,网络接入设备在优先发送目标数据包时,将该目标数据包插入优先发送队列中,若优先发送队列中在目标数据包之前还有其它数据包,则网络接入设备将依次发送完成其它数据包之后,再发送目标数据包;若优先发送队列中在目标数据包之前没有其它数据包,则网络接入设备直接发送目标数据包。For example, the network access device is configured with a priority sending queue and a normal sending queue, and the network access device is configured to send the data packets in the normal sending queue after all the data packets in the priority sending queue are sent. In this way, when the network access device preferentially sends the target data packet, it inserts the target data packet into the priority transmission queue. If there are other data packets before the target data packet in the priority transmission queue, the network access device will send the target data packet in turn. After completing other data packets, the target data packet is sent again; if there is no other data packet before the target data packet in the priority sending queue, the network access device directly sends the target data packet.
由上可知,本申请通过电子设备获取待发送数据包,并在待发送数据包为预设应用的数据包时,为待发送数据包添加优先发送标识得到目标数据包,该优先发送标识包括电子设备与网络接入设备预先协商得到的随机值,最后将目标数据包传输至网络接入设备,使得网络接入设备根据优先发送标识优先发送目标数据包。以此,通过电子设备预先与网络接入设备协商一个随机值作为优先发送标识,并由电子设备为需要保障数据传输质量的预设应用的数据包添加该优先发送标识,使得网络接入设备能够根据优先发送标识的指示,优先发送添加有优先发送标识的数据包,从而达到保障特定应用的数据传输质量的目的。As can be seen from the above, the present application obtains the data packet to be sent through the electronic device, and when the data packet to be sent is the data packet of the preset application, the target data packet is obtained by adding a priority transmission identifier to the data packet to be sent, and the priority transmission identifier includes the electronic device. The random value obtained by the device and the network access device through pre-negotiation, and finally transmits the target data packet to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier. In this way, the electronic device negotiates a random value with the network access device in advance as the priority sending identifier, and the electronic device adds the priority sending identifier to the data packet of the preset application that needs to ensure the data transmission quality, so that the network access device can According to the instruction of the priority sending flag, the data packet with the priority sending flag is sent preferentially, so as to achieve the purpose of ensuring the data transmission quality of a specific application.
可选地,在一实施例中,将目标数据包传输至网络接入设备,包括:Optionally, in an embodiment, transmitting the target data packet to the network access device includes:
对目标数据包复制至少一次,得到至少两个目标数据包,并将至少两个目标数据包传输至网络接入设备。The target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
为确保网络接入设备能够接收到电子设备所传输的目标数据包,本申请实施例中电子设备对目标数据包进行冗余发送。In order to ensure that the network access device can receive the target data packet transmitted by the electronic device, in this embodiment of the present application, the electronic device redundantly sends the target data packet.
其中,电子设备在将目标数据包传输至网络接入设备时,对目标数据包复制至少一次,从而得到至少两个目标数据包,其中包括原始的目标数据包以及至少一个复制的目标数据。Wherein, when transmitting the target data packet to the network access device, the electronic device duplicates the target data packet at least once, thereby obtaining at least two target data packets, including the original target data packet and at least one duplicated target data.
应当说明的是,本申请实施例中对目标数据包的复制次数不作具体限制,可由本领域普通技术人员根据实际需要进行配置。It should be noted that, in this embodiment of the present application, the number of times of copying the target data packet is not specifically limited, and can be configured by those of ordinary skill in the art according to actual needs.
在完成对目标数据包的复制,并得到至少两个目标数据包之后,电子设备将得到的至少两个目标数据包传输至网络接入设备。以此,在发生丢包的情况下,也能最大可能的使得网络接入设备接收到电子设备所传输的目标数据包。After copying the target data packets and obtaining at least two target data packets, the electronic device transmits the obtained at least two target data packets to the network access device. In this way, in the case of packet loss, the network access device can also receive the target data packet transmitted by the electronic device to the greatest extent possible.
可以理解的是,由于电子设备向网络接入设备传输了至少两个目标数据包,此处不考虑网络接入设备接收不到电子设备传输的目标数据包的情况,那么网络接入设备可能接收到电子设备传输的一个目标数据包,也可能接收到电子设备传输的至少两个目标数据包。相应的,网络接入设备可以仅优先发送接收到的一个目标数据包,也可以优先发送接收到的全部目标数据包等,本申请实施例对此不作具体限制,可由本领域普通技术人员根据实际需要进行配置。It can be understood that, since the electronic device transmits at least two target data packets to the network access device, the situation that the network access device cannot receive the target data packets transmitted by the electronic device is not considered here, then the network access device may receive One target data packet transmitted to the electronic device may also receive at least two target data packets transmitted by the electronic device. Correspondingly, the network access device may only preferentially send a received target data packet, or may preferentially send all received target data packets, etc. This embodiment of the present application does not impose specific restrictions on this, and can be determined by those of ordinary skill in the art according to actual conditions. Configuration is required.
可选地,在一实施例中,电子设备与网络接入设备建立有N路网络连接,其中N为大于或等于2的正整数,对目标数据包复制至少一次,得到至少两个目标数据包,并将至少两个目标数据包传输至网 络接入设备,包括:Optionally, in an embodiment, the electronic device and the network access device establish N network connections, where N is a positive integer greater than or equal to 2, and the target data packet is copied at least once to obtain at least two target data packets. , and transmit at least two target data packets to the network access device, including:
(1)对目标数据包复制N-1次,得到N个目标数据包;(1) Copy the target data packet N-1 times to obtain N target data packets;
(2)将N个目标数据包一一分配到N路网络连接以传输至网络接入设备。(2) Allocate the N target data packets to N network connections one by one for transmission to the network access device.
本申请实施例中,为了确保电子设备与网络接入设备之间数据传输质量,电子设备与网络接入设备之间建立有N路网络连接,其中N为大于或等于2的正整数。相应的,电子设备可以通过其与网络接入设备之间建立的多路网络连接将目标数据包传输至网络接入设备。In this embodiment of the present application, in order to ensure the quality of data transmission between the electronic device and the network access device, N network connections are established between the electronic device and the network access device, where N is a positive integer greater than or equal to 2. Correspondingly, the electronic device can transmit the target data packet to the network access device through multiple network connections established between the electronic device and the network access device.
其中,电子设备对目标数据包复制N-1次,从而得到N-1个复制的目标数据包,包括原始的目标数据包在内共N个目标数据包。然后,电子设备将N个目标数据包一一分配到N路网络连接以传输至网络接入设备,也即是将N个目标数据包中的每一目标数据包分别分配到一路网络连接传输至网络接入设备。The electronic device replicates the target data packet N-1 times, thereby obtaining N-1 replicated target data packets, including a total of N target data packets including the original target data packet. Then, the electronic device allocates the N target data packets to the N network connections one by one for transmission to the network access device, that is, each target data packet in the N target data packets is respectively allocated to one network connection for transmission to network access equipment.
比如,请参照图5,电子设备与网络接入设备建立有两路网络连接,分别为基于2.4G频点的第一网络连接和基于5G频点的第二网络连接,相应的,电子设备在对目标数据包进行复制时,对目标数据包复制2-1=1次,得到包括原始的目标数据包在内的共两个目标数据包,然后将其中一个目标数据包分配到第一网络连接传输至网络接入设备,将另一个目标数据包分配到第二网络连接传输至网络接入设备。For example, referring to FIG. 5 , two network connections are established between the electronic device and the network access device, which are the first network connection based on the 2.4G frequency point and the second network connection based on the 5G frequency point. When copying the target data packet, copy the target data packet 2-1=1 times to obtain a total of two target data packets including the original target data packet, and then assign one of the target data packets to the first network connection It is transmitted to the network access device, and another target data packet is allocated to the second network connection for transmission to the network access device.
可选地,在一实施例中,为待发送数据包添加优先发送标识得到目标数据包,包括:Optionally, in an embodiment, adding a priority transmission identifier to the data packet to be sent to obtain the target data packet, including:
在待发送数据包的服务类型字段写入优先发送标识,并将写入优先发送标识的待发送数据包设为目标数据包。Write a priority sending flag in the service type field of the data packet to be sent, and set the data packet to be sent in which the priority sending flag is written as the target data packet.
本申请实施例提供一可选的为待发送数据包添加优先发送标识的实施方式。This embodiment of the present application provides an optional implementation manner of adding a priority sending identifier to a data packet to be sent.
应当说明的是,一个数据包大体可以划分为3部分,分别为包头、包身以及包尾,其中包身用于填充实际需要传输的数据,包头和包尾用以填充一些辅助传输的相关数据,比如,包头包括源IP地址字段和目的IP地址字段,其中,目的IP地址字段用于填充目的IP地址,目的IP地址用于表征个数据包是要发给谁的,源IP地址字段用于填充源IP地址,源IP地址用于这个数据包是发自哪里。It should be noted that a data packet can be roughly divided into three parts, namely the packet header, the packet body and the packet tail. The packet body is used to fill in the data that actually needs to be transmitted, and the packet header and the packet tail are used to fill some auxiliary transmission related data. , for example, the packet header includes a source IP address field and a destination IP address field, where the destination IP address field is used to fill in the destination IP address, the destination IP address is used to indicate to whom the data packet is to be sent, and the source IP address field is used to Fill in the source IP address, the source IP address is used for where this packet is sent from.
此外,为了确保数据包的传输质量,包头还包括服务类型字段,服务类型字段共8比特,包括3比特的优先权子字段(取值可以从000-111所有值),4比特的服务类型子字段和1比特必须置0的保留位。In addition, in order to ensure the transmission quality of the data packet, the packet header also includes a service type field. The service type field has a total of 8 bits, including a 3-bit priority subfield (the value can be all values from 000-111), and a 4-bit service type subfield. Field and 1 bit must be set to 0 reserved bits.
其中3比特的8个优先级的定义如下:The 8 priorities of 3 bits are defined as follows:
111-网络控制;111 - Network Control;
110-网间控制;110-internet control;
101-关键;101 - key;
100-疾速;100 - fast;
011-闪速;011-flash;
010-快速;010-fast;
001-优先;001-priority;
000-普通。000 - Normal.
其中,优先级“111”和“110”一般保留给网络控制数据(如路由数据)使用。优先级“101”推荐给语音数据使用,优先级“100”推荐给视频会议和视频流使用,优先级“011”推荐给语音控制数据使用,优先级“010”和“001”给数据业务使用,优先级“000”为默认标记值。Among them, the priorities "111" and "110" are generally reserved for network control data (such as routing data). The priority "101" is recommended for voice data, the priority "100" is recommended for video conference and video streaming, the priority "011" is recommended for voice control data, and the priorities "010" and "001" are for data services , the priority "000" is the default tag value.
但是,虽然存在对优先权子字段的如上定义,但是本技术领域已经废弃该优先权子字段,通常在优先权子字段默认填充“000”。因此,本申请实施例中可直接复用服务类型字段中的优先权子字段用于填充优先发送标识。However, although the above definition of the priority subfield exists, the priority subfield has been abandoned in the technical field, and the priority subfield is usually filled with "000" by default. Therefore, in this embodiment of the present application, the priority subfield in the service type field can be directly reused to fill in the priority transmission identifier.
相应的,请参照图6在为待发送数据包添加优先发送标识时,电子设备可以将优先发送标识写入待发送数据包的服务类型字段中的优先权子字段。以此为约束,电子设备与网络接入设备协商的用于作为优先发送标识的随机值的数据长度至多为3比特。Correspondingly, referring to FIG. 6 , when adding a priority sending identifier to a data packet to be sent, the electronic device may write the priority sending identifier into the priority subfield in the service type field of the data packet to be sent. Taking this as a constraint, the data length of the random value negotiated between the electronic device and the network access device and used as the priority transmission identifier is at most 3 bits.
可选地,在一实施例中,将目标数据包传输至网络接入设备之后,还包括:Optionally, in an embodiment, after transmitting the target data packet to the network access device, the method further includes:
接收网络接入设备优先发送的对应目标数据包的响应数据包。Receive the response data packet corresponding to the target data packet preferentially sent by the network access device.
本申请实施例中,网络接入设备除了将来自电子设备的目标数据包优先发出之外,还将目标数据包的对端设备返回的响应数据包优先转发至电子设备。In the embodiment of the present application, in addition to preferentially sending the target data packet from the electronic device, the network access device also preferentially forwards the response data packet returned by the opposite end device of the target data packet to the electronic device.
其中,网络接入设备在接收到来自电子设备的目标数据包之后,除了优先发送该目标数据包之后,还记录该目标数据包的五元组数据,包括源IP地址、源端口、目的IP地址、目的端口、和传输层协议。Wherein, after receiving the target data packet from the electronic device, in addition to sending the target data packet preferentially, the network access device also records the quintuple data of the target data packet, including the source IP address, source port, and destination IP address. , destination port, and transport layer protocol.
之后,若接收到的数据包与记录的目标数据包的五元组数据匹配,则将该数据包作为目标数据包的响应数据包,并优先发送至电子设备。After that, if the received data packet matches the recorded quintuple data of the target data packet, the data packet is regarded as a response data packet of the target data packet and sent to the electronic device preferentially.
比如,记录的目标数据包的五元组数据为:“192.168.1.1,10000,TCP,121.14.88.76,80”就构成了一个五元组,其中,192.168.1.1为目标数据包的源IP地址,10000为目标数据包的源端口,TCP为目标数据包的传输层协议,121.14.88.76为目标数据包的目的IP地址(指示了该目标数据包的对端设备),80为目标数据包的目的端口。若接收到一数据包的五元组数据为“121.14.88.76,80,TCP,192.168.1.1,10000”,其中,121.14.88.76为该数据包的源IP地址,80为该数据包的源端口,TCP为该数据包的传输层协议,192.168.1.1为该数据包的目的IP地址,10000为该数据包的目的端口。显然的,该数据包的五元组数据与目标数据包的五元组数据匹配,网络接入设备将将该数据包作为目标数据包的响应数据包优先发送至电子设备。For example, the quintuple data of the recorded target data packet is: "192.168.1.1, 10000, TCP, 121.14.88.76, 80" constitutes a quintuple, in which 192.168.1.1 is the source IP address of the target data packet , 10000 is the source port of the target data packet, TCP is the transport layer protocol of the target data packet, 121.14.88.76 is the destination IP address of the target data packet (indicating the peer device of the target data packet), 80 is the target data packet destination port. If the quintuple data of a data packet is "121.14.88.76, 80, TCP, 192.168.1.1, 10000", 121.14.88.76 is the source IP address of the data packet, and 80 is the source port of the data packet , TCP is the transport layer protocol of the data packet, 192.168.1.1 is the destination IP address of the data packet, and 10000 is the destination port of the data packet. Obviously, the quintuple data of the data packet matches the quintuple data of the target data packet, and the network access device preferentially sends the data packet to the electronic device as a response data packet of the target data packet.
另一方面,电子设备将接收网络接入设备优先发送的对应目标数据包的响应数据包。On the other hand, the electronic device will receive the response data packet corresponding to the target data packet preferentially sent by the network access device.
可选地,在一实施例中,还包括:Optionally, in an embodiment, it also includes:
在电子设备断开与网络接入设备之间的网络连接并再次建立网络连接时,与网络接入设备协商新的随机值作为优先发送标识。When the electronic device disconnects the network connection with the network access device and establishes the network connection again, a new random value is negotiated with the network access device as the priority sending identifier.
本申请实施例中,为防止可能的网络攻击,电子设备与网络接入设备在每次建立网络连接,均进行优先发送标识的协商。In this embodiment of the present application, in order to prevent possible network attacks, each time the electronic device and the network access device establish a network connection, they negotiate to send an identifier preferentially.
其中,电子设备在断开与网络接入设备之间的网络连接并再次建立网络连接时,与网络接入设备协商新的的随机值作为优先发送标识,具体可参照以上实施例中相关描述,此处不再赘述。Wherein, when the electronic device disconnects the network connection with the network access device and establishes the network connection again, it negotiates a new random value with the network access device as the priority sending identifier. For details, refer to the relevant description in the above embodiment, It will not be repeated here.
请参照图7,图7为本申请提供的数据传输方法的另一流程示意图。该数据传输方法应用于本申请提供的数据传输系统中的网络接入设备,如图7所示,该数据传输方法的流程可以如下:Please refer to FIG. 7 , which is another schematic flowchart of the data transmission method provided by the present application. The data transmission method is applied to the network access device in the data transmission system provided by the present application. As shown in FIG. 7 , the flow of the data transmission method may be as follows:
在210中,获取电子设备传输的目标数据包。In 210, a target data packet transmitted by the electronic device is obtained.
以下将从网络接入设备的角度对本申请所提供的数据传输方法进行说明。The data transmission method provided by the present application will be described below from the perspective of a network access device.
其中,网络接入设备为电子设备提供网络接入服务,使得电子设备能够通过网络接入设备访问网络(比如互联网,机构内部网络等),从而通过网络与其他设备进行数据交互。比如,电子设备运行的游戏应用通过与网络另一端的游戏服务器进行数据交互,才使得用户能够正常的在线游玩。The network access device provides a network access service for the electronic device, so that the electronic device can access the network (such as the Internet, an internal network of an institution, etc.) through the network access device, so as to perform data interaction with other devices through the network. For example, a game application running on an electronic device enables a user to play normally online only through data interaction with a game server on the other end of the network.
本申请实施例中,电子设备实时获取待发送数据包,其中,该待发送数据包可以是电子设备本地的应用所产生的,也可以是电子设备为其它电子设备共享网络时,由其它电子设备转发至电子设备的。In this embodiment of the present application, the electronic device acquires the data packet to be sent in real time, wherein the data packet to be sent may be generated by a local application of the electronic device, or may be generated by other electronic devices when the electronic device shares the network with other electronic devices forwarded to electronic devices.
比如,电子设备在运行某游戏应用时,该游戏应用产生了一需要发送至游戏服务器的数据包,电子设备将该数据包作为待发送数据包。For example, when the electronic device runs a game application, the game application generates a data packet that needs to be sent to the game server, and the electronic device regards the data packet as the data packet to be sent.
又比如,请参照图3,电子设备由网络接入设备提供网络接入服务,电子设备向其它电子设备共享网络,在某时刻,其它电子设备运行的某即时通讯应用产生了一需要发送至即时通讯服务器的数据包,相应将该数据包传输至电子设备,此时,电子设备将该数据包作为待发送数据包。For another example, please refer to FIG. 3, an electronic device is provided with a network access service by a network access device, and the electronic device shares the network with other electronic devices. The data packet of the communication server is correspondingly transmitted to the electronic device, and at this time, the electronic device regards the data packet as the data packet to be sent.
当然,本申请普通技术人员可以理解的是,对于电子设备如何获取待发送数据包,还可以为本申请实施例所未列出的其它情况。Of course, those of ordinary skill in the present application can understand that, for how the electronic device acquires the data packet to be sent, other situations not listed in the embodiments of the present application may also be used.
应当说明的是,本申请实施例中,仅对预设应用的数据传输质量进行保障。It should be noted that, in this embodiment of the present application, only the data transmission quality of the preset application is guaranteed.
其中,预设应用可由电子设备缺省配置,也可由电子设备根据用户输入对应配置。比如,电子设备缺省将游戏应用、直播应用等对数据传输质量要求较高的应用配置为需要保障传输质量的预设应用。The preset application may be configured by default by the electronic device, or may be correspondingly configured by the electronic device according to user input. For example, by default, the electronic device configures applications that require high data transmission quality, such as game applications and live broadcast applications, as default applications that need to ensure transmission quality.
相应的,电子设备在获取到待发送数据包之后,电子设备进一步对该待发送数据包进行解析,以确定该待发送数据包所属的应用,或者说,确定该待发送数据包由哪一应用产生。然后,电子设备进一步识别待发送数据包所属的应用是否为预设应用,若是,则判定需要保障该待发送数据包的传输质量。Correspondingly, after the electronic device obtains the data packet to be sent, the electronic device further parses the data packet to be sent to determine the application to which the data packet to be sent belongs, or, in other words, to determine which application the data packet to be sent belongs to. produce. Then, the electronic device further identifies whether the application to which the data packet to be sent belongs is a preset application, and if so, determines that the transmission quality of the data packet to be sent needs to be guaranteed.
为了实现对预设应用传输质量的保障,本申请实施例中提供有优先发送标识,该优先发送标识被配置为指示网络接入设备优先发送对应的数据包。此外,为了确保数据传输的稳定性,该优先发送标识为电子设备与网络接入设备预先协商得到的随机值。其中,对于电子设备与网络接入设备之间如何进行优先发送标识的协商,此处不作具体限制,可由本领域普通技术人员根据实际需要进行配置。In order to guarantee the transmission quality of the preset application, a priority sending identifier is provided in the embodiment of the present application, and the priority sending identifier is configured to instruct the network access device to send the corresponding data packet preferentially. In addition, in order to ensure the stability of data transmission, the priority transmission identifier is a random value obtained through pre-negotiation between the electronic device and the network access device. There is no specific limitation on how to perform the negotiation between the electronic device and the network access device to send the identifier preferentially, and can be configured by those of ordinary skill in the art according to actual needs.
比如,电子设备在与网络接入设备建立网络连接时,按照与网络接入设备约定的报文格式,生成协商请求传输至网络接入设备;网络接入设备根据来自电子设备的协商请求,通过配置的随机数生成算法生成一个随机值,将该随机值作为优先发送标识,然后与电子设备预先约定的报文格式,生成携带优先发送标识的协商响应传输至电子设备;电子设备若接受网络接入设备所返回的优先发送标识,则返回确认响应至网络接入设备。至此,电子设备与网络接入设备完成优先发送标识的协商。For example, when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device; The configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
如上,请参照图4,在识别到待发送数据包为预设应用的数据包时,电子设备为该待发送数据包添加优先发送标识,并将添加了优先发送标识的待发送数据包记为目标数据包。其中,对于如何将优先发送标识添加至待发送数据包中,本申请实施例中不作具体限制,可由本领域普通技术人员根据实际需要进行配置,比如,可以将优先发送标识添加至待发送数据包的包头字段,也可以将优先发送标识添加至 待发送数据包的包尾字段。As above, please refer to FIG. 4 , when recognizing that the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent, and marks the data packet to be sent to which the priority transmission identifier is added as destination packet. Wherein, how to add the priority sending identifier to the data packet to be sent is not specifically limited in this embodiment of the present application, and can be configured by those of ordinary skill in the art according to actual needs. For example, the priority sending identifier can be added to the data packet to be sent. The header field of the data packet to be sent can also be added to the packet tail field of the data packet to be sent.
本申请实施例中,在为待发送数据包添加优先发送标识而得到目标数据包之后,电子设备即将该目标数据包传输至网络接入设备。In the embodiment of the present application, after adding a priority sending identifier to the data packet to be sent to obtain the target data packet, the electronic device transmits the target data packet to the network access device.
相应的,网络接入设备将接收到电子设备传输的目标数据包。Correspondingly, the network access device will receive the target data packet transmitted by the electronic device.
在220中,在目标数据包携带有优先发送标识时,优先发送目标数据包,其中,优先发送标识包括网络接入设备与电子设备预先协商得到的随机值。In 220, when the target data packet carries a priority sending identifier, the target data packet is sent preferentially, wherein the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
如上,电子设备传输至网络接入设备的目标数据包添加有优先发送标识,此时网络接入设备将识别到目标数据包携带有优先发送标识,相应根据该优先发送标识的指示,判定需要优先发送该目标数据包,从而按照预先配置的优先发送策略优先发送该目标数据包,经由网络将目标数据包传输至对应的对端设备。此处对于优先发送策略的具体配置不作限制,可由本领域普通技术人员根据实际需要进行配置。As above, the target data packet transmitted by the electronic device to the network access device is added with a priority sending identifier. At this time, the network access device will recognize that the target data packet carries the priority sending identifier, and accordingly, according to the indication of the priority sending identifier, it is determined that priority is required. The target data packet is sent, so that the target data packet is preferentially sent according to the preconfigured priority sending policy, and the target data packet is transmitted to the corresponding peer device via the network. The specific configuration of the priority sending policy is not limited here, and can be configured by those of ordinary skill in the art according to actual needs.
比如,网络接入设备配置有优先发送队列和正常发送队列,网络接入设备被配置为将优先发送队列中的数据包全部发送完成之后,再发送正常发送队列中的数据包。以此,网络接入设备在优先发送目标数据包时,将该目标数据包插入优先发送队列中,若优先发送队列中在目标数据包之前还有其它数据包,则网络接入设备将依次发送完成其它数据包之后,再发送目标数据包;若优先发送队列中在目标数据包之前没有其它数据包,则网络接入设备直接发送目标数据包。For example, the network access device is configured with a priority sending queue and a normal sending queue, and the network access device is configured to send the data packets in the normal sending queue after all the data packets in the priority sending queue are sent. In this way, when the network access device preferentially sends the target data packet, it inserts the target data packet into the priority transmission queue. If there are other data packets before the target data packet in the priority transmission queue, the network access device will send the target data packet in turn. After completing other data packets, the target data packet is sent again; if there is no other data packet before the target data packet in the priority sending queue, the network access device directly sends the target data packet.
可选地,在一实施例中,获取电子设备传输的目标数据包,包括:Optionally, in an embodiment, acquiring the target data packet transmitted by the electronic device includes:
接收来自电子设备的多个相同目标数据包;Receive multiple identical target data packets from electronic devices;
优先发送目标数据包,包括:Send destination packets with priority, including:
在接收到来自电子设备的第一个目标数据包时,若第一个目标数据包需求的网络传输协议为第一预设网络传输协议,则优先发送第一个目标数据包,并丢弃后续接收到的其它目标数据包。When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the first preset network transmission protocol, the first target data packet is sent first, and subsequent receptions are discarded to other destination packets.
为确保网络接入设备能够接收到电子设备所传输的目标数据包,本申请实施例中电子设备对目标数据包进行冗余发送。In order to ensure that the network access device can receive the target data packet transmitted by the electronic device, in this embodiment of the present application, the electronic device redundantly sends the target data packet.
其中,电子设备在将目标数据包传输至网络接入设备时,对目标数据包复制至少一次,从而得到至少两个目标数据包,其中包括原始的目标数据包以及至少一个复制的目标数据。Wherein, when transmitting the target data packet to the network access device, the electronic device duplicates the target data packet at least once, thereby obtaining at least two target data packets, including the original target data packet and at least one duplicated target data.
应当说明的是,本申请实施例中对目标数据包的复制次数不作具体限制,可由本领域普通技术人员根据实际需要进行配置。It should be noted that, in this embodiment of the present application, the number of times of copying the target data packet is not specifically limited, and can be configured by those of ordinary skill in the art according to actual needs.
在完成对目标数据包的复制,并得到至少两个目标数据包之后,电子设备将得到的至少两个目标数据包传输至网络接入设备。以此,在发生丢包的情况下,也能最大可能的使得网络接入设备接收到电子设备所传输的目标数据包。After copying the target data packets and obtaining at least two target data packets, the electronic device transmits the obtained at least two target data packets to the network access device. In this way, in the case of packet loss, the network access device can also receive the target data packet transmitted by the electronic device to the greatest extent possible.
可以理解的是,由于电子设备向网络接入设备传输了至少两个目标数据包,此处不考虑网络接入设备接收不到电子设备传输的目标数据包的情况,那么网络接入设备可能接收到电子设备传输的一个目标数据包,也可能接收到电子设备传输的至少两个目标数据包。It can be understood that, since the electronic device transmits at least two target data packets to the network access device, the situation that the network access device cannot receive the target data packets transmitted by the electronic device is not considered here, then the network access device may receive One target data packet transmitted to the electronic device may also receive at least two target data packets transmitted by the electronic device.
其中,网络接入设备在接收到来自电子设备的第一个目标数据包时,识别该第一个目标数据包需求的传输层网络传输协议,若第一个目标数据包需求的网络传输协议为第一预设网络传输协议,则优先发送第一个目标数据包,并丢弃后续接收到的其它目标数据包。其中,第一预设网络传输协议可以为任何不具备数据包去重功能的网络传输协议,具体可由本领域普通技术人员根据实际需要进行配置。Wherein, when receiving the first target data packet from the electronic device, the network access device identifies the transport layer network transmission protocol required by the first target data packet, if the network transmission protocol required by the first target data packet is In the first preset network transmission protocol, the first target data packet is preferentially sent, and other target data packets received subsequently are discarded. The first preset network transmission protocol may be any network transmission protocol that does not have the function of data packet deduplication, and can be specifically configured by those of ordinary skill in the art according to actual needs.
可选地,在一实施例中,优先发送目标数据包,还包括:Optionally, in an embodiment, preferentially sending the target data packet further includes:
在接收到来自电子设备的第一个目标数据包时,若第一个目标数据包需求的网络传输协议为第二预设网络传输协议,则优先发送第一个目标数据包,以及优先发送后续接收到的其它目标数据包。When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the second preset network transmission protocol, the first target data packet is preferentially sent, and the subsequent data packets are preferentially sent. Other destination packets received.
本申请实施例中,若网络接入设备识别到其接收的第一个目标数据包需求的网络传输协议为第二预设网络传输协议,则优先发送第一个目标数据包,以及优先发送后续接收到的其它目标数据包。其中,第二预设网络传输协议可以为任何不具备数据包去重功能的网络传输协议,具体可由本领域普通技术人员根据实际需要进行配置。In this embodiment of the present application, if the network access device recognizes that the network transmission protocol required by the first target data packet it receives is the second preset network transmission protocol, it preferentially sends the first target data packet, and preferentially sends the subsequent target data packets. Other destination packets received. Wherein, the second preset network transmission protocol may be any network transmission protocol that does not have the function of data packet deduplication, and can be specifically configured by those of ordinary skill in the art according to actual needs.
可选地,在一实施例中,网络接入设备与电子设备建立有多路网络连接,接收来自电子设备的多个相同目标数据包,包括:Optionally, in an embodiment, the network access device establishes multiple network connections with the electronic device, and receives multiple identical target data packets from the electronic device, including:
通过每一网络连接接收多个相同目标数据包中的一个目标数据包。One of a plurality of identical target packets is received over each network connection.
本申请实施例中,为了确保电子设备与网络接入设备之间数据传输质量,电子设备与网络接入设备之间建立有N路网络连接,其中N为大于或等于2的正整数。相应的,电子设备可以通过其与网络接入设备之间建立的多路网络连接将目标数据包传输至网络接入设备。In this embodiment of the present application, in order to ensure the quality of data transmission between the electronic device and the network access device, N network connections are established between the electronic device and the network access device, where N is a positive integer greater than or equal to 2. Correspondingly, the electronic device can transmit the target data packet to the network access device through multiple network connections established between the electronic device and the network access device.
其中,电子设备对目标数据包复制N-1次,从而得到N-1个复制的目标数据包,包括原始的目标数据包在内共N个目标数据包。然后,电子设备将N个目标数据包一一分配到N路网络连接以传输至网络接入设备,也即是将N个目标数据包中的每一目标数据包分别分配到一路网络连接传输至网络接 入设备。The electronic device replicates the target data packet N-1 times, thereby obtaining N-1 replicated target data packets, including a total of N target data packets including the original target data packet. Then, the electronic device allocates the N target data packets to the N network connections one by one for transmission to the network access device, that is, each target data packet in the N target data packets is respectively allocated to one network connection for transmission to network access equipment.
比如,请参照图5,电子设备与网络接入设备建立有两路网络连接,分别为基于2.4G频点的第一网络连接和基于5G频点的第二网络连接,相应的,电子设备在对目标数据包进行复制时,对目标数据包复制2-1=1次,得到包括原始的目标数据包在内的共两个目标数据包,然后将其中一个目标数据包分配到第一网络连接传输至网络接入设备,将另一个目标数据包分配到第二网络连接传输至网络接入设备。For example, referring to FIG. 5 , two network connections are established between the electronic device and the network access device, which are the first network connection based on the 2.4G frequency point and the second network connection based on the 5G frequency point. When copying the target data packet, copy the target data packet 2-1=1 times to obtain a total of two target data packets including the original target data packet, and then assign one of the target data packets to the first network connection It is transmitted to the network access device, and another target data packet is allocated to the second network connection for transmission to the network access device.
如上,网络接入设备将通过其与电子设备之间的每一网络连接接收多个相同目标数据包中的一个目标数据包。As above, the network access device will receive one target data packet of a plurality of identical target data packets through each network connection between it and the electronic device.
请参照图8,图8为本申请提供的数据传输方法的又一流程示意图,如图8所示,该数据传输方法的流程可以如下:Please refer to FIG. 8. FIG. 8 is another schematic flowchart of the data transmission method provided by the present application. As shown in FIG. 8, the process of the data transmission method may be as follows:
在310中,电子设备与网络接入设备建立网络连接时,协商得到一随机值作为优先发送标识。In 310, when the electronic device establishes a network connection with the network access device, a random value is obtained through negotiation as a priority sending identifier.
其中,电子设备可以在首次与网络接入设备建立网络连接,也可以是再次与网络接入设备建立连接时,与网络接入设备进行优先发送标识的协商。The electronic device may negotiate with the network access device to send the identifier preferentially when establishing a network connection with the network access device for the first time, or when establishing a connection with the network access device again.
其中,对于电子设备与网络接入设备之间如何进行优先发送标识的协商,此处不作具体限制,可由本领域普通技术人员根据实际需要进行配置。There is no specific limitation on how to perform the negotiation between the electronic device and the network access device to send the identifier preferentially, and can be configured by those of ordinary skill in the art according to actual needs.
比如,电子设备在与网络接入设备建立网络连接时,按照与网络接入设备约定的报文格式,生成协商请求传输至网络接入设备;网络接入设备根据来自电子设备的协商请求,通过配置的随机数生成算法生成一个随机值,将该随机值作为优先发送标识,然后与电子设备预先约定的报文格式,生成携带优先发送标识的协商响应传输至电子设备;电子设备若接受网络接入设备所返回的优先发送标识,则返回确认响应至网络接入设备。至此,电子设备与网络接入设备完成优先发送标识的协商。For example, when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device; The configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
在320中,电子设备获取待发送数据包。In 320, the electronic device obtains the data packet to be sent.
本申请实施例中,电子设备实时获取待发送数据包,其中,该待发送数据包可以是电子设备本地的应用所产生的,也可以是电子设备为其它电子设备共享网络时,由其它电子设备转发至电子设备的。In this embodiment of the present application, the electronic device acquires the data packet to be sent in real time, wherein the data packet to be sent may be generated by a local application of the electronic device, or may be generated by other electronic devices when the electronic device shares the network with other electronic devices forwarded to electronic devices.
比如,电子设备在运行某游戏应用时,该游戏应用产生了一需要发送至游戏服务器的数据包,电子设备将该数据包作为待发送数据包。For example, when the electronic device runs a game application, the game application generates a data packet that needs to be sent to the game server, and the electronic device regards the data packet as the data packet to be sent.
又比如,请参照图3,电子设备由网络接入设备提供网络接入服务,电子设备向其它电子设备共享网络,在某时刻,其它电子设备运行的某即时通讯应用产生了一需要发送至即时通讯服务器的数据包,相应将该数据包传输至电子设备,此时,电子设备将该数据包作为待发送数据包。For another example, please refer to FIG. 3, an electronic device is provided with a network access service by a network access device, and the electronic device shares the network with other electronic devices. The data packet of the communication server is correspondingly transmitted to the electronic device, and at this time, the electronic device regards the data packet as the data packet to be sent.
当然,本申请普通技术人员可以理解的是,对于电子设备如何获取待发送数据包,还可以为本申请实施例所未列出的其它情况。Of course, those of ordinary skill in the present application can understand that, for how the electronic device acquires the data packet to be sent, other situations not listed in the embodiments of the present application may also be used.
在330中,在待发送数据包为预设应用的数据包时,电子设备为待发送数据包添加优先发送标识得到目标数据包。In 330, when the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent to obtain the target data packet.
应当说明的是,本申请实施例中,仅对预设应用的数据传输质量进行保障。It should be noted that, in this embodiment of the present application, only the data transmission quality of the preset application is guaranteed.
其中,预设应用可由电子设备缺省配置,也可由电子设备根据用户输入对应配置。比如,电子设备缺省将游戏应用、直播应用等对数据传输质量要求较高的应用配置为需要保障传输质量的预设应用。The preset application may be configured by default by the electronic device, or may be correspondingly configured by the electronic device according to user input. For example, by default, the electronic device configures applications that require high data transmission quality, such as game applications and live broadcast applications, as default applications that need to ensure transmission quality.
相应的,电子设备在获取到待发送数据包之后,电子设备进一步对该待发送数据包进行解析,以确定该待发送数据包所属的应用,或者说,确定该待发送数据包由哪一应用产生。然后,电子设备进一步识别待发送数据包所属的应用是否为预设应用,若是,则判定需要保障该待发送数据包的传输质量。Correspondingly, after the electronic device obtains the data packet to be sent, the electronic device further parses the data packet to be sent to determine the application to which the data packet to be sent belongs, or, in other words, to determine which application the data packet to be sent belongs to. produce. Then, the electronic device further identifies whether the application to which the data packet to be sent belongs is a preset application, and if so, determines that the transmission quality of the data packet to be sent needs to be guaranteed.
为了实现对预设应用传输质量的保障,本申请实施例中提供有优先发送标识,该优先发送标识被配置为指示网络接入设备优先发送对应的数据包。此外,为了确保数据传输的稳定性,该优先发送标识为电子设备与网络接入设备预先协商得到的随机值。其中,对于电子设备与网络接入设备之间如何进行优先发送标识的协商,此处不作具体限制,可由本领域普通技术人员根据实际需要进行配置。In order to guarantee the transmission quality of the preset application, a priority sending identifier is provided in the embodiment of the present application, and the priority sending identifier is configured to instruct the network access device to send the corresponding data packet preferentially. In addition, in order to ensure the stability of data transmission, the priority transmission identifier is a random value obtained through pre-negotiation between the electronic device and the network access device. There is no specific limitation on how to perform the negotiation between the electronic device and the network access device to send the identifier preferentially, and can be configured by those of ordinary skill in the art according to actual needs.
比如,电子设备在与网络接入设备建立网络连接时,按照与网络接入设备约定的报文格式,生成协商请求传输至网络接入设备;网络接入设备根据来自电子设备的协商请求,通过配置的随机数生成算法生成一个随机值,将该随机值作为优先发送标识,然后与电子设备预先约定的报文格式,生成携带优先发送标识的协商响应传输至电子设备;电子设备若接受网络接入设备所返回的优先发送标识,则返回确认响应至网络接入设备。至此,电子设备与网络接入设备完成优先发送标识的协商。For example, when the electronic device establishes a network connection with the network access device, it generates a negotiation request according to the message format agreed with the network access device and transmits it to the network access device; The configured random number generation algorithm generates a random value, takes the random value as the priority sending identifier, and then generates a negotiation response carrying the priority sending identifier in the message format pre-agreed with the electronic device and transmits it to the electronic device; if the electronic device accepts the network connection If the priority sending identifier returned by the incoming device is returned, a confirmation response is returned to the network access device. So far, the electronic device and the network access device have completed the negotiation of the priority sending identifier.
如上,请参照图4,在识别到待发送数据包为预设应用的数据包时,电子设备为该待发送数据包添加优先发送标识,并将添加了优先发送标识的待发送数据包记为目标数据包。其中,对于如何将优先发送标识添加至待发送数据包中,本申请实施例中不作具体限制,可由本领域普通技术人员根据实际需要进行配置,比如,可以将优先发送标识添加至待发送数据包的包头字段,也可以将优先发送标识添加至 待发送数据包的包尾字段。As above, please refer to FIG. 4 , when recognizing that the data packet to be sent is a data packet of a preset application, the electronic device adds a priority transmission identifier to the data packet to be sent, and marks the data packet to be sent to which the priority transmission identifier is added as destination packet. Wherein, how to add the priority sending identifier to the data packet to be sent is not specifically limited in this embodiment of the present application, and can be configured by those of ordinary skill in the art according to actual needs. For example, the priority sending identifier can be added to the data packet to be sent. The header field of the data packet to be sent can also be added to the packet tail field of the data packet to be sent.
在340中,电子设备将目标数据包传输至网络接入设备。At 340, the electronic device transmits the target data packet to the network access device.
本申请实施例中,在为待发送数据包添加优先发送标识而得到目标数据包之后,电子设备即将该目标数据包传输至网络接入设备。In the embodiment of the present application, after adding a priority sending identifier to the data packet to be sent to obtain the target data packet, the electronic device transmits the target data packet to the network access device.
在350中,网络接入设备根据优先发送标识优先发送目标数据包。In 350, the network access device preferentially transmits the target data packet according to the preferential transmission identifier.
网络接入设备在接收到来自电子设备的目标数据包之后,将根据其中携带的优先发送标识判定需要优先发送该目标数据包,从而按照预先配置的优先发送策略优先发送该目标数据包,经由网络将目标数据包传输至对应的对端设备。此处对于优先发送策略的具体配置不作限制,可由本领域普通技术人员根据实际需要进行配置。After receiving the target data packet from the electronic device, the network access device will determine that the target data packet needs to be sent preferentially according to the priority transmission identifier carried in it, so as to preferentially send the target data packet according to the pre-configured priority transmission policy, via the network. Transmit the target data packet to the corresponding peer device. The specific configuration of the priority sending policy is not limited here, and can be configured by those of ordinary skill in the art according to actual needs.
比如,网络接入设备配置有优先发送队列和正常发送队列,网络接入设备被配置为将优先发送队列中的数据包全部发送完成之后,再发送正常发送队列中的数据包。以此,网络接入设备在优先发送目标数据包时,将该目标数据包插入优先发送队列中,若优先发送队列中在目标数据包之前还有其它数据包,则网络接入设备将依次发送完成其它数据包之后,再发送目标数据包;若优先发送队列中在目标数据包之前没有其它数据包,则网络接入设备直接发送目标数据包。For example, the network access device is configured with a priority sending queue and a normal sending queue, and the network access device is configured to send the data packets in the normal sending queue after all the data packets in the priority sending queue are sent. In this way, when the network access device preferentially sends the target data packet, it inserts the target data packet into the priority transmission queue. If there are other data packets before the target data packet in the priority transmission queue, the network access device will send the target data packet in turn. After completing other data packets, the target data packet is sent again; if there is no other data packet before the target data packet in the priority sending queue, the network access device directly sends the target data packet.
在360中,在接收到到对应目标数据包的响应数据包时,网络接入设备将响应数据包优先发送至电子设备。In 360, upon receiving a response data packet corresponding to the target data packet, the network access device preferentially sends the response data packet to the electronic device.
本申请实施例中,网络接入设备除了将来自电子设备的目标数据包优先发出之外,还将目标数据包的对端设备返回的响应数据包优先转发至电子设备。In the embodiment of the present application, in addition to preferentially sending the target data packet from the electronic device, the network access device also preferentially forwards the response data packet returned by the opposite end device of the target data packet to the electronic device.
其中,网络接入设备在接收到来自电子设备的目标数据包之后,除了优先发送该目标数据包之后,还记录该目标数据包的五元组数据,包括源IP地址、源端口、目的IP地址、目的端口、和传输层协议。Wherein, after receiving the target data packet from the electronic device, in addition to sending the target data packet preferentially, the network access device also records the quintuple data of the target data packet, including the source IP address, source port, and destination IP address. , destination port, and transport layer protocol.
之后,若接收到的数据包与记录的目标数据包的五元组数据匹配,则将该数据包作为目标数据包的响应数据包,并优先发送至电子设备。After that, if the received data packet matches the recorded quintuple data of the target data packet, the data packet is regarded as a response data packet of the target data packet and sent to the electronic device preferentially.
比如,记录的目标数据包的五元组数据为:“192.168.1.1,10000,TCP,121.14.88.76,80”就构成了一个五元组,其中,192.168.1.1为目标数据包的源IP地址,10000为目标数据包的源端口,TCP为目标数据包的传输层协议,121.14.88.76为目标数据包的目的IP地址(指示了该目标数据包的对端设备),80为目标数据包的目的端口。若接收到一数据包的五元组数据为“121.14.88.76,80,TCP,192.168.1.1,10000”,其中,121.14.88.76为该数据包的源IP地址,80为该数据包的源端口,TCP为该数据包的传输层协议,192.168.1.1为该数据包的目的IP地址,10000为该数据包的目的端口。显然的,该数据包的五元组数据与目标数据包的五元组数据匹配,网络接入设备将将该数据包作为目标数据包的响应数据包优先发送至电子设备。For example, the quintuple data of the recorded target data packet is: "192.168.1.1, 10000, TCP, 121.14.88.76, 80" constitutes a quintuple, in which 192.168.1.1 is the source IP address of the target data packet , 10000 is the source port of the target data packet, TCP is the transport layer protocol of the target data packet, 121.14.88.76 is the destination IP address of the target data packet (indicating the peer device of the target data packet), 80 is the target data packet destination port. If the quintuple data of a data packet is "121.14.88.76, 80, TCP, 192.168.1.1, 10000", 121.14.88.76 is the source IP address of the data packet, and 80 is the source port of the data packet , TCP is the transport layer protocol of the data packet, 192.168.1.1 is the destination IP address of the data packet, and 10000 is the destination port of the data packet. Obviously, the quintuple data of the data packet matches the quintuple data of the target data packet, and the network access device preferentially sends the data packet to the electronic device as a response data packet of the target data packet.
请参照图9,为更好的执行本申请所提供的应用于电子设备的数据传输方法,本申请进一步提供一种数据传输装置,该数据传输装置应用于电子设备,该电子设备由网络接入设备提供网络接入服务,如图9所示,该数据传输装置可以包括:Please refer to FIG. 9 , in order to better implement the data transmission method applied to electronic equipment provided by the present application, the present application further provides a data transmission device, the data transmission device is applied to electronic equipment, and the electronic equipment is accessed by a network The device provides network access services. As shown in Figure 9, the data transmission apparatus may include:
获取模块410,用于获取待发送数据包;an obtaining module 410, configured to obtain a data packet to be sent;
标识模块420,用于在待发送数据包为预设应用的数据包时,为待发送数据包添加优先发送标识得到目标数据包,优先发送标识包括电子设备与网络接入设备预先协商得到的随机值;The identification module 420 is configured to add a priority transmission identifier to the to-be-sent data packet to obtain the target data packet when the data packet to be sent is a data packet of a preset application, and the priority transmission identifier includes a random number obtained through pre-negotiation between the electronic device and the network access device. value;
传输模块430,用于将目标数据包传输至网络接入设备,使得网络接入设备根据优先发送标识优先发送目标数据包。The transmission module 430 is configured to transmit the target data packet to the network access device, so that the network access device preferentially sends the target data packet according to the priority transmission identifier.
可选地,在一实施例中,传输模块430用于:Optionally, in an embodiment, the transmission module 430 is used to:
对目标数据包复制至少一次,得到至少两个目标数据包,并将至少两个目标数据包传输至网络接入设备。The target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
可选地,在一实施例中,电子设备与网络接入设备建立有N路网络连接,其中N为大于或等于2的正整数,传输模块430用于:Optionally, in an embodiment, the electronic device and the network access device establish N network connections, where N is a positive integer greater than or equal to 2, and the transmission module 430 is configured to:
对目标数据包复制N-1次,得到N个目标数据包;Copy the target data packet N-1 times to obtain N target data packets;
将N个目标数据包一一分配到N路网络连接以传输至网络接入设备。Allocate the N target data packets to N network connections one by one for transmission to the network access device.
可选地,在一实施例中,标识模块420用于:Optionally, in one embodiment, the identification module 420 is used to:
在待发送数据包的服务类型字段写入优先发送标识,并将写入优先发送标识的待发送数据包设为目标数据包。Write a priority sending flag in the service type field of the data packet to be sent, and set the data packet to be sent in which the priority sending flag is written as the target data packet.
可选地,在一实施例中,传输模块430还用于接收网络接入设备优先发送的对应目标数据包的响应数据包。Optionally, in an embodiment, the transmission module 430 is further configured to receive a response data packet corresponding to the target data packet preferentially sent by the network access device.
可选地,在一实施例中,本申请提供的数据传输装置还包括协商模块,用于在电子设备断开与网络 接入设备之间的网络连接并再次建立网络连接时,与网络接入设备协商新的随机值作为优先发送标识。Optionally, in an embodiment, the data transmission apparatus provided by the present application further includes a negotiation module, configured to communicate with the network access device when the electronic device disconnects the network connection with the network access device and establishes the network connection again. The device negotiates a new random value as the priority sending identifier.
应当说明的是,本申请实施例提供的数据传输装置与上文实施例中的应用于电子设备的数据传输方法属于同一构思,其具体实现过程详见以上相关实施例,此处不再赘述。It should be noted that the data transmission apparatus provided in the embodiment of the present application and the data transmission method applied to the electronic device in the above embodiment belong to the same concept, and the specific implementation process thereof is detailed in the above related embodiments, which will not be repeated here.
请参照图10,为更好的执行本申请所提供的应用于网络接入设备的数据传输方法,本申请进一步提供一种数据传输装置,该数据传输装置应用于网络接入设备,该网络接入设备为电子设备提供网络接入服务,如图10所示,该数据传输装置可以包括:Referring to FIG. 10 , in order to better implement the data transmission method applied to network access equipment provided by the present application, the present application further provides a data transmission device, the data transmission device is applied to network access equipment, and the network access device The access device provides network access services for electronic devices. As shown in Figure 10, the data transmission apparatus may include:
获取模块510,用于获取电子设备传输的目标数据包;an acquisition module 510, configured to acquire the target data packet transmitted by the electronic device;
转发模块520,用于在待发送数据包携带有优先发送标识时,优先发送待发送数据包;The forwarding module 520 is configured to preferentially send the data packet to be sent when the data packet to be sent carries a priority transmission identifier;
其中,优先发送标识包括网络接入设备与电子设备预先协商得到的随机值。Wherein, the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
可选地,在一实施例中,获取模块510用于接收来自电子设备的多个相同目标数据包;Optionally, in an embodiment, the obtaining module 510 is configured to receive multiple identical target data packets from the electronic device;
转发模块520用于在接收到来自电子设备的第一个目标数据包时,若第一个目标数据包需求的网络传输协议为第一预设网络传输协议,则优先发送第一个目标数据包,并丢弃后续接收到的其它目标数据包。The forwarding module 520 is configured to send the first target data packet preferentially when receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the first preset network transmission protocol , and discard other target packets received subsequently.
可选地,在一实施例中,转发模块520还用于:Optionally, in an embodiment, the forwarding module 520 is further configured to:
在接收到来自电子设备的第一个目标数据包时,若第一个目标数据包需求的网络传输协议为第二预设网络传输协议,则优先发送第一个目标数据包,以及优先发送后续接收到的其它目标数据包。When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the second preset network transmission protocol, the first target data packet is preferentially sent, and the subsequent data packets are preferentially sent. Other destination packets received.
可选地,在一实施例中,网络接入设备与电子设备建立有多路网络连接,获取模块510用于通过每一网络连接接收多个相同目标数据包中的一个目标数据包。Optionally, in an embodiment, the network access device establishes multiple network connections with the electronic device, and the obtaining module 510 is configured to receive one target data packet from the multiple identical target data packets through each network connection.
应当说明的是,本申请实施例提供的数据传输装置与上文实施例中的应用于网络接入设备的数据传输方法属于同一构思,其具体实现过程详见以上相关实施例,此处不再赘述。It should be noted that the data transmission apparatus provided by the embodiment of the present application and the data transmission method applied to the network access device in the above embodiment belong to the same concept, and the specific implementation process is detailed in the above related embodiments, which is not repeated here. Repeat.
本申请实施例还提供一种电子设备,包括存储器和处理器,其中处理器通过调用存储器中存储的计算机程序,用于执行本实施例提供的应用于电子设备的数据传输方法中的步骤。Embodiments of the present application further provide an electronic device including a memory and a processor, wherein the processor is configured to execute the steps in the data transmission method applied to the electronic device provided by this embodiment by calling a computer program stored in the memory.
请参阅图11,图11为本申请实施例提供的电子设备的结构示意图。Please refer to FIG. 11 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
该电子设备可以包括网络接口610、存储器620、处理器630等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device may include components such as a network interface 610, a memory 620, a processor 630, and the like. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components.
网络接口610可以用于进行设备之间的网络连接。 Network interface 610 may be used to make network connections between devices.
存储器620可用于存储计算机程序和数据。存储器620存储的计算机程序中包含有可执行代码。计算机程序可以划分为各种功能模块。处理器630通过运行存储在存储器620的计算机程序,从而执行各种功能应用以及数据处理。Memory 620 may be used to store computer programs and data. The computer program stored in the memory 620 contains executable code. A computer program can be divided into various functional modules. The processor 630 executes various functional applications and data processing by executing computer programs stored in the memory 620 .
处理器630是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器620内的计算机程序,以及调用存储在存储器620内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体控制。The processor 630 is the control center of the electronic device, uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the computer program stored in the memory 620 and calling the data stored in the memory 620. various functions and processing data, so as to carry out overall control of electronic equipment.
在本申请实施例中,电子设备中的处理器630会按照如下的指令,将一个或一个以上的计算机程序对应的可执行代码加载到存储器620中,并由处理器630来执行从而执行如下步骤:In this embodiment of the present application, the processor 630 in the electronic device loads executable codes corresponding to one or more computer programs into the memory 620 according to the following instructions, and the processor 630 executes the following steps to execute the following steps: :
获取待发送数据包;Get data packets to be sent;
在待发送数据包为预设应用的数据包时,为待发送数据包添加优先发送标识得到目标数据包,优先发送标识包括电子设备与网络接入设备预先协商得到的随机值;When the data packet to be sent is a data packet of a preset application, a priority transmission identifier is added to the data packet to be sent to obtain the target data packet, and the priority transmission identifier includes a random value negotiated in advance between the electronic device and the network access device;
将目标数据包传输至网络接入设备,使得网络接入设备根据优先发送标识优先发送目标数据包。The target data packet is transmitted to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier.
可选地,在一实施例中,在将目标数据包传输至网络接入设备时,处理器630用于执行:Optionally, in an embodiment, when the target data packet is transmitted to the network access device, the processor 630 is configured to execute:
对目标数据包复制至少一次,得到至少两个目标数据包,并将至少两个目标数据包传输至网络接入设备。The target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
可选地,在一实施例中,电子设备与网络接入设备建立有N路网络连接,其中N为大于或等于2的正整数,在对目标数据包复制至少一次,得到至少两个目标数据包,并将至少两个目标数据包传输至网络接入设备时,处理器630用于执行:Optionally, in an embodiment, the electronic device and the network access device establish N network connections, where N is a positive integer greater than or equal to 2, and the target data packet is copied at least once to obtain at least two target data packets. When the at least two target data packets are transmitted to the network access device, the processor 630 is configured to execute:
对目标数据包复制N-1次,得到N个目标数据包;Copy the target data packet N-1 times to obtain N target data packets;
将N个目标数据包一一分配到N路网络连接以传输至网络接入设备。Allocate the N target data packets to N network connections one by one for transmission to the network access device.
可选地,在一实施例中,在为待发送数据包添加优先发送标识得到目标数据包时,处理器630用于执行:Optionally, in an embodiment, when adding a priority transmission identifier to the data packet to be sent to obtain the target data packet, the processor 630 is configured to execute:
在待发送数据包的服务类型字段写入优先发送标识,并将写入优先发送标识的待发送数据包设为目 标数据包。Write the priority sending flag in the service type field of the data packet to be sent, and set the data packet to be sent with the priority sending flag written as the target data packet.
可选地,在一实施例中,处理器630还用于执行:Optionally, in an embodiment, the processor 630 is further configured to execute:
接收网络接入设备优先发送的对应目标数据包的响应数据包。Receive the response data packet corresponding to the target data packet preferentially sent by the network access device.
可选地,在一实施例中,处理器630还用于执行:Optionally, in an embodiment, the processor 630 is further configured to execute:
在电子设备断开与网络接入设备之间的网络连接并再次建立网络连接时,与网络接入设备协商新的随机值作为优先发送标识。When the electronic device disconnects the network connection with the network access device and establishes the network connection again, a new random value is negotiated with the network access device as the priority sending identifier.
应当说明的是,本申请实施例提供的电子设备与上文实施例中应用于电子设备的数据传输方法属于同一构思,其具体实现过程详见以上相关实施例,此处不再赘述。It should be noted that the electronic device provided by the embodiments of the present application and the data transmission method applied to the electronic device in the above embodiments belong to the same concept, and the specific implementation process is detailed in the above related embodiments, which will not be repeated here.
本申请实施例还提供一种网络接入设备,包括存储器和处理器,其中处理器通过调用存储器中存储的计算机程序,用于执行本实施例提供的应用于网络接入设备的数据传输方法中的步骤。An embodiment of the present application further provides a network access device, including a memory and a processor, wherein the processor is used to execute the data transmission method applied to the network access device provided by this embodiment by invoking a computer program stored in the memory A step of.
请参阅图12,图12为本申请实施例提供的网络接入设备的结构示意图。Please refer to FIG. 12, which is a schematic structural diagram of a network access device provided by an embodiment of the present application.
该网络接入设备可以包括网络接口710、存储器720、处理器730等部件。本领域技术人员可以理解,图8中示出的网络接入设备结构并不构成对网络接入设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The network access device may include components such as a network interface 710, a memory 720, a processor 730, and the like. Those skilled in the art can understand that the structure of the network access device shown in FIG. 8 does not constitute a limitation on the network access device, and may include more or less components than the one shown, or combine some components, or different component layout.
网络接口710可以用于进行设备之间的网络连接。 Network interface 710 may be used to make network connections between devices.
存储器720可用于存储计算机程序和数据。存储器720存储的计算机程序中包含有可执行代码。计算机程序可以划分为各种功能模块。处理器730通过运行存储在存储器720的计算机程序,从而执行各种功能应用以及数据处理。 Memory 720 may be used to store computer programs and data. The computer program stored in the memory 720 contains executable code. A computer program can be divided into various functional modules. The processor 730 executes various functional applications and data processing by executing computer programs stored in the memory 720 .
处理器730是网络接入设备的控制中心,利用各种接口和线路连接整个网络接入设备的各个部分,通过运行或执行存储在存储器720内的计算机程序,以及调用存储在存储器720内的数据,执行网络接入设备的各种功能和处理数据,从而对网络接入设备进行整体控制。The processor 730 is the control center of the network access device, uses various interfaces and lines to connect various parts of the entire network access device, runs or executes the computer program stored in the memory 720, and calls the data stored in the memory 720. , perform various functions of the network access device and process data, so as to carry out overall control of the network access device.
在本申请实施例中,网络接入设备中的处理器730会按照如下的指令,将一个或一个以上的计算机程序对应的可执行代码加载到存储器720中,并由处理器730来执行从而执行如下步骤:In this embodiment of the present application, the processor 730 in the network access device loads executable codes corresponding to one or more computer programs into the memory 720 according to the following instructions, and is executed by the processor 730 to execute Follow the steps below:
获取电子设备传输的目标数据包;Obtain the target data packet transmitted by the electronic device;
在待发送数据包携带有优先发送标识时,优先发送待发送数据包;When the to-be-sent data packet carries the priority-sending identifier, the to-be-sent data packet is preferentially sent;
其中,优先发送标识包括网络接入设备与电子设备预先协商得到的随机值。Wherein, the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
可选地,在一实施例中,在获取电子设备传输的目标数据包时,处理器730用于执行:Optionally, in an embodiment, when acquiring the target data packet transmitted by the electronic device, the processor 730 is configured to execute:
接收来自电子设备的多个相同目标数据包;Receive multiple identical target data packets from electronic devices;
在优先发送待发送数据包时,处理器730用于执行:When the to-be-sent data packets are sent preferentially, the processor 730 is configured to execute:
在接收到来自电子设备的第一个目标数据包时,若第一个目标数据包需求的网络传输协议为第一预设网络传输协议,则优先发送第一个目标数据包,并丢弃后续接收到的其它目标数据包。When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the first preset network transmission protocol, the first target data packet is sent first, and subsequent receptions are discarded to other destination packets.
可选地,在一实施例中,处理器730还用于执行:Optionally, in an embodiment, the processor 730 is further configured to execute:
在接收到来自电子设备的第一个目标数据包时,若第一个目标数据包需求的网络传输协议为第二预设网络传输协议,则优先发送第一个目标数据包,以及优先发送后续接收到的其它目标数据包。When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the second preset network transmission protocol, the first target data packet is preferentially sent, and the subsequent data packets are preferentially sent. Other destination packets received.
可选地,在一实施例中,网络接入设备与电子设备建立有多路网络连接,在接收来自电子设备的多个相同目标数据包时,处理器730还用于执行:Optionally, in an embodiment, the network access device establishes multiple network connections with the electronic device, and when receiving multiple identical target data packets from the electronic device, the processor 730 is further configured to execute:
通过每一网络连接接收多个相同目标数据包中的一个目标数据包。One of a plurality of identical target packets is received over each network connection.
应当说明的是,本申请实施例提供的网络接入设备与上文实施例中的应用于网络接入设备的数据传输方法属于同一构思,其具体实现过程详见以上相关实施例,此处不再赘述。It should be noted that the network access device provided in the embodiments of the present application and the data transmission method applied to the network access device in the above embodiments belong to the same concept, and the specific implementation process is detailed in the above related embodiments, and is not described here. Repeat.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当其存储的计算机程序在本申请实施例提供的电子设备的处理器上执行时,使得电子设备的处理器执行以上任一应用于电子设备的数据传输方法中的步骤;或者,当其存储的计算机程序在本申请实施例提供的网络接入设备的处理器上执行时,使得网络接入设备的处理器执行以上任一应用于网络接入设备的数据传输方法中的步骤。其中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)或者随机存取器(Random Access Memory,RAM)等。The embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, and when the stored computer program is executed on the processor of the electronic device provided by the embodiments of the present application, the processor of the electronic device executes Any of the above steps in a data transmission method applied to an electronic device; or, when the stored computer program is executed on the processor of the network access device provided by the embodiment of the present application, the processor of the network access device is made to execute Any of the above steps are applied to the data transmission method of the network access device. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), and the like.
以上对本申请所提供的一种数据传输方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A data transmission method, device, storage medium and electronic device provided by the present application have been introduced in detail above, and the principles and implementations of the present application are described with specific examples. The descriptions of the above embodiments are only used for Help to understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, the content of this specification does not It should be understood as a limitation of this application.

Claims (20)

  1. 一种数据传输方法,应用于电子设备,所述电子设备由网络接入设备提供网络接入服务,其中,所述数据传输方法包括:A data transmission method is applied to an electronic device, wherein the electronic device is provided with a network access service by a network access device, wherein the data transmission method comprises:
    获取待发送数据包;Get data packets to be sent;
    在所述待发送数据包为预设应用的数据包时,为所述待发送数据包添加优先发送标识得到目标数据包,所述优先发送标识包括所述电子设备与所述网络接入设备预先协商得到的随机值;When the data packet to be sent is a data packet of a preset application, a priority transmission identifier is added to the data packet to be sent to obtain a target data packet, and the priority transmission identifier includes the electronic device and the network access device in advance. Negotiated random value;
    将所述目标数据包传输至所述网络接入设备,使得所述网络接入设备根据所述优先发送标识优先发送所述目标数据包。The target data packet is transmitted to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier.
  2. 根据权利要求1所述的数据传输方法,其中,所述将所述目标数据包传输至所述网络接入设备,包括:The data transmission method according to claim 1, wherein the transmitting the target data packet to the network access device comprises:
    对所述目标数据包复制至少一次,得到至少两个目标数据包,并将所述至少两个目标数据包传输至所述网络接入设备。The target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
  3. 根据权利要求2所述的数据传输方法,其中,所述电子设备与所述网络接入设备建立有N路网络连接,其中N为大于或等于2的正整数,所述对所述目标数据包复制至少一次,得到至少两个目标数据包,并将所述至少两个目标数据包传输至所述网络接入设备,包括:The data transmission method according to claim 2, wherein the electronic device and the network access device establish N-way network connections, wherein N is a positive integer greater than or equal to 2, and the target data packet Copying at least once, obtaining at least two target data packets, and transmitting the at least two target data packets to the network access device, including:
    对所述目标数据包复制N-1次,得到N个目标数据包;Duplicate the target data packet N-1 times to obtain N target data packets;
    将所述N个目标数据包一一分配到所述N路网络连接以传输至所述网络接入设备。Allocating the N target data packets to the N-way network connections one by one for transmission to the network access device.
  4. 根据权利要求1所述的数据传输方法,其中,所述为所述待发送数据包添加优先发送标识得到目标数据包,包括:The data transmission method according to claim 1, wherein the adding a priority transmission identifier to the to-be-sent data packet to obtain the target data packet comprises:
    在所述待发送数据包的服务类型字段写入所述优先发送标识,并将写入所述优先发送标识的待发送数据包设为所述目标数据包。The priority sending identifier is written in the service type field of the data packet to be sent, and the data packet to be sent written in the priority sending identifier is set as the target data packet.
  5. 根据权利要求1-4任一项所述的数据传输方法,其中,所述将所述目标数据包传输至所述网络接入设备之后,还包括:The data transmission method according to any one of claims 1-4, wherein after the transmitting the target data packet to the network access device, the method further comprises:
    接收所述网络接入设备优先发送的对应所述目标数据包的响应数据包。Receive a response data packet corresponding to the target data packet preferentially sent by the network access device.
  6. 根据权利要求1-4任一项所述的数据传输方法,其中,还包括:The data transmission method according to any one of claims 1-4, wherein, further comprising:
    在所述电子设备断开与所述网络接入设备之间的网络连接并再次建立网络连接时,与所述网络接入设备协商新的随机值作为所述优先发送标识。When the electronic device disconnects the network connection with the network access device and establishes the network connection again, negotiates a new random value with the network access device as the priority sending identifier.
  7. 一种数据传输方法,应用于网络接入设备,所述网络接入设备为电子设备提供网络接入服务,其中,所述数据传输方法包括:A data transmission method is applied to a network access device, the network access device provides network access services for electronic devices, wherein the data transmission method includes:
    获取所述电子设备传输的目标数据包;Obtain the target data packet transmitted by the electronic device;
    在所述目标数据包携带有优先发送标识时,优先发送所述目标数据包;When the target data packet carries a priority transmission identifier, the target data packet is preferentially sent;
    其中,所述优先发送标识包括所述网络接入设备与所述电子设备预先协商得到的随机值。Wherein, the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
  8. 根据权利要求7所述的数据传输方法,其中,所述获取所述电子设备传输的目标数据包,包括:The data transmission method according to claim 7, wherein the acquiring the target data packet transmitted by the electronic device comprises:
    接收来自所述电子设备的多个相同目标数据包;receiving a plurality of identical target data packets from the electronic device;
    所述优先发送所述目标数据包,包括:The preferentially sending the target data packet includes:
    在接收到来自所述电子设备的第一个目标数据包时,若所述第一个目标数据包需求的网络传输协议为第一预设网络传输协议,则优先发送所述第一个目标数据包,并丢弃后续接收到的其它目标数据包。When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the first preset network transmission protocol, the first target data is sent preferentially packets, and discard any other destination packets received subsequently.
  9. 根据权利要求8所述的数据传输方法,其中,所述优先发送所述目标数据包,还包括:The data transmission method according to claim 8, wherein the preferentially sending the target data packet further comprises:
    在接收到来自所述电子设备的第一个目标数据包时,若所述第一个目标数据包需求的网络传输协议为第二预设网络传输协议,则优先发送所述第一个目标数据包,以及优先发送后续接收到的其它目标数据包。When receiving the first target data packet from the electronic device, if the network transmission protocol required by the first target data packet is the second preset network transmission protocol, the first target data is sent preferentially packets, and other target packets that are subsequently received are preferentially sent.
  10. 根据权利要求8所述的数据传输方法,其中,所述网络接入设备与所述电子设备建立有多路网络连接,所述接收来自所述电子设备的多个相同目标数据包,包括:The data transmission method according to claim 8, wherein the network access device establishes multiple network connections with the electronic device, and the receiving multiple identical target data packets from the electronic device comprises:
    通过每一网络连接接收所述多个相同目标数据包中的一个目标数据包。One target data packet of the plurality of identical target data packets is received over each network connection.
  11. 一种数据传输装置,应用于电子设备,所述电子设备由网络接入设备提供网络接入服务,其中,所述数据传输装置包括:A data transmission apparatus is applied to electronic equipment, and the electronic equipment is provided with a network access service by a network access device, wherein the data transmission apparatus includes:
    获取模块,用于获取待发送数据包;The acquisition module is used to acquire the data packet to be sent;
    标识模块,用于在所述待发送数据包为预设应用的数据包时,为所述待发送数据包添加优先发送标识得到目标数据包,所述优先发送标识包括所述电子设备与所述网络接入设备预先协商得到的随机值;An identification module, configured to add a priority transmission identifier to the to-be-sent data packet to obtain a target data packet when the to-be-sent data packet is a data packet of a preset application, where the prioritized transmission identifier includes the electronic device and the A random value negotiated in advance by the network access device;
    传输模块,用于将所述目标数据包传输至所述网络接入设备,使得所述网络接入设备根据所述优先发送标识优先发送所述目标数据包。A transmission module, configured to transmit the target data packet to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier.
  12. 一种数据传输装置,应用于网络接入设备,所述网络接入设备为电子设备提供网络接入服务, 其中,所述数据传输装置包括:A data transmission device is applied to a network access device, the network access device provides network access services for electronic equipment, wherein the data transmission device includes:
    获取模块,用于获取所述电子设备传输的目标数据包;an acquisition module for acquiring the target data packet transmitted by the electronic device;
    转发模块,用于在所述待发送数据包携带有优先发送标识时,优先发送所述待发送数据包;a forwarding module, configured to preferentially send the to-be-sent data packet when the to-be-sent data packet carries a priority-to-send identifier;
    其中,所述优先发送标识包括所述网络接入设备与所述电子设备预先协商得到的随机值。Wherein, the priority sending identifier includes a random value obtained through pre-negotiation between the network access device and the electronic device.
  13. 一种电子设备,所述电子设备由网络接入设备提供网络接入服务,所述电子设备包括处理器和存储器,所述存储器储存有计算机程序,其中,所述处理器通过加载所述计算机程序,用于执行:An electronic device, the electronic device is provided with a network access service by a network access device, the electronic device includes a processor and a memory, and the memory stores a computer program, wherein the processor loads the computer program by loading the computer program. , which is used to execute:
    获取待发送数据包;Get data packets to be sent;
    在所述待发送数据包为预设应用的数据包时,为所述待发送数据包添加优先发送标识得到目标数据包,所述优先发送标识包括所述电子设备与所述网络接入设备预先协商得到的随机值;When the data packet to be sent is a data packet of a preset application, a priority transmission identifier is added to the data packet to be sent to obtain a target data packet, and the priority transmission identifier includes the electronic device and the network access device in advance. Negotiated random value;
    将所述目标数据包传输至所述网络接入设备,使得所述网络接入设备根据所述优先发送标识优先发送所述目标数据包。The target data packet is transmitted to the network access device, so that the network access device preferentially sends the target data packet according to the priority sending identifier.
  14. 根据权利要求13所述的电子设备,其中,所述电子设备与所述网络接入设备建立有N路网络连接,其中N为大于或等于2的正整数,所述处理器用于执行:The electronic device according to claim 13, wherein the electronic device and the network access device establish N-way network connections, wherein N is a positive integer greater than or equal to 2, and the processor is configured to execute:
    对所述目标数据包复制至少一次,得到至少两个目标数据包,并将所述至少两个目标数据包传输至所述网络接入设备。The target data packet is copied at least once to obtain at least two target data packets, and the at least two target data packets are transmitted to the network access device.
  15. 根据权利要求14所述的电子设备,其中,所述处理器用于执行:The electronic device of claim 14, wherein the processor is configured to perform:
    对所述目标数据包复制N-1次,得到N个目标数据包;Duplicate the target data packet N-1 times to obtain N target data packets;
    将所述N个目标数据包一一分配到所述N路网络连接以传输至所述网络接入设备。Allocating the N target data packets to the N-way network connections one by one for transmission to the network access device.
  16. 根据权利要求13所述的电子设备,其中,所述处理器用于执行:The electronic device of claim 13, wherein the processor is configured to perform:
    在所述待发送数据包的服务类型字段写入所述优先发送标识,并将写入所述优先发送标识的待发送数据包设为所述目标数据包。The priority sending identifier is written in the service type field of the data packet to be sent, and the data packet to be sent written in the priority sending identifier is set as the target data packet.
  17. 根据权利要求13至16任一项所述的电子设备,其中,所述处理器用于执行:The electronic device according to any one of claims 13 to 16, wherein the processor is configured to execute:
    接收所述网络接入设备优先发送的对应所述目标数据包的响应数据包。Receive a response data packet corresponding to the target data packet preferentially sent by the network access device.
  18. 根据权利要求13至16任一项所述的电子设备,其中所述处理器用于执行:The electronic device of any one of claims 13 to 16, wherein the processor is configured to perform:
    在所述电子设备断开与所述网络接入设备之间的网络连接并再次建立网络连接时,与所述网络接入设备协商新的随机值作为所述优先发送标识。When the electronic device disconnects the network connection with the network access device and establishes the network connection again, negotiates a new random value with the network access device as the priority sending identifier.
  19. 一种网络接入设备,所述网络接入设备为电子设备提供网络接入服务,所述网络接入设备包括处理器和存储器,所述存储器储存有计算机程序,其中,所述处理器通过加载所述计算机程序执行如权利要求7-10任一项所述的数据传输方法。A network access device, the network access device provides a network access service for an electronic device, the network access device includes a processor and a memory, the memory stores a computer program, wherein the processor is loaded by loading The computer program executes the data transmission method according to any one of claims 7-10.
  20. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序被电子设备的处理器加载时执行如权利要求1-6任一项所述的数据传输方法,或者当所述计算机程序被网络接入设备的处理器加载时执行如权利要求7-10任一项所述的数据传输方法。A storage medium on which a computer program is stored, wherein when the computer program is loaded by a processor of an electronic device, the data transmission method according to any one of claims 1-6 is executed, or when the computer program is loaded The data transmission method according to any one of claims 7-10 is executed when loaded by the processor of the network access device.
PCT/CN2021/114345 2020-11-13 2021-08-24 Data transmission method and apparatus, and medium, electronic device and network access device WO2022100199A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011272675.3 2020-11-13
CN202011272675.3A CN112398754B (en) 2020-11-13 2020-11-13 Data transmission method, device, medium, electronic equipment and network access equipment

Publications (1)

Publication Number Publication Date
WO2022100199A1 true WO2022100199A1 (en) 2022-05-19

Family

ID=74599371

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/114345 WO2022100199A1 (en) 2020-11-13 2021-08-24 Data transmission method and apparatus, and medium, electronic device and network access device

Country Status (2)

Country Link
CN (1) CN112398754B (en)
WO (1) WO2022100199A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398754B (en) * 2020-11-13 2022-09-13 Oppo广东移动通信有限公司 Data transmission method, device, medium, electronic equipment and network access equipment
CN113923722B (en) * 2021-10-11 2023-06-13 中国联合网络通信集团有限公司 Data transmission method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540936A (en) * 2003-04-26 2004-10-27 华为技术有限公司 Method for controlling priority for transmitting message based on virtual local area network
US20150098390A1 (en) * 2013-10-04 2015-04-09 Vonage Network Llc Prioritization of data traffic between a mobile device and a network access point
CN105245469A (en) * 2015-08-27 2016-01-13 北京金山安全软件有限公司 Data transmission method, device and system
CN108768860A (en) * 2018-05-25 2018-11-06 新华三技术有限公司 Portal system messages sending method and device
CN112398754A (en) * 2020-11-13 2021-02-23 Oppo广东移动通信有限公司 Data transmission method, device, medium, electronic equipment and network access equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6957269B2 (en) * 2001-01-03 2005-10-18 Advanced Micro Devices, Inc. Method and apparatus for performing priority-based flow control
CN102428739B (en) * 2009-05-20 2016-05-11 瑞典爱立信有限公司 For transmitting precedence information so that the system and method using in the transmission of data dispatching
US7996526B2 (en) * 2009-06-08 2011-08-09 Comcast Cable Communications, Llc Management of shared access network
WO2012167184A2 (en) * 2011-06-02 2012-12-06 Interdigital Patent Holdings, Inc. Methods, apparatus, and systems for managing converged gateway communications
US8972537B2 (en) * 2011-08-16 2015-03-03 Comcast Cable Communications, Llc Prioritizing local and network traffic
CN104486244B (en) * 2014-12-03 2018-06-01 中国联合网络通信集团有限公司 A kind of execution method and device of QoS policy
CN109510783A (en) * 2015-11-10 2019-03-22 北京奇虎科技有限公司 The channel priorities method of adjustment and device of router
CN108259383B (en) * 2016-12-29 2021-10-01 北京华为数字技术有限公司 Data transmission method and network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540936A (en) * 2003-04-26 2004-10-27 华为技术有限公司 Method for controlling priority for transmitting message based on virtual local area network
US20150098390A1 (en) * 2013-10-04 2015-04-09 Vonage Network Llc Prioritization of data traffic between a mobile device and a network access point
CN105245469A (en) * 2015-08-27 2016-01-13 北京金山安全软件有限公司 Data transmission method, device and system
CN108768860A (en) * 2018-05-25 2018-11-06 新华三技术有限公司 Portal system messages sending method and device
CN112398754A (en) * 2020-11-13 2021-02-23 Oppo广东移动通信有限公司 Data transmission method, device, medium, electronic equipment and network access equipment

Also Published As

Publication number Publication date
CN112398754A (en) 2021-02-23
CN112398754B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
US11277313B2 (en) Data transmission method and corresponding device
WO2021135471A1 (en) Data transmission method and apparatus, network card and storage medium
WO2022100199A1 (en) Data transmission method and apparatus, and medium, electronic device and network access device
WO2018113373A1 (en) Data transmission method and device
KR102077883B1 (en) Data communication system and method
WO2023005773A1 (en) Message forwarding method and apparatus based on remote direct data storage, and network card and device
CN110169030B (en) Method for transmitting content over heterogeneous network and apparatus therefor
US10880369B2 (en) Session persistence method, device, and storage medium
US10587515B2 (en) Stateless information centric forwarding using dynamic filters
WO2020177383A1 (en) Data stream processing method and related device
CN107113223A (en) Negotiation for the message block size of message session trunk protocol session
WO2022042235A1 (en) Data packet sending method and apparatus, data packet processing method and apparatus, device, and data packet
KR20170016281A (en) Transferring state in content centric network stacks
US20200137153A1 (en) Method for establishing peer to peer service session over infrastructure link
EP3902279A1 (en) Audio and video stream distribution method in audio and video stream distribution system, and dynamic parent node
CN109361671A (en) A kind of streaming media framework method based on Session Initiation Protocol
CN107483628A (en) Unidirectional proxy method and system based on DPDK
CN110519331B (en) Method and device for processing resources of video network
JP5845554B2 (en) Method, device and system for recording multimedia data
WO2016095510A1 (en) Path selection method, device and system
WO2022100211A1 (en) Data processing method and apparatus, storage medium, terminal, and network access point device
WO2017071655A1 (en) Multi set top box bandwidth allocation method and device
TWI603599B (en) Data sharing method and electronic device using same
WO2023151431A1 (en) Communication method and apparatus, and communication system
WO2023169202A1 (en) Video stream data acquisition method and apparatus, and electronic device and computer-readable medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21890728

Country of ref document: EP

Kind code of ref document: A1