WO2022048407A1 - Method and apparatus for mixed scheduling of messages, and electronic device and storage medium - Google Patents

Method and apparatus for mixed scheduling of messages, and electronic device and storage medium Download PDF

Info

Publication number
WO2022048407A1
WO2022048407A1 PCT/CN2021/111540 CN2021111540W WO2022048407A1 WO 2022048407 A1 WO2022048407 A1 WO 2022048407A1 CN 2021111540 W CN2021111540 W CN 2021111540W WO 2022048407 A1 WO2022048407 A1 WO 2022048407A1
Authority
WO
WIPO (PCT)
Prior art keywords
scheduling
queue
deterministic
packets
message
Prior art date
Application number
PCT/CN2021/111540
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 WO2022048407A1 publication Critical patent/WO2022048407A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues
    • H04L47/522Dynamic queue service slot or variable bandwidth allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6215Individual queue per QOS, rate or priority

Definitions

  • Embodiments of the present invention relate to the field of data transmission, and in particular, to a mixed scheduling method, device, electronic device, and storage medium for messages.
  • Deterministic Network proposes to guarantee the deterministic transmission delay for specific packets, to ensure the specific packet delay of the Industrial Internet, and to achieve the purpose of Industrial Internet control.
  • deterministic packets and ordinary packets are scheduled on the same data forwarding line to ensure mixed scheduling of deterministic delay packets and ordinary packets, which has become a key technology in deterministic network research.
  • Embodiments of the present invention provide a mixed scheduling method for messages, including the following steps: transmitting deterministic messages stored in a first scheduling queue to an egress queue, and transferring common messages stored in a second scheduling queue to an egress queue. After the preset conditions are met, it is transmitted to the egress queue; wherein, the preset conditions include: no deterministic messages are stored in the first scheduling queue; messages stored in the egress queue are sent.
  • Embodiments of the present invention also provide a mixed scheduling device for messages, including: a first transmission unit, configured to transmit the deterministic message stored in the first scheduling queue to the egress queue; a second transmission unit, used for The ordinary message stored in the second scheduling queue is transmitted to the egress queue after satisfying the preset condition; wherein, the preset condition includes: no deterministic message is stored in the first scheduling queue; the sending unit is used to send the message in the egress queue stored message.
  • Embodiments of the present invention also provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by at least one processor.
  • One processor executes, so that at least one processor can execute the above-mentioned mixed scheduling method of the message.
  • Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, including: when the computer program is executed by a processor, the foregoing hybrid scheduling method for packets is implemented.
  • FIG. 1 is a flowchart of a mixed scheduling method for packets according to a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of a mixed scheduling method for packets provided according to the first embodiment of the present invention
  • FIG. 3 is a flowchart of a post-scheduler execution in the method for hybrid scheduling of messages provided according to the first embodiment of the present invention
  • FIG. 4 is a flowchart of a mixed scheduling method for packets according to a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a mixed scheduling device for messages provided according to a third embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a mixed scheduling device for messages according to a third embodiment of the present invention in an example
  • FIG. 7 is a schematic diagram of an electronic device according to a fourth embodiment of the present invention.
  • the purpose of the embodiments of the present invention is to provide a mixed scheduling method for messages, so as to realize efficient mixed scheduling of deterministic messages and ordinary messages.
  • the embodiments of the present invention divide deterministic packets and ordinary packets into two scheduling queues for storage. Using the mixed egress queue mode, combined with the preset judgment conditions, the priority scheduling of deterministic packets is realized, and the common packets can share the scheduling resources of deterministic packets, and the mixed scheduling of deterministic packets and ordinary packets can be efficiently realized.
  • the first embodiment of the present invention relates to a method for mixed scheduling of packets.
  • the schematic diagram is shown in FIG. 2
  • the flow is shown in FIG. 1 , including:
  • Step 101 Transmit the deterministic message stored in the first scheduling queue to the egress queue, and transmit the ordinary message stored in the second scheduling queue to the egress queue after satisfying preset conditions; wherein the preset conditions include: Deterministic packets are not stored in the first scheduling queue.
  • Step 102 Send the packets stored in the egress queue.
  • independent scheduling queues are set for deterministic packets and ordinary packets, respectively, the deterministic packet scheduling queue lead time gate wheel, and the ordinary data packet scheduling queue Post scheduling controller. That is to say, deterministic packets are transmitted to the first scheduling queue set for deterministic packets through the time gate wheel, so as to control the delay of deterministic packets, so as to ensure the scheduling of different deterministic packets with different delays.
  • a scheduling controller is placed behind the second scheduling queue set for ordinary data packets, so as to constrain the egress scheduling of ordinary data packets. The constraint condition is the deterministic packet scheduling queue signal. When the packet outputs the scheduling queue signal, the scheduling of ordinary data packets must be stopped.
  • the embodiments of the present invention are mainly executed by electronic equipment.
  • the processor sends deterministic messages to the first scheduling queue through the time gate wheel, and sends ordinary messages to the second scheduling queue. If there is a deterministic message in the first scheduling queue message, the first scheduling queue sends a scheduling queue signal to the scheduling controller, the scheduling controller restricts the operation of sending ordinary messages in the second scheduling queue to the egress queue, and the first scheduling queue sends the stored deterministic messages to egress queue; if there is no deterministic message in the first scheduling queue, the scheduling controller sends the ordinary message in the second scheduling queue to the egress queue message.
  • the processor sends the packet in the egress queue, so that while ensuring the priority scheduling of deterministic packets, ordinary data packets can share the scheduling resources of deterministic packets and ensure the second priority of ordinary packets. schedule.
  • the deterministic packet is transmitted to the first scheduling queue through the time gate wheel, so as to achieve the purpose of ensuring the scheduling delay of the deterministic packet.
  • the opening period of the time gate wheel is controlled according to the delay requirement of the deterministic message; the deterministic message is transmitted to the first scheduling queue through the opened time gate wheel; wherein, the delay requirement of the deterministic message The higher it is, the shorter the allowable transmission delay time is, and the shorter the time gate wheel opening period is. That is, according to the deterministic packet delay configured by the user, the time gate wheel is opened at a specific time interval to achieve the purpose of scheduling the delay execution.
  • step 101 the post-scheduling controller is used to transmit the ordinary message stored in the second scheduling queue to the egress queue.
  • the specific execution flow chart is shown in Figure 3:
  • Step 1011 Acquire common packets in the second scheduling queue.
  • Step 1012 Detect whether there is a deterministic message in the current first scheduling queue; if yes, go to Step 1013; if not, go to Step 1014.
  • the scheduling queue signal generated by the first scheduling queue it is detected whether there is a deterministic packet in the current first scheduling queue; wherein the scheduling queue signal is used to indicate that there is a deterministic packet in the first scheduling queue. If there is a deterministic packet in the first scheduling queue, a scheduling queue signal will be generated; if there is no deterministic packet in the first scheduling queue, no scheduling queue signal will be generated. Therefore, whether there is a deterministic packet in the current first scheduling queue can be detected by whether the scheduling queue signal is detected.
  • Step 1013 Forbid the transmission of ordinary packets in the second scheduling queue to the egress queue.
  • Step 1014 Transmit the ordinary packets in the second scheduling queue to the egress queue.
  • deterministic packets and ordinary packets are divided into two scheduling queues for storage.
  • the priority scheduling of deterministic packets is realized, and the common packets can share the scheduling resources of deterministic packets, and the mixed scheduling of deterministic packets and ordinary packets can be efficiently realized.
  • the second embodiment of the present invention relates to a method for mixed scheduling of packets.
  • the specific process is shown in FIG. 4 , including:
  • Step 201 transmit the deterministic message stored in the first scheduling queue to the egress queue.
  • Step 202 transmitting the ordinary message stored in the second scheduling queue to the egress queue after satisfying the preset condition; wherein, the preset condition includes: no deterministic message is stored in the first scheduling queue.
  • step 201 and step 202 do not have a definite sequence relationship.
  • Step 201 and step 202 are essentially two independent steps executed in parallel.
  • FIG. 4 is only an example, and does not constitute an execution sequence. constraint.
  • Step 203 Send the message stored in the egress queue.
  • Step 203 in this embodiment is substantially the same as that in the first embodiment, and will not be described again. Steps 201 and 202 of this embodiment will be specifically described below.
  • step 201 according to a preset scheduling mechanism, the deterministic message stored in the first scheduling queue is transmitted to the egress queue.
  • the preset scheduling mode can be configured for deterministic network requirements and users, so that the transmission process is suitable for actual situations and user experience is improved.
  • the preset scheduling mechanism includes any one of the following scheduling mechanisms: a PQ scheduling mechanism, a WFQ scheduling mechanism, and a CBWFQ scheduling mechanism.
  • the PQ scheduling mechanism is used to transmit the deterministic packets in the first scheduling queue to the egress queue by using four sub-queues, and the priorities of the four sub-queues are high, medium, normal, and low, respectively.
  • the scheduling mechanism will first serve the high-priority deterministic packet queue. If there is no data in the high-priority deterministic packet queue, it will serve the medium-priority deterministic packet queue, and so on. If the PQ is serving the medium priority deterministic message queue, but data is entered in the high priority deterministic message queue, the PQ interrupts the service of the medium priority deterministic message queue in favor of serving the high priority deterministic message queue message queue.
  • the WFQ scheduling mechanism may also be used to transmit the deterministic packets in the first scheduling echelon to the egress queue. It can ensure fairness among deterministic packets of the same priority, and implement weighting between deterministic packets of different priorities. The number of queues can be pre-configured, and the weights are reflected on the basis of ensuring delay fairness. The weights depend on the IP precedence carried in the packet header.
  • WFQ classifies deterministic packets by flow, and each deterministic packet flow is assigned to a queue.
  • the HASH algorithm is used to automatically complete the enqueue process. When dequeuing, the bandwidth that each deterministic packet flow should occupy at the exit is allocated according to the priority. The lower the priority value, the less bandwidth you get.
  • the WFQ scheduling mechanism is used to schedule the deterministic packets stored in the first scheduling queue, and the HASH algorithm automatically classifies the deterministic packets without user operation; all deterministic packet flows have transmission bandwidth.
  • the CBWFQ scheduling mechanism may also be used to transmit the deterministic packets in the first scheduling echelon to the egress queue.
  • CBWFQ typically defines deterministic packet flow classes using access control list ACLs, which allow categorization of deterministic packets based on criteria such as access control lists, input interface names, protocols, and quality of service flags.
  • the CBWFQ scheduling mechanism is an extension of the WFQ scheduling mechanism, which supports user-defined classification of deterministic packet flows, and the number and type of queues are in one-to-one correspondence, guaranteeing bandwidth for each deterministic packet flow.
  • a scheduling mechanism is preset for deterministic network requirements and user configuration to transmit deterministic packets in the first scheduling echelon, which can ensure the priority of deterministic packets in the process of transmission, and ensure the priority of deterministic packets during transmission.
  • the third embodiment of the present invention relates to a mixed scheduling device for messages, as shown in FIG. 5 , including:
  • the first transmission unit 301 is configured to transmit the deterministic message stored in the first scheduling queue to the egress queue.
  • the second transmission unit 302 is configured to transmit the ordinary message stored in the second scheduling queue to the egress queue after satisfying a preset condition; wherein the preset condition includes: no deterministic message is stored in the first scheduling queue.
  • Sending unit 303 used for sending the message stored in the egress queue.
  • the apparatus for mixed scheduling of packets further includes a third transmission unit 304, as shown in FIG. 6 .
  • the third transmission unit 304 is configured to transmit the deterministic message to the first scheduling queue through the time gate wheel, so as to achieve the purpose of ensuring the scheduling delay of the deterministic message. For example, control the opening period of the time gate wheel according to the delay requirement of the deterministic message; transmit the deterministic message to the first scheduling queue through the opened time gate wheel; wherein, the longer the delay requirement of the deterministic message is, the more high, the turn-on period is shorter.
  • the second transmission unit 302 is specifically configured to acquire ordinary messages in the second scheduling queue; detect whether there is a deterministic message in the current first scheduling queue; if there is a deterministic message in the current first scheduling queue , then it is forbidden to transmit the common message in the second scheduling queue to the egress queue; if there is no deterministic message in the current first scheduling queue, the common message in the second scheduling queue is transferred to the egress queue.
  • detecting whether there is a deterministic packet in the current first scheduling queue is to detect whether there is a deterministic packet in the current first scheduling queue according to a scheduling queue signal generated by the first scheduling queue; wherein, the scheduling queue signal It is used to indicate that there is a deterministic packet in the first scheduling queue.
  • transmitting the deterministic packets stored in the first scheduling queue to the egress queue includes: according to a preset scheduling mechanism, transmitting the deterministic packets stored in the first scheduling queue to the egress queue.
  • the preset scheduling mechanism includes any one of the following scheduling mechanisms: a PQ scheduling mechanism, a WFQ scheduling mechanism, and a CBWFQ scheduling mechanism.
  • this embodiment is a device example corresponding to the above-mentioned embodiment, and this embodiment can be implemented in cooperation with the above-mentioned embodiment.
  • the related technical details mentioned in the foregoing embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied to the above-mentioned embodiments.
  • the fourth embodiment of the present invention relates to an electronic device, as shown in FIG. 7, comprising at least one processor 401; and,
  • a memory 402 connected in communication with the at least one processor 401; wherein the memory 402 stores instructions executable by the at least one processor 401, the instructions being executed by the at least one processor 402 to enable the at least one processor 401 to perform the above-described embodiments The mixed scheduling method of the packets.
  • the memory 402 and the processor 401 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory.
  • the bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein.
  • the bus interface provides the interface between the bus and the transceiver.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium.
  • the data processed by the processor is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor.
  • Processor 401 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions.
  • the memory 402 may be used to store data used by the processor in performing operations.
  • a fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • the aforementioned storage medium includes: 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 codes .

Landscapes

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

Abstract

Embodiments of the present invention relate to the field of data transmission. Disclosed are a method and apparatus for mixed scheduling of messages, and an electronic device and a storage medium. The method for mixed scheduling of messages comprises: transmitting a determinacy message stored in a first scheduling queue to an egress queue, and after a condition that no determinacy message is stored in the first scheduling queue is satisfied, transmitting a normal message stored in a second scheduling queue to the egress queue; and sending the messages stored in the egress queue.

Description

报文的混合调度方法、装置、电子设备及存储介质Method, device, electronic device and storage medium for mixed scheduling of messages
交叉引用cross reference
本申请基于申请号为“202010923671.0”、申请日为2020年09月04日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on the Chinese patent application with the application number "202010923671.0" and the application date is September 4, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference. Apply.
技术领域technical field
本发明实施例涉及数据传输领域,特别涉及一种报文的混合调度方法、装置、电子设备、存储介质。Embodiments of the present invention relate to the field of data transmission, and in particular, to a mixed scheduling method, device, electronic device, and storage medium for messages.
背景技术Background technique
随着工业互联网的兴起,确定性网络提出了针对特定报文保障确定性传输时延,保障工业互联网的特定报文时延,达到工业互联网控制的目的。确定性网络中,确定性报文和普通报文在同一个数据转发线路调度,保障确定性时延报文和普通报文混合调度,成为确定性网络研究的一个关键性技术。With the rise of the Industrial Internet, Deterministic Network proposes to guarantee the deterministic transmission delay for specific packets, to ensure the specific packet delay of the Industrial Internet, and to achieve the purpose of Industrial Internet control. In a deterministic network, deterministic packets and ordinary packets are scheduled on the same data forwarding line to ensure mixed scheduling of deterministic delay packets and ordinary packets, which has become a key technology in deterministic network research.
传统报文调度中,为了实现确定性报文和普通报文混合调度,将确定性报文加入普通报文的传输路径中,使得调度结构复杂化,模糊确定性报文和高优先级的普通报文的传输顺序,并且存在为了体现确定性报文的优先级,在原普通报文传输路径中加入优先级设置,但该优先级设置与原传输路径不兼容情况,因此无法实现高效率的确定性报文和普通报文的混合调度。In traditional packet scheduling, in order to achieve mixed scheduling of deterministic packets and ordinary packets, deterministic packets are added to the transmission path of ordinary packets, which complicates the scheduling structure, blurring deterministic packets and high-priority ordinary packets. The transmission order of packets, and there is a priority setting added to the original ordinary packet transmission path in order to reflect the priority of deterministic packets, but the priority setting is incompatible with the original transmission path, so it cannot be determined efficiently. Mixed scheduling of private packets and ordinary packets.
发明内容SUMMARY OF THE INVENTION
本发明的实施方式提供了一种报文的混合调度方法,包括以下步骤:将第一调度队列中存储的确定性报文传输至出口队列,并将第二调度队列中存储的普通报文在满足预设条件后传输至出口队列;其中,预设条件包括:第一调度队列中未存储确定性报文;发送出口队列中存储的报文。Embodiments of the present invention provide a mixed scheduling method for messages, including the following steps: transmitting deterministic messages stored in a first scheduling queue to an egress queue, and transferring common messages stored in a second scheduling queue to an egress queue. After the preset conditions are met, it is transmitted to the egress queue; wherein, the preset conditions include: no deterministic messages are stored in the first scheduling queue; messages stored in the egress queue are sent.
本发明的实施方式还提供了一种报文的混合调度装置,包括:第一传输单元,用于将第一调度队列中存储的确定性报文传输至出口队列;第二传输单元,用于将第二调度队列中存储的普通报文在满足预设条件后传输至出口队列;其中,预设条件包括:第一调度队列中未存储确定性报文;发送单元,用于发送出口队列中存储的报文。Embodiments of the present invention also provide a mixed scheduling device for messages, including: a first transmission unit, configured to transmit the deterministic message stored in the first scheduling queue to the egress queue; a second transmission unit, used for The ordinary message stored in the second scheduling queue is transmitted to the egress queue after satisfying the preset condition; wherein, the preset condition includes: no deterministic message is stored in the first scheduling queue; the sending unit is used to send the message in the egress queue stored message.
本发明的实施方式还提供了一种电子设备,包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述报文的混合调度方法。Embodiments of the present invention also provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by at least one processor. One processor executes, so that at least one processor can execute the above-mentioned mixed scheduling method of the message.
本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,包括:计算机程序被处理器执行时实现上述的报文的混合调度方法。Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, including: when the computer program is executed by a processor, the foregoing hybrid scheduling method for packets is implemented.
附图说明Description of drawings
图1是根据本发明第一实施方式提供的报文的混合调度方法的流程图;FIG. 1 is a flowchart of a mixed scheduling method for packets according to a first embodiment of the present invention;
图2是根据本发明第一实施方式提供的报文的混合调度方法的示意图;FIG. 2 is a schematic diagram of a mixed scheduling method for packets provided according to the first embodiment of the present invention;
图3是根据本发明第一实施方式提供的报文的混合调度方法中后置调度器执行的流程图;3 is a flowchart of a post-scheduler execution in the method for hybrid scheduling of messages provided according to the first embodiment of the present invention;
图4是根据本发明第二实施方式提供的报文的混合调度方法的流程图;FIG. 4 is a flowchart of a mixed scheduling method for packets according to a second embodiment of the present invention;
图5是根据本发明第三实施方式提供的报文的混合调度装置的示意图;5 is a schematic diagram of a mixed scheduling device for messages provided according to a third embodiment of the present invention;
图6是根据本发明第三实施方式提供的报文的混合调度装置在一个例子中的示意图;FIG. 6 is a schematic diagram of a mixed scheduling device for messages according to a third embodiment of the present invention in an example;
图7是根据本发明第四实施方式提供的一种电子设备的示意图。FIG. 7 is a schematic diagram of an electronic device according to a fourth embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便, 不应对本发明的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that, in the various embodiments of the present invention, many technical details are set forth in order for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized. The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.
本发明实施方式的目的在于提供一种报文的混合调度方法,实现高效的确定性报文和普通报文的混合调度。The purpose of the embodiments of the present invention is to provide a mixed scheduling method for messages, so as to realize efficient mixed scheduling of deterministic messages and ordinary messages.
本发明的实施方式将确定性报文和普通报文分为两个调度队列存储。采用出口混合队列方式,在结合预设判断条件后,实现确定性报文优先调度的同时普通报文可共享确定性报文的调度资源,高效实现确定性报文和普通报文的混合调度。The embodiments of the present invention divide deterministic packets and ordinary packets into two scheduling queues for storage. Using the mixed egress queue mode, combined with the preset judgment conditions, the priority scheduling of deterministic packets is realized, and the common packets can share the scheduling resources of deterministic packets, and the mixed scheduling of deterministic packets and ordinary packets can be efficiently realized.
本发明的第一实施方式涉及一种报文的混合调度方法,示意图如图2所示,流程如图1所示,包括:The first embodiment of the present invention relates to a method for mixed scheduling of packets. The schematic diagram is shown in FIG. 2 , and the flow is shown in FIG. 1 , including:
步骤101,将第一调度队列中存储的确定性报文传输至出口队列,并将第二调度队列中存储的普通报文在满足预设条件后传输至出口队列;其中,预设条件包括:第一调度队列中未存储确定性报文。Step 101: Transmit the deterministic message stored in the first scheduling queue to the egress queue, and transmit the ordinary message stored in the second scheduling queue to the egress queue after satisfying preset conditions; wherein the preset conditions include: Deterministic packets are not stored in the first scheduling queue.
步骤102,发送出口队列中存储的报文。Step 102: Send the packets stored in the egress queue.
具体地,如图2所示,在本实施方式中,分别为确定性报文和普通报文设置独立的调度队列,确定性报文调度队列前置时间门轮片,普通数据报文调度队列后置调度控制器。也就是说,确定性报文通过时间门轮片传输至为确定性报文设置的第一调度队列,以此控制确定性报文的延迟,达到对不同确定性报文保障不同时延调度的目的。在为普通数据报文设置的第二调度队列后置调度控制器,以此约束普通数据报文的出口调度,约束条件是确定性报文调度队列信号,只要根据第一调度队列中的确定性报文输出了调度队列信号,普通数据报文的调度就必须停止。Specifically, as shown in FIG. 2 , in this embodiment, independent scheduling queues are set for deterministic packets and ordinary packets, respectively, the deterministic packet scheduling queue lead time gate wheel, and the ordinary data packet scheduling queue Post scheduling controller. That is to say, deterministic packets are transmitted to the first scheduling queue set for deterministic packets through the time gate wheel, so as to control the delay of deterministic packets, so as to ensure the scheduling of different deterministic packets with different delays. Purpose. A scheduling controller is placed behind the second scheduling queue set for ordinary data packets, so as to constrain the egress scheduling of ordinary data packets. The constraint condition is the deterministic packet scheduling queue signal. When the packet outputs the scheduling queue signal, the scheduling of ordinary data packets must be stopped.
本发明的实施方式主要由电子设备执行,处理器将确定性报文通过时间门轮片发送至第一调度队列,将普通报文发送至第二调度队列,若第一调度队列中存在确定性报文,则第一调度队列发出调度队列信号至调度控制器,调度控制器限制第二调度队列中普通报文发送至出口队列的操作,同时第一调度队列将存储的确定性报文发送至出口队列;若第一调度队列中不存在确定性报文,则调度控制器将第二调度队列中的普通报文发送出口队列报文。出口队列得到报文时,处理器将出口队列中报文发送,从而在保障确定性报文优先调度的同 时,普通数据报文可共享确定性报文的调度资源,保障普通报文的次优先调度。The embodiments of the present invention are mainly executed by electronic equipment. The processor sends deterministic messages to the first scheduling queue through the time gate wheel, and sends ordinary messages to the second scheduling queue. If there is a deterministic message in the first scheduling queue message, the first scheduling queue sends a scheduling queue signal to the scheduling controller, the scheduling controller restricts the operation of sending ordinary messages in the second scheduling queue to the egress queue, and the first scheduling queue sends the stored deterministic messages to egress queue; if there is no deterministic message in the first scheduling queue, the scheduling controller sends the ordinary message in the second scheduling queue to the egress queue message. When the egress queue receives a packet, the processor sends the packet in the egress queue, so that while ensuring the priority scheduling of deterministic packets, ordinary data packets can share the scheduling resources of deterministic packets and ensure the second priority of ordinary packets. schedule.
下面对本实施方式的报文的混合调度方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。The implementation details of the mixed scheduling method for messages in this embodiment will be specifically described below. The following content is only provided for the convenience of understanding, and is not necessary for implementing this solution.
在一个例子中,步骤101执行前,将确定性报文通过时间门轮片传输至第一调度队列,实现保证确定性报文的调度时延的目的。具体地,根据确定性报文的时延要求控制时间门轮片的开启周期;将确定性报文通过开启的时间门轮片传输至第一调度队列;其中,确定性报文的时延要求越高,允许传输延后的时间越短,则时间门轮片开启周期越短。即根据用户配置的确定性报文的时延,在特定的时间间隔开启时间门轮片,达到调度时延执行的目的。In an example, before step 101 is executed, the deterministic packet is transmitted to the first scheduling queue through the time gate wheel, so as to achieve the purpose of ensuring the scheduling delay of the deterministic packet. Specifically, the opening period of the time gate wheel is controlled according to the delay requirement of the deterministic message; the deterministic message is transmitted to the first scheduling queue through the opened time gate wheel; wherein, the delay requirement of the deterministic message The higher it is, the shorter the allowable transmission delay time is, and the shorter the time gate wheel opening period is. That is, according to the deterministic packet delay configured by the user, the time gate wheel is opened at a specific time interval to achieve the purpose of scheduling the delay execution.
步骤101执行过程中,使用后置调度控制器将第二调度队列中存储的普通报文传输至出口队列中,具体执行流程图如图3所示:During the execution of step 101, the post-scheduling controller is used to transmit the ordinary message stored in the second scheduling queue to the egress queue. The specific execution flow chart is shown in Figure 3:
步骤1011:获取第二调度队列中的普通报文。Step 1011: Acquire common packets in the second scheduling queue.
步骤1012:检测当前第一调度队列中是否存在确定性报文;若是,则执行步骤1013;若否,则执行步骤1014。Step 1012: Detect whether there is a deterministic message in the current first scheduling queue; if yes, go to Step 1013; if not, go to Step 1014.
在一个例子中,根据第一调度队列生成的调度队列信号,检测当前第一调度队列中是否存在确定性报文;其中,调度队列信号用于指示第一调度队列中存在确定性报文。若第一调度队列中存在确定性报文,则会生成调度队列信号;若第一调度队列不存在确定性报文,则不会生成调度队列信号。因此,可以通过是否检测到调度队列信号,检测当前第一调度队列中是否存在确定性报文。In one example, according to the scheduling queue signal generated by the first scheduling queue, it is detected whether there is a deterministic packet in the current first scheduling queue; wherein the scheduling queue signal is used to indicate that there is a deterministic packet in the first scheduling queue. If there is a deterministic packet in the first scheduling queue, a scheduling queue signal will be generated; if there is no deterministic packet in the first scheduling queue, no scheduling queue signal will be generated. Therefore, whether there is a deterministic packet in the current first scheduling queue can be detected by whether the scheduling queue signal is detected.
步骤1013:禁止将第二调度队列中的普通报文传输至出口队列。Step 1013: Forbid the transmission of ordinary packets in the second scheduling queue to the egress queue.
步骤1014:将第二调度队列中的普通报文传输至出口队列。Step 1014: Transmit the ordinary packets in the second scheduling queue to the egress queue.
本实施方式将确定性报文和普通报文分为两个调度队列存储。采用出口混合队列方式,在结合预设判断条件后,实现确定性报文优先调度的同时普通报文可共享确定性报文的调度资源,高效实现确定性报文和普通报文的混合调度。In this embodiment, deterministic packets and ordinary packets are divided into two scheduling queues for storage. Using the mixed egress queue mode, combined with the preset judgment conditions, the priority scheduling of deterministic packets is realized, and the common packets can share the scheduling resources of deterministic packets, and the mixed scheduling of deterministic packets and ordinary packets can be efficiently realized.
本发明的第二实施方式涉及一种报文的混合调度方法,具体流程如图4所示,包括:The second embodiment of the present invention relates to a method for mixed scheduling of packets. The specific process is shown in FIG. 4 , including:
步骤201,根据预先设置的调度机制,将第一调度队列中存储的确定性报文传输至出口队列。 Step 201 , according to a preset scheduling mechanism, transmit the deterministic message stored in the first scheduling queue to the egress queue.
步骤202,将第二调度队列中存储的普通报文在满足预设条件后传输至出 口队列;其中,预设条件包括:第一调度队列中未存储确定性报文。 Step 202, transmitting the ordinary message stored in the second scheduling queue to the egress queue after satisfying the preset condition; wherein, the preset condition includes: no deterministic message is stored in the first scheduling queue.
需要说明的是,步骤201与步骤202并无确定的先后关系,步骤201与步骤202本质上是相互独立的并列执行的两个步骤,图4仅为一种示例,并不构成执行顺序上的约束。It should be noted that step 201 and step 202 do not have a definite sequence relationship. Step 201 and step 202 are essentially two independent steps executed in parallel. FIG. 4 is only an example, and does not constitute an execution sequence. constraint.
步骤203,发送出口队列中存储的报文。Step 203: Send the message stored in the egress queue.
本实施方式中的步骤203与第一实施方式大致相同,不再赘述。下面对本实施方式的步骤201和步骤202进行具体说明。Step 203 in this embodiment is substantially the same as that in the first embodiment, and will not be described again. Steps 201 and 202 of this embodiment will be specifically described below.
在步骤201中,根据预先设置的调度机制,将第一调度队列中存储的确定性报文传输至出口队列。该预先设置的调度方式可针对确定性网路需求和用户配置,使得本传输过程适用于实际情况,提升用户体验。In step 201, according to a preset scheduling mechanism, the deterministic message stored in the first scheduling queue is transmitted to the egress queue. The preset scheduling mode can be configured for deterministic network requirements and users, so that the transmission process is suitable for actual situations and user experience is improved.
其中,预先设置的调度机制包括以下任意一种调度机制:PQ调度机制、WFQ调度机制、CBWFQ调度机制。The preset scheduling mechanism includes any one of the following scheduling mechanisms: a PQ scheduling mechanism, a WFQ scheduling mechanism, and a CBWFQ scheduling mechanism.
在一个例子中,使用PQ调度机制利用4个子队列将第一调度队列中的确定性报文传输至出口队列,4个子队列的优先级分别是high,medium,normal,low。该调度机制会先服务高优先级的确定性报文队列,若高优先级确定性报文队列里没有数据,再服务中等优先级确定性报文队列,依次类推。如果PQ正在服务中等优先级确定性报文队列,但是高优先级确定性报文队列中输入了数据,则PQ会中断中等优先级确定性报文队列的服务,转而服务高优先级确定性报文队列。使用PQ调度机制对第一调度队列中存储的确定性报文进行调度,可以赋予高优先级的确定性报文绝对优先权。In one example, the PQ scheduling mechanism is used to transmit the deterministic packets in the first scheduling queue to the egress queue by using four sub-queues, and the priorities of the four sub-queues are high, medium, normal, and low, respectively. The scheduling mechanism will first serve the high-priority deterministic packet queue. If there is no data in the high-priority deterministic packet queue, it will serve the medium-priority deterministic packet queue, and so on. If the PQ is serving the medium priority deterministic message queue, but data is entered in the high priority deterministic message queue, the PQ interrupts the service of the medium priority deterministic message queue in favor of serving the high priority deterministic message queue message queue. By using the PQ scheduling mechanism to schedule the deterministic messages stored in the first scheduling queue, an absolute priority can be given to the deterministic messages with high priority.
在一个例子中,也可以使用WFQ调度机制将第一调度梯队中的确定性报文传输至出口队列。可以保证相同优先级确定性报文间公平,不同优先级确定性报文间实现加权。队列的数目可预先配置,在保证延迟公平的基础上体现权值,权值大小依赖于报文头中携带的IP优先级。WFQ对确定性报文按流进行分类,每一个确定性报文流被分配到一个队列。入队过程采用HASH算法来自动完成,在出队的时候,按优先级来分配每个确定性报文流应占有出口的带宽。优先级的数值越小,所得的带宽越少。使用WFQ调度机制对第一调度队列中存储的确定性报文进行调度,由HASH算法自主分类确定性报文,无需用户操作;所有的确定性报文流都有传输带宽。In one example, the WFQ scheduling mechanism may also be used to transmit the deterministic packets in the first scheduling echelon to the egress queue. It can ensure fairness among deterministic packets of the same priority, and implement weighting between deterministic packets of different priorities. The number of queues can be pre-configured, and the weights are reflected on the basis of ensuring delay fairness. The weights depend on the IP precedence carried in the packet header. WFQ classifies deterministic packets by flow, and each deterministic packet flow is assigned to a queue. The HASH algorithm is used to automatically complete the enqueue process. When dequeuing, the bandwidth that each deterministic packet flow should occupy at the exit is allocated according to the priority. The lower the priority value, the less bandwidth you get. The WFQ scheduling mechanism is used to schedule the deterministic packets stored in the first scheduling queue, and the HASH algorithm automatically classifies the deterministic packets without user operation; all deterministic packet flows have transmission bandwidth.
在一个例子中,也可以采用CBWFQ调度机制将第一调度梯队中的确定性报文传输至出口队列。CBWFQ通常使用访问控制列表ACL定义确定性报文流类别,其允许基于标准分类确定性报文,例如访问控制列表,输入界面名,协议和服务质量标志。CBWFQ调度机制是对WFQ调度机制作了扩展,支持用户自定义确定性报文流的分类,并且队列的个数和类别是一一对应,给每个确定性报文流保证带宽。In an example, the CBWFQ scheduling mechanism may also be used to transmit the deterministic packets in the first scheduling echelon to the egress queue. CBWFQ typically defines deterministic packet flow classes using access control list ACLs, which allow categorization of deterministic packets based on criteria such as access control lists, input interface names, protocols, and quality of service flags. The CBWFQ scheduling mechanism is an extension of the WFQ scheduling mechanism, which supports user-defined classification of deterministic packet flows, and the number and type of queues are in one-to-one correspondence, guaranteeing bandwidth for each deterministic packet flow.
本实施方式中,使用针对确定性网路需求和用户配置,预先设置调度机制来传输第一调度梯队中的确定性报文,可以保证确定性报文在传输的过程中的优先级,并对确定性报文传输至出口队列过程中的路径资源的进行合理分配。In this embodiment, a scheduling mechanism is preset for deterministic network requirements and user configuration to transmit deterministic packets in the first scheduling echelon, which can ensure the priority of deterministic packets in the process of transmission, and ensure the priority of deterministic packets during transmission. Reasonable allocation of path resources in the process of transmitting deterministic packets to egress queues.
本发明的第三实施方式涉及一种报文的混合调度装置,具体如图5所示,包括:The third embodiment of the present invention relates to a mixed scheduling device for messages, as shown in FIG. 5 , including:
第一传输单元301:用于将第一调度队列中存储的确定性报文传输至出口队列。The first transmission unit 301 is configured to transmit the deterministic message stored in the first scheduling queue to the egress queue.
第二传输单元302:用于将第二调度队列中存储的普通报文在满足预设条件后传输至出口队列;其中,预设条件包括:第一调度队列中未存储确定性报文。The second transmission unit 302 is configured to transmit the ordinary message stored in the second scheduling queue to the egress queue after satisfying a preset condition; wherein the preset condition includes: no deterministic message is stored in the first scheduling queue.
发送单元303:用于发送出口队列中存储的报文。Sending unit 303: used for sending the message stored in the egress queue.
在一个例子中,报文的混合调度装置还包括第三传输单元304,如图6所示。第三传输单元304:用于通过时间门轮片实现将确定性报文传送至第一调度队列,达到保证确定性报文的调度时延的目的。例如,根据确定性报文的时延要求控制时间门轮片的开启周期;将确定性报文通过开启的时间门轮片传输至第一调度队列;其中,确定性报文的时延要求越高,开启周期越短。In an example, the apparatus for mixed scheduling of packets further includes a third transmission unit 304, as shown in FIG. 6 . The third transmission unit 304 is configured to transmit the deterministic message to the first scheduling queue through the time gate wheel, so as to achieve the purpose of ensuring the scheduling delay of the deterministic message. For example, control the opening period of the time gate wheel according to the delay requirement of the deterministic message; transmit the deterministic message to the first scheduling queue through the opened time gate wheel; wherein, the longer the delay requirement of the deterministic message is, the more high, the turn-on period is shorter.
在一个例子中,第二传输单元302具体用于获取第二调度队列中的普通报文;检测当前第一调度队列中是否存在确定性报文;若当前第一调度队列中存在确定性报文,则禁止将第二调度队列中的普通报文传输至出口队列;若当前第一调度队列中不存在确定性报文,则将第二调度队列中的普通报文传输至出口队列。In one example, the second transmission unit 302 is specifically configured to acquire ordinary messages in the second scheduling queue; detect whether there is a deterministic message in the current first scheduling queue; if there is a deterministic message in the current first scheduling queue , then it is forbidden to transmit the common message in the second scheduling queue to the egress queue; if there is no deterministic message in the current first scheduling queue, the common message in the second scheduling queue is transferred to the egress queue.
在一个例子中,检测当前第一调度队列中是否存在确定性报文,是根据第一调度队列生成的调度队列信号,检测当前第一调度队列中是否存在确定性报 文;其中,调度队列信号用于指示第一调度队列中存在确定性报文。In one example, detecting whether there is a deterministic packet in the current first scheduling queue is to detect whether there is a deterministic packet in the current first scheduling queue according to a scheduling queue signal generated by the first scheduling queue; wherein, the scheduling queue signal It is used to indicate that there is a deterministic packet in the first scheduling queue.
另外,将第一调度队列中存储的确定性报文传输至出口队列,包括:根据预先设置的调度机制,将第一调度队列中存储的确定性报文传输至出口队列。In addition, transmitting the deterministic packets stored in the first scheduling queue to the egress queue includes: according to a preset scheduling mechanism, transmitting the deterministic packets stored in the first scheduling queue to the egress queue.
在一个例子中,预先设置的调度机制包括以下任意一种调度机制:PQ调度机制、WFQ调度机制、CBWFQ调度机制。In an example, the preset scheduling mechanism includes any one of the following scheduling mechanisms: a PQ scheduling mechanism, a WFQ scheduling mechanism, and a CBWFQ scheduling mechanism.
不难发现,本实施方式为与上述实施方式相对应的装置实施例,本实施方式可与上述实施方式互相配合实施。上述实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在上述实施方式中。It is not difficult to find that this embodiment is a device example corresponding to the above-mentioned embodiment, and this embodiment can be implemented in cooperation with the above-mentioned embodiment. The related technical details mentioned in the foregoing embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied to the above-mentioned embodiments.
本发明第四实施方式涉及一种电子设备,如图7所示,包括至少一个处理器401;以及,The fourth embodiment of the present invention relates to an electronic device, as shown in FIG. 7, comprising at least one processor 401; and,
与至少一个处理器401通信连接的存储器402;其中,存储器402存储有可被至少一个处理器401执行的指令,指令被至少一个处理器402执行,以使至少一个处理器401能够执行上述实施例的报文的混合调度方法。A memory 402 connected in communication with the at least one processor 401; wherein the memory 402 stores instructions executable by the at least one processor 401, the instructions being executed by the at least one processor 402 to enable the at least one processor 401 to perform the above-described embodiments The mixed scheduling method of the packets.
其中,存储器402和处理器401采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。The memory 402 and the processor 401 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory. The bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides the interface between the bus and the transceiver. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. The data processed by the processor is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor.
处理器401负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可402以被用于存储处理器在执行操作时所使用的数据。 Processor 401 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. The memory 402 may be used to store data used by the processor in performing operations.
本发明第五实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包 括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: 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 codes .
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those skilled in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present invention. Scope.

Claims (10)

  1. 一种报文的混合调度方法,包括:A method for mixed scheduling of packets, comprising:
    将第一调度队列中存储的确定性报文传输至出口队列,并将第二调度队列中存储的普通报文在满足预设条件后传输至所述出口队列;其中,所述预设条件包括:所述第一调度队列中未存储确定性报文;The deterministic message stored in the first scheduling queue is transmitted to the egress queue, and the ordinary message stored in the second scheduling queue is transferred to the egress queue after satisfying a preset condition; wherein the preset condition includes : no deterministic message is stored in the first scheduling queue;
    发送所述出口队列中存储的报文。Send the packets stored in the egress queue.
  2. 根据权利要求1所述的报文的混合调度方法,其特征在于,所述将第二调度队列中存储的普通报文在满足预设条件后传输至所述出口队列,包括:The method for mixed scheduling of packets according to claim 1, wherein the transmitting the ordinary packets stored in the second scheduling queue to the egress queue after satisfying a preset condition comprises:
    获取所述第二调度队列中的普通报文;obtaining common packets in the second scheduling queue;
    检测当前所述第一调度队列中是否存在所述确定性报文;Detecting whether the deterministic message exists in the current first scheduling queue;
    若当前所述第一调度队列中存在所述确定性报文,则禁止将所述第二调度队列中的普通报文传输至所述出口队列;If the deterministic packet currently exists in the first scheduling queue, the transmission of ordinary packets in the second scheduling queue to the egress queue is prohibited;
    若当前所述第一调度队列中不存在所述确定性报文,则将所述第二调度队列中的普通报文传输至所述出口队列。If the deterministic message does not currently exist in the first scheduling queue, the ordinary message in the second scheduling queue is transmitted to the egress queue.
  3. 根据权利要求2所述的报文的混合调度方法,其特征在于,所述检测当前所述第一调度队列中是否存在所述确定性报文,包括:The method for mixed scheduling of packets according to claim 2, wherein the detecting whether the deterministic packet exists in the current first scheduling queue comprises:
    根据基于所述第一调度队列生成的调度队列信号,检测当前所述第一调度队列中是否存在所述确定性报文;Detecting whether the deterministic message currently exists in the first scheduling queue according to the scheduling queue signal generated based on the first scheduling queue;
    其中,所述调度队列信号用于指示所述第一调度队列中存在所述确定性报文。The scheduling queue signal is used to indicate that the deterministic packet exists in the first scheduling queue.
  4. 根据权利要求1至3中任一项所述的报文的混合调度方法,其特征在于,在所述将第一调度队列中存储的确定性报文传输至出口队列前,还包括:The method for mixed scheduling of packets according to any one of claims 1 to 3, wherein before the transmitting the deterministic packets stored in the first scheduling queue to the egress queue, the method further comprises:
    将所述确定性报文通过时间门轮片传输至所述第一调度队列。The deterministic message is transmitted to the first scheduling queue through the time gate wheel.
  5. 根据权利要求4所述的报文的混合调度方法,其特征在于,所述将所述确定性报文通过时间门轮片传输至所述第一调度队列,包括:The method for mixed scheduling of messages according to claim 4, wherein the transmitting the deterministic message to the first scheduling queue through a time gate wheel comprises:
    根据确定性报文的时延要求控制时间门轮片的开启周期;Control the opening cycle of the time gate wheel according to the delay requirement of the deterministic message;
    将所述确定性报文通过开启的所述时间门轮片传输至所述第一调度队列;transmitting the deterministic message to the first scheduling queue through the opened time gate wheel;
    其中,所述确定性报文的时延要求越高,所述开启周期越短。Wherein, the higher the delay requirement of the deterministic message, the shorter the opening period.
  6. 根据权利要求1至5中任一项所述的报文的混合调度方法,其特征在于,所述将第一调度队列中存储的确定性报文传输至出口队列,包括:The method for hybrid scheduling of packets according to any one of claims 1 to 5, wherein the transmitting the deterministic packets stored in the first scheduling queue to the egress queue comprises:
    根据预先设置的调度机制,将所述第一调度队列中存储的确定性报文传输至出口队列。According to the preset scheduling mechanism, the deterministic message stored in the first scheduling queue is transmitted to the egress queue.
  7. 根据权利要求6所述的报文的混合调度方法,其特征在于,所述预先设置的调度机制包括以下任意一种调度机制:The method for mixed scheduling of packets according to claim 6, wherein the preset scheduling mechanism includes any one of the following scheduling mechanisms:
    优先队列调度PQ机制、加权公平队列WFQ调度机制、基于类的加权公平队列CBWFQ调度机制。Priority queue scheduling PQ mechanism, weighted fair queue WFQ scheduling mechanism, class-based weighted fair queue CBWFQ scheduling mechanism.
  8. 一种报文的混合调度装置,其特征在于,包括:A message hybrid scheduling device, characterized in that it includes:
    第一传输单元,用于将第一调度队列中存储的确定性报文传输至出口队列;a first transmission unit, configured to transmit the deterministic message stored in the first scheduling queue to the egress queue;
    第二传输单元,用于将第二调度队列中存储的普通报文在满足预设条件后传输至所述出口队列;其中,所述预设条件包括:所述第一调度队列中未存储确定性报文;The second transmission unit is configured to transmit the ordinary message stored in the second scheduling queue to the egress queue after satisfying a preset condition; wherein the preset condition includes: no confirmation is stored in the first scheduling queue sex message;
    发送单元,用于发送所述出口队列中存储的报文。A sending unit, configured to send the packets stored in the egress queue.
  9. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至7中任一项所述的报文的混合调度方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1 to 7 The hybrid scheduling method for the described packets.
  10. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计 算机程序被处理器执行时实现权利要求1至7中任一项所述的报文的混合调度方法。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the hybrid scheduling method for messages according to any one of claims 1 to 7 is implemented.
PCT/CN2021/111540 2020-09-04 2021-08-09 Method and apparatus for mixed scheduling of messages, and electronic device and storage medium WO2022048407A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010923671.0A CN114221911A (en) 2020-09-04 2020-09-04 Message hybrid scheduling method and device, electronic equipment and storage medium
CN202010923671.0 2020-09-04

Publications (1)

Publication Number Publication Date
WO2022048407A1 true WO2022048407A1 (en) 2022-03-10

Family

ID=80492154

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/111540 WO2022048407A1 (en) 2020-09-04 2021-08-09 Method and apparatus for mixed scheduling of messages, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114221911A (en)
WO (1) WO2022048407A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115632925A (en) * 2022-12-26 2023-01-20 北京交通大学 Time-certainty fusion network architecture and data communication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518988A (en) * 2014-12-19 2015-04-15 上海顶竹通讯技术有限公司 Method and system for priority processing of messages
CN108880904A (en) * 2018-07-05 2018-11-23 中国人民解放军国防科技大学 64-level service quality guarantee method with user and service attribute fusion
CN109089281A (en) * 2018-06-27 2018-12-25 海能达通信股份有限公司 A kind of cluster communication method, terminal device and storage medium
US20190097884A1 (en) * 2017-09-25 2019-03-28 Cisco Technology, Inc. Deterministic stitching of deterministic segments across distinct deterministic domains

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104518988A (en) * 2014-12-19 2015-04-15 上海顶竹通讯技术有限公司 Method and system for priority processing of messages
US20190097884A1 (en) * 2017-09-25 2019-03-28 Cisco Technology, Inc. Deterministic stitching of deterministic segments across distinct deterministic domains
CN109089281A (en) * 2018-06-27 2018-12-25 海能达通信股份有限公司 A kind of cluster communication method, terminal device and storage medium
CN108880904A (en) * 2018-07-05 2018-11-23 中国人民解放军国防科技大学 64-level service quality guarantee method with user and service attribute fusion

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115632925A (en) * 2022-12-26 2023-01-20 北京交通大学 Time-certainty fusion network architecture and data communication method

Also Published As

Publication number Publication date
CN114221911A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
KR101670642B1 (en) System and method for scheduling packet transmission on a client device
CN1989738B (en) Propagation of minimum guaranteed scheduling rates
US20050047425A1 (en) Hierarchical scheduling for communications systems
US20130208593A1 (en) Method and apparatus providing flow control using on-off signals in high delay networks
Kumar et al. A delay efficient multiclass packet scheduler for heterogeneous M2M uplink
US7843825B2 (en) Method and system for packet rate shaping
CN108633088A (en) The method and apparatus of scheduling of resource
Sidhu et al. Packet scheduling of GOOSE messages in IEC 61850 based substation intelligent electronic devices (IEDs)
WO2022048407A1 (en) Method and apparatus for mixed scheduling of messages, and electronic device and storage medium
WO2018072551A1 (en) Method and device for service processing
CN102333026A (en) Message forwarding method and device
Imputato et al. Design and implementation of the traffic control module in ns-3
JP2002344501A (en) Packet scheduling device and method therefor
WO2021170108A1 (en) Information processing method and apparatus, device and computer-readable storage medium
CN1939005A (en) Expedited data transmission in packet based network
CN102664803B (en) EF (Expedited Forwarding) queue implementing method and equipment
CN109450817B (en) Mixed scheduling method for time-triggered Ethernet multi-service message transmission
Hassani et al. Work-in-progress: Layering concerns for the analysis of credit-based shaping in IEEE 802.1 TSN
WO2024120250A1 (en) Resource allocation method and apparatus, terminal, and network side device
WO2022022222A1 (en) Method for sending data packet, and network device
WO2024011907A1 (en) Data scheduling method, and electronic device and storage medium
Rukmani et al. Adaptive modified low latency queuing algorithm for real time traffic in wimax networks
WO2019085740A1 (en) Buffer status reporting method, terminal and computer-readable storage medium
JP2002016643A (en) Router device
JPH07336389A (en) Packet exchange device enabling transmission priority control

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/07/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21863474

Country of ref document: EP

Kind code of ref document: A1