WO2022236621A1 - 一种数据包发送方法、装置及存储介质 - Google Patents

一种数据包发送方法、装置及存储介质 Download PDF

Info

Publication number
WO2022236621A1
WO2022236621A1 PCT/CN2021/092872 CN2021092872W WO2022236621A1 WO 2022236621 A1 WO2022236621 A1 WO 2022236621A1 CN 2021092872 W CN2021092872 W CN 2021092872W WO 2022236621 A1 WO2022236621 A1 WO 2022236621A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
data packet
router
sending
send
Prior art date
Application number
PCT/CN2021/092872
Other languages
English (en)
French (fr)
Inventor
陈栋
樊晓鹏
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN202180001528.9A priority Critical patent/CN115769558A/zh
Priority to EP21941197.2A priority patent/EP4340315A4/en
Priority to PCT/CN2021/092872 priority patent/WO2022236621A1/zh
Publication of WO2022236621A1 publication Critical patent/WO2022236621A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • 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/28Flow control; Congestion control in relation to timing considerations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols
    • 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/22Traffic shaping

Definitions

  • the present disclosure relates to the technical field of wireless communication, and in particular, to a data packet sending method, device and storage medium.
  • IP Internet Protocol
  • IP data packets also called IP packets
  • source devices also called sender devices
  • destination devices also called for the receiver device.
  • IP data packets 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 the IP address of the destination device and the network transmission mechanism of the router.
  • various networks are connected to each other through routers.
  • the function of the router is to choose the transmission path for the IP data packet.
  • the source device sends the IP data packet
  • the router that transmits the IP data packet is determined by the source device, that is, the source device is fully aware of each router that the IP data packet passes through, and specifies the specific time for each router to send the IP data packet, In this way, the precise time when the IP data packet arrives at the destination device is guaranteed.
  • the same router needs to send multiple IP data packets at the same time In this case, the processing capability of the router is very high. If the router's ability to process IP data packets cannot support sending multiple IP data packets at the same time Packet, so it cannot guarantee that the IP data packet reaches the destination device on time.
  • the present disclosure provides a data packet sending method, device and storage medium.
  • a method for sending a data packet which is applied to a first device, and the method includes:
  • the first data packet is sent; the first data packet includes: a router identification field and a time field; the router identification field includes a router identification, and the router identification is used to indicate sending the first data The router of the packet; the time field includes a first time and a second time corresponding to the router identifier; the first time and the second time are used to indicate the time range within which the router completes sending the first data packet .
  • the first time is the time when the router sends the first data packet
  • the second time is a time error that allows the router to send the first data packet relative to the first time
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet
  • the first time is an absolute time.
  • the first data packet is an Internet Protocol IP data packet.
  • the router identifier included in the router identifier field is a plurality of router identifiers in the routing flow table, and the plurality of router identifiers respectively correspond to the first time and the second time when the first data packet is sent ;
  • the multiple routers corresponding to the multiple router identifiers send the first data packet based on the routing flow table and the corresponding first time and second time.
  • the first data packet further includes a hop count field; the hop count field includes a hop count; and the hop count includes the total hops taken by the router indicated by the router identifier to send the first data packet number, and the number of hops from the router to the destination device.
  • a method for sending a data packet which is applied to a second device, and the method includes:
  • the first data packet is received; the first data packet includes: a router identification field and a time field; the router identification field includes a router identification, and the router identification is used to indicate sending the first data The router of the packet; the time field includes a first time and a second time corresponding to the router identifier; the first time and the second time are used to indicate a time range within which the router completes sending the first data packet.
  • the first time is the time when the router sends the first data packet
  • the second time is a time error that allows the router to send the first data packet relative to the first time
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet
  • the first time is an absolute time.
  • the first data packet is an Internet Protocol IP data packet.
  • the router identifier included in the router identifier field is a plurality of router identifiers in the routing flow table, and the plurality of router identifiers respectively correspond to the first time and the second time when the first data packet is sent ;
  • the multiple routers identify corresponding multiple routers, and send the first data packet based on the routing flow table and the corresponding first time and second time.
  • the first data packet further includes a hop count field; the hop count field includes a hop count; and the hop count includes the total hops taken by the router indicated by the router identifier to send the first data packet number, and the number of hops from the router to the destination device.
  • an apparatus for sending a data packet which is applied to a first device, and the apparatus includes:
  • a sending module configured to send a first data packet based on a first data packet format; the first data packet includes: a router identification field and a time field; the router identification field includes a router identification, and the router identification is used to indicate sending The router of the first data packet; the time field includes a first time and a second time corresponding to the router identifier; the first time and the second time are used to instruct the router to complete sending the first The time range of the packet.
  • the first time is the time when the router sends the first data packet
  • the second time is a time error that allows the router to send the first data packet relative to the first time
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet
  • the first time is an absolute time.
  • the first data packet is an Internet Protocol IP data packet.
  • the router identifier included in the router identifier field is a plurality of router identifiers in the routing flow table
  • the sending module is configured to send the first data packet to a router corresponding to a next router identifier based on multiple router identifiers in the routing flow table.
  • the first data packet further includes a hop count field; the hop count field includes a hop count; and the hop count includes the total hops taken by the router indicated by the router identifier to send the first data packet number, and the number of hops from the router to the destination device.
  • an apparatus for sending a data packet which is applied to a second device, and the apparatus includes:
  • the first data packet is received; the first data packet includes: a router identification field and a time field; the router identification field includes a router identification, and the router identification is used to indicate sending the first data
  • the router of the packet includes a first time and a second time corresponding to the router identifier; the first time and the second time are used to indicate the time range in which the router completes sending the first data packet .
  • the first time is the time when the router sends the first data packet
  • the second time is a time error that allows the router to send the first data packet relative to the first time
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet
  • the first time is an absolute time.
  • the first data packet is an Internet Protocol IP data packet.
  • the router identifier included in the router identifier field is a plurality of router identifiers in the routing flow table, and the plurality of router identifiers respectively correspond to a time range for sending the first data packet;
  • the data packet sending device also includes a sending module
  • the sending module is configured to send the first data packet to the routers corresponding to the router identifiers based on the routing flow table and the corresponding time range.
  • the first data packet further includes a hop count field; the hop count field includes a hop count; and the hop count includes the total hops taken by the router indicated by the router identifier to send the first data packet number, and the number of hops from the router to the destination device.
  • a device for sending a data packet including:
  • a processor a memory for storing processor-executable instructions; wherein, the processor is configured to: execute the first aspect or the data packet sending method described in any one of the implementation manners in the first aspect, or, execute the first aspect The data packet sending method described in any one of the implementation manners of the second aspect or the second aspect.
  • a non-transitory computer-readable storage medium When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the first aspect or the first The data packet sending method described in any one of the implementation manners of the second aspect, or enabling the mobile terminal to execute the second aspect or the data packet sending method described in any one of the second aspect implementation manners.
  • the technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: through the present disclosure, the time error for sending the first data packet is determined for the router sending the first data packet, so that the router sends the first data packet within the error range of the sending time The first data packet is sufficient, which can effectively reduce the pressure on the router to process data packets.
  • Fig. 1 is a system architecture diagram for transmitting IP data packets according to an exemplary embodiment.
  • Fig. 2 is a schematic diagram showing the format of an IP data packet according to an exemplary embodiment.
  • Fig. 3 is a flow chart showing a method for sending a data packet according to an exemplary embodiment.
  • Fig. 4 is a flow chart showing another method for sending a data packet according to an exemplary embodiment.
  • Fig. 5 is a flow chart showing another method for sending a data packet according to an exemplary embodiment.
  • Fig. 6 is a flow chart showing another method for sending a data packet according to an exemplary embodiment.
  • Fig. 7 is a block diagram of a data packet sending device according to an exemplary embodiment.
  • Fig. 8 is a block diagram of another device for sending a data packet according to an exemplary embodiment.
  • Fig. 9 is a block diagram showing a device for sending data packets according to an exemplary embodiment.
  • Fig. 10 is a block diagram showing another apparatus for sending data packets according to an exemplary embodiment.
  • IP is a protocol for information transmission between networks, which can transmit IP data packets from the source device to the destination device.
  • the IP data packet is usually transmitted based on the IP address of the destination device and the network transmission mechanism of the router.
  • IP stipulates that all devices on the Internet network (eg, the aforementioned source and destination devices) must have a unique IP address. In other words, there is a one-to-one correspondence between IP addresses and devices.
  • the IP data packet must contain the IP address of the destination device, and the data packet is transmitted to the destination device according to the IP address in the data packet.
  • each device on the Internet network can have multiple IP addresses, but each device has at least one unique IP address.
  • the Internet is a large network formed by many network connections. If you want to transmit IP data packets between the Internet, in addition to the IP address of the above-mentioned destination device, you must also have a network transmission mechanism of a router.
  • the network transmission mechanism through routers can transmit IP data packets to the destination device through multiple routers. Wherein, the network transmission mechanism of the router may also be referred to as an IP routing transmission mechanism.
  • Fig. 1 is a system architecture diagram for transmitting IP data packets according to an exemplary embodiment.
  • the communication method provided by the present disclosure can be applied to the architecture diagram of the communication system shown in FIG. 1 .
  • the source device ie, the source computer in the figure
  • the destination device ie, the destination computer in Figure 1
  • multiple routers ie, the destination computer in Figure 1
  • Fig. 2 is a schematic diagram showing the format of an IP data packet according to an exemplary embodiment.
  • an IP data packet includes a source address and a destination address, the format of which is shown in FIG. 2 .
  • the fixed part includes version, header length, differentiated services, total length, identification, flag, slice offset, time-to-live, protocol, header checksum, source address, and destination address. Also includes optional fields of variable length, etc.
  • the router forwards the IP data packet during the process of transmitting the IP data packet.
  • the transmission path of the IP data packet is unknown, and the IP data packet The processing time of the packet on each router cannot be determined. Therefore, after the source device sends the IP data packet, it cannot determine the time when the IP data packet arrives at the destination device.
  • the source device determines the router through which the IP data packet is transmitted, and determines the relative time (i.e. the specific time) for each router to process the IP data packet, and then determines that each router sends the IP data packet time.
  • the IP data packet includes a source device IP address, a destination device IP address, a router identifier for transmitting the IP data packet, and a processing time corresponding to the router identifier.
  • the identifier of the router used to transmit the IP data packet may be placed in the IP data packet in the form of a routing flow table.
  • the routing flow table includes a plurality of router addresses for transmitting IP data packets. As mentioned above, each router address corresponds to a processing time.
  • the routing flow table includes N router addresses for transmitting IP data packets, and the N router addresses respectively correspond to processing time. Router address A corresponds to the first time A; router address B corresponds to the first time B; ...; router address N corresponds to the processing time N.
  • the IP data packet is sent from the source device, and the IP data packet is transmitted according to the order of the router addresses in the routing flow table.
  • router address B is taken as an example.
  • the processing time B corresponding to the router address B in the IP data packet and the next router address C are determined.
  • the IP data packet is sent to the next hop in the routing flow table (ie, the next router address C). Until the IP data packet is transmitted to the destination address.
  • the present disclosure provides a data packet transmission method, by increasing the time error of sending the IP data packet for the router that forwards the IP data packet, so that the router can send the IP data packet within the time range of the time error based on the sending time, In this way, the precise time when the IP data packet arrives at the destination device is guaranteed, and the pressure on the router to process the data packet is reduced.
  • FIG. 1 the architecture diagram of a system for transmitting IP data packets shown in FIG. 1 is only for schematic illustration, and the wireless communication system may also include other network devices, such as core network devices, wireless relay devices and wireless backhaul equipment, etc. are not shown in FIG. 1 .
  • the embodiment of the present disclosure does not limit the number of network devices and the number of terminals included in the wireless communication system.
  • the wireless communication system in the embodiment of the present disclosure is a network that provides a wireless communication function.
  • Wireless communication systems can use different communication technologies, such as code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division multiple access (TDMA) , frequency division multiple access (FDMA), orthogonal frequency-division multiple access (OFDMA), single carrier frequency-division multiple access (single Carrier FDMA, SC-FDMA), carrier sense Multiple Access/Conflict Avoidance (Carrier Sense Multiple Access with Collision Avoidance).
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • TDMA time division multiple access
  • FDMA frequency division multiple access
  • OFDMA orthogonal frequency-division multiple access
  • single Carrier FDMA single Carrier FDMA
  • SC-FDMA carrier sense Multiple Access/Conflict Avoidance
  • Carrier Sense Multiple Access with Collision Avoidance Carrier Sense Multiple Access with Collision Avoidance
  • the network can be divided into 2G (English: generation) network, 3G network, 4G network or future evolution network, such as 5G network, 5G network can also be called a new wireless network ( New Radio, NR).
  • 2G International: generation
  • 3G network 4G network or future evolution network, such as 5G network
  • 5G network can also be called a new wireless network ( New Radio, NR).
  • New Radio New Radio
  • the present disclosure sometimes simply refers to a wireless communication network as a network.
  • the wireless access network device may be: a base station, an evolved base station (evolved node B, base station), a home base station, an access point (access point, AP) in a wireless fidelity (wireless fidelity, WIFI) system, a wireless relay Node, wireless backhaul node, transmission point (transmission point, TP) or transmission and reception point (transmission and reception point, TRP), etc., can also be gNB in the NR system, or it can also be a component or a part of equipment that constitutes a base station Wait.
  • the network device may also be a vehicle-mounted device.
  • V2X vehicle-to-everything
  • the network device may also be a vehicle-mounted device. It should be understood that in the embodiments of the present disclosure, no limitation is imposed on the specific technology and specific device form adopted by the network device.
  • a terminal may be a handheld device with a wireless connection function, a vehicle-mounted device, and the like.
  • examples of some terminals are: smart phones (Mobile Phone), pocket computers (Pocket Personal Computer, PPC), handheld computers, personal digital assistants (Personal Digital Assistant, PDA), notebook computers, tablet computers, wearable devices, or Vehicle equipment, etc.
  • V2X vehicle-to-everything
  • the terminal device may also be a vehicle-mounted device. It should be understood that the embodiment of the present disclosure does not limit the specific technology and specific device form adopted by the terminal.
  • Fig. 3 is a flow chart showing a method for sending a data packet according to an exemplary embodiment. As shown in FIG. 3 , the data packet sending method is used in the first device, and includes the following steps.
  • step S11 based on the format of the first data packet, the first data packet is sent.
  • the first data packet includes: a router identification field and a time field.
  • the router identification field includes a router identification, and the router identification is used to indicate the router that sends the first data packet.
  • the time field includes a first time and a second time corresponding to the router identifier; the first time and the second time are used to indicate the time range within which the router completes sending the first data packet.
  • the field corresponding to the first time and the field corresponding to the second time are added to the optional fields or padding fields included in the IP data packet format shown in FIG. 2 .
  • the field corresponding to the first time and the field corresponding to the second time may be added as new fields to the format shown in FIG. 2 .
  • the first time is the time when the router sends the first data packet, and the second time is relative to the first time, a time error that the router is allowed to send the first data packet.
  • the first time is an absolute time, that is, the moment when the router sends the first data packet.
  • the routers it passes through are determined by the sender, and the sender knows each router the first data packet passes through. And it is stipulated that each router sends the first data packet at a specific point in time (that is, absolute time), wherein, the method of obtaining the clock can be determined based on the GPS clock, and of course other methods for determining the clock can also be included. Specific limits.
  • the time at which the first data packet is sent out may be T, so as to ensure the precise time when the first data packet arrives at the destination address.
  • the first data packet also includes an error t that can be tolerated by each router passing through.
  • the time at which the first data packet is sent by the router is T-t ⁇ T+t.
  • the router only needs to send the data packet at T-t ⁇ T+t. In this way, the effect of reducing the router's ability to process data packets is achieved.
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet.
  • the first time and the second time are absolute times, that is, the moment when the router sends the first data packet.
  • the routers it passes through are determined by the sender, and the sender knows each router the first data packet passes through. And it is stipulated that each router sends the first data packet at a specific point in time (that is, absolute time), wherein, the method of obtaining the clock can be determined based on the GPS clock, and of course other methods for determining the clock can also be included. Specific limits.
  • the minimum time for sending the first data packet can be T1, and the maximum time for sending the first data packet can be T2, so as to ensure the precise time when the first data packet arrives at the destination address.
  • the time at which the first data packet is sent by the router is T1-T2. In other words, the router only needs to send the data packet at T1-T2. In this way, the effect of reducing the router's ability to process data packets is achieved.
  • the first data packet may be an IP data packet, and the present disclosure refers to the IP data packet as the first data packet for convenience of description.
  • the router ID included in the router ID field is multiple router IDs in the routing flow table, and the multiple router IDs respectively correspond to time ranges for sending the first data packet.
  • Fig. 4 is a flowchart showing a method for sending a data packet according to an exemplary embodiment. As shown in FIG. 4, the data packet sending method is used in the first device, and includes the following steps.
  • step S21 multiple routers corresponding to multiple router identifiers send the first data packet based on the routing flow table and the corresponding first time and second time.
  • the first data packet in addition to the source address and the destination address, also includes the routing list (also called the flow table) and the specific time when the current router sends it to the next router (or destination address) (absolute time).
  • the router identifier in the present disclosure is the router address included in the routing list.
  • the first time is the time when the router sends the first data packet
  • the second time is relative to the first time, allowing the router to send the first data packet with a time error.
  • the first data packet includes source address, destination address, routing address 1, router 1 data packet transmission time (i.e. router 1 first time), router 1 data packet transmission time tolerance (i.e. router 1 second time), Routing address 2, router 2 data packet sending time (that is, router 2's first time), router 2 data packet sending time tolerance (that is, router 2's second time), ..., routing address N, router N data packet sending Time (that is, the first time of router N), and the allowable error of the sending time of router N's data packet (that is, the second time of router N).
  • the sending time is an absolute time.
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet.
  • the first data packet includes source address, destination address, routing address 1, the minimum time for router 1 data packet transmission (i.e. the first time of router 1), the maximum time for router 1 data packet transmission (i.e. the second time of router 1), Routing address 2, router 2 packet sending minimum time (i.e. router 2 first time), router 2 packet sending maximum time (i.e. router 2 second time), ..., routing address N, router N data packet sending The minimum time (that is, the first time of router N), and the maximum time for sending data packets of router N (that is, the second time of router N).
  • the sending time is an absolute time.
  • the first data packet After the first data packet is sent from the sender, the first data packet is sent to the next hop (hop) according to the routing list in the flow table in turn. In other words, the current router sends it to the next router in the routing list until it reaches the destination address. That is: the first data packet starts from the source address, is sent to routing address 1, routing address 2, ..., routing address N in sequence, and finally to the destination address. Therefore, the time when the first data packet arrives at the destination address from the source address can be accurately and controllable, and the time error of the first data packet arriving at the destination address can be judged.
  • the first data packet further includes a hop number field.
  • the hop number field includes the hop number.
  • the hop count includes the total hop count of the router indicated by the router identifier for sending the first data packet, and the hop count from the router to the destination device.
  • by adding a hop count field in the first data packet it indicates the number of router addresses that the first data packet needs to pass through from the source address to the destination address.
  • the embodiment of the present disclosure also provides a data packet sending method.
  • Fig. 5 is a flowchart showing a method for sending a data packet according to an exemplary embodiment. As shown in FIG. 5, the data packet sending method is used in the second device, and includes the following steps.
  • step S31 based on the format of the first data packet, the first data packet is received.
  • the first data packet includes: a router identification field and a time field.
  • the router identification field includes a router identification, and the router identification is used to indicate the router that sends the first data packet.
  • the time field includes a first time and a second time corresponding to the router identifier; the first time and the second time are used to indicate the time range within which the router completes sending the first data packet.
  • the second device may determine, based on the optional fields or padding fields included in the IP packet format shown in FIG. 2 , the field corresponding to the first time and the field corresponding to the second time.
  • the field corresponding to the first time and the field corresponding to the second time may also be determined based on newly added fields based on FIG. 2 .
  • the second device may be a router
  • the source device determines the first data packet, and determines a router identifier for transmitting the first data packet, and a first time and a second time corresponding to the router identifier.
  • the router receives the first data packet sent by the source device.
  • the first time is the time when the router sends the first data packet, and the second time is relative to the first time, a time error that the router is allowed to send the first data packet.
  • the first time is an absolute time, that is, the moment when the router sends the first data packet.
  • the routers it passes through are determined by the sender, and the sender knows each router the first data packet passes through. And it is stipulated that each router sends the first data packet at a specific point in time (that is, absolute time), wherein, the method of obtaining the clock can be determined based on the GPS clock, and of course other methods for determining the clock can also be included. Specific limits.
  • the time at which the first data packet is sent out may be T, so as to ensure the precise time when the first data packet arrives at the destination address.
  • the first data packet also includes an error t that can be tolerated by each router passing through.
  • the time at which the first data packet is sent by the router is T-t ⁇ T+t.
  • the router only needs to send the data packet at T-t ⁇ T+t. In this way, the effect of reducing the router's ability to process data packets is achieved.
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet.
  • the first time and the second time are absolute times.
  • the routers it passes through are determined by the sender, and the sender knows each router the first data packet passes through. And it is stipulated that each router sends the first data packet at a specific point in time (that is, absolute time), wherein, the method of obtaining the clock can be determined based on the GPS clock, and of course other methods for determining the clock can also be included. Specific limits.
  • the minimum time for sending the first data packet can be T1, and the maximum time for sending the first data packet can be T2, so as to ensure the precise time when the first data packet arrives at the destination address.
  • the time at which the first data packet is sent by the router is T1-T2. In other words, the router only needs to send the data packet at T1-T2. In this way, the effect of reducing the router's ability to process data packets is achieved.
  • the first data packet may be an IP data packet, and the present disclosure refers to the IP data packet as the first data packet for convenience of description.
  • the router ID included in the router ID field is multiple router IDs in the routing flow table, and the multiple router IDs respectively correspond to time ranges for sending the first data packet.
  • Fig. 6 is a flowchart showing a method for sending a data packet according to an exemplary embodiment. As shown in Figure 6, the data packet sending method is used in the second device and includes the following steps.
  • step S41 multiple routers corresponding to multiple router identifiers send the first data packet based on the routing flow table and the corresponding first time and second time.
  • the first data packet in addition to the source address and the destination address, also includes the routing list (also called the flow table) and the specific time when the current router sends it to the next router (or destination address) (absolute time).
  • the router identifier in the present disclosure is the router address included in the routing list.
  • the first time is the time when the router sends the first data packet
  • the second time is relative to the first time, allowing the router to send the first data packet with a time error.
  • the first data packet includes source address, destination address, routing address 1, router 1 data packet sending time (i.e. router 1 first time), router 1 data packet sending time allowable error (i.e. router 1 second time), Routing address 2, router 2 data packet sending time (i.e. router 2 first time), router 2 data packet sending time tolerance (i.e. router 2 second time), ..., routing address N, router N data packet sending Time (that is, the first time of router N), and the allowable error of the sending time of router N's data packet (that is, the second time of router N).
  • the sending time is an absolute time.
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet.
  • the first data packet includes source address, destination address, routing address 1, the minimum time for router 1 data packet transmission (i.e. the first time of router 1), the maximum time for router 1 data packet transmission (i.e. the second time of router 1), Routing address 2, router 2 packet sending minimum time (i.e. router 2 first time), router 2 packet sending maximum time (i.e. router 2 second time), ..., routing address N, router N data packet sending The minimum time (that is, the first time of router N), and the maximum time for sending data packets of router N (that is, the second time of router N).
  • the sending time is an absolute time.
  • the first data packet After the first data packet is sent from the sender, the first data packet is sent to the next hop (hop) according to the routing list in the flow table in turn. In other words, the current router sends it to the next router in the routing list until it reaches the destination address. That is: the first data packet starts from the source address, is sent to routing address 1, routing address 2, ..., routing address N in sequence, and finally to the destination address. Therefore, the time when the first data packet arrives at the destination address from the source address can be accurately and controllable, and the time error of the first data packet arriving at the destination address can be judged.
  • the first data packet further includes a hop number field.
  • the hop number field includes the hop number.
  • the hop count includes the total hop count of the router indicated by the router identifier for sending the first data packet, and the hop count from the router to the destination device.
  • by adding a hop count field in the first data packet it indicates the number of router addresses that the first data packet needs to pass through from the source address to the destination address.
  • an embodiment of the present disclosure further provides a device for sending a data packet.
  • the data packet sending device provided by the embodiments of the present disclosure includes corresponding hardware structures and/or software modules for performing various functions.
  • the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the technical solutions of the embodiments of the present disclosure.
  • Fig. 7 is a block diagram of a data packet sending device according to an exemplary embodiment.
  • the data packet sending device 100 includes a sending module 101 .
  • the sending module 101 is configured to send a first data packet based on a first data packet format.
  • the first data packet includes: a router identification field and a time field.
  • the router identification field includes a router identification, and the router identification is used to indicate the router that sends the first data packet.
  • the time field includes a first time and a second time corresponding to the router identifier. The first time and the second time are used to indicate the time when the router finishes sending the first data packet.
  • the first time is the time when the router sends the first data packet
  • the second time is relative to the first time, the time error that the router is allowed to send the first data packet.
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet.
  • the first time is an absolute time.
  • the first data packet is an Internet Protocol IP data packet.
  • the router identifiers included in the router identifier field are multiple router identifiers in the routing flow table.
  • the sending module is configured to, based on multiple router identifiers in the routing flow table, send the first data packet to a router corresponding to a next router identifier.
  • the first data packet further includes a hop number field.
  • the hop count field includes the hop count.
  • the hop count includes the total hop count of the router indicated by the router identifier for sending the first data packet, and the hop count from the router to the destination device.
  • Fig. 8 is a block diagram of a data packet sending device according to an exemplary embodiment.
  • the data packet sending device 200 includes a receiving module 201 .
  • the receiving module 201 is configured to receive a first data packet based on a first data packet format.
  • the first data packet includes: a router identification field and a time field.
  • the router identification field includes a router identification, and the router identification is used to indicate the router that sends the first data packet.
  • the time field includes a first time and a second time corresponding to the router identifier. The first time and the second time are used to indicate the time when the router finishes sending the first data packet.
  • the first time is the time when the router sends the first data packet
  • the second time is relative to the first time, the time error that the router is allowed to send the first data packet.
  • the first time is the minimum time for the router to send the first data packet
  • the second time is the maximum time for the router to send the first data packet.
  • the first time is an absolute time.
  • the first data packet is an Internet Protocol IP data packet.
  • the router IDs included in the router ID field are multiple router IDs in the routing flow table, and the multiple router IDs respectively correspond to time ranges for sending the first data packet.
  • the data packet sending device also includes a sending module 202 .
  • the sending module 202 is used to identify multiple routers corresponding to multiple routers, and send the first data packet based on the routing flow table and the corresponding time range.
  • the first data packet further includes a hop number field.
  • the hop count field includes the hop count.
  • the hop count includes the total hop count of the router indicated by the router identifier for sending the first data packet, and the hop count from the router to the destination device.
  • Fig. 9 is a block diagram of an apparatus 300 for sending data packets according to an exemplary embodiment.
  • the apparatus 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input/output (I/O) interface 312, sensor component 314, and communication component 316 .
  • the processing component 302 generally controls the overall operations of the device 300, such as those associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 302 may include one or more modules that facilitate interaction between processing component 302 and other components. For example, processing component 302 may include a multimedia module to facilitate interaction between multimedia component 308 and processing component 302 .
  • the memory 304 is configured to store various types of data to support operations at the device 300 . Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and the like.
  • the memory 304 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • Power component 306 provides power to various components of device 300 .
  • Power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 300 .
  • the multimedia component 308 includes a screen that provides an output interface between the device 300 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action.
  • the multimedia component 308 includes a front camera and/or a rear camera. When the device 300 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
  • the audio component 310 is configured to output and/or input audio signals.
  • the audio component 310 includes a microphone (MIC), which is configured to receive external audio signals when the device 300 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 304 or sent via communication component 316 .
  • the audio component 310 also includes a speaker for outputting audio signals.
  • the I/O interface 312 provides an interface between the processing component 302 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
  • Sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for device 300 .
  • the sensor component 314 can detect the open/closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, and the sensor component 314 can also detect a change in the position of the device 300 or a component of the device 300 , the presence or absence of user contact with the device 300 , the device 300 orientation or acceleration/deceleration and the temperature change of the device 300 .
  • the sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 316 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices.
  • the device 300 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component 316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication.
  • NFC near field communication
  • the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wide Band
  • Bluetooth Bluetooth
  • apparatus 300 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
  • non-transitory computer-readable storage medium including instructions, such as the memory 304 including instructions, which can be executed by the processor 320 of the device 300 to complete the above method.
  • the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
  • Fig. 10 is a block diagram of an apparatus 400 for sending data packets according to an exemplary embodiment.
  • the apparatus 400 may be provided as a server.
  • apparatus 400 includes processing component 422 , which further includes one or more processors, and a memory resource represented by memory 432 for storing instructions executable by processing component 422 , such as application programs.
  • the application program stored in memory 432 may include one or more modules each corresponding to a set of instructions.
  • the processing component 422 is configured to execute instructions to perform the above method.
  • Device 400 may also include a power component 426 configured to perform power management of device 400 , a wired or wireless network interface 450 configured to connect device 400 to a network, and an input-output (I/O) interface 458 .
  • the device 400 can operate based on an operating system stored in the memory 432, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
  • “plurality” in the present disclosure refers to two or more, and other quantifiers are similar thereto.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • the singular forms “a”, “said” and “the” are also intended to include the plural unless the context clearly dictates otherwise.
  • first, second, etc. are used to describe various information, but the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not imply a specific order or degree of importance. In fact, expressions such as “first” and “second” can be used interchangeably.
  • first information may also be called second information, and similarly, second information may also be called first information.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种数据包发送方法、装置及存储介质,其中数据包发送方法,应用于第一设备,包括:基于第一数据包格式,发送第一数据包(S11);第一数据包包括:路由器标识字段和时间字段;路由器标识字段包括路由器标识,路由器标识用于指示发送第一数据包的路由器;时间字段包括与路由器标识对应的时间范围;时间范围用于指示路由器完成发送第一数据包的时间。通过本方法可以在保证IP数据包到达目的设备的精准时间的情况下,减少路由器对于处理数据包的压力。

Description

一种数据包发送方法、装置及存储介质 技术领域
本公开涉及无线通信技术领域,尤其涉及一种数据包发送方法、装置及存储介质。
背景技术
网际互联协议(Internet Protocol,IP)是网络之间信息传送的协议,可将IP数据包(也称为IP信息包)从源设备(也称为发送端设备),传送到目的设备(也称为接收端设备)。在将IP数据包从源设备传送到目的设备的过程中,通常基于目的设备的IP地址和路由器的网络传输机制进行IP数据包的传输。
相关技术中,各个网络通过路由器相互连接。路由器的功能是为IP数据包选择传送的路径。源设备发送IP数据包,传输该IP数据包的路由器,由源设备确定,即,源设备完全可知该IP数据包经过的每个路由器,且规定每个路由器发送该IP数据包的具体时间,从而保证IP数据包到达目的设备的精准时间。但是,存在同一个路由器在同一时间需要发送多个IP数据包的情况,在该情况下对路由器的处理能力要求很高,如果路由器处理IP数据包的能力不能支持在同一时间发送多个IP数据包,从而不能保证IP数据包准时到达目的设备。
发明内容
为克服相关技术中存在的问题,本公开提供一种数据包发送方法、装置及存储介质。
根据本公开实施例的第一方面,提供一种数据包发送方法,应用于第一设备,所述方法包括:
基于第一数据包格式,发送第一数据包;所述第一数据包包括:路由器标识字段和时间字段;所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所述第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间范围。
一种实施方式中,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
一种实施方式中,所述第一时间为绝对时间。
一种实施方式中,所述第一数据包为网际互联协议IP数据包。
一种实施方式中,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器 标识,所述多个路由器标识分别对应有发送所述第一数据包的第一时间和第二时间;所述多个路由器标识对应的多个路由器基于所述路由流表和对应的第一时间和第二时间,发送所述第一数据包。
一种实施方式中,所述第一数据包还包括跳数字段;所述跳数字段中包括跳数;所述跳数包括路由器标识所指示的路由器进行发送所述第一数据包的总跳数,以及所述路由器到目的设备的跳数。
根据本公开实施例的第二方面,提供一种数据包发送方法,应用于第二设备,所述方法包括:
基于第一数据包格式,接收第一数据包;所述第一数据包包括:路由器标识字段和时间字段;所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间范围。
一种实施方式中,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
一种实施方式中,所述第一时间为绝对时间。
一种实施方式中,所述第一数据包为网际互联协议IP数据包。
一种实施方式中,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,所述多个路由器标识分别对应有发送所述第一数据包的第一时间和第二时间;所述多个路由器标识对应的多个路由器,基于所述路由流表和对应的第一时间和第二时间,发送所述第一数据包。
一种实施方式中,所述第一数据包还包括跳数字段;所述跳数字段中包括跳数;所述跳数包括路由器标识所指示的路由器进行发送所述第一数据包的总跳数,以及所述路由器到目的设备的跳数。
根据本公开实施例的第三方面,提供一种数据包发送装置,应用于第一设备,所述装置包括:
发送模块,用于基于第一数据包格式,发送第一数据包;所述第一数据包包括:路由器标识字段和时间字段;所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所述第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间范 围。
一种实施方式中,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
一种实施方式中,所述第一时间为绝对时间。
一种实施方式中,所述第一数据包为网际互联协议IP数据包。
一种实施方式中,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器标识;
所述发送模块,用于基于所述路由流表中的多个路由器标识,向下一个路由器标识对应的路由器,发送所述第一数据包。
一种实施方式中,所述第一数据包还包括跳数字段;所述跳数字段中包括跳数;所述跳数包括路由器标识所指示的路由器进行发送所述第一数据包的总跳数,以及所述路由器到目的设备的跳数。
根据本公开实施例的第四方面,提供一种数据包发送装置,应用于第二设备,所述装置包括:
基于第一数据包格式,接收第一数据包;所述第一数据包包括:路由器标识字段和时间字段;所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所述第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间范围。
一种实施方式中,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
一种实施方式中,所述第一时间为绝对时间。
一种实施方式中,所述第一数据包为网际互联协议IP数据包。
一种实施方式中,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,所述多个路由器标识分别对应有发送所述第一数据包的时间范围;
数据包发送装置还包括发送模块;
所述发送模块,用于所述多个路由器标识对应的多个路由器,基于所述路由流表和对应的时间范围,发送所述第一数据包。
一种实施方式中,所述第一数据包还包括跳数字段;所述跳数字段中包括跳数;所述跳数包括路由器标识所指示的路由器进行发送所述第一数据包的总跳数,以及所述路由器到目的设备的跳数。
根据本公开实施例的第五方面,提供一种数据包发送装置,包括:
处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:执行第一方面或第一方面中任意一种实施方式所述的数据包发送方法,或,执行第二方面或第二方面中任意一种实施方式所述的数据包发送方法。
根据本公开实施例的第六方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行第一方面或第一方面中任意一种实施方式所述的数据包发送方法,或,使得移动终端能够执行第二方面或第二方面中任意一种实施方式所述的数据包发送方法。
本公开的实施例提供的技术方案可以包括以下有益效果:通过本公开为发送第一数据包的路由器确定用于发送该第一数据包的时间误差,使得路由器在发送时间的误差范围内发送该第一数据包即可,可以有效减少路由器处理数据包的压力。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种传输IP数据包的系统架构图。
图2是根据一示例性实施例示出的一种IP数据包的格式示意图。
图3是根据一示例性实施例示出的一种数据包发送方法的流程图。
图4是根据一示例性实施例示出的又一种数据包发送方法的流程图。
图5是根据一示例性实施例示出的又一种数据包发送方法的流程图。
图6是根据一示例性实施例示出的又一种数据包发送方法的流程图。
图7是根据一示例性实施例示出的一种数据包发送装置框图。
图8是根据一示例性实施例示出的又一种数据包发送装置框图。
图9是根据一示例性实施例示出的一种用于数据包发送的装置的框图。
图10是根据一示例性实施例示出的又一种用于数据包发送的装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
在通信技术中,IP是网络之间信息传送的协议,可将IP数据包从源设备,传送到目的设备。在将IP数据包从源设备传送到目的设备的过程中,通常基于目的设备的IP地址和路由器的网络传输机制进行IP数据包的传输。
在一方面中,IP规定互联网网络上所有的设备(例如,上述源设备和目的设备)都必须有一个唯一的IP地址。换言之,IP地址与设备存在一一对应关系。IP数据包中都必须包含有目的设备的IP地址,根据数据包中的IP地址将数据包传输至目的设备。其中,互联网网络上的每个设备可以有多个IP地址,但是,每个设备至少有一个唯一的IP地址。
另一方面中,互联网是由许多个网络连接形成的大型网络,如果要在互联网之间传输IP数据包,除了上述的目的设备的IP地址以外还必须有路由器的网络传输机制。通过路由器的网络传输机制可将IP数据包通过多个路由器传输到目的设备。其中,路由器的网络传输机制还可以称为是IP路由传输机制。
图1是根据一示例性实施例示出的一种传输IP数据包的系统架构图。本公开提供的通信方法可以应用于图1所示的通信系统架构图中。如图1所示,源设备(即图中来源计算机)可以基于图1所示的架构发送IP数据包,通过多个路由器将IP数据包传输至目的设备(即,图1中目的计算机)。
图2是根据一示例性实施例示出的一种IP数据包的格式示意图。在相关技术中,IP数据包包含源地址和目的地址,格式如图2所示。包括固定部分,固定部分包括版本,首部长度,区分服务,总长度,标识,标志,片偏移,生存时间,协议,首部检查和,源地址以及目的地址。还包括长度可变的可选字段等。
由此可知,IP数据包在由源设备发送之后,在传输IP数据包的过程中,由路由器对IP数据包进行转发,对于源设备而言,不可知IP数据包的传输路径,且IP数据包在每个路由器上的处理时间无法确定。因此,源设备在发送IP数据包之后,并不能确定IP数据包到达目的设备的时间。
基于此,相关技术中提出,由源设备确定传输IP数据包经过的路由器,并确定,每个路由器处理该IP数据包的相对时间(即具体时间),进而确定每个路由器发送该IP数据包的时间。
示例性的,IP数据包包括源设备IP地址、目的设备IP地址、用于传输所述IP数据包 的路由器标识以及与路由器标识对应的处理时间。其中可以将用于传输所述IP数据包的路由器标识以路由流表的形式置于IP数据包中。其中在路由流表中包括传输IP数据包的多个路由器地址。如上述,每个路由器地址对应有处理时间,例如,路由流表中包括传输IP数据包的N个路由器地址,则N个路由器地址分别对应有处理时间。路由器地址A,对应第一时间A;路由器地址B,对应第一时间B;……;路由器地址N,对应处理时间N。
在本公开实施例中,IP数据包在源设备发出,根据路由流表中的路由器地址的顺序传输该IP数据包。一种实施方式中,以路由器地址B为例。响应于路由器地址B接收到IP数据包,确定IP数据包中路由器地址B对应的处理时间B,以及下一个路由器地址C。路由器地址B在处理IP数据包后,在处理时间B,发送IP数据包至路由流表中的下一跳(即,下一个路由器地址C)。直到将IP数据包传输至目的地址。
但是,相关技术中,需要严格按照时间要求,在数据包中定义的具体时间发送该IP数据包,对于路由器而言,要求路由器的能力很高。一般情况下,路由器会并行处理很多来自不同设备、不同源地址的数据包,这些数据包也被发向不同设备、不同目的地址。当这个路由器需要同一时刻发送的数据包很多时,这将对路由器的并行处理能力挑战很大。
基于此,本公开提供一种数据包传输方法,通过为转发IP数据包的路由器增加发送IP数据包的时间误差,使得路由器基于发送时间在时间误差的时间范围内发送该IP数据包即可,从而保证IP数据包到达目的设备的精准时间,并且减少了路由器对于处理数据包的压力。
可以理解的是,图1所示的一种传输IP数据包的系统架构图仅是进行示意性说明,无线通信系统中还可包括其它网络设备,例如还可以包括核心网设备、无线中继设备和无线回传设备等,在图1中未画出。本公开实施例对该无线通信系统中包括的网络设备数量和终端数量不做限定。
进一步可以理解的是,本公开实施例的无线通信系统,是一种提供无线通信功能的网络。无线通信系统可以采用不同的通信技术,例如码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、时分多址(time division multiple access,TDMA)、频分多址(frequency division multiple access,FDMA)、正交频分多址(orthogonal frequency-division multiple access,OFDMA)、单载波频分多址(single Carrier FDMA,SC-FDMA)、载波侦听多路访问/冲突避免(Carrier Sense Multiple Access with Collision Avoidance)。根据不同网络的容量、速率、时延等因素可以将网络分为2G(英文:generation)网络、3G网络、4G网络或者未来演进网络,如5G网络,5G网络也可称为是新无线网络(New Radio,NR)。为了方便描述,本公开有时会将无线通信 网络简称为网络。
进一步的,本公开中涉及的网络设备也可以称为无线接入网设备。该无线接入网设备可以是:基站、演进型基站(evolved node B,基站)、家庭基站、无线保真(wireless fidelity,WIFI)系统中的接入点(access point,AP)、无线中继节点、无线回传节点、传输点(transmission point,TP)或者发送接收点(transmission and reception point,TRP)等,还可以为NR系统中的gNB,或者,还可以是构成基站的组件或一部分设备等。当为车联网(V2X)通信系统时,网络设备还可以是车载设备。应理解,本公开的实施例中,对网络设备所采用的具体技术和具体设备形态不做限定。
进一步的,本公开中涉及的设备,也可以称为终端设备、用户设备(User Equipment,UE)、移动台(Mobile Station,MS)、移动终端(Mobile Terminal,MT)等,是一种向用户提供语音和/或数据连通性的设备,例如,终端可以是具有无线连接功能的手持式设备、车载设备等。目前,一些终端的举例为:智能手机(Mobile Phone)、口袋计算机(Pocket Personal Computer,PPC)、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、笔记本电脑、平板电脑、可穿戴设备、或者车载设备等。此外,当为车联网(V2X)通信系统时,终端设备还可以是车载设备。应理解,本公开实施例对终端所采用的具体技术和具体设备形态不做限定。
图3是根据一示例性实施例示出的一种数据包发送方法的流程图。如图3所示,数据包发送方法用于第一设备中,包括以下步骤。
在步骤S11中,基于第一数据包格式,发送第一数据包。
在本公开实施例中,第一数据包包括:路由器标识字段和时间字段。
其中,路由器标识字段包括路由器标识,路由器标识用于指示发送第一数据包的路由器。
其中,时间字段包括与路由器标识对应的第一时间和第二时间;第一时间和第二时间用于指示路由器完成发送第一数据包的时间范围。
其中,在一种实施方式中,将与第一时间对应的字段以及与第二时间对应的字段添加至图2所示IP数据包格式中包括的可选字段或填充字段中。在另一种实施方式中,还可以基于图2,将与第一时间对应的字段以及与第二时间对应的字段作为新增字段,添加至图2所示的格式中。
一种实施方式中,第一时间为路由器发送第一数据包的时间,第二时间为相对于第一时间,允许路由器发送第一数据包的时间误差。并且在本公开一些实施例中,第一时间为绝对时间,即,路由器发送第一数据包的时刻。
示例性的,第一数据包经过源设备(即发送端)发出后,经过的路由器,由发送端决定,发送端可知第一数据包经过的每个路由器。且规定每一个路由器在具体的时间点(即,绝对时间)发出该第一数据包,其中,取得时钟的办法,可以基于GPS时钟确定,当然也可以包括其他的确定时钟的方法,再次不做具体限定。其中发出该第一数据包的时间可以为T,从而保证第一数据包到达目的地址的精准时间。并且,第一数据包中还包括经过的每一个路由器可以容许的误差t。使得该第一数据包在该路由器发出的时间为T-t~T+t,换言之,路由器只要在T-t~T+t发送出该数据包即可。从而达到降低路由器对数据包的处理能力的效果。
一种实施方式中,第一时间为路由器发送第一数据包的时间最小时间,第二时间为路由器发送第一数据包的时间最大时间。并且在本公开一些实施例中,第一时间和第二时间为绝对时间,即,路由器发送第一数据包的时刻。
示例性的,第一数据包经过源设备(即发送端)发出后,经过的路由器,由发送端决定,发送端可知第一数据包经过的每个路由器。且规定每一个路由器在具体的时间点(即,绝对时间)发出该第一数据包,其中,取得时钟的办法,可以基于GPS时钟确定,当然也可以包括其他的确定时钟的方法,再次不做具体限定。其中发出该第一数据包的最小时间可以为T1,发出该第一数据包的最大时间可以为T2,从而保证第一数据包到达目的地址的精准时间。使得该第一数据包在该路由器发出的时间为T1~T2,换言之,路由器只要在T1~T2发送出该数据包即可。从而达到降低路由器对数据包的处理能力的效果。
其中,第一数据包可以为IP数据包,本公开为便于描述将IP数据包称为第一数据包。
在本公开一些实施例中,路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,所述多个路由器标识分别对应有发送所述第一数据包的时间范围。
图4是根据一示例性实施例示出的一种数据包发送方法的流程图。如图4所示,数据包发送方法用于第一设备中,包括以下步骤。
在步骤S21中,多个路由器标识对应的多个路由器基于路由流表和对应的第一时间和第二时间,发送第一数据包。
在本公开实施例中,在第一数据包中除了包含源地址和目的地址外,还包含经过路由列表(也称为流表)以及当前路由器发往下个路由器(或者目的地址)的具体时间(绝对时间)。其中在本公开中的路由器标识为路由列表中包括的路由器地址。
示例性的,若第一时间为路由器发送第一数据包的时间,第二时间为相对于第一时间,允许路由器发送第一数据包的时间误差。则第一数据包包括源地址、目的地址、路由地址 1、路由器1数据包发送时间(即路由器1的第一时间)、路由器1数据包发送时间容许误差(即路由器1的第二时间)、路由地址2、路由器2数据包发送时间(即路由器2的第一时间)、路由器2数据包发送时间容许误差(即路由器2的第二时间)、……、路由地址N、路由器N数据包发送时间(即路由器N的第一时间)、路由器N数据包发送时间容许误差(即路由器N的第二时间)。其中,发送时间为绝对时间。
示例性的,若第一时间为路由器发送第一数据包的时间最小时间,第二时间为路由器发送第一数据包的时间最大时间。则第一数据包包括源地址、目的地址、路由地址1、路由器1数据包发送最小时间(即路由器1的第一时间)、路由器1数据包发送最大时间(即路由器1的第二时间)、路由地址2、路由器2数据包发送最小时间(即路由器2的第一时间)、路由器2数据包发送最大时间(即路由器2的第二时间)、……、路由地址N、路由器N数据包发送最小时间(即路由器N的第一时间)、路由器N数据包发送最大时间(即路由器N的第二时间)。其中,发送时间为绝对时间。
第一数据包从发送端发出后,第一数据包依次按照流表中的路由列表,发往下一跳(hop),换言之,当前路由器发往路由列表中的下一个路由器,直至发送到目的地址。即:第一数据包从源地址出发,依次发往路由地址1、路由地址2、……、路由地址N,最后发送到目的地址。从而实现第一数据包从源地址到达目的地址的时间可以做到精准可控,而且可以判断第一数据包到达目的地址的时间误差。
在本公开一些实施例中,第一数据包还包括跳数字段。
其中,跳数字段中包括跳数。跳数包括路由器标识所指示的路由器进行发送第一数据包的总跳数,以及路由器到目的设备的跳数。换言之,本公开实施例通过在第一数据包中增加跳数字段,表示第一数据包从源地址到目的地址需要经过的路由器地址的数量。
基于相同/相似的构思,本公开实施例还提供一种数据包发送方法。
图5是根据一示例性实施例示出的一种数据包发送方法的流程图。如图5所示,数据包发送方法用于第二设备中,包括以下步骤。
在步骤S31中,基于第一数据包格式,接收第一数据包。
在本公开实施例中,第一数据包包括:路由器标识字段和时间字段。
其中,路由器标识字段包括路由器标识,路由器标识用于指示发送第一数据包的路由器。
其中,时间字段包括与路由器标识对应的第一时间和第二时间;第一时间和第二时间用于指示路由器完成发送第一数据包的时间范围。
其中,在一种实施方式中,第二设备可以基于图2所示IP数据包格式中包括的可选字 段或填充字段确定,与第一时间对应的字段以及与第二时间对应的字段。在另一种实施方式中,还可以基于图2,基于新增字段确定,与第一时间对应的字段以及与第二时间对应的字段。
在本公开一些实施例中,第二设备可以为路由器,源设备确定第一数据包,并确定用于传输第一数据包的路由器标识,以及与路由器标识对应的第一时间和第二时间。路由器接收源设备发送的第一数据包。
一种实施方式中,第一时间为路由器发送第一数据包的时间,第二时间为相对于第一时间,允许路由器发送第一数据包的时间误差。并且在本公开一些实施例中,第一时间为绝对时间,即,路由器发送第一数据包的时刻。
示例性的,第一数据包经过源设备(即发送端)发出后,经过的路由器,由发送端决定,发送端可知第一数据包经过的每个路由器。且规定每一个路由器在具体的时间点(即,绝对时间)发出该第一数据包,其中,取得时钟的办法,可以基于GPS时钟确定,当然也可以包括其他的确定时钟的方法,再次不做具体限定。其中发出该第一数据包的时间可以为T,从而保证第一数据包到达目的地址的精准时间。并且,第一数据包中还包括经过的每一个路由器可以容许的误差t。使得该第一数据包在该路由器发出的时间为T-t~T+t,换言之,路由器只要在T-t~T+t发送出该数据包即可。从而达到降低路由器对数据包的处理能力的效果。
一种实施方式中,第一时间为路由器发送第一数据包的时间最小时间,第二时间为路由器发送第一数据包的时间最大时间。并且在本公开一些实施例中,第一时间和第二时间为绝对时间。
示例性的,第一数据包经过源设备(即发送端)发出后,经过的路由器,由发送端决定,发送端可知第一数据包经过的每个路由器。且规定每一个路由器在具体的时间点(即,绝对时间)发出该第一数据包,其中,取得时钟的办法,可以基于GPS时钟确定,当然也可以包括其他的确定时钟的方法,再次不做具体限定。其中发出该第一数据包的最小时间可以为T1,发出该第一数据包的最大时间可以为T2,从而保证第一数据包到达目的地址的精准时间。使得该第一数据包在该路由器发出的时间为T1~T2,换言之,路由器只要在T1~T2发送出该数据包即可。从而达到降低路由器对数据包的处理能力的效果。
其中,第一数据包可以为IP数据包,本公开为便于描述将IP数据包称为第一数据包。
在本公开一些实施例中,路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,所述多个路由器标识分别对应有发送所述第一数据包的时间范围。
图6是根据一示例性实施例示出的一种数据包发送方法的流程图。如图6所示,数据 包发送方法用于第二设备中,包括以下步骤。
在步骤S41中,多个路由器标识对应的多个路由器基于路由流表和对应的第一时间和第二时间,发送第一数据包。
在本公开实施例中,在第一数据包中除了包含源地址和目的地址外,还包含经过路由列表(也称为流表)以及当前路由器发往下个路由器(或者目的地址)的具体时间(绝对时间)。其中在本公开中的路由器标识为路由列表中包括的路由器地址。
示例性的,若第一时间为路由器发送第一数据包的时间,第二时间为相对于第一时间,允许路由器发送第一数据包的时间误差。则第一数据包包括源地址、目的地址、路由地址1、路由器1数据包发送时间(即路由器1的第一时间)、路由器1数据包发送时间容许误差(即路由器1的第二时间)、路由地址2、路由器2数据包发送时间(即路由器2的第一时间)、路由器2数据包发送时间容许误差(即路由器2的第二时间)、……、路由地址N、路由器N数据包发送时间(即路由器N的第一时间)、路由器N数据包发送时间容许误差(即路由器N的第二时间)。其中,发送时间为绝对时间。
示例性的,若第一时间为路由器发送第一数据包的时间最小时间,第二时间为路由器发送第一数据包的时间最大时间。则第一数据包包括源地址、目的地址、路由地址1、路由器1数据包发送最小时间(即路由器1的第一时间)、路由器1数据包发送最大时间(即路由器1的第二时间)、路由地址2、路由器2数据包发送最小时间(即路由器2的第一时间)、路由器2数据包发送最大时间(即路由器2的第二时间)、……、路由地址N、路由器N数据包发送最小时间(即路由器N的第一时间)、路由器N数据包发送最大时间(即路由器N的第二时间)。其中,发送时间为绝对时间。
第一数据包从发送端发出后,第一数据包依次按照流表中的路由列表,发往下一跳(hop),换言之,当前路由器发往路由列表中的下一个路由器,直至发送到目的地址。即:第一数据包从源地址出发,依次发往路由地址1、路由地址2、……、路由地址N,最后发送到目的地址。从而实现第一数据包从源地址到达目的地址的时间可以做到精准可控,而且可以判断第一数据包到达目的地址的时间误差。
在本公开一些实施例中,第一数据包还包括跳数字段。
其中,跳数字段中包括跳数。跳数包括路由器标识所指示的路由器进行发送第一数据包的总跳数,以及路由器到目的设备的跳数。换言之,本公开实施例通过在第一数据包中增加跳数字段,表示第一数据包从源地址到目的地址需要经过的路由器地址的数量。
基于相同的构思,本公开实施例还提供一种数据包发送装置。
可以理解的是,本公开实施例提供的数据包发送装置为了实现上述功能,其包含了执 行各个功能相应的硬件结构和/或软件模块。结合本公开实施例中所公开的各示例的单元及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超出本公开实施例的技术方案的范围。
图7是根据一示例性实施例示出的一种数据包发送装置框图。参照图7,该数据包发送装置100包括发送模块101。
发送模块101,用于基于第一数据包格式,发送第一数据包。第一数据包包括:路由器标识字段和时间字段。路由器标识字段包括路由器标识,路由器标识用于指示发送第一数据包的路由器。时间字段包括与路由器标识对应的第一时间和第二时间。第一时间和第二时间用于指示路由器完成发送第一数据包的时间。
在本公开实施例中,第一时间为路由器发送第一数据包的时间,第二时间为相对于第一时间,允许路由器发送第一数据包的时间误差。或,第一时间为路由器发送第一数据包的时间最小时间,第二时间为路由器发送第一数据包的时间最大时间。
在本公开实施例中,第一时间为绝对时间。
在本公开实施例中,第一数据包为网际互联协议IP数据包。
在本公开实施例中,路由器标识字段包括的路由器标识为路由流表中的多个路由器标识。发送模块用于,基于所述路由流表中的多个路由器标识,向下一个路由器标识对应的路由器,发送所述第一数据包。
在本公开实施例中,第一数据包还包括跳数字段。跳数字段中包括跳数。跳数包括路由器标识所指示的路由器进行发送第一数据包的总跳数,以及路由器到目的设备的跳数。
图8是根据一示例性实施例示出的一种数据包发送装置框图。参照图8,该数据包发送装置200包括接收模块201。
接收模块201,用于基于第一数据包格式,接收第一数据包。第一数据包包括:路由器标识字段和时间字段。路由器标识字段包括路由器标识,路由器标识用于指示发送第一数据包的路由器。时间字段包括与路由器标识对应的第一时间和第二时间。第一时间和第二时间用于指示路由器完成发送第一数据包的时间。
在本公开实施例中,第一时间为路由器发送所述第一数据包的时间,第二时间为相对于第一时间,允许路由器发送第一数据包的时间误差。或,第一时间为路由器发送第一数据包的时间最小时间,第二时间为路由器发送第一数据包的时间最大时间。
在本公开实施例中,第一时间为绝对时间。
在本公开实施例中,第一数据包为网际互联协议IP数据包。
在本公开实施例中,路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,多个路由器标识分别对应有发送第一数据包的时间范围。
数据包发送装置还包括发送模块202。
发送模块202用于多个路由器标识对应的多个路由器,基于路由流表和对应的时间范围,发送第一数据包。
在本公开实施例中,第一数据包还包括跳数字段。跳数字段中包括跳数。跳数包括路由器标识所指示的路由器进行发送第一数据包的总跳数,以及路由器到目的设备的跳数。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图9是根据一示例性实施例示出的一种用于数据包发送的装置300的框图。例如,装置300可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图9,装置300可以包括以下一个或多个组件:处理组件302,存储器304,电力组件306,多媒体组件308,音频组件310,输入/输出(I/O)接口312,传感器组件314,以及通信组件316。
处理组件302通常控制装置300的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件302可以包括一个或多个处理器320来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件302可以包括一个或多个模块,便于处理组件302和其他组件之间的交互。例如,处理组件302可以包括多媒体模块,以方便多媒体组件308和处理组件302之间的交互。
存储器304被配置为存储各种类型的数据以支持在装置300的操作。这些数据的示例包括用于在装置300上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器304可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件306为装置300的各种组件提供电力。电力组件306可以包括电源管理系统,一个或多个电源,及其他与为装置300生成、管理和分配电力相关联的组件。
多媒体组件308包括在所述装置300和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板, 屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件308包括一个前置摄像头和/或后置摄像头。当装置300处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件310被配置为输出和/或输入音频信号。例如,音频组件310包括一个麦克风(MIC),当装置300处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器304或经由通信组件316发送。在一些实施例中,音频组件310还包括一个扬声器,用于输出音频信号。
I/O接口312为处理组件302和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件314包括一个或多个传感器,用于为装置300提供各个方面的状态评估。例如,传感器组件314可以检测到装置300的打开/关闭状态,组件的相对定位,例如所述组件为装置300的显示器和小键盘,传感器组件314还可以检测装置300或装置300一个组件的位置改变,用户与装置300接触的存在或不存在,装置300方位或加速/减速和装置300的温度变化。传感器组件314可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件314还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件314还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件316被配置为便于装置300和其他设备之间有线或无线方式的通信。装置300可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件316经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件316还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置300可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包 括指令的存储器304,上述指令可由装置300的处理器320执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
图10是根据一示例性实施例示出的一种用于数据包发送的装置400的框图。例如,装置400可以被提供为一服务器。参照图10,装置400包括处理组件422,其进一步包括一个或多个处理器,以及由存储器432所代表的存储器资源,用于存储可由处理组件422的执行的指令,例如应用程序。存储器432中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件422被配置为执行指令,以执行上述方法。
装置400还可以包括一个电源组件426被配置为执行装置400的电源管理,一个有线或无线网络接口450被配置为将装置400连接到网络,和一个输入输出(I/O)接口458。装置400可以操作基于存储在存储器432的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
进一步可以理解的是,本公开中“多个”是指两个或两个以上,其它量词与之类似。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
进一步可以理解的是,术语“第一”、“第二”等用于描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,并不表示特定的顺序或者重要程度。实际上,“第一”、“第二”等表述完全可以互换使用。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。
进一步可以理解的是,本公开实施例中尽管在附图中以特定的顺序描述操作,但是不应将其理解为要求按照所示的特定顺序或是串行顺序来执行这些操作,或是要求执行全部所示的操作以得到期望的结果。在特定环境中,多任务和并行处理可能是有利的。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可 以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (22)

  1. 一种数据包发送方法,其特征在于,应用于第一设备,所述方法包括:
    基于第一数据包格式,发送第一数据包;
    所述第一数据包包括:路由器标识字段和时间字段;
    所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;
    所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所述第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间范围。
  2. 根据权利要求1所述的数据包发送方法,其特征在于,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
    所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
  3. 根据权利要求2所述的数据包发送方法,其特征在于,所述第一时间为绝对时间。
  4. 根据权利要求1所述的数据包发送方法,其特征在于,所述第一数据包为网际互联协议IP数据包。
  5. 根据权利要求1所述的数据包发送方法,其特征在于,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,所述多个路由器标识分别对应有发送所述第一数据包的第一时间和第二时间;
    所述多个路由器标识对应的多个路由器,基于所述路由流表和对应的第一时间和第二时间,发送所述第一数据包。
  6. 根据权利要求1所述的数据包发送方法,其特征在于,所述第一数据包还包括跳数字段;
    所述跳数字段中包括跳数;所述跳数包括路由器标识所指示的路由器进行发送所述第一数据包的总跳数,以及所述路由器到目的设备的跳数。
  7. 一种数据包发送方法,其特征在于,应用于第二设备,所述方法包括:
    基于第一数据包格式,接收第一数据包;
    所述第一数据包包括:路由器标识字段和时间字段;
    所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;
    所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所述第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间范围。
  8. 根据权利要求7所述的数据包发送方法,其特征在于,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
    所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
  9. 根据权利要求8所述的数据包发送方法,其特征在于,所述第一时间为绝对时间。
  10. 根据权利要求7所述的数据包发送方法,其特征在于,所述第一数据包为网际互联协议IP数据包。
  11. 根据权利要求7所述的数据包发送方法,其特征在于,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,所述多个路由器标识分别对应有发送所述第一数据包的第一时间和第二时间;
    所述多个路由器标识对应的多个路由器,基于所述路由流表和对应的第一时间和第二时间,发送所述第一数据包。
  12. 根据权利要求7所述的数据包发送方法,其特征在于,所述第一数据包还包括跳数字段;
    所述跳数字段中包括跳数;所述跳数包括路由器标识所指示的路由器进行发送所述第一数据包的总跳数,以及所述路由器到目的设备的跳数。
  13. 一种数据包发送装置,其特征在于,应用于第一设备,所述装置包括:发送模块,用于基于第一数据包格式,发送第一数据包;
    所述第一数据包包括:路由器标识字段和时间字段;
    所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;
    所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所述第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间。
  14. 根据权利要求13所述的数据包发送装置,其特征在于,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
    所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
  15. 根据权利要求13所述的数据包发送装置,其特征在于,所述第一时间为绝对时间。
  16. 根据权利要求13所述的数据包发送装置,其特征在于,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器标识;
    发送模块,用于基于所述路由流表中的多个路由器标识,向下一个路由器标识对应的路由器,发送所述第一数据包。
  17. 一种数据包发送装置,其特征在于,应用于第二设备,所述装置包括:
    接收模块,用于基于第一数据包格式,接收第一数据包;
    所述第一数据包包括:路由器标识字段和时间字段;
    所述路由器标识字段包括路由器标识,所述路由器标识用于指示发送所述第一数据包的路由器;
    所述时间字段包括与所述路由器标识对应的第一时间和第二时间;所述第一时间和第二时间用于指示所述路由器完成发送所述第一数据包的时间。
  18. 根据权利要求17所述的数据包发送装置,其特征在于,所述第一时间为所述路由器发送所述第一数据包的时间,所述第二时间为相对于第一时间,允许路由器发送所述第一数据包的时间误差;或
    所述第一时间为所述路由器发送所述第一数据包的时间最小时间,所述第二时间为所述路由器发送所述第一数据包的时间最大时间。
  19. 根据权利要求17所述的数据包发送装置,其特征在于,所述第一时间为绝对时间。
  20. 根据权利要求17所述的数据包发送装置,其特征在于,所述路由器标识字段包括的路由器标识为路由流表中的多个路由器标识,所述多个路由器标识分别对应有发送所述第一数据包的时间范围;
    所述数据包发送装置还包括:发送模块;
    所述发送模块,用于所述多个路由器标识对应的多个路由器,基于所述路由流表和对应的时间范围,发送所述第一数据包。
  21. 一种数据包发送装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:执行权利要求1-6中任意一项所述的数据包发送方法,或,执行权利要求7-14中任意一项所述的数据包发送方法。
  22. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行权利要求1-7中任意一项所述的数据包发送方法,或,使得移动终端能够执行权利要求7-14中任意一项所述的数据包发送方法。
PCT/CN2021/092872 2021-05-10 2021-05-10 一种数据包发送方法、装置及存储介质 WO2022236621A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202180001528.9A CN115769558A (zh) 2021-05-10 2021-05-10 一种数据包发送方法、装置及存储介质
EP21941197.2A EP4340315A4 (en) 2021-05-10 2021-05-10 METHOD AND APPARATUS FOR SENDING DATA PACKETS, AND STORAGE MEDIUM
PCT/CN2021/092872 WO2022236621A1 (zh) 2021-05-10 2021-05-10 一种数据包发送方法、装置及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/092872 WO2022236621A1 (zh) 2021-05-10 2021-05-10 一种数据包发送方法、装置及存储介质

Publications (1)

Publication Number Publication Date
WO2022236621A1 true WO2022236621A1 (zh) 2022-11-17

Family

ID=84028966

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/092872 WO2022236621A1 (zh) 2021-05-10 2021-05-10 一种数据包发送方法、装置及存储介质

Country Status (3)

Country Link
EP (1) EP4340315A4 (zh)
CN (1) CN115769558A (zh)
WO (1) WO2022236621A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026559A (zh) * 2007-01-23 2007-08-29 华为技术有限公司 一种建立通信的方法及路由器
US20120320933A1 (en) * 2011-06-01 2012-12-20 Adva Ag Optical Networking Method and apparatus for transporting time related information in a packet switched network
CN104079400A (zh) * 2013-03-27 2014-10-01 美国博通公司 为数据包加盖时间戳
CN106412991A (zh) * 2015-07-30 2017-02-15 深圳市中兴微电子技术有限公司 一种数据传输方法、发送装置及接收装置
WO2017036180A1 (zh) * 2015-09-02 2017-03-09 中兴通讯股份有限公司 报文的处理方法及装置
CN110708763A (zh) * 2019-12-02 2020-01-17 武汉慧联无限科技有限公司 一种调度方法、装置及计算机存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080123682A1 (en) * 2006-06-27 2008-05-29 Justin Michael Yackoski Method for scheduling transmissions in an ad hoc network
EP2095550B1 (en) * 2006-08-22 2018-10-03 Juniper Networks, Inc. Apparatus and method of synchronizing distribution of packet services across a distributed network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026559A (zh) * 2007-01-23 2007-08-29 华为技术有限公司 一种建立通信的方法及路由器
US20120320933A1 (en) * 2011-06-01 2012-12-20 Adva Ag Optical Networking Method and apparatus for transporting time related information in a packet switched network
CN104079400A (zh) * 2013-03-27 2014-10-01 美国博通公司 为数据包加盖时间戳
CN106412991A (zh) * 2015-07-30 2017-02-15 深圳市中兴微电子技术有限公司 一种数据传输方法、发送装置及接收装置
WO2017036180A1 (zh) * 2015-09-02 2017-03-09 中兴通讯股份有限公司 报文的处理方法及装置
CN110708763A (zh) * 2019-12-02 2020-01-17 武汉慧联无限科技有限公司 一种调度方法、装置及计算机存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4340315A4 *

Also Published As

Publication number Publication date
EP4340315A4 (en) 2024-06-12
CN115769558A (zh) 2023-03-07
EP4340315A1 (en) 2024-03-20

Similar Documents

Publication Publication Date Title
WO2023070563A1 (zh) 传输配置指示状态确定方法、装置及存储介质
WO2019153355A1 (zh) 随机接入时机的配置方法及装置、随机接入方法及装置
WO2018196102A1 (zh) 信息传递方法、装置及计算机可读存储介质
WO2022193194A1 (zh) 一种带宽部分配置方法、带宽部分配置装置及存储介质
WO2022261859A1 (zh) 一种连接释放方法、连接释放装置及存储介质
WO2019090723A1 (zh) 数据传输方法及装置
WO2021142796A1 (zh) 通信处理方法、装置及计算机存储介质
WO2021127915A1 (zh) 信息获取方法、信息获取装置及存储介质
WO2022236621A1 (zh) 一种数据包发送方法、装置及存储介质
WO2022236615A1 (zh) 一种数据包传输方法、数据包传输装置及存储介质
WO2023123123A1 (zh) 一种频域资源确定方法、装置及存储介质
WO2022160246A1 (zh) 一种数据包传输方法、数据包传输装置及存储介质
WO2022120611A1 (zh) 一种参数配置方法、参数配置装置及存储介质
WO2022160352A1 (zh) 路径传输时延的确定方法、装置、通信设备及存储介质
WO2023283927A1 (zh) 一种数据传输方法、数据传输装置及存储介质
CN115244910B (zh) 网络路径确定方法、装置、通信设备及存储介质
WO2023283926A1 (zh) 一种数据传输方法、数据传输装置及存储介质
WO2022116103A1 (zh) 波束指示方法、波束指示装置及存储介质
CN113473441B (zh) 数据转发方法及装置、节点设备以及存储介质
WO2023283924A1 (zh) 一种数据传输方法、数据传输装置及存储介质
WO2023272511A1 (zh) 一种小区切换方法、小区切换装置及存储介质
WO2023092412A1 (zh) 终端与网络同步的方法、装置、通信设备及存储介质
WO2023065080A1 (zh) 测距能力开放的方法、装置、通信设备及存储介质
US20230300603A1 (en) Capability determination method, capability determination apparatus and storage medium
WO2023005898A1 (zh) 多终端联合会话管理方法、网络侧设备及终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21941197

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18289978

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2021941197

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021941197

Country of ref document: EP

Effective date: 20231211