Search

US-12627604-B2 - Data packet transmission methods and data packet transmission apparatus

US12627604B2US 12627604 B2US12627604 B2US 12627604B2US-12627604-B2

Abstract

A data packet transmission method, performed by a first device, includes: determining an Internet Protocol (IP) data packet. The IP data packet comprises a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier. The first time is time when the router sends the IP data packet.

Inventors

  • Dong Chen

Assignees

  • BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.

Dates

Publication Date
20260512
Application Date
20210129

Claims (12)

  1. 1 . A data packet transmission method, performed by a first device, the method comprising: determining an Internet Protocol (IP) data packet, wherein the IP data packet comprises a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, and wherein the first time is a predetermined absolute time when the router sends the IP data packet; wherein after receiving and processing the IP data packet, the router sends the IP data packet to a next hop in a routing flow table at the first time; wherein the router identifier refers to a plurality of router identifiers included in the routing flow table, the routing flow table further comprises an order of the plurality of router identifiers, and the plurality of router identifiers respectively correspond to the first time, wherein the plurality of router identifiers correspond to a plurality of routers; wherein the IP data packet further comprises a predetermined second time when a router corresponding to a previous router address of a destination IP address jumps to the destination IP address for transmitting the IP data packet.
  2. 2 . The method according to claim 1 , wherein the router identifier is a router address.
  3. 3 . The method according to claim 1 , wherein the IP data packet further comprises hop count field information; the hop count field information comprises a number of hops; and the number of hops comprises a total number of hops between routers identified by the router identifiers, and a number of hops that the router corresponding to the previous router address of the destination IP address jumps to the destination IP address for transmitting the IP data packet.
  4. 4 . The method according to claim 1 , further comprising: sending the IP data packet.
  5. 5 . A data packet transmission method, performed by a second device, the method comprising: receiving an Internet Protocol (IP) data packet, wherein the IP data packet comprises a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, and wherein the first time is a predetermined absolute time when the router sends the IP data packet; wherein after receiving and processing the IP data packet, the router sends the IP data packet to a next hop in a routing flow table at the first time; wherein the router identifier refers to a plurality of router identifiers included in the routing flow table, the routing flow table further comprises an order of the plurality of router identifiers, and the plurality of router identifiers respectively correspond to the first time, wherein the plurality of router identifiers correspond to a plurality of routers; wherein the IP data packet further comprises a predetermined second time when a router corresponding to a previous router address of a destination IP address jumps to the destination IP address for transmitting the IP data packet.
  6. 6 . The method according to claim 5 , further comprising: sending the IP data packet based on the first time.
  7. 7 . The method according to claim 6 , wherein the router identifier is a router address.
  8. 8 . The method according to claim 5 , wherein the IP data packet further comprises hop count field information; the hop count field information comprises a number of hops; and the number of hops comprises a total number of hops between routers identified by the router identifiers, and a number of hops that the router corresponding to the previous router address of the destination IP address jumps to the destination IP address for transmitting the IP data packet.
  9. 9 . A data packet transmission apparatus, comprising: a processor; and a memory configured to store instructions; wherein the instructions when executed by the processor, cause the data packet transmission apparatus to: determine an Internet Protocol (IP) data packet, wherein the IP data packet comprises a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, and wherein the first time is a predetermined absolute time when the router sends the IP data packet; wherein after receiving and processing the IP data packet, the router sends the IP data packet to a next hop in a routing flow table at the first time; wherein the router identifier refers to a plurality of router identifiers included in the routing flow table, the routing flow table further comprises an order of the plurality of router identifiers, and the plurality of router identifiers respectively correspond to the first time, wherein the plurality of router identifiers correspond to a plurality of routers; wherein the IP data packet further comprises a predetermined second time when a router corresponding to a previous router address of a destination IP address jumps to the destination IP address for transmitting the IP data packet.
  10. 10 . A data packet transmission apparatus, comprising: a processor; and a memory configured to store instructions, and wherein the instructions when executed by the processor, cause the data packet transmission apparatus to perform the data packet transmission method according to claim 5 ; wherein the method is performed by the second device, the method comprising: receiving an Internet Protocol (IP) data packet, wherein the IP data packet comprises a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, and wherein the first time is predetermined absolute time when the router sends the IP data packet; wherein after receiving and processing the IP data packet, the router sends the IP data packet to a next hop in a routing flow table at the first time; wherein the router identifier refers to a plurality of router identifiers included in the routing flow table, the routing flow table further comprises an order of the plurality of router identifiers, and the plurality of router identifiers respectively correspond to the first time, wherein the plurality of router identifiers correspond to a plurality of routers; wherein the IP data packet further comprises a predetermined second time when a router corresponding to a previous router address of a destination IP address jumps to the destination IP address for transmitting the IP data packet.
  11. 11 . A non-transitory computer-readable storage medium including instructions, the instructions when executed by a processor of a mobile terminal, cause the mobile terminal to perform the data packet transmission method according to claim 1 ; wherein the method is performed by the first device, the method comprising: determining an Internet Protocol (IP) data packet, wherein the IP data packet comprises a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, and wherein the first time is predetermined absolute time when the router sends the IP data packet; wherein after receiving and processing the IP data packet, the router sends the IP data packet to a next hop in a routing flow table at the first time; wherein the router identifier refers to a plurality of router identifiers included in the routing flow table, the routing flow table further comprises an order of the plurality of router identifiers, and the plurality of router identifiers respectively correspond to the first time, wherein the plurality of router identifiers correspond to a plurality of routers; wherein the IP data packet further comprises a predetermined second time when a router corresponding to a previous router address of a destination IP address jumps to the destination IP address for transmitting the IP data packet.
  12. 12 . A non-transitory computer-readable storage medium including instructions, the instructions when executed by a processor of a mobile terminal, cause the mobile terminal to perform the data packet transmission method according to claim 5 ; wherein the method is performed by the second device, the method comprising: receiving an Internet Protocol (IP) data packet, wherein the IP data packet comprises a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, and wherein the first time is predetermined absolute time when the router sends the IP data packet; wherein after receiving and processing the IP data packet, the router sends the IP data packet to a next hop in a routing flow table at the first time; wherein the router identifier refers to a plurality of router identifiers included in the routing flow table, the routing flow table further comprises an order of the plurality of router identifiers, and the plurality of router identifiers respectively correspond to the first time, wherein the plurality of router identifiers correspond to a plurality of routers; wherein the IP data packet further comprises a predetermined second time when a router corresponding to a previous router address of a destination IP address jumps to the destination IP address for transmitting the IP data packet.

Description

CROSS REFERENCE TO RELATED APPLICATIONS This application is a National Stage of International Application No. PCT/CN2021/074404, filed on Jan. 29, 2021, the disclosure of which is incorporated herein by reference in its entirety for all purposes. BACKGROUND Internet Protocol (IP) is a protocol for information transmission between networks, and can transmit an IP data packet (also referred to as an IP information packet) from a source device (also referred to as a sending device) to a destination device (also referred to as a receiving device). In the process of transmitting the IP data packet from the source device to the destination device, the IP data packet is usually transmitted based on an IP address of the destination device and a network transmission mechanism of routers. SUMMARY The present disclosure relates to the technical field of wireless communication, and in particular to data packet transmission methods, data packet transmission apparatuses, and a storage medium. According to a first aspect of the embodiments of the present disclosure, there is provided a data packet transmission method, performed by a first device, the method including: determining an Internet Protocol (IP) data packet; where the IP data packet includes a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, where the first time is time when the router sends the IP data packet. According to a second aspect of the embodiments of the present disclosure, there is provided a data packet transmission method, performed by a second device, the method including: receiving an Internet Protocol (IP) data packet; where the IP data packet includes a router identifier of a router for transmitting the IP data packet, and a first time corresponding to the router identifier, where the first time is time when the router sends the IP data packet. According to a third aspect of the embodiments of the present disclosure, there is provided a data packet transmission apparatus, including: a processor; and a memory configured to store executable instructions by the processor; the processor is configured to perform the data packet transmission method described in any implementation of the first aspect or the data packet transmission method described in any implementation of the second aspect. According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, where instructions in the storage medium, when are executed by a processor of a mobile terminal, cause the mobile terminal to perform the data packet transmission method described in any implementation of the first aspect or the data packet transmission method described in any implementation of the second aspect. It should be understood that the above general descriptions and subsequent detailed descriptions are merely illustrative and explanatory, and shall not constitute limitation to the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings herein, which are incorporated in and constitute a part of the specification, illustrate examples consistent with the present disclosure, and together with the specification, serve to explain the principles of the present disclosure. FIG. 1 is a diagram illustrating a system architecture for transmitting an IP data packet according to an exemplary embodiment of the present disclosure. FIG. 2 is a schematic diagram illustrating a format of an IP data packet according to an exemplary embodiment of the present disclosure. FIG. 3 is a flowchart illustrating a data packet transmission method according to an exemplary embodiment of the present disclosure. FIG. 4 is a flowchart illustrating a data packet transmission method according to an exemplary embodiment of the present disclosure. FIG. 5 is a flowchart illustrating a data packet transmission method according to an exemplary embodiment of the present disclosure. FIG. 6 is a flowchart illustrating a data packet transmission method according to an exemplary embodiment of the present disclosure. FIG. 7 is a block diagram illustrating a data packet transmission apparatus according to an exemplary embodiment of the present disclosure. FIG. 8 is a block diagram illustrating a data packet transmission apparatus according to an exemplary embodiment of the present disclosure. FIG. 9 is a block diagram illustrating an apparatus for data packet transmission according to an exemplary embodiment of the present disclosure. FIG. 10 is a block diagram illustrating an apparatus for data packet transmission according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following descriptions involve the drawings, like numerals in different drawings refer to like or similar elements unl