Methods for sending data packet, related devices and storage medium
A method for sending a data packet is performed by a first device. The method includes: sending a first data packet based on a format of the first data packet; in which the first data packet includes a router identifier field and a time field; the router identifier field includes a router identifier and the router identifier is used for indicating a router for sending the first data packet; the time field includes a first time and a second time corresponding to the router identifier, and the first time and the second time are used for indicating a time range within which the router completes sending the first data packet.
1 . A method for sending a data packet, performed by a first device, comprising:
sending a first data packet based on a format of the first data packet;
wherein the first data packet comprises a router identifier field and a time field;
the router identifier field comprises a router identifier and the router identifier is used for indicating a router for sending the first data packet; and
the time field comprises a first time and a second time corresponding to the router identifier, and the first time and the second time are used for indicating a time range within which the router completes sending the first data packet.
2 . The method of claim 1 , wherein the first time is a time when the router sends the first data packet and the second time is a time offset, relative to the first time, allowed by the router for sending the first data packet; or
the first time is an earliest time for the router to send the first data packet and the second time is a latest time for the router to send the first data packet.
3 . The method of claim 2 , wherein the first time is an absolute time.
4 . The method of claim 1 , wherein the first data packet is an Internet Protocol (IP) data packet.
5 . The method of claim 1 , wherein the router identifier field comprises a plurality of router identifiers contained in a routing table, and each of the plurality of router identifiers has a respective first time and a respective second time for sending the first data packet;
a plurality of routers corresponding to the plurality of router identifiers send the first data packet based on the routing table, respective first time and respective second time.
6 . The method of claim 1 , wherein the first data packet further comprises a hop count field;
the hop count field comprises a number of hops, and the number of hops comprises a total number of hops for a transmission of the first data packet by the router identified by the router identifier and a number of hops from the router to a destination device.
7 . A method for sending a data packet, performed by a second device, comprising:
receiving a first data packet based on a format of the first data packet;
wherein the first data packet comprises a router identifier field and a time field;
the router identifier field comprises a router identifier and the router identifier is used for indicating a router for sending the first data packet; and
the time field comprises a first time and a second time corresponding to the router identifier, and the first time and the second time are used for indicating a time range within which the router completes sending the first data packet.
8 . The method of claim 7 , wherein the first time is a time when the router sends the first data packet and the second time is a time offset, relative to the first time, allowed by the router for sending the first data packet; or
the first time is an earliest time for the router to send the first data packet and the second time is a latest time for the router to send the first data packet.
9 . The method of claim 8 , wherein the first time is an absolute time.
10 . The method of claim 7 , wherein the first data packet is an Internet Protocol (IP) data packet.
11 . The method of claim 7 , wherein the router identifier field comprises a plurality of router identifiers contained in a routing table, and each of the plurality of router identifiers has a respective first time and a respective second time for sending the first data packet;
a plurality of routers corresponding to the plurality of router identifiers send respective first data packet based on the routing table, respective first time and respective second time.
12 . The method of claim 7 , wherein the first data packet further comprises a number of hops field;
the number of hops field comprises a number of hops, and the number of hops comprises a total number of hops for a transmission of the first data packet by the router identified by the router identifier and a number of hops from the router to a destination device.
13 . A device for sending a data packet, comprising:
a processor; and
a memory storing machine-readable instructions that, when executed by the processor, cause the processor to:
send a first data packet based on a format of the first data packet;
wherein the first data packet comprises a router identifier field and a time field;
the router identifier field comprises a router identifier and the router identifier is used for indicating a router for sending the first data packet;
the time field comprises a first time and a second time corresponding to the router identifier, and the first time and the second time are used for indicating a time range within which the router completes sending the first data packet.
14 . A non-transitory computer-readable storage medium, wherein when instructions stored on the storage medium are executed by a processor of a mobile terminal, the mobile terminal is caused to perform the method of claim 1 .
15 . The device of claim 13 , wherein the first time is a time when the router sends the first data packet and the second time is a time offset, relative to the first time, allowed by the router for sending the first data packet; or
the first time is an earliest time for the router to send the first data packet and the second time is a latest time for the router to send the first data packet.
16 . The device of claim 15 , wherein the first time is an absolute time.
17 . The device of claim 13 , wherein the first data packet is an Internet Protocol (IP) data packet.
18 . The device of claim 13 , wherein the router identifier field comprises a plurality of router identifiers contained in a routing table, and each of the plurality of router identifiers has a respective first time and a respective second time for sending the first data packet;
a plurality of routers corresponding to the plurality of router identifiers send respective first data packet based on the routing table, respective first time and respective second time.
19 . A device for sending a data packet, comprising:
a processor; and
a memory storing machine-readable instructions that, when executed by the processor, cause the processor to perform the method of claim 7 .
20 . A non-transitory computer-readable storage medium, wherein when instructions stored on the storage medium are executed by a processor of a mobile terminal, the mobile terminal is caused to perform the method of claim 7 .