Search

US-20260129109-A1 - Packet Transmission Method and Apparatus, Storage Medium, Device, and System

US20260129109A1US 20260129109 A1US20260129109 A1US 20260129109A1US-20260129109-A1

Abstract

Embodiments of the present disclosure disclose a packet transmission method and apparatus, a storage medium, a device, and a system. The method includes: obtaining a first jumbo frame packet, the first jumbo frame packet carrying a jumbo frame identifier; transmitting the first jumbo frame packet to a second server through a first transmission tunnel; determining a probe result for the first transmission tunnel based on a time relationship between transmitting time of the first jumbo frame packet and receiving time of a reply packet when receiving the reply packet returned by the second server based on the jumbo frame identifier in the first jumbo frame packet; and obtaining a second jumbo frame packet and transmitting the second jumbo frame packet to the second server through the first transmission tunnel when the probe result indicates that the first transmission tunnel is suitable for jumbo frame transmission.

Inventors

  • Kailang DENG

Assignees

  • TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED

Dates

Publication Date
20260507
Application Date
20251231
Priority Date
20231011

Claims (20)

  1. 1 . A packet transmission method performed by a first server, comprising: obtaining a first jumbo frame packet, the first jumbo frame packet carrying a jumbo frame identifier; transmitting the first jumbo frame packet to a second server through a first transmission tunnel, the first transmission tunnel being one of at least one transmission tunnel for communicating with the second server; determining, when receiving a reply packet returned by the second server based on a jumbo frame identifier in the first jumbo frame packet, a probe result for the first transmission tunnel based on a time relationship between a transmitting time of the first jumbo frame packet and a receiving time of the reply packet; and obtaining, when the probe result indicates that the first transmission tunnel is suitable for jumbo frame transmission, a second jumbo frame packet and transmitting the second jumbo frame packet to the second server through the first transmission tunnel.
  2. 2 . The packet transmission method according to claim 1 , wherein determining, when receiving the reply packet returned by the second server based on the jumbo frame identifier in the first jumbo frame packet, the probe result for the first transmission tunnel based on the time relationship between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet comprises: receiving a third packet from the second server; and determining the probe result for the first transmission tunnel based on the time relationship between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet when determining that the third packet is the reply packet returned by the second server based on the jumbo frame identifier in the first jumbo frame packet.
  3. 3 . The packet transmission method according to claim 1 , wherein determining the probe result for the first transmission tunnel based on the time relationship between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet comprises: determining a difference between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet as first duration; and determining, when the first duration is less than or equal to a preset first threshold, the probe result indicating that the first transmission tunnel is suitable for jumbo frame transmission.
  4. 4 . The packet transmission method according to claim 3 , wherein determining the probe result for the first transmission tunnel based on the time relationship between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet comprises: determining, when the first duration is greater than the preset first threshold, the probe result indicating that the first transmission tunnel is not suitable for jumbo frame transmission; or extracting, when the first duration is greater than the preset first threshold, a reply time in the reply packet, the reply time indicating a time point when the second server transmits the reply packet; determining a second duration between the transmitting time and the reply time and a third duration between the receiving time and the reply time; and determining, when a difference between the second duration and the third duration is greater than a preset second threshold, the probe result indicating that the first transmission tunnel is not suitable for jumbo frame transmission.
  5. 5 . The packet transmission method according to claim 1 , wherein transmitting the first jumbo frame packet to the second server through the first transmission tunnel comprises: successively transmitting the first jumbo frame packet to the second server through the first transmission tunnel in each of a plurality of probe time periods, two adjacent probe time periods being separated by a preset time interval.
  6. 6 . The packet transmission method according to claim 5 , wherein the method further comprises: determining, when no reply packet returned by the second server based on the jumbo frame identifier in the first jumbo frame packet is received in a current probe time period, the probe result indicating that the first transmission tunnel is not suitable for jumbo frame transmission.
  7. 7 . The packet transmission method according to claim 5 , wherein the method further comprises: determining, when the probe result indicating that the first transmission tunnel is not suitable for jumbo frame transmission is determined in a current probe time period, an accumulated quantity of probe results indicating that the first transmission tunnel is not suitable for jumbo frame transmission; continuing to transmit the first jumbo frame packet to the second server through the first transmission tunnel in a next probe time period when the accumulated quantity is less than a preset third threshold; and decreasing, when the accumulated quantity reaches the preset third threshold, a transmission limit value of the first transmission tunnel.
  8. 8 . The packet transmission method according to claim 1 , wherein obtaining the first jumbo frame packet comprises: obtaining an initial jumbo frame packet; extracting header information of the initial jumbo frame packet; generating a jumbo frame identifier for the initial jumbo frame packet; and adding the jumbo frame identifier to the header information of the initial jumbo frame packet to obtain the first jumbo frame packet.
  9. 9 . The packet transmission method according to claim 8 , wherein obtaining the first jumbo frame packet further comprises: determining a packet length value of the initial jumbo frame packet; obtaining a transmission limit value of the first transmission tunnel from a preset configuration table, the preset configuration table comprising transmission limit values of a plurality of transmission tunnels; and fragmenting, when the packet length value of an initial jumbo frame packet is greater than the transmission limit value of the first transmission tunnel, the initial jumbo frame packet based on the transmission limit value to obtain an initial jumbo frame, wherein a packet length value of the initial jumbo frame does not exceed the transmission limit value.
  10. 10 . The packet transmission method according to claim 9 , wherein the method further comprises: setting, when the probe result indicates that the first transmission tunnel is not suitable for jumbo frame transmission, the transmission limit value of the first transmission tunnel to a first value; or extracting a packet length value of the first jumbo frame packet, obtaining a second value based on the packet length value of the first jumbo frame packet, and setting the transmission limit value of the first transmission tunnel to the second value, the second value being less than the packet length value of the first jumbo frame packet and greater than the first value.
  11. 11 . A packet transmission method performed by a second server, comprising: receiving, through a first transmission tunnel, a first jumbo frame packet transmitted by a first server, the first jumbo frame packet carrying a jumbo frame identifier, the first transmission tunnel being one of at least one transmission tunnel for communicating with the first server; generating a reply packet based on the jumbo frame identifier in the first jumbo frame packet; transmitting the reply packet to the first server through the first transmission tunnel, wherein the first server determines a probe result for the first transmission tunnel based on a time relationship between a transmitting time of the first jumbo frame packet and a receiving time of the reply packet; and receiving, through the first transmission tunnel, a second jumbo frame packet transmitted by the first server, the second jumbo frame packet being transmitted by the first server when the probe result indicates that the first transmission tunnel is suitable for jumbo frame transmission.
  12. 12 . The packet transmission method according to claim 11 , wherein generating the reply packet based on the jumbo frame identifier in the first jumbo frame packet comprises: extracting header information of the first jumbo frame packet; extracting the jumbo frame identifier from the header information of the first jumbo frame packet; and generating the reply packet based on the jumbo frame identifier.
  13. 13 . The packet transmission method according to claim 11 , wherein transmitting the reply packet to the first server through the first transmission tunnel comprises: writing a reply time of the reply packet into the reply packet, and transmitting the reply packet to the first server through the first transmission tunnel, wherein the first server determines the probe result for the first transmission tunnel based on a time relationship between the transmitting time of the first jumbo frame packet, the receiving time of the reply packet, and the reply time of the reply packet into the reply packet.
  14. 14 . A packet transmission apparatus, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor is configured to execute the instructions to: obtain a first jumbo frame packet, the first jumbo frame packet carrying a jumbo frame identifier; transmit the first jumbo frame packet to a second server through a first transmission tunnel, the first transmission tunnel being one of at least one transmission tunnel for communicating with the second server; determine, when receiving a reply packet returned by the second server based on a jumbo frame identifier in the first jumbo frame packet, a probe result for the first transmission tunnel based on a time relationship between a transmitting time of the first jumbo frame packet and a receiving time of the reply packet; and obtain, when the probe result indicates that the first transmission tunnel is suitable for jumbo frame transmission, a second jumbo frame packet and transmit the second jumbo frame packet to the second server through the first transmission tunnel.
  15. 15 . The packet transmission apparatus of claim 14 , wherein the processor, when being configured to determine, when receiving the reply packet returned by the second server based on the jumbo frame identifier in the first jumbo frame packet, the probe result for the first transmission tunnel based on the time relationship between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet, is configured to execute the instructions to: receive a third packet from the second server; and determine the probe result for the first transmission tunnel based on the time relationship between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet when determining that the third packet is the reply packet returned by the second server based on the jumbo frame identifier in the first jumbo frame packet.
  16. 16 . The packet transmission apparatus of claim 14 , wherein the processor, when being configured to determine the probe result for the first transmission tunnel based on the time relationship between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet, is configured to execute the instructions to: determine a difference between the transmitting time of the first jumbo frame packet and the receiving time of the reply packet as first duration; and determine, when the first duration is less than or equal to a preset first threshold, the probe result indicating that the first transmission tunnel is suitable for jumbo frame transmission.
  17. 17 . The packet transmission apparatus of claim 14 , wherein the processor, when being configured to transmit the first jumbo frame packet to the second server through the first transmission tunnel, is further configured to execute the instructions to: successively transmit the first jumbo frame packet to the second server through the first transmission tunnel in each of a plurality of probe time periods, two adjacent probe time periods being separated by a preset time interval.
  18. 18 . A non-transitory computer readable medium storing a plurality of instructions, wherein the plurality of instructions, when executed by a processor, configure the processor to perform the operations in the method according to claim 1 .
  19. 19 . A packet transmission apparatus, comprising a memory for storing instructions and a processor for executing the instructions, wherein the processor is configured to execute the instructions to perform the operations in the method according to claim 11 .
  20. 20 . A non-transitory computer readable medium storing a plurality of instructions, wherein the plurality of instructions, when executed by a processor, configure the processor to perform the operations in the method according to claim 11 .

Description

RELATED APPLICATION The present disclosure is a continuation of and claims the benefit of priority to PCT Application No. PCT/CN2024/123841, filed Oct. 10, 2024, and entitled MESSAGE TRANSMISSION METHOD, APPARATUS AND SYSTEM, AND STORAGE MEDIUM AND DEVICE, which is based on and claims the benefit of priority to Chinese Patent Application No. 2023113143021, filed with the China National Intellectual Property Administration on Oct. 11, 2023 and entitled “PACKET TRANSMISSION METHOD AND APPARATUS, STORAGE MEDIUM, DEVICE, AND SYSTEM.” The above applications are incorporated herein by reference in their entireties. FIELD OF THE TECHNOLOGY The present disclosure relates to the field of network technologies, and specifically, to a packet transmission method and apparatus, a storage medium, a device, and a system. BACKGROUND OF THE DISCLOSURE Currently, with development of internet technologies, to satisfy data transmission requirements, increasingly large Ethernet frame packets need to be transmitted between networks. Therefore, more networks start to perform data transmission by using jumbo frame (also referred to as giant frame) packets. In a related technology, not all tunnels between networks support forwarding of a jumbo frame packet. If an intermediate network device on a tunnel between the networks does not support forwarding of the jumbo frame packet, the intermediate network device returns a piece of error information to the network. After receiving the error information, the network may confirm that the corresponding tunnel does not support forwarding of the jumbo frame packet. However, if the intermediate network device needs to return the error information, a processor of the intermediate network device needs to process and analyze each received data packet. As a result, load of the processor of the intermediate network device is excessively high, and performance and a response speed of the intermediate network device are affected. Consequently, it is difficult for the networks to detect whether the tunnel supports forwarding of the jumbo frame packet, causing a transmission failure of the jumbo frame packet, and reducing efficiency of packet transmission between the networks. SUMMARY Embodiments of the present disclosure provide a packet transmission method and apparatus, a storage medium, a device, and a system, to improve packet transmission efficiency. To resolve the foregoing technical problem, the embodiments of the present disclosure provide the following technical solutions. A packet transmission method, performed by a first server, the method including: obtaining a first jumbo frame packet, the first jumbo frame packet carrying a jumbo frame identifier;transmitting the first jumbo frame packet to a second server through a first transmission tunnel, the first transmission tunnel being one of at least one transmission tunnel for communicating with the second server;determining a probe result for the first transmission tunnel based on a time relationship between transmitting time of the first jumbo frame packet and receiving time of a reply packet when receiving the reply packet returned by the second server based on the jumbo frame identifier in the first jumbo frame packet; andobtaining a second jumbo frame packet and transmitting the second jumbo frame packet to the second server through the first transmission tunnel when the probe result indicates that the first transmission tunnel is suitable for jumbo frame transmission. A packet transmission method, performed by a second server, the method including: receiving, through a first transmission tunnel, a first jumbo frame packet transmitted by a first server, the first jumbo frame packet carrying a jumbo frame identifier, and the first transmission tunnel being one of at least one transmission tunnel for communicating with the first server;generating a reply packet based on the jumbo frame identifier in the first jumbo frame packet;transmitting the reply packet to the first server through the first transmission tunnel, so that the first server determines a probe result for the first transmission tunnel based on a time relationship between transmitting time of the first jumbo frame packet and receiving time of the reply packet; andreceiving, through the first transmission tunnel, a second jumbo frame packet transmitted by the first server, the second jumbo frame packet being transmitted by the first server when the probe result indicates that the first transmission tunnel is suitable for jumbo frame transmission. A packet transmission apparatus, including: a packet obtaining unit, configured to obtain a first jumbo frame packet, the first jumbo frame packet carrying a jumbo frame identifier;a packet probe unit, configured to transmit the first jumbo frame packet to a second server through a first transmission tunnel, the first transmission tunnel being one of at least one transmission tunnel for communicating with the second server;a result deter