WO2020042039A1 - 通信方法和设备 - Google Patents

通信方法和设备 Download PDF

Info

Publication number
WO2020042039A1
WO2020042039A1 PCT/CN2018/103091 CN2018103091W WO2020042039A1 WO 2020042039 A1 WO2020042039 A1 WO 2020042039A1 CN 2018103091 W CN2018103091 W CN 2018103091W WO 2020042039 A1 WO2020042039 A1 WO 2020042039A1
Authority
WO
WIPO (PCT)
Prior art keywords
delay
data packet
time
communication device
communication
Prior art date
Application number
PCT/CN2018/103091
Other languages
English (en)
French (fr)
Inventor
刘建华
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2018/103091 priority Critical patent/WO2020042039A1/zh
Priority to CN201880093975.XA priority patent/CN112205028B/zh
Priority to TW108131019A priority patent/TW202021320A/zh
Publication of WO2020042039A1 publication Critical patent/WO2020042039A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control

Definitions

  • the present application relates to the field of communications, and in particular, to a communication method and device.
  • the fifth-generation mobile communication technology (5-Generation, 5G) system introduces deterministic transmission, where deterministic transmission may refer to the determination of the processing time of data during communication.
  • Embodiments of the present application provide a communication method and device, which can implement deterministic transmission of data.
  • a communication method comprising: a first device receiving a data packet, the data packet carrying a first time stamp set by a second device;
  • the first device determines a first delay of the data packet between the first device and the second device;
  • the first device Based on the first delay, the first device processes the data packet.
  • a communication method includes: a second device sends a data packet, where the data packet carries a first timestamp set by the second device, and the first timestamp is used to determine all The first delay between the first device and the second device.
  • a communication device for executing the method in the first aspect or the implementations thereof.
  • the device includes a functional module for executing the method in the above-mentioned first aspect or each implementation manner thereof.
  • a communication device for performing the method in the second aspect or the implementations thereof.
  • the device includes a functional module for executing the method in the second aspect or the implementations thereof.
  • a communication device including a processor and a memory.
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program stored in the memory, and execute the method in the above-mentioned first aspect or its implementations.
  • a communication device including a processor and a memory.
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program stored in the memory to execute the method in the second aspect or the implementations thereof.
  • a chip is provided for implementing any one of the first to second aspects or a method in each implementation thereof.
  • the chip includes a processor for invoking and running a computer program from a memory, so that a device installed with the chip executes any one of the first aspect to the second aspect described above or implementations thereof. method.
  • a computer-readable storage medium for storing a computer program that causes a computer to execute the method in any one of the first to second aspects described above or in its implementations.
  • a computer program product including computer program instructions that cause a computer to execute the method in any one of the first to second aspects described above or in various implementations thereof.
  • a computer program that, when run on a computer, causes the computer to execute the method in any one of the first to second aspects described above or in its implementations.
  • the first device can determine the delay with the second device based on the timestamp carried in the received data packet, so that the data packet can be based on the delay between the first device and the second device. Processing is performed to enable deterministic transmission of data.
  • FIG. 1 is a schematic diagram of a communication system architecture provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a communication method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a communication method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a data transmission path provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another data transmission path provided by an embodiment of the present application.
  • FIG. 6 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a chip according to an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of a communication system according to an embodiment of the present application.
  • GSM Global System for Mobile
  • CDMA Code Division Multiple Access
  • Wideband Code Division Multiple Access Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • FDD Frequency Division Duplex
  • TDD Time Division Duplex
  • UMTS Universal Mobile Telecommunication System
  • WiMAX Worldwide Interoperability for Microwave Access
  • the communication system 100 may include a network device 110, and the network device 110 may be a device that communicates with a terminal device 120 (or a communication terminal or a terminal).
  • the network device 110 may provide communication coverage for a specific geographic area, and may communicate with terminal devices located within the coverage area.
  • the network device 110 may be a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, or a base station (NodeB, NB) in a WCDMA system, or an evolved base station in an LTE system.
  • BTS Base Transceiver Station
  • NodeB NodeB
  • the network device may be a mobile switching center, relay station, access point, vehicle equipment, Wearable devices, hubs, switches, bridges, routers, network-side devices in 5G networks, or network devices in public land mobile networks (PLMN) that will evolve in the future.
  • PLMN public land mobile networks
  • the communication system 100 further includes at least one terminal device 120 located within a coverage area of the network device 110.
  • terminal equipment used herein includes, but is not limited to, connection via wired lines, such as via Public Switched Telephone Networks (PSTN), Digital Subscriber Line (DSL), digital cable, direct cable connection ; And / or another data connection / network; and / or via a wireless interface, such as for cellular networks, Wireless Local Area Networks (WLAN), digital television networks such as DVB-H networks, satellite networks, AM- FM broadcast transmitter; and / or another terminal device configured to receive / transmit communication signals; and / or Internet of Things (IoT) devices.
  • PSTN Public Switched Telephone Networks
  • DSL Digital Subscriber Line
  • WLAN Wireless Local Area Networks
  • DVB-H Digital Video Broadband
  • satellite networks satellite networks
  • AM- FM broadcast transmitter AM- FM broadcast transmitter
  • IoT Internet of Things
  • a terminal device configured to communicate through a wireless interface may be referred to as a “wireless communication terminal”, a “wireless terminal”, or a “mobile terminal”.
  • mobile terminals include, but are not limited to, satellite or cellular phones; personal communications systems (PCS) terminals that can combine cellular radiotelephones with data processing, facsimile, and data communications capabilities; can include radiotelephones, pagers, Internet / internal PDA with network access, web browser, notepad, calendar, and / or Global Positioning System (GPS) receiver; and conventional laptop and / or palm-type receivers or others including radiotelephone transceivers Electronic device.
  • PCS personal communications systems
  • GPS Global Positioning System
  • a terminal device can refer to an access terminal, user equipment (User Equipment), user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or User device.
  • the access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Processing (PDA), and wireless communication.
  • terminal devices 120 may perform terminal direct device (D2D) communication.
  • D2D terminal direct device
  • the 5G system or the 5G network may also be referred to as a New Radio (NR) system or an NR network.
  • NR New Radio
  • FIG. 1 exemplarily shows one network device and two terminal devices.
  • the communication system 100 may include multiple network devices and the coverage of each network device may include other numbers of terminal devices. The embodiment does not limit this.
  • the communication system 100 may further include other network entities such as a network controller, a mobility management entity, and the like in this embodiment of the present application is not limited thereto.
  • network entities such as a network controller, a mobility management entity, and the like in this embodiment of the present application is not limited thereto.
  • the device having a communication function in the network / system in the embodiments of the present application may be referred to as a communication device.
  • the communication device may include a network device 110 and a terminal device 120 having a communication function, and the network device 110 and the terminal device 120 may be specific devices described above, and are not described herein again.
  • the communication device may also include other devices in the communication system 100, such as other network entities such as a network controller, a mobile management entity, and the like, which is not limited in the embodiments of the present application.
  • FIG. 2 is a schematic flowchart of a communication method 200 according to an embodiment of the present application.
  • the method 200 may be executed by a first device, and may include at least part of the following content.
  • the first device receives a data packet that carries a first time stamp set by the second device.
  • the first device determines a first delay of the data packet between the first device and the second device.
  • the first device processes the data packet.
  • FIG. 3 is a schematic flowchart of a communication method 300 according to an embodiment of the present application.
  • the method 300 may be executed by a second device, and may include at least part of the following content.
  • the second device sends a data packet that carries a first time stamp set by the second device, and the time stamp is used to determine a first delay between the first device and the second device.
  • the embodiments of the present application may be applied to a scenario in which data needs to reach a receiving end at a determined time.
  • the scene may be a multi-party collaboration scenario, such as controlling a robot to perform multi-party collaboration.
  • controlling a robot to perform multi-party cooperation multiple robots need to perform the same time. If one robot's instruction arrives in advance, it can wait for the instructions of other robots to arrive.
  • the embodiments of the present application may also be applied to a scenario in which data packets are out of order.
  • the determined time in the embodiments of the present application does not refer to an absolute time, but refers to a certain time range.
  • the second device sends a data packet, and accordingly, the first device can receive the data packet.
  • the data packet may carry a first time stamp set by the second device.
  • the first timestamp may be used to indicate the time when the data packet arrives at the second device, the time when the second device sends the data packet, the time when the second device parses the data packet, or the time at which the second device encapsulates the data packet. time.
  • the times indicated by the first timestamps of the data packet transmission of the same device or the same data packet transmission of different devices may be different.
  • the first device may be a terminal device or a network device.
  • the second device may be a network device.
  • the network device may be an external data network device, a core network device, or an access network device.
  • the core network device may be a 5G core network device, for example, access and mobility management function (AMF), which is responsible for access and mobility management, and has user authentication, handover, location update, etc.
  • AMF access and mobility management function
  • the Session Management Function (SMF) is responsible for session management, including the establishment, modification, and release of packet data unit (PDU) sessions.
  • PDU packet data unit
  • the user plane function (UPF) is responsible for forwarding user data.
  • the access network device may be a 5G access network device.
  • the first device may be the next hop of the second device, or there may be other devices that transmit data packets between the first device and the second device.
  • the second device may send a data packet to the first device through at least one other device between the second device and the first device.
  • network device 1 is an external data network
  • network device 2 is a core network device
  • network device 3 is an access network device. If the terminal device is a first device, the network device 1 is a second device. Then the network device 1 can send the data packet to the network device 2, the network device 2 can send the data packet to the network device 3 after receiving the data packet, and the network device 3 can send the data packet to the terminal device after receiving the data packet .
  • the data packet sent by network device 1 to network device 2 may carry the time stamp set by network device 1, and the data packet sent by network device 2 to network device 3 may carry the time set by network device 2.
  • the data packet sent by the network device 3 to the terminal device can carry the time stamp set by the network device 3.
  • the data packet sent by network device 1 to network device 2 may carry the time stamp set by network device 1
  • the data packet sent by network device 2 to network device 3 may carry the time stamp set by network device 1
  • network device 3 sends to the terminal device
  • the sent data packet may carry the time stamp set by the network device 1.
  • the first device may parse the data packet and obtain a first time stamp. The first device may then determine a first delay between the first device and the second device based on the first time stamp.
  • the first device determining the first delay between the first device and the second device based on the first timestamp may include: the first device may determine based on the first timestamp and the first time A first delay between the first device and the second device.
  • the first time may be, but is not limited to, the time when the data packet reaches the first device, the time when the first device parses the data packet, or the time when the first device encapsulates the data packet.
  • the first delay may include the following multiple situations:
  • the first delay may be a delay between the time when the data packet arrives at the second device and the time when the data packet arrives at the first device.
  • the first delay may be a delay between a time when the data packet arrives at the second device and a time when the first device parses the data packet.
  • the first delay may be a delay between the time when the data packet reaches the second device and the time when the first device encapsulates the data packet.
  • the first delay may be a delay between a time when the second device sends a data packet and a time when the data packet reaches the first device.
  • the first delay may be a delay between the time when the second device sends the data packet and the time when the first device finishes parsing the data packet.
  • the first delay may be a delay between the time when the second device sends the data packet and the time when the first device encapsulates the data packet.
  • the first delay may be a delay between the time when the second device finishes parsing the data packet and the time when the data packet reaches the first device.
  • the first delay may be a delay between the time when the second device parses the data packet and the time when the first device parses the data packet.
  • the first delay may be a delay between the time when the second device parses the data packet and the time when the first device encapsulates the data packet.
  • the first delay may be a delay between a time when the second device encapsulates the data packet and a time when the data packet reaches the first device.
  • the first delay may be a delay between a time when the second device encapsulates the data packet and a time when the first device parses the data packet.
  • the first delay may be a delay between the time when the second device encapsulates the data packet and the time when the first device encapsulates the data packet.
  • the first device may determine the time difference between the first time stamp and the first time as the first delay.
  • the first time stamp indicates the time when the second device sends a data packet
  • the first time is the time when the data packet arrives at the first device
  • the second device sends the data packet at time A
  • the data packet arrives at the first time at time B
  • the first delay between the first device and the second device may be BA.
  • the first device may process the data packet based on the first delay.
  • the first device processing the data packet based on the first delay may include: the first device encapsulates the data packet and / or sends the data packet based on the first delay.
  • the first device may determine at least one of the following: based on the first delay, the start time of encapsulating the data packet, the end time of encapsulating the data packet, the duration of encapsulating the data packet, and sending The moment of the packet. After that, the first device may encapsulate the data packet and / or send the data packet based on the determined time and / or duration.
  • the first device processing the data packet based on the first delay may include: the first device submits the data packet to the application layer based on the first delay.
  • processing the data packet by the first device may include: according to the first delay and the first pre-configured delay, the first device determines the first delay and the first delay. A first delay difference between a pre-configured delay; based on the first delay difference, the first device processes the data packet.
  • the first pre-configured delay is a pre-configured delay between the first device and the second device.
  • the pre-configured delay may be a specific value.
  • the pre-configured delay is 2ms.
  • the pre-configured delay may be a range value, for example, the pre-configured delay may be 1 ms-2 ms.
  • the pre-configured delay may be configured at a receiving end of a data packet in each transmission.
  • the pre-configured delay between the second device and the first device may be configured on the first device.
  • the pre-configured delay between the first device and the second device may be It is configured on the first device, and the pre-configured delay between the first device and the third device may be configured on the third device.
  • the third device may be a next hop node of the first device.
  • the pre-configured delay may be configured by a core network device, an access network device, or an external data network device.
  • a core network device, an access network device, or an external data network device may pre-configure a corresponding delay for each segment of the data transmission path when establishing a session or establishing a Quality of Service (QoS) flow.
  • QoS Quality of Service
  • the SMF may preconfigure the delay on the first device according to the established session requirements or the delay and jitter requirements of the QoS flow.
  • the pre-configured delay may also be specified in the protocol.
  • the first delay may correspond to a pre-configured delay.
  • the correspondence between the first delay and the pre-configured delay can be understood as: if the pre-configured delay is a delay between time N and time M, the first delay is also between time N and time M Time delay,
  • the pre-configured delay is the delay between the time when the data packet arrives at the second device and the time when the first device parses the data packet
  • the first delay is also the time when the data packet arrives at the second device and the first time. The delay between the moments when a device parses the packet.
  • the pre-configured delay is the delay between the time when the second device sends a data packet and the time when the first device encapsulates the data packet
  • the first delay may be the time between the time when the second device sends the data packet and The time delay between the moment when the first device encapsulates the data packet.
  • the pre-configured delay may be a delay after multiple delays are superimposed.
  • the pre-configured delay can be the time and data at which the data packet arrives at the second device The delay between the time when the packet arrives at the first device and the time delay after the time when the data packet arrives at the first device and the time at which the first device resolves the data packet.
  • the number of data packets may be multiple, and multiple data packets may be transmitted through multiple paths. That is, multiple data packets can reach the first device through multiple paths.
  • the pre-configured delays of different transmission paths of the data packets may be the same or different, and the pre-configured delays of each segment of transmission on the same transmission path may be the same or different.
  • the embodiments of the present application are not specifically limited.
  • the first device may search for the first pre-configured delay according to a transmission path of the data packet.
  • the transmission path of the data packet may have a corresponding relationship with the pre-configured delay.
  • the correspondence between the transmission path of the data packet and the pre-configured delay may be a one-to-one correspondence or a many-to-one relationship.
  • the correspondence between multiple transmission paths and the pre-configured delay may be broadcast to multiple devices.
  • the first device After the first device obtains the corresponding relationship, it can find the corresponding pre-configured delay according to the corresponding relationship and the transmission path of the data packet.
  • the data packet may also reach different data receiving ends through multiple transmission paths.
  • the first device determining the first delay difference according to the first delay and the first pre-configured delay may include: the first device may subtract the first delay from the first pre-configured delay, The result of the subtraction is the first delay difference.
  • the first device may subtract the first delay from the first pre-configured delay, which can be understood as: the first device subtracts the first pre-configured delay from the first delay; or, the first device uses the first delay A pre-configured delay minus the first delay.
  • the first delay difference may be a negative value or a positive value.
  • the first delay difference may be the first delay minus the first pre-configured difference, that is, the first delay difference is 1 ms , Indicates that the first delay is 1 ms longer than the first pre-configured delay.
  • the first delay difference may be the first delay minus the first pre-configured difference, that is, the first delay difference is -1ms, indicating that the first delay is 1ms shorter than the first pre-configured delay.
  • the first device processes the data packet.
  • the processing time may be shorter than the preset processing time by the first time, or the time when the first device processes the data packet may be a first time earlier than the preset processing time, or the first device may perform a high priority on the data packet. Processing or immediate processing.
  • the first duration is equal to the absolute value of the first delay difference.
  • the high-priority processing performed on the data packet by the first device may be understood as: when the first device has other services to process in addition to the data packet, the first device may preferentially process the data packet , And then deal with other business.
  • the immediate processing of the data packet by the first device may be understood as: when the first device receives the data packet, there is no need to wait and immediately process the data packet.
  • the first delay is 3ms and the first pre-configured delay is 2ms
  • the first duration is 1ms.
  • the first delay is the time when the data packet reaches the second device and the data packet The delay between the moment when the first device arrives, the first delay is 1ms longer than the first pre-configured delay, and the preset time length for the first device to parse the data packet is 3ms. After the first device receives the data packet, , You can parse the packet in 2ms.
  • the first device processes the data
  • the processing time of the packet is longer than the preset processing time by the first time, or the time when the first device processes the data packet is delayed by the first time than the preset processing time.
  • the first device may save the data packet for a first time.
  • the first delay is 1ms and the first pre-configured delay is 2ms, then the first duration is 1ms.
  • the first device is a terminal device, the first delay is the time when the data packet arrives at the second device and the first The delay between the moments when the device encapsulates the data packet, and the first delay is 1ms smaller than the pre-configured delay.
  • the time to deliver the data packet to the application layer can be later than the preset time 1ms. At this time, the first device can save the data packet for 1 ms.
  • the first device may compare the first delay with the first pre-configured delay.
  • the first device may determine whether the processing time of the data packet is less than a preset processing time, or that the processing time of the data packet is earlier than the preset processing time, or The packet is processed with high priority or immediately.
  • the first device may determine, based on any method, the time during which the data packet is processed and the preset processing time is less, or the time when the data packet is processed is greater than the preset processing time.
  • the advance time is not specifically limited in the embodiments of the present application.
  • the first device may determine that the processing time of the data packet is longer than the preset processing time, or that the processing time of the data packet is delayed than the preset processing time.
  • the terminal device delivering the data packet to the application layer based on the first delay may include: based on the first time between the first delay and the first pre-configured delay Delay difference, the first device can determine the time when the data packet is delivered to the application layer.
  • the first device may determine that the time at which the data packet is delivered to the application layer is a first time earlier than the preset delivery time, or A device can deliver data packets to the application layer with high priority, or immediately deliver data packets to the application layer.
  • the first device may determine that the time at which the data packet is delivered to the application layer is a first time later than the preset delivery time.
  • the first device may determine the first delay difference based on the first delay and the first pre-configured delay, and then process the data packet based on the first delay difference.
  • the embodiments of the present application are not limited to this. This application may also process the data packet in other ways.
  • the first device may determine the first delay as the first delay difference. That is, the first device can process the data packet based on the first delay.
  • the first delay difference is 3 ms.
  • the data packet may be processed based on the first delay.
  • the first delay is 2ms
  • the first device is a network device
  • the first delay is the delay between the time when the data packet arrives at the second device and the time when the data packet arrives at the first device.
  • the time duration for a device to parse a data packet is 3 ms.
  • the first device can parse the data packet with a time length of 1 ms.
  • the first delay is 1ms
  • the first device is a terminal device
  • the first delay is the delay between the time when the data packet arrives at the second device and the time when the first device encapsulates the data packet
  • the data packet may further carry a second delay difference.
  • the second delay difference may be a delay difference between the second delay and the second pre-configured delay.
  • the second delay is the delay between the second device and the third device
  • the second pre-configured delay is the pre-configured delay between the second device and the third device
  • the third device is the second The upstream node of the device.
  • the network device 3 is a first device
  • the network device 2 may be a second device
  • the network device 1 may be a third device.
  • processing the data packet by the first device based on the first delay difference may include: processing the data packet by the first device based on the first delay difference and the second delay difference.
  • the duration for the first device to process the data packet may be It is shorter than the preset processing time by a second time; or the time when the first device processes the data packet may be a second time earlier than the preset processing time; or the first device may process the data packet with high priority or immediately.
  • the third delay is the sum of the first pre-configured delay and the second pre-configured delay
  • the second time is the absolute value of the sum of the first delay difference and the second delay difference.
  • the first delay difference is the difference between the first delay minus the first pre-configured delay
  • the second delay difference is also the difference between the second delay minus the second pre-configured delay value.
  • the first delay difference and the second delay difference may be negative values or positive values.
  • the processing time of the data packet by the first device may be longer than the expected time. It is assumed that the processing time is more than the second time, or the time when the first device processes the data packet may be delayed by the second time than the preset processing time.
  • the data packet received by the second device may carry a timestamp set by the third device, and the second device determines a second delay between the third device and the second device based on the timestamp set by the third device, and then Based on the delay and the pre-configured delay pre-configured on the second device, a second delay difference between the third device and the second device is determined, and the second device does not process the data packet.
  • the second device may carry the second delay difference in the data packet, and simultaneously carry the first time stamp set by the second device in the data packet, and then send the data packet to the first device.
  • the first device determines a first delay difference between the first device and the second device. The data packet may then be processed based on the first delay difference and the second delay difference.
  • the first delay between the first device and the second device is 3ms
  • the second delay between the first device and the second device is 1ms
  • the first pre-configured delay is 2ms
  • the first The second pre-configured delay is 3 ms
  • the third delay is 5 ms.
  • the first delay difference can be the difference between the first delay minus the first pre-configured delay, which is 1 ms
  • the second delay difference can be The difference between the two delays minus the second pre-configured delay, which is -2ms, then the sum of the first delay difference and the second delay difference is -1ms, indicating the delay between the first device and the third device 2ms less than the sum of the first pre-configured delay and the second pre-configured delay, then the duration of the first device processing the data packet may be 2ms longer than the preset processing time.
  • the data packet received by the second device may carry a timestamp set by the third device, and the second device determines a second time between the third device and the second device based on the timestamp set by the fourth device. For the delay, the second delay is determined as a second delay difference between the third device and the second device, and the second device does not process the data packet.
  • the second device may carry the second delay difference in the data packet, and at the same time may carry the first time stamp set by the second device in the data packet, and then send the data packet to the first device.
  • the first device may determine a first delay between the first device and the second device, and determine the first delay as a first delay difference. Then, the first device may process the data packet based on the first delay difference and the second delay difference.
  • the method for processing the data packet by the first device based on the first delay difference and the second delay difference may refer to the method of processing the data packet by the first device based on the first delay difference.
  • the first device when the first device is a network device, the first device may further send a data packet to the fourth device, and the data packet may carry a second time stamp set by the first device.
  • the fourth device may be a next hop node of the first device, and the fourth device may be a terminal device or a network device, which is not limited in this embodiment of the present application.
  • the second time stamp may indicate a time when the data packet arrives at the first device, a time when the first device sends the data packet, a time when the first device parses the data packet, or a time when the first device encapsulates the data packet.
  • the delay between the first device and the fourth device may be determined based on the second time stamp, and based on the delay, the fourth device may process the data packet.
  • the first device determines the first delay based on the first time stamp, and then processes the data packet based on the first delay.
  • the related description may be applicable to the fourth device determining the first device and the fourth device based on the second time stamp. The time delay is between, and then the data packet is processed based on the time delay.
  • the first device when there is another device that transmits a data packet between the first device and the second device, the first device may process the data packet based on multiple methods.
  • Method 1 All devices between the first device and the second device process the data packet.
  • the network device 1 can send a data packet to the network device 2, and the data packet carries the timestamp set by the network device 1.
  • the network device 1 and the network device 2 determine the The time delay difference between the two packets is processed based on the time delay difference 1.
  • the network device 2 can send a data packet to the network device 3, and the data packet carries the time stamp set by the network device 2.
  • the network device 3 receives the data packet, the network device 2 and the network device 3 are determined based on the time stamp set by the network device 2. The delay difference between the two is processed based on the delay difference 2.
  • the network device 3 may send a data packet to the terminal device, and the data packet carries a time stamp set by the network device 3.
  • the delay difference 3 between the network device 3 and the terminal device is determined based on the time stamp set by the network device 3, so that the data packet can be processed based on the delay difference 3.
  • the data packet may carry the first time stamp set by the second device, or may not carry the second device setting.
  • the first time stamp is not limited in the embodiment of the present application.
  • the device between the first device and the second device may determine the delay difference between the two devices, but may not process the data packet.
  • the network device 1 may send a data packet to the network device 2, and the data packet carries a time stamp set by the network device 1.
  • the time delay difference 1 between the network device 1 and the network device 2 is determined based on the time stamp set by the network device 1, and the network device 2 does not process the data packet.
  • the network device 2 sends a data packet to the network device 3, and the data packet carries the time stamp set by the network device 2 and the delay difference 1 between the network device 1 and the network device 2.
  • the network device 3 determines a delay difference 2 between the network device 2 and the network device 3, and processes the data packet based on the delay difference 1 and the delay difference 2.
  • the network device 3 may send a data packet to the terminal device, and the data packet carries the time stamp set by the network device 3.
  • the terminal device determines the time between the network device 3 and the terminal device based on the time stamp set by the network device 3.
  • the delay difference is 3, so that the data packet is processed based on the delay difference of 3.
  • the data packet may or may not carry the first timestamp.
  • Method 3 All the devices between the first device and the second device do not process the data packet.
  • the network device 2 may send a data packet to the network device 3, and the data packet carries a time stamp set by the network device 2.
  • the network device 3 does not process the data packet and sends the data packet to the terminal device.
  • the data packet carries the time stamp set by the network device 2.
  • the terminal device can determine the time delay between the network device 2 and the terminal device based on the time stamp set by the network device 2, and then process the data packet based on the time delay.
  • the first device can determine the time delay with the second device based on the timestamp carried in the received data packet, so that the data can be processed according to the time delay between the first device and the second device.
  • the packets are processed so that deterministic transmission of data can be achieved.
  • the size of the sequence numbers of the above processes does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not deal with the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the communication method according to the embodiment of the present application is described in detail above.
  • the communication device according to the embodiment of the present application will be described below with reference to FIGS. 6 to 8.
  • the technical features described in the method embodiment are applicable to the following device embodiments.
  • FIG. 6 shows a schematic block diagram of a communication device 600 according to an embodiment of the present application. As shown in FIG. 6, the communication device 600 includes:
  • the communication unit 610 is configured to receive a data packet, where the data packet carries a first timestamp set by the second device.
  • the processing unit 620 is configured to determine a first delay of the data packet between the communication device 600 and the second device based on the first time stamp.
  • the processing unit 620 is further configured to process the data packet based on the first delay.
  • the first timestamp is used to indicate the time when the data packet arrives at the second device, the time when the second device sends the data packet, the time when the second device parses the data packet, or the second device The moment when the packet is encapsulated.
  • the processing unit 620 is specifically configured to determine a first delay between the communication device 600 and the second device based on the first timestamp and the first time, where the first time is The time when the data packet reaches the communication device 600, the time when the communication device 600 parses the data packet, or the time when the communication device 600 encapsulates the data packet.
  • the processing unit 620 is specifically configured to determine a first delay between the first delay and the first pre-configured delay according to the first delay and the first pre-configured delay.
  • the first pre-configured delay is a pre-configured delay between the communication device 600 and the second device. Based on the first delay difference, the data packet is processed.
  • the processing unit 620 is specifically configured to: if the first delay difference indicates that the first delay is greater than the first pre-configured delay, the processing time of the data packet is less than the preset processing time The first time period, or the time when the data packet is processed is one time earlier than the preset processing time, or the data packet is processed with high priority or immediately;
  • the processing time of the data packet is longer than the preset processing time by the first time, or the time of processing the data packet is delayed by the first time; ,
  • the first duration is equal to the absolute value of the first delay difference.
  • the pre-configured delay is pre-configured on the communication device 600 when a session is established or a QoS flow is established.
  • the number of data packets is multiple, and multiple data packets are transmitted through multiple paths.
  • the first pre-configured delay of different paths is different.
  • the processing unit 620 is further configured to: To find the first pre-configured delay.
  • the data packet also carries a second delay difference, and the second delay difference is a delay difference between the second delay and the second pre-configured delay, where the second time The delay is the delay between the second device and the third device, the second pre-configured delay is the pre-configured delay between the second device and the third device, and the third device is an upstream node of the second device; the processing unit 620 is specifically configured to process the data packet based on the first delay difference and the second delay difference.
  • the processing unit 620 is specifically configured to: if the sum of the first delay difference and the second delay difference indicates that the delay between the communication device 600 and the third device is greater than the third delay , The processing time of the data packet is less than the preset processing time by a second time, or the processing time of the data packet is a second time ahead of the preset processing time, or the data packet is processed with high priority or immediately;
  • the processing time of the data packet is longer than the preset processing time by a second time, The processing time of the data packet is delayed for a second time longer than the preset processing time;
  • the third delay is the sum of the first pre-configured delay and the second pre-configured delay
  • the second duration is the absolute value of the sum of the first delay difference and the second delay difference.
  • the communication device 600 is a network device
  • the processing unit 620 is specifically configured to: based on the first delay, encapsulate the data packet and / or send the data packet.
  • the processing unit 620 is specifically configured to determine at least one of the following based on the first delay: the start time of encapsulating the data packet, the end time of encapsulating the data packet, Encapsulation time of the data packet and time of sending the data packet; Encapsulation of the data packet and / or sending of the data packet based on the time and / or duration.
  • the communication unit 610 is further configured to: send a data packet to the fourth device, where the data packet carries a second timestamp set by the first device 600, and the fourth device is the next time of the communication device 600 Hop nodes.
  • the communication device 600 is a terminal device, and the processing unit 620 is specifically configured to deliver the data packet to the application layer based on the first delay.
  • the processing unit 620 is specifically configured to determine a time when the data packet is delivered to the application layer based on a first delay difference between the first delay and the first pre-configured delay,
  • the first pre-configured delay is a pre-configured delay between the first device and the second device.
  • the processing unit 620 is specifically configured to: if the first delay difference indicates that the first delay is greater than the first pre-configured delay, determine that the time when the data packet is delivered to the application layer is more than a preset time; The delivery time is first time in advance, or the data packet is delivered to the application layer with a high priority, or the data packet is immediately delivered to the application layer;
  • the first delay difference indicates that the first delay is less than the first pre-configured delay, it is determined that the time at which the data packet is delivered to the application layer is a first time later than the preset delivery time; the first time is the absolute value of the first delay difference value.
  • the communication device 600 is the next hop of the second device, or there are other devices transmitting the data packet between the communication device 600 and the second device.
  • the communication device 600 may correspond to the first device in the method 200 and may implement corresponding operations of the first device in the method 200. For brevity, details are not described herein again.
  • FIG. 7 shows a schematic block diagram of a communication device 700 according to an embodiment of the present application.
  • the communication device 700 includes:
  • the communication unit 710 is configured to send a data packet, where the data packet carries a first time stamp set by the communication device 700, and the first time stamp is used to determine a first delay between the first device and the communication device 700.
  • the first time stamp is used to indicate a time when the data packet arrives at the communication device 700, a time when the communication device 700 sends the data packet, a time when the communication device 700 parses the data packet, or the communication device 700 The moment when the packet is encapsulated.
  • the data packet further carries a delay difference between the second delay and the second pre-configured delay between the communication device 700 and the third device, and the third device is upstream of the first device Node, where the second pre-configured delay is a pre-configured delay between the communication device 700 and the third device.
  • the communication device 700 is a previous hop of the first device, or there are other devices transmitting the data packet between the communication device 700 and the first device.
  • the communication device 700 is a network device.
  • the second device communication 700 may correspond to the second device in the method 300, and corresponding operations of the second device in the method 300 may be implemented. For brevity, details are not described herein again.
  • FIG. 8 is a schematic structural diagram of a communication device 800 according to an embodiment of the present application.
  • the communication device 800 shown in FIG. 8 includes a processor 810, and the processor 810 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
  • the communication device 800 may further include a memory 820.
  • the processor 810 may call and run a computer program from the memory 820 to implement the method in the embodiment of the present application.
  • the memory 820 may be a separate device independent of the processor 810, or may be integrated in the processor 810.
  • the communication device 800 may further include a transceiver 830, and the processor 810 may control the transceiver 830 to communicate with other devices, and specifically, may send information or data to other devices, or receive other Information or data sent by the device.
  • the processor 810 may control the transceiver 830 to communicate with other devices, and specifically, may send information or data to other devices, or receive other Information or data sent by the device.
  • the transceiver 830 may include a transmitter and a receiver.
  • the transceiver 830 may further include an antenna, and the number of antennas may be one or more.
  • the communication device 800 may specifically be the communication device in the embodiment of the present application, and the communication device 800 may implement the corresponding process implemented by the first device in each method in the embodiment of the present application. To repeat.
  • the communication device 800 may specifically be the communication device in the embodiment of the present application, and the communication device 800 may implement the corresponding process implemented by the second device in each method of the embodiment of the present application. To repeat.
  • FIG. 9 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • the chip 900 shown in FIG. 9 includes a processor 910, and the processor 910 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
  • the chip 900 may further include a memory 920.
  • the processor 910 may call and run a computer program from the memory 920 to implement the method in the embodiment of the present application.
  • the memory 920 may be a separate device independent of the processor 910, or may be integrated in the processor 910.
  • the chip 900 may further include an input interface 930.
  • the processor 910 may control the input interface 930 to communicate with other devices or chips. Specifically, the processor 910 may obtain information or data sent by other devices or chips.
  • the chip 900 may further include an output interface 940.
  • the processor 910 may control the output interface 940 to communicate with other devices or chips. Specifically, the processor 910 may output information or data to the other devices or chips.
  • the chip may be applied to a communication device in the embodiment of the present application, and the chip may implement a corresponding process implemented by the first device in each method of the embodiment of the present application.
  • the chip may be applied to a communication device in the embodiment of the present application, and the chip may implement a corresponding process implemented by the first device in each method of the embodiment of the present application.
  • the chip may be applied to a communication device in the embodiment of the present application, and the chip may implement a corresponding process implemented by the second device in each method of the embodiment of the present application.
  • the chip may be applied to a communication device in the embodiment of the present application, and the chip may implement a corresponding process implemented by the second device in each method of the embodiment of the present application.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-level chip, a system chip, a chip system or a system-on-chip.
  • the processor in the embodiment of the present application may be an integrated circuit chip and has a signal processing capability.
  • each step of the foregoing method embodiment may be completed by using an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the above processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (Field, Programmable Gate Array, FPGA), or other Programming logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • Various methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in combination with the embodiments of the present application may be directly implemented by a hardware decoding processor, or may be performed by using a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, and the like.
  • the storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the foregoing method in combination with its hardware.
  • the memory in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), and an electronic memory. Erase programmable read-only memory (EPROM, EEPROM) or flash memory.
  • the volatile memory may be Random Access Memory (RAM), which is used as an external cache.
  • RAM Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • Synchronous Dynamic Random Access Memory Synchronous Dynamic Random Access Memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double SDRAM, DDR SDRAM enhanced synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM synchronous connection dynamic random access memory
  • Synchronous DRAM Synchronous Dynamic Random Access Memory
  • Enhanced SDRAM Enhanced SDRAM, ESDRAM
  • synchronous connection dynamic random access memory Synchrobus RAM, SLDRAM
  • Direct Rambus RAM Direct Rambus RAM
  • the memory in the embodiment of the present application may also be a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (Double SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct RAMbus RAM, DR RAM) and so on. That is, the memories in the embodiments of the present application are intended to include, but not limited to, these and any other suitable types of memories.
  • FIG. 10 is a schematic block diagram of a communication system 1000 according to an embodiment of the present application. As shown in FIG. 10, the communication system 1000 includes a communication device 11010 and a communication device 21020.
  • the communication device 1 may be used to implement the corresponding function implemented by the first device in the foregoing method, and the communication device 2 may be used to implement the corresponding function implemented by the second device in the foregoing method.
  • the communication device 1 may be used to implement the corresponding function implemented by the first device in the foregoing method
  • the communication device 2 may be used to implement the corresponding function implemented by the second device in the foregoing method.
  • An embodiment of the present application further provides a computer-readable storage medium for storing a computer program.
  • the computer-readable storage medium may be applied to the first device in the embodiment of the present application, and the computer program causes the computer to execute a corresponding process implemented by the first device in each method in the embodiment of the present application. For simplicity, I will not repeat them here.
  • the computer-readable storage medium may be applied to the second device in the embodiment of the present application, and the computer program causes the computer to execute a corresponding process implemented by the second device in each method in the embodiment of the present application. For simplicity, I will not repeat them here.
  • An embodiment of the present application further provides a computer program product, including computer program instructions.
  • the computer program product can be applied to the first device in the embodiment of the present application, and the computer program instructions cause the computer to execute a corresponding process implemented by the first device in each method in the embodiment of the present application. This will not be repeated here.
  • the computer program product can be applied to the second device in the embodiments of the present application, and the computer program instructions cause the computer to execute a corresponding process implemented by the second device in each method of the embodiments of the present application. For simplicity, in This will not be repeated here.
  • the embodiment of the present application also provides a computer program.
  • the computer program may be applied to the first device in the embodiment of the present application.
  • the computer program When the computer program is run on a computer, the computer is caused to execute a corresponding process implemented by the first device in each method in the embodiment of the present application.
  • the computer program For brevity, I will not repeat them here.
  • the computer program may be applied to a second device in the embodiment of the present application, and when the computer program is run on a computer, the computer is caused to execute a corresponding process implemented by the second device in each method of the embodiment of the present application, For brevity, I will not repeat them here.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of this application is essentially a part that contributes to the existing technology or a part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory) ROM, random access memory (Random Access Memory, RAM), magnetic disks or optical disks and other media that can store program codes .

Abstract

本申请实施例涉及一种通信方法和设备,该方法包括:第一设备接收数据包,该数据包携带第二设备设置的第一时间戳;基于该第一时间戳,该第一设备确定该数据包在该第一设备与该第二设备之间的第一时延;基于该第一时延,该第一设备对该数据包进行处理。本申请实施例的通信方法和设备,可以实现数据的确定性传输。

Description

通信方法和设备 技术领域
本申请涉及通信领域,具体涉及一种通信方法和设备。
背景技术
第五代移动通信技术(5-Generation,5G)系统引入了确定性传输,其中,确定性传输可以是指通信时对数据的处理的时间是确定的。
然而,如何实现数据的确定性传输,目前还没有明确的规定。
发明内容
本申请实施例提供一种通信方法和设备,可以实现数据的确定性传输。
第一方面,提供了一种通信方法,所述方法包括:第一设备接收数据包,所述数据包携带第二设备设置的第一时间戳;
基于所述第一时间戳,所述第一设备确定所述数据包在所述第一设备与所述第二设备之间的第一时延;
基于所述第一时延,所述第一设备对所述数据包进行处理。
第二方面,提供了一种通信方法,所述方法包括:第二设备发送数据包,所述数据包携带所述第二设备设置的第一时间戳,所述第一时间戳用于确定所述第一设备与所述第二设备之间的第一时延。
第三方面,提供了一种通信设备,用于执行上述第一方面或其各实现方式中的方法。
具体地,该设备包括用于执行上述第一方面或其各实现方式中的方法的功能模块。
第四方面,提供了一种通信设备,用于执行上述第二方面或其各实现方式中的方法。
具体地,该设备包括用于执行上述第二方面或其各实现方式中的方法的功能模块。
第五方面,提供了一种通信设备,包括处理器和存储器。该存储器用于存储计算机程序,该处理器用于调用并运行该存储器中存储的计算机程序,执行上述第一方面或其各实现方式中的方法。
第六方面,提供了一种通信设备,包括处理器和存储器。该存储器用于存储计算机程序,该处理器用于调用并运行该存储器中存储的计算机程序,执行上述第二方面或其各实现方式中的方法。
第七方面,提供了一种芯片,用于实现上述第一方面至第二方面中的任一方面或其各实现方式中的方法。
具体地,该芯片包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有该芯片的设备执行如上述第一方面至第二方面中的任一方面或其各实现方式中的方法。
第八方面,提供了一种计算机可读存储介质,用于存储计算机程序,该计算机程序使得计算机执行上述第一方面至第二方面中的任一方面或其各实现方式中的方法。
第九方面,提供了一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行上述第一方面至第二方面中的任一方面或其各实现方式中的方法。
第十方面,提供了一种计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面至第二方面中的任一方面或其各实现方式中的方法。
通过上述技术方案,第一设备基于接收到的数据包中携带的时间戳,可以确定与第二设备之间的时延,从而可以根据第一设备与第二设备之间的时延对数据包进行处理,使得可以实现数据的确定性传输。
附图说明
图1是本申请实施例提供的一种通信系统架构的示意性图。
图2是本申请实施例提供的一种通信方法的示意性流程图。
图3是本申请实施例提供的一种通信方法的示意性流程图。
图4是本申请实施例提供的一种数据传输路径的示意性图。
图5是本申请实施例提供的另一种数据传输路径的示意性图。
图6是本申请实施例提供的通信设备的示意性框图。
图7是本申请实施例提供的通信设备的示意性框图。
图8是本申请实施例提供的通信设备的示意性框图。
图9是本申请实施例提供的芯片的示意性框图。
图10是本申请实施例提供的通信系统的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通讯(Global System of Mobile communication,GSM)系统、码分多址(Code Division Multiple Access,CDMA)系统、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)系统、通用分组无线业务(General Packet Radio Service,GPRS)、长期演进(Long Term Evolution,LTE)系统、LTE频分双工(Frequency Division Duplex,FDD)系统、LTE时分双工(Time Division Duplex,TDD)、通用移动通信系统(Universal Mobile Telecommunication System,UMTS)、全球互联微波接入(Worldwide Interoperability for Microwave Access,WiMAX)通信系统或5G系统等。
示例性的,本申请实施例应用的通信系统100如图1所示。该通信系统100可以包括网络设备110,网络设备110可以是与终端设备120(或称为通信终端、终端)通信的设备。网络设备110可以为特定的地理区域提供通信覆盖,并且可以与位于该覆盖区域内的终端设备进行通信。可选地,该网络设备110可以是GSM系统或CDMA系统中的基站(Base Transceiver Station,BTS),也可以是WCDMA系统中的基站(NodeB,NB),还可以是LTE系统中的演进型基站(Evolutional Node B,eNB或eNodeB),或者是云无线接入网络(Cloud Radio Access Network,CRAN)中的无线控制器,或者该网络设备可以为移动交换中心、中继站、接入点、车载设备、可穿戴设备、集线器、交换机、网桥、路由器、5G网络中的网络侧设备或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)中的网络设备等。
该通信系统100还包括位于网络设备110覆盖范围内的至少一个终端设备120。作为在此使用的“终端设备”包括但不限于经由有线线路连接,如经由公共交换电话网络(Public Switched Telephone Networks,PSTN)、数字用户线路(Digital Subscriber Line,DSL)、数字电缆、直接电缆连接;和/或另一数据连接/网络;和/或经由无线接口,如,针对蜂窝网络、无线局域网(Wireless Local Area Network,WLAN)、诸如DVB-H网络的数字电视网络、卫星网络、AM-FM广播发送器;和/或另一终端设备的被设置成接收/发送通信信号的装置;和/或物联网(Internet of Things,IoT)设备。被设置成通过无线接口通信的终端设备可以被称为“无线通信终端”、“无线终端”或“移动终端”。移动终端的示例包括但不限于卫星或蜂窝电话;可以组合蜂窝无线电电话与数据处理、传真以及数据通信能力的个人通信系统(Personal Communications System,PCS)终端;可以包括无线电电话、寻呼机、因特网/内联网接入、Web浏览器、记事簿、日历以及/或全球定位系统(Global Positioning System,GPS)接收器的PDA;以及常规膝上型和/或掌上型 接收器或包括无线电电话收发器的其它电子装置。终端设备可以指接入终端、用户设备(User Equipment,UE)、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。接入终端可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备、5G网络中的终端设备或者未来演进的PLMN中的终端设备等。
可选地,终端设备120之间可以进行终端直连(Device to Device,D2D)通信。
可选地,5G系统或5G网络还可以称为新无线(New Radio,NR)系统或NR网络。
图1示例性地示出了一个网络设备和两个终端设备,可选地,该通信系统100可以包括多个网络设备并且每个网络设备的覆盖范围内可以包括其它数量的终端设备,本申请实施例对此不做限定。
可选地,该通信系统100还可以包括网络控制器、移动管理实体等其他网络实体,本申请实施例对此不作限定。
应理解,本申请实施例中网络/系统中具有通信功能的设备可称为通信设备。以图1示出的通信系统100为例,通信设备可包括具有通信功能的网络设备110和终端设备120,网络设备110和终端设备120可以为上文所述的具体设备,此处不再赘述;通信设备还可包括通信系统100中的其他设备,例如网络控制器、移动管理实体等其他网络实体,本申请实施例中对此不做限定。
图2是根据本申请实施例的通信方法200的示意性流程图。该方法200可以由第一设备执行,可以包括以下内容中的至少部分内容。
在210中,第一设备接收数据包,该数据包携带第二设备设置的第一时间戳。
在220中,基于第一时间戳,第一设备确定数据包在第一设备与第二设备之间的第一时延。
在230中,基于第一时延,第一设备对数据包进行处理。
图3是根据本申请实施例的通信方法300的示意性流程图。该方法300可以由第二设备执行,可以包括以下内容中的至少部分内容。
在310中,第二设备发送数据包,该数据包携带第二设备设置的第一时间戳,该时间戳用于确定第一设备与第二设备之间的第一时延。
下面将结合图2和图3进一步描述本申请实施例的通信方法。应理解,下文描述的内容即可以应用于方法200,也可以应用于方法300。
应理解,本申请实施例可以应用于需要数据在确定的时间到达接收端的场景。可选地,该场景可以为多方协作的场景,如控制机器人进行多方协作。例如,在控制机器人进行多方协作时,需要多个机器人执行动作的时间相同,若有一个机器人的指令提前到达,则可以等待其他机器人的指令到达。
可选地,本申请实施例也可以应用于防止数据包乱序的场景。
需要说明的是,本申请实施例中的确定的时间并不是指绝对的某个时间,而是指某个时间范围。
在本申请实施例中,第二设备发送数据包,相应地,第一设备可以接收数据包。
其中,该数据包可以携带第二设备设置的第一时间戳。
可选地,该第一时间戳可以用于指示数据包到达第二设备的时刻、第二设备发送数据包的时刻、第二设备解析完数据包的时刻,或第二设备封装完数据包的时刻。
需要说明的是,在本申请实施例中,相同设备的数据包的不同次传输,或者不同设备的同次数据包的传输的第一时间戳指示的时刻可以不同。
可选地,第一设备可以是终端设备,也可以是网络设备。
可选地,第二设备可以是网络设备。
可选地,网络设备可以是外部数据网络设备、核心网设备或接入网设备。
其中,核心网设备可以是5G核心网设备,例如,接入与移动性管理功能(Access and Mobility Management Function,AMF),负责接入和移动性管理,具有对用户进行认证、切换、位置更新等功能。又例如,会话管理功能(Session Management Function,SMF),负责会话管理,包括分组数据单元(packet data unit,PDU)会话的建立、修改、释放等。又例如,用户面功能(user plane function,UPF),负责用户数据的转发。
其中,接入网设备可以是5G接入网设备。
可选地,第一设备可以是第二设备的下一跳,或者,第一设备与第二设备之间还可以存在其他传输数据包的设备。
当第一设备与第二设备之间还存在其他传输所述的设备时,第二设备可以通过与第一设备之间的至少一个其他设备,向第一设备发送数据包。
举例说明,如图4所示,数据传输的路径上有三个网络设备和一个终端设备,其中,网络设备1是外部数据网络,网络设备2是核心网设备,网络设备3是接入网设备。若终端设备为第一设备,网络设备1为第二设备。则网络设备1可以将数据包发送给网络设备2,网络设备2接收到数据包后将数据包发送给网络设备3,网络设备3接收到数据包后,可以再将数据包中发送给终端设备。
在该发送方式下,可选地,网络设备1向网络设备2发送的数据包可以携带网络设备1设置的时间戳,网络设备2向网络设备3发送的数据包可以携带网络设备2设置的时间戳,网络设备3向终端设备发送的数据包可以携带网络设备3设置的时间戳。
或者,网络设备1向网络设备2发送的数据包可以携带网络设备1设置的时间戳,网络设备2向网络设备3发送的数据包可以携带网络设备1设置的时间戳,网络设备3向终端设备发送的数据包可以携带网络设备1设置的时间戳。
在第一设备接收到数据包后,第一设备可以将数据包进行解析,获取到第一时间戳。然后第一设备可以基于第一时间戳,确定第一设备与第二设备之间的第一时延。
在一种实现方式中,第一设备基于第一时间戳,确定第一设备与第二设备之间的第一时延,可以包括:第一设备可以基于第一时间戳和第一时刻,确定第一设备和第二设备之间的第一时延。
可选地,第一时刻可以为但不限于数据包到达第一设备的时刻、第一设备解析完数据包的时刻,或第一设备封装完数据包的时刻。
此时,在本申请实施例中,第一时延可以包括以下多种情况:
情况1:第一时延可以为数据包到达第二设备的时刻与数据包到达第一设备的时刻之间的时延。
情况2:第一时延可以为数据包到达第二设备的时刻与第一设备解析完数据包的时刻之间的时延。
情况3:第一时延可以为数据包到达第二设备的时刻与第一设备封装完数据包的时刻之间的时延。
情况4:第一时延可以为第二设备发送数据包的时刻与数据包到达第一设备的时刻之间的时延。
情况5:第一时延可以为第二设备发送数据包的时刻与第一设备解析完数据包的时刻之间的时延。
情况6:第一时延可以为第二设备发送数据包的时刻与第一设备封装完数据包的时刻之间的时延。
情况7:第一时延可以为第二设备解析完数据包的时刻与数据包到达第一设备的时刻之间的时延。
情况8:第一时延可以为第二设备解析完数据包的时刻与第一设备解析完数据包的时刻之间的时延。
情况9:第一时延可以为第二设备解析完数据包的时刻与第一设备封装完数据包的时刻之间的时延。
情况10:第一时延可以为第二设备封装完数据包的时刻与数据包到达第一设备的时刻之间的时延。
情况11:第一时延可以为第二设备封装完数据包的时刻与第一设备解析完数据包的时刻之间的时延。
情况12:第一时延可以为第二设备封装完数据包的时刻与第一设备封装完数据包的时刻之间的时延。
在第一设备确定第一时延的过程中,具体而言,第一设备可以将第一时间戳与第一时刻之间的时间差确定为第一时延。
例如,第一时间戳指示第二设备发送数据包的时刻,第一时刻为数据包到达第一设备的时刻,第二设备在A时刻发送数据包,数据包在B时刻到达第一时刻,则第一设备与第二设备之间的第一时延可以为B-A。
在第一设备确定第一时延后,第一设备可以基于第一时延,对数据包进行处理。
可选地,当第一设备为网络设备时,第一设备基于第一时延对数据包进行处理,可以包括:第一设备基于第一时延,对数据包进行封装和/或发送数据包。
具体而言,第一设备可以基于第一时延,确定以下中的至少一个:对数据包进行封装的起始时刻、对数据包进行封装的结束时刻、对数据包进行封装的时长,以及发送数据包的时刻。之后,第一设备可以基于确定的时刻和/或时长,对数据包进行封装和/或发送数据包。
可选地,当第一设备为终端设备时,第一设备基于第一时延对数据包进行处理,可以包括:第一设备基于第一时延,将数据包递交到应用层。
在一种可能的实施例中,基于第一时延,第一设备对数据包进行处理,可以包括:根据第一时延和第一预配置时延,第一设备确定第一时延与第一预配置时延之间的第一时延差;基于第一时延差,第一设备对数据包进行处理。
其中,第一预配置时延为第一设备与第二设备之间的预配置时延。
可选地,预配置时延可以是具体的数值。例如,预配置时延是2ms。
可选地,预配置时延可以是一个范围值,例如,预配置时延可以是1ms-2ms。
可选地,在本申请实施例中,预配置时延可以配置在每一次传输中的数据包的接收端。
例如,若第二设备向第一设备发送数据包,则第二设备与第一设备之间的预配置时延可以配置在第一设备上。
再例如,若第二设备向第一设备发送数据包,第一设备接收到数据包后,再向第三设备发送该数据包,则第一设备与第二设备之间的预配置时延可以配置在第一设备上,第一设备与第三设备之间的预配置时延可以配置在第三设备上。其中,第三设备可以为第一设备的下一跳节点。
作为一种示例,预配置时延可以是核心网设备、接入网设备或外部数据网络设备配置的。
可选地,核心网设备、接入网设备或外部数据网络设备可以在建立会话或建立服务质量(Quality of Service,QoS)流时,为数据传输路径上的每一段传输预配置相应的时延。
示例性地,在SMF建立确定性传输的会话时,SMF可以根据建立的会话要求或者QoS流的时延和抖动要求,将时延预配置在第一设备上。
作为另一种示例,预配置时延也可以是在协议中规定的。
应理解,本申请实施例中,第一时延可以与预配置时延对应。
可选地,第一时延与预配置时延的对应关系可以理解为:若预配置时延为N时刻到 M时刻之间的时延,则第一时延也为N时刻到M时刻之间的时延,
例如,若预配置时延为数据包到达第二设备的时刻与第一设备解析完该数据包的时刻之间的时延,则第一时延也为数据包到达第二设备的时刻与第一设备解析完该数据包的时刻之间的时延。
再例如,若预配置时延为第二设备发送数据包的时刻与第一设备封装完该数据包的时刻之间的时延,则第一时延可以为第二设备发送数据包的时刻与第一设备封装完该数据包的时刻之间的时延。
可选地,预配置时延可以为多个时延经过叠加后的时延。
例如,若第一时延为数据包到达第二设备的时刻与第一设备解析完该数据包的时刻之间的时延,则预配置时延可以为数据包到达第二设备的时刻与数据包到达第一设备的时刻之间的时延,与数据包到达第一设备的时刻与第一设备解析完该数据包的时刻之间的时延叠加后的时延。
可选地,在本申请实施例中,数据包的数量可以为多个,其中,多个数据包可以通过多路径传输。也就是说,多个数据包可以通过多路径到达第一设备。
可选地,数据包的不同传输路径的预配置时延可以相同,也可以不同,同一个传输路径上的每一段传输的上预配置时延可以相同,也可以不同。本申请实施例不作具体限定。
可选地,第一设备可以根据数据包的传输路径查找第一预配置时延。
可选地,数据包的传输路径可以与预配置时延具有对应关系。
其中,数据包的传输路径与预配置时延的对应关系可以为一一对应的关系,也可以为多对一的关系。
具体而言,在核心网设备、接入网设备或外部数据网络设备将每个传输路径上的时延配置好之后,可以向多个设备广播多个传输路径与预配置时延的对应关系。第一设备获取到该对应关系后,可以根据该对应关系以及数据包的传输路径,查找到对应的预配置时延。
可选地,在本申请实施例中,数据包也可以通过多种传输路径到达不同的数据接收端。
本申请实施例中,第一设备根据第一时延和第一预配置时延确定第一时延差,可以包括:第一设备可以将第一时延与第一预配置时延相减,相减的结果就为第一时延差。
可选地,第一设备可以将第一时延与第一预配置时延相减可以理解为:第一设备用第一时延减去第一预配置时延;或,第一设备用第一预配置时延减去第一时延。
可选地,第一时延差可以为负值,也可以为正值。
示例性地,若第一时延为3ms,第一预配置时延为2ms,第一时延差可以为第一时延减去第一预配置的差值,即第一时延差为1ms,表示第一时延比第一预配置时延多1ms。
再示例性地,若第一时延为1ms,第一预配置时延为2ms,第一时延差可以为第一时延减去第一预配置的差值,即第一时延差为-1ms,表示第一时延比第一预配置时延少1ms。
在第一设备基于第一时延差对数据包进行处理的过程中,作为一种示例,若第一时延差指示第一时延大于第一预配置时延,则第一设备对数据包进行处理的时长可以比预设处理时长少第一时长,或第一设备对数据包进行处理的时刻可以比预设处理时刻提前第一时长,或第一设备对所述数据包进行高优先级处理或立即处理。
其中,第一时长等于第一时延差的绝对值。
可选地,第一设备对数据包进行高优先级处理可以理解为:当除了对数据包进行处理之外,第一设备还有其他业务进行处理时,第一设备可以优先对数据包进行处理,之后,再处理其他业务。
可选地,第一设备对数据包立即处理可以理解为:当第一设备接收到数据包后,无 需等待,立刻对数据包进行处理。
例如,若第一时延为3ms,第一预配置时延为2ms,则第一时长为1ms,若第一设备为网络设备,第一时延为数据包到达第二设备的时刻与数据包到达第一设备的时刻之间的时延,第一时延比第一预配置时延大1ms,预设的第一设备解析数据包的时长为3ms,则第一设备在接收到数据包后,可以用2ms的时长解析完数据包。
在第一设备基于第一时延差对数据包进行处理的过程中,作为另一种示例,若第一时延差指示第一时延小于第一预配置时延,则第一设备对数据包进行处理的时长比预设处理时长多第一时长,或第一设备对数据包进行处理的时刻比预设处理时刻推迟第一时长。
此时,第一设备可以将数据包保存第一时长的时间。
例如,若第一时延为1ms,第一预配置时延为2ms,则第一时长为1ms,若第一设备为终端设备,第一时延为数据包到达第二设备的时刻与第一设备封装完数据包的时刻之间的时延,第一时延比预配置时延小1ms,则第一设备封装完数据包后,将数据包递交到应用层的时刻可以比预设时刻晚1ms。此时,第一设备可以将数据包保存1ms。
可选地,第一设备可以将第一时延与第一预配置时延进行比较。
若第一时延大于第一预配置时延,则第一设备可以确定对数据包进行处理的时长与预设处理时长少,或对数据包进行处理的时刻比预设处理时刻提前,或对数据包进行高优先级处理或立即处理。
需要说明的是,在该实现方式下,第一设备可以基于任何一种方法确定对数据包进行处理的时长与预设处理时长少的时间,或对数据包进行处理的时刻比预设处理时刻提前的时间,本申请实施例不作具体限定。
若第一时延小于第一预配置时延,则第一设备可以确定对数据包进行处理的时长与预设处理时长长,或对数据包进行处理的时刻比预设处理时刻推迟。
可选地,当第一设备为终端设备时,终端设备基于第一时延,将数据包递交到应用层,可以包括:基于第一时延与第一预配置时延之间的第一时延差,第一设备可以确定将数据包递交到应用层的时刻。
具体而言,若第一时延差指示第一时延大于第一预配置时延,则第一设备可以确定将数据包递交到应用层的时刻比预设递交时刻提前第一时长,或第一设备可以高优先级将数据包递交到应用层,或立即将数据包递交到应用层。
若第一时延差指示第一时延小于第一预配置时延,则第一设备可以确定将数据包递交到应用层的时刻比预设递交时刻晚第一时长。
以上描述了第一设备可以基于第一时延和第一预配置时延,确定第一时延差,再基于第一时延差,对数据包进行处理。但是本申请实施例并不限于此。本申请还可以采用其他方式对数据包进行处理。
在一种可能的实施例中,第一设备可以将第一时延确定为第一时延差。即第一设备可以基于第一时延,对数据包进行处理。
例如,若第一时延为3ms,则第一时延差为3ms。
在一种情况下,第一设备确定第一时延之后,可以基于第一时延对数据包进行处理。
例如,若第一时延为2ms,第一设备为网络设备,第一时延为数据包到达第二设备的时刻与数据包到达第一设备的时刻之间的时延,若预设的第一设备解析数据包的时长为3ms,则第一设备在接收到数据包后,可以用1ms的时长解析完数据包。
再例如,若第一时延为1ms,若第一设备为终端设备,第一时延为数据包到达第二设备的时刻与第一设备封装完数据包的时刻之间的时延,则第一设备封装完数据包后,将数据包递交到应用层的时刻可以比预设时刻早1ms。
可选地,在本申请实施例中,数据包还可以携带第二时延差。第二时延差可以为第二时延与第二预配置时延之间的时延差。
其中,第二时延为第二设备与第三设备之间的时延,第二预配置时延为所述第二设备与第三设备之间的预配置时延,第三设备为第二设备的上游节点。
继续参见图4,若网络设备3为第一设备,则网络设备2可以为第二设备,网络设备1可以为第三设备。
此时,基于第一时延差,第一设备对数据包进行处理,可以包括:基于第一时延差与第二时延差,第一设备对数据包进行处理。
作为一种示例,若第一时延差与第二时延差的和指示第一设备与第三设备之间的时延大于第三时延,则第一设备对数据包进行处理的时长可以比预设处理时长少第二时长;或第一设备对数据包进行处理的时刻可以比预设处理时刻提前第二时长;或第一设备可以对数据包进行高优先级处理或立即处理。
其中,第三时延为第一预配置时延与第二预配置时延之和,第二时长为第一时延差与第二时延差之和的绝对值。
需要说明的是,若第一时延差为第一时延减去第一预配置时延的差值,则第二时延差也为第二时延减去第二预配置时延的差值。此时,第一时延差和第二时延差可以为负值,也可以为正值。
作为另一种示例,若第一时延差与第二时延差的和指示第一设备与第三设备之间的时延小于第三,第一设备对数据包进行处理的时长可以比预设处理时长多第二时长,或第一设备对数据包进行处理的时刻可以比预设处理时刻推迟第二时长。
示例性地,第二设备接收到的数据包可以携带第三设备设置的时间戳,第二设备基于第三设备设置的时间戳确定第三设备与第二设备之间的第二时延,再基于该时延与预配置在第二设备上的预配置时延,确定第三设备与第二设备之间的第二时延差,第二设备不对数据包进行处理。
之后,第二设备可以将第二时延差携带在数据包中,同时在数据包中携带第二设备设置的第一时间戳,然后将数据包发送给第一设备。第一设备接收到数据包后,确定第一设备与第二设备之间的第一时延差。然后可以基于第一时延差和第二时延差,对数据包进行处理。
作为一种示例,若第一设备与第二设备之间的第一时延为3ms,第一设备与第二设备之间的第二时延为1ms,第一预配置时延为2ms,第二预配置时延为3ms,则第三时延为5ms,第一时延差可以为第一时延减去第一预配置时延的差值,即1ms,第二时延差可以为第二时延减去第二预配置时延的差值,即-2ms,则第一时延差与第二时延差之和为-1ms,表示第一设备与第三设备之间的时延比第一预配置时延与第二预配置时延之和少2ms,则第一设备对数据包进行处理的时长可以比预设处理时长多2ms。
在另一种实现方式中,第二设备接收到的数据包可以携带第三设备设置的时间戳,第二设备基于第四设备设置的时间戳确定第三设备与第二设备之间的第二时延,将第二时延确定为第三设备与第二设备之间的第二时延差,第二设备不对数据包进行处理。
之后,第二设备可以将第二时延差携带在数据包中,同时可以在数据包中携带第二设备设置的第一时间戳,然后将数据包发送给第一设备。第一设备接收到数据包后,可以确定第一设备与第二设备之间的第一时延,将第一时延确定为第一时延差。然后,第一设备可以基于第一时延差和第二时延差,对数据包进行处理。
应理解,第一设备基于第一时延差与第二时延差,对数据包进行处理的方式可以参考第一设备基于第一时延差对数据包进行处理的方法,为了内容的简洁,此处不再赘述。
可选地,在本申请实施例中,当第一设备为网络设备时,第一设备还可以向第四设备发送数据包,该数据包可以携带第一设备设置的第二时间戳。
可选地,第四设备可以为第一设备的下一跳节点,第四设备可以是终端设备,也可以是网络设备,本申请实施例不做限制。
其中,第二时间戳可以指示数据包到达第一设备的时刻、第一设备发送数据包的时 刻、所述第一设备解析完数据包的时刻,或第一设备封装完数据包的时刻。
在第四设备接收到数据包后,可以基于第二时间戳,确定第一设备与第四设备之间的时延,再基于该时延,第四设备可以对数据包进行处理。
应理解,在本申请实施例中,“第一”、“第二”和“第三”等仅仅为了区分不同的对象,但并不对本申请实施例的范围构成限制。
还应理解,在本申请实施例中,各个方法的描述可以相互参考,在不矛盾的情况下,各个方法的可选方案可以结合使用。例如,第一设备基于第一时间戳确定第一时延,再基于第一时延对数据包进行处理的相关的描述可以适用于第四设备基于第二时间戳确定第一设备与第四设备之间的时延,再基于该时延对数据包进行处理。
在本申请实施例中,当第一设备与第二设备之间存在其他传输数据包的设备时,第一设备可以基于多种方式对数据包进行处理。
方式一,第一设备与第二设备之间的所有设备都对数据包进行处理。
如图4所示,若第一设备为终端设备,第二设备为网络设备1。则网络设备1可以向网络设备2发送数据包,数据包携带网络设备1设置的时间戳,网络设备2接收到数据包后,基于网络设备1设置的时间戳确定网络设备1与网络设备2之间的时延差1,基于时延差1对数据包进行处理。然后,网络设备2可以向网络设备3发送数据包,数据包携带网络设备2设置的时间戳,网络设备3接收到数据包后,基于网络设备2设置的时间戳确定网络设备2与网络设备3之间的时延差2,基于时延差2对数据包进行处理。再然后,网络设备3可以向终端设备发送数据包,数据包携带网络设备3设置的时间戳。终端设备接收到数据包后,基于网络设备3设置的时间戳确定网络设备3与终端设备之间的时延差3,从而可以基于时延差3对数据包进行处理。
可选地,第一设备与第二设备之间的其他设备向下一跳的设备发送数据包时,数据包中可以携带第二设备设置的第一时间戳,也可以不携带第二设备设置的第一时间戳,本申请实施例不做限制。
方式二,第一设备与第二设备之间的设备可以确定两个设备之间的时延差,但可以不对数据包进行处理。
继续参加图4,网络设备1可以向网络设备2发送数据包,数据包携带网络设备1设置的时间戳。网络设备2接收到数据包后,基于网络设备1设置的时间戳确定网络设备1与网络设备2之间的时延差1,网络设备2不对数据包进行处理。然后,网络设备2向网络设备3发送数据包,数据包携带网络设备2设置的时间戳以及网络设备1与网络设备2之间的时延差1。网络设备3接收到数据包后,确定网络设备2与网络设备3之间的时延差2,基于时延差1和时延差2,对数据包进行处理。然后,网络设备3可以向终端设备发送数据包,数据包携带网络设备3设置的时间戳,终端设备接收到数据包后,基于网络设备3设置的时间戳确定网络设备3与终端设备之间的时延差3,从而基于时延差3对数据包进行处理。
可选地,第一设备与第二设备之间的设备向下一跳的设备发送数据包时,数据包中可以携带第一时间戳,也可以不携带第一时间戳。
方式三,第一设备与第二设备之间的所有设备都不对数据包进行处理。
如图5所示,若第一设备为终端设备,第二设备为网络设备2。则网络设备2可以向网络设备3发送数据包,数据包中携带网络设备2设置的时间戳。网络设备3接收到数据包后,不对数据包进行处理,将数据包发送给终端设备,同时,数据包中携带网络设备2设置的时间戳。终端设备接收到数据包后,基于网络设备2设置的时间戳,可以确定网络设备2与终端设备之间的时延,再基于该时延,对数据包进行处理。
本申请实施例,第一设备基于接收到的数据包中携带的时间戳,可以确定与第二设备之间的时延,从而可以根据第一设备与第二设备之间的时延,对数据包进行处理,使得可以实现数据的确定性传输。
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
上文中详细描述了根据本申请实施例的通信方法,下面将结合图6至图8,描述根据本申请实施例的通信装置,方法实施例所描述的技术特征适用于以下装置实施例。
图6示出了本申请实施例的通信设备600的示意性框图。如图6所示,该通信设备600包括:
通信单元610,用于接收数据包,该数据包携带第二设备设置的第一时间戳。
处理单元620,用于基于第一时间戳,确定数据包在通信设备600与第二设备之间的第一时延。
该处理单元620,还用于基于第一时延,对数据包进行处理。
可选地,在本申请实施例中,第一时间戳用于指示数据包到达第二设备的时刻、第二设备发送数据包的时刻、第二设备解析完数据包的时刻,或第二设备封装完数据包的时刻。
可选地,在本申请实施例中,处理单元620具体用于:基于第一时间戳和第一时刻,确定通信设备600与第二设备之间的第一时延,其中,第一时刻为数据包到达通信设备600的时刻、通信设备600解析完数据包的时刻,或通信设备600封装完数据包的时刻。
可选地,在本申请实施例中,处理单元620具体用于:根据第一时延和第一预配置时延,确定第一时延与第一预配置时延之间的第一时延差,第一预配置时延为通信设备600与第二设备之间的预配置时延;基于第一时延差,对数据包进行处理。
可选地,在本申请实施例中,处理单元620具体用于:若第一时延差指示第一时延大于第一预配置时延,对数据包进行处理的时长比预设处理时长少第一时长,或对数据包进行处理的时刻比预设处理时刻提前第一时长,或对数据包进行高优先级处理或立即处理;
若第一时延差指示第一时延小于第一预配置时延,对数据包进行处理的时长比预设处理时长多第一时长,或对数据包进行处理的时刻推迟第一时长;其中,第一时长等于第一时延差的绝对值。
可选地,在本申请实施例中,预配置时延是在会话建立或QoS流建立时,预配置在通信设备600上的。
可选地,在本申请实施例中,数据包的数量为多个,多个数据包是通过多路径传输,不同路径的第一预配置时延不同,处理单元620还用于:根据数据包的路径查找第一预配置时延。
可选地,在本申请实施例中,数据包还携带第二时延差,第二时延差是第二时延与第二预配置时延之间的时延差,其中,第二时延为第二设备与第三设备之间的时延,第二预配置时延为第二设备与第三设备之间的预配置时延,第三设备为第二设备的上游节点;处理单元620具体用于:基于第一时延差与第二时延差,对数据包进行处理。
可选地,在本申请实施例中,处理单元620具体用于:若第一时延差与第二时延差的和指示通信设备600与第三设备之间的时延大于第三时延,对数据包进行处理的时长比预设处理时长少第二时长,或对数据包进行处理的时刻比预设处理时刻提前第二时长,或对数据包进行高优先级处理或立即处理;
若第一时延差与第二时延差的和指示通信设备600与第三设备之间的时延小于第三时延,对数据包进行处理的时长比预设处理时长多第二时长,对数据包进行处理的时刻比预设处理时刻推迟第二时长;其中,
第三时延为第一预配置时延与第二预配置时延之和,第二时长为第一时延差与第二时延差之和的绝对值。
可选地,在本申请实施例中,通信设备600为网络设备,处理单元620具体用于: 基于第一时延,对数据包进行封装和/或发送数据包。
可选地,在本申请实施例中,处理单元620具体用于:基于第一时延,确定以下中的至少一个:对数据包进行封装的起始时刻、对数据包进行封装的结束时刻、对数据包进行封装的时长、发送数据包的时刻;基于该时刻和/或时长,对数据包进行封装和/或发送数据包。
可选地,在本申请实施例中,通信单元610还用于:向第四设备发送数据包,数据包携带第一设备600设置的第二时间戳,第四设备为通信设备600的下一跳节点。
可选地,在本申请实施例中,通信设备600为终端设备,处理单元620具体用于:基于第一时延,将数据包递交到应用层。
可选地,在本申请实施例中,处理单元620具体用于:基于第一时延与第一预配置时延之间的第一时延差,确定将数据包递交到应用层的时刻,第一预配置时延为第一设备与第二设备之间的预配置时延。
可选地,在本申请实施例中,处理单元620具体用于:若第一时延差指示第一时延大于第一预配置时延,确定将数据包递交到应用层的时刻比预设递交时刻提前第一时长,或高优先级将数据包递交到应用层,或立即将数据包递交到应用层;
若第一时延差指示第一时延小于第一预配置时延,确定将数据包递交到应用层的时刻比预设递交时刻晚第一时长;第一时长为第一时延差的绝对值。
可选地,在本申请实施例中,通信设备600是第二设备的下一跳,或者,通信设备600与第二设备之间还存在其他传输所述数据包的设备。
应理解,该通信设备600可对应于方法200中的第一设备,可以实现该方法200中的第一设备的相应操作,为了简洁,在此不再赘述。
图7示出了本申请实施例的通信设备700的示意性框图。如图7所示,该通信设备700包括:
通信单元710,用于发送数据包,该数据包携带通信设备700设置的第一时间戳,第一时间戳用于确定第一设备与通信设备700之间的第一时延。
可选地,在本申请实施例中,第一时间戳用于指示数据包到达通信设备700的时刻、通信设备700发送数据包的时刻、通信设备700解析完数据包的时刻,或通信设备700封装完数据包的时刻。
可选地,在本申请实施例中,数据包还携带通信设备700和第三设备之间的第二时延和第二预配置时延的时延差,第三设备为第一设备的上游节点,其中,第二预配置时延为通信设备700与第三设备之间的预配置时延。
可选地,在本申请实施例中,通信设备700是第一设备的上一跳,或者,通信设备700与第一设备之间还存在其他传输所述数据包的设备。
可选地,在本申请实施例中,通信设备700为网络设备。
应理解,该第二设备通信700可对应于方法300中的第二设备,可以实现该方法300中的第二设备的相应操作,为了简洁,在此不再赘述。
图8是本申请实施例提供的一种通信设备800示意性结构图。图8所示的通信设备800包括处理器810,处理器810可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。
可选地,如图8所示,通信设备800还可以包括存储器820。其中,处理器810可以从存储器820中调用并运行计算机程序,以实现本申请实施例中的方法。
其中,存储器820可以是独立于处理器810的一个单独的器件,也可以集成在处理器810中。
可选地,如图8所示,通信设备800还可以包括收发器830,处理器810可以控制该收发器830与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。
其中,收发器830可以包括发射机和接收机。收发器830还可以进一步包括天线,天线的数量可以为一个或多个。
可选地,该通信设备800具体可为本申请实施例的通信设备,并且该通信设备800可以实现本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该通信设备800具体可为本申请实施例的通信设备,并且该通信设备800可以实现本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
图9是本申请实施例的芯片的示意性结构图。图9所示的芯片900包括处理器910,处理器910可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。
可选地,如图9所示,芯片900还可以包括存储器920。其中,处理器910可以从存储器920中调用并运行计算机程序,以实现本申请实施例中的方法。
其中,存储器920可以是独立于处理器910的一个单独的器件,也可以集成在处理器910中。
可选地,该芯片900还可以包括输入接口930。其中,处理器910可以控制该输入接口930与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。
可选地,该芯片900还可以包括输出接口940。其中,处理器910可以控制该输出接口940与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。
可选地,该芯片可应用于本申请实施例中的通信设备,并且该芯片可以实现本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该芯片可应用于本申请实施例中的通信设备,并且该芯片可以实现本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。
应理解,本申请实施例的处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、 增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
应理解,上述存储器为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)以及直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)等等。也就是说,本申请实施例中的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
图10是本申请实施例提供的一种通信系统1000的示意性框图。如图10所示,该通信系统1000包括通信设备1 1010和通信设备2 1020。
其中,该通信设备1可以用于实现上述方法中由第一设备实现的相应的功能,以及该通信设备2可以用于实现上述方法中由第二设备实现的相应的功能为了简洁,在此不再赘述。
本申请实施例还提供了一种计算机可读存储介质,用于存储计算机程序。
可选地,该计算机可读存储介质可应用于本申请实施例中的第一设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该计算机可读存储介质可应用于本申请实施例中的第二设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供了一种计算机程序产品,包括计算机程序指令。
可选地,该计算机程序产品可应用于本申请实施例中的第一设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
可选地,该计算机程序产品可应用于本申请实施例中的第二设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供了一种计算机程序。
可选地,该计算机程序可应用于本申请实施例中的第一设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由第一设备实现的相应流程,为了简洁,在此不再赘述。
可选的,该计算机程序可应用于本申请实施例中的第二设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由第二设备实现的相应流程,为了简洁,在此不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以 通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,)ROM、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。

Claims (52)

  1. 一种通信方法,其特征在于,所述方法包括:
    第一设备接收数据包,所述数据包携带第二设备设置的第一时间戳;
    基于所述第一时间戳,所述第一设备确定所述数据包在所述第一设备与所述第二设备之间的第一时延;
    基于所述第一时延,所述第一设备对所述数据包进行处理。
  2. 根据权利要求1所述的方法,其特征在于,所述第一时间戳用于指示所述数据包到达所述第二设备的时刻、所述第二设备发送所述数据包的时刻、所述第二设备解析完所述数据包的时刻,或所述第二设备封装完所述数据包的时刻。
  3. 根据权利要求1或2所述的方法,其特征在于,所述基于所述第一时间戳,所述第一设备确定所述第一设备与所述第二设备之间的第一时延,包括:
    基于所述第一时间戳和第一时刻,所述第一设备确定所述第一设备与所述第二设备之间的第一时延,其中,所述第一时刻为所述数据包到达所述第一设备的时刻、所述第一设备解析完所述数据包的时刻,或所述第一设备封装完所述数据包的时刻。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述基于所述第一时延,所述第一设备对所述数据包进行处理,包括:
    根据所述第一时延和第一预配置时延,所述第一设备确定所述第一时延与所述第一预配置时延之间的第一时延差,所述第一预配置时延为所述第一设备与所述第二设备之间的预配置时延;
    基于所述第一时延差,所述第一设备对所述数据包进行处理。
  5. 根据权利要求4所述的方法,其特征在于,所述基于所述第一时延差,所述第一设备对所述数据包进行处理,包括:
    若所述第一时延差指示所述第一时延大于所述第一预配置时延,所述第一设备对所述数据包进行处理的时长比预设处理时长少第一时长,或所述第一设备对所述数据包进行处理的时刻比预设处理时刻提前第一时长,或所述第一设备对所述数据包进行高优先级处理或立即处理;
    若所述第一时延差指示所述第一时延小于所述第一预配置时延,所述第一设备对所述数据包进行处理的时长比预设处理时长多第一时长,或所述第一设备对所述数据包进行处理的时刻推迟第一时长;
    其中,所述第一时长等于所述第一时延差的绝对值。
  6. 根据权利要求4或5所述的方法,其特征在于,所述预配置时延是在会话建立或服务质量QoS流建立时,预配置在所述第一设备上的。
  7. 根据权利要求4至6中任一项所述的方法,其特征在于,所述数据包的数量为多个,多个所述数据包是通过多路径传输,不同路径的所述第一预配置时延不同,所述方法还包括:
    所述第一设备根据所述数据包的路径查找所述第一预配置时延。
  8. 根据权利要求4至7中任一项所述的方法,其特征在于,所述数据包还携带第二时延差,所述第二时延差是第二时延与第二预配置时延之间的时延差,其中,所述第二时延为所述第二设备与第三设备之间的时延,所述第二预配置时延为所述第二设备与所述第三设备之间的预配置时延,所述第三设备为所述第二设备的上游节点;
    所述基于所述第一时延差,所述第一设备对所述数据包进行处理,包括:
    基于所述第一时延差与所述第二时延差,所述第一设备对所述数据包进行处理。
  9. 根据权利要求8所述的方法,其特征在于,所述基于所述第一时延差与所述第二时延差,所述第一设备对所述数据包进行处理,包括:
    若所述第一时延差与第二时延差的和指示所述第一设备与所述第三设备之间的时延 大于第三时延,所述第一设备对所述数据包进行处理的时长比预设处理时长少第二时长,或所述第一设备对所述数据包进行处理的时刻比预设处理时刻提前第二时长,或所述第一设备对所述数据包进行高优先级处理或立即处理;
    若所述第一时延差与第二时延差的和指示所述第一设备与所述第三设备之间的时延小于第三时延,所述第一设备对所述数据包进行处理的时长比预设处理时长多第二时长,或所述第一设备对所述数据包进行处理的时刻比预设处理时刻推迟第二时长;其中,
    所述第三时延为所述第一预配置时延与所述第二预配置时延之和,所述第二时长为所述第一时延差与所述第二时延差之和的绝对值。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述第一设备为网络设备,所述基于所述第一时延,所述第一设备对所述数据包进行处理,包括:
    基于所述第一时延,所述第一设备对所述数据包进行封装和/或发送所述数据包。
  11. 根据权利要求10所述的方法,其特征在于,所述基于所述第一时延,所述第一设备对所述数据包进行封装和/或发送所述数据包,包括:
    基于所述第一时延,所述第一设备确定以下中的至少一个:对所述数据包进行封装的起始时刻、对所述数据包进行封装的结束时刻、对所述数据包进行封装的时长、发送所述数据包的时刻;
    基于所述时刻和/或时长,所述第一设备对所述数据包进行封装和/或发送所述数据包。
  12. 根据权利要求10或11所述的方法,其特征在于,所述方法还包括:
    所述第一设备向第四设备发送所述数据包,所述数据包携带第一设备设置的第二时间戳,所述第四设备为所述第一设备的下一跳节点。
  13. 根据权利要求1至9中任一项所述的方法,其特征在于,所述第一设备为终端设备,所述基于所述第一时延,所述第一设备对所述数据包进行处理,包括:
    基于所述第一时延,所述第一设备将所述数据包递交到应用层。
  14. 根据权利要求13所述的方法,其特征在于,所述基于所述第一时延,所述第一设备将所述数据包递交到应用层,包括:
    基于所述第一时延与第一预配置时延之间的第一时延差,所述第一设备确定将所述数据包递交到应用层的时刻,所述第一预配置时延为所述第一设备与所述第二设备之间的预配置时延。
  15. 根据权利要求14所述的方法,所述基于所述第一时延与所述第一预配置时延之间的第一时延差,所述第一设备确定将所述数据包递交到应用层的时刻,包括:
    若所述第一时延差指示所述第一时延大于所述第一预配置时延,所述第一设备确定将所述数据包递交到所述应用层的时刻比预设递交时刻提前第一时长,或所述第一设备高优先级将所述数据包递交到所述应用层,或立即将所述数据包递交到所述应用层;
    若所述第一时延差指示所述第一时延小于所述第一预配置时延,所述第一设备确定将所述数据包递交到所述应用层的时刻比预设递交时刻晚第一时长;
    所述第一时长为所述第一时延差的绝对值。
  16. 根据权利要求1至15中任一项所述的方法,其特征在于,所述第一设备是所述第二设备的下一跳,或者,所述第一设备与所述第二设备之间还存在其他传输所述数据包的设备。
  17. 一种通信方法,其特征在于,所述方法包括:
    第二设备发送数据包,所述数据包携带所述第二设备设置的第一时间戳,所述第一时间戳用于确定所述第一设备与所述第二设备之间的第一时延。
  18. 根据权利要求17所述的方法,其特征在于,所述第一时间戳用于指示所述数据包到达所述第二设备的时刻、所述第二设备发送所述数据包的时刻、所述第二设备解析完所述数据包的时刻,或所述第二设备封装完所述数据包的时刻。
  19. 根据权利要求17或18所述的方法,其特征在于,所述数据包还携带所述第二设备和第三设备之间的第二时延和第二预配置时延的时延差,所述第四设备为所述第一设备的上游节点,其中,所述第二预配置时延为所述第二设备与所述第三设备之间的预配置时延。
  20. 根据权利要求17至19中任一项所述的方法,其特征在于,所述第二设备是所述第一设备的上一跳,或者,所述第二设备与所述第一设备之间还存在其他传输所述数据包的设备。
  21. 根据权利要求17至20中任一项所述的方法,其特征在于,所述第二设备为网络设备。
  22. 一种通信设备,其特征在于,包括:
    通信单元,用于接收数据包,所述数据包携带第二设备设置的第一时间戳;
    处理单元,用于基于所述第一时间戳,确定所述数据包在所述通信设备与所述第二设备之间的第一时延;
    所述处理单元,还用于基于所述第一时延,对所述数据包进行处理。
  23. 根据权利要求22所述的通信设备,其特征在于,所述第一时间戳用于指示所述数据包到达所述第二设备的时刻、所述第二设备发送所述数据包的时刻、所述第二设备解析完所述数据包的时刻,或所述第二设备封装完所述数据包的时刻。
  24. 根据权利要求22或23所述的通信设备,其特征在于,所述处理单元具体用于:
    基于所述第一时间戳和第一时刻,确定所述通信设备与所述第二设备之间的第一时延,其中,所述第一时刻为所述数据包到达所述通信设备的时刻、所述通信设备解析完所述数据包的时刻,或所述通信设备封装完所述数据包的时刻。
  25. 根据权利要求22至24中任一项所述的通信设备,其特征在于,所述处理单元具体用于:
    根据所述第一时延和第一预配置时延,确定所述通信设备确定所述第一时延与所述第一预配置时延之间的第一时延差,所述第一预配置时延为所述第一设备与所述第二设备之间的预配置时延;
    基于所述第一时延差,对所述数据包进行处理。
  26. 根据权利要求25所述的通信设备,其特征在于,所述处理单元具体用于:
    若所述第一时延差指示所述第一时延大于所述第一预配置时延,对所述数据包进行处理的时长比预设处理时长少第一时长,或对所述数据包进行处理的时刻比预设处理时刻提前第一时长,或对所述数据包进行高优先级处理或立即处理;
    若所述第一时延差指示所述第一时延小于所述第一预配置时延,对所述数据包进行处理的时长比预设处理时长多第一时长,或对所述数据包进行处理的时刻推迟第一时长;
    其中,所述第一时长等于所述第一时延差的绝对值。
  27. 根据权利要求25或26所述的通信设备,其特征在于,所述预配置时延是在会话建立或服务质量QoS流建立时,预配置在所述通信设备上的。
  28. 根据权利要求25至27中任一项所述的通信设备,其特征在于,所述数据包的数量为多个,多个所述数据包是通过多路径传输,不同路径的所述第一预配置时延不同,所述处理单元还用于:
    根据所述数据包的路径查找所述第一预配置时延。
  29. 根据权利要求25至28中任一项所述的通信设备,其特征在于,所述数据包还携带第二时延差,所述第二时延差是第二时延与第二预配置时延之间的时延差,其中,所述第二时延为所述第二设备与第三设备之间的时延,所述第二预配置时延为所述第二设备与所述第三设备之间的预配置时延,所述第三设备为所述第二设备的上游节点;
    所述处理单元具体用于:
    基于所述第一时延差与所述第二时延差,对所述数据包进行处理。
  30. 根据权利要求29所述的通信设备,其特征在于,所述处理单元具体用于:
    若所述第一时延差与第二时延差的和指示所述第一设备与所述第三设备之间的时延大于第三时延,对所述数据包进行处理的时长比预设处理时长少第二时长,或对所述数据包进行处理的时刻比预设处理时刻提前第二时长,或对所述数据包进行高优先级处理或立即处理;
    若所述第一时延差与第二时延差的和指示所述第一设备与所述第三设备之间的时延小于第三时延,对所述数据包进行处理的时长比预设处理时长多第二时长,对所述数据包进行处理的时刻比预设处理时刻推迟第二时长;其中,
    所述第三时延为所述第一预配置时延与所述第二预配置时延之和,所述第二时长为所述第一时延差与所述第二时延差之和的绝对值。
  31. 根据权利要求22至30中任一项所述的通信设备,其特征在于,所述通信设备为网络设备,所述处理单元具体用于:
    基于所述第一时延,对所述数据包进行封装和/或发送所述数据包。
  32. 根据权利要求31所述的通信设备,其特征在于,所述处理单元具体用于:
    基于所述第一时延,确定以下中的至少一个:对所述数据包进行封装的起始时刻、对所述数据包进行封装的结束时刻、对所述数据包进行封装的时长、发送所述数据包的时刻;
    基于所述时刻和/或时长,对所述数据包进行封装和/或发送所述数据包。
  33. 根据权利要求31或32所述的通信设备,其特征在于,所述通信单元还用于:
    向第四设备发送所述数据包,所述数据包携带第一设备设置的第二时间戳,所述第四设备为所述通信设备的下一跳节点。
  34. 根据权利要求22至30中任一项所述的通信设备,其特征在于,所述通信设备为终端设备,所述处理单元具体用于:
    基于所述第一时延,将所述数据包递交到应用层。
  35. 根据权利要求34所述的通信设备,其特征在于,所述处理单元具体用于:
    基于所述第一时延与第一预配置时延之间的第一时延差,确定将所述数据包递交到应用层的时刻,所述第一预配置时延为所述第一设备与所述第二设备之间的预配置时延。
  36. 根据权利要求35所述的通信设备,其特征在于,所述处理单元具体用于:
    若所述第一时延差指示所述第一时延大于所述第一预配置时延,确定将所述数据包递交到所述应用层的时刻比预设递交时刻提前第一时长,或高优先级将所述数据包递交到所述应用层,或立即将所述数据包递交到所述应用层;
    若所述第一时延差指示所述第一时延小于所述第一预配置时延,确定将所述数据包递交到所述应用层的时刻比预设递交时刻晚第一时长;
    所述第一时长为所述第一时延差的绝对值。
  37. 根据权利要求22至36中任一项所述的通信设备,其特征在于,所述通信设备是所述第二设备的下一跳,或者,所述通信设备与所述第二设备之间还存在其他传输所述数据包的设备。
  38. 一种通信设备,其特征在于,包括:
    通信单元,用于发送数据包,所述数据包携带所述通信设备设置的第一时间戳,所述第一时间戳用于确定所述第一设备与所述通信设备之间的第一时延。
  39. 根据权利要求38所述的通信设备,其特征在于,所述第一时间戳用于指示所述数据包到达所述通信设备的时刻、所述通信设备发送所述数据包的时刻、所述通信设备解析完所述数据包的时刻,或所述通信设备封装完所述数据包的时刻。
  40. 根据权利要求38或39所述的通信设备,其特征在于,所述数据包还携带所述第二设备和第三设备之间的第二时延和第二预配置时延的时延差,所述第三设备为所述第一设备的上游节点,其中,所述第二预配置时延为所述第二设备与所述第三设备之间 的预配置时延。
  41. 根据权利要求38至40中任一项所述的通信设备,其特征在于,所述通信设备是所述第一设备的上一跳,或者,所述通信设备与所述第一设备之间还存在其他传输所述数据包的设备。
  42. 根据权利要求38至41中任一项所述的通信设备,其特征在于,所述通信设备为网络设备。
  43. 一种通信设备,其特征在于,包括:处理器和存储器,所述存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,执行如权利要求1至16中任一项所述的方法。
  44. 一种通信设备,其特征在于,包括:处理器和存储器,所述存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,执行如权利要求17至21中任一项所述的方法。
  45. 一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1至16中任一项所述的方法。
  46. 一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求17至21中任一项所述的方法。
  47. 一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序使得计算机执行如权利要求1至16中任一项所述的方法。
  48. 一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序使得计算机执行如权利要求17至21中任一项所述的方法。
  49. 一种计算机程序产品,其特征在于,包括计算机程序指令,该计算机程序指令使得计算机执行如权利要求1至16中任一项所述的方法。
  50. 一种计算机程序产品,其特征在于,包括计算机程序指令,该计算机程序指令使得计算机执行如权利要求17至21中任一项所述的方法。
  51. 一种计算机程序,其特征在于,所述计算机程序使得计算机执行如权利要求1至16中任一项所述的方法。
  52. 一种计算机程序,其特征在于,所述计算机程序使得计算机执行如权利要求17至21中任一项所述的方法。
PCT/CN2018/103091 2018-08-29 2018-08-29 通信方法和设备 WO2020042039A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2018/103091 WO2020042039A1 (zh) 2018-08-29 2018-08-29 通信方法和设备
CN201880093975.XA CN112205028B (zh) 2018-08-29 2018-08-29 通信方法和设备
TW108131019A TW202021320A (zh) 2018-08-29 2019-08-29 通訊方法和設備

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103091 WO2020042039A1 (zh) 2018-08-29 2018-08-29 通信方法和设备

Publications (1)

Publication Number Publication Date
WO2020042039A1 true WO2020042039A1 (zh) 2020-03-05

Family

ID=69644905

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103091 WO2020042039A1 (zh) 2018-08-29 2018-08-29 通信方法和设备

Country Status (3)

Country Link
CN (1) CN112205028B (zh)
TW (1) TW202021320A (zh)
WO (1) WO2020042039A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114698086A (zh) * 2020-12-31 2022-07-01 中国移动通信有限公司研究院 信息指示方法、装置、相关设备及存储介质
WO2023273048A1 (zh) * 2021-07-01 2023-01-05 北京佰才邦技术股份有限公司 通信时延确定方法和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123073A (zh) * 2010-01-07 2011-07-13 华为技术有限公司 数据包重排序方法及装置
CN102984107A (zh) * 2011-09-07 2013-03-20 普天信息技术研究院有限公司 一种适用于lte系统的光纤时延补偿方法和装置
WO2015143667A1 (zh) * 2014-03-27 2015-10-01 华为技术有限公司 一种基于docsis协议的传输时延测量方法、设备及系统
CN106454553A (zh) * 2016-11-15 2017-02-22 深圳市视维科技有限公司 精准时延直播视频网络传输控制方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8300668B2 (en) * 2006-09-29 2012-10-30 Harris Corporation Automatic delay compensated simulcasting system and method
US7995493B2 (en) * 2008-12-23 2011-08-09 Airvana, Corp. Estimating bandwidth in communication networks
CN102547969B (zh) * 2012-02-24 2014-06-25 电子科技大学 一种面向电力系统的高精度无线时钟同步系统
CN104683993B (zh) * 2015-02-09 2018-05-29 清华大学 卫星与陆地多域协同通信系统
CN106304377B (zh) * 2015-06-04 2019-12-13 电信科学技术研究院 一种进行调度的方法和设备
WO2017079920A1 (zh) * 2015-11-11 2017-05-18 华为技术有限公司 同步的方法与设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123073A (zh) * 2010-01-07 2011-07-13 华为技术有限公司 数据包重排序方法及装置
CN102984107A (zh) * 2011-09-07 2013-03-20 普天信息技术研究院有限公司 一种适用于lte系统的光纤时延补偿方法和装置
WO2015143667A1 (zh) * 2014-03-27 2015-10-01 华为技术有限公司 一种基于docsis协议的传输时延测量方法、设备及系统
CN106454553A (zh) * 2016-11-15 2017-02-22 深圳市视维科技有限公司 精准时延直播视频网络传输控制方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114698086A (zh) * 2020-12-31 2022-07-01 中国移动通信有限公司研究院 信息指示方法、装置、相关设备及存储介质
WO2023273048A1 (zh) * 2021-07-01 2023-01-05 北京佰才邦技术股份有限公司 通信时延确定方法和电子设备

Also Published As

Publication number Publication date
CN112205028A (zh) 2021-01-08
TW202021320A (zh) 2020-06-01
CN112205028B (zh) 2023-07-11

Similar Documents

Publication Publication Date Title
WO2020155172A1 (zh) 业务处理方法、装置、芯片及计算机程序
WO2021030989A1 (zh) 一种路径选择方法及装置、终端
WO2020062819A1 (zh) 一种控制数据传输方法、网络设备和存储介质
WO2020019230A1 (zh) 一种资源配置方法及装置、终端设备、网络设备
US11877326B2 (en) Wireless communication method and communication device
AU2018402241A1 (en) Relay transmission method and relay node
WO2021031010A1 (zh) 通信方法、终端设备和网络设备
WO2021056573A1 (zh) 建立会话的方法和终端设备
WO2020042039A1 (zh) 通信方法和设备
WO2020029109A1 (zh) 一种信息配置方法及装置、终端、网络设备
WO2020061851A1 (zh) 无线通信方法和基站
WO2020223907A1 (zh) 一种信息传输方法及装置、网络设备
WO2020113520A1 (zh) 用于建立连接的方法、网络设备和终端设备
WO2020191765A1 (zh) 传输数据的方法和终端设备
WO2020056587A1 (zh) 一种切换处理方法、终端设备及网络设备
WO2020010619A1 (zh) 数据传输方法、终端设备和网络设备
CN112956237B (zh) 业务处理方法、装置、芯片及计算机程序
WO2020061962A1 (zh) 一种切换定时方法、终端设备及网络设备
WO2020082327A1 (zh) 一种切换过程中的信令交互方法及装置、网络设备
TW202027471A (zh) 一種資料傳輸方法及網路設備
WO2020029275A1 (zh) 一种无线通信方法、终端设备和网络设备
WO2020163999A1 (zh) 无线通信的方法和设备
WO2019237359A1 (zh) 无线通信方法、接入网设备、终端设备和核心网设备
WO2020034125A1 (zh) 一种恢复rrc连接的方法及装置、终端
WO2023108564A1 (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: 18931774

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18931774

Country of ref document: EP

Kind code of ref document: A1