WO2023207585A1 - Message transmission method and device - Google Patents

Message transmission method and device Download PDF

Info

Publication number
WO2023207585A1
WO2023207585A1 PCT/CN2023/087741 CN2023087741W WO2023207585A1 WO 2023207585 A1 WO2023207585 A1 WO 2023207585A1 CN 2023087741 W CN2023087741 W CN 2023087741W WO 2023207585 A1 WO2023207585 A1 WO 2023207585A1
Authority
WO
WIPO (PCT)
Prior art keywords
delay
message
timer
length
delay timer
Prior art date
Application number
PCT/CN2023/087741
Other languages
French (fr)
Chinese (zh)
Inventor
曾正洋
司源
胡磊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023207585A1 publication Critical patent/WO2023207585A1/en

Links

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
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/56Queue scheduling implementing delay-aware scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control

Definitions

  • Embodiments of the present application relate to the field of communications, and in particular, to a message transmission method and device.
  • Delay-sensitive messages generally have periodic characteristics, and the transmission network needs to take into account both the certainty of message transmission (low jitter) and low-latency performance.
  • the typical characteristics of industrial control messages periodic intensive small packet interactions, interaction cycles Short, high requirements for delay and jitter reliability.
  • the current message transmission technology sends messages periodically. When the message is received in other periods due to network fluctuations, it still needs to wait for the periodic transmission of the message, and the message transmission delay is high.
  • Embodiments of the present application provide a message transmission method and device, which are used to reduce the jitter of message transmission and reduce the delay of message transmission.
  • the first aspect of the embodiment of the present application provides a message transmission method, which includes: obtaining the sending cycle requirement and the sending delay requirement of the first message in the communication service, where the first message is a delay-sensitive message; according to the sending cycle requirement Determine the period timer and determine the delay timer according to the transmission delay requirement; when the first message is received outside the period timer, forward the first message to the next node; when the first message is received within the period timer arrives, but when it is received outside the delay timer, the first message is forwarded to the next node, and the delay timer is smaller than the period timer.
  • the communication network receiving end or the application receiving end determines the periodic timer according to the sending cycle requirement of the received first message, and determines the delay timer according to the sending delay requirement. If the first message is received outside the periodic timer , it is determined that it is too affected by network fluctuations and needs to be forwarded to the next node immediately. If the first message is received within the period timer but outside the delay timer, it is determined that it is less affected by network fluctuations. , but it still exceeds the normal forwarding time and needs to be forwarded to the next node immediately. Only when it is received within the delay timer, it will be buffered until the delay timer ends and forwarded, which not only reduces the jitter of message transmission, but also reduces the delay of message transmission. time delay.
  • the method further includes: counting a first number of messages received within the delay timer and a second number of messages received within the periodic timer; The length of the delay timer is adjusted according to the relationship between a preset quantity range, and the length of the periodic timer is adjusted according to the relationship between the second quantity and the second preset quantity range.
  • the length of the periodic timer and the delay timer determined based on the transmission cycle requirement and the transmission delay requirement may decrease in accuracy due to network fluctuations or other effects. Therefore, the application receiving end can count the preset time range. The first number of packets received within the delay timer and the second number of packets received within the periodic timer.
  • the application receiving end can adjust the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, and adjust the length of the period timer according to the relationship between the second quantity and the second preset quantity range, by in the application Set up an adaptive de-jitter buffer at the receiving end to prevent large-delay packets from entering the buffer on the premise of reducing packet delay jitter, balance delay jitter and delay performance, and adaptively adjust the timer length and transmission cycle , improve the experience of periodic delay-sensitive packets and reduce the resource consumption of the communication network.
  • the method further includes: adjusting the delay timer according to the relationship between the first quantity and the preset delay range.
  • the message sending cycle after the above steps adjust the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, the method further includes: adjusting the delay timer according to the relationship between the first quantity and the preset delay range.
  • the length of the delay timer needs to occupy a certain length in the sending cycle of the message, that is, there is a preset delay range relative to the sending cycle.
  • the length of the delay timer is less than the preset delay range
  • the delay timer length is greater than the preset delay range, the sending period can be increased to improve the experience of periodic delay-sensitive messages.
  • the difference between the first quantity and the first preset quantity range has a positive feedback relationship with the length of the delay timer; the difference between the second quantity and the second preset quantity range has a positive feedback relationship with the periodic timing
  • the length of the device forms a positive feedback relationship.
  • the method further includes: receiving indication information from the network device, the indication information indicating transmission quality; and adjusting the lengths of the delay timer and the periodic timer according to the indication information.
  • the application receiving end provides instruction information to the communication network receiving end, and cooperates with the communication network receiving end to adjust the de-jitter buffer.
  • the communication network receiving end provides instruction information to the application receiving end, and cooperates with the application receiving end to perform de-jittering. Adjustment of the jitter buffer.
  • This indication information can indicate the quality of packet transmission.
  • the method further includes: receiving buffer information from the network device, where the buffer information includes the length of the delay timer; and adjusting the length of the local delay timer according to the buffer information.
  • the communicating parties exchange information, coordinate the buffer information, and adjust the length of the local delay timer based on the buffer information, thereby improving the certainty and real-time performance of delay-sensitive message delivery.
  • the method further includes: adjusting the message according to the relationship between the adjusted length of the delay timer and the preset delay range. sending cycle.
  • the communicating parties can also adjust the message sending cycle according to the relationship between the adjusted delay timer length and the preset delay range, so as to improve the experience of periodic delay-sensitive messages.
  • the method further includes: sending buffer information to the central control node, the buffer information including the length of the delay timer; adjusting the length of the delay timer according to instructions from the central control node, the instructions being the center
  • the control node determines the adjustment specifications of the delay timer based on the buffer information.
  • both communicating parties send buffer information to the central control node.
  • the buffer information includes the length of the delay timer, the adjustment specifications of the delay timer determined by the central control node based on the buffer information, and the delay timer adjustment specifications based on the delay timer.
  • the relationship between the length of the timer and the preset delay range determines the adjustment specifications of the sending cycle, and then generates instructions based on the adjustment specifications, so that both communicating parties can adjust their respective delay timer lengths and message sending cycles, through the buffers of both communicating parties. Collaboration improves the certainty and real-time performance of delay-sensitive message delivery.
  • the instruction also includes the adjustment specification of the sending cycle determined by the central control node based on the relationship between the adjusted delay timer length and the preset delay range. According to the instruction from the central control node After adjusting the length of the delay timer, the method further includes: adjusting the sending cycle of the message according to the adjustment specification of the sending cycle.
  • the central control node can also adjust the message sending cycle according to the relationship between the adjusted delay timer length and the preset delay range, so as to improve the experience of periodic delay-sensitive messages.
  • the above steps of adjusting the message sending cycle according to the relationship between the length of the adjusted delay timer and the preset delay range include: when the length of the adjusted delay timer is less than the preset delay range When the length of the adjusted delay timer is greater than the preset delay range, the sending cycle is increased.
  • the method further includes: obtaining the arrival status of the packets in the delay timer and the periodic timer; and adjusting the service quality of the packet transmission according to the arrival status.
  • the adaptive buffer effectively counts the arrival of packets at a packet-by-packet level, and further feeds back to the communication network, so that QoS adjustments for network transmission packets can be made in a timely manner.
  • the second aspect of this application provides a message transmission method, including: obtaining the transmission delay of the service message; when the transmission delay exceeds the delay threshold value, forwarding the service message through the first queue; when transmitting When the delay does not exceed the delay threshold, the service packets are periodically forwarded through the second queue.
  • adding a high-priority preemption queue through the communication network receiving end is superior to TSN queue sending, increasing the packet delay calculation method, setting the threshold value of the packet transmission delay, and judging the waiting delay of the packet. , submit when the threshold value is exceeded, avoiding buffering and waiting, and improving message timeliness.
  • the delay threshold value is determined based on the sending cycle of the service message.
  • the third aspect of the embodiments of the present application provides a data transmission device that can implement the method in the above first aspect or any possible implementation of the first aspect.
  • the device includes corresponding units or modules for performing the above method.
  • the units or modules included in the device can be implemented by software and/or hardware.
  • the device may be, for example, a network device, a chip, a chip system, a processor, etc. that supports the network device to implement the above method, or a logic module or software that can realize all or part of the network device functions.
  • the fourth aspect of the embodiments of the present application provides a data transmission device that can implement the method in the above second aspect or any possible implementation manner of the second aspect.
  • the device includes corresponding units or modules for performing the above method.
  • the units or modules included in the device can be implemented by software and/or hardware.
  • the device may be, for example, a network device, a chip, a chip system, a processor, etc. that supports the network device to implement the above method, or a logic module or software that can realize all or part of the network device functions.
  • the fifth aspect of the embodiment of the present application provides a computer device, including: a processor, the processor is coupled to a memory, and the memory is used to store instructions. When the instructions are executed by the processor, the computer device implements the first aspect. Or the method in any possible implementation of the first aspect.
  • the computer device may be, for example, a network device, or may be a chip or chip system that supports the network device to implement the above method.
  • the sixth aspect of the embodiment of the present application provides a computer device, including: a processor, the processor is coupled to a memory, and the memory is used to store instructions.
  • the computer device implements the above second aspect. Or the method in any possible implementation of the second aspect.
  • the computer device may be, for example, a network device, or A chip or chip system that implements the above method can be used to support network equipment.
  • the seventh aspect of the embodiment of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores instructions. When the instructions are executed by a processor, the first aspect or any possibility of the first aspect is realized.
  • the eighth aspect of the embodiments of the present application provides a computer program product.
  • the computer program product includes computer program code.
  • the computer program code When the computer program code is executed on a computer, the first aspect or any possible implementation of the first aspect is realized.
  • Figure 1 is a schematic structural diagram of a network framework provided by an embodiment of the present application.
  • Figure 2 is a schematic structural diagram of another network framework provided by an embodiment of the present application.
  • Figure 3 is a schematic flow chart of a message transmission method provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of message transmission steps provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of the effect of an adaptive de-jitter buffer provided by an embodiment of the present application.
  • Figure 6 is a schematic flow chart of another message transmission method provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of another message transmission step provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of another adaptive de-jittering buffer effect provided by an embodiment of the present application.
  • Figure 9 is a schematic flowchart of a collaborative adjustment of timer length provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of a buffer adjustment process provided by an embodiment of the present application.
  • Figure 11 is a schematic flow chart of QoS adjustment provided by an embodiment of the present application.
  • Figure 12 is a schematic flow chart of another message transmission method provided by an embodiment of the present application.
  • Figure 13 is a schematic structural diagram of a message transmission device provided by an embodiment of the present application.
  • Figure 14 is a schematic structural diagram of another message transmission device provided by an embodiment of the present application.
  • Figure 15 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • Embodiments of the present application provide a message transmission method and device, which are used to reduce the jitter of message transmission and reduce the delay of message transmission.
  • exemplary means "serving as an example, example, or illustrative.” Any embodiment described herein as “exemplary” is not necessarily to be construed as superior or superior to other embodiments.
  • Jitter changes in packet transmission delay and deviation from the ideal position.
  • Watchdog A device (usually a timer or driver) used to monitor whether a continuously running system is normal and functional.
  • LTE long term evolution
  • 5G fifth generation
  • WiFi wireless-fidelity
  • future communication system or a system integrating multiple communication systems, etc.
  • 5G can also be called new radio (NR).
  • eMBB enhanced mobile broadband
  • URLLC ultra-reliable low-latency communication
  • MTC machine type communication
  • mMTC massive machine type communications
  • D2D device-to-device
  • V2X vehicle to everything
  • V2V vehicle to vehicle
  • IoT Internet of Things
  • the network framework in the embodiment of this application includes:
  • Industrial communication terminal equipment wireless network terminal equipment, access network equipment, core network equipment;
  • the industrial communication terminal equipment can be connected to the wireless network terminal equipment, such as the first industrial communication terminal equipment in Figure 1 or the third industrial communication terminal equipment and the fourth industrial communication terminal equipment in Figure 2.
  • the industrial communication terminal equipment and the wireless network terminal The devices are connected, and the wireless network terminal equipment is connected to the core network equipment through the access network equipment.
  • Industrial communication terminal equipment can also be connected to core network equipment, such as the second industrial communication terminal equipment in Figure 1.
  • Application equipment and network equipment are logically separated and can be deployed together or separately during physical deployment;
  • the industrial terminal side only describes the one-to-one communication scenario between industrial terminals, and can also be applied to complex networking scenarios of industrial terminals (such as chain, ring, star, etc.);
  • Buffer/buffer location the above picture is an example, it can also be deployed in other parts of the network.
  • Industrial communication terminal equipment and wireless network terminal equipment can be connected using the IC-1 (Industrial Communication Type 1) interface.
  • the connection methods include wired, wireless or a mixture of the two.
  • the protocol types supported by the IC-1 interface include: IP, Ethernet , WiFi, and other extended protocol types in industrial communication scenarios.
  • the N6 interface can be used to connect industrial communication terminal equipment and core network equipment.
  • the protocol types supported by the N6 interface include: IP, Ethernet, and other extended protocol types in industrial communication scenarios.
  • the number of industrial communication terminal equipment, wireless network terminal equipment, access network equipment, core network equipment and other equipment is not limited.
  • the embodiment of this application only takes the network framework shown in Figure 1 as an example. illustrate.
  • Industrial communication user refers to industrial communication terminal equipment (terminal equipment used to provide data connectivity at industrial production sites), such as: PLC controllers or industrial computers, industrial servers, etc.
  • Wireless network terminal equipment also known as wireless network (such as 3GPP) user equipment (UE), mobile station (MS), mobile terminal (MT), etc.
  • UE user equipment
  • MS mobile station
  • MT mobile terminal
  • Some examples of terminals are: mobile phones, tablets, laptops, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, and smart grids wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
  • MID mobile internet devices
  • VR virtual reality
  • AR augmented reality
  • wireless terminals in industrial control wireless terminals in self-driving
  • wireless terminals in remote medical surgery and smart grids wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
  • Core network equipment refers to equipment in the core network (CN) that provides business support for terminals.
  • core network equipment is: access and mobility management function (AMF) entities, session management function (SMF) entities, user plane function (UPF) Entities, etc.
  • AMF access and mobility management function
  • SMF session management function
  • UPF user plane function
  • the AMF entity can be responsible for terminal access management and mobility management
  • the SMF entity can be responsible for session management, such as user session establishment, etc.
  • the UPF entity can be a functional entity of the user plane, mainly responsible for connecting to external networks.
  • the entity in this application can also be called a network element or a functional entity.
  • an AMF entity can also be called an AMF network element or an AMF functional entity.
  • SMF entity can also be called an SMF network element or an SMF function. Entities, etc. are not specifically limited here.
  • Access network equipment refers to the radio access network (RAN) node (or equipment) that connects terminals to the wireless network, and can also be called a base station.
  • RAN nodes are: evolved Node B (gNB), transmission reception point (TRP), evolved NodeB (evolved NodeB, eNB), radio network controller (RNC) ), Node B (Node B, NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved NodeB, or home Node B, HNB), Baseband unit (base band unit, BBU), or wireless fidelity (wireless fidelity, Wifi) access point (access point, AP), etc.
  • gNB evolved Node B
  • TRP transmission reception point
  • eNB evolved NodeB (evolved NodeB, eNB)
  • RNC radio network controller
  • Node B Node B
  • BSC base station controller
  • BTS base transceiver station
  • home base station for example, home evolved
  • the messages transmitted in the communication system may be delay-sensitive messages that require low latency.
  • These delay-sensitive messages generally have periodic characteristics, and the transmission network needs to take into account both the certainty (low jitter) and low latency of message transmission. Delay performance.
  • industrial control messages need to meet the characteristics of periodic intensive small packet interaction, short interaction period, and high requirements for delay and jitter reliability.
  • Similar latency-sensitive message transmission requirements are also common and have periodic characteristics.
  • the current message transmission technology sends messages periodically. When the message is received in other periods due to network fluctuations, it still needs to wait for the periodic transmission of the message, and the message transmission delay is high.
  • embodiments of the present application provide a message transmission method, which is as follows.
  • the first industrial communication terminal equipment is the application sending end
  • the second industrial communication terminal equipment is the application receiving end
  • the 3GPP base station is the communication network sending end
  • the 3GPP core network is the communication network receiving end.
  • FIG. 3 shows a message transmission method provided by an embodiment of the present application.
  • the method includes:
  • Step 301 The communication network receiving end obtains the transmission cycle requirement and transmission delay requirement of the first message in the communication service.
  • the first message is a delay-sensitive message.
  • the application sending end sends a message to the communication network sending end, the communication network sending end forwards the message to the communication network receiving end, and the communication network receiving end forwards the message to the application receiving end.
  • the communication network receiving end can receive the first message from the communication network sending end, where the first message is a delay-sensitive message and needs to be forwarded by the communication network receiving end to the application receiving end in a timely manner.
  • the communication network receiving end needs to determine the message forwarding time limit, that is, the communication network receiving end can obtain the sending cycle requirement and sending delay requirement of the first message, where The cycle requirement can limit the sending period of messages of the same type as the first message, and the sending delay requirement can limit the sending time point in each cycle of messages of the same type as the first message.
  • the communication network receiving end identifies packets that need to be submitted periodically and are sensitive to delay in communication services; specific implementation methods include but are not limited to: a) Network self-identification: the network receiving end uses key fields in the messages (such as Type, service of quality (QoS) field, session type, etc.) identification to determine whether it is a periodic delay-sensitive message; or the receiving end determines whether it is a periodic delay-sensitive message by learning the rules of historical messages message; b) Application collaboration: The application sender and/or receiver notifies the network receiver of packet types that need to be submitted periodically and are sensitive to delay; c)
  • QoS quality
  • Application and network collaborative configuration The application and network negotiate in advance to formulate QOS mapping rules for data flows on the network communication side to determine the QoS flow where periodic delay-sensitive packets are located.
  • Step 302 The communication network receiving end determines the period timer according to the transmission cycle requirement, and determines the delay timer according to the transmission delay requirement.
  • the communication network receiving end can set and start an adaptive buffer. After obtaining the sending cycle requirement and the sending delay requirement of the first message, the duration of the periodic timer can be determined based on the sending cycle requirement. The delay requirement determines the length of the delay timer, and then starts the delay timer and period timer in the adaptive buffer. Each first message of the same type is only sent in each cycle, and the delay timer in that cycle is Sent after the device takes effect.
  • Identify/obtain delivery cycle requirements and maximum packet delay requirements include but are not limited to: a) network self-identification: the network receiving end analyzes the rules of historical messages; b) application collaboration: application sender and/or The receiving end notifies the network receiving end of the delivery cycle requirements and maximum packet delay requirements of periodic delay-sensitive messages; the notification method is to send messages along the way or send separate messages; c) Application and network collaborative configuration: application and network Negotiate in advance the delivery cycle requirements for periodic delay-sensitive packets and the maximum packet delay requirements.
  • the communication network starts the period timer CT and delay timer BF at the same time;
  • the timer startup method includes but is not limited to: a) The timer startup time point can be the first/Nth period report The time when the message is received; b) The timer can also be configured to start at a fixed time point; c) In the scenario where the application sender and the application receiver are time synchronized, the time point when the timer starts can be the first/Nth time of the sender The moment when a periodic message is sent; or an agreed time point; d) The length of the CT timer can be set to the sending period of the periodic message or other lengths; e) The length of the BF timer is determined according to the network delay statistical performance.
  • Step 303 When the first message is received outside the periodic timer, the communication network receiving end forwards the first message to the application receiving end.
  • the communication network receiving end can monitor whether the first message from the communication network sending end is received within the periodic timer. If the first message is received by the communication network in other periods, The receiving end indicates that the first message has timed out seriously and needs to be forwarded to the application receiving end immediately. Therefore, the communication network receiving end can forward the first message.
  • the specific implementation method includes but is not limited to putting this type of message into the priority preemption queue. ,send.
  • Step 304 When the first message is received within the periodic timer but outside the delay timer, the communication network receiving end forwards the first message to the application receiving end, and the delay timer is smaller than the periodic timer.
  • the communication network receiving end if the communication network receiving end receives the first message within the periodic timer, but receives it outside the normal forwarding time point in the period, for example, outside the delay timer, it means that the first message is received outside the delay timer.
  • the first message has slightly timed out. Due to the delay sensitivity, it still needs to be forwarded to the application receiving end immediately. Therefore, the communication network receiving end can forward the first message.
  • the specific implementation methods include but are not limited to setting the periodic sending queue and the priority preemption queue. The data received after the delay timer times out is put into the priority preemption queue and sent.
  • the delay timer represents the forwarding time point of the message within the periodic timer. If the first message is received within the delay timer, the first message can be cached and forwarded only after the delay timer expires.
  • the communication network receiving end can set up and start the adaptive buffer locally, and start the period timer and delay timer in the adaptive buffer to adaptively forward the received messages, and delay-sensitive timely Forwarded, ordinary messages are forwarded as usual.
  • Step 401 The communication network receiving end identifies the delay-sensitive message;
  • Step 402 The communication network receiving end obtains the delay-sensitive message. Transmission cycle requirements and transmission delay requirements;
  • Step 403 The communication network receiving end starts the period timer and delay timer to receive the message;
  • Step 404 The communication network receiving end determines whether the message is received within the period timer, if not, then Execute step 405, if yes, execute step 406;
  • step 406 the communication network receiving end determines whether the message is received within the delay timer, if not, execute step 405 , if yes, step 407 is executed;
  • step 407 the communication network receiving end caches the message and forwards it after the delay timer expires.
  • Step 408 The communication network receiving end can adaptively adjust the length of the periodic timer and the delay timer according to the network delay and/or delay jitter.
  • the embodiment of the present application determines the period timer according to the transmission period requirement of the received first message, and determines the delay timer according to the transmission delay requirement. If the first message is received outside the period timer, it is determined that it is affected by network fluctuations. It is too large and needs to be forwarded immediately. If the first message is received within the period timer but outside the delay timer, it is determined that it is less affected by network fluctuations, but it still exceeds the normal forwarding time and needs to be forwarded immediately. Only when it is received within the delay timer, it will be buffered until the delay timer ends and then forwarded, which not only reduces the jitter of message transmission, but also reduces the delay of message transmission.
  • the above describes the solution for setting the adaptive buffer in the communication network receiving end.
  • the following is the setting of the adaptive buffer at the application receiving end.
  • the adaptive buffer scheme is described.
  • Figure 6 is a schematic flow chart of another message transmission method according to an embodiment of the present application.
  • the method includes:
  • Step 601. The application receiving end obtains the sending cycle requirement and sending delay requirement of the first message in the communication service.
  • the first message is a delay-sensitive message.
  • the application receiving end can obtain the sending cycle requirements and sending delay requirements locally.
  • Step 602 The application receiving end determines the period timer according to the sending cycle requirement, and determines the delay timer according to the sending delay requirement.
  • Step 603 When the first message is received outside the periodic timer, the application receiving end forwards the first message to the upper application.
  • Step 604. When the first message is received within the periodic timer but outside the delay timer, the application receiving end forwards the first message to the upper application, and the delay timer is smaller than the periodic timer.
  • the actions performed by the application receiving end in steps 602 to 604 may refer to the actions performed by the communication network device in steps 302 to 304 in Figure 3 , which will not be described again here.
  • Step 605 The application receiving end counts the first number of packets received within the delay timer and the second number of packets received within the periodic timer.
  • the length of the periodic timer and the delay timer determined based on the sending cycle requirement and the sending delay requirement may decrease in accuracy due to the influence of network fluctuations or other effects. Therefore, the application receiving end can calculate statistics within the preset time range. The first number of packets received within the delay timer and the second number of packets received within the periodic timer.
  • Step 606 The application receiving end adjusts the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, and adjusts the length of the periodic timer according to the relationship between the second quantity and the second preset quantity range.
  • the application receiving end can adjust the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, the difference between the first quantity and the first preset quantity range, and the length of the delay timer In a positive feedback relationship, for example, when the first quantity is smaller than the first preset quantity range, the length of the delay timer is increased, and when the first quantity is larger than the first preset quantity range, the length of the delay timer is shortened.
  • the application receiving end can adjust the length of the periodic timer according to the relationship between the second quantity and the second preset quantity range.
  • the difference between the second quantity and the second preset quantity range has a positive feedback relationship with the length of the periodic timer. , for example, when the second quantity is smaller than the second preset quantity range, the length of the periodic timer is increased, and when the second quantity is larger than the second preset quantity range, the length of the periodic timer is shortened.
  • the application device may adaptively adjust the periodic timer and/or delay timer length by: a) counting the delay timer and/or the proportion of messages received within each periodic timer, and setting the corresponding high value; threshold and low threshold; b) If the proportion of reception in the delay timer exceeds the high threshold, shorten the length of the delay timer according to a certain step (for example, x ms); c) If the proportion of reception in the delay timer exceeds the high threshold If the ratio is lower than the low threshold, then increase the length of the delay timer according to a certain step size (for example, y ms); d)
  • the period timer can also be dynamically adjusted according to the above mechanism.
  • Step 607 The application receiving end adjusts the message sending cycle according to the relationship between the delay timer and the preset delay range.
  • the length of the delay timer needs to occupy a certain length in the sending cycle of the message, that is, there is a preset delay range relative to the sending cycle.
  • the sending cycle can be shortened, and when the length of the delay timer is greater than the preset delay range, the sending cycle can be increased.
  • the application receiving end can jointly adjust the packet sending period and other parameters according to the statistical results of the periodic timer and/or the delay timer by a) setting the maximum value MaxT and the minimum value MinT of the delay timer; b) if the delay The value of the timer has reached the maximum value MaxT and needs to be further increased.
  • a) setting the maximum value MaxT and the minimum value MinT of the delay timer a) if the delay The value of the timer has reached the maximum value MaxT and needs to be further increased.
  • the application's sending cycle or/and other parameter configurations including but not limited to watchdog/survival time in industrial application scenarios. and other parameters
  • Step 701 The application receiving end identifies the delay-sensitive message;
  • Step 702 The application receiving end obtains the transmission cycle requirement and transmission of the delay-sensitive message. Delay requirement;
  • Step 703 The application receiving end starts the periodic timer and delay timer to receive the message;
  • Step 704 The application receiving end determines whether the message is received within the periodic timer, if not, execute step 705, if so, then Execute step 706;
  • Step 705 The application receiving end forwards the message;
  • Step 706 The application receiving end determines whether the message is received within the delay timer. If not, execute step 705.
  • Step 707 The application receiving end caches the message and forwards it after the delay timer expires;
  • Step 708 The application receiving end adaptively adjusts the length of the period timer and delay timer according to the number of received messages;
  • Step 709 Application reception The end adjusts the message sending cycle according to the delay timer length.
  • the application receiving end forwards the first message to the upper-layer application, and the schematic diagram of the effect of the application receiving end setting the adaptive de-jitter buffer based on the message transmission step is shown in Figure 8 .
  • an adaptive de-jitter buffer in the application receiving end, on the premise of reducing packet delay jitter, large-delay packets are prevented from entering the buffer, delay jitter and delay performance are balanced, and the timer length is adaptively adjusted. and transmission cycle, improving the experience of periodic delay-sensitive messages and reducing resource consumption of the communication network.
  • the communication network receiving end can also receive instruction information from the application receiving end to adjust the timer length, and the application receiving end can also receive instruction information from the communication network receiving end to adjust the timer length.
  • FIG. 9 shows a schematic flowchart of collaboratively adjusting the timer length provided by an embodiment of the present application.
  • Step 901 Determine the deployment location of the de-jitter buffer; if deployed at the communication network receiving end, perform step 902; if deployed at the application receiving end, perform step 904.
  • Step 902 The application receiving end provides indication information to the communication network receiving end, and cooperates with the communication network receiving end to adjust the de-jitter buffer.
  • the indication information can indicate the message transmission quality; the application receiving end provides indication information in a manner including but not limited to Send the message separately, carry the header field of the message, carry the payload/data of the message, and carry it in the tail of the message.
  • Instruction information provided by the application receiver includes but is not limited to:
  • Step 903 The communication network receiving end adjusts the de-jitter buffer according to the instruction information.
  • a specific adjustment method is as follows:
  • StepUp (such as x ms)
  • StepDown (such as y ms)
  • the period timer can also be adjusted according to application information.
  • Step 904 The communication network receiving end provides indication information to the application receiving end, and cooperates with the application receiving end to adjust the de-jitter buffer; the communication network receiving end provides indication information in a manner including but not limited to sending separate messages and message header fields.
  • Negotiation modification, negotiation modification of message payload (Payload/Data), negotiation modification of message tail; instruction information provided by the communication network receiving end includes but is not limited to:
  • Channel quality information on the network side (channel quality, load information, wireless network interference information, etc.);
  • Step 905 The application receiving end adjusts the de-jitter buffer according to the network information.
  • a specific adjustment method is as follows;
  • StepUp (such as x ms)
  • StepDown (such as y ms)
  • the period timer can also be adjusted according to network information.
  • the application receiving end & the communication network receiving end collaboratively adjust the de-jitter buffer.
  • the setting of the buffer timer is more in line with the application experience and network status, thereby achieving a better application experience and saving network resources.
  • the transmission process of periodic delay-sensitive messages is usually bidirectional.
  • the control master station periodically issues control instructions to the slave station, and the slave station needs to periodically feedback status information to the master station; in this type of two-way
  • both devices have a sender buffer and a receiver buffer; the sender buffer is used for periodic message sending; the receiver buffer is used to submit control messages to the upper application.
  • Scene jitter taking into account real-time performance. Please refer to the buffer adjustment process diagram shown in Figure 10.
  • Step 1001 Determine whether there is a central control node (master control node) between the communicating parties, otherwise execute step 1002, and if so, execute step 1004.
  • Step 1002 The communication parties exchange information and coordinate the buffer information.
  • the specific buffer information collaboration method is as follows:
  • Devices A and B can send their own buffer information (such as timing length, reception status, etc.) to notify the peer.
  • buffer information such as timing length, reception status, etc.
  • Step 1003 Both communicating parties adjust the length of the local delay timer based on the buffer information. Specifically, devices A and B can negotiate unified/differential buffer timer lengths based on the buffer information of the opposite end.
  • the communicating parties can also adjust the message sending cycle based on the relationship between the adjusted delay timer length and the preset delay range.
  • the specific adjustment methods are as follows:
  • Devices A and B can adjust the message sending parameters (including but not limited to the message sending cycle) based on the receiving buffer message reception status of the peer-end interaction. Among them, when the length of the adjusted delay timer is less than the preset When setting the delay range, reduce the sending cycle. When the length of the adjusted delay timer is greater than the preset delay range, increase the sending cycle;
  • the local end may consider increasing the message sending cycle
  • the local end may consider shortening the message sending cycle.
  • Step 1004 The central control node collects child node buffer information.
  • Both communicating parties send buffer information to the central control node.
  • the buffer information includes the length of the delay timer, the adjustment specifications of the delay timer determined by the central control node based on the buffer information, and the length and preset value of the delay timer.
  • the relationship between the delay range determines the adjustment specifications of the transmission cycle, and then generates instructions based on the adjustment specifications.
  • Step 1005 The central control node adjusts the sending parameter configuration of the sub-node through instructions.
  • the communicating parties adjust the length of the delay timer according to the instructions of the central control node; the specific adjustment method is as follows:
  • the central control node (master control node) sends the above instructions to the communicating parties based on the buffer information fed back by the subordinate sub-nodes, so that the communicating parties can adjust their respective delay timer lengths and message sending cycles, and can also adjust each sub-node
  • the message sending time offset, adjusting the logical relationship of message sending between child nodes, network configuration, etc. are not limited here.
  • the embodiment of the present application improves the certainty and real-time performance of delay-sensitive message delivery through buffer collaboration between communicating parties.
  • Figure 11 is a schematic flowchart of a QoS adjustment provided by an embodiment of the present application.
  • Step 1101 Determine the deployment location of the de-jitter buffer; if deployed at the communication network receiving end, execute step 1102; if deployed at the application receiving end, execute step 1103;
  • Step 1102 The communication network receiving end counts the arrival of messages and feeds the information back to the communication network sending end; the specific implementation plan is as follows:
  • the receiving end buffer counts the arrival of messages at the packet-by-packet level (whether a message arrives in each cycle and whether it arrives after the delay timer times out);
  • the communication network receiving end collects the information and sends the information along with the message or by sending the message separately. Feedback to the sending end of the communication network.
  • Step 1103 The application receiving end collects statistics on the arrival of messages and feeds the information back to the communication network receiving end; the specific implementation plan is as follows:
  • the receiving end buffer counts the packet arrival status at the packet-by-packet level (whether a packet arrives in each cycle and whether it arrives after the TBf timer times out);
  • the receiving end of the application device collects the information and feeds the information back to the receiving end of the communication network by sending the message along with the message, sending the message separately, or sharing the buffer;
  • the communication network receiving end collects the information and feeds the information back to the network sending end by sending the message along with the message or sending the message separately.
  • Step 1104 The communication network receiving end adjusts the QoS of the user and the service flow according to the feedback information to ensure the certainty of message transmission and ensure the business experience;
  • the QoS that the communication network can guarantee includes but is not limited to the following:
  • the degree of transmission redundancy of the service flow where the user periodic messages are located (such as transmission bit error rate threshold control, modulation and coding method, use of repeated transmission mechanism, etc.).
  • the adaptive buffer in the embodiment of the present application effectively counts the reception of packets at a packet-by-packet level, and further feeds back to the communication network, so that QoS adjustments for network transmission packets can be made in a timely manner.
  • Figure 12 is a schematic flowchart of another message transmission method provided by an embodiment of the present application.
  • the method includes:
  • Step 1201 The communication network receiving end adds a high-priority preemption queue.
  • the priority of the high-priority preemption queue is higher than the periodic transmission queue of the TSN.
  • the high-priority preemption queue can forward messages prior to the periodic transmission queue of the TSN.
  • step 1201 can be set only once and will not participate in repeated implementation of the plan.
  • Step 1202 The communication network receiving end calculates the transmission delay of the service message. Calculation methods include but are not limited to the following methods:
  • Step 1203 The communication network receiving end sets the message transmission delay threshold value Thd; the setting method of the threshold value includes but is not limited to the following methods:
  • buffer queue processing delay and receiving end processing delay can be reserved;
  • Step 1204 The communication network receiving end determines whether the transmission delay of the message exceeds the threshold value Thd. If yes, execute step 1205; if not, execute step 1206.
  • Step 1205 The transmission delay of the message exceeds the threshold value Thd.
  • the communication network receiving end puts the message into the high-priority preemption queue and submits it immediately; ensuring the timeliness of the message.
  • the high-priority preemption queue can submit messages in time without waiting for buffering in the periodic queue.
  • Step 1206 The communication network receiving end puts the message into the periodic transmission queue of TSN and submits it according to the transmission period set by TSN.
  • the embodiment of this application adds a high-priority preemption queue at the communication network receiving end, which is superior to TSN queue transmission, increases the packet delay calculation method, sets the threshold value of the packet transmission delay, and determines the waiting delay of the packet. , submit when the threshold value is exceeded, avoiding buffering and waiting, and improving message timeliness.
  • the message transmission method is described above, and the device for executing the method is described below.
  • FIG 13 is a schematic structural diagram of a message transmission device provided by an embodiment of the present application.
  • the device 130 includes:
  • the acquisition unit 1301 is used to obtain the transmission cycle requirement and transmission delay requirement of the first message in the communication service, where the first message is a delay-sensitive message;
  • Determining unit 1302 configured to determine the period timer according to the transmission cycle requirement, and determine the delay timer according to the transmission delay requirement;
  • Forwarding unit 1303, configured to forward the first message to the next node when the first message is received outside the periodic timer; when the first message is received within the periodic timer but outside the delay timer, When the time comes, the first message is forwarded to the next node, and the delay timer is smaller than the period timer.
  • the device 130 also includes an adjustment unit 1304, which is specifically used to:
  • the length of the delay timer is adjusted according to the relationship between the first quantity and the first preset quantity range, and the length of the periodic timer is adjusted according to the relationship between the second quantity and the second preset quantity range.
  • the adjustment unit 1304 is also used to:
  • the difference between the first quantity and the first preset quantity range has a positive feedback relationship with the length of the delay timer
  • the difference between the second quantity and the second preset quantity range has a positive feedback relationship with the length of the periodic timer.
  • the device 130 also includes an adjustment unit 1304, which is specifically used to:
  • the device 130 also includes an adjustment unit 1304, which is specifically used to:
  • the buffer information includes the length of the delay timer
  • the adjustment unit 1304 is also used to:
  • the message sending cycle is adjusted according to the relationship between the adjusted delay timer length and the preset delay range.
  • the adjustment unit 1304 is also used to:
  • the sending cycle is increased.
  • the device 130 also includes an adjustment unit 1304, which is specifically used to:
  • the buffer information includes the length of the delay timer
  • the length of the delay timer is adjusted according to the instruction from the central control node, and the instruction is the adjustment specification of the delay timer determined by the central control node based on the buffer information.
  • the instruction also includes the adjustment specifications of the transmission cycle determined by the central control node based on the relationship between the adjusted delay timer length and the preset delay range.
  • the adjustment unit 1304 is also used to:
  • the device 130 also includes an adjustment unit 1304, which is specifically used to:
  • the obtaining unit 1301 of the device 130 is used to perform step 301 in the method embodiment of Figure 3 and step 601 in the method embodiment of Figure 6, and the determining unit 1302 of the device 130 is used to perform step 302 in the method embodiment of Figure 3 and Figure 6
  • the forwarding unit 1303 of the device 130 is used to perform steps 303 to 304 in the method embodiment of Figure 3 and steps 602 to 604 in the method embodiment of Figure 6, which will not be described again here.
  • FIG 14 is a schematic structural diagram of another message transmission device provided by an embodiment of the present application.
  • the device 140 includes:
  • the obtaining unit 1401 obtains the transmission delay of the service message
  • the forwarding unit 1402 is configured to forward the service packet through the first queue when the transmission delay exceeds the delay threshold; and forward the service packet through the second queue period when the transmission delay does not exceed the delay threshold. Sexual forwarding.
  • the delay threshold is determined based on the sending cycle of the service message.
  • the acquisition unit 1401 of the device 140 is used to perform step 1202 in the method embodiment of Figure 12 and step 602 in the method embodiment of Figure 6, and the forwarding unit 1402 of the device 140 is used to perform steps 1203 to 1206 in the method embodiment of Figure 12 , which will not be described again here.
  • Figure 15 shows a possible logical structure diagram of a computer device 150 provided for an embodiment of the present application.
  • Computer device 150 includes: processor 1501, communication interface 1502, storage system 1503, and bus 1504.
  • the processor 1501, the communication interface 1502, and the storage system 1503 are connected to each other through a bus 1504.
  • the processor 1501 is used to control and manage the actions of the computer device 150.
  • the processor 1501 is used to implement the methods in Figure 3, Figure 6, Figure 9, Figure 10, Figure 11 and Figure 12 The steps performed by the communication network receiving end or the application receiving end in the example.
  • the communication interface 1502 is used to support the computer device 150 to communicate.
  • Storage system 1503 is used to store program codes and data of the computer device 150 .
  • the processor 1501 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with this disclosure.
  • the processor 1501 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on.
  • the bus 1504 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the forwarding unit 1303 in the device 130 is equivalent to the communication interface 1502 in the computer device 150
  • the obtaining unit 1301 , the determining unit 1302 and the adjusting unit 1304 in the device 130 are equivalent to the processor 1501 in the computer device 150 .
  • the forwarding unit 1402 in the device 140 is equivalent to the communication interface 1502 in the computer device 150, and the acquisition unit 1401 in the device 140 is equivalent to the processor 1501 in the computer device 150.
  • the computer device 150 of this embodiment may correspond to the communication network receiving end or the application receiving end in the method embodiments of FIG. 3, FIG. 6, FIG. 9, FIG. 10, FIG. 11 and FIG. 12.
  • the communication interface in the computer device 1502 can implement the functions and/or various steps performed by the communication network receiving end or the application receiving end in the method embodiments of Figures 3, 6, 9, 10, 11 and 12. For the sake of simplicity, , which will not be described in detail here.
  • each unit in the device can be a separate processing element, or it can be integrated and implemented in a certain chip of the device.
  • it can also be stored in the memory in the form of a program, and a certain processing element of the device can call and execute the unit. Function.
  • all or part of these units can be integrated together or implemented independently.
  • the processing element described here can also be a processor, which can be an integrated circuit with signal processing capabilities.
  • each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software calling through the processing element.
  • the unit in any of the above devices may be one or more integrated circuits configured to implement the above method, such as: one or more application specific integrated circuits (ASICs), or one or Multiple microprocessors (digital signal processors, DSPs), or one or more A field programmable gate array (FPGA), or a combination of at least two of these integrated circuit forms.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • FPGA field programmable gate array
  • the unit in the device can be implemented in the form of a processing element scheduler
  • the processing element can be a general processor, such as a central processing unit (CPU) or other processor that can call a program.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • a computer-readable storage medium is also provided.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor of the device executes the computer-executed instructions
  • the device executes the above method embodiment.
  • a computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium.
  • the processor of the device executes the computer execution instruction
  • the device executes the method executed by the communication network receiving end or the application receiving end in the above method embodiment.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk and other media that can store program code. .

Landscapes

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

Abstract

The embodiments of the present application disclose a message transmission method and device. The method comprises: a communication network receiving end or an application receiving end determining a periodic timer on the basis of a received sending period requirement in respect of a first message, and determining a delay timer on the basis of a sending delay requirement; if the first message is received outside of the periodic timer, then determining that the effect of network fluctuation on first message is too large and that said message requires immediate forwarding; if the first message is received within the periodic timer but outside of the delay timer, then determining that the effect of network fluctuation on said message is too small but that the normal forwarding time has still been exceeded and that said message requires immediate forwarding. Only when received within the delay timer is said message buffered to the end of the delay timer for forwarding. This reduces both message transmission jittering and message transmission latency.

Description

一种报文传输方法以及装置A message transmission method and device
本申请要求于2022年4月29日提交中国国家知识产权局,申请号为202210468586.9、发明名称为“一种报文传输方法以及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the State Intellectual Property Office of China on April 29, 2022, with the application number 202210468586.9 and the invention title "A message transmission method and device", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本申请实施例涉及通信领域,尤其涉及一种报文传输方法以及装置。Embodiments of the present application relate to the field of communications, and in particular, to a message transmission method and device.
背景技术Background technique
时延敏感报文一般具有周期性特征,需要传输网络同时兼顾报文传输的确定性(低抖动)和低时延性能,例如工业控制类报文的典型特点:周期性密集小包交互,交互周期短,对时延和抖动可靠性的要求高。Delay-sensitive messages generally have periodic characteristics, and the transmission network needs to take into account both the certainty of message transmission (low jitter) and low-latency performance. For example, the typical characteristics of industrial control messages: periodic intensive small packet interactions, interaction cycles Short, high requirements for delay and jitter reliability.
当前的报文传输技术周期性发送报文,当因网络波动导致报文在其他周期接收到时,还需要等待报文的周期性传输,报文传输时延高。The current message transmission technology sends messages periodically. When the message is received in other periods due to network fluctuations, it still needs to wait for the periodic transmission of the message, and the message transmission delay is high.
发明内容Contents of the invention
本申请实施例提供了一种报文传输方法以及装置,用于减少了报文传输的抖动,又减少了报文传输的时延。Embodiments of the present application provide a message transmission method and device, which are used to reduce the jitter of message transmission and reduce the delay of message transmission.
本申请实施例第一方面提供了一种报文传输方法,包括:获取通信业务中第一报文的发送周期需求和发送延迟需求,第一报文为时延敏感报文;根据发送周期需求确定周期定时器,并根据发送延迟需求确定延迟定时器;当第一报文在周期定时器以外接收到时,向下一节点转发第一报文;当第一报文在周期定时器内接收到,但在延迟定时器以外接收到时,向下一节点转发第一报文,延迟定时器小于周期定时器。The first aspect of the embodiment of the present application provides a message transmission method, which includes: obtaining the sending cycle requirement and the sending delay requirement of the first message in the communication service, where the first message is a delay-sensitive message; according to the sending cycle requirement Determine the period timer and determine the delay timer according to the transmission delay requirement; when the first message is received outside the period timer, forward the first message to the next node; when the first message is received within the period timer arrives, but when it is received outside the delay timer, the first message is forwarded to the next node, and the delay timer is smaller than the period timer.
上述方面中,通信网络接收端或应用接收端根据接收的第一报文的发送周期需求确定周期定时器,和根据发送延迟需求确定延迟定时器,如果第一报文在周期定时器以外接收到,则确定其受网络波动影响过大,需要立即转发到下一节点,如果第一报文在周期定时器内接收到,但在延迟定时器以外接收到,则确定其受网络波动影响小一点,但仍然超出正常转发时间,需要立即转发到下一节点,只有在延迟定时器内接收到才缓冲到延迟定时器结束进行转发,既减少了报文传输的抖动,又减少了报文传输的时延。In the above aspect, the communication network receiving end or the application receiving end determines the periodic timer according to the sending cycle requirement of the received first message, and determines the delay timer according to the sending delay requirement. If the first message is received outside the periodic timer , it is determined that it is too affected by network fluctuations and needs to be forwarded to the next node immediately. If the first message is received within the period timer but outside the delay timer, it is determined that it is less affected by network fluctuations. , but it still exceeds the normal forwarding time and needs to be forwarded to the next node immediately. Only when it is received within the delay timer, it will be buffered until the delay timer ends and forwarded, which not only reduces the jitter of message transmission, but also reduces the delay of message transmission. time delay.
在一种可能的实施方式中,该方法还包括:统计延迟定时器内接收到的报文的第一数量,和周期定时器内接收到的报文的第二数量;根据第一数量与第一预设数量范围的关系调整延迟定时器的长度,根据第二数量与第二预设数量范围的关系调整周期定时器的长度。In a possible implementation, the method further includes: counting a first number of messages received within the delay timer and a second number of messages received within the periodic timer; The length of the delay timer is adjusted according to the relationship between a preset quantity range, and the length of the periodic timer is adjusted according to the relationship between the second quantity and the second preset quantity range.
上述可能的实施方式中,于发送周期需求和发送延迟需求确定的周期定时器和延迟定时器的长度可能由于网络波动的影响或者其他影响导致准确度下降,因此应用接收端可以统计预设时间范围内在该延迟定时器内接收到的报文的第一数量和在周期定时器内接收到的报文第二数量。应用接收端可以根据第一数量和第一预设数量范围的关系调整延迟定时器的长度,根据第二数量和第二预设数量范围的关系调整周期定时器的长度,通过在应用 接收端中设置自适应去抖动缓冲区,在降低报文时延抖动的前提下,避免大时延报文进入缓冲,均衡时延抖动和时延性能,且自适应调整定时器长度和发送周期,提升周期性时延敏感报文的体验、降低通信网络的资源消耗。In the above possible implementation, the length of the periodic timer and the delay timer determined based on the transmission cycle requirement and the transmission delay requirement may decrease in accuracy due to network fluctuations or other effects. Therefore, the application receiving end can count the preset time range. The first number of packets received within the delay timer and the second number of packets received within the periodic timer. The application receiving end can adjust the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, and adjust the length of the period timer according to the relationship between the second quantity and the second preset quantity range, by in the application Set up an adaptive de-jitter buffer at the receiving end to prevent large-delay packets from entering the buffer on the premise of reducing packet delay jitter, balance delay jitter and delay performance, and adaptively adjust the timer length and transmission cycle , improve the experience of periodic delay-sensitive packets and reduce the resource consumption of the communication network.
在一种可能的实施方式中,上述步骤根据第一数量与第一预设数量范围的关系调整延迟定时器的长度之后,该方法还包括:根据延迟定时器与预设延时范围的关系调节报文的发送周期。In a possible implementation, after the above steps adjust the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, the method further includes: adjusting the delay timer according to the relationship between the first quantity and the preset delay range. The message sending cycle.
上述可能的实施方式中,延迟定时器的长度需要占据报文的发送周期中一定的长度,即相对于发送周期有一个预设延时范围,当延迟定时器的长度小于该预设延时范围时,可以缩短发送周期,当延迟定时器的长度大于该预设延时范围时,可以增加发送周期,提升周期性时延敏感报文的体验。In the above possible implementation, the length of the delay timer needs to occupy a certain length in the sending cycle of the message, that is, there is a preset delay range relative to the sending cycle. When the length of the delay timer is less than the preset delay range When the delay timer length is greater than the preset delay range, the sending period can be increased to improve the experience of periodic delay-sensitive messages.
在一种可能的实施方式中,第一数量和第一预设数量范围的差值,与延迟定时器的长度成正反馈关系;第二数量和第二预设数量范围的差值,与周期定时器的长度成正反馈关系。In a possible implementation, the difference between the first quantity and the first preset quantity range has a positive feedback relationship with the length of the delay timer; the difference between the second quantity and the second preset quantity range has a positive feedback relationship with the periodic timing The length of the device forms a positive feedback relationship.
在一种可能的实施方式中,该方法还包括:接收来自网络设备的指示信息,指示信息指示传输质量;根据指示信息调整延迟定时器和周期定时器的长度。In a possible implementation, the method further includes: receiving indication information from the network device, the indication information indicating transmission quality; and adjusting the lengths of the delay timer and the periodic timer according to the indication information.
上述可能的实施方式中,应用接收端向通信网络接收端提供指示信息,协同通信网络接收端进行去抖动缓冲区的调整,通信网络接收端向应用接收端提供指示信息,协同应用接收端进行去抖动缓冲区的调整,该指示信息可以指示报文传输质量,通过应用接收端&通信网络接收端协同调整去抖动缓冲区,缓冲区定时器的设置更符合应用体验和网络状态,可获得更好的应用体验和网络资源节约。In the above possible implementation manner, the application receiving end provides instruction information to the communication network receiving end, and cooperates with the communication network receiving end to adjust the de-jitter buffer. The communication network receiving end provides instruction information to the application receiving end, and cooperates with the application receiving end to perform de-jittering. Adjustment of the jitter buffer. This indication information can indicate the quality of packet transmission. By collaboratively adjusting the de-jitter buffer at the application receiving end & communication network receiving end, the buffer timer setting is more in line with the application experience and network status, and can achieve better results. application experience and network resource saving.
在一种可能的实施方式中,该方法还包括:接收来自网络设备的缓冲区信息,缓冲区信息包括延迟定时器的长度;根据缓冲区信息调整本地的延迟定时器的长度。In a possible implementation, the method further includes: receiving buffer information from the network device, where the buffer information includes the length of the delay timer; and adjusting the length of the local delay timer according to the buffer information.
上述可能的实施方式中,通信双方信息交互、协同好缓冲区信息,并根据缓冲区信息调整本地的延迟定时器的长度,提升了时延敏感报文递交的确定性和实时性。In the above possible implementation, the communicating parties exchange information, coordinate the buffer information, and adjust the length of the local delay timer based on the buffer information, thereby improving the certainty and real-time performance of delay-sensitive message delivery.
在一种可能的实施方式中,上述步骤根据缓冲区信息调整本地的延迟定时器的长度之后,该方法还包括:根据调整后的延迟定时器的长度与预设延时范围的关系调节报文的发送周期。In a possible implementation, after the above steps adjust the length of the local delay timer according to the buffer information, the method further includes: adjusting the message according to the relationship between the adjusted length of the delay timer and the preset delay range. sending cycle.
上述可能的实施方式中,通信双方还可以根据调整后的延迟定时器的长度与预设延时范围的关系调节报文的发送周期,提升周期性时延敏感报文的体验。In the above possible implementation, the communicating parties can also adjust the message sending cycle according to the relationship between the adjusted delay timer length and the preset delay range, so as to improve the experience of periodic delay-sensitive messages.
在一种可能的实施方式中,该方法还包括:向中心控制节点发送缓冲区信息,缓冲区信息包括延迟定时器的长度;根据来自中心控制节点的指令调整延迟定时器的长度,指令为中心控制节点根据缓冲区信息确定的延迟定时器的调整规格。In a possible implementation, the method further includes: sending buffer information to the central control node, the buffer information including the length of the delay timer; adjusting the length of the delay timer according to instructions from the central control node, the instructions being the center The control node determines the adjustment specifications of the delay timer based on the buffer information.
上述可能的实施方式中,通信双方都向中心控制节点发送缓冲区信息,该缓冲区信息包括延迟定时器的长度,中心控制节点根据该缓冲区信息确定的延迟定时器的调整规格,以及根据延迟定时器的长度与预设延时范围的关系确定发送周期的调整规格,然后根据调整规格生成指令,以使得通信双方可以调整各自的延迟定时器长度和报文的发送周期,通过通信双方缓冲区协同,提升了时延敏感报文递交的确定性和实时性。 In the above possible implementation, both communicating parties send buffer information to the central control node. The buffer information includes the length of the delay timer, the adjustment specifications of the delay timer determined by the central control node based on the buffer information, and the delay timer adjustment specifications based on the delay timer. The relationship between the length of the timer and the preset delay range determines the adjustment specifications of the sending cycle, and then generates instructions based on the adjustment specifications, so that both communicating parties can adjust their respective delay timer lengths and message sending cycles, through the buffers of both communicating parties. Collaboration improves the certainty and real-time performance of delay-sensitive message delivery.
在一种可能的实施方式中,指令还包括由中心控制节点根据经过调整后的延迟定时器的长度与预设延时范围的关系,确定的发送周期的调整规格,根据来自中心控制节点的指令调整延迟定时器的长度之后,该方法还包括:根据发送周期的调整规格调整报文的发送周期。In a possible implementation, the instruction also includes the adjustment specification of the sending cycle determined by the central control node based on the relationship between the adjusted delay timer length and the preset delay range. According to the instruction from the central control node After adjusting the length of the delay timer, the method further includes: adjusting the sending cycle of the message according to the adjustment specification of the sending cycle.
上述可能的实施方式中,中心控制节点还可以根据调整后的延迟定时器的长度与预设延时范围的关系调节报文的发送周期,提升周期性时延敏感报文的体验。In the above possible implementation, the central control node can also adjust the message sending cycle according to the relationship between the adjusted delay timer length and the preset delay range, so as to improve the experience of periodic delay-sensitive messages.
在一种可能的实施方式中,上述步骤根据调整后的延迟定时器的长度与预设延时范围的关系调节报文的发送周期包括:当调整后的延迟定时器的长度小于预设延迟范围时,减少发送周期;当调整后的延迟定时器的长度大于预设延迟范围时,增加发送周期。In a possible implementation, the above steps of adjusting the message sending cycle according to the relationship between the length of the adjusted delay timer and the preset delay range include: when the length of the adjusted delay timer is less than the preset delay range When the length of the adjusted delay timer is greater than the preset delay range, the sending cycle is increased.
在一种可能的实施方式中,该方法还包括:获取延迟定时器和周期定时器内报文的到达情况;根据到达情况调整报文传输的服务质量。In a possible implementation, the method further includes: obtaining the arrival status of the packets in the delay timer and the periodic timer; and adjusting the service quality of the packet transmission according to the arrival status.
上述可能的实施方式中,自适应缓冲区有效统计逐包级别的报文到达情况,进一步反馈给通信网络,可及时进行网络传输报文的QoS调整。In the above possible implementation manner, the adaptive buffer effectively counts the arrival of packets at a packet-by-packet level, and further feeds back to the communication network, so that QoS adjustments for network transmission packets can be made in a timely manner.
本申请第二方面提供了一种报文传输方法,包括:获取业务报文的传输时延;当传输时延超过时延门限值时,将业务报文通过第一队列转发;当传输时延未超过时延门限值时,将业务报文通过第二队列周期性转发。The second aspect of this application provides a message transmission method, including: obtaining the transmission delay of the service message; when the transmission delay exceeds the delay threshold value, forwarding the service message through the first queue; when transmitting When the delay does not exceed the delay threshold, the service packets are periodically forwarded through the second queue.
上述方面中,通过通信网络接收端增加高优先级抢占队列,优于TSN队列发送,增加报文的时延计算方式、设置报文传输时延的门限值,并判断报文的等待时延,超过门限值时递交、避免缓冲等待,提升报文时效性。In the above aspects, adding a high-priority preemption queue through the communication network receiving end is superior to TSN queue sending, increasing the packet delay calculation method, setting the threshold value of the packet transmission delay, and judging the waiting delay of the packet. , submit when the threshold value is exceeded, avoiding buffering and waiting, and improving message timeliness.
一种可能的实施方式中,时延门限值为根据业务报文的发送周期确定的。In a possible implementation manner, the delay threshold value is determined based on the sending cycle of the service message.
本申请实施例第三方面提供了一种数据传输装置,可以实现上述第一方面或第一方面中任一种可能的实施方式中的方法。该装置包括用于执行上述方法的相应的单元或模块。该装置包括的单元或模块可以通过软件和/或硬件方式实现。该装置例如可以为网络设备,也可以为支持网络设备实现上述方法的芯片、芯片系统、或处理器等,还可以为能实现全部或部分网络设备功能的逻辑模块或软件。The third aspect of the embodiments of the present application provides a data transmission device that can implement the method in the above first aspect or any possible implementation of the first aspect. The device includes corresponding units or modules for performing the above method. The units or modules included in the device can be implemented by software and/or hardware. The device may be, for example, a network device, a chip, a chip system, a processor, etc. that supports the network device to implement the above method, or a logic module or software that can realize all or part of the network device functions.
本申请实施例第四方面提供了一种数据传输装置,可以实现上述第二方面或第二方面中任一种可能的实施方式中的方法。该装置包括用于执行上述方法的相应的单元或模块。该装置包括的单元或模块可以通过软件和/或硬件方式实现。该装置例如可以为网络设备,也可以为支持网络设备实现上述方法的芯片、芯片系统、或处理器等,还可以为能实现全部或部分网络设备功能的逻辑模块或软件。The fourth aspect of the embodiments of the present application provides a data transmission device that can implement the method in the above second aspect or any possible implementation manner of the second aspect. The device includes corresponding units or modules for performing the above method. The units or modules included in the device can be implemented by software and/or hardware. The device may be, for example, a network device, a chip, a chip system, a processor, etc. that supports the network device to implement the above method, or a logic module or software that can realize all or part of the network device functions.
本申请实施例第五方面提供了一种计算机设备,包括:处理器,该处理器与存储器耦合,该存储器用于存储指令,当指令被处理器执行时,使得该计算机设备实现上述第一方面或第一方面中任一种可能的实施方式中的方法。该计算机设备例如可以为网络设备,也可以为支持网络设备实现上述方法的芯片或芯片系统等。The fifth aspect of the embodiment of the present application provides a computer device, including: a processor, the processor is coupled to a memory, and the memory is used to store instructions. When the instructions are executed by the processor, the computer device implements the first aspect. Or the method in any possible implementation of the first aspect. The computer device may be, for example, a network device, or may be a chip or chip system that supports the network device to implement the above method.
本申请实施例第六方面提供了一种计算机设备,包括:处理器,该处理器与存储器耦合,该存储器用于存储指令,当指令被处理器执行时,使得该计算机设备实现上述第二方面或第二方面中任一种可能的实施方式中的方法。该计算机设备例如可以为网络设备,也 可以为支持网络设备实现上述方法的芯片或芯片系统等。The sixth aspect of the embodiment of the present application provides a computer device, including: a processor, the processor is coupled to a memory, and the memory is used to store instructions. When the instructions are executed by the processor, the computer device implements the above second aspect. Or the method in any possible implementation of the second aspect. The computer device may be, for example, a network device, or A chip or chip system that implements the above method can be used to support network equipment.
本申请实施例第七方面提供了一种计算机可读存储介质,该计算机可读存储介质中保存有指令,当该指令被处理器执行时,实现前述第一方面或第一方面任一种可能的实施方式、第二方面或第二方面中任一种可能的实施方式提供的方法。The seventh aspect of the embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores instructions. When the instructions are executed by a processor, the first aspect or any possibility of the first aspect is realized. The method provided by the implementation, the second aspect or any possible implementation of the second aspect.
本申请实施例第八方面提供了一种计算机程序产品,计算机程序产品中包括计算机程序代码,当该计算机程序代码在计算机上执行时,实现前述第一方面或第一方面任一种可能的实施方式、第二方面或第二方面中任一种可能的实施方式提供的方法。The eighth aspect of the embodiments of the present application provides a computer program product. The computer program product includes computer program code. When the computer program code is executed on a computer, the first aspect or any possible implementation of the first aspect is realized. The method provided by any one of the possible implementation modes of the second aspect or the second aspect.
附图说明Description of the drawings
图1为本申请实施例提供的一种网络框架的结构示意图;Figure 1 is a schematic structural diagram of a network framework provided by an embodiment of the present application;
图2为本申请实施例提供的另一种网络框架的结构示意图;Figure 2 is a schematic structural diagram of another network framework provided by an embodiment of the present application;
图3为本申请实施例提供的一种报文传输方法的流程示意图;Figure 3 is a schematic flow chart of a message transmission method provided by an embodiment of the present application;
图4为本申请实施例提供的一种报文传输步骤示意图;Figure 4 is a schematic diagram of message transmission steps provided by an embodiment of the present application;
图5为本申请实施例提供的一种自适应去抖动缓冲区效果示意图;Figure 5 is a schematic diagram of the effect of an adaptive de-jitter buffer provided by an embodiment of the present application;
图6为本申请实施例提供的另一种报文传输方法的流程示意图;Figure 6 is a schematic flow chart of another message transmission method provided by an embodiment of the present application;
图7为本申请实施例提供的另一种报文传输步骤示意图;Figure 7 is a schematic diagram of another message transmission step provided by an embodiment of the present application;
图8为本申请实施例提供的另一种自适应去抖动缓冲区效果示意图;Figure 8 is a schematic diagram of another adaptive de-jittering buffer effect provided by an embodiment of the present application;
图9为本申请实施例提供的一种协同调整定时器长度的流程示意图;Figure 9 is a schematic flowchart of a collaborative adjustment of timer length provided by an embodiment of the present application;
图10为本申请实施例提供的一种缓冲区调整流程示意图;Figure 10 is a schematic diagram of a buffer adjustment process provided by an embodiment of the present application;
图11为本申请实施例提供的一种QoS调整的流程示意图;Figure 11 is a schematic flow chart of QoS adjustment provided by an embodiment of the present application;
图12为本申请实施例提供的另一种报文传输方法的流程示意图;Figure 12 is a schematic flow chart of another message transmission method provided by an embodiment of the present application;
图13为本申请实施例提供的一种报文传输装置的结构示意图;Figure 13 is a schematic structural diagram of a message transmission device provided by an embodiment of the present application;
图14为本申请实施例提供的另一种报文传输装置的结构示意图;Figure 14 is a schematic structural diagram of another message transmission device provided by an embodiment of the present application;
图15本申请实施例提供的一种计算机设备的结构示意图。Figure 15 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种报文传输方法以及装置,用于减少了报文传输的抖动,又减少了报文传输的时延。Embodiments of the present application provide a message transmission method and device, which are used to reduce the jitter of message transmission and reduce the delay of message transmission.
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Persons of ordinary skill in the art know that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它 步骤或单元。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or units may instead include other steps not expressly listed or inherent to such processes, methods, products or devices. steps or units.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" as used herein means "serving as an example, example, or illustrative." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or superior to other embodiments.
另外,为了更好的说明本申请,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本申请的主旨。In addition, in order to better explain the present application, numerous specific details are given in the following detailed description. It will be understood by those skilled in the art that the present application may be practiced without certain specific details. In some instances, methods, means, components and circuits that are well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
下面对本申请实施例的一些术语进行解释。Some terms used in the embodiments of this application are explained below.
抖动:报文传输时延的变化情况、偏离理想位置的情况。Jitter: changes in packet transmission delay and deviation from the ideal position.
看门狗:一种装置(通常是一个计时器或驱动器),用于监视连续运行的系统是否正常、功能是否发挥出来。Watchdog: A device (usually a timer or driver) used to monitor whether a continuously running system is normal and functional.
本申请实施例提供的技术方案可以应用于各种通信系统,例如:长期演进(longterm evolution,LTE)系统、第五代(5th generation,5G)移动通信系统、无线保真(wireless-fidelity,WiFi)系统、未来的通信系统、或者多种通信系统融合的系统等,本申请实施例不做限定。其中,5G还可以称为新无线(new radio,NR)。The technical solutions provided by the embodiments of this application can be applied to various communication systems, such as: long term evolution (LTE) system, fifth generation (5th generation, 5G) mobile communication system, wireless-fidelity (WiFi) ) system, future communication system, or a system integrating multiple communication systems, etc., are not limited by the embodiments of this application. Among them, 5G can also be called new radio (NR).
本申请实施例提供的技术方案可以应用于各种通信场景,例如可以应用于以下通信场景中的一种或多种:增强移动宽带(enhanced mobile broadband,eMBB)、超可靠低时延通信(ultra-reliable low-latency communication,URLLC)、机器类型通信(machinetype communication,MTC)、大规模机器类型通信(massive machine typecommunications,mMTC)、设备到设备(device-to-device,D2D)、车辆外联(vehicle toeverything,V2X)、车辆到车辆(vehicle to vehicle,V2V)、和物联网(internet ofthings,IoT)等。The technical solutions provided by the embodiments of this application can be applied to various communication scenarios, for example, can be applied to one or more of the following communication scenarios: enhanced mobile broadband (eMBB), ultra-reliable low-latency communication (ultra -reliable low-latency communication (URLLC), machine type communication (MTC), massive machine type communications (mMTC), device-to-device (D2D), vehicle outreach ( vehicle to everything (V2X), vehicle to vehicle (vehicle to vehicle (V2V)), and the Internet of Things (IoT), etc.
参阅图1和图2,本申请实施例中网络框架包括:Referring to Figure 1 and Figure 2, the network framework in the embodiment of this application includes:
工业通信终端设备,无线网络终端设备,接入网设备,核心网设备;Industrial communication terminal equipment, wireless network terminal equipment, access network equipment, core network equipment;
工业通信终端设备可以与无线网络终端设备相连,如图1中的第一工业通信终端设备或图2中的第三工业通信终端设备和第四工业通信终端设备,工业通信终端设备与无线网络终端设备相连,无线网络终端设备通过接入网设备和核心网设备相连。工业通信终端设备也可以和核心网设备相连,如图1中的第二工业通信终端设备。The industrial communication terminal equipment can be connected to the wireless network terminal equipment, such as the first industrial communication terminal equipment in Figure 1 or the third industrial communication terminal equipment and the fourth industrial communication terminal equipment in Figure 2. The industrial communication terminal equipment and the wireless network terminal The devices are connected, and the wireless network terminal equipment is connected to the core network equipment through the access network equipment. Industrial communication terminal equipment can also be connected to core network equipment, such as the second industrial communication terminal equipment in Figure 1.
1)本申请实施例可适用于有线和无线通信场景;图1和图2仅示例3GPP通信下的一种部署场景;1) The embodiments of this application can be applied to wired and wireless communication scenarios; Figure 1 and Figure 2 only illustrate a deployment scenario under 3GPP communication;
2)应用设备和网络设备逻辑上是分开的,物理部署时可以合一部署,也可以分开部署;2) Application equipment and network equipment are logically separated and can be deployed together or separately during physical deployment;
3)工业终端侧只描述了工业终端之间1对1通信的场景,也可以应用于工业终端复杂组网场景(比如链形、环形、星型等);3) The industrial terminal side only describes the one-to-one communication scenario between industrial terminals, and can also be applied to complex networking scenarios of industrial terminals (such as chain, ring, star, etc.);
4)Buffer/缓冲区的位置,上图是一个示例,也可以部署在网络的其他环节。4) Buffer/buffer location, the above picture is an example, it can also be deployed in other parts of the network.
工业通信终端设备和无线网络终端设备之间可以使用IC-1(Industrial Communication Type1)接口进行连接,连接方式包括有线、无线或者两者的混合,IC-1接口支持的协议类型包括:IP、Ethernet、WiFi、其他工业通信场景扩展的协议类型,工业通信终端设备和核心网设备之间可以使用N6接口进行连接,N6接口支持的协议类型包括:IP、Ethernet、其他工业通信场景扩展的协议类型。 Industrial communication terminal equipment and wireless network terminal equipment can be connected using the IC-1 (Industrial Communication Type 1) interface. The connection methods include wired, wireless or a mixture of the two. The protocol types supported by the IC-1 interface include: IP, Ethernet , WiFi, and other extended protocol types in industrial communication scenarios. The N6 interface can be used to connect industrial communication terminal equipment and core network equipment. The protocol types supported by the N6 interface include: IP, Ethernet, and other extended protocol types in industrial communication scenarios.
本申请实施例中,工业通信终端设备,无线网络终端设备,接入网设备,和核心网设备等设备的个数均不做限定,本申请实施例仅以图1所示网络框架为例进行说明。In the embodiment of this application, the number of industrial communication terminal equipment, wireless network terminal equipment, access network equipment, core network equipment and other equipment is not limited. The embodiment of this application only takes the network framework shown in Figure 1 as an example. illustrate.
工业通信用户(industrial user equipment,i-UE),是指工业通信终端设备(工业生产现场用于提供数据连通性的终端设备),例如:PLC控制器或工控机、工业服务器等。Industrial communication user (industrial user equipment, i-UE) refers to industrial communication terminal equipment (terminal equipment used to provide data connectivity at industrial production sites), such as: PLC controllers or industrial computers, industrial servers, etc.
无线网络终端设备,又称之为无线网络(如3GPP)用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等,是指向用户提供语音和/或数据连通性的设备。例如,具有无线连接功能的手持式设备、车载设备等。目前,一些终端的举例为:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,虚拟现实(virtual reality,VR)设备、增强现实(augmented reality,AR)设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等。Wireless network terminal equipment, also known as wireless network (such as 3GPP) user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is to provide users with voice and/or or data connectivity devices. For example, handheld devices, vehicle-mounted devices, etc. with wireless connection capabilities. Currently, some examples of terminals are: mobile phones, tablets, laptops, PDAs, mobile internet devices (MID), wearable devices, virtual reality (VR) devices, augmented reality (augmented reality, AR) equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, and smart grids wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
核心网设备,是指为终端提供业务支持的核心网(core network,CN)中的设备。目前,一些核心网设备的举例为:接入和移动性管理功能(access and mobility management function,AMF)实体、会话管理功能(session management function,SMF)实体、用户面功能(user plane function,UPF)实体等等,此处不一一列举。其中,AMF实体可以负责终端的接入管理和移动性管理;SMF实体可以负责会话管理,如用户的会话建立等;UPF实体可以是用户面的功能实体,主要负责连接外部网络。需要说明的是,本申请中实体也可以称为网元或功能实体,例如,AMF实体也可以称为AMF网元或AMF功能实体,又例如,SMF实体也可以称为SMF网元或SMF功能实体等,具体此处不做限定。Core network equipment refers to equipment in the core network (CN) that provides business support for terminals. Currently, some examples of core network equipment are: access and mobility management function (AMF) entities, session management function (SMF) entities, user plane function (UPF) Entities, etc. are not listed here. Among them, the AMF entity can be responsible for terminal access management and mobility management; the SMF entity can be responsible for session management, such as user session establishment, etc.; the UPF entity can be a functional entity of the user plane, mainly responsible for connecting to external networks. It should be noted that the entity in this application can also be called a network element or a functional entity. For example, an AMF entity can also be called an AMF network element or an AMF functional entity. For example, an SMF entity can also be called an SMF network element or an SMF function. Entities, etc. are not specifically limited here.
接入网设备,是指将终端接入到无线网络的无线接入网(radio access network,RAN)节点(或设备),又可以称为基站。目前,一些RAN节点的举例为:继续演进的节点B(gNB)、传输接收点(transmission reception point,TRP)、演进型节点B(evolved NodeB,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved NodeB,或home Node B,HNB)、基带单元(base band unit,BBU),或无线保真(wireless fidelity,Wifi)接入点(access point,AP)等。Access network equipment refers to the radio access network (RAN) node (or equipment) that connects terminals to the wireless network, and can also be called a base station. Currently, some examples of RAN nodes are: evolved Node B (gNB), transmission reception point (TRP), evolved NodeB (evolved NodeB, eNB), radio network controller (RNC) ), Node B (Node B, NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved NodeB, or home Node B, HNB), Baseband unit (base band unit, BBU), or wireless fidelity (wireless fidelity, Wifi) access point (access point, AP), etc.
通信系统中传输的报文可能是需要低时延的时延敏感报文,该时延敏感报文一般具有周期性特征,需要传输网络同时兼顾报文传输的确定性(低抖动)和低时延性能,其中,工业控制类报文就需要满足周期性密集小包交互,交互周期短,对时延和抖动可靠性的要求高的特点。此外,在语音传输、视频传输、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)/扩展现实(extended reality,XR)、车联网(vehicle to everything,V2X)、智能电网等场景也普遍存在类似的时延敏感报文传输需求,并且具有周期性特征。当前的报文传输技术周期性发送报文,当因网络波动导致报文在其他周期接收到时,还需要等待报文的周期性传输,报文传输时延高。The messages transmitted in the communication system may be delay-sensitive messages that require low latency. These delay-sensitive messages generally have periodic characteristics, and the transmission network needs to take into account both the certainty (low jitter) and low latency of message transmission. Delay performance. Among them, industrial control messages need to meet the characteristics of periodic intensive small packet interaction, short interaction period, and high requirements for delay and jitter reliability. In addition, in scenarios such as voice transmission, video transmission, augmented reality (AR)/virtual reality (VR)/extended reality (XR), vehicle to everything (V2X), smart grid and other scenarios Similar latency-sensitive message transmission requirements are also common and have periodic characteristics. The current message transmission technology sends messages periodically. When the message is received in other periods due to network fluctuations, it still needs to wait for the periodic transmission of the message, and the message transmission delay is high.
为解决上述问题,本申请实施例提供了一种报文传输方法,该方法如下所述。 In order to solve the above problem, embodiments of the present application provide a message transmission method, which is as follows.
本申请实施例中,第一工业通信终端设备为应用发送端,第二工业通信终端设备为应用接收端,3GPP基站为通信网络发送端,3GPP核心网为通信网络接收端。In the embodiment of this application, the first industrial communication terminal equipment is the application sending end, the second industrial communication terminal equipment is the application receiving end, the 3GPP base station is the communication network sending end, and the 3GPP core network is the communication network receiving end.
请参照图3,如图3所示为本申请实施例提供的一种报文传输方法,该方法包括:Please refer to Figure 3, which shows a message transmission method provided by an embodiment of the present application. The method includes:
步骤301.通信网络接收端获取通信业务中第一报文的发送周期需求和发送延迟需求,第一报文为时延敏感报文。Step 301. The communication network receiving end obtains the transmission cycle requirement and transmission delay requirement of the first message in the communication service. The first message is a delay-sensitive message.
本实施例中,应用发送端发送报文至通信网络发送端,通信网络发送端将报文转发给通信网络接收端,通信网络接收端再转发给应用接收端。通信网络接收端可以接收来自通信网络发送端的第一报文,其中,该第一报文为时延敏感报文,需要通信网络接收端及时转发给应用接收端。因为该第一报文为时延敏感报文,通信网络接收端需要确定报文转发时间限定,即通信网络接收端可以获取该第一报文的发送周期需求和发送延迟需求,其中,该发送周期需求可以限制第一报文同种类报文的发送周期,发送延迟需求可以限制第一报文同种类报文的在每个周期内的发送时间点。In this embodiment, the application sending end sends a message to the communication network sending end, the communication network sending end forwards the message to the communication network receiving end, and the communication network receiving end forwards the message to the application receiving end. The communication network receiving end can receive the first message from the communication network sending end, where the first message is a delay-sensitive message and needs to be forwarded by the communication network receiving end to the application receiving end in a timely manner. Because the first message is a delay-sensitive message, the communication network receiving end needs to determine the message forwarding time limit, that is, the communication network receiving end can obtain the sending cycle requirement and sending delay requirement of the first message, where The cycle requirement can limit the sending period of messages of the same type as the first message, and the sending delay requirement can limit the sending time point in each cycle of messages of the same type as the first message.
通信网络接收端识别通信业务中需要周期递交、对时延敏感的报文;具体的实现方式包括但不限于:a)网络自识别:网络接收端通过报文中的关键字段(如报文类型、服务质量(service of quality,QoS)字段、会话类型等)识别,确定是否为周期性时延敏感报文;或者接收端通过对历史报文规律的学习,确定是否为周期性时延敏感报文;b)应用协同:应用发送端和/或接收端通知网络接收端需要周期递交、对时延敏感的报文类型;c)The communication network receiving end identifies packets that need to be submitted periodically and are sensitive to delay in communication services; specific implementation methods include but are not limited to: a) Network self-identification: the network receiving end uses key fields in the messages (such as Type, service of quality (QoS) field, session type, etc.) identification to determine whether it is a periodic delay-sensitive message; or the receiving end determines whether it is a periodic delay-sensitive message by learning the rules of historical messages message; b) Application collaboration: The application sender and/or receiver notifies the network receiver of packet types that need to be submitted periodically and are sensitive to delay; c)
应用与网络协同配置:应用和网络预先协商制定网络通信侧的数据流QOS映射规则,确定周期性时延敏感报文所在的QoS流。Application and network collaborative configuration: The application and network negotiate in advance to formulate QOS mapping rules for data flows on the network communication side to determine the QoS flow where periodic delay-sensitive packets are located.
步骤302.通信网络接收端根据发送周期需求确定周期定时器,并根据发送延迟需求确定延迟定时器。Step 302: The communication network receiving end determines the period timer according to the transmission cycle requirement, and determines the delay timer according to the transmission delay requirement.
本实施例中,通信网络接收端可以设置并启动一个自适应缓冲区,在获取该第一报文的发送周期需求和发送延迟需求后,可以根据发送周期需求确定周期定时器的时长,根据发送延迟需求确定延迟定时器的时长,然后在该自适应缓冲区启动延迟定时器和周期定时器,每个第一报文同种类报文只在各个周期内发送,且在那个周期内的延迟定时器生效后发送。In this embodiment, the communication network receiving end can set and start an adaptive buffer. After obtaining the sending cycle requirement and the sending delay requirement of the first message, the duration of the periodic timer can be determined based on the sending cycle requirement. The delay requirement determines the length of the delay timer, and then starts the delay timer and period timer in the adaptive buffer. Each first message of the same type is only sent in each cycle, and the delay timer in that cycle is Sent after the device takes effect.
识别/获取递交周期需求、报文最大延迟需求;具体的实现方式包括但不限于:a)网络自识别:网络接收端通过对历史报文规律的;b)应用协同:应用发送端和/或接收端将周期性时延敏感报文的递交周期需求、报文最大延迟需求通知网络接收端;通知方式有随路报文发送或者单独报文发送;c)应用与网络协同配置:应用和网络预先协商好周期性时延敏感报文的递交周期需求、报文最大延迟需求。Identify/obtain delivery cycle requirements and maximum packet delay requirements; specific implementation methods include but are not limited to: a) network self-identification: the network receiving end analyzes the rules of historical messages; b) application collaboration: application sender and/or The receiving end notifies the network receiving end of the delivery cycle requirements and maximum packet delay requirements of periodic delay-sensitive messages; the notification method is to send messages along the way or send separate messages; c) Application and network collaborative configuration: application and network Negotiate in advance the delivery cycle requirements for periodic delay-sensitive packets and the maximum packet delay requirements.
通信网络(接收端或其他环节)同时启动周期定时器CT和延迟定时器BF;定时器的启动方式包括但不限于:a)定时器的启动时间点可以为第一个/第N个周期报文接收时刻;b)定时器也可以配置为固定的时间点启动;c)在应用发送端和应用接收端时间同步的场景下,定时器启动的时间点可以是发送端第一个/第N个周期报文发出的时刻;或者约定的时间点;d)CT定时器长度可以设置为周期报文的发送周期或其他长度;e)BF定时器长度按照网络时延统计性能确定。 The communication network (receiving end or other links) starts the period timer CT and delay timer BF at the same time; the timer startup method includes but is not limited to: a) The timer startup time point can be the first/Nth period report The time when the message is received; b) The timer can also be configured to start at a fixed time point; c) In the scenario where the application sender and the application receiver are time synchronized, the time point when the timer starts can be the first/Nth time of the sender The moment when a periodic message is sent; or an agreed time point; d) The length of the CT timer can be set to the sending period of the periodic message or other lengths; e) The length of the BF timer is determined according to the network delay statistical performance.
步骤303.当第一报文在周期定时器以外接收到时,通信网络接收端向应用接收端转发第一报文。Step 303. When the first message is received outside the periodic timer, the communication network receiving end forwards the first message to the application receiving end.
本实施例中,通信网络接收端在确定周期定时器后,可以监控是否在该周期定时器内接收到来自通信网络发送端的第一报文,如果该第一报文在其他周期接收到通信网络接收端,则表示第一报文超时严重,需要马上转发给应用接收端,因此通信网络接收端可以转发该第一报文,具体实现方式包括但不限于将该类报文放入优先抢占队列,发送。In this embodiment, after determining the periodic timer, the communication network receiving end can monitor whether the first message from the communication network sending end is received within the periodic timer. If the first message is received by the communication network in other periods, The receiving end indicates that the first message has timed out seriously and needs to be forwarded to the application receiving end immediately. Therefore, the communication network receiving end can forward the first message. The specific implementation method includes but is not limited to putting this type of message into the priority preemption queue. ,send.
步骤304.当第一报文在周期定时器内接收到,但在延迟定时器以外接收到时,通信网络接收端向应用接收端转发第一报文,延迟定时器小于周期定时器。Step 304. When the first message is received within the periodic timer but outside the delay timer, the communication network receiving end forwards the first message to the application receiving end, and the delay timer is smaller than the periodic timer.
本实施例中,如果通信网络接收端在周期定时器内接收到该第一报文,但是在该周期内正常转发时间点之外接收到,例如在延迟定时器之外接收到,则表示该第一报文稍微超时,因时延敏感,还是需要马上转发给应用接收端,因此通信网络接收端可以转发该第一报文,具体实现方式包括但不限于设置周期发送队列和优先抢占队列,延迟定时器超时后接收到的数据放入优先抢占队列、发送。其中,该延迟定时器表示报文在周期定时器内的转发时间点。如果第一报文在延迟定时器内接收到,则可以缓存该第一报文,等待延迟定时器结束时才进行转发。In this embodiment, if the communication network receiving end receives the first message within the periodic timer, but receives it outside the normal forwarding time point in the period, for example, outside the delay timer, it means that the first message is received outside the delay timer. The first message has slightly timed out. Due to the delay sensitivity, it still needs to be forwarded to the application receiving end immediately. Therefore, the communication network receiving end can forward the first message. The specific implementation methods include but are not limited to setting the periodic sending queue and the priority preemption queue. The data received after the delay timer times out is put into the priority preemption queue and sent. The delay timer represents the forwarding time point of the message within the periodic timer. If the first message is received within the delay timer, the first message can be cached and forwarded only after the delay timer expires.
具体的,通信网络接收端可以在本地设置并启动自适应缓冲区,在该自适应缓冲区中启动周期定时器和延迟定时器,以对接收的报文进行自适应转发,时延敏感的及时转发,普通报文则照常转发。Specifically, the communication network receiving end can set up and start the adaptive buffer locally, and start the period timer and delay timer in the adaptive buffer to adaptively forward the received messages, and delay-sensitive timely Forwarded, ordinary messages are forwarded as usual.
本申请实施例中通信网络接收端执行的报文传输步骤可以参照图4所示,步骤401:通信网络接收端识别时延敏感报文;步骤402:通信网络接收端获取时延敏感报文的发送周期需求和发送延迟需求;步骤403:通信网络接收端启动周期定时器和延迟定时器接收报文;步骤404:通信网络接收端判断报文是否在周期定时器内接收到,若否,则执行步骤405,若是,则执行步骤406;步骤405:通信网络接收端转发该报文;步骤406:通信网络接收端判断该报文是否在延迟定时器内接收到,若否,则执行步骤405,若是,则执行步骤407;步骤407:通信网络接收端将该报文缓存到延迟定时器结束后转发。步骤408:通信网络接收端可以根据网络时延和/或时延抖动情况自适应调整周期定时器和延迟定时器的长度。The message transmission steps performed by the communication network receiving end in the embodiment of the present application can be referred to as shown in Figure 4. Step 401: The communication network receiving end identifies the delay-sensitive message; Step 402: The communication network receiving end obtains the delay-sensitive message. Transmission cycle requirements and transmission delay requirements; Step 403: The communication network receiving end starts the period timer and delay timer to receive the message; Step 404: The communication network receiving end determines whether the message is received within the period timer, if not, then Execute step 405, if yes, execute step 406; step 405: the communication network receiving end forwards the message; step 406: the communication network receiving end determines whether the message is received within the delay timer, if not, execute step 405 , if yes, step 407 is executed; step 407: the communication network receiving end caches the message and forwards it after the delay timer expires. Step 408: The communication network receiving end can adaptively adjust the length of the periodic timer and the delay timer according to the network delay and/or delay jitter.
具体的,基于该报文传输步骤实现的通信网络接收端设置自适应去抖动缓冲区效果示意图可以参照图5所示。Specifically, the schematic diagram of the effect of setting the adaptive de-jitter buffer at the communication network receiving end based on this message transmission step can be referred to as shown in Figure 5.
本申请实施例根据接收的第一报文的发送周期需求确定周期定时器,和根据发送延迟需求确定延迟定时器,如果第一报文在周期定时器以外接收到,则确定其受网络波动影响过大,需要立即转发,如果第一报文在周期定时器内接收到,但在延迟定时器以外接收到,则确定其受网络波动影响小一点,但仍然超出正常转发时间,需要立即转发,只有在延迟定时器内接收到才缓冲到延迟定时器结束进行转发,既减少了报文传输的抖动,又减少了报文传输的时延。The embodiment of the present application determines the period timer according to the transmission period requirement of the received first message, and determines the delay timer according to the transmission delay requirement. If the first message is received outside the period timer, it is determined that it is affected by network fluctuations. It is too large and needs to be forwarded immediately. If the first message is received within the period timer but outside the delay timer, it is determined that it is less affected by network fluctuations, but it still exceeds the normal forwarding time and needs to be forwarded immediately. Only when it is received within the delay timer, it will be buffered until the delay timer ends and then forwarded, which not only reduces the jitter of message transmission, but also reduces the delay of message transmission.
上面讲述了在通信网络接收端中设置自适应缓冲区的方案,下面对在应用接收端设置 自适应缓冲区的方案进行描述。The above describes the solution for setting the adaptive buffer in the communication network receiving end. The following is the setting of the adaptive buffer at the application receiving end. The adaptive buffer scheme is described.
请参阅图6,如图6所示为本申请实施例所示的另一种报文传输方法的流程示意图,该方法包括:Please refer to Figure 6, which is a schematic flow chart of another message transmission method according to an embodiment of the present application. The method includes:
步骤601.应用接收端获取通信业务中第一报文的发送周期需求和发送延迟需求,第一报文为时延敏感报文。Step 601. The application receiving end obtains the sending cycle requirement and sending delay requirement of the first message in the communication service. The first message is a delay-sensitive message.
本实施例中,应用接收端可以从本地获取发送周期需求和发送延迟需求。In this embodiment, the application receiving end can obtain the sending cycle requirements and sending delay requirements locally.
步骤602.应用接收端根据发送周期需求确定周期定时器,并根据发送延迟需求确定延迟定时器。Step 602: The application receiving end determines the period timer according to the sending cycle requirement, and determines the delay timer according to the sending delay requirement.
步骤603.当第一报文在周期定时器以外接收到时,应用接收端向上层应用转发第一报文。Step 603: When the first message is received outside the periodic timer, the application receiving end forwards the first message to the upper application.
步骤604.当第一报文在周期定时器内接收到,但在延迟定时器以外接收到时,应用接收端向上层应用转发第一报文,延迟定时器小于周期定时器。Step 604. When the first message is received within the periodic timer but outside the delay timer, the application receiving end forwards the first message to the upper application, and the delay timer is smaller than the periodic timer.
本实施例中,步骤602-步骤604中应用接收端执行的动作可以参照图3中步骤302-步骤304的通信网络设执行的动作,具体此处不再赘述。In this embodiment, the actions performed by the application receiving end in steps 602 to 604 may refer to the actions performed by the communication network device in steps 302 to 304 in Figure 3 , which will not be described again here.
步骤605.应用接收端统计延迟定时器内接收到的报文的第一数量,和周期定时器内接收到的报文的第二数量。Step 605: The application receiving end counts the first number of packets received within the delay timer and the second number of packets received within the periodic timer.
本实施例中,基于发送周期需求和发送延迟需求确定的周期定时器和延迟定时器的长度可能由于网络波动的影响或者其他影响导致准确度下降,因此应用接收端可以统计预设时间范围内在该延迟定时器内接收到的报文的第一数量和在周期定时器内接收到的报文第二数量。In this embodiment, the length of the periodic timer and the delay timer determined based on the sending cycle requirement and the sending delay requirement may decrease in accuracy due to the influence of network fluctuations or other effects. Therefore, the application receiving end can calculate statistics within the preset time range. The first number of packets received within the delay timer and the second number of packets received within the periodic timer.
步骤606.应用接收端根据第一数量与第一预设数量范围的关系调整延迟定时器的长度,根据第二数量与第二预设数量范围的关系调整周期定时器的长度。Step 606: The application receiving end adjusts the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, and adjusts the length of the periodic timer according to the relationship between the second quantity and the second preset quantity range.
本实施例中,在预设时间范围内,满足传输时延要求的延迟定时器内接收到的报文数量有一个第一预设数量范围,周期定时器内接收到的报文数量有一个第二预设数量范围,应用接收端可以根据第一数量和第一预设数量范围的关系调整延迟定时器的长度,第一数量和第一预设数量范围的差值,与延迟定时器的长度成正反馈关系,示例性的,当第一数量小于第一预设数量范围时,增加延迟定时器的长度,当第一数量大于第一预设数量范围时,缩短该延迟定时器的长度。同样的,应用接收端可以根据第二数量和第二预设数量范围的关系调整周期定时器的长度,第二数量和第二预设数量范围的差值,与周期定时器的长度成正反馈关系,示例性的,当第二数量小于第二预设数量范围时,增加周期定时器的长度,当第二数量大于第二预设数量范围时,缩短周期定时器的长度。In this embodiment, within the preset time range, the number of messages received within the delay timer that meets the transmission delay requirement has a first preset number range, and the number of messages received within the periodic timer has a first preset number range. Two preset quantity ranges, the application receiving end can adjust the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, the difference between the first quantity and the first preset quantity range, and the length of the delay timer In a positive feedback relationship, for example, when the first quantity is smaller than the first preset quantity range, the length of the delay timer is increased, and when the first quantity is larger than the first preset quantity range, the length of the delay timer is shortened. Similarly, the application receiving end can adjust the length of the periodic timer according to the relationship between the second quantity and the second preset quantity range. The difference between the second quantity and the second preset quantity range has a positive feedback relationship with the length of the periodic timer. , for example, when the second quantity is smaller than the second preset quantity range, the length of the periodic timer is increased, and when the second quantity is larger than the second preset quantity range, the length of the periodic timer is shortened.
具体的,应用设备按照自适应调整周期定时器和/或延迟定时器长度的方式可以是,a)统计延迟定时器和/或每个周期定时器内报文接收到的比例,设置对应的高门限值和低门限;b)若延迟定时器内接收到的比例超过高门限值,则按照一定的步长(例如x ms)缩短延迟定时器的长度;c)若延迟定时器内接收到的比例低于低门限值,则按照一定的步长(例如y ms)增加延迟定时器的长度;d)周期定时器也可以按照上述机制动态调整。Specifically, the application device may adaptively adjust the periodic timer and/or delay timer length by: a) counting the delay timer and/or the proportion of messages received within each periodic timer, and setting the corresponding high value; threshold and low threshold; b) If the proportion of reception in the delay timer exceeds the high threshold, shorten the length of the delay timer according to a certain step (for example, x ms); c) If the proportion of reception in the delay timer exceeds the high threshold If the ratio is lower than the low threshold, then increase the length of the delay timer according to a certain step size (for example, y ms); d) The period timer can also be dynamically adjusted according to the above mechanism.
步骤607.应用接收端根据延迟定时器与预设延时范围的关系调节报文的发送周期。 Step 607: The application receiving end adjusts the message sending cycle according to the relationship between the delay timer and the preset delay range.
本实施例中,延迟定时器的长度需要占据报文的发送周期中一定的长度,即相对于发送周期有一个预设延时范围,当延迟定时器的长度小于该预设延时范围时,可以缩短发送周期,当延迟定时器的长度大于该预设延时范围时,可以增加发送周期。In this embodiment, the length of the delay timer needs to occupy a certain length in the sending cycle of the message, that is, there is a preset delay range relative to the sending cycle. When the length of the delay timer is less than the preset delay range, The sending cycle can be shortened, and when the length of the delay timer is greater than the preset delay range, the sending cycle can be increased.
具体的,应用接收端按周期定时器和/或延迟定时器的统计结果联合调整发包周期和其他参数的方式可以是,a)设置延迟定时器的最大值MaxT和最小值MinT;b)若延迟定时器的数值已经到达最大值MaxT,并且需要进一步增加,可考虑增加应用的发送周期或/和其他参数配置(包括但不限于工业应用场景的看门狗(watchdog)/存活期(survival time)等参数);c)若延迟定时器的数值已经到达最小值MinT,并且需要进一步减少,可考虑缩短应用的发送周期或/和其他参数配置(包括但不限于工业应用场景的Watchdog/Survival Time等参数)。Specifically, the application receiving end can jointly adjust the packet sending period and other parameters according to the statistical results of the periodic timer and/or the delay timer by a) setting the maximum value MaxT and the minimum value MinT of the delay timer; b) if the delay The value of the timer has reached the maximum value MaxT and needs to be further increased. Consider increasing the application's sending cycle or/and other parameter configurations (including but not limited to watchdog/survival time in industrial application scenarios). and other parameters); c) If the value of the delay timer has reached the minimum value MinT and needs to be further reduced, consider shortening the application's sending cycle or/and other parameter configurations (including but not limited to Watchdog/Survival Time in industrial application scenarios, etc. parameter).
本申请实施例中另一种报文传输步骤可以参照图7所示,步骤701:应用接收端识别时延敏感报文;步骤702:应用接收端获取时延敏感报文的发送周期需求和发送延迟需求;步骤703:应用接收端启动周期定时器和延迟定时器接收报文;步骤704:应用接收端判断报文是否在周期定时器内接收到,若否,则执行步骤705,若是,则执行步骤706;步骤705:应用接收端转发该报文;步骤706:应用接收端判断该报文是否在延迟定时器内接收到,若否,则执行步骤705,若是,则执行步骤707;步骤707:应用接收端将该报文缓存到延迟定时器结束后转发;步骤708:应用接收端根据接收到的报文的数量自适应调整周期定时器和延迟定时器的长度;步骤709:应用接收端根据延迟定时器长度调整报文的发送周期。Another message transmission step in the embodiment of this application can be referred to as shown in Figure 7. Step 701: The application receiving end identifies the delay-sensitive message; Step 702: The application receiving end obtains the transmission cycle requirement and transmission of the delay-sensitive message. Delay requirement; Step 703: The application receiving end starts the periodic timer and delay timer to receive the message; Step 704: The application receiving end determines whether the message is received within the periodic timer, if not, execute step 705, if so, then Execute step 706; Step 705: The application receiving end forwards the message; Step 706: The application receiving end determines whether the message is received within the delay timer. If not, execute step 705. If yes, execute step 707; Step 707: The application receiving end caches the message and forwards it after the delay timer expires; Step 708: The application receiving end adaptively adjusts the length of the period timer and delay timer according to the number of received messages; Step 709: Application reception The end adjusts the message sending cycle according to the delay timer length.
应用接收端将该第一报文转发给上层应用,基于该报文传输步骤实现的应用接收端设置自适应去抖动缓冲区效果示意图可以参照图8所示。通过在应用接收端中设置自适应去抖动缓冲区,在降低报文时延抖动的前提下,避免大时延报文进入缓冲,均衡时延抖动和时延性能,且自适应调整定时器长度和发送周期,提升周期性时延敏感报文的体验、降低通信网络的资源消耗。The application receiving end forwards the first message to the upper-layer application, and the schematic diagram of the effect of the application receiving end setting the adaptive de-jitter buffer based on the message transmission step is shown in Figure 8 . By setting up an adaptive de-jitter buffer in the application receiving end, on the premise of reducing packet delay jitter, large-delay packets are prevented from entering the buffer, delay jitter and delay performance are balanced, and the timer length is adaptively adjusted. and transmission cycle, improving the experience of periodic delay-sensitive messages and reducing resource consumption of the communication network.
本申请实施例中,通信网络接收端还可以接收应用接收端的指示信息调整定时器长度,应用接收端也可以接收通信网络接收端的指示信息调整定时器长度。In the embodiment of the present application, the communication network receiving end can also receive instruction information from the application receiving end to adjust the timer length, and the application receiving end can also receive instruction information from the communication network receiving end to adjust the timer length.
请参阅图9,如图9所示本申请实施例提供的协同调整定时器长度的流程示意图。Please refer to FIG. 9 , which shows a schematic flowchart of collaboratively adjusting the timer length provided by an embodiment of the present application.
步骤901:判断去抖动缓冲区的部署位置;若部署在通信网络接收端,则执行步骤902;若部署在应用接收端,则执行步骤904。Step 901: Determine the deployment location of the de-jitter buffer; if deployed at the communication network receiving end, perform step 902; if deployed at the application receiving end, perform step 904.
步骤902:应用接收端向通信网络接收端提供指示信息,协同通信网络接收端进行去抖动缓冲区的调整,该指示信息可以指示报文传输质量;应用接收端提供指示信息的方式包括但不限于单独发送报文、报文头部字段携带、报文净荷(Payload/Data)携带、报文尾部携带。应用接收端提供指示信息包括但不限于:Step 902: The application receiving end provides indication information to the communication network receiving end, and cooperates with the communication network receiving end to adjust the de-jitter buffer. The indication information can indicate the message transmission quality; the application receiving end provides indication information in a manner including but not limited to Send the message separately, carry the header field of the message, carry the payload/data of the message, and carry it in the tail of the message. Instruction information provided by the application receiver includes but is not limited to:
a)应用接收端每个周期内的报文接收情况(是否匹配上层应用需求等);a) The message reception status of the application receiving end in each cycle (whether it matches the upper-layer application requirements, etc.);
b)应用接收端每个周期内报文的发送情况(发送时间点、报文时间漂移情况等);b) Application of the message sending situation in each cycle of the receiving end (sending time point, message time drift, etc.);
c)应用接收端的激活情况,是否包含有效的信息交互(如必须发送的控制指令、必须 反馈的状态信息等);若不含有效的信息交互(如仅包含保持存在(keep-alive)报文),可适当增加抖动缓冲区长度;c) The activation status of the application receiving end, whether it contains effective information interaction (such as control instructions that must be sent, must Feedback status information, etc.); if it does not contain effective information exchange (for example, it only contains keep-alive messages), the jitter buffer length can be appropriately increased;
步骤903:通信网络接收端按照指示信息调整去抖动缓冲区。一种具体的调整方式如下:Step 903: The communication network receiving end adjusts the de-jitter buffer according to the instruction information. A specific adjustment method is as follows:
a)设置延迟定时器的最大值MaxT和最小值MinT;a) Set the maximum value MaxT and minimum value MinT of the delay timer;
b)设置延迟定时器的增加步长StepUp(如x ms)和缩短步长StepDown(如y ms);b) Set the delay timer's increasing step size StepUp (such as x ms) and shortening step size StepDown (such as y ms);
c)需要拉长延迟定时器时,按照StepUp步长增加,最大值不超过MaxT;c) When the delay timer needs to be lengthened, increase it according to the StepUp step size, and the maximum value does not exceed MaxT;
d)需要缩短延迟定时器时,按照StepDown步长缩短,最小值不低于MinT;d) When the delay timer needs to be shortened, shorten it according to the StepDown step size, and the minimum value is not lower than MinT;
e)周期定时器也可以按应用信息进行调整。e) The period timer can also be adjusted according to application information.
步骤904:通信网络接收端向应用接收端提供指示信息,协同应用接收端进行去抖动缓冲区的调整;通信网络接收端提供指示信息的方式包括但不限于单独发送报文、报文头部字段协商修改、报文净荷(Payload/Data)协商修改、报文尾部协商修改;通信网络接收端提供指示信息包括但不限于:Step 904: The communication network receiving end provides indication information to the application receiving end, and cooperates with the application receiving end to adjust the de-jitter buffer; the communication network receiving end provides indication information in a manner including but not limited to sending separate messages and message header fields. Negotiation modification, negotiation modification of message payload (Payload/Data), negotiation modification of message tail; instruction information provided by the communication network receiving end includes but is not limited to:
a)网络侧的信道质量信息(信道质量、负载信息、无线网络的干扰信息等);a) Channel quality information on the network side (channel quality, load information, wireless network interference information, etc.);
b)网络设备的工作状态(硬件负载信息、温度等信息);b) The working status of network equipment (hardware load information, temperature and other information);
c)网络侧的传输正确率/误码率统计;c) Transmission accuracy/bit error rate statistics on the network side;
步骤905:应用接收端按照网络信息调整去抖动缓冲区。一种具体的调整方式如下;Step 905: The application receiving end adjusts the de-jitter buffer according to the network information. A specific adjustment method is as follows;
a)设置延迟定时器的最大值MaxT和最小值MinT;a) Set the maximum value MaxT and minimum value MinT of the delay timer;
b)设置延迟定时器的增加步长StepUp(如x ms)和缩短步长StepDown(如y ms);b) Set the delay timer's increasing step size StepUp (such as x ms) and shortening step size StepDown (such as y ms);
c)需要拉长延迟定时器时,按照StepUp步长增加,最大值不超过MaxT;c) When the delay timer needs to be lengthened, increase it according to the StepUp step size, and the maximum value does not exceed MaxT;
d)需要缩短延迟定时器时,按照StepDown步长缩短,最小值不低于MinT;d) When the delay timer needs to be shortened, shorten it according to the StepDown step size, and the minimum value is not lower than MinT;
e)周期定时器也可以按网络信息进行调整。e) The period timer can also be adjusted according to network information.
本实施例通过应用接收端&通信网络接收端协同调整去抖动缓冲区,缓冲区定时器的设置更符合应用体验和网络状态,可获得更好的应用体验和网络资源节约。In this embodiment, the application receiving end & the communication network receiving end collaboratively adjust the de-jitter buffer. The setting of the buffer timer is more in line with the application experience and network status, thereby achieving a better application experience and saving network resources.
周期时延敏感报文传输过程通常是双向的,例如工业控制报文交互过程中,控制主站给从站周期下发控制指令,而从站需要给主站周期反馈状态信息;在这类双向周期性时延敏感报文传输场景,为保障时延抖动和时延的效果,需要在通信两端(或其他环节)均设置去抖动缓冲区。由于通信两端的传输的信息具有相关性,因此需要协同好通信两端的缓冲区,提升信息交互的确定性和实时性。The transmission process of periodic delay-sensitive messages is usually bidirectional. For example, during the interaction of industrial control messages, the control master station periodically issues control instructions to the slave station, and the slave station needs to periodically feedback status information to the master station; in this type of two-way In the scenario of periodic delay-sensitive message transmission, in order to ensure the effect of delay jitter and delay, it is necessary to set up de-jitter buffers at both ends of the communication (or other links). Since the information transmitted at both ends of the communication is relevant, the buffers at both ends of the communication need to be coordinated to improve the certainty and real-time nature of information interaction.
以设备A和设备B双向通信为例,两个设备均设有发送端缓冲区和接收端缓冲区;发送端缓冲区用于周期报文发送;接收端缓冲区为控制报文向上层应用递交场景的抖动,并兼顾实时性。请参阅图10所示的缓冲区调整流程示意图。Taking the two-way communication between device A and device B as an example, both devices have a sender buffer and a receiver buffer; the sender buffer is used for periodic message sending; the receiver buffer is used to submit control messages to the upper application. Scene jitter, taking into account real-time performance. Please refer to the buffer adjustment process diagram shown in Figure 10.
步骤1001:判断通信双方是否存在中心控制节点(主控节点),否则执行步骤1002,是则执行步骤1004。Step 1001: Determine whether there is a central control node (master control node) between the communicating parties, otherwise execute step 1002, and if so, execute step 1004.
步骤1002:通信双方信息交互、协同好缓冲区信息,具体的缓冲区信息协同方式如下:Step 1002: The communication parties exchange information and coordinate the buffer information. The specific buffer information collaboration method is as follows:
设备A、B之间可以通过随路或者单独报文发送等方式,将本端的缓冲区信息(如定时 器长度、接收情况等)通知对端。Devices A and B can send their own buffer information (such as timing length, reception status, etc.) to notify the peer.
步骤1003:通信双方根据缓冲区信息调整本地的延迟定时器的长度,具体的,设备A、B可以根据对端的缓冲区信息,双方协商统一/差异的缓冲区定时器长度。Step 1003: Both communicating parties adjust the length of the local delay timer based on the buffer information. Specifically, devices A and B can negotiate unified/differential buffer timer lengths based on the buffer information of the opposite end.
在一个示例中,通信双方还可以根据调整后的延迟定时器的长度与预设延时范围的关系调节报文的发送周期。具体的调整方式如下:In one example, the communicating parties can also adjust the message sending cycle based on the relationship between the adjusted delay timer length and the preset delay range. The specific adjustment methods are as follows:
设备A、B之间可以根据对端交互的接收端缓冲区报文接收情况,调整报文发送参数(包括但不限于报文发送周期),其中,当调整后的延迟定时器的长度小于预设延迟范围时,减少发送周期,当调整后的延迟定时器的长度大于预设延迟范围时,增加发送周期;Devices A and B can adjust the message sending parameters (including but not limited to the message sending cycle) based on the receiving buffer message reception status of the peer-end interaction. Among them, when the length of the adjusted delay timer is less than the preset When setting the delay range, reduce the sending cycle. When the length of the adjusted delay timer is greater than the preset delay range, increase the sending cycle;
a)在对端的接收端缓冲区已到达最大值,并且还需要向上调整的场景,可考虑本端增加报文的发送周期;a) In the scenario where the receiving end buffer of the opposite end has reached the maximum value and needs to be adjusted upward, the local end may consider increasing the message sending cycle;
b)在对端的接收端缓冲区已到达最小值,并且还需要向下调整的场景,可考虑本端缩短报文的发送周期。b) In the scenario where the receiving end buffer of the opposite end has reached the minimum value and needs to be adjusted downward, the local end may consider shortening the message sending cycle.
步骤1004:中心控制节点收集子节点缓冲区信息。Step 1004: The central control node collects child node buffer information.
通信双方都向中心控制节点发送缓冲区信息,该缓冲区信息包括延迟定时器的长度,中心控制节点根据该缓冲区信息确定的延迟定时器的调整规格,以及根据延迟定时器的长度与预设延时范围的关系确定发送周期的调整规格,然后根据调整规格生成指令。Both communicating parties send buffer information to the central control node. The buffer information includes the length of the delay timer, the adjustment specifications of the delay timer determined by the central control node based on the buffer information, and the length and preset value of the delay timer. The relationship between the delay range determines the adjustment specifications of the transmission cycle, and then generates instructions based on the adjustment specifications.
步骤1005:中心控制节点通过指令调整子节点的发送参数配置,例如通信双方根据中心控制节点的指令调整延迟定时器的长度;具体的调整方式如下:Step 1005: The central control node adjusts the sending parameter configuration of the sub-node through instructions. For example, the communicating parties adjust the length of the delay timer according to the instructions of the central control node; the specific adjustment method is as follows:
中心控制节点(主控节点)根据下属子节点反馈的缓冲区信息,向通信双方发送上述指令,以使得通信双方可以调整各自的延迟定时器长度和报文的发送周期,还可以调整各个子节点的报文发送时间偏置、调整子节点间报文发送的逻辑关系、网络组态等内容,此处不作限定。The central control node (master control node) sends the above instructions to the communicating parties based on the buffer information fed back by the subordinate sub-nodes, so that the communicating parties can adjust their respective delay timer lengths and message sending cycles, and can also adjust each sub-node The message sending time offset, adjusting the logical relationship of message sending between child nodes, network configuration, etc. are not limited here.
本申请实施例通过通信双方缓冲区协同,提升了时延敏感报文递交的确定性和实时性。The embodiment of the present application improves the certainty and real-time performance of delay-sensitive message delivery through buffer collaboration between communicating parties.
通信网络中不可避免存在短时间报文并发、多业务争抢调度资源导致调度报文传输产生时延和抖动。网络自身的QoS调整更多偏向于多用户级别、用户级别或者业务流级别的调整,做逐包级别的调整代价巨大;部分场景为保障周期报文传输的实时性,网络侧采用非确认的通信机制(比如用户数据报协议(user datagram protocol,UDP)/IP、3GPP的不确认模式(unconfirmed mode,UM)等),进一步增加了逐包级别的QoS调整的困难程度。In the communication network, short-term message concurrency and multiple services competing for scheduling resources are inevitable, resulting in delay and jitter in the transmission of scheduling messages. The QoS adjustment of the network itself is more inclined to the multi-user level, user level or business flow level adjustment, and the cost of adjustment at the packet-by-package level is huge; in some scenarios, in order to ensure the real-time performance of periodic message transmission, the network side adopts non-confirmed communication. Mechanisms (such as user datagram protocol (UDP)/IP, 3GPP's unconfirmed mode (UM), etc.) further increase the difficulty of QoS adjustment at the packet-by-packet level.
请参阅图11,如图11所示为本申请实施例提供的一种QoS调整的流程示意图。Please refer to Figure 11, which is a schematic flowchart of a QoS adjustment provided by an embodiment of the present application.
步骤1101:判断去抖动缓冲区的部署位置;若部署在通信网络接收端,则执行步骤1102;若部署在应用接收端,则执行步骤1103;Step 1101: Determine the deployment location of the de-jitter buffer; if deployed at the communication network receiving end, execute step 1102; if deployed at the application receiving end, execute step 1103;
步骤1102:通信网络接收端统计报文到达情况,将信息反馈给通信网络发送端;具体的实现方案如下:Step 1102: The communication network receiving end counts the arrival of messages and feeds the information back to the communication network sending end; the specific implementation plan is as follows:
a)接收端缓冲区统计逐包级别的报文到达情况(每个周期内是否有报文到达、是否在延迟定时器超时后到达);a) The receiving end buffer counts the arrival of messages at the packet-by-packet level (whether a message arrives in each cycle and whether it arrives after the delay timer times out);
b)通信网络接收端采集该信息,并通过报文随路或者单独发送报文的方式,将该信息 反馈给通信网络发送端。b) The communication network receiving end collects the information and sends the information along with the message or by sending the message separately. Feedback to the sending end of the communication network.
步骤1103:应用接收端统计报文到达情况,将信息反馈给通信网络接收端;具体的实现方案如下:Step 1103: The application receiving end collects statistics on the arrival of messages and feeds the information back to the communication network receiving end; the specific implementation plan is as follows:
a)接收端缓冲区统计逐包级别的报文到达情况(每个周期内是否有报文到达、是否在TBf定时器超时后到达);a) The receiving end buffer counts the packet arrival status at the packet-by-packet level (whether a packet arrives in each cycle and whether it arrives after the TBf timer times out);
b)应用设备接收端采集该信息,并通过报文随路、单独发送报文或者缓冲区共享的方式,将该信息反馈给通信网络接收端;b) The receiving end of the application device collects the information and feeds the information back to the receiving end of the communication network by sending the message along with the message, sending the message separately, or sharing the buffer;
c)通信网络接收端采集该信息,并通过报文随路或者单独发送报文的方式,将该信息反馈给网络发送端。c) The communication network receiving end collects the information and feeds the information back to the network sending end by sending the message along with the message or sending the message separately.
步骤1104:通信网络接收端按照反馈信息调整该用户及其所在业务流的QoS,保障报文传输的确定性,保障业务体验;通信网络可以保障的QoS包括但不限于如下内容:Step 1104: The communication network receiving end adjusts the QoS of the user and the service flow according to the feedback information to ensure the certainty of message transmission and ensure the business experience; the QoS that the communication network can guarantee includes but is not limited to the following:
a)用户的网络切片标识、网络切片的属性/配置(优先级、带宽、时延保障等内容);a) The user's network slice identification, network slice attributes/configuration (priority, bandwidth, delay guarantee, etc.);
b)用户周期报文所在业务流的QoS等级、调度优先级、抢占属性等;b) QoS level, scheduling priority, preemption attributes, etc. of the service flow in which the user periodic messages are located;
c)用户周期报文所在业务流的传输冗余程度(比如传输误码率门限控制、调制编码方式、采用重复发送机制等)。c) The degree of transmission redundancy of the service flow where the user periodic messages are located (such as transmission bit error rate threshold control, modulation and coding method, use of repeated transmission mechanism, etc.).
本申请实施例自适应缓冲区有效统计逐包级别的报文的接收情况,进一步反馈给通信网络,可及时进行网络传输报文的QoS调整。The adaptive buffer in the embodiment of the present application effectively counts the reception of packets at a packet-by-packet level, and further feeds back to the communication network, so that QoS adjustments for network transmission packets can be made in a timely manner.
在E2E已经部署时间敏感网络(time-sensitive networking,TSN)的802.1Qbv、802.1Qch协议的场景下,周期性数据流被放入周期性队列周期发送,保证时延抖动最小化;但并未综合考虑接收到报文的时间;这就导致传输时延较大的报文被放入缓冲区、延迟到下一个发送窗口发送的情况。对于TSN场景,为了减少对传输时延大的数据包的影响,可以进行如下调整。In the scenario where E2E has deployed the 802.1Qbv and 802.1Qch protocols of time-sensitive networking (TSN), periodic data flows are put into periodic queues and sent periodically to ensure that the delay jitter is minimized; however, it is not comprehensive Consider the time when a message is received; this results in messages with a large transmission delay being put into the buffer and delayed until the next sending window. For TSN scenarios, in order to reduce the impact on data packets with large transmission delays, the following adjustments can be made.
请参阅图12,如图12所示为本申请实施例提供的另一种报文传输方法的流程示意图,该方法包括:Please refer to Figure 12, which is a schematic flowchart of another message transmission method provided by an embodiment of the present application. The method includes:
步骤1201:通信网络接收端增加高优先级抢占队列,该高优先级抢占队列的优先级高于TSN的周期发送队列。Step 1201: The communication network receiving end adds a high-priority preemption queue. The priority of the high-priority preemption queue is higher than the periodic transmission queue of the TSN.
本实施例中,该高优先级抢占队列可以优先于TSN的周期发送队列进行报文转发。其中,步骤1201可以仅一次设置,后续不参与方案的重复实施。In this embodiment, the high-priority preemption queue can forward messages prior to the periodic transmission queue of the TSN. Among them, step 1201 can be set only once and will not participate in repeated implementation of the plan.
步骤1202:通信网络接收端进行业务报文的传输时延计算。计算方式包括但不限于如下方式:Step 1202: The communication network receiving end calculates the transmission delay of the service message. Calculation methods include but are not limited to the following methods:
a)若发送端和接收端已经实现TSN的时间同步,接收端获取报文中携带的时间戳TimeStamp1和本地时间Time2,两者相减获取报文的已传输时间:即TransmissionTime=Time2-TimeStamp1;a) If the sender and receiver have achieved TSN time synchronization, the receiver obtains the timestamp TimeStamp1 and local time Time2 carried in the message, and subtracts the two to obtain the transmission time of the message: TransmissionTime=Time2-TimeStamp1;
b)若发送端和接收端没有部署TSN的时间同步,则接收端可按照第一个/第N个接收到的周期报文的接收时间作为起点TimeStart,并记录对应的报文序号SN_Start;再按照本地时间Time2、报文的发送周期CycleTime和当前序号SN判断报文的已传输时间: TransmissionTime=Time2-TimeStart-(CycleTime*(SN-SN_Start));序号SN和SN_Start可以由接收端统计、也可以通过报文自身的序列号信息计算获取。b) If the sender and receiver do not deploy TSN time synchronization, the receiver can use the reception time of the first/Nth received periodic message as the starting point TimeStart, and record the corresponding message sequence number SN_Start; then Determine the transmission time of the message based on the local time Time2, the message sending cycle CycleTime and the current sequence number SN: TransmissionTime=Time2-TimeStart-(CycleTime*(SN-SN_Start)); the sequence numbers SN and SN_Start can be counted by the receiving end or calculated and obtained through the sequence number information of the message itself.
步骤1203:通信网络接收端设置报文传输时延门限值Thd;该门限值的设置方式包括但不限于如下方式:Step 1203: The communication network receiving end sets the message transmission delay threshold value Thd; the setting method of the threshold value includes but is not limited to the following methods:
a)按照应用的发包周期CycleTime,乘以系数α获得;即:Thd=CycleTime*α,其中,该α用于均衡报文的抖动,当抖动上升时,α下降,当抖动下降时,α上升;a) Obtained by multiplying the coefficient α according to the application's packet sending cycle CycleTime; that is: Thd=CycleTime*α, where α is used to balance the jitter of the message. When the jitter increases, α decreases. When the jitter decreases, α increases. ;
b)在上述Thd的基础上,可预留缓冲区队列处理时延、接收端处理时延;b) On the basis of the above Thd, buffer queue processing delay and receiving end processing delay can be reserved;
c)可以与应用协商确定应用可以容忍的报文传输的时延门限值Thd,并通过预先协商、应用主动通知等方式设置,其中,时延门限值为根据所述业务报文的发送周期确定的。c) Negotiate with the application to determine the delay threshold value Thd for packet transmission that the application can tolerate, and set it through pre-negotiation, active application notification, etc., where the delay threshold value is based on the transmission of the service message. The cycle is determined.
步骤1204:通信网络接收端判断报文的传输时延是否超过门限值Thd,若是,执行步骤1205;若否,执行步骤1206。Step 1204: The communication network receiving end determines whether the transmission delay of the message exceeds the threshold value Thd. If yes, execute step 1205; if not, execute step 1206.
步骤1205:报文的传输时延超过门限值Thd,通信网络接收端将报文放入高优先级抢占队列,立即递交;保障该报文的时效性。Step 1205: The transmission delay of the message exceeds the threshold value Thd. The communication network receiving end puts the message into the high-priority preemption queue and submits it immediately; ensuring the timeliness of the message.
本实施例中,高优先级抢占队列可以及时提交报文,无需等待周期队列的缓冲。In this embodiment, the high-priority preemption queue can submit messages in time without waiting for buffering in the periodic queue.
步骤1206:通信网络接收端将报文放入TSN的周期发送队列,按TSN设定的传输周期递交。Step 1206: The communication network receiving end puts the message into the periodic transmission queue of TSN and submits it according to the transmission period set by TSN.
本申请实施例通过通信网络接收端增加高优先级抢占队列,优于TSN队列发送,增加报文的时延计算方式、设置报文传输时延的门限值,并判断报文的等待时延,超过门限值时递交、避免缓冲等待,提升报文时效性。The embodiment of this application adds a high-priority preemption queue at the communication network receiving end, which is superior to TSN queue transmission, increases the packet delay calculation method, sets the threshold value of the packet transmission delay, and determines the waiting delay of the packet. , submit when the threshold value is exceeded, avoiding buffering and waiting, and improving message timeliness.
上面讲述了报文传输方法,下面对执行该方法的装置进行描述。The message transmission method is described above, and the device for executing the method is described below.
请参阅图13,如图13所示为本申请实施例提供的一种报文传输装置的结构示意图,该装置130包括:Please refer to Figure 13, which is a schematic structural diagram of a message transmission device provided by an embodiment of the present application. The device 130 includes:
获取单元1301,用于获取通信业务中第一报文的发送周期需求和发送延迟需求,第一报文为时延敏感报文;The acquisition unit 1301 is used to obtain the transmission cycle requirement and transmission delay requirement of the first message in the communication service, where the first message is a delay-sensitive message;
确定单元1302,用于根据发送周期需求确定周期定时器,并根据发送延迟需求确定延迟定时器;Determining unit 1302, configured to determine the period timer according to the transmission cycle requirement, and determine the delay timer according to the transmission delay requirement;
转发单元1303,用于当第一报文在周期定时器以外接收到时,向下一节点转发第一报文,当第一报文在周期定时器内接收到,但在延迟定时器以外接收到时,向下一节点转发第一报文,延迟定时器小于周期定时器。Forwarding unit 1303, configured to forward the first message to the next node when the first message is received outside the periodic timer; when the first message is received within the periodic timer but outside the delay timer, When the time comes, the first message is forwarded to the next node, and the delay timer is smaller than the period timer.
可选的,装置130还包括调整单元1304,调整单元1304具体用于:Optionally, the device 130 also includes an adjustment unit 1304, which is specifically used to:
统计延迟定时器内接收到的报文的第一数量,和周期定时器内接收到的报文的第二数量;Count the first number of packets received within the delay timer, and the second number of packets received within the periodic timer;
根据第一数量与第一预设数量范围的关系调整延迟定时器的长度,根据第二数量与第二预设数量范围的关系调整周期定时器的长度。The length of the delay timer is adjusted according to the relationship between the first quantity and the first preset quantity range, and the length of the periodic timer is adjusted according to the relationship between the second quantity and the second preset quantity range.
可选的,调整单元1304还用于:Optionally, the adjustment unit 1304 is also used to:
根据延迟定时器与预设延时范围的关系调节报文的发送周期。 Adjust the message sending cycle according to the relationship between the delay timer and the preset delay range.
可选的,第一数量和第一预设数量范围的差值,与延迟定时器的长度成正反馈关系;Optionally, the difference between the first quantity and the first preset quantity range has a positive feedback relationship with the length of the delay timer;
第二数量和第二预设数量范围的差值,与周期定时器的长度成正反馈关系。The difference between the second quantity and the second preset quantity range has a positive feedback relationship with the length of the periodic timer.
可选的,装置130还包括调整单元1304,调整单元1304具体用于:Optionally, the device 130 also includes an adjustment unit 1304, which is specifically used to:
接收来自网络设备的指示信息,指示信息指示传输质量;Receive indication information from network equipment, the indication information indicates transmission quality;
根据指示信息调整延迟定时器和周期定时器的长度。Adjust the length of the delay timer and period timer according to the instruction information.
可选的,装置130还包括调整单元1304,调整单元1304具体用于:Optionally, the device 130 also includes an adjustment unit 1304, which is specifically used to:
接收来自网络设备的缓冲区信息,缓冲区信息包括延迟定时器的长度;Receive buffer information from the network device. The buffer information includes the length of the delay timer;
根据缓冲区信息调整本地的延迟定时器的长度。Adjust the length of the local delay timer based on buffer information.
可选的,调整单元1304还用于:Optionally, the adjustment unit 1304 is also used to:
根据调整后的延迟定时器的长度与预设延时范围的关系调节报文的发送周期。The message sending cycle is adjusted according to the relationship between the adjusted delay timer length and the preset delay range.
可选的,调整单元1304还用于:Optionally, the adjustment unit 1304 is also used to:
当调整后的延迟定时器的长度小于预设延迟范围时,减少发送周期;When the length of the adjusted delay timer is less than the preset delay range, reduce the sending cycle;
当调整后的延迟定时器的长度大于预设延迟范围时,增加发送周期。When the length of the adjusted delay timer is greater than the preset delay range, the sending cycle is increased.
可选的,装置130还包括调整单元1304,调整单元1304具体用于:Optionally, the device 130 also includes an adjustment unit 1304, which is specifically used to:
向中心控制节点发送缓冲区信息,缓冲区信息包括延迟定时器的长度;Send buffer information to the central control node. The buffer information includes the length of the delay timer;
根据来自中心控制节点的指令调整延迟定时器的长度,指令为中心控制节点根据缓冲区信息确定的延迟定时器的调整规格。The length of the delay timer is adjusted according to the instruction from the central control node, and the instruction is the adjustment specification of the delay timer determined by the central control node based on the buffer information.
可选的,指令还包括由中心控制节点根据经过调整后的延迟定时器的长度与预设延时范围的关系,确定的发送周期的调整规格,调整单元1304还用于:Optionally, the instruction also includes the adjustment specifications of the transmission cycle determined by the central control node based on the relationship between the adjusted delay timer length and the preset delay range. The adjustment unit 1304 is also used to:
根据发送周期的调整规格调整报文的发送周期。Adjust the message sending cycle according to the sending cycle adjustment specifications.
可选的,装置130还包括调整单元1304,调整单元1304具体用于:Optionally, the device 130 also includes an adjustment unit 1304, which is specifically used to:
获取延迟定时器和周期定时器内报文的到达情况;Obtain the arrival status of packets in the delay timer and period timer;
根据到达情况调整报文传输的服务质量。Adjust the service quality of message transmission according to the arrival situation.
装置130的获取单元1301用于执行图3方法实施例中的步骤301和图6方法实施例中的步骤601,装置130的确定单元1302用于执行图3方法实施例中的步骤302和图6方法实施例中的步骤602,装置130的转发单元1303用于执行图3方法实施例中的步骤303至步骤304和图6方法实施例中的步骤602至步骤604,此处不再赘述。The obtaining unit 1301 of the device 130 is used to perform step 301 in the method embodiment of Figure 3 and step 601 in the method embodiment of Figure 6, and the determining unit 1302 of the device 130 is used to perform step 302 in the method embodiment of Figure 3 and Figure 6 In step 602 in the method embodiment, the forwarding unit 1303 of the device 130 is used to perform steps 303 to 304 in the method embodiment of Figure 3 and steps 602 to 604 in the method embodiment of Figure 6, which will not be described again here.
请参阅图14,如图14所示为本申请实施例提供的另一种报文传输装置的结构示意图,该装置140包括:Please refer to Figure 14, which is a schematic structural diagram of another message transmission device provided by an embodiment of the present application. The device 140 includes:
获取单元1401,获取业务报文的传输时延;The obtaining unit 1401 obtains the transmission delay of the service message;
转发单元1402,用于当传输时延超过时延门限值时,将业务报文通过第一队列转发;当传输时延未超过时延门限值时,将业务报文通过第二队列周期性转发。The forwarding unit 1402 is configured to forward the service packet through the first queue when the transmission delay exceeds the delay threshold; and forward the service packet through the second queue period when the transmission delay does not exceed the delay threshold. Sexual forwarding.
可选的,时延门限值为根据业务报文的发送周期确定的。Optionally, the delay threshold is determined based on the sending cycle of the service message.
装置140的获取单元1401用于执行图12方法实施例中的步骤1202和图6方法实施例中的步骤602,装置140的转发单元1402用于执行图12方法实施例中的步骤1203至步骤1206,此处不再赘述。 The acquisition unit 1401 of the device 140 is used to perform step 1202 in the method embodiment of Figure 12 and step 602 in the method embodiment of Figure 6, and the forwarding unit 1402 of the device 140 is used to perform steps 1203 to 1206 in the method embodiment of Figure 12 , which will not be described again here.
图15所示,为本申请的实施例提供的计算机设备150的一种可能的逻辑结构示意图。计算机设备150包括:处理器1501、通信接口1502、存储系统1503以及总线1504。处理器1501、通信接口1502以及存储系统1503通过总线1504相互连接。在本申请的实施例中,处理器1501用于对计算机设备150的动作进行控制管理,例如,处理器1501用于执行图3、图6、图9、图10、图11和图12方法实施例中的通信网络接收端或应用接收端所执行的步骤。通信接口1502用于支持计算机设备150进行通信。存储系统1503,用于存储计算机设备150的程序代码和数据。Figure 15 shows a possible logical structure diagram of a computer device 150 provided for an embodiment of the present application. Computer device 150 includes: processor 1501, communication interface 1502, storage system 1503, and bus 1504. The processor 1501, the communication interface 1502, and the storage system 1503 are connected to each other through a bus 1504. In the embodiment of the present application, the processor 1501 is used to control and manage the actions of the computer device 150. For example, the processor 1501 is used to implement the methods in Figure 3, Figure 6, Figure 9, Figure 10, Figure 11 and Figure 12 The steps performed by the communication network receiving end or the application receiving end in the example. The communication interface 1502 is used to support the computer device 150 to communicate. Storage system 1503 is used to store program codes and data of the computer device 150 .
其中,处理器1501可以是中央处理器单元,通用处理器,数字信号处理器,专用集成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器1501也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。总线1504可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图15中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The processor 1501 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with this disclosure. The processor 1501 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and so on. The bus 1504 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 15, but it does not mean that there is only one bus or one type of bus.
装置130中的转发单元1303相当于计算机设备150中的通信接口1502,装置130中的获取单元1301、确定单元1302和调整单元1304相当于计算机设备150中的处理器1501。The forwarding unit 1303 in the device 130 is equivalent to the communication interface 1502 in the computer device 150 , and the obtaining unit 1301 , the determining unit 1302 and the adjusting unit 1304 in the device 130 are equivalent to the processor 1501 in the computer device 150 .
装置140中的转发单元1402相当于计算机设备150中的通信接口1502,装置140中的获取单元1401相当于计算机设备150中的处理器1501。The forwarding unit 1402 in the device 140 is equivalent to the communication interface 1502 in the computer device 150, and the acquisition unit 1401 in the device 140 is equivalent to the processor 1501 in the computer device 150.
本实施例的计算机设备150可对应于上述图3、图6、图9、图10、图11和图12方法实施例中的通信网络接收端或应用接收端,该计算机设备150中的通信接口1502可以实现上述图3、图6、图9、图10、图11和图12方法实施例中的通信网络接收端或应用接收端所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。The computer device 150 of this embodiment may correspond to the communication network receiving end or the application receiving end in the method embodiments of FIG. 3, FIG. 6, FIG. 9, FIG. 10, FIG. 11 and FIG. 12. The communication interface in the computer device 150 1502 can implement the functions and/or various steps performed by the communication network receiving end or the application receiving end in the method embodiments of Figures 3, 6, 9, 10, 11 and 12. For the sake of simplicity, , which will not be described in detail here.
应理解以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。It should be understood that the division of units in the above device is only a division of logical functions. In actual implementation, all or part of the units may be integrated into a physical entity or physically separated. And the units in the device can all be implemented in the form of software calling through processing components; they can also all be implemented in the form of hardware; some units can also be implemented in the form of software calling through processing components, and some units can be implemented in the form of hardware. For example, each unit can be a separate processing element, or it can be integrated and implemented in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, and a certain processing element of the device can call and execute the unit. Function. In addition, all or part of these units can be integrated together or implemented independently. The processing element described here can also be a processor, which can be an integrated circuit with signal processing capabilities. During the implementation process, each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software calling through the processing element.
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多 个现场可编程门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。In one example, the unit in any of the above devices may be one or more integrated circuits configured to implement the above method, such as: one or more application specific integrated circuits (ASICs), or one or Multiple microprocessors (digital signal processors, DSPs), or one or more A field programmable gate array (FPGA), or a combination of at least two of these integrated circuit forms. For another example, when the unit in the device can be implemented in the form of a processing element scheduler, the processing element can be a general processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
在本申请的另一个实施例中,还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当设备的处理器执行该计算机执行指令时,设备执行上述方法实施例中通信网络接收端或应用接收端所执行的方法。In another embodiment of the present application, a computer-readable storage medium is also provided. Computer-executable instructions are stored in the computer-readable storage medium. When the processor of the device executes the computer-executed instructions, the device executes the above method embodiment. A method executed by the communication network receiving end or the application receiving end.
在本申请的另一个实施例中,还提供一种计算机程序产品,该计算机程序产品包括计算机执行指令,该计算机执行指令存储在计算机可读存储介质中。当设备的处理器执行该计算机执行指令时,设备执行上述方法实施例中通信网络接收端或应用接收端所执行的方法。In another embodiment of the present application, a computer program product is also provided. The computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium. When the processor of the device executes the computer execution instruction, the device executes the method executed by the communication network receiving end or the application receiving end in the above method embodiment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can 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 can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-only memory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。 If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk and other media that can store program code. .

Claims (30)

  1. 一种报文传输方法,其特征在于,包括:A message transmission method, characterized by including:
    获取通信业务中第一报文的发送周期需求和发送延迟需求,所述第一报文为时延敏感报文;Obtain the sending cycle requirement and sending delay requirement of the first message in the communication service, where the first message is a delay-sensitive message;
    根据所述发送周期需求确定周期定时器,并根据所述发送延迟需求确定延迟定时器;Determine a period timer according to the sending cycle requirement, and determine a delay timer according to the sending delay requirement;
    当所述第一报文在所述周期定时器以外接收到时,向下一节点转发所述第一报文;When the first message is received outside the periodic timer, forward the first message to the next node;
    当所述第一报文在所述周期定时器内接收到,但在所述延迟定时器以外接收到时,向所述下一节点转发所述第一报文,所述延迟定时器小于所述周期定时器。When the first message is received within the periodic timer but outside the delay timer, the first message is forwarded to the next node, and the delay timer is smaller than the delay timer. Describe the periodic timer.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    统计所述延迟定时器内接收到的报文的第一数量,和所述周期定时器内接收到的报文的第二数量;Count the first number of messages received within the delay timer and the second number of messages received within the periodic timer;
    根据所述第一数量与第一预设数量范围的关系调整所述延迟定时器的长度,根据所述第二数量与第二预设数量范围的关系调整所述周期定时器的长度。The length of the delay timer is adjusted according to the relationship between the first quantity and the first preset quantity range, and the length of the periodic timer is adjusted according to the relationship between the second quantity and the second preset quantity range.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述第一数量与第一预设数量范围的关系调整所述延迟定时器的长度之后,所述方法还包括:The method according to claim 2, wherein after adjusting the length of the delay timer according to the relationship between the first quantity and the first preset quantity range, the method further includes:
    根据所述延迟定时器与预设延时范围的关系调节报文的发送周期。The message sending cycle is adjusted according to the relationship between the delay timer and the preset delay range.
  4. 根据权利要求2或3所述的方法,其特征在于,所述第一数量和所述第一预设数量范围的差值,与所述延迟定时器的长度成正反馈关系;The method according to claim 2 or 3, characterized in that the difference between the first quantity and the first preset quantity range has a positive feedback relationship with the length of the delay timer;
    所述第二数量和所述第二预设数量范围的差值,与所述周期定时器的长度成正反馈关系。The difference between the second number and the second preset number range has a positive feedback relationship with the length of the periodic timer.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    接收来自网络设备的指示信息,所述指示信息指示传输质量;Receive indication information from the network device, the indication information indicating transmission quality;
    根据所述指示信息调整所述延迟定时器和所述周期定时器的长度。Adjust the length of the delay timer and the period timer according to the indication information.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    接收来自网络设备的缓冲区信息,所述缓冲区信息包括所述网络设备的延迟定时器的长度;Receive buffer information from a network device, where the buffer information includes the length of a delay timer of the network device;
    根据所述缓冲区信息调整本地的所述延迟定时器的长度。Adjust the length of the local delay timer according to the buffer information.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述缓冲区信息调整本地的所述延迟定时器的长度之后,所述方法还包括:The method according to claim 6, characterized in that after adjusting the length of the local delay timer according to the buffer information, the method further includes:
    根据调整后的所述延迟定时器的长度与预设延时范围的关系调节报文的发送周期。The message sending cycle is adjusted according to the relationship between the adjusted length of the delay timer and the preset delay range.
  8. 根据权利要求7所述的方法,其特征在于,所述根据调整后的所述延迟定时器的长度与预设延时范围的关系调节报文的发送周期包括:The method according to claim 7, wherein adjusting the message sending cycle according to the relationship between the adjusted length of the delay timer and the preset delay range includes:
    当所述调整后的所述延迟定时器的长度小于所述预设延迟范围时,减少所述发送周期;When the adjusted length of the delay timer is less than the preset delay range, reduce the sending cycle;
    当所述调整后的所述延迟定时器的长度大于所述预设延迟范围时,增加所述发送周期。When the adjusted length of the delay timer is greater than the preset delay range, the sending period is increased.
  9. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    向中心控制节点发送缓冲区信息,所述缓冲区信息包括所述网络设备的延迟定时器的长度; Send buffer information to the central control node, where the buffer information includes the length of the delay timer of the network device;
    根据来自所述中心控制节点的指令调整所述延迟定时器的长度,所述指令为所述中心控制节点根据所述缓冲区信息确定的所述延迟定时器的调整规格。The length of the delay timer is adjusted according to an instruction from the central control node, where the instruction is an adjustment specification of the delay timer determined by the central control node based on the buffer information.
  10. 根据权利要求9所述的方法,其特征在于,所述指令还包括由所述中心控制节点根据经过调整后的所述延迟定时器的长度与预设延时范围的关系,确定的发送周期的调整规格,所述根据来自所述中心控制节点的指令调整所述延迟定时器的长度之后,所述方法还包括:The method of claim 9, wherein the instruction further includes a transmission period determined by the central control node based on the adjusted relationship between the length of the delay timer and the preset delay range. Adjusting specifications. After adjusting the length of the delay timer according to instructions from the central control node, the method further includes:
    根据所述发送周期的调整规格调整报文的发送周期。The sending cycle of the message is adjusted according to the adjustment specification of the sending cycle.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    获取所述延迟定时器和所述周期定时器内报文的到达情况;Obtain the arrival status of messages within the delay timer and the periodic timer;
    根据所述到达情况调整报文传输的服务质量。Adjust the service quality of message transmission according to the arrival situation.
  12. 一种报文传输方法,其特征在于,包括:A message transmission method, characterized by including:
    获取业务报文的传输时延;Obtain the transmission delay of business packets;
    当所述传输时延超过时延门限值时,将所述业务报文通过第一队列转发;When the transmission delay exceeds the delay threshold, forward the service message through the first queue;
    当所述传输时延未超过所述时延门限值时,将所述业务报文通过第二队列周期性转发。When the transmission delay does not exceed the delay threshold, the service packet is periodically forwarded through the second queue.
  13. 根据权利要求12所述的方法,其特征在于,所述时延门限值为根据所述业务报文的发送周期确定的。The method according to claim 12, characterized in that the delay threshold value is determined according to the sending cycle of the service message.
  14. 一种报文传输装置,其特征在于,包括:A message transmission device, characterized by including:
    获取单元,用于获取通信业务中第一报文的发送周期需求和发送延迟需求,所述第一报文为时延敏感报文;An acquisition unit, configured to acquire the transmission cycle requirement and transmission delay requirement of the first message in the communication service, where the first message is a delay-sensitive message;
    确定单元,用于根据所述发送周期需求确定周期定时器,并根据所述发送延迟需求确定延迟定时器;A determining unit configured to determine a period timer according to the sending cycle requirement and determine a delay timer according to the sending delay requirement;
    转发单元,用于当所述第一报文在所述周期定时器以外接收到时,转发所述第一报文,当所述第一报文在所述周期定时器内接收到,但在所述延迟定时器以外接收到时,转发所述第一报文,所述延迟定时器小于所述周期定时器。A forwarding unit configured to forward the first message when the first message is received outside the periodic timer; when the first message is received within the periodic timer but within When received outside the delay timer, the first message is forwarded, and the delay timer is smaller than the period timer.
  15. 根据权利要求14所述的装置,其特征在于,所述装置还包括调整单元,所述调整单元具体用于:The device according to claim 14, characterized in that the device further includes an adjustment unit, and the adjustment unit is specifically used for:
    统计所述延迟定时器内接收到的报文的第一数量,和所述周期定时器内接收到的报文的第二数量;Count the first number of messages received within the delay timer and the second number of messages received within the periodic timer;
    根据所述第一数量与第一预设数量范围的关系调整所述延迟定时器的长度,根据所述第二数量与第二预设数量范围的关系调整所述周期定时器的长度。The length of the delay timer is adjusted according to the relationship between the first quantity and the first preset quantity range, and the length of the periodic timer is adjusted according to the relationship between the second quantity and the second preset quantity range.
  16. 根据权利要求15所述的装置,其特征在于,所述调整单元还用于:The device according to claim 15, characterized in that the adjustment unit is also used for:
    根据所述延迟定时器与预设延时范围的关系调节报文的发送周期。The message sending cycle is adjusted according to the relationship between the delay timer and the preset delay range.
  17. 根据权利要求15或16所述的装置,其特征在于,所述第一数量和所述第一预设数量范围的差值,与所述延迟定时器的长度成正反馈关系;The device according to claim 15 or 16, characterized in that the difference between the first quantity and the first preset quantity range has a positive feedback relationship with the length of the delay timer;
    所述第二数量和所述第二预设数量范围的差值,与所述周期定时器的长度成正反馈关系。The difference between the second number and the second preset number range has a positive feedback relationship with the length of the periodic timer.
  18. 根据权利要求14所述的装置,其特征在于,所述装置还包括调整单元,所述调整 单元具体用于:The device according to claim 14, characterized in that the device further comprises an adjustment unit, the adjustment unit The unit is specifically used for:
    接收来自网络设备的指示信息,所述指示信息指示传输质量;Receive indication information from the network device, the indication information indicating transmission quality;
    根据所述指示信息调整所述延迟定时器和所述周期定时器的长度。Adjust the length of the delay timer and the period timer according to the indication information.
  19. 根据权利要求14所述的装置,其特征在于,所述装置还包括调整单元,所述调整单元具体用于:The device according to claim 14, characterized in that the device further includes an adjustment unit, and the adjustment unit is specifically used for:
    接收来自网络设备的缓冲区信息,所述缓冲区信息包括所述网络设备的延迟定时器的长度;Receive buffer information from a network device, where the buffer information includes the length of a delay timer of the network device;
    根据所述缓冲区信息调整本地的所述延迟定时器的长度。Adjust the length of the local delay timer according to the buffer information.
  20. 根据权利要求19所述的装置,其特征在于,所述调整单元还用于:The device according to claim 19, characterized in that the adjustment unit is also used for:
    根据调整后的所述延迟定时器的长度与预设延时范围的关系调节报文的发送周期。The message sending cycle is adjusted according to the relationship between the adjusted length of the delay timer and the preset delay range.
  21. 根据权利要求20所述的装置,其特征在于,所述调整单元还用于:The device according to claim 20, characterized in that the adjustment unit is also used for:
    当所述调整后的所述延迟定时器的长度小于所述预设延迟范围时,减少所述发送周期;When the adjusted length of the delay timer is less than the preset delay range, reduce the sending cycle;
    当所述调整后的所述延迟定时器的长度大于所述预设延迟范围时,增加所述发送周期。When the adjusted length of the delay timer is greater than the preset delay range, the sending period is increased.
  22. 根据权利要求14所述的装置,其特征在于,所述装置还包括调整单元,所述调整单元具体用于:The device according to claim 14, characterized in that the device further includes an adjustment unit, and the adjustment unit is specifically used for:
    向中心控制节点发送缓冲区信息,所述缓冲区信息包括所述网络设备的延迟定时器的长度;Send buffer information to the central control node, where the buffer information includes the length of the delay timer of the network device;
    根据来自所述中心控制节点的指令调整所述延迟定时器的长度,所述指令为所述中心控制节点根据所述缓冲区信息确定的所述延迟定时器的调整规格。The length of the delay timer is adjusted according to an instruction from the central control node, where the instruction is an adjustment specification of the delay timer determined by the central control node based on the buffer information.
  23. 根据权利要求22所述的装置,其特征在于,所述指令还包括由所述中心控制节点根据经过调整后的所述延迟定时器的长度与预设延时范围的关系,确定的发送周期的调整规格,所述调整单元还用于:The device according to claim 22, wherein the instruction further includes a transmission period determined by the central control node based on the adjusted relationship between the length of the delay timer and the preset delay range. Adjustment specifications, the adjustment unit is also used for:
    根据所述发送周期的调整规格调整报文的发送周期。The sending cycle of the message is adjusted according to the adjustment specification of the sending cycle.
  24. 根据权利要求14所述的装置,其特征在于,所述装置还包括调整单元,所述调整单元具体用于:The device according to claim 14, characterized in that the device further includes an adjustment unit, and the adjustment unit is specifically used for:
    获取所述延迟定时器和所述周期定时器内报文的到达情况;Obtain the arrival status of messages within the delay timer and the periodic timer;
    根据所述到达情况调整报文传输的服务质量。Adjust the service quality of message transmission according to the arrival situation.
  25. 一种报文传输装置,其特征在于,包括:A message transmission device, characterized by including:
    获取单元,获取业务报文的传输时延;The acquisition unit obtains the transmission delay of the service message;
    转发单元,用于当所述传输时延超过时延门限值时,将所述业务报文通过第一队列转发;当所述传输时延未超过所述时延门限值时,将所述业务报文通过第二队列周期性转发。A forwarding unit configured to forward the service message through the first queue when the transmission delay exceeds the delay threshold; and forward the service message through the first queue when the transmission delay does not exceed the delay threshold. The above service packets are forwarded periodically through the second queue.
  26. 根据权利要求25所述的装置,其特征在于,所述时延门限值为根据所述业务报文的发送周期确定的。The device according to claim 25, characterized in that the delay threshold value is determined according to the sending cycle of the service message.
  27. 一种计算机设备,其特征在于,包括:处理器,所述处理器与存储器耦合,A computer device, characterized by comprising: a processor coupled to a memory,
    所述处理器用于执行所述存储器中存储的指令,使得所述计算机设备执行如权利要求1至11中任一项所述的方法。The processor is configured to execute instructions stored in the memory, so that the computer device performs the method according to any one of claims 1 to 11.
  28. 一种计算机设备,其特征在于,包括:处理器,所述处理器与存储器耦合, A computer device, characterized by comprising: a processor coupled to a memory,
    所述处理器用于执行所述存储器中存储的指令,使得所述计算机设备执行如权利要求12至13中任一项所述的方法。The processor is configured to execute instructions stored in the memory, so that the computer device performs the method according to any one of claims 12 to 13.
  29. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令被处理器执行时,实现如权利要求1至13中任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are executed by a processor, the method according to any one of claims 1 to 13 is implemented.
  30. 一种计算机程序产品,其特征在于,所述计算机程序产品中包括计算机程序代码,其特征在于,当所述计算机程序代码在计算机上运行时,实现如权利要求1至13中任一项所述的方法。 A computer program product, characterized in that the computer program product includes computer program code, characterized in that when the computer program code is run on a computer, it implements any one of claims 1 to 13 Methods.
PCT/CN2023/087741 2022-04-29 2023-04-12 Message transmission method and device WO2023207585A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210468586.9 2022-04-29
CN202210468586.9A CN117014944A (en) 2022-04-29 2022-04-29 Message transmission method and device

Publications (1)

Publication Number Publication Date
WO2023207585A1 true WO2023207585A1 (en) 2023-11-02

Family

ID=88517299

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/087741 WO2023207585A1 (en) 2022-04-29 2023-04-12 Message transmission method and device

Country Status (2)

Country Link
CN (1) CN117014944A (en)
WO (1) WO2023207585A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170104843A1 (en) * 2015-10-08 2017-04-13 International Business Machines Corporation Temporal Network Service Request Combination to Improve Throughput
CN106998484A (en) * 2017-05-25 2017-08-01 游密科技(深圳)有限公司 One kind realizes service end data buffering type delay retransmission unit and method
CN110876159A (en) * 2018-08-30 2020-03-10 华为技术有限公司 Method and device for improving time delay certainty
CN113711572A (en) * 2021-07-15 2021-11-26 新华三技术有限公司 Message transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170104843A1 (en) * 2015-10-08 2017-04-13 International Business Machines Corporation Temporal Network Service Request Combination to Improve Throughput
CN106998484A (en) * 2017-05-25 2017-08-01 游密科技(深圳)有限公司 One kind realizes service end data buffering type delay retransmission unit and method
CN110876159A (en) * 2018-08-30 2020-03-10 华为技术有限公司 Method and device for improving time delay certainty
CN113711572A (en) * 2021-07-15 2021-11-26 新华三技术有限公司 Message transmission method and device

Also Published As

Publication number Publication date
CN117014944A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
US10681773B2 (en) Real-time relay of wireless communications
RU2722395C1 (en) Radio interface delay adjustment mechanism
WO2019196810A1 (en) Data transmission method, related device, and communications system
US9705806B2 (en) Counter based fairness scheduling for QoS queues to prevent starvation
CN110351201B (en) Data processing method and device
WO2022012212A1 (en) Resource scheduling method, communication apparatus and system
US11509597B2 (en) Data transmission method and device
WO2014019552A1 (en) Service control method, terminal, and method side device
WO2022068620A1 (en) Data transmission method and apparatus
WO2021004191A1 (en) Method and apparatus for supporting time sensitive network
WO2023207585A1 (en) Message transmission method and device
WO2020147768A1 (en) Data processing method and data processing apparatus
US20230042506A1 (en) Deterministic quality of service
WO2022056863A1 (en) Switching method and apparatus
WO2022027311A1 (en) Communication method and apparatus
WO2023125310A1 (en) Communication method and communication apparatus
WO2023207850A1 (en) Communication method and communication apparatus
WO2024027615A1 (en) Communication method, communication apparatus, and communication system
WO2024093725A1 (en) Data packet processing method and communication apparatus
WO2022178682A1 (en) Data transmission method and apparatus
WO2023193571A1 (en) Communication method and communication apparatus
WO2023179172A1 (en) Communication method and apparatus
WO2023005728A1 (en) Communication method, apparatus, and system
WO2023093696A1 (en) Communication method and apparatus
WO2023231905A1 (en) Communication method and apparatus

Legal Events

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

Ref document number: 23795018

Country of ref document: EP

Kind code of ref document: A1