CN112822268B - A method for multi-service coexistence and IP layer data packet scheduling in the Industrial Internet of Things - Google Patents
A method for multi-service coexistence and IP layer data packet scheduling in the Industrial Internet of Things Download PDFInfo
- Publication number
- CN112822268B CN112822268B CN202110010472.5A CN202110010472A CN112822268B CN 112822268 B CN112822268 B CN 112822268B CN 202110010472 A CN202110010472 A CN 202110010472A CN 112822268 B CN112822268 B CN 112822268B
- Authority
- CN
- China
- Prior art keywords
- priority
- data packet
- data
- queue
- sent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/62—Queue scheduling characterised by scheduling criteria
- H04L47/625—Queue scheduling characterised by scheduling criteria for service slots or service orders
- H04L47/6275—Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明属于工业物联网数据实时传输和多网络融合的技术领域,涉及到一种在IP层根据数据包优先级、传输时间以及基于混杂切换系统模型进行数据包调度的调度算法。The invention belongs to the technical field of real-time data transmission and multi-network integration of industrial internet of things, and relates to a scheduling algorithm for data packet scheduling based on data packet priority, transmission time and hybrid switching system model at the IP layer.
背景技术Background technique
随着无线网络和5G技术的发展,多网络融合以及多服务共存已经成为目前工业物联网研究领域必须攻克的问题。同时,随着确定性网络应用需求的提出,如何在这种混合网络应用场景中,确保各个数据包能够按照要求及时进行网络发送,已成为关键。为了满足工业物联网数据包端到端的低时延需求,IEEE802.1工作组发布了一系列时间敏感网络(TSN)相关标准,通过时钟同步、数据流调度策略等技术标准在数据链路层确保数据包传输的实时性。但是,时间敏感网络的相关标准仅仅适用于数据链路层,为了将TSN中开发的技术扩展到路由器,互联网工程任务组(IETF)提出了确定性网络(DetNet)。确定性网络是一项帮助实现IP网络从提供“尽力而为”的网络服务到提供“准时、准确、快速”的网络服务,控制并降低端到端时延的技术,在数据链路层和IP层上实现确定传输路径,这些路径可以提供延迟、丢包和抖动的最坏情况界限,以此提供确定的延迟。目前在IP层和数据链路层之间,如何根据需求设计数据包调度算法尚不成熟,尤其是根据数据包的优先级和传输时间进行数据包调度,尚未见相关报道。With the development of wireless networks and 5G technologies, multi-network integration and multi-service coexistence have become issues that must be overcome in the current industrial IoT research field. At the same time, with the introduction of deterministic network application requirements, how to ensure that each data packet can be sent to the network in a timely manner as required in this hybrid network application scenario has become the key. In order to meet the end-to-end low-latency requirements of industrial IoT data packets, the IEEE802.1 working group has released a series of time-sensitive networking (TSN) related standards. The real-time nature of packet transmission. However, the relevant standards for time-sensitive networks only apply to the data link layer, and in order to extend the technology developed in TSN to routers, the Internet Engineering Task Force (IETF) proposed Deterministic Networking (DetNet). Deterministic network is a technology that helps to realize IP network from providing "best effort" network service to providing "punctual, accurate and fast" network service, controlling and reducing end-to-end delay. Deterministic transmission paths are implemented at the IP layer that provide worst-case bounds on delay, packet loss, and jitter to provide deterministic latency. At present, between the IP layer and the data link layer, how to design a data packet scheduling algorithm according to requirements is still immature, especially for data packet scheduling according to the priority and transmission time of the data packets, there is no relevant report yet.
发明内容SUMMARY OF THE INVENTION
本发明目的是在于克服现存技术的不足,提供一种针对工业物联网中来自多种不同类型或多个相同类型的网络的数据包以及来自多个应用服务的数据包在IP层中进行转发时的调度算法。该方法同时考虑了数据包的优先级和传输时间,并通过各个优先级的数据包最大传输时延的计算公式得到混杂切换系统的部分切换条件,使用混杂切换系统模型对数据包调度过程进行分析,从而设计了IP层的数据包调度算法,克服当前工业物联网中控制类等对时延有高要求的数据包实时性不能保证的问题,同时也降低了网络的丢包率。The purpose of the present invention is to overcome the deficiencies of the existing technology, and to provide a method for when data packets from multiple different types or multiple networks of the same type and data packets from multiple application services are forwarded in the IP layer in the Industrial Internet of Things. scheduling algorithm. The method considers the priority and transmission time of the data packets at the same time, and obtains some switching conditions of the hybrid switching system through the calculation formula of the maximum transmission delay of the data packets of each priority, and uses the hybrid switching system model to analyze the packet scheduling process. , thereby designing a packet scheduling algorithm at the IP layer to overcome the problem that the real-time performance of data packets with high requirements on delay such as the control class in the current industrial Internet of Things cannot be guaranteed, and at the same time, it also reduces the packet loss rate of the network.
为了达到上述目的,本发明提供了一种面向工业物联网的基于数据优先级、传输时间以及最大传输时延的数据包调度算法,该方法是在现有TCP/IP协议架构中IP协议层的基础上的一个扩充。安装时,需要将该方法加到IP层中。同时该方法所需要的数据优先级、传输时间与最大传输时延三个参数信息,都可以通过网络直接获取,或经过简单计算得到。其中,数据优先级可以根据数据数据包中的固定字段信息获得,这部分是协议中规定的。在时钟同步的前提下,传输时间可以通过同步的时钟时间与协议规定的IP报文可选字段时间戳选项记录的时间简单计算获得。最大传输时延可以通过工业生产要求的预设采样周期值以及协议规定的时延计算得到。In order to achieve the above purpose, the present invention provides a data packet scheduling algorithm based on data priority, transmission time and maximum transmission delay oriented to the Industrial Internet of Things. The method is based on the IP protocol layer in the existing TCP/IP protocol architecture. An extension to the base. During installation, this method needs to be added to the IP layer. At the same time, the three parameter information of data priority, transmission time and maximum transmission delay required by the method can be obtained directly through the network, or obtained through simple calculation. Among them, the data priority can be obtained according to the fixed field information in the data packet, which is specified in the protocol. Under the premise of clock synchronization, the transmission time can be obtained by simply calculating the synchronized clock time and the time recorded by the time stamp option in the optional field of the IP packet specified in the protocol. The maximum transmission delay can be calculated from the preset sampling period value required by industrial production and the delay specified in the protocol.
本发明的技术方案是:The technical scheme of the present invention is:
首先,将数据包调度过程设计为包含两个子系统的混杂切换模型,两个子系统分别为优先级优先子系统以及时间优先子系统。优先级优先子系统中待发送列中的数据包采用优先级优先的排序方式,即从队首至队尾数据包的优先级逐渐降低,优先级相同的数据包按照传输时间由大到小的顺序排序,时间优先子系统中待发送队列中的数据包采用时间优先的排序方式,即从队首至队尾数据包的剩余传输时间(最大传输时延与传输时间之差)逐渐增大,剩余传输时间相同的数据包按照优先级由高到低的顺序排序;其次,通过相关参数计算得到切换条件中待发送队列数据包平均已传输时间的最值;最后,根据子系统的状态参数(平均已传输时间)是否满足切换条件以及离散事件是否发生共同决定子系统之间的切换,离散事件包括接收到控制数据包以及待发送队列中存在即将超时数据包。First, the packet scheduling process is designed as a hybrid switching model including two subsystems, the two subsystems are the priority-priority subsystem and the time-priority subsystem. The data packets in the to-be-sent column in the priority subsystem are sorted by priority, that is, the priority of the data packets from the head of the queue to the end of the queue is gradually reduced, and the data packets with the same priority are arranged in descending order according to the transmission time. Sequence sorting, the data packets in the queue to be sent in the time priority subsystem adopt the time priority sorting method, that is, the remaining transmission time (the difference between the maximum transmission delay and the transmission time) of the data packets from the head of the queue to the end of the queue gradually increases, The data packets with the same remaining transmission time are sorted according to the order of priority from high to low; secondly, the maximum value of the average transmission time of the queue data packets to be sent in the switching condition is calculated by the relevant parameters; finally, according to the state parameters of the subsystem ( Whether the average elapsed time (average elapsed time) meets the switching conditions and whether discrete events occur together determine the switching between subsystems.
数据包调度算法的具体步骤如下:The specific steps of the packet scheduling algorithm are as follows:
步骤1.初始化:设置当前所处子系统为优先级优先子系统,通过工业网络中各优先级数据包的预设采样周期以及网络协议中规定的优先级为IPP的数据包的最大传输延迟计算各个优先级数据包的最大传输时延;Step 1. Initialization: Set the current subsystem as the priority subsystem, and calculate each priority through the preset sampling period of each priority data packet in the industrial network and the maximum transmission delay of the data packet with the priority of IPP specified in the network protocol. Maximum transmission delay of priority packets;
最大传输时延表示当前工业网络中优先级为IPP的数据包的最大传输延迟;其表达式如下:maximum transmission delay Represents the maximum transmission delay of the data packet with the priority of IPP in the current industrial network; its expression is as follows:
其中,IPP∈{0,1,2,3,4,5,6,7},表示IP报文的发送优先级;为当前工业网络中优先级为IPP的数据包的预设采样周期,该工业网络中该优先级的数据包理论传输最大传输时延等于预设采样周期值;表示网络协议中规定的优先级为IPP的数据包的最大传输延迟;取当前工业网络中优先级为IPP的数据包的预设采样周期和网络协议中规定的优先级为IPP的数据包的最大传输延迟中的较小值作为网络资源调度的最大传输时延;Among them, IPP∈{0,1,2,3,4,5,6,7}, indicating the sending priority of IP packets; is the preset sampling period of the data packet with the priority of IPP in the current industrial network, and the theoretical maximum transmission delay of the data packet of this priority in the industrial network is equal to the preset sampling period value; Indicates the maximum transmission delay of the data packet with the priority of IPP specified in the network protocol; take the preset sampling period of the data packet with the priority of IPP in the current industrial network and the maximum transmission delay of the data packet with the priority of IPP specified in the network protocol The smaller value of the transmission delay is used as the maximum transmission delay of network resource scheduling;
若当前工业网络中同一优先级的不同应用程序的数据包的预设采样周期值不同,则最大传输时延的表达式如下:If the preset sampling period values of data packets of different applications of the same priority in the current industrial network are different, the maximum transmission delay The expression is as follows:
其中,i≤Anum,Anum为当前工业网络中产生同一优先级数据包但预设采样周期不同的应用程序个数;Among them, i≤A num , A num is the number of applications in the current industrial network that generate data packets of the same priority but with different preset sampling periods;
步骤2.获取数据类型:当有数据包到达IP层时,提取该数据包的优先级以及时间戳选项记录的发送时间;获取转发节点与接收端之间链路的往返延时RTT;Step 2. Obtain the data type: when a data packet arrives at the IP layer, extract the priority of the data packet and the sending time recorded by the timestamp option; obtain the round-trip delay RTT of the link between the forwarding node and the receiving end;
数据优先级β用以表示当前数据包在调度过程中的优先权重,表达式如下:The data priority β is used to represent the priority weight of the current data packet in the scheduling process, and the expression is as follows:
其中,IPP∈{0,1,2,3,4,5,6,7},表示IP报文的发送优先级,数值越大,优先级越高;IPPum为优先级种类,在RFC标准中,有8个优先级,即IPPum=8;故IPP<IPPum,数据优先级β∈[0,1);通过β判断数据优先级,β越大,数据优先级越高;Among them, IPP∈{0,1,2,3,4,5,6,7}, indicating the sending priority of IP packets, the larger the value, the higher the priority; IPP um is the priority type, in the RFC standard There are 8 priorities, namely IPP um = 8; therefore IPP<IPP um , the data priority β∈[0,1); the data priority is judged by β, the larger the β, the higher the data priority;
RFC 1323引入了IP报文可选字段中的时间戳选项;当时间戳选项的标志字段FL为3时,记录发送端的IP地址以及生成数据包的时间;当有数据包到达IP层时,提取该数据包的优先级以及数据包时间戳选项中与源地址相同的IP地址对应的时间戳;在时钟同步的前提下,发送端或转发节点通过当前时钟时间与时间戳选项记录的数据包发送时间之差得到数据包的传输时间,用Ttrans表示;发送端或者转发节点通过与接收端通信获取该节点与接收端之间链路的往返延时,用RTT表示;RFC 1323 introduces the timestamp option in the optional field of the IP packet; when the flag field FL of the timestamp option is 3, the IP address of the sender and the time when the data packet is generated are recorded; when a data packet arrives at the IP layer, it is extracted. The priority of the packet and the timestamp corresponding to the same IP address as the source address in the timestamp option of the packet; under the premise of clock synchronization, the sender or forwarding node sends the packet through the current clock time and timestamp option. The time difference is used to obtain the transmission time of the data packet, which is represented by T trans ; the sending end or forwarding node obtains the round-trip delay of the link between the node and the receiving end by communicating with the receiving end, which is represented by RTT;
步骤3.计算状态参数:利用往返延时和优先级数据包的最大传输时延计算切换条件中的待发送队列数据包的平均已传输时间的最值;计算当前待发送队列数据包的平均已传输时间,表达式如下:Step 3. Calculate the state parameters: use the round-trip delay and the maximum transmission delay of the priority data packets to calculate the maximum value of the average elapsed time of the queue data packets to be sent in the switching condition; calculate the current average elapsed time of the queue data packets to be sent. The transmission time, the expression is as follows:
其中,为该数据包对应优先级数据包的最大传输时延,RTT为该节点与接收端之间的往返时延,m为待发送队列中数据包数,mIPP为待发送队列中该数据包对应优先级的数据包个数,Rmax、Rmin为系数;其中:m≤M,M为待发送队列总长度;in, is the maximum transmission delay of the data packet corresponding to the priority data packet, RTT is the round-trip delay between the node and the receiver, m is the number of data packets in the queue to be sent, m IPP is the corresponding data packet in the queue to be sent The number of data packets of priority, R max and R min are coefficients; among them: m≤M, M is the total length of the queue to be sent;
再计算当前待发送队列数据包的平均已传输时间,平均已传输时间T用以表示当前待发送队列中数据包的延迟情况,其表达式如下:Then calculate the average transmission time of the data packets in the queue to be sent. The average transmission time T is used to represent the delay of the data packets in the queue to be sent. The expression is as follows:
当前待发送队列的IP报文的平均已传输时间T由数据优先级β、传输时间Ttrans和待发送队列中数据包数m共同决定,高优先级数据包的已传输时间在计算中所占比例要大于低优先级的数据包;T越大,表明当前待发送队列中接近最大传输时延的数据包数越多,待发送程度越紧急;The current average transmission time T of the IP packets in the queue to be sent is determined by the data priority β, the transmission time T trans and the number of packets m in the queue to be sent. The transmission time of high-priority packets is accounted for in the calculation. The ratio is greater than that of low-priority data packets; the larger the T, the more data packets that are close to the maximum transmission delay in the current queue to be sent, and the more urgent it is to be sent;
步骤4.子系统切换判断:根据当前所处子系统判断是否满足切换条件,优先级优先子系统切换到时间优先子系统的切换条件为待发送队列中存在即将超时数据包此离散事件的发生,或者系统的状态参数待发送队列的平均已传输时间高于最大值;时间优先子系统切换到优先级优先子系统的切换条件为平均已传输低于最小值,或者在平均已传输时间低于最大值的情况下,当前待发送队列中含有控制数据包;Step 4. Subsystem switching judgment: according to the current subsystem to judge whether the switching condition is satisfied, the switching condition for the priority priority subsystem to switch to the time priority subsystem is the occurrence of the discrete event that there is a timeout packet in the queue to be sent, or The state parameter of the system is that the average transmission time of the queue to be sent is higher than the maximum value; the switching condition for the time priority subsystem to switch to the priority priority subsystem is that the average transmission time is lower than the minimum value, or the average transmission time is lower than the maximum value. In the case of , the current queue to be sent contains control packets;
当数据包的传输时间Ttrans满足如下表达式时认为其即将超时:When the transmission time T trans of the data packet satisfies the following expression, it is considered to be about to time out:
其中,为该数据包对应优先级数据包的最大传输时延,RTT为该节点与接收端之间的往返时延;in, is the maximum transmission delay of the data packet corresponding to the priority data packet, and RTT is the round-trip delay between the node and the receiver;
如果满足切换条件则进行子系统的切换,再根据切换后子系统的待发送队列中数据包的排序规则将新接收的数据包插入到待发送队列的合适位置;如果不满足切换条件,则直接根据当前子系统的待发送队列中数据包的排序规则将新接收的数据包插入到待发送队列的合适位置。If the switching conditions are met, the subsystem will be switched, and then the newly received data packets will be inserted into the appropriate position of the queue to be sent according to the ordering rules of the packets in the queue to be sent after the switching; if the switching conditions are not met, directly Insert the newly received data packet into the appropriate position of the to-be-sent queue according to the ordering rules of the data packets in the to-be-sent queue of the current subsystem.
需要将数据包调度过程设计为包含优先级优先子系统以及时间优先子系统的混杂切换模型,两个子系统中待发送列中的数据包采用的排序方式如下:优先级优先子系统中待发送列中的数据包采用优先级优先的排序方式,即从队首至队尾数据包的优先级逐渐降低,优先级相同的数据包按照传输时间由大到小的顺序排序,时间优先子系统中待发送队列中的数据包采用时间优先的排序方式,即从队首至队尾数据包的剩余传输时间逐渐增大,剩余传输时间相同的数据包按照优先级由高到低的顺序排序;所述剩余传输时间为最大传输时延与传输时间之差。The data packet scheduling process needs to be designed as a hybrid switching model including the priority priority subsystem and the time priority subsystem. The data packets in the to-be-sent columns in the two subsystems are sorted as follows: The to-be-sent column in the priority priority subsystem The data packets in the queue are sorted by priority, that is, the priority of the data packets from the head of the queue to the tail of the queue is gradually reduced, and the data packets with the same priority are sorted according to the order of transmission time from large to small. The data packets in the sending queue are sorted by time priority, that is, the remaining transmission time of the data packets from the head of the queue to the end of the queue increases gradually, and the data packets with the same remaining transmission time are sorted in order of priority from high to low; the The remaining transmission time is the difference between the maximum transmission delay and the transmission time.
本发明的效果和益处是:目前的数据包调度算法缺乏对工业物联网中连续的周期性数据和离散的控制数据并存问题的分析。该算法同时考虑了数据包的优先级和传输时延,并通过各个优先级的数据包最大传输时延的计算公式得到混杂切换系统的部分切换条件,使用混杂切换系统模型对数据包调度过程进行分析,从而设计了IP层的数据包调度算法。该方法是综合考虑工业生产需求和协议要求的各优先级数据包最大传输延迟的确定方法;并在IP层中对来自不同类型网络的数据包进行统一调度,实现了多网络融合;该方法使用混杂切换系统模型对数据包调度过程进行分析,克服当前工业物联网中控制类等对时延有高要求的数据包实时性不能保证的问题,同时也降低了网络的丢包率。The effects and benefits of the present invention are: the current data packet scheduling algorithm lacks analysis on the coexistence of continuous periodic data and discrete control data in the Industrial Internet of Things. The algorithm considers the priority and transmission delay of the data packets at the same time, and obtains some switching conditions of the hybrid switching system through the calculation formula of the maximum transmission delay of the data packets of each priority. Analyzed and designed the packet scheduling algorithm of IP layer. This method is a method for determining the maximum transmission delay of each priority data packet considering industrial production requirements and protocol requirements; and uniformly schedules data packets from different types of networks in the IP layer to achieve multi-network fusion; this method uses The hybrid switching system model analyzes the data packet scheduling process, overcomes the problem that the real-time performance of data packets with high delay requirements such as the control class in the current industrial Internet of Things cannot be guaranteed, and also reduces the network packet loss rate.
附图说明Description of drawings
附图1是调度算法的流程图。Figure 1 is a flowchart of the scheduling algorithm.
附图2是适用的网络拓扑图,调度算法可在任意需要发送数据包的节点上运行。Figure 2 is an applicable network topology diagram, and the scheduling algorithm can be run on any node that needs to send data packets.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明作进一步的详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.
参见图2,介绍了本发明一种基于数据优先级、传输时间以及最大传输时延的数据包调度算法的适用网络拓扑图,该算法可以在有发送数据包需求的网络终端和转发节点上运行。本发明在IP层中对来自不同类型网络的数据包进行统一调度,实现了多网络融合。同时本发明使用混杂切换系统模型对数据包调度过程进行分析,在保证网络各类型数据的服务质量的同时,克服当前工业物联网中控制类等对时延有高要求的数据包实时性不能保证的问题,同时也降低了网络的丢包率。Referring to FIG. 2, an applicable network topology diagram of a data packet scheduling algorithm based on data priority, transmission time and maximum transmission delay of the present invention is introduced. The algorithm can be run on network terminals and forwarding nodes that need to send data packets . The invention uniformly schedules data packets from different types of networks in the IP layer, and realizes multi-network fusion. At the same time, the present invention uses the hybrid switching system model to analyze the data packet scheduling process, while ensuring the service quality of various types of data in the network, and overcomes the fact that the real-time performance of data packets that have high requirements on delay in the current industrial Internet of Things, such as control classes, cannot be guaranteed. It also reduces the packet loss rate of the network.
参见图1,结合本发明一种基于数据优先级、传输时间以及最大传输时延的链路选择算法的下述各个具体操作步骤:Referring to Fig. 1, in conjunction with the following specific operation steps of a link selection algorithm based on data priority, transmission time and maximum transmission delay of the present invention:
步骤1.初始化。设置当前所处子系统为优先级优先子系统,待发送列中的数据包采用优先级优先的排序方式,即从队首至队尾数据包的优先级逐渐降低,优先级相同的数据包按照传输时间由大到小的顺序排序。通过工业网络中各优先级数据包的预设采样周期以及网络协议中规定的优先级为IPP的数据包的最大传输延迟计算各个优先级数据包的最大传输时延。Step 1. Initialize. Set the current subsystem as the priority subsystem, the data packets in the queue to be sent are sorted by priority, that is, the priority of the data packets from the head of the queue to the tail of the queue is gradually reduced, and the data packets with the same priority are transmitted according to the order of priority. Times are sorted in descending order. The maximum transmission delay of each priority data packet is calculated according to the preset sampling period of each priority data packet in the industrial network and the maximum transmission delay of the data packet with the priority of IPP specified in the network protocol.
定义1最大传输时延表示当前工业网络中优先级为IPP的数据包的最大传输延迟。其表达式如下:Definition 1 Maximum transmission delay Indicates the maximum transmission delay of the data packet with the priority of IPP in the current industrial network. Its expression is as follows:
其中,IPP∈{0,1,2,3,4,5,6,7},表示IP报文的发送优先级。为当前工业网络中优先级为IPP的数据包的预设采样周期。由于工业生产中网络中优先级为IPP的数据包的传输延迟小于等于预设采样周期值时,才能保证工业生产的正常进行,所以该工业网络中该优先级的数据包理论传输最大传输时延等于预设采样周期值。表示网络协议中规定的优先级为IPP的数据包的最大传输延迟。取当前工业网络中优先级为IPP的数据包的预设采样周期和网络协议中规定的优先级为IPP的数据包的最大传输延迟中的较小值作为网络资源调度的最大传输时延。Among them, IPP∈{0,1,2,3,4,5,6,7}, indicating the sending priority of IP packets. It is the preset sampling period of the data packets with the priority of IPP in the current industrial network. Since the normal operation of industrial production can only be guaranteed when the transmission delay of the data packet with the priority of IPP in the network in industrial production is less than or equal to the preset sampling period value, the theoretical transmission delay of the data packet of this priority in the industrial network is the maximum transmission delay. Equal to the preset sampling period value. Indicates the maximum transmission delay of a packet with a priority of IPP specified in the network protocol. The smaller value of the preset sampling period of the data packet with the priority of IPP in the current industrial network and the maximum transmission delay of the data packet of the priority of IPP specified in the network protocol is taken as the maximum transmission delay of the network resource scheduling.
扩展若当前工业网络中同一优先级的不同应用程序的数据包的预设采样周期值不同,则最大传输时延的表达式如下:Extension If the preset sampling period values of data packets of different applications of the same priority in the current industrial network are different, the maximum transmission delay The expression is as follows:
其中,i≤Anum,Anum为当前工业网络中产生同一优先级数据包但预设采样周期不同的应用程序个数。Wherein, i≤A num , and A num is the number of application programs that generate data packets of the same priority but with different preset sampling periods in the current industrial network.
例如:假设在某工业网络中优先级为4的数据包的预设采样周期都相同,为120ms,则在数据链路层协议IEEE802.1Q中指出优先级为4的视频数据的延迟和抖动小于100ms,则那么,代入表达式(1),调度过程中优先级为4的数据包最大传输时延计算如下:For example: Assuming that the preset sampling period of the data packets with priority 4 in an industrial network is the same, which is 120ms, then In the data link layer protocol IEEE802.1Q, it is pointed out that the delay and jitter of the video data with priority 4 are less than 100ms, then Then, substituting into expression (1), the maximum transmission delay of the data packet with priority 4 in the scheduling process The calculation is as follows:
综上,由表达式(1)或(2)就可以针对某个工业网络计算出数据包调度过程中的传输延迟的理论上的最大值,为后续混杂切换系统模型切换条件的计算以及数据包调度提供依据。To sum up, from expression (1) or (2), the theoretical maximum value of the transmission delay in the data packet scheduling process can be calculated for an industrial network, which is used for the calculation of the switching conditions of the subsequent hybrid switching system model and the data packet Scheduling provides the basis.
步骤2.获取数据类型。当有数据包到达IP层时,提取该数据包的优先级。Step 2. Get the data type. When a packet arrives at the IP layer, extract the priority of the packet.
定义2数据优先级(β)用以表示当前数据包在调度过程中的优先权重,表达式如下:Definition 2 Data priority (β) is used to represent the priority weight of the current data packet in the scheduling process, and the expression is as follows:
其中,IPP∈{0,1,2,3,4,5,6,7},表示IP报文的发送优先级,数值越大,优先级越高。IPPum为优先级种类,在RFC标准中,有8个优先级,所以IPPum=8。由定义可知,IPP的范围是0~7,IPPum取值为8,因此IPP<IPPum,数据优先级β∈[0,1)。可通过β判断数据优先级,β越大,数据优先级越高。Among them, IPP∈{0,1,2,3,4,5,6,7} represents the sending priority of IP packets. The larger the value, the higher the priority. IPP um is a priority type. In the RFC standard, there are 8 priorities, so IPP um =8. It can be known from the definition that the range of IPP is 0 to 7, and the value of IPP um is 8, so IPP<IPP um , and the data priority is β∈[0,1). The data priority can be judged by β. The larger the β, the higher the data priority.
RFC 1323引入了IP报文可选字段中的时间戳(TimeStamp)选项。当时间戳选项的标志字段(FL)为3时,就可以记录发送端的IP地址以及生成数据包的时间。当有数据包到达IP层时,除了提取该数据包的优先级,还需提取该数据包时间戳选项中与源地址相同的IP地址对应的时间戳。在时钟同步的前提下,发送端或转发节点通过当前时钟时间与时间戳选项记录的数据包发送时间之差得到数据包的传输时间,用Ttrans表示。发送端或者转发节点通过与接收端通信获取该节点与接收端之间链路的往返延时(Round-Trip Time,RTT)。RFC 1323 introduced the TimeStamp option in the optional field of IP packets. When the flag field (FL) of the timestamp option is 3, the IP address of the sender and the time when the data packet is generated can be recorded. When a packet arrives at the IP layer, in addition to extracting the priority of the packet, it is also necessary to extract the timestamp corresponding to the IP address that is the same as the source address in the timestamp option of the packet. Under the premise of clock synchronization, the sender or forwarding node obtains the transmission time of the data packet by using the difference between the current clock time and the data packet transmission time recorded by the timestamp option, which is represented by T trans . The sending end or the forwarding node obtains the round-trip delay (Round-Trip Time, RTT) of the link between the node and the receiving end by communicating with the receiving end.
步骤3.计算状态参数。根据步骤2获得的往返延时和步骤1得到的优先级数据包的最大传输时延计算切换条件中的待发送队列数据包的平均已传输时间的最值,表达式如下:Step 3. Calculate the state parameters. According to the round-trip delay obtained in step 2 and the maximum transmission delay of priority data packets obtained in step 1, the maximum value of the average elapsed time of the queue data packets to be sent in the switching condition is calculated, and the expression is as follows:
其中,为该数据包对应优先级数据包的最大传输时延,RTT为该节点与接收端之间的往返时延,m为待发送队列中数据包数(m≤M,M为待发送队列总长度),mIPP为待发送队列中该数据包对应优先级的数据包个数,Rmax、Rmin为系数,经实验确定,其取值范围为80%≤Rmax≤90%,40%≤Rmin≤60%时性能较佳。in, is the maximum transmission delay of the data packet corresponding to the priority data packet, RTT is the round-trip delay between the node and the receiver, m is the number of data packets in the queue to be sent (m≤M, M is the total length of the queue to be sent) ), m IPP is the number of data packets corresponding to the priority of the data packet in the queue to be sent, R max and R min are coefficients, which are determined by experiments, and their value ranges are 80% ≤Rmax≤90 %, 40%≤ The performance is better when R min ≤ 60%.
接着计算当前待发送队列数据包的平均已传输时间。Then calculate the average elapsed time of the queue data packets to be sent.
定义3平均已传输时间(T)用以表示当前待发送队列中数据包的延迟情况。其表达式如下:Definition 3 The average transmission time (T) is used to represent the delay of the data packets in the queue to be sent currently. Its expression is as follows:
当前待发送队列的IP报文的平均已传输时间T由数据优先级β、传输时间Ttrans和待发送队列中数据包数m(m≤M,M为待发送队列总长度)共同决定,高优先级数据包的已传输时间在计算中所占比例要大于低优先级的数据包。T越大,表明当前待发送队列中接近最大传输时延的数据包数越多,待发送程度越紧急。The current average transmission time T of IP packets in the queue to be sent is jointly determined by the data priority β, the transmission time T trans , and the number of packets m in the queue to be sent (m≤M, M is the total length of the queue to be sent), and the high The elapsed time of priority packets accounts for a larger proportion of the calculation than lower priority packets. The larger T is, the more data packets in the queue to be sent are close to the maximum transmission delay, and the more urgent the waiting is.
步骤4.子系统切换判断。根据当前所处子系统判断是否满足切换条件,优先级优先子系统切换到时间优先子系统的切换条件为待发送队列中存在即将超时数据包此离散事件的发生,或者系统的状态参数待发送队列的平均已传输时间高于最大值;时间优先子系统切换到优先级优先子系统的切换条件为平均已传输低于最小值,或者在平均已传输时间低于最大值的情况下,当前待发送队列中含有控制数据包。Step 4. Subsystem switching judgment. According to the current subsystem to determine whether the switching condition is satisfied, the switching condition for the priority priority subsystem to switch to the time priority subsystem is the occurrence of the discrete event of a packet about to timeout in the queue to be sent, or the status parameter of the system to the queue to be sent. The average transmitted time is higher than the maximum value; the switching condition for the time priority subsystem to switch to the priority priority subsystem is that the average transmitted time is lower than the minimum value, or when the average transmitted time is lower than the maximum value, the current queue to be sent contains control packets.
当数据包的传输时间(Ttrans)满足如下表达式时认为其即将超时:When the transmission time (T trans ) of a data packet satisfies the following expression, it is considered to be about to time out:
其中,为该数据包对应优先级数据包的最大传输时延,RTT为该节点与接收端之间的往返时延。in, is the maximum transmission delay of the data packet corresponding to the priority data packet, and RTT is the round-trip delay between the node and the receiver.
如果满足切换条件则进行子系统的切换,再根据切换后子系统的待发送队列中数据包的排序规则将新接收的数据包插入到待发送队列的合适位置;如果不满足切换条件,则直接根据当前子系统的待发送队列中数据包的排序规则将新接收的数据包插入到待发送队列的合适位置。If the switching conditions are met, the subsystem will be switched, and then the newly received data packets will be inserted into the appropriate position of the queue to be sent according to the ordering rules of the packets in the queue to be sent after the switching; if the switching conditions are not met, directly Insert the newly received data packet into the appropriate position of the to-be-sent queue according to the ordering rules of the data packets in the to-be-sent queue of the current subsystem.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110010472.5A CN112822268B (en) | 2021-01-06 | 2021-01-06 | A method for multi-service coexistence and IP layer data packet scheduling in the Industrial Internet of Things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110010472.5A CN112822268B (en) | 2021-01-06 | 2021-01-06 | A method for multi-service coexistence and IP layer data packet scheduling in the Industrial Internet of Things |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112822268A CN112822268A (en) | 2021-05-18 |
CN112822268B true CN112822268B (en) | 2021-11-16 |
Family
ID=75857505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110010472.5A Expired - Fee Related CN112822268B (en) | 2021-01-06 | 2021-01-06 | A method for multi-service coexistence and IP layer data packet scheduling in the Industrial Internet of Things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112822268B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113904994B (en) * | 2021-09-30 | 2024-03-19 | 天翼数字生活科技有限公司 | Method for uniformly reporting big data of home gateway to platform |
CN114035930B (en) * | 2021-11-29 | 2024-05-10 | 重庆大学 | Method and device for task scheduling, electronic equipment and readable storage medium |
CN114500511B (en) * | 2022-01-29 | 2023-12-26 | 联想(北京)有限公司 | Data transmission method and device and electronic equipment |
CN115883474B (en) * | 2022-11-11 | 2024-12-06 | 国网河北省电力有限公司信息通信分公司 | Power network traffic service classification method, device, terminal and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6188698B1 (en) * | 1997-12-31 | 2001-02-13 | Cisco Technology, Inc. | Multiple-criteria queueing and transmission scheduling system for multimedia networks |
EP1089500A2 (en) * | 1999-09-30 | 2001-04-04 | Nortel Networks Limited | Fair packet scheduler and scheduling method for packet data radio |
CN101442778A (en) * | 2008-12-23 | 2009-05-27 | 上海无线通信研究中心 | Scheduling method of high speed wireless personal network protocol based on channel |
CN102970763A (en) * | 2012-11-01 | 2013-03-13 | 大唐移动通信设备有限公司 | Resource scheduling method and device based on service qualities |
CN103514037A (en) * | 2012-06-21 | 2014-01-15 | 中兴通讯股份有限公司 | Task scheduling processing method and device |
CN103973593A (en) * | 2014-05-09 | 2014-08-06 | 中国电子科技集团公司第三十研究所 | IP voice dispatching method |
CN104038966A (en) * | 2013-03-05 | 2014-09-10 | 华为技术有限公司 | Data flow scheduling method and apparatus under long term evolution network |
CN104734991A (en) * | 2013-12-19 | 2015-06-24 | 中国科学院沈阳自动化研究所 | End-to-end time delay guarantee transmission scheduling method oriented to industrial backhaul network |
CN107431667A (en) * | 2015-03-20 | 2017-12-01 | 阿尔卡特朗讯公司 | Packet is dispatched in the network device |
CN108200601A (en) * | 2017-11-30 | 2018-06-22 | 大连理工大学 | A multi-link selection method based on data priority, link status and traffic flow density |
-
2021
- 2021-01-06 CN CN202110010472.5A patent/CN112822268B/en not_active Expired - Fee Related
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6188698B1 (en) * | 1997-12-31 | 2001-02-13 | Cisco Technology, Inc. | Multiple-criteria queueing and transmission scheduling system for multimedia networks |
EP1089500A2 (en) * | 1999-09-30 | 2001-04-04 | Nortel Networks Limited | Fair packet scheduler and scheduling method for packet data radio |
CN101442778A (en) * | 2008-12-23 | 2009-05-27 | 上海无线通信研究中心 | Scheduling method of high speed wireless personal network protocol based on channel |
CN103514037A (en) * | 2012-06-21 | 2014-01-15 | 中兴通讯股份有限公司 | Task scheduling processing method and device |
CN102970763A (en) * | 2012-11-01 | 2013-03-13 | 大唐移动通信设备有限公司 | Resource scheduling method and device based on service qualities |
CN104038966A (en) * | 2013-03-05 | 2014-09-10 | 华为技术有限公司 | Data flow scheduling method and apparatus under long term evolution network |
CN104734991A (en) * | 2013-12-19 | 2015-06-24 | 中国科学院沈阳自动化研究所 | End-to-end time delay guarantee transmission scheduling method oriented to industrial backhaul network |
CN103973593A (en) * | 2014-05-09 | 2014-08-06 | 中国电子科技集团公司第三十研究所 | IP voice dispatching method |
CN107431667A (en) * | 2015-03-20 | 2017-12-01 | 阿尔卡特朗讯公司 | Packet is dispatched in the network device |
CN108200601A (en) * | 2017-11-30 | 2018-06-22 | 大连理工大学 | A multi-link selection method based on data priority, link status and traffic flow density |
Non-Patent Citations (2)
Title |
---|
802.16 Qos调度和越区切换优化研究;郭舒婷;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20120215(第2期);全文 * |
QoE-driven and traffic-flow-density-based link scheduling algorithm in LLC protocol for HetVNETs;N. Ding等;《2018 IEEE International Conference on Smart Internet of Things (SmartIoT)》;20180917;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112822268A (en) | 2021-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112822268B (en) | A method for multi-service coexistence and IP layer data packet scheduling in the Industrial Internet of Things | |
CN111431822A (en) | Deterministic time delay service intelligent scheduling and control implementation method | |
WO2023273385A1 (en) | 5g and tsn joint scheduling method based on wireless channel information | |
US7502317B2 (en) | Method for differentiating services and users in communication networks | |
CN108566341B (en) | Flow control method in SD-WAN (secure digital-Wide area network) environment | |
CN101552726B (en) | A Hierarchical Service Edge Router | |
CN104836750B (en) | A kind of data center network stream scheduling method based on round-robin | |
CN114666280B (en) | Industrial Internet time delay optimization method based on time-sensitive software defined network | |
CN102752192B (en) | Bandwidth allocation method of forwarding and control element separation (ForCES) transmission mapping layer based on stream control transmission protocol (SCTP) | |
CN105490962A (en) | QoS management method based on OpenFlow network | |
WO2020104005A1 (en) | Signalling of dejittering buffer capabilities for tsn integration | |
CN108667746B (en) | Method for realizing service priority in deep space delay tolerant network | |
Imtiaz et al. | Approaches to reduce the latency for high priority traffic in IEEE 802.1 AVB networks | |
CN114884811A (en) | Method for realizing centralized user configuration of time-sensitive network | |
CN114221912A (en) | A time-sensitive network access method for aperiodic time-triggered service flow | |
CN116170380B (en) | ECN marking strategy and queue management method and system based on congestion prediction | |
CN116828623A (en) | Data packet multi-path scheduling device and method | |
CN114745309B (en) | Micro burst detection and elimination method and system based on programmable data plane | |
Ambrosy et al. | 5G packet delay considerations for different 5G-TSN communication scenarios | |
CN101212417A (en) | A Time Granularity-Based Internet Service Quality Assurance Method | |
Fu et al. | A survey of traffic shaping technology in internet of things | |
CN102469510A (en) | Content-aware active queue management (AQM) method for 3rd generation (3G) network video transmission | |
CN109327406A (en) | A method for quality of service assurance for differential queue service queue data packets | |
CN114629847B (en) | Coupled multi-stream TCP congestion control method based on available bandwidth allocation | |
Jindal et al. | Congestion Control Framework in Ad-Hoc Wireless using Neural Networks in QoS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20211116 |
|
CF01 | Termination of patent right due to non-payment of annual fee |