CN112205028B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN112205028B
CN112205028B CN201880093975.XA CN201880093975A CN112205028B CN 112205028 B CN112205028 B CN 112205028B CN 201880093975 A CN201880093975 A CN 201880093975A CN 112205028 B CN112205028 B CN 112205028B
Authority
CN
China
Prior art keywords
delay
data packet
time
processing
duration
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201880093975.XA
Other languages
Chinese (zh)
Other versions
CN112205028A (en
Inventor
刘建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112205028A publication Critical patent/CN112205028A/en
Application granted granted Critical
Publication of CN112205028B publication Critical patent/CN112205028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application relates to a communication method and equipment, wherein the method comprises the following steps: the first equipment receives a data packet, wherein the data packet carries a first time stamp set by the second equipment; based on the first timestamp, 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 based on the first delay. The communication method and the communication device can realize deterministic transmission of data.

Description

Communication method and device
Technical Field
The present application relates to the field of communications, and in particular, to a communication method and apparatus.
Background
A fifth Generation mobile communication technology (5G) system introduces deterministic transmission, where deterministic transmission may refer to the time of processing of data at the time of communication being determined.
However, there is no clear provision for how to achieve deterministic transfer of data.
Disclosure of Invention
The embodiment of the application provides a communication method and device, which can realize deterministic transmission of data.
In a first aspect, a communication method is provided, the method comprising: the method comprises the steps that a first device receives a data packet, wherein the data packet carries a first time stamp set by a second device;
Based on the first timestamp, the first device determines a first delay of the data packet between the first device and the second device;
and processing the data packet by the first equipment based on the first time delay.
In a second aspect, there is provided a communication method, the method comprising: the second device sends a data packet, wherein the data packet carries a first time stamp set by the second device, and the first time stamp is used for determining a first time delay between the first device and the second device.
In a third aspect, a communication device is provided for performing the method of the first aspect or implementations thereof.
In particular, the device comprises functional modules for performing the method of the first aspect described above or in various implementations thereof.
In a fourth aspect, a communication device is provided for performing the method of the second aspect or implementations thereof.
In particular, the device comprises functional modules for performing the method of the second aspect described above or in various implementations thereof.
In a fifth aspect, a communication device is provided that includes a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory and executing the method in the first aspect or various implementation manners thereof.
In a sixth aspect, a communication device is provided that includes a processor and a memory. The memory is for storing a computer program and the processor is for calling and running the computer program stored in the memory for performing the method of the second aspect or implementations thereof described above.
A seventh aspect provides a chip for implementing the method of any one of the first to second aspects or each implementation thereof.
Specifically, the chip includes: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method as in any one of the first to second aspects or implementations thereof described above.
In an eighth aspect, a computer-readable storage medium is provided for storing a computer program that causes a computer to perform the method of any one of the above-described first to second aspects or implementations thereof.
In a ninth aspect, there is provided a computer program product comprising computer program instructions for causing a computer to perform the method of any one of the first to second aspects or implementations thereof.
In a tenth aspect, there is provided a computer program which, when run on a computer, causes the computer to perform the method of any one of the first to second aspects or implementations thereof.
According to the technical scheme, the first device can determine the time delay between the first device and the second device based on the time stamp carried in the received data packet, so that the data packet can be processed according to the time delay between the first device and the second device, and deterministic transmission of data can be realized.
Drawings
Fig. 1 is a schematic diagram of a communication system architecture provided in an embodiment of the present application.
Fig. 2 is a schematic flow chart of a communication method provided in an embodiment of the present application.
Fig. 3 is a schematic flow chart of a communication method provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a data transmission path provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of another data transmission path provided in an embodiment of the present application.
Fig. 6 is a schematic block diagram of a communication device provided in an embodiment of the present application.
Fig. 7 is a schematic block diagram of a communication device provided in an embodiment of the present application.
Fig. 8 is a schematic block diagram of a communication device provided in an embodiment of the present application.
Fig. 9 is a schematic block diagram of a chip provided in an embodiment of the present application.
Fig. 10 is a schematic block diagram of a communication system provided in an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The technical solution of the embodiment of the application can be applied to various communication systems, for example: global system for mobile communications (Global System of Mobile communication, GSM), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA) systems, general packet radio service (General Packet Radio Service, GPRS), long term evolution (Long Term Evolution, LTE) systems, LTE frequency division duplex (Frequency Division Duplex, FDD) systems, LTE time division duplex (Time Division Duplex, TDD), universal mobile telecommunications system (Universal Mobile Telecommunication System, UMTS), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wiMAX) communication systems, or 5G systems, and the like.
Exemplary, a communication system 100 to which embodiments of the present application apply is shown in fig. 1. 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 referred to as a communication terminal, terminal). Network device 110 may provide communication coverage for a particular geographic area and may communicate with terminal devices located within the coverage area. Alternatively, the network device 110 may be a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, a base station (NodeB, NB) in a WCDMA system, an evolved base station (Evolutional Node B, eNB or eNodeB) in an LTE system, or a radio controller in a cloud radio access network (Cloud Radio Access Network, CRAN), or the network device may be a mobile switching center, a relay station, an access point, a vehicle device, a wearable device, a hub, a switch, a bridge, a router, a network-side device in a 5G network, or a network device in a future evolved public land mobile network (Public Land Mobile Network, PLMN), etc.
The communication system 100 further comprises at least one terminal device 120 located within the coverage area of the network device 110. "terminal device" as used herein includes, but is not limited to, a connection via a wireline, such as via a public-switched telephone network (Public Switched Telephone Networks, PSTN), a digital subscriber line (Digital Subscriber Line, DSL), a digital cable, a direct cable connection; and/or another data connection/network; and/or via a wireless interface, e.g., for a cellular network, a wireless local area network (Wireless Local Area Network, WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter; and/or means of the other terminal device arranged to receive/transmit communication signals; and/or internet of things (Internet of Things, ioT) devices. Terminal devices arranged to communicate over a wireless interface may be referred to as "wireless communication terminals", "wireless terminals" or "mobile terminals". Examples of mobile terminals include, but are not limited to, satellites or cellular telephones; a personal communications system (Personal Communications System, PCS) terminal that may combine a cellular radiotelephone with data processing, facsimile and data communications capabilities; a PDA that can include a radiotelephone, pager, internet/intranet access, web browser, organizer, calendar, and/or a global positioning system (Global Positioning System, GPS) receiver; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. A terminal device may refer to an access terminal, user Equipment (UE), subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent, or User Equipment. An access terminal may be a cellular telephone, a cordless telephone, a session initiation protocol (Session Initiation Protocol, SIP) phone, a wireless local loop (Wireless Local Loop, WLL) station, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in a 5G network or a terminal device in a future evolved PLMN, etc.
Alternatively, direct terminal (D2D) communication may be performed between the terminal devices 120.
Alternatively, the 5G system or 5G network may also be referred to as a New Radio (NR) system or NR network.
Fig. 1 illustrates one network device and two terminal devices by way of example, and alternatively, the communication system 100 may include a plurality of network devices and may include other numbers of terminal devices within the coverage area of each network device, which is not limited in this embodiment of the present application.
Optionally, the communication system 100 may further include a network controller, a mobility management entity, and other network entities, which are not limited in this embodiment of the present application.
It should be understood that a device having a communication function in a network/system in an embodiment of the present application may be referred to as a communication device. Taking the communication system 100 shown in fig. 1 as an example, the communication device may include a network device 110 and a terminal device 120 with communication functions, where 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 a network controller, a mobility management entity, and other network entities, which are not limited in this embodiment of the present application.
Fig. 2 is a schematic flow chart of a communication method 200 according to an embodiment of the present application. The method 200 may be performed by a first device and may include at least some of the following.
At 210, a first device receives a data packet carrying a first timestamp set by a second device.
In 220, the first device determines a first delay of the data packet between the first device and the second device based on the first timestamp.
Based on the first delay, the first device processes the data packet at 230.
Fig. 3 is a schematic flow chart of a communication method 300 according to an embodiment of the present application. The method 300 may be performed by a second device and may include at least some of the following.
In 310, the second device sends a data packet carrying a first timestamp set by the second device, the timestamp being used to determine a first delay between the first device and the second device.
The communication method according to the embodiment of the present application will be further described below with reference to fig. 2 and 3. It should be understood that what is described below applies both to method 200 and to method 300.
It should be appreciated that the embodiments of the present application may be applied to a scenario where data is required to arrive at a receiving end at a determined time. Alternatively, the scenario may be a scenario of multiparty collaboration, such as controlling a robot to perform multiparty collaboration. For example, when controlling robots to perform multi-party cooperation, it is necessary for a plurality of robots to perform operations for the same time, and if one robot command arrives in advance, it is possible to wait for the arrival of the commands of the other robots.
Optionally, the embodiment of the application may also be applied to a scenario for preventing data packet disorder.
It should be noted that the determined time in the embodiments of the present application does not refer to an absolute certain time, but refers to a certain time range.
In the embodiment of the application, the second device sends the data packet, and accordingly, the first device may receive the data packet.
The data packet may carry a first timestamp set by the second device.
Optionally, the first timestamp may be used to indicate a time when the data packet arrives at the second device, a time when the second device sends the data packet, a time when the second device parses the data packet, or a time when the second device encapsulates the data packet.
It should be noted that, in the embodiment of the present application, the time indicated by the first timestamp of the transmission of the data packet of the same device or the transmission of the same data packet of different devices may be different.
Alternatively, the first device may be a terminal device or a network device.
Alternatively, the second device may be a network device.
Alternatively, 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, an access and mobility management function (Access and Mobility Management Function, AMF), responsible for access and mobility management, and having functions of authentication, handover, location update, etc. for a user. As another example, a session management function (Session Management Function, SMF) is responsible for session management, including establishment, modification, release, etc. of Packet Data Unit (PDU) sessions. As another example, a user plane function (user plane function, UPF) is responsible for forwarding user data.
Wherein the access network device may be a 5G access network device.
Alternatively, the first device may be the next hop of the second device, or other devices transmitting data packets may also exist between the first device and the second device.
When there are other devices transmitting the data packet between the first device and the second device, the second device may send the data packet to the first device through at least one other device between the second device and the first device.
As shown in fig. 4, for example, there are three network devices and one terminal device on the path of data transmission, where the network device 1 is an external data network, the network device 2 is a core network device, and the network device 3 is an access network device. If the terminal device is a first device, the network device 1 is a second device. The network device 1 may send the data packet to the network device 2, the network device 2 receives the data packet and then sends the data packet to the network device 3, and the network device 3 may send the data packet to the terminal device after receiving the data packet.
In this transmission manner, optionally, the data packet sent by the network device 1 to the network device 2 may carry a timestamp set by the network device 1, the data packet sent by the network device 2 to the network device 3 may carry a timestamp set by the network device 2, and the data packet sent by the network device 3 to the terminal device may carry a timestamp set by the network device 3.
Alternatively, the data packet sent by the network device 1 to the network device 2 may carry a timestamp set by the network device 1, the data packet sent by the network device 2 to the network device 3 may carry a timestamp set by the network device 1, and the data packet sent by the network device 3 to the terminal device may carry a timestamp set by the network device 1.
After the first device receives the data packet, the first device may parse the data packet to obtain a first timestamp. The first device may then determine a first time delay between the first device and the second device based on the first time stamp.
In one implementation, the first device determining a first delay between the first device and the second device based on the first timestamp may include: the first device may determine a first time delay between the first device and the second device based on the first time stamp and the first time of day.
Alternatively, the first time may be, but is not limited to, a time when the data packet arrives at the first device, a time when the first device parses the data packet, or a time when the first device encapsulates the data packet.
At this time, in the embodiment of the present application, the first delay may include the following cases:
case 1: the first delay may be a delay between a time when the data packet arrives at the second device and a time when the data packet arrives at the first device.
Case 2: 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.
Case 3: 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 encapsulates the data packet.
Case 4: the first delay may be a delay between a time when the second device transmits the data packet and a time when the data packet arrives at the first device.
Case 5: the first delay may be a delay between a time when the second device transmits the data packet and a time when the first device parses the data packet.
Case 6: the first delay may be a delay between a time when the second device transmits the data packet and a time when the first device encapsulates the data packet.
Case 7: the first delay may be a delay between a time when the second device parses the data packet and a time when the data packet arrives at the first device.
Case 8: the first delay may be a delay between a time when the second device parses the data packet and a time when the first device parses the data packet.
Case 9: the first delay may be a delay between a time when the second device parses the data packet and a time when the first device encapsulates the data packet.
Case 10: 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 arrives at the first device.
Case 11: 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.
Case 12: 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 encapsulates the data packet.
In determining the first time delay by the first device, in particular, the first device may determine a time difference between the first time stamp and the first time as the first time delay.
For example, the first timestamp indicates ase:Sub>A time when the second device sends the datase:Sub>A packet, where the first time is ase:Sub>A time when the datase:Sub>A packet arrives at the first device, the second device sends the datase:Sub>A packet at the time ase:Sub>A, and the datase:Sub>A packet arrives at the first time at the time B, so that the first delay between the first device and the second device may be B-ase:Sub>A.
After the first device determines the first delay, the first device may process the data packet based on the first delay.
Optionally, when the first device is a network device, the processing, by the first device, the data packet based on the first delay may include: the first device encapsulates and/or transmits the data packet based on the first delay.
Specifically, the first device may determine, based on the first latency, at least one of: the method comprises the steps of starting time for packaging the data packet, ending time for packaging the data packet, time for packaging the data packet and time for transmitting the data packet. The first device may then encapsulate and/or transmit the data packet based on the determined time and/or duration.
Optionally, when the first device is a terminal device, the processing, by the first device, 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.
In one possible embodiment, processing, by the first device, the data packet based on the first delay may include: according to the first time delay and the first pre-configured time delay, the first equipment determines a first time delay difference between the first time delay and the first pre-configured time delay; the first device processes the data packet based on the first delay difference.
The first preconfigured time delay is a preconfigured time delay between the first device and the second device.
Alternatively, the preconfigured delay may be a specific value. For example, the preconfigured delay is 2ms.
Alternatively, the preconfigured delay may be a range of values, for example, the preconfigured delay may be 1ms-2ms.
Alternatively, in the embodiment of the present application, the preconfigured delay may be configured at the receiving end of the data packet in each transmission.
For example, if the second device sends a data packet to the first device, a preconfigured delay between the second device and the first device may be configured on the first device.
For another example, if the second device sends a data packet to the first device, and the first device sends the data packet to the third device after receiving the data packet, the preconfigured time delay between the first device and the second device may be configured on the first device, and the preconfigured time delay between the first device and the third device may be configured on the third device. Wherein the third device may be a next hop node of the first device.
As an example, the preconfigured delay may be configured by a core network device, an access network device, or an external data network device.
Alternatively, the core network device, access network device, or external data network device may pre-configure a respective delay for each segment transmission on the data transmission path when establishing a session or establishing a quality of service (Quality of Service, qoS) flow.
Illustratively, when the SMF establishes a session for deterministic transmission, the SMF may pre-configure the delay on the first device according to established session requirements or delay and jitter requirements of the QoS flow.
As another example, the preconfigured delay may also be specified in the protocol.
It should be appreciated that in the embodiments of the present application, the first delay may correspond to a preconfigured delay.
Alternatively, the correspondence between the first time delay and the preconfigured time delay may be understood as: if the preconfigured time delay is a time delay from the time N to the time M, the first time delay is also a time delay from the time N to the time M,
for example, if the preconfigured delay is 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 is also 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.
For another example, if the preconfigured delay is a delay between a time when the second device sends the data packet and a time when the first device encapsulates the data packet, the first delay may be a delay between a time when the second device sends the data packet and a time when the first device encapsulates the data packet.
Alternatively, the preconfigured delay may be a delay in which a plurality of delays are superimposed.
For example, if the first delay is 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 pre-configured delay may be a delay after a delay between a time when the data packet arrives at the second device and a time when the data packet arrives at the first device is superimposed with a delay between a time when the data packet arrives at the first device and a time when the first device parses the data packet.
Alternatively, in the embodiment of the present application, the number of data packets may be plural, where plural data packets may be transmitted through multiple paths. That is, a plurality of data packets may arrive at the first device via multiple paths.
Optionally, the preconfigured delays of different transmission paths of the data packet may be the same or different, and the upper preconfigured delay of each transmission segment on the same transmission path may be the same or different. The embodiments of the present application are not particularly limited.
Alternatively, the first device may look up the first preconfigured delay according to the transmission path of the data packet.
Alternatively, the transmission path of the data packet may have a correspondence with the preconfigured delay.
The corresponding relationship between the transmission path of the data packet and the preconfigured time delay can be a one-to-one relationship or a many-to-one relationship.
Specifically, after the core network device, the access network device, or the external data network device configures the delay on each transmission path, the correspondence between the plurality of transmission paths and the preconfigured delay may be broadcasted to a plurality of devices. After the first device obtains the corresponding relation, the corresponding preconfigured time delay can be found according to the corresponding relation and the transmission path of the data packet.
Alternatively, in the embodiment of the present application, the data packet may reach different data receiving ends through multiple transmission paths.
In this embodiment of the present application, the determining, by the first device, the first delay difference according to the first delay and the first preconfigured delay may include: the first device may subtract the first delay from the first preconfigured delay, and the result of the subtracting is a first delay difference.
Alternatively, the first device may subtract the first delay from the first preconfigured delay may be understood as: subtracting the first preconfigured time delay from the first time delay by the first equipment; or, the first device subtracts the first delay from the first preconfigured delay.
Alternatively, the first delay difference may be a negative value or a positive value.
For example, if the first delay is 3ms, the first preconfigured delay is 2ms, and the first delay difference may be the difference of the first delay minus the first preconfigured delay, that is, the first delay difference is 1ms, which indicates that the first delay is 1ms more than the first preconfigured delay.
For another example, if the first delay is 1ms, the first preconfigured delay is 2ms, and the first delay difference may be the difference of the first delay minus the first preconfigured delay, that is, the first delay difference is-1 ms, which indicates that the first delay is 1ms less than the first preconfigured delay.
In the process of processing the data packet by the first device based on the first delay difference, as an example, if the first delay difference indicates that the first delay is greater than the first preset delay, the duration of processing the data packet by the first device may be less than the preset processing duration by a first time, or the time of processing the data packet by the first device may be earlier than the preset processing time by the first time, or the data packet may be processed by the first device with a high priority or immediately.
Wherein the first time length is equal to the absolute value of the first time delay difference.
Alternatively, the first device performing high priority processing on the data packet may be understood as: when the first device processes other traffic in addition to the data packet, the first device may preferentially process the data packet, and then process the other traffic.
Alternatively, the immediate processing of the data packet by the first device may be understood as: and after the first device receives the data packet, the first device processes the data packet immediately without waiting.
For example, if the first delay is 3ms and the first preconfigured delay is 2ms, the first duration is 1ms, if the first device is a network device, the first delay is a delay between a time when the data packet arrives at the second device and a time when the data packet arrives at the first device, the first delay is 1ms greater than the first preconfigured delay, and the preset duration for analyzing the data packet by the first device is 3ms, after the first device receives the data packet, the data packet can be analyzed by using the duration of 2 ms.
In the process of processing the data packet by the first device based on the first delay difference, as another example, if the first delay difference indicates that the first delay is smaller than the first preset delay, the duration of processing the data packet by the first device is longer than the preset processing duration by the first device, or the time of processing the data packet by the first device is longer than the preset processing time by the first duration.
At this time, the first device may save the data packet for a first time period.
For example, if the first delay is 1ms and the first preconfigured delay is 2ms, the first duration is 1ms, if the first device is a terminal device, the first delay is a delay between a time when the data packet arrives at the second device and a time when the first device encapsulates the data packet, the first delay is 1ms less than the preconfigured delay, and a time when the first device encapsulates the data packet and submits the data packet to the application layer may be 1ms later than the preset time. At this point, the first device may save the data packet for 1ms.
Optionally, the first device may compare the first delay with a first preconfigured delay.
If the first time delay is greater than the first pre-configured time delay, the first device may determine that the duration of processing the data packet is less than the preset processing duration, or the time of processing the data packet is earlier than the preset processing time, or high-priority processing or immediate processing is performed on the data packet.
It should be noted that, in this implementation manner, the first device may determine, based on any method, a time when a duration of processing the data packet is less than a preset processing duration, or a time when the time of processing the data packet is earlier than the preset processing time, which is not specifically limited in this embodiment of the present application.
If the first time delay is smaller than the first preset time delay, the first device may determine that the duration of processing the data packet is longer than the preset processing duration, or the time of processing the data packet is delayed than the preset processing time.
Optionally, when the first device is a terminal device, the terminal device submits the data packet to the application layer based on the first delay, which may include: based on a first delay difference between the first delay and the first preconfigured delay, the first device may determine a time to deliver the data packet to the application layer.
Specifically, if the first delay difference indicates that the first delay is greater than the first preconfigured delay, the first device may determine that the time of delivering the data packet to the application layer is earlier than the preset delivering time by a first duration, or the first device may deliver the data packet to the application layer with a high priority, or immediately deliver the data packet to the application layer.
If the first delay difference indicates that the first delay is less than the first preconfigured delay, the first device may determine that a time of delivering the data packet to the application layer is later than a preset delivery time by a first duration.
The above describes that the first device may determine a first delay difference based on the first delay and the first preconfigured delay, and process the data packet based on the first delay difference. Embodiments of the present application are not so limited. Other ways of processing the data packets are also contemplated by the present application.
In one possible embodiment, the first device may determine the first delay as a first delay difference. I.e. the first device may process the data packet based on the first delay.
For example, if the first delay is 3ms, the first delay difference is 3ms.
In one case, after the first device determines the first delay, the data packet may be processed based on the first delay.
For example, if the first delay is 2ms, the first device is a network device, the first delay is a delay between a time when the data packet arrives at the second device and a time when the data packet arrives at the first device, and if a preset duration of the first device for analyzing the data packet is 3ms, the first device can analyze the data packet with a duration of 1ms after receiving the data packet.
For another example, if the first delay is 1ms, and if the first device is a terminal device, the first delay is a delay between a time when the data packet arrives at the second device and a time when the first device encapsulates the data packet, and after the first device encapsulates the data packet, a time when the data packet is submitted to the application layer may be 1ms earlier than a preset time.
Optionally, in the embodiment of the present application, the data packet may further carry a second delay difference. The second delay difference may be a delay difference between the second delay and a second preconfigured delay.
The second time delay is time delay between the second device and the third device, the second pre-configured time delay is time delay between the second device and the third device, and the third device is an upstream node of the second device.
With continued reference to fig. 4, if the network device 3 is a first device, the network device 2 may be a second device and the network device 1 may be a third device.
At this time, based on the first delay difference, the processing of the data packet by the first device may include: the first device processes the data packet based on the first delay difference and the second delay difference.
As an example, if the sum of the first delay difference and the second delay difference indicates that the delay between the first device and the third device is greater than the third delay, the duration of processing the data packet by the first device may be less than the preset processing duration by a second duration; or the time of the first device processing the data packet may be earlier than the preset processing time by a second duration; or the first device may perform high priority processing or immediate processing on the data packets.
The third time delay is the sum of the first pre-configured time delay and the second pre-configured time delay, and the second time length is the absolute value of the sum of the first time delay difference and the second time delay difference.
It should be noted that, if the first delay difference is a difference obtained by subtracting the first preconfigured delay from the first delay, the second delay difference is also a difference obtained by subtracting the second preconfigured delay from the second delay. At this time, the first delay difference and the second delay difference may be negative or positive.
As another example, if the sum of the first delay difference and the second delay difference indicates that the delay between the first device and the third device is less than the third delay, the duration of processing the data packet by the first device may be longer than the preset processing duration by a second duration, or the time of processing the data packet by the first device may be delayed by the second duration from the preset processing time.
In an exemplary embodiment, the data packet received by the second device may carry a timestamp set by the third device, the second device determines a second time delay between the third device and the second device based on the timestamp set by the third device, and determines a second time delay difference between the third device and the second device based on the time delay and a preconfigured time delay preconfigured on the second device, where the second device does not process the data packet.
Then, the second device may carry the second delay difference in the data packet, and simultaneously carry the first timestamp set by the second device in the data packet, and then send the data packet to the first device. After receiving the data packet, 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.
As an example, if 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 preconfigured delay is 2ms, the second preconfigured delay is 3ms, the third delay is 5ms, the first delay difference may be the difference of the first delay minus the first preconfigured delay, i.e., 1ms, the second delay difference may be the difference of the second delay minus the second preconfigured delay, i.e., -2ms, the sum of the first delay difference and the second delay difference is-1 ms, which means that the delay between the first device and the third device is 2ms less than the sum of the first preconfigured delay and the second preconfigured delay, and the duration of processing the data packet by the first device may be 2ms more than the preset processing duration.
In another implementation manner, the data packet received by the second device may carry a timestamp set by the third device, the second device determines a second delay between the third device and the second device based on the timestamp set by the fourth device, 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.
Then, the second device may carry the second delay difference in the data packet, and may carry the first timestamp set by the second device in the data packet, and then send the data packet to the first device. After the first device receives the data packet, a first delay between the first device and the second device may be determined, and the first delay is determined to be a first delay difference. The first device may then process the data packet based on the first delay difference and the second delay difference.
It should be understood that, the manner in which the first device processes the data packet based on the first delay difference and the second delay difference may refer to a method in which the first device processes the data packet based on the first delay difference, which is not described herein for brevity of content.
Optionally, in the embodiment of the present application, when the first device is a network device, the first device may further send a data packet to the fourth device, where the data packet may carry a second timestamp set by the first device.
Optionally, 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 the embodiment of the present application.
The second timestamp 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.
After the fourth device receives the data packet, a time delay between the first device and the fourth device may be determined based on the second timestamp, and based on the time delay, the fourth device may process the data packet.
It should be understood that in the embodiments of the present application, "first," "second," and "third," etc. are merely for distinguishing between different objects, but do not limit the scope of the embodiments of the present application.
It should also be understood that in the embodiments of the present application, the descriptions of the methods may be referred to each other, and alternatives to the methods may be used in combination without conflict. For example, the first device determining a first time delay based on the first time stamp, and then processing the data packet based on the first time delay may be applicable to the fourth device determining a time delay between the first device and the fourth device based on the second time stamp, and then processing the data packet based on the time delay.
In the embodiment of the application, when other devices for transmitting the data packet exist between the first device and the second device, the first device can process the data packet in various ways.
In one mode, all devices between the first device and the second device process the data packet.
As shown in fig. 4, if the first device is a terminal device, the second device is a network device 1. The network device 1 may send a data packet to the network device 2, where the data packet carries a timestamp set by the network device 1, and after the network device 2 receives the data packet, the delay difference 1 between the network device 1 and the network device 2 is determined based on the timestamp set by the network device 1, and the data packet is processed based on the delay difference 1. Then, the network device 2 may send a data packet to the network device 3, where the data packet carries a timestamp set by the network device 2, and after the network device 3 receives the data packet, the delay difference 2 between the network device 2 and the network device 3 is determined based on the timestamp set by the network device 2, and the data packet is processed based on the delay difference 2. The network device 3 may then send a data packet to the terminal device, the data packet carrying the timestamp set by the network device 3. After the terminal device receives the data packet, the time 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 time delay difference 3.
Optionally, when the other devices between the first device and the second device send the data packet to the next-hop device, the data packet may or may not carry the first timestamp set by the second device.
In the second mode, 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.
Continuing with fig. 4, the network device 1 may send a data packet to the network device 2, the data packet carrying a timestamp set by the network device 1. After the network device 2 receives the data packet, the delay difference 1 between the network device 1 and the network device 2 is determined based on the timestamp set by the network device 1, and the network device 2 does not process the data packet. Then, the network device 2 sends a data packet to the network device 3, the data packet carrying a time stamp set by the network device 2 and a time delay difference 1 between the network device 1 and the network device 2. After the network device 3 receives the data packet, the delay difference 2 between the network device 2 and the network device 3 is determined, and the data packet is processed based on the delay difference 1 and the delay difference 2. Then, the network device 3 may send a data packet to the terminal device, where the data packet carries a timestamp set by the network device 3, and after the terminal device receives the data packet, the delay difference 3 between the network device 3 and the terminal device is determined based on the timestamp set by the network device 3, so that the data packet is processed based on the delay difference 3.
Optionally, when the device between the first device and the second device sends the data packet to the device of the next hop, the data packet may or may not carry the first timestamp.
In the third mode, no device between the first device and the second device processes the data packet.
As shown in fig. 5, if the first device is a terminal device, the second device is a network device 2. The network device 2 may send a data packet to the network device 3, the data packet carrying a time stamp set by the network device 2. After receiving the data packet, the network device 3 does not process the data packet, and sends the data packet to the terminal device, and meanwhile, the data packet carries the timestamp set by the network device 2. After the terminal device receives the data packet, based on the timestamp set by the network device 2, the time delay between the network device 2 and the terminal device can be determined, and based on the time delay, the data packet is processed.
According to the method and the device for processing the data packets, the time delay between the first device and the second device can be determined based on the time stamp carried in the received data packets, so that the data packets can be processed according to the time delay between the first device and the second device, and deterministic transmission of the data can be achieved.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Having described the communication method according to the embodiment of the present application in detail above, a communication apparatus according to the embodiment of the present application will be described below with reference to fig. 6 to 8, and technical features described in the method embodiment are applicable to the following apparatus embodiments.
Fig. 6 shows a schematic block diagram of a communication device 600 of an embodiment of the present application. As shown in fig. 6, the communication apparatus 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 timestamp.
The processing unit 620 is further configured to process the data packet based on the first delay.
Optionally, in the embodiment of the present application, the first timestamp is used to indicate a time when the data packet arrives at the second device, a time when the second device sends the data packet, a time when the second device parses the data packet, or a time when the second device encapsulates the data packet.
Optionally, in the embodiment of the present application, the processing unit 620 is specifically configured to: a first time delay between the communication device 600 and the second device is determined based on the first time stamp and the first time, wherein the first time is a time when the data packet arrives at the communication device 600, a time when the communication device 600 parses the data packet, or a time when the communication device 600 encapsulates the data packet.
Optionally, in the embodiment of the present application, the processing unit 620 is specifically configured to: determining a first delay difference between the first delay and the first preconfigured delay according to the first delay and the first preconfigured delay, the first preconfigured delay being a preconfigured delay between the communication device 600 and the second device; the data packet is processed based on the first delay difference.
Optionally, in the embodiment of the present application, the processing unit 620 is specifically configured to: if the first time delay difference indicates that the first time delay is greater than the first preset time delay, the duration of processing the data packet is shorter than the preset processing duration by a first time, or the time of processing the data packet is earlier than the preset processing time by the first time, or the data packet is processed with high priority or immediately;
if the first delay difference indicates that the first delay is smaller than the first preset delay, the duration of processing the data packet is longer than the preset processing duration by a first duration, or the time of processing the data packet is delayed by the first duration; wherein the first time length is equal to the absolute value of the first time delay difference.
Alternatively, in the present embodiment, the preconfigured delay is preconfigured on the communication device 600 at session establishment or QoS flow establishment.
Optionally, in the embodiment of the present application, the number of the data packets is a plurality, the plurality of data packets are transmitted through multiple paths, the first preconfigured delays of different paths are different, and the processing unit 620 is further configured to: and searching the first pre-configured time delay according to the path of the data packet.
Optionally, in the embodiment of the present application, the data packet further carries a second delay difference, where the second delay difference is a delay difference between a second delay and a second preconfigured delay, where the second delay is a delay between a second device and a third device, the second preconfigured delay is a preconfigured 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: the data packet is processed based on the first delay difference and the second delay difference.
Optionally, in the embodiment of the present application, 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 duration of processing the data packet is less than the preset processing duration by a second duration, or the time of processing the data packet is advanced by the second duration than the preset processing time, or the data packet is processed with high priority or immediately;
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 smaller than the third delay, the duration of processing the data packet is longer than the preset processing duration by a second duration, and the time of processing the data packet is delayed by the second duration than the preset processing time; wherein, the liquid crystal display device comprises a liquid crystal display device,
the third time delay is the sum of the first pre-configuration time delay and the second pre-configuration time delay, and the second time length is the absolute value of the sum of the first time delay difference and the second time delay difference.
Optionally, in the embodiment of the present application, the communication device 600 is a network device, and the processing unit 620 is specifically configured to: the data packet is encapsulated and/or transmitted based on the first delay.
Optionally, in the embodiment of the present application, the processing unit 620 is specifically configured to: based on the first time delay, at least one of the following is determined: the method comprises the steps of starting time for packaging a data packet, ending time for packaging the data packet, time for packaging the data packet and time for transmitting the data packet; based on the time and/or duration, the data packet is encapsulated and/or transmitted.
Optionally, in an embodiment of the present application, the communication unit 610 is further configured to: and sending a data packet to a fourth device, wherein the data packet carries a second timestamp set by the first device 600, and the fourth device is a next hop node of the communication device 600.
Optionally, in the embodiment of the present application, the communication device 600 is a terminal device, and the processing unit 620 is specifically configured to: the data packet is submitted to the application layer based on the first delay.
Optionally, in the embodiment of the present application, the processing unit 620 is specifically configured to: the method includes determining a time to deliver a data packet to an application layer based on a first delay difference between a first delay and a first preconfigured delay, the first preconfigured delay being a preconfigured delay between a first device and a second device.
Optionally, in the embodiment of the present application, the processing unit 620 is specifically configured to: if the first time delay difference indicates that the first time delay is larger than the first preset time delay, determining that the time for delivering the data packet to the application layer is earlier than the preset delivering time by a first time length, or delivering the data packet to the application layer with high priority, or immediately delivering the data packet to the application layer;
if the first delay difference indicates that the first delay is smaller than the first preset delay, determining that the time for delivering the data packet to the application layer is later than the preset delivery time by a first duration; the first duration is an absolute value of the first delay difference.
Optionally, in the embodiment of the present application, the communication device 600 is the next hop of the second device, or other devices for transmitting the data packet exist between the communication device 600 and the second device.
It should be understood that the communication device 600 may correspond to the first device in the method 200, and the corresponding operation of the first device in the method 200 may be implemented, which is not described herein for brevity.
Fig. 7 shows a schematic block diagram of a communication device 700 of an embodiment of the present application. As shown in fig. 7, the communication device 700 includes:
the communication unit 710 is configured to send a data packet, where the data packet carries a first timestamp set by the communication device 700, and the first timestamp is used to determine a first time delay between the first device and the communication device 700.
Optionally, in the embodiment of the present application, the first timestamp 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 a time when the communication device 700 encapsulates the data packet.
Optionally, in the embodiment of the present application, the data packet further carries a delay difference between a second delay and a second preconfigured delay between the communication device 700 and a third device, where the third device is an upstream node of the first device, and the second preconfigured delay is a preconfigured delay between the communication device 700 and the third device.
Optionally, in the embodiment of the present application, the communication device 700 is the last hop of the first device, or other devices for transmitting the data packet exist between the communication device 700 and the first device.
Optionally, in an embodiment of the present application, the communication device 700 is a network device.
It should be appreciated that the second device communication 700 may correspond to the second device in the method 300, and that the corresponding operations of the second device in the method 300 may be implemented, and are not described herein for brevity.
Fig. 8 is a schematic structural diagram of a communication device 800 provided in an embodiment of the present application. The communication device 800 shown in fig. 8 comprises a processor 810, from which the processor 810 may call and run a computer program to implement the method in the embodiments of the present application.
Optionally, as shown in fig. 8, the communication device 800 may also include a memory 820. Wherein the processor 810 may call and run a computer program from the memory 820 to implement the methods in embodiments of the present application.
Wherein the memory 820 may be a separate device from the processor 810 or may be integrated into the processor 810.
Optionally, as shown in fig. 8, 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 in particular, may send information or data to other devices, or receive information or data sent by other devices.
Among other things, transceiver 830 may include a transmitter and a receiver. Transceiver 830 may further include antennas, the number of which may be one or more.
Optionally, the communication device 800 may be a communication device in the embodiment of the present application, and the communication device 800 may implement a corresponding flow implemented by the first device in each method in the embodiment of the present application, which is not described herein for brevity.
Optionally, the communication device 800 may be a communication device in the embodiment of the present application, and the communication device 800 may implement a corresponding flow implemented by the second device in each method in the embodiment of the present application, which is not described herein for brevity.
Fig. 9 is a schematic structural diagram of a chip of an embodiment of the present application. The chip 900 shown in fig. 9 includes a processor 910, and the processor 910 may call and execute a computer program from a memory to implement the method in the embodiments of the present application.
Optionally, as shown in fig. 9, the chip 900 may further include a memory 920. Wherein the processor 910 may invoke and run a computer program from the memory 920 to implement the methods in the embodiments of the present application.
Wherein the memory 920 may be a separate device from the processor 910 or may be integrated in the processor 910.
Optionally, the chip 900 may also include an input interface 930. The processor 910 may control the input interface 930 to communicate with other devices or chips, and in particular, may acquire information or data sent by the other devices or chips.
Optionally, the chip 900 may also include an output interface 940. Wherein the processor 910 may control the output interface 940 to communicate with other devices or chips, and in particular, may output information or data to the other devices or chips.
Optionally, the chip may be applied to the communication device in the embodiment of the present application, and the chip may implement a corresponding flow implemented by the first device in each method in the embodiment of the present application, which is not described herein for brevity.
Optionally, the chip may be applied to the communication device in the embodiment of the present application, and the chip may implement a corresponding flow implemented by the second device in each method in the embodiment of the present application, which is not described herein for brevity.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, or the like.
It should be appreciated that the processor of an embodiment of the present application may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be implemented by integrated logic circuits of hardware in a processor or instructions in software form. The processor may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
It will be appreciated that the memory in embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be understood that the above memory is exemplary but not limiting, and for example, the memory in the embodiments of the present application may be Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), direct RAM (DR RAM), and the like. That is, the memory in embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
Fig. 10 is a schematic block diagram of a communication system 1000 provided in 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 above method, and the communication device 2 may be used to implement the corresponding function implemented by the second device in the above method, which are not described herein for brevity.
Embodiments of the present application also provide a computer-readable storage medium for storing a computer program.
Optionally, the computer readable storage medium may be applied to the first device in the embodiments of the present application, and the computer program causes a computer to execute a corresponding flow implemented by the first device in each method of the embodiments of the present application, which is not described herein for brevity.
Optionally, the computer readable storage medium may be applied to the second device in the embodiments of the present application, and the computer program causes a computer to execute a corresponding flow implemented by the second device in each method of the embodiments of the present application, which is not described herein for brevity.
Embodiments of the present application also provide a computer program product comprising computer program instructions.
Optionally, the computer program product may be applied to the first device in the embodiments of the present application, and the computer program instructions cause the computer to execute a corresponding procedure implemented by the first device in each method in the embodiments of the present application, which is not described herein for brevity.
Optionally, the computer program product may 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 procedure implemented by the second device in each method in the embodiments of the present application, which is not described herein for brevity.
The embodiment of the application also provides a computer program.
Optionally, the computer program may be applied to the first device in the embodiments of the present application, and when the computer program runs on a computer, the computer is caused to execute a corresponding flow implemented by the first device in each method in the embodiments of the present application, which is not described herein for brevity.
Optionally, the computer program may be applied to the second device in the embodiments of the present application, and when the computer program runs on a computer, the computer is caused to execute a corresponding flow implemented by the second device in each method in the embodiments of the present application, which is not described herein for brevity.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing 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 methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (31)

1. A method of communication, the method comprising:
the method comprises the steps that a first device receives a data packet, wherein the data packet carries a first time stamp set by a second device;
based on the first timestamp, the first device determines a first delay of the data packet between the first device and the second device;
based on the first delay, the first device processes the data packet,
wherein, based on the first delay, the first device processes the data packet, including:
according to the first time delay and a first pre-configured time delay, the first device determines a first time delay difference between the first time delay and the first pre-configured time delay, wherein the first pre-configured time delay is the pre-configured time delay between the first device and the second device;
based on the first delay difference, the first device processes the data packet, including:
if the first delay difference indicates that the first delay is greater than the first preconfigured delay, the duration of processing the data packet by the first device is less than the preset processing duration by a first time,
or the time of the first device processing the data packet is earlier than the preset processing time by a first duration, or the first device processing the data packet with high priority or immediately;
If the first delay difference indicates that the first delay is smaller than the first preconfigured delay, the duration of processing the data packet by the first device is longer than the preset processing duration by a first time,
or the first equipment delays the first time period when processing the data packet;
wherein the first time length is equal to an absolute value of the first delay difference.
2. The method of claim 1, wherein the first timestamp is used to indicate a time at which the data packet arrives at the second device, a time at which the second device transmits the data packet, a time at which the second device parses the data packet, or a time at which the second device encapsulates the data packet.
3. The method of claim 1 or 2, wherein the first device determining a first delay between the first device and the second device based on the first timestamp comprises:
based on the first timestamp and a first time, the first device determines a first time delay between the first device and the second device, wherein the first time is a time when the data packet arrives at the first device, a time when the first device analyzes the data packet, or a time when the first device encapsulates the data packet.
4. The method of claim 1, wherein the preconfigured delay is preconfigured on the first device at a session establishment or a quality of service, qoS, flow establishment.
5. The method of claim 1 or 4, wherein the number of data packets is a plurality, the plurality of data packets being transmitted via multipaths, the first preconfigured delays for different paths being different, the method further comprising:
and the first device searches the first preconfigured time delay according to the path of the data packet.
6. The method of claim 1 or 4, wherein the data packet further carries a second delay difference, the second delay difference being a delay difference between a second delay and a second preconfigured delay, wherein the second delay is a delay between the second device and a third device, the second preconfigured delay being a preconfigured delay between the second device and the third device, the third device being an upstream node of the second device;
the processing, by the first device, the data packet based on the first delay difference includes:
and the first equipment processes the data packet based on the first time delay difference and the second time delay difference.
7. The method of claim 6, wherein the processing the data packet by the first device based on the first delay difference and the second delay difference comprises:
if the sum of the first delay difference and the second delay difference indicates that the delay between the first device and the third device is greater than the third delay, the duration of processing the data packet by the first device is less than the preset processing duration by a second duration, or the time of processing the data packet by the first device is earlier than the preset processing time by a second duration, or the first device performs high-priority processing or immediate processing on the data packet;
if the sum of the first delay difference and the second delay difference indicates that the delay between the first device and the third device is smaller than the third delay, the duration of the first device for processing the data packet is longer than the preset processing duration by a second duration, or the time of the first device for processing the data packet is delayed by the second duration from the preset processing time; wherein, the liquid crystal display device comprises a liquid crystal display device,
the third time delay is the sum of the first preconfigured time delay and the second preconfigured time delay, and the second time length is the absolute value of the sum of the first time delay difference and the second time delay difference.
8. The method of claim 1, 2 or 4, wherein the first device is a network device, and wherein the processing the data packet by the first device based on the first delay comprises:
and based on the first time delay, the first device encapsulates the data packet and/or transmits the data packet.
9. The method of claim 8, wherein the encapsulating the data packet and/or transmitting the data packet by the first device based on the first delay comprises:
based on the first delay, the first device determines at least one of: a start time of packaging the data packet, an end time of packaging the data packet the time for packaging the data packet and the time for sending the data packet;
and based on the time and/or the duration, the first device encapsulates the data packet and/or transmits the data packet.
10. The method of claim 8, wherein the method further comprises:
the first device sends the data packet to a fourth device, wherein the data packet carries a second time stamp set by the first device, and the fourth device is a next hop node of the first device.
11. The method of claim 1, 2 or 4, wherein the first device is a terminal device, and wherein the processing the data packet by the first device based on the first delay comprises:
based on the first delay, the first device delivers the data packet to an application layer.
12. The method of claim 11, wherein the first device delivering the data packet to an application layer based on the first delay comprises:
based on a first delay difference between the first delay and a first preconfigured delay, the first device determines a time when the data packet is submitted to an application layer, wherein the first preconfigured delay is the preconfigured delay between the first device and the second device.
13. The method of claim 12, the determining, by the first device, a time instant to submit the data packet to an application layer based on a first latency difference between the first latency and the first preconfigured latency, comprising:
if the first delay difference indicates that the first delay is greater than the first preconfigured delay, the first device determines that the time for delivering the data packet to the application layer is earlier than a preset delivering time by a first duration, or the first device delivers the data packet to the application layer with high priority, or immediately delivers the data packet to the application layer;
If the first delay difference indicates that the first delay is smaller than the first preset delay, the first device determines that the time for delivering the data packet to the application layer is later than the preset delivery time by a first duration;
the first duration is an absolute value of the first delay difference.
14. The method of claim 1, 2 or 4, wherein the first device is the next hop of the second device, or wherein there are other devices transmitting the data packet between the first device and the second device.
15. A communication device, comprising:
the communication unit is used for receiving a data packet, wherein the data packet carries a first time stamp set by the second equipment;
a processing unit configured to determine a first delay of the data packet between the communication device and the second device based on the first timestamp;
the processing unit is further configured to process the data packet based on the first delay,
wherein the processing unit is specifically configured to:
determining, according to the first time delay and a first preconfigured time delay, a first time delay difference between the first time delay and the first preconfigured time delay, where the first preconfigured time delay is a preconfigured time delay between the communication device and the second device;
Processing the data packet based on the first delay difference:
if the first time delay difference indicates that the first time delay is greater than the first preset time delay, processing the data packet for a first time period less than a preset processing time period, or processing the data packet for a first time period earlier than a preset processing time period, or performing high-priority processing or immediate processing on the data packet;
if the first delay difference indicates that the first delay is smaller than the first preset delay, the duration of processing the data packet is longer than the preset processing duration by a first duration, or the time of processing the data packet is delayed by the first duration;
wherein the first time length is equal to an absolute value of the first delay difference.
16. The communication device of claim 15, wherein the first timestamp is used to indicate a time at which the data packet arrives at the second device, a time at which the second device transmits the data packet, a time at which the second device parses the data packet, or a time at which the second device encapsulates the data packet.
17. The communication device according to claim 15 or 16, characterized in that the processing unit is specifically configured to:
And determining a first time delay between the communication equipment and the second equipment based on the first time stamp and the first time, wherein the first time is the time when the data packet arrives at the communication equipment, the time when the communication equipment analyzes the data packet or the time when the communication equipment encapsulates the data packet.
18. The communication device of claim 15, wherein the preconfigured delay is preconfigured on the communication device at session establishment or quality of service, qoS, flow establishment.
19. The communication device according to claim 15 or 18, wherein the number of data packets is a plurality, the plurality of data packets being transmitted via multipaths, the first preconfigured delays of different paths being different, the processing unit being further configured to:
and searching the first pre-configured time delay according to the path of the data packet.
20. The communication device according to claim 15 or 18, wherein the data packet further carries a second delay difference, the second delay difference being a delay difference between a second delay and a second preconfigured delay, wherein the second delay is a delay between the second device and a third device, the second preconfigured delay being a preconfigured delay between the second device and the third device, the third device being an upstream node of the second device;
The processing unit is specifically configured to:
and processing the data packet based on the first time delay difference and the second time delay difference.
21. The communication device according to claim 20, wherein the processing unit is specifically configured to:
if the sum of the first delay difference and the second delay difference indicates that the delay between the communication equipment and the third equipment is greater than the third delay, the duration of processing the data packet is less than the preset processing duration by a second duration, or the time of processing the data packet is advanced by the second duration than the preset processing time, or the data packet is processed with high priority or immediately;
if the sum of the first delay difference and the second delay difference indicates that the delay between the communication equipment and the third equipment is smaller than the third delay, the duration of processing the data packet is longer than the preset processing duration by a second duration, and the time of processing the data packet is delayed by the second duration than the preset processing time; wherein, the liquid crystal display device comprises a liquid crystal display device,
the third time delay is the sum of the first preconfigured time delay and the second preconfigured time delay, and the second time length is the absolute value of the sum of the first time delay difference and the second time delay difference.
22. The communication device according to claim 15 or 16 or 18, wherein the communication device is a network device, and the processing unit is specifically configured to:
and based on the first time delay, packaging the data packet and/or sending the data packet.
23. The communication device according to claim 22, wherein the processing unit is specifically configured to:
based on the first delay, at least one of the following is determined: a start time of packaging the data packet, an end time of packaging the data packet the time for packaging the data packet and the time for sending the data packet;
and packaging the data packet and/or sending the data packet based on the time and/or the duration.
24. The communication device of claim 22, wherein the communication unit is further configured to:
and sending the data packet to fourth equipment, wherein the data packet carries a second time stamp set by the communication equipment, and the fourth equipment is a next hop node of the communication equipment.
25. The communication device according to claim 15 or 16 or 18, wherein the communication device is a terminal device, and the processing unit is specifically configured to:
And submitting the data packet to an application layer based on the first time delay.
26. The communication device according to claim 25, wherein the processing unit is specifically configured to:
and determining the moment of delivering the data packet to an application layer based on a first delay difference between the first delay and a first pre-configured delay, wherein the first pre-configured delay is a pre-configured delay between the communication device and the second device.
27. The communication device according to claim 26, wherein the processing unit is specifically configured to:
if the first time delay difference indicates that the first time delay is larger than the first preset time delay, determining that the time for delivering the data packet to the application layer is earlier than the preset delivering time by a first time length, or delivering the data packet to the application layer with high priority, or immediately delivering the data packet to the application layer;
if the first time delay difference indicates that the first time delay is smaller than the first preset time delay, determining that the time for delivering the data packet to the application layer is later than the preset delivery time by a first duration;
the first duration is an absolute value of the first delay difference.
28. A communication device according to claim 15 or 16 or 18, characterized in that the communication device is the next hop of the second device or that there are also other devices between the communication device and the second device that transmit the data packets.
29. A communication device, comprising: a processor and a memory for storing a computer program, the processor being for invoking and running the computer program stored in the memory, performing the method of any of claims 1 to 14.
30. A chip, comprising: a processor for calling and running a computer program from a memory, causing a device on which the chip is mounted to perform the method of any one of claims 1 to 14.
31. A computer readable storage medium storing a computer program for causing a computer to perform the method of any one of claims 1 to 14.
CN201880093975.XA 2018-08-29 2018-08-29 Communication method and device Active CN112205028B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/103091 WO2020042039A1 (en) 2018-08-29 2018-08-29 Communication method and device

Publications (2)

Publication Number Publication Date
CN112205028A CN112205028A (en) 2021-01-08
CN112205028B true CN112205028B (en) 2023-07-11

Family

ID=69644905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880093975.XA Active CN112205028B (en) 2018-08-29 2018-08-29 Communication method and device

Country Status (3)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114698086A (en) * 2020-12-31 2022-07-01 中国移动通信有限公司研究院 Information indication method, device, related equipment and storage medium
CN113507741A (en) * 2021-07-01 2021-10-15 北京佰才邦技术股份有限公司 Communication delay determination method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2664524A1 (en) * 2006-09-29 2008-04-10 Harris Corporation Automatic delay compensated simulcasting system and method
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
CN104683993A (en) * 2015-02-09 2015-06-03 清华大学 Multi-domain cooperative communication system of satellites and land
WO2016192466A1 (en) * 2015-06-04 2016-12-08 电信科学技术研究院 Method and device for scheduling

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7995493B2 (en) * 2008-12-23 2011-08-09 Airvana, Corp. Estimating bandwidth in communication networks
CN102123073B (en) * 2010-01-07 2014-10-08 华为技术有限公司 Packet reordering method and device
CN105612721A (en) * 2014-03-27 2016-05-25 华为技术有限公司 Transmission time delay measurement method, device and system based on DOCSIS protocol
WO2017079920A1 (en) * 2015-11-11 2017-05-18 华为技术有限公司 Method and device for synchronization
CN106454553A (en) * 2016-11-15 2017-02-22 深圳市视维科技有限公司 A precise time delay live video network transmission control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2664524A1 (en) * 2006-09-29 2008-04-10 Harris Corporation Automatic delay compensated simulcasting system and method
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
CN104683993A (en) * 2015-02-09 2015-06-03 清华大学 Multi-domain cooperative communication system of satellites and land
WO2016192466A1 (en) * 2015-06-04 2016-12-08 电信科学技术研究院 Method and device for scheduling

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"25133-b30".3GPP spec\25_series.2013,全文. *

Also Published As

Publication number Publication date
CN112205028A (en) 2021-01-08
TW202021320A (en) 2020-06-01
WO2020042039A1 (en) 2020-03-05

Similar Documents

Publication Publication Date Title
KR102452092B1 (en) Session management method, terminal device and network device
CN113615257B (en) Path selection method and device and terminal
CN111885640B (en) Control data transmission method, network equipment and storage medium
CN114364037B (en) Wireless communication method, terminal equipment and network equipment
US11877326B2 (en) Wireless communication method and communication device
JP2022551547A (en) Resource setting method and access network device
CN113242577A (en) Resource scheduling method, terminal equipment and network equipment
CN112205028B (en) Communication method and device
US20220061075A1 (en) Information transmission method and apparatus, and network device
CN113316959A (en) Communication method, terminal equipment and network equipment
CN113194473B (en) Method or apparatus for integrity protection
CN114786261B (en) Resource allocation method, network equipment and terminal equipment
CN112956237B (en) Service processing method, device, chip and computer program
CN113329396B (en) Data transmission method and network equipment
CN112205060B (en) Wireless communication method, access network device, terminal device and core network device
CN112740800B (en) Communication method, terminal device and network device
CN114902790A (en) Transmission mode switching method, electronic equipment and storage medium
WO2019153561A1 (en) Wireless communication method, terminal device and network device
CN113455079B (en) Method and apparatus for wireless communication
CN112514450B (en) Data processing method, device and storage medium
CN114501563B (en) Wireless communication method, device and network equipment
CN113517971B (en) Resource pool configuration method, equipment and storage medium
CN112243576B (en) Information transmission method and device and communication equipment
CN113348682B (en) Wireless communication method, terminal equipment, access network equipment and core network equipment
WO2022027649A1 (en) Time precision indication method and apparatus, terminal device, and network device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant