Data transmission method and device
First Claim
Patent Images
1. A data transmission method, comprising:
- obtaining a service data packet that needs to be sent to a peer device, the service data packet being associated with a service;
determining a priority of the service data packet according to a preset priority of the service;
encapsulating the service data packet without writing the service data packet to a packet buffer when the priority of the service associated with the service data packet is higher than or equal to a preset level;
generating a to-be-sent packet from the encapsulated service data packet when the priority of the service associated with the service data packet is higher than or equal to the preset level;
writing the service data packet to the packet buffer when the priority of the service data packet is lower than the preset level;
encapsulating data stored in the packet buffer to generate the to-be-sent packet when the data stored in the packet buffer meets a transmission condition; and
sending the to-be-sent packet to the peer device.
1 Assignment
0 Petitions
Accused Products
Abstract
A data transmission method and a device, where the method includes obtaining a service data packet that needs to be sent to a peer device, determining a priority corresponding to the service data packet, writing the service data packet to a packet buffer when the priority is lower than a preset level, encapsulating the data stored in the packet buffer in order to generate a to-be-sent packet when data stored in the packet buffer meets a transmission condition, and sending the to-be-sent packet to the peer device.
-
Citations
20 Claims
-
1. A data transmission method, comprising:
-
obtaining a service data packet that needs to be sent to a peer device, the service data packet being associated with a service; determining a priority of the service data packet according to a preset priority of the service; encapsulating the service data packet without writing the service data packet to a packet buffer when the priority of the service associated with the service data packet is higher than or equal to a preset level; generating a to-be-sent packet from the encapsulated service data packet when the priority of the service associated with the service data packet is higher than or equal to the preset level; writing the service data packet to the packet buffer when the priority of the service data packet is lower than the preset level; encapsulating data stored in the packet buffer to generate the to-be-sent packet when the data stored in the packet buffer meets a transmission condition; and sending the to-be-sent packet to the peer device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A device, comprising:
-
a memory comprising instructions; and a processor coupled to the memory and configured to execute the instructions, the instructions causing the processor to be configured to; obtain a service data packet that needs to be sent to a peer device, the service data packet being associated with a service; determine a priority of the service data packet according to a preset priority of the service; encapsulate the service data packet without writing the service data packet to a packet buffer when the priority of the service associated with the service data packet is higher than or equal to a preset level; generate a to-be-sent packet from the encapsulated service data packet when the priority of the service associated with the service data packet is higher than or equal to the preset level; write the service data packet to the packet buffer when the priority of the service data packet is lower than the preset level; encapsulate data stored in the packet buffer in order to generate the to-be-sent packet when the data stored in the packet buffer meets a transmission condition; and send the to-be-sent packet to the peer device. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification