[go: up one dir, main page]

CN111917664A - A queue management method and system - Google Patents

A queue management method and system Download PDF

Info

Publication number
CN111917664A
CN111917664A CN202010616343.6A CN202010616343A CN111917664A CN 111917664 A CN111917664 A CN 111917664A CN 202010616343 A CN202010616343 A CN 202010616343A CN 111917664 A CN111917664 A CN 111917664A
Authority
CN
China
Prior art keywords
priority
queue
multicast
broadcast
message
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.)
Pending
Application number
CN202010616343.6A
Other languages
Chinese (zh)
Inventor
高峥
赵辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hannuo Semiconductor Technology Co ltd
Original Assignee
Beijing Hannuo Semiconductor Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hannuo Semiconductor Technology Co ltd filed Critical Beijing Hannuo Semiconductor Technology Co ltd
Priority to CN202010616343.6A priority Critical patent/CN111917664A/en
Publication of CN111917664A publication Critical patent/CN111917664A/en
Pending legal-status Critical Current

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/527Quantum based scheduling, e.g. credit or deficit based scheduling or token bank
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
    • 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/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue 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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种队列管理方法及系统,该方法包括:将进入所述二层网络中的报文进行分类,生成不同类型的报文;其中,所述不同类型的报文包括单播报文、组播报文和广播报文;针对二层网络中不同类型的报文设置不同的报文队列;将所述不同类型的报文分别存储至所述不同的报文队列中;对所述不同类型的报文进行预处理,生成预处理后的报文;将所述预处理后的报文按照所述报文的优先级与预先设置的权重值进行出队列调度。该方法通过对不同报文队列中的报文进行预处理,保证了不同类型的报文之间互不影响,在拥塞的情况下对单播、组播和广播的有效管理,有效利用了二层网络上的宽带,避免不必要的宽带浪费,缓解了网络拥塞,提高了宽带的利用率。

Figure 202010616343

The invention discloses a queue management method and system. The method includes: classifying packets entering the layer 2 network to generate different types of packets; wherein, the different types of packets include unicast packets , multicast messages and broadcast messages; set up different message queues for different types of messages in the Layer 2 network; store the different types of messages in the different message queues respectively; Different types of messages are preprocessed to generate preprocessed messages; the preprocessed messages are scheduled out of the queue according to the priority of the message and the preset weight value. By preprocessing the packets in different packet queues, the method ensures that different types of packets do not affect each other, effectively manages unicast, multicast and broadcast in the case of congestion, and effectively utilizes two The broadband on the layer network can avoid unnecessary waste of broadband, relieve network congestion, and improve the utilization of broadband.

Figure 202010616343

Description

一种队列管理方法及系统A queue management method and system

技术领域technical field

本发明涉及QoS保证技术领域,具体是一种队列管理方法及系统。The invention relates to the technical field of QoS guarantee, in particular to a queue management method and system.

背景技术Background technique

随着互联网技术的告诉发展,电子邮件、网上冲浪、ERP系统、VoIP视频会议等各种计算机应用系统也得到了快速的发展和广泛的应用,强大的服务性能以及不断提高的桌面计算机处理能力,使得应用程序对网络宽带的需求也越来越大。由于缺乏有效的宽带管理手段,各种计算机应用程序无序地抢占宽带资源,使得一些网络上关键应用得不到正常的运行,导致整个网络效率的降低,甚至发生网络拥塞。With the development of Internet technology, various computer application systems such as e-mail, web surfing, ERP system, VoIP video conferencing have also been rapidly developed and widely used, with powerful service performance and continuously improved desktop computer processing capabilities. The demand for network bandwidth for applications is also increasing. Due to the lack of effective bandwidth management methods, various computer applications preempt broadband resources disorderly, so that some key applications on the network cannot run normally, resulting in a reduction in the efficiency of the entire network and even network congestion.

目前,在计算机数据通信过程中当没有发生网络拥塞时,报文到达接口立即发送出去,当报文到达的速度超过接口发送报文的速度时,接口发生网络拥塞时,对网络拥塞进行管理的方法为使用队列技术,即将报文进行分类,送入不同的队列中,对不同的队列进行队列调度来缓解网络拥塞。At present, in the process of computer data communication, when there is no network congestion, the packet arrives at the interface and is sent out immediately. When the speed of the packet arrival exceeds the speed at which the interface sends packets, the network congestion occurs on the interface, and the network congestion is managed. The method is to use queuing technology, that is, to classify packets, send them to different queues, and perform queue scheduling on different queues to relieve network congestion.

但是,使用队列技术需要不断地增加网络宽带来满足各种应用的宽带需求,花费大量金钱进行的宽带升级措施往往带来的效果并不明显,因为仅仅增加了网络宽带而不进行有效的管理、分配,结果还是不能确保新增加的宽带资源分配给哪些关键应用程序使用,也无法为网络提供有效的QoS保证。However, using the queuing technology needs to continuously increase the network bandwidth to meet the bandwidth requirements of various applications. The broadband upgrade measures that cost a lot of money often bring little effect, because only the network bandwidth is increased without effective management and management. As a result, it still cannot ensure which key applications the newly increased broadband resources are allocated to, and cannot provide effective QoS guarantee for the network.

因此,如何缓解网络拥塞,对网络宽带进行有效管理,提高宽带的利用率是本领域技术人员亟待解决的问题。Therefore, how to alleviate the network congestion, effectively manage the network bandwidth, and improve the utilization rate of the bandwidth is an urgent problem to be solved by those skilled in the art.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本发明的目的是为了解决仅仅增加了网络宽带不能确保新增加的宽带资源分配给哪些关键应用程序使用,也无法为网络提供有效的QoS保证,宽带利用率低的问题。In view of the above problems, the purpose of the present invention is to solve the problem that only increasing the network bandwidth can not ensure which key applications the newly increased broadband resources are allocated to, and cannot provide effective QoS guarantee for the network, and the bandwidth utilization rate is low.

本发明实施例提供一种队列管理方法,包括:An embodiment of the present invention provides a queue management method, including:

按照报文类型将进入二层网络中的报文进行分类,所述报文类型包括单播报文、组播报文和广播报文;classifying the packets entering the Layer 2 network according to the packet types, where the packet types include unicast packets, multicast packets and broadcast packets;

针对二层网络中不同类型的报文设置不同的报文队列,并将所述报文分别存储至相应报文类型的报文队列中;Different message queues are set for different types of messages in the Layer 2 network, and the messages are respectively stored in the message queues of the corresponding message types;

统计存储至所述不同的报文队列中各类报文的数量,将所述各类报文的数量累加值与最大报文存储数量进行比较,当所述数量累加值大于所述最大报文存储数量时,对出队列的所述各类报文进行缓冲,并统计所述出队列的各类报文的数量;Counting the number of various types of messages stored in the different message queues, and comparing the accumulated value of the number of the various types of messages with the maximum number of messages stored, when the accumulated value of the number is greater than the maximum number of messages When storing the number, buffer the various types of messages that are out of the queue, and count the numbers of the various types of messages that are out of the queue;

对出队列的所述各类报文的数量进行反馈,根据反馈的各类报文的数量调整令牌的下发周期;Feedback on the number of the various types of packets that are sent out of the queue, and adjust the token issuing cycle according to the number of the various types of packets fed back;

基于调整后令牌的下发周期,将所述令牌相应分配给所述各类报文;Allocate the tokens to the various types of messages correspondingly based on the adjusted token issuance cycle;

根据为所述组播报文与所述广播报文分配的令牌分别对所述组播报文与所述广播报文进行队列级别调度;respectively perform queue-level scheduling on the multicast message and the broadcast message according to the tokens allocated for the multicast message and the broadcast message;

按照相应报文队列的优先级与预先设置的权重值对各类报文进行出队列调度。According to the priority of the corresponding packet queue and the preset weight value, various types of packets are scheduled out of the queue.

在一个实施例中,所述报文队列,包括:单播队列、组播队列和广播队列;In one embodiment, the message queue includes: a unicast queue, a multicast queue, and a broadcast queue;

所述单播队列包括单播高优先级队列和单播低优先级队列;The unicast queue includes a unicast high priority queue and a unicast low priority queue;

所述组播队列包括组播高优先级前级队列、组播高优先级后级队列、组播低优先级前级队列和组播低优先级后级队列;The multicast queue includes a multicast high-priority front-level queue, a multicast high-priority rear-level queue, a multicast low-priority front-level queue, and a multicast low-priority rear-level queue;

所述广播队列包括广播高优先级前级队列、广播高优先级后级队列、广播低优先级前级队列和广播低优先级后级队列。The broadcast queue includes a broadcast high-priority pre-queue, a broadcast high-priority post-queue, a broadcast low-priority pre-queue, and a broadcast low-priority post-queue.

在一个实施例中,所述将所述不同类型的报文分别存储至所述不同的报文队列中,包括:In one embodiment, the storing of the different types of packets in the different packet queues includes:

分别对所述单播报文、所述组播报文和所述广播报文的优先级进行判断;respectively judge the priority of the unicast message, the multicast message and the broadcast message;

若所述单播报文为高优先级,则将高优先级单播报文存储至所述单播高优先级队列,反之,则将低优先级单播报文存储至所述单播低优先级队列;If the unicast packet has a high priority, store the high-priority unicast packet in the unicast high-priority queue; otherwise, store the low-priority unicast packet in the unicast low-priority queue ;

若所述组播报文为高优先级,则将高优先级组播报文存储至所述组播高优先级前级队列,反之,则将低优先级组播报文存储至所述组播低优先前级队列;If the multicast packet has a high priority, the high-priority multicast packet is stored in the multicast high-priority front-level queue; otherwise, the low-priority multicast packet is stored in the group broadcast low-priority front-end queue;

若所述广播报文为高优先级,则将高优先级广播报文存储至所述广播高优先级前级队列,反之,则将低优先级广播报文存储至所述广播低优先前级队列。If the broadcast message has a high priority, the high-priority broadcast message is stored in the broadcast high-priority front-level queue; otherwise, the low-priority broadcast message is stored in the broadcast low-priority front-level queue. queue.

在一个实施例中,所述根据为所述组播报文与所述广播报文分配的令牌分别对所述组播报文与所述广播报文进行队列级别调度,包括:In an embodiment, the performing queue-level scheduling on the multicast packet and the broadcast packet according to the tokens allocated for the multicast packet and the broadcast packet, respectively, includes:

分别将分配给所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量与令牌盈余反压值进行比较;respectively comparing the surplus quantity of tokens allocated to the high-priority multicast message and the high-priority broadcast message with the token surplus back pressure value;

若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别大于令牌盈余反压值,则分别增加所述低优先级组播报文和所述低优先级广播报文的令牌数量;If the surplus quantity of tokens in the high-priority multicast packet and the high-priority broadcast packet is larger than the token surplus backpressure value, respectively, increase the low-priority multicast packet and the low-priority multicast packet. The number of tokens of the priority broadcast message;

将所述低优先级组播报文的令牌的盈余数量与所述组播低优先级前级队列中的第一个组播报文的长度进行比较;comparing the surplus number of tokens of the low-priority multicast message with the length of the first multicast message in the multicast low-priority front-level queue;

若所述低优先级组播报文的令牌的盈余数量大于所述组播低优先级前级队列中的第一个组播报文的长度,则将所述低优先级组播报文存储至所述组播低优先级后级队列;If the surplus number of tokens of the low-priority multicast packet is greater than the length of the first multicast packet in the multicast low-priority preceding queue, the low-priority multicast packet stored in the multicast low-priority rear-level queue;

将所述低优先级广播报文的令牌的盈余数量与所述广播低优先级前级队列中的第一个广播报文的长度进行比较;comparing the surplus number of tokens of the low-priority broadcast message with the length of the first broadcast message in the broadcast low-priority front-level queue;

若所述低优先级广播报文的令牌的盈余数量大于所述广播低优先级前级队列中的第一个广播报文的长度,则将所述低优先级广播报文存储至所述广播低优先级后级队列。If the surplus number of tokens of the low-priority broadcast message is greater than the length of the first broadcast message in the broadcast low-priority preceding queue, the low-priority broadcast message is stored in the Broadcast low-priority back-level queues.

在一个实施例中,所述根据为所述组播报文与所述广播报文分配的令牌分别对所述组播报文与所述广播报文进行队列级别调度,还包括:In one embodiment, the performing queue-level scheduling on the multicast packet and the broadcast packet according to the tokens allocated for the multicast packet and the broadcast packet, further includes:

若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别小于令牌盈余反压值,则分别增加所述高优先级组播报文和所述高优先级广播报文的令牌数量;If the surplus quantity of tokens in the high-priority multicast packet and the high-priority broadcast packet is smaller than the token surplus backpressure value, respectively increase the high-priority multicast packet and the high-priority broadcast packet. The number of tokens of the priority broadcast message;

将所述高优先级组播报文的令牌的盈余数量和所述组播高优先级前级队列中的第一个组播报文的长度进行比较;comparing the surplus number of tokens of the high-priority multicast message with the length of the first multicast message in the multicast high-priority front-level queue;

若所述高优先级组播报文的令牌的盈余数量大于所述组播高优先级前级队列中的第一个组播报文的长度,则将所述高优先级组播报文从所述组播高优先级前级队列出队,进入所述组播高优先级后级队列;If the surplus number of tokens of the high-priority multicast packet is greater than the length of the first multicast packet in the preceding queue of the multicast high-priority packet, the high-priority multicast packet Dequeue from the multicast high-priority front-level queue and enter the multicast high-priority rear-level queue;

将所述高优先级广播报文的令牌的盈余数量和所述广播高优先级前级队列中的第一个广播报文的长度进行比较;comparing the surplus number of tokens of the high-priority broadcast message with the length of the first broadcast message in the broadcast high-priority front-level queue;

若所述高优先级广播报文的令牌的盈余数量大于所述广播高优先级前级队列中的第一个广播报文的长度,则将所述高优先级广播报文从所述广播高优先级前级队列出队,进入所述广播高优先级后级队列。If the surplus number of tokens of the high-priority broadcast packet is greater than the length of the first broadcast packet in the broadcast high-priority preceding queue, the high-priority broadcast packet is removed from the broadcast packet. The high-priority front-level queue is dequeued and enters the broadcast high-priority rear-level queue.

第二方面,本发明还提供一种队列管理系统,包括:In a second aspect, the present invention also provides a queue management system, comprising:

分类模块,用于按照报文类型将进入二层网络中的报文进行分类,所述报文类型包括单播报文、组播报文和广播报文;a classification module, configured to classify the packets entering the Layer 2 network according to the packet types, where the packet types include unicast packets, multicast packets and broadcast packets;

存储模块,用于针对二层网络中不同类型的报文设置不同的报文队列,并将所述报文分别存储至相应报文类型的报文队列中;a storage module, configured to set different message queues for different types of messages in the Layer 2 network, and store the messages in message queues of corresponding message types respectively;

比较模块,用于统计存储至所述不同的报文队列中各类报文的数量,将所述各类报文的数量累加值与最大报文存储数量进行比较,当所述数量累加值大于所述最大报文存储数量时,对出队列的所述各类报文进行缓冲,并统计所述出队列的各类报文的数量;A comparison module, configured to count the number of various types of messages stored in the different message queues, and compare the accumulated value of the number of the various types of messages with the maximum number of stored messages, when the accumulated value of the number is greater than When the maximum number of messages is stored, buffering the various types of messages out of the queue, and counts the numbers of the various types of messages out of the queue;

分配模块,用于对出队列的所述各类报文的数量进行反馈,根据反馈的各类报文的数量调整令牌的下发周期;an allocation module, configured to feed back the number of the various types of messages that are sent out of the queue, and adjust the token issuing cycle according to the number of the various types of messages fed back;

队列级别调度模块,用于根据为所述组播报文与所述广播报文分配的令牌分别对所述组播报文与所述广播报文进行队列级别调度;a queue-level scheduling module, configured to perform queue-level scheduling on the multicast message and the broadcast message respectively according to the tokens allocated for the multicast message and the broadcast message;

出队列调度模块,用于按照相应报文队列的优先级与预先设置的权重值对各类报文进行出队列调度。The out-queue scheduling module is used for out-queue scheduling of various types of messages according to the priority of the corresponding message queue and the preset weight value.

在一个实施例中,所述存储模块中的所述报文队列,包括:单播队列、组播队列和广播队列;In one embodiment, the message queue in the storage module includes: a unicast queue, a multicast queue and a broadcast queue;

所述单播队列包括单播高优先级队列和单播低优先级队列;The unicast queue includes a unicast high priority queue and a unicast low priority queue;

所述组播队列包括组播高优先级前级队列、组播高优先级后级队列、组播低优先级前级队列和组播低优先级后级队列;The multicast queue includes a multicast high-priority front-level queue, a multicast high-priority rear-level queue, a multicast low-priority front-level queue, and a multicast low-priority rear-level queue;

所述广播队列包括广播高优先级前级队列、广播高优先级后级队列、广播低优先级前级队列和广播低优先级后级队列。The broadcast queue includes a broadcast high-priority pre-queue, a broadcast high-priority post-queue, a broadcast low-priority pre-queue, and a broadcast low-priority post-queue.

在一个实施例中,所述存储模块,包括:In one embodiment, the storage module includes:

优先级判断单元,用于分别对所述单播报文、所述组播报文和所述广播报文的优先级进行判断;a priority judging unit, configured to judge the priorities of the unicast message, the multicast message and the broadcast message respectively;

单播报文存储单元,用于若所述单播报文为高优先级,则将高优先级单播报文存储至所述单播高优先级队列,反之,则将低优先级单播报文存储至所述单播低优先级队列;The unicast message storage unit is used to store the high-priority unicast message in the unicast high-priority queue if the unicast message is high-priority; otherwise, store the low-priority unicast message in the unicast high-priority queue. the unicast low priority queue;

组播报文存储单元,用于若所述组播报文为高优先级,则将高优先级组播报文存储至所述组播高优先级前级队列,反之,则将低优先级组播报文存储至所述组播低优先前级队列;A multicast message storage unit, configured to store the high-priority multicast message in the multicast high-priority front-level queue if the multicast message is of high priority, otherwise, store the low-priority multicast message The multicast message is stored in the multicast low-priority front-end queue;

广播报文存储单元,用于若所述广播报文为高优先级,则将高优先级广播报文存储至所述广播高优先级前级队列,反之,则将低优先级广播报文存储至所述广播低优先前级队列。A broadcast message storage unit, configured to store the high-priority broadcast message in the broadcast high-priority front-level queue if the broadcast message is of high priority, and otherwise, store the low-priority broadcast message to the broadcast low-priority front-end queue.

在一个实施例中,所述队列级别调度模块,包括:In one embodiment, the queue-level scheduling module includes:

高优先级比较单元,用于分别将分配给所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量与令牌盈余反压值进行比较;a high-priority comparison unit, configured to respectively compare the surplus quantity of tokens allocated to the high-priority multicast message and the high-priority broadcast message with the token surplus back pressure value;

低优先级令牌增加单元,用于若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别大于令牌盈余反压值,则分别增加所述低优先级组播报文和所述低优先级广播报文的令牌数量;A low-priority token adding unit, configured to increase the low-priority token if the surplus quantity of tokens of the high-priority multicast packet and the high-priority broadcast packet is greater than the token surplus back pressure value, respectively. the number of tokens of the priority multicast message and the low-priority broadcast message;

低优先级组播比较单元,用于将所述低优先级组播报文的令牌的盈余数量与所述组播低优先级前级队列中的第一个组播报文的长度进行比较;A low-priority multicast comparison unit, configured to compare the surplus number of tokens of the low-priority multicast packet with the length of the first multicast packet in the multicast low-priority front-level queue ;

低优先级组播报文存储单元,用于若所述低优先级组播报文的令牌的盈余数量大于所述组播低优先级前级队列中的第一个组播报文的长度,则将所述低优先级组播报文存储至所述组播低优先级后级队列;A low-priority multicast message storage unit, used for if the surplus number of tokens of the low-priority multicast message is greater than the length of the first multicast message in the multicast low-priority preceding queue , the low-priority multicast message is stored in the multicast low-priority rear-level queue;

低优先级广播比较单元,用于将所述低优先级广播报文的令牌的盈余数量与所述广播低优先级前级队列中的第一个广播报文的长度进行比较;a low-priority broadcast comparison unit, configured to compare the surplus number of tokens of the low-priority broadcast message with the length of the first broadcast message in the broadcast low-priority front-level queue;

低优先级广播报文存储单元,用于若所述低优先级广播报文的令牌的盈余数量大于所述广播低优先级前级队列中的第一个广播报文的长度,则将所述低优先级广播报文存储至所述广播低优先级后级队列。The low-priority broadcast message storage unit is used to store the token value of the low-priority broadcast message if the surplus quantity of the token of the low-priority broadcast message is greater than the length of the first broadcast message in the broadcast low-priority front-level queue. The low-priority broadcast message is stored in the broadcast low-priority post-level queue.

在一个实施例中,所述队列级别调度模块,还包括:In one embodiment, the queue-level scheduling module further includes:

高优先级令牌增加单元,用于若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别小于令牌盈余反压值,则分别增加所述高优先级组播报文和所述高优先级广播报文的令牌数量;A high-priority token adding unit, configured to increase the high-priority multicast packet and the high-priority broadcast packet respectively if the surplus quantity of tokens of the high-priority broadcast packet is smaller than the token surplus back pressure value, respectively. the number of tokens of the priority multicast message and the high-priority broadcast message;

高优先级组播比较单元,用于将所述高优先级组播报文的令牌的盈余数量和所述组播高优先级前级队列中的第一个组播报文的长度进行比较;A high-priority multicast comparison unit, configured to compare the surplus number of tokens of the high-priority multicast message with the length of the first multicast message in the multicast high-priority front-level queue ;

高优先级组播报文出队单元,用于若所述高优先级组播报文的令牌的盈余数量大于所述组播高优先级前级队列中的第一个组播报文的长度,则将所述高优先级组播报文从所述组播高优先级前级队列出队,进入所述组播高优先级后级队列;The high-priority multicast packet dequeue unit is used if the surplus number of tokens of the high-priority multicast packet is greater than the first multicast packet in the multicast high-priority front-level queue. length, the high-priority multicast message is dequeued from the multicast high-priority front-level queue and enters the multicast high-priority rear-level queue;

高优先级广播比较单元,用于将所述高优先级广播报文的令牌的盈余数量和所述广播高优先级前级队列中的第一个广播报文的长度进行比较;a high-priority broadcast comparison unit, configured to compare the surplus number of tokens of the high-priority broadcast message with the length of the first broadcast message in the broadcast high-priority front-level queue;

高优先级广播报文出队单元,用于若所述高优先级广播报文的令牌的盈余数量大于所述广播高优先级前级队列中的第一个广播报文的长度,则将所述高优先级广播报文从所述广播高优先级前级队列出队,进入所述广播高优先级后级队列。The high-priority broadcast message dequeuing unit is used to send the high-priority broadcast message to the queue if the surplus number of tokens of the high-priority broadcast message is greater than the length of the first broadcast message in the broadcast high-priority front-level queue. The high-priority broadcast packet is dequeued from the broadcast high-priority pre-queue and enters the broadcast high-priority post-queue.

本发明实施例提供的上述技术方案的有益效果至少包括:The beneficial effects of the above technical solutions provided by the embodiments of the present invention include at least:

本发明实施例提供的一种队列管理方法,本方法通过对不同报文队列中的报文进行预处理,保证了不同类型的报文之间互不影响,在拥塞的情况下对单播、组播和广播的有效管理,有效利用了二层网络上的宽带,避免不必要的宽带浪费,缓解了网络拥塞,提高了宽带的利用率,实现了在拥塞情况下对各个类型的报文进行全局掌握,保证了Qos的正确性。A queue management method provided by an embodiment of the present invention ensures that different types of packets do not affect each other by preprocessing packets in different packet queues, and in the case of congestion, unicast, The effective management of multicast and broadcast effectively utilizes the bandwidth on the Layer 2 network, avoids unnecessary bandwidth waste, eases network congestion, improves bandwidth utilization, and enables various types of packets to be processed under congestion. The global mastery ensures the correctness of QoS.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description, claims, and drawings.

下面通过附图和实施例,对本发明的技术方案做进一步地详细描述。The technical solutions of the present invention will be described in further detail below through the accompanying drawings and embodiments.

附图说明Description of drawings

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the specification, and are used to explain the present invention together with the embodiments of the present invention, and do not constitute a limitation to the present invention. In the attached image:

图1为本发明实施例提供的一种队列管理方法的流程图;1 is a flowchart of a queue management method provided by an embodiment of the present invention;

图2为本发明实施例提供的步骤S102流程图;FIG. 2 is a flowchart of step S102 provided by an embodiment of the present invention;

图3为本发明实施例提供的对所述组播报文进行调度处理的流程图;FIG. 3 is a flowchart of scheduling processing of the multicast packet provided by an embodiment of the present invention;

图4为本发明实施例提供的对所述广播报文进行调度处理的流程图;4 is a flowchart of scheduling processing of the broadcast message provided by an embodiment of the present invention;

图5为本发明实施例提供的一种队列管理系统的框图。FIG. 5 is a block diagram of a queue management system according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

参照图1所示,本发明实施例提供的一种队列管理方法,该方法包括:步骤S101~S107;Referring to FIG. 1, a queue management method provided by an embodiment of the present invention includes: steps S101-S107;

S101、按照报文类型将进入二层网络中的报文进行分类,所述报文类型包括单播报文、组播报文和广播报文;S101. Classify packets entering the Layer 2 network according to packet types, where the packet types include unicast packets, multicast packets, and broadcast packets;

具体的,根据二层网络中的报文对应的MAC地址进行分类。Specifically, the classification is performed according to the MAC addresses corresponding to the packets in the Layer 2 network.

S102、针对二层网络中不同类型的报文设置不同的报文队列,并将所述报文分别存储至相应报文类型的报文队列中;S102, setting different message queues for different types of messages in the Layer 2 network, and storing the messages in message queues of corresponding message types respectively;

具体的,上述不同的报文队列,包括:单播队列、组播队列和广播队列;Specifically, the above-mentioned different message queues include: unicast queues, multicast queues, and broadcast queues;

所述单播队列包括单播高优先级队列和单播低优先级队列;The unicast queue includes a unicast high priority queue and a unicast low priority queue;

所述组播队列包括组播高优先级前级队列、组播高优先级后级队列、组播低优先级前级队列和组播低优先级后级队列;The multicast queue includes a multicast high-priority front-level queue, a multicast high-priority rear-level queue, a multicast low-priority front-level queue, and a multicast low-priority rear-level queue;

所述广播队列包括广播高优先级前级队列、广播高优先级后级队列、广播低优先级前级队列和广播低优先级后级队列。The broadcast queue includes a broadcast high-priority pre-queue, a broadcast high-priority post-queue, a broadcast low-priority pre-queue, and a broadcast low-priority post-queue.

S103、统计存储至所述不同的报文队列中各类报文的数量,将所述各类报文的数量累加值与最大报文存储数量进行比较,当所述数量累加值大于所述最大报文存储数量时,对出队列的所述各类报文进行缓冲,并统计所述出队列的各类报文的数量。S103. Count the number of various types of messages stored in the different message queues, and compare the accumulated value of the number of the various types of messages with the maximum number of stored messages, and when the accumulated value of the number is greater than the maximum number of messages When the number of messages is stored, buffering the various types of messages exiting the queue, and counting the numbers of the various types of messages exiting the queue.

具体的,上述各类报文指:单播报文、组播报文与广播报文。Specifically, the above-mentioned types of messages refer to: unicast messages, multicast messages, and broadcast messages.

进一步地,当所述各类报文的数量的累加值小于所述预设的数量反压值时,按照默认的下发周期下发令牌。Further, when the cumulative value of the number of the various types of messages is less than the preset number of backpressure values, the token is issued according to the default issuing cycle.

进一步地,上述令牌为采用一种能够控制站点占有媒体的特殊帧,以区别数据帧及其他控制帧。Further, the above token is a special frame that can control the station to occupy the media, so as to distinguish the data frame from other control frames.

进一步地,当各类报文进行出队列与入队列时,各类报文的数量累加值会发生变化,可以设置当各类报文的数量累加值每更新一次,则将比较一次数量累加值与最大报文存储量。Further, when various types of packets are queued and entered, the accumulated value of the number of various types of packets will change. It can be set that when the accumulated value of the number of various types of packets is updated once, the accumulated value of the number will be compared once. and the maximum message storage capacity.

S104、对出队列的所述各类报文的数量进行反馈,根据反馈的各类报文的数量调整令牌的下发周期。S104. Feedback on the quantity of the various types of packets that are out of the queue, and adjust the token issuing cycle according to the feedback quantity of the various types of packets.

具体的,将出队列的各类报文的报文长度与令牌大小进行比较,当出队列的报文长度的大小不足一个令牌的大小时,就将该报文长度记录下来等后续的出队列的各类报文,直至报文长度够一个令牌的大小后再进行反馈,主控芯片每接收到反馈的一个令牌信息,就下发一次令牌。Specifically, compare the packet lengths of the various types of packets out of the queue with the token size, and when the size of the outgoing packets is less than the size of one token, record the packet length and wait for subsequent All kinds of messages out of the queue will be fed back until the message length is enough for one token. The main control chip will issue a token every time it receives a token message.

S105、基于调整后令牌的下发周期,将所述令牌相应分配给所述各类报文。S105. Based on the adjusted issuance period of the token, allocate the token to the various types of messages accordingly.

S106、根据为所述组播报文与所述广播报文分配的令牌分别对所述组播报文与所述广播报文进行队列级别调度。S106. Perform queue-level scheduling on the multicast packet and the broadcast packet respectively according to the tokens allocated for the multicast packet and the broadcast packet.

具体的,上述令牌通过令牌桶算法控制各类报文的出队列调度,上述令牌桶这种控制机制基于令牌桶中是否存在令牌来指示什么时候可以发送流量,令牌桶中的每一个令牌都代表一个字节,如果令牌桶中存在令牌,则允许发送流量;而如果令牌桶中不存在令牌,则不允许发送流量。Specifically, the above token controls the out-queue scheduling of various types of packets through the token bucket algorithm. The above token bucket control mechanism indicates when traffic can be sent based on whether there is a token in the token bucket. Each token in the token represents a byte. If there is a token in the token bucket, traffic is allowed to be sent; if there is no token in the token bucket, traffic is not allowed.

进一步地,当组播报文高优先级前级队列与广播报文高优先级前级队列中有报文且有令牌,则将组播报文与广播报文放入组播报文高优先级后级队列与广播报文高优先级后级队列中,否则继续暂存高优先级前级队列中,同理,组播报文低优先级前级队列与广播报文低优先级前级队列中的各类报文按照上述方法进行级别调度。Further, when there are packets and tokens in the high-priority pre-queue of multicast packets and the high-priority pre-queue of broadcast packets, the multicast packets and broadcast packets are put into the multicast packet high-priority queue. Priority post queue and broadcast message high-priority post-queue, otherwise, continue to temporarily store in high-priority pre-queue. Similarly, multicast packet low-priority pre-queue and broadcast message low-priority pre-queue Various types of packets in the level queue are scheduled according to the above method.

其中,前级队列中有报文则表示存在能够出队的报文,但是该报文是否受令牌的控制从前级队列中出队并不确定,所以,通过判断前级队列中是否有报文且该报文是否受令牌的控制来达到限速的目的,限制报文存储至后级队列进行出队列调度时造成拥堵,影响Qos效果。Among them, if there is a packet in the previous-level queue, it means that there is a packet that can be dequeued, but it is uncertain whether the packet is dequeued from the previous-level queue under the control of the token. Therefore, by judging whether there is a packet in the previous-level queue. and whether the packet is controlled by the token to achieve the purpose of speed limiting, and restricting the storage of the packet to the post-level queue for out-queue scheduling will cause congestion and affect the QoS effect.

S107、按照相应报文队列的优先级与预先设置的权重值对所述各类报文进行出队列调度。S107. Perform out-queue scheduling on the various types of packets according to the priority of the corresponding packet queue and the preset weight value.

具体的,上述预先设置的权重值由高到低的排序依次为:单播报文、组播报文、广播报文;Specifically, the order of the above preset weight values from high to low is: unicast packets, multicast packets, and broadcast packets;

进一步地,优先调度所述单播报文出队列,其中,首先调度上述单播高优先级队列中的高优先级单播报文,再调度单播低优先级队列中的低优先级单播报文;Further, scheduling the unicast message out of the queue is prioritized, wherein first, the high-priority unicast message in the above-mentioned unicast high-priority queue is scheduled, and then the low-priority unicast message in the unicast low-priority queue is scheduled;

进一步地,其次调度所述组播报文出队列,其中,首先调度上述组播高优先级队列中的高优先级组播报文,(对于高优先级组播报文,优先调度组播高优先级前级队列中的高优先级组播报文,其次调度组播高优先级后级队列中的高优先级组播报文),再调度组播低优先级队列中的低优先级组播报文(对于低优先级组播报文,优先调度组播低优先级前级队列中的低优先级组播报文,其次调度组播低优先级后级队列中的低优先级组播报文);Further, secondly, schedule the multicast packets out of the queue, wherein firstly schedule the high-priority multicast packets in the above-mentioned multicast high-priority queues, (for high-priority multicast packets, schedule multicast high-priority packets first. The high-priority multicast packets in the pre-priority queue, then the high-priority multicast packets in the high-priority post-queue, and then the low-priority group in the multicast low-priority queue. Broadcast packets (for low-priority multicast packets, the low-priority multicast packets in the low-priority front-level queue are scheduled first, and then the low-priority multicast packets in the low-priority rear-level queue are scheduled to be multicast. message);

进一步地,最后调度所述广播报文出队列,其中,首先调度上述广播高优先级队列中的高优先级广播报文,(对于高优先级广播报文,优先调度广播高优先级前级队列中的高优先级广播报文,其次调度广播高优先级后级队列中的高优先级广播报文),再调度广播低优先级队列中的低优先级广播报文(对于低优先级广播报文,优先调度广播低优先级前级队列中的低优先级广播报文,其次调度广播低优先级后级队列中的低优先级广播报文);Further, the broadcast message is finally scheduled to go out of the queue, wherein the high-priority broadcast message in the above-mentioned broadcast high-priority queue is first scheduled, (for high-priority broadcast messages, the broadcast high-priority front-level queue is preferentially scheduled. The high-priority broadcast packets in the high-priority queue are scheduled to broadcast secondly), and then the low-priority broadcast packets in the low-priority queue are scheduled to broadcast (for low-priority broadcast packets) The priority is to schedule and broadcast the low-priority broadcast packets in the low-priority front-level queue, and then schedule and broadcast the low-priority broadcast packets in the low-priority rear-level queue);

进一步地,若查询到上述报文队列中无报文时,跳过该队列按照上述顺序仅需传输下一报文队列中的报文。Further, if it is found that there is no message in the above-mentioned message queue, skip the queue and only need to transmit the message in the next message queue according to the above-mentioned order.

本实施例中,通过对出队列的报文进行反馈,进而调整令牌的下发周期,当超过数量反压值后,可以降低令牌的下发速度,减小了流量的突发和对报文缓冲的冲击,可以使报文以均匀的速度向外发送。并且通过对不同报文队列中的报文进行预处理,保证了不同类型的报文之间互不影响,在拥塞的情况下对单播、组播和广播的有效管理,有效利用了二层网络上的宽带,避免不必要的宽带浪费,缓解了网络拥塞,提高了宽带的利用率,实现了在拥塞情况下对各个类型的报文进行全局掌握,保证了Qos的正确性。In this embodiment, by feeding back the outgoing packets, the token issuing cycle is adjusted, and when the number of backpressure is exceeded, the token issuing speed can be reduced, which reduces the burst of traffic and the impact on the traffic. The impact of packet buffering can cause packets to be sent out at a uniform speed. And by preprocessing the packets in different packet queues, it ensures that different types of packets do not affect each other, effectively manages unicast, multicast and broadcast in the case of congestion, and effectively utilizes Layer 2 The broadband on the network avoids unnecessary waste of bandwidth, relieves network congestion, improves the utilization rate of broadband, realizes the global control of various types of packets in the case of congestion, and ensures the correctness of QoS.

在一个实施例中,参照图2所示,上述步骤S102中所述将所述不同类型的报文分别存储至所述不同的报文队列中,包括:In one embodiment, referring to FIG. 2 , the storing of the different types of messages in the different message queues in the foregoing step S102 includes:

S1021、分别对所述单播报文、所述组播报文和所述广播报文的优先级进行判断;S1021. Judge the priorities of the unicast packet, the multicast packet and the broadcast packet respectively;

具体的,根据所述单播报文、所述组播报文和所述广播报文根据报文的不同需求对优先级进行判断;例如,将需要紧急传输,时延性强的报文设置为高优先级,将对传输要求低,延时性低的报文设置为低优先级。Specifically, according to the unicast message, the multicast message and the broadcast message, the priority is judged according to different requirements of the message; for example, the message that needs urgent transmission and has strong delay is set to high Priority, set the low priority for the packets with low transmission requirements and low latency.

S1022、若所述单播报文为高优先级,则将高优先级单播报文存储至所述单播高优先级队列,反之,则将低优先级单播报文存储至所述单播低优先级队列;S1022. If the unicast packet has a high priority, store the high-priority unicast packet in the unicast high-priority queue; otherwise, store the low-priority unicast packet in the unicast low-priority queue level queue;

S1023、若所述组播报文为高优先级,则将高优先级组播报文存储至所述组播高优先级前级队列,反之,则将低优先级组播报文存储至所述组播低优先前级队列;S1023. If the multicast packet has a high priority, store the high-priority multicast packet in the multicast high-priority front-level queue; otherwise, store the low-priority multicast packet in the high-priority multicast packet. The multicast low-priority front-end queue described above;

S1024、若所述广播报文为高优先级,则将高优先级广播报文存储至所述广播高优先级前级队列,反之,则将低优先级广播报文存储至所述广播低优先前级队列。S1024. If the broadcast message has a high priority, store the high-priority broadcast message in the broadcast high-priority front-level queue; otherwise, store the low-priority broadcast message in the broadcast low-priority queue front-end queue.

在一个实施例中,参照图3-4所示,上述步骤S106中所述根据为所述组播报文与所述广播报文分配的令牌分别对所述组播报文与所述广播报文进行队列级别调度,包括:In one embodiment, referring to FIGS. 3-4 , in the foregoing step S106, the multicast packet and the broadcast packet are respectively evaluated according to the tokens allocated for the multicast packet and the broadcast packet. Packets are scheduled at the queue level, including:

分别将分配给所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量与令牌盈余反压值进行比较。The surplus quantity of tokens allocated to the high-priority multicast message and the high-priority broadcast message is compared with the token surplus back pressure value, respectively.

具体的,上述令牌的盈余数量指当前的令牌的数量。Specifically, the above-mentioned surplus quantity of tokens refers to the current quantity of tokens.

若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别大于令牌盈余反压值,则分别增加所述低优先级组播报文和所述低优先级广播报文的令牌数量。If the surplus quantity of tokens in the high-priority multicast packet and the high-priority broadcast packet is larger than the token surplus backpressure value, respectively, increase the low-priority multicast packet and the low-priority multicast packet. Number of tokens for priority broadcast packets.

将所述低优先级组播报文的令牌的盈余数量与所述组播低优先级前级队列中的第一个组播报文的长度进行比较。The surplus number of tokens of the low-priority multicast packet is compared with the length of the first multicast packet in the multicast low-priority front-level queue.

若所述低优先级组播报文的令牌的盈余数量大于所述组播低优先级前级队列中的第一个组播报文的长度,则将所述低优先级组播报文存储至所述组播低优先级后级队列;If the surplus number of tokens of the low-priority multicast packet is greater than the length of the first multicast packet in the multicast low-priority preceding queue, the low-priority multicast packet is stored in the multicast low-priority rear-level queue;

进一步地,若所述低优先级组播报文的令牌的盈余数量小于所述组播低优先级前级队列中的第一个组播报文的长度,则所述低优先级组播报文依旧存储至所述组播低优先级前级队列。Further, if the surplus number of tokens of the low-priority multicast packet is less than the length of the first multicast packet in the multicast low-priority preceding queue, the low-priority multicast The message is still stored in the multicast low-priority front-level queue.

将所述低优先级广播报文的令牌的盈余数量与所述广播低优先级前级队列中的第一个广播报文的长度进行比较。The surplus number of tokens of the low-priority broadcast message is compared with the length of the first broadcast message in the broadcast low-priority preceding queue.

若所述低优先级广播报文的令牌的盈余数量大于所述广播低优先级前级队列中的第一个广播报文的长度,则将所述低优先级广播报文存储至所述广播低优先级后级队列;If the surplus number of tokens of the low-priority broadcast message is greater than the length of the first broadcast message in the broadcast low-priority preceding queue, the low-priority broadcast message is stored in the Broadcast low-priority rear-level queues;

进一步地,若所述低优先级广播报文的令牌的盈余数量小于所述广播低优先级前级队列中的第一个广播报文的长度,则所述低优先级广播报文依旧存储所述广播低优先级前级队列。Further, if the surplus number of tokens of the low-priority broadcast message is less than the length of the first broadcast message in the broadcast low-priority front-level queue, the low-priority broadcast message is still stored. The broadcast low-priority front-level queue.

在本实施例中,在前级队列中有报文则表示存在出队的报文,但是该报文能不能从前级队列中受令牌的控制进行出队并不确定,因此,将令牌的盈余数量与前级队列中的第一个广播报文的长度进行比较来判断前级队列中的报文是否有令牌,从而达到限速的目的,以限制报文通过后给后级队列造成拥堵,影响Qos的效果。In this embodiment, if there is a packet in the previous-level queue, it means that there is a dequeued packet, but it is uncertain whether the packet can be dequeued from the previous-level queue under the control of the token. Compare the surplus number of the previous-level queue with the length of the first broadcast message in the front-level queue to determine whether the message in the front-level queue has a token, so as to achieve the purpose of speed limit, and limit the message to the back-level queue after passing through. Cause congestion and affect the effect of QoS.

在一个实施例中,参照图3-4所示,上述步骤S106,还包括:In one embodiment, referring to FIGS. 3-4 , the above step S106 further includes:

若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别小于令牌盈余反压值,则分别增加所述高优先级组播报文和所述高优先级广播报文的令牌数量。If the surplus quantity of tokens in the high-priority multicast packet and the high-priority broadcast packet is smaller than the token surplus backpressure value, respectively increase the high-priority multicast packet and the high-priority broadcast packet. Number of tokens for priority broadcast packets.

将所述高优先级组播报文的令牌的盈余数量和所述组播高优先级前级队列中的第一个组播报文的长度进行比较。Compare the surplus number of tokens of the high-priority multicast message with the length of the first multicast message in the multicast high-priority front-level queue.

若所述高优先级组播报文的令牌的盈余数量大于所述组播高优先级前级队列中的第一个组播报文的长度,则将所述高优先级组播报文从所述组播高优先级前级队列出队,进入所述组播高优先级后级队列;If the surplus number of tokens of the high-priority multicast packet is greater than the length of the first multicast packet in the preceding queue of the multicast high-priority packet, the high-priority multicast packet Dequeue from the multicast high-priority front-level queue and enter the multicast high-priority rear-level queue;

进一步地,若所述高优先级组播报文的令牌的盈余数量小于所述组播高优先级前级队列中的第一个组播报文的长度,则所述高优先级组播报文依旧存储至所述组播高优先级前级队列。Further, if the surplus number of tokens of the high-priority multicast packet is less than the length of the first multicast packet in the high-priority pre-multicast queue, the high-priority multicast The message is still stored in the multicast high-priority front-level queue.

将所述高优先级广播报文的令牌的盈余数量和所述广播高优先级前级队列中的第一个广播报文的长度进行比较。Compare the surplus number of tokens of the high-priority broadcast message with the length of the first broadcast message in the broadcast high-priority preceding queue.

若所述高优先级广播报文的令牌的盈余数量大于所述广播高优先级前级队列中的第一个广播报文的长度,则将所述高优先级广播报文从所述广播高优先级前级队列出队,进入所述广播高优先级后级队列;If the surplus number of tokens of the high-priority broadcast packet is greater than the length of the first broadcast packet in the broadcast high-priority preceding queue, the high-priority broadcast packet is removed from the broadcast packet. The high-priority front-level queue is dequeued and enters the broadcast high-priority rear-level queue;

进一步地,若所述高优先级广播报文的令牌的盈余数量小于所述广播高优先级前级队列中的第一个广播报文的长度,则所述高优先级广播报文依旧存储至所述广播高优先级前级队列。Further, if the surplus number of tokens of the high-priority broadcast message is less than the length of the first broadcast message in the broadcast high-priority front-level queue, the high-priority broadcast message is still stored. to the broadcast high-priority front-level queue.

本实施中,通过对组播报文与广播报文的调度处理,即对组播报文和广播报文的令牌盈余数量与令牌盈余反压值进行比较判定,达到了限速的目的,即限制报文通过后给相应的报文队列造成拥堵,影响通信效果的缺点,缓解了网络拥塞,保证了Qos效果。In this implementation, through the scheduling processing of multicast packets and broadcast packets, that is, the number of token surpluses of multicast packets and broadcast packets and the value of token surplus back pressure are compared and determined, so as to achieve the purpose of speed limit. , that is, restricting the shortcoming of congesting the corresponding packet queue after passing the packet and affecting the communication effect, alleviating the network congestion and ensuring the QoS effect.

基于同一发明构思,本发明实施例还提供了一种队列管理系统,由于该装置所解决问题的原理与前述一种队列管理方法相似,因此该装置的实施可以参见前述方法的实施,重复之处不再赘述。Based on the same inventive concept, an embodiment of the present invention also provides a queue management system. Since the principle of the problem solved by the device is similar to that of the aforementioned queue management method, the implementation of the device can refer to the implementation of the aforementioned method, and the repetitions are repeated. No longer.

本发明实施例提供的一种队列管理系统,参照图5所示,包括:A queue management system provided by an embodiment of the present invention, as shown in FIG. 5 , includes:

分类模块51,用于按照报文类型将进入二层网络中的报文进行分类,所述报文类型包括单播报文、组播报文和广播报文;The classification module 51 is configured to classify the packets entering the Layer 2 network according to the packet types, where the packet types include unicast packets, multicast packets and broadcast packets;

具体的,根据二层网络中的报文对应的MAC地址进行分类。Specifically, the classification is performed according to the MAC addresses corresponding to the packets in the Layer 2 network.

存储模块52,用于针对二层网络中不同类型的报文设置不同的报文队列,并将所述报文分别存储至相应报文类型的报文队列中。The storage module 52 is configured to set different message queues for different types of messages in the Layer 2 network, and store the messages in message queues of corresponding message types respectively.

比较模块53,用于统计存储至所述不同的报文队列中各类报文的数量,将所述各类报文的数量累加值与最大报文存储数量进行比较,当所述数量累加值大于所述最大报文存储数量时,对出队列的所述各类报文进行缓冲,并统计所述出队列的各类报文的数量;The comparison module 53 is configured to count the number of various types of messages stored in the different message queues, and compare the accumulated value of the number of the various types of messages with the maximum number of stored messages. When the accumulated value of the number is When it is greater than the maximum number of messages stored, buffering the various types of messages out of the queue, and count the numbers of the various types of messages out of the queue;

具体的,上述各类报文指:单播报文、组播报文与广播报文。Specifically, the above-mentioned types of messages refer to: unicast messages, multicast messages, and broadcast messages.

进一步地,当所述各类报文的数量的累加值小于所述预设的数量反压值时,按照默认的下发周期下发令牌;Further, when the cumulative value of the number of the various types of messages is less than the preset number of backpressure values, the token is issued according to the default issuing cycle;

进一步地,具体的,上述令牌可以采用令牌的形式,即采用一种能够控制站点占有媒体的特殊帧,以区别数据帧及其他控制帧。Further, specifically, the above token may be in the form of a token, that is, a special frame that can control the station to occupy the media, so as to distinguish the data frame from other control frames.

反馈模块54,用于反馈模块,用于对出队列的所述各类报文的数量进行反馈,根据反馈的各类报文的数量调整令牌的下发周期。The feedback module 54 is used for the feedback module, and is used for feeding back the quantity of the various types of messages that are out of the queue, and adjusting the token issuing cycle according to the feedback quantity of the various types of messages.

分配模块55,用于基于调整后令牌的下发周期,将所述令牌相应分配给所述各类报文。The allocation module 55 is configured to allocate the tokens to the various types of messages correspondingly based on the adjusted issuance period of the tokens.

队列级别调度模块56,用于根据为所述组播报文与所述广播报文分配的令牌分别对所述组播报文与所述广播报文进行队列级别调度。The queue-level scheduling module 56 is configured to perform queue-level scheduling on the multicast packet and the broadcast packet according to the tokens allocated for the multicast packet and the broadcast packet, respectively.

出队列调度模块57,用于按照相应报文队列的优先级与预先设置的权重值对各类报文进行出队列调度;The out-queue scheduling module 57 is configured to perform out-queue scheduling for various types of messages according to the priority of the corresponding message queue and the preset weight value;

具体的,上述预先设置的权重值由高到低的排序依次为:单播报文、组播报文、广播报文;Specifically, the order of the above preset weight values from high to low is: unicast packets, multicast packets, and broadcast packets;

进一步地,优先调度所述单播报文出队列,其中,首先调度上述单播高优先级队列中的高优先级单播报文,再调度单播低优先级队列中的低优先级单播报文;Further, scheduling the unicast message out of the queue is prioritized, wherein first, the high-priority unicast message in the above-mentioned unicast high-priority queue is scheduled, and then the low-priority unicast message in the unicast low-priority queue is scheduled;

进一步地,其次调度所述组播报文出队列,其中,首先调度上述组播高优先级队列中的高优先级组播报文,(对于高优先级组播报文,优先调度组播高优先级前级队列中的高优先级组播报文,其次调度组播高优先级后级队列中的高优先级组播报文),再调度组播低优先级队列中的低优先级组播报文(对于低优先级组播报文,优先调度组播低优先级前级队列中的低优先级组播报文,其次调度组播低优先级后级队列中的低优先级组播报文);Further, secondly, schedule the multicast packets out of the queue, wherein firstly schedule the high-priority multicast packets in the above-mentioned multicast high-priority queues, (for high-priority multicast packets, schedule multicast high-priority packets first. The high-priority multicast packets in the pre-priority queue, then the high-priority multicast packets in the high-priority post-queue, and then the low-priority group in the multicast low-priority queue. Broadcast packets (for low-priority multicast packets, the low-priority multicast packets in the low-priority front-level queue are scheduled first, and then the low-priority multicast packets in the low-priority rear-level queue are scheduled to be multicast. message);

进一步地,最后调度所述广播报文出队列,其中,首先调度上述广播高优先级队列中的高优先级广播报文,(对于高优先级广播报文,优先调度广播高优先级前级队列中的高优先级广播报文,其次调度广播高优先级后级队列中的高优先级广播报文),再调度广播低优先级队列中的低优先级广播报文(对于低优先级广播报文,优先调度广播低优先级前级队列中的低优先级广播报文,其次调度广播低优先级后级队列中的低优先级广播报文);Further, the broadcast message is finally scheduled out of the queue, wherein the high-priority broadcast message in the above-mentioned broadcast high-priority queue is first scheduled, (for the high-priority broadcast message, the broadcast high-priority front-level queue is preferentially scheduled. The high-priority broadcast packets in the high-priority queue are scheduled to broadcast secondly), and then the low-priority broadcast packets in the low-priority queue are scheduled to broadcast (for low-priority broadcast packets) The priority is to schedule and broadcast the low-priority broadcast packets in the low-priority front-level queue, and then schedule and broadcast the low-priority broadcast packets in the low-priority rear-level queue);

进一步地,若查询到上述报文队列中无报文时,跳过该队列按照上述顺序仅需传输下一报文队列中的报文。Further, if it is found that there is no message in the above-mentioned message queue, skip the queue and only need to transmit the message in the next message queue according to the above-mentioned order.

在一个实施例中,所述存储模块52中的所述不同的报文队列,包括:单播队列、组播队列和广播队列;In one embodiment, the different message queues in the storage module 52 include: a unicast queue, a multicast queue, and a broadcast queue;

所述单播队列包括单播高优先级队列和单播低优先级队列;The unicast queue includes a unicast high priority queue and a unicast low priority queue;

所述组播队列包括组播高优先级前级队列、组播高优先级后级队列、组播低优先级前级队列和组播低优先级后级队列;The multicast queue includes a multicast high-priority front-level queue, a multicast high-priority rear-level queue, a multicast low-priority front-level queue, and a multicast low-priority rear-level queue;

所述广播队列包括广播高优先级前级队列、广播高优先级后级队列、广播低优先级前级队列和广播低优先级后级队列。The broadcast queue includes a broadcast high-priority pre-queue, a broadcast high-priority post-queue, a broadcast low-priority pre-queue, and a broadcast low-priority post-queue.

在一个实施例中,所述存储模块52,包括:In one embodiment, the storage module 52 includes:

优先级判断单元521,用于分别对所述单播报文、所述组播报文和所述广播报文的优先级进行判断;a priority judging unit 521, configured to judge the priorities of the unicast message, the multicast message and the broadcast message respectively;

具体的,根据所述单播报文、所述组播报文和所述广播报文根据报文的不同需求对优先级进行判断。Specifically, the priority is determined according to the unicast packet, the multicast packet and the broadcast packet according to different requirements of the packets.

单播报文存储单元522,用于若所述单播报文为高优先级,则将高优先级单播报文存储至所述单播高优先级队列,反之,则将低优先级单播报文存储至所述单播低优先级队列。The unicast message storage unit 522 is configured to store the high-priority unicast message in the unicast high-priority queue if the unicast message is of high priority; otherwise, store the low-priority unicast message to the unicast low priority queue.

组播报文存储单元523,用于若所述组播报文为高优先级,则将高优先级组播报文存储至所述组播高优先级前级队列,反之,则将低优先级组播报文存储至所述组播低优先前级队列。The multicast message storage unit 523 is configured to store the high-priority multicast message in the multicast high-priority front-level queue if the multicast message is of high priority, and otherwise, store the low-priority multicast message The first-level multicast packets are stored in the multicast low-priority front-level queue.

广播报文存储单元524,用于若所述广播报文为高优先级,则将高优先级广播报文存储至所述广播高优先级前级队列,反之,则将低优先级广播报文存储至所述广播低优先前级队列。The broadcast message storage unit 524 is configured to store the high-priority broadcast message in the broadcast high-priority front-level queue if the broadcast message is of high priority; otherwise, store the low-priority broadcast message Stored in the broadcast low-priority front-end queue.

在一个实施例中,所述队列级别调度模块56,包括:In one embodiment, the queue-level scheduling module 56 includes:

高优先级比较单元561,用于分别将分配给所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量与令牌盈余反压值进行比较;a high-priority comparison unit 561, configured to compare the surplus quantity of tokens allocated to the high-priority multicast message and the high-priority broadcast message with the token surplus back pressure value;

低优先级令牌增加单元562,用于若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别大于令牌盈余反压值,则分别增加所述低优先级组播报文和所述低优先级广播报文的令牌数量;The low-priority token adding unit 562 is configured to increase the token surplus back pressure value of the high-priority multicast packet and the high-priority broadcast packet respectively if the surplus quantity of the token is greater than the token surplus backpressure value, respectively. the number of tokens of the low-priority multicast message and the low-priority broadcast message;

低优先级组播比较单元563,用于将所述低优先级组播报文的令牌的盈余数量与所述组播低优先级前级队列中的第一个组播报文的长度进行比较;The low-priority multicast comparison unit 563 is configured to compare the surplus number of tokens of the low-priority multicast packet with the length of the first multicast packet in the multicast low-priority preceding queue. Compare;

低优先级组播报文存储单元564,用于若所述低优先级组播报文的令牌的盈余数量大于所述组播低优先级前级队列中的第一个组播报文的长度,则将所述低优先级组播报文存储至所述组播低优先级后级队列;The low-priority multicast message storage unit 564 is configured to, if the surplus number of tokens of the low-priority multicast message is greater than the first multicast message in the multicast low-priority front-level queue length, the low-priority multicast message is stored in the multicast low-priority rear-level queue;

低优先级广播比较单元565,用于将所述低优先级广播报文的令牌的盈余数量与所述广播低优先级前级队列中的第一个广播报文的长度进行比较;a low-priority broadcast comparison unit 565, configured to compare the surplus number of tokens of the low-priority broadcast message with the length of the first broadcast message in the broadcast low-priority preceding queue;

低优先级广播报文存储单元566,用于若所述低优先级广播报文的令牌的盈余数量大于所述广播低优先级前级队列中的第一个广播报文的长度,则将所述低优先级广播报文存储至所述广播低优先级后级队列。The low-priority broadcast message storage unit 566 is configured to, if the surplus number of tokens of the low-priority broadcast message is greater than the length of the first broadcast message in the broadcast low-priority preceding queue, store the The low-priority broadcast message is stored in the broadcast low-priority post-level queue.

在一个实施例中,所述调度单元56,还包括:In one embodiment, the scheduling unit 56 further includes:

高优先级令牌增加单元567,用于若所述高优先级组播报文和所述高优先级广播报文的令牌的盈余数量分别小于令牌盈余反压值,则分别增加所述高优先级组播报文和所述高优先级广播报文的令牌数量;The high-priority token adding unit 567 is configured to increase the token surplus back pressure value of the high-priority multicast packet and the high-priority broadcast packet respectively if the surplus quantity of the tokens of the high-priority broadcast packet is smaller than the token surplus the number of tokens of the high-priority multicast message and the high-priority broadcast message;

高优先级组播比较单元568,用于将所述高优先级组播报文的令牌的盈余数量和所述组播高优先级前级队列中的第一个组播报文的长度进行比较;The high-priority multicast comparison unit 568 is configured to compare the surplus number of tokens of the high-priority multicast packet and the length of the first multicast packet in the multicast high-priority front-level queue. Compare;

高优先级组播报文出队单元569,用于若所述高优先级组播报文的令牌的盈余数量大于所述组播高优先级前级队列中的第一个组播报文的长度,则将所述高优先级组播报文从所述组播高优先级前级队列出队,进入所述组播高优先级后级队列;The high-priority multicast packet dequeue unit 569 is used for if the surplus number of tokens of the high-priority multicast packet is greater than the first multicast packet in the multicast high-priority front-level queue The length of the high-priority multicast message is dequeued from the multicast high-priority front-level queue and enters the multicast high-priority rear-level queue;

高优先级广播比较单元570,用于将所述高优先级广播报文的令牌的盈余数量和所述广播高优先级前级队列中的第一个广播报文的长度进行比较;a high-priority broadcast comparison unit 570, configured to compare the surplus number of tokens of the high-priority broadcast message with the length of the first broadcast message in the broadcast high-priority preceding queue;

高优先级广播报文出队单元571,用于若所述高优先级广播报文的令牌的盈余数量大于所述广播高优先级前级队列中的第一个广播报文的长度,则将所述高优先级广播报文从所述广播高优先级前级队列出队,进入所述广播高优先级后级队列。The high-priority broadcast message dequeue unit 571 is configured to, if the surplus number of tokens of the high-priority broadcast message is greater than the length of the first broadcast message in the broadcast high-priority front-level queue, then Dequeue the high-priority broadcast message from the broadcast high-priority pre-queue and enter the broadcast high-priority post-queue.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (10)

1. A method of queue management, comprising:
classifying messages entering a two-layer network according to message types, wherein the message types comprise unicast messages, multicast messages and broadcast messages;
setting different message queues aiming at different types of messages in a two-layer network, and respectively storing the messages into the message queues of corresponding message types;
counting the number of various messages stored in the different message queues, comparing the accumulated value of the number of various messages with the maximum message storage number, when the accumulated value of the number is greater than the maximum message storage number, buffering various messages which are out of the queues, and counting the number of various messages which are out of the queues;
feeding back the number of the various messages of the queue, and adjusting the issuing period of the token according to the number of the various messages fed back;
correspondingly distributing the tokens to the various messages based on the adjusted issuing period of the tokens;
respectively carrying out queue level scheduling on the multicast message and the broadcast message according to the tokens distributed to the multicast message and the broadcast message;
and performing dequeue scheduling on the various messages according to the priority of the corresponding message queue and the preset weight value.
2. The system of claim 1, wherein the message queue comprises: a unicast queue, a multicast queue and a broadcast queue;
the unicast queues comprise a unicast high-priority queue and a unicast low-priority queue;
the multicast queues comprise a multicast high-priority preceding queue, a multicast high-priority subsequent queue, a multicast low-priority preceding queue and a multicast low-priority subsequent queue;
the broadcast queues include a broadcast high priority pre-queue, a broadcast high priority post-queue, a broadcast low priority pre-queue, and a broadcast low priority post-queue.
3. The method of claim 2, wherein the storing the different types of packets into the different packet queues respectively comprises:
judging the priority of the unicast message, the multicast message and the broadcast message respectively;
if the unicast message is of high priority, storing the unicast message of high priority into the unicast high priority queue, otherwise, storing the unicast message of low priority into the unicast low priority queue;
if the multicast message is of high priority, storing the multicast message of high priority to the preceding queue of high priority of multicast, otherwise, storing the multicast message of low priority to the preceding queue of low priority of multicast;
if the broadcast message is of high priority, storing the broadcast message of high priority to the pre-queue of high priority of broadcast, otherwise, storing the broadcast message of low priority to the pre-queue of low priority of broadcast.
4. The method of claim 1, wherein the performing queue level scheduling for the multicast packets and the broadcast packets according to the tokens allocated for the multicast packets and the broadcast packets, respectively, comprises:
respectively comparing the surplus quantity of the tokens distributed to the high-priority multicast message and the high-priority broadcast message with the surplus token backpressure value;
if the surplus number of the tokens of the high-priority multicast message and the high-priority broadcast message is respectively greater than the surplus counter-pressure value of the tokens, respectively increasing the token number of the low-priority multicast message and the token number of the low-priority broadcast message;
comparing the surplus number of the tokens of the low-priority multicast message with the length of the first multicast message in the multicast low-priority preceding-stage queue;
if the surplus number of the tokens of the low-priority multicast message is larger than the length of the first multicast message in the multicast low-priority preceding-stage queue, storing the low-priority multicast message to the multicast low-priority subsequent-stage queue;
comparing the surplus number of tokens of the low-priority broadcast message with the length of the first broadcast message in the broadcast low-priority pre-stage queue;
and if the surplus number of the tokens of the low-priority broadcast message is greater than the length of the first broadcast message in the broadcast low-priority front-stage queue, storing the low-priority broadcast message to the broadcast low-priority rear-stage queue.
5. The method of claim 4, wherein the performing queue level scheduling on the multicast packets and the broadcast packets according to the tokens allocated to the multicast packets and the broadcast packets, respectively, further comprises:
if the surplus number of the tokens of the high-priority multicast message and the high-priority broadcast message is respectively smaller than the surplus counter-pressure value of the tokens, respectively increasing the token number of the high-priority multicast message and the high-priority broadcast message;
comparing the surplus number of the tokens of the high-priority multicast message with the length of the first multicast message in the multicast high-priority preceding-stage queue;
if the surplus number of the tokens of the high-priority multicast message is larger than the length of the first multicast message in the multicast high-priority preceding queue, dequeuing the high-priority multicast message from the multicast high-priority preceding queue and entering the multicast high-priority subsequent queue;
comparing the surplus number of the tokens of the high-priority broadcast message with the length of the first broadcast message in the broadcast high-priority pre-stage queue;
and if the surplus number of the tokens of the high-priority broadcast message is greater than the length of the first broadcast message in the broadcast high-priority preceding-stage queue, dequeuing the high-priority broadcast message from the broadcast high-priority preceding-stage queue and entering the broadcast high-priority subsequent-stage queue.
6. A queue management system, comprising:
the classification module is used for classifying the messages entering the two-layer network according to message types, wherein the message types comprise unicast messages, multicast messages and broadcast messages;
the storage module is used for setting different message queues aiming at different types of messages in the two-layer network and respectively storing the messages into the message queues of corresponding message types;
the comparison module is used for counting the number of various messages stored in the different message queues, comparing the accumulated value of the number of various messages with the maximum message storage number, buffering various messages going out of the queues when the accumulated value of the number is greater than the maximum message storage number, and counting the number of various messages going out of the queues;
the feedback module is used for feeding back the number of the various messages out of the queue and adjusting the issuing period of the token according to the number of the various messages fed back;
the distribution module is used for correspondingly distributing the tokens to the various messages based on the adjusted issuing period of the tokens;
a queue level scheduling module, configured to perform queue level scheduling on the multicast packet and the broadcast packet according to the tokens allocated to the multicast packet and the broadcast packet;
and the dequeue scheduling module is used for dequeuing and scheduling various messages according to the priority of the corresponding message queue and the preset weight value.
7. The system of claim 6, wherein the message queue in the storage module comprises: a unicast queue, a multicast queue and a broadcast queue;
the unicast queues comprise a unicast high-priority queue and a unicast low-priority queue;
the multicast queues comprise a multicast high-priority preceding queue, a multicast high-priority subsequent queue, a multicast low-priority preceding queue and a multicast low-priority subsequent queue;
the broadcast queues include a broadcast high priority pre-queue, a broadcast high priority post-queue, a broadcast low priority pre-queue, and a broadcast low priority post-queue.
8. The system of claim 7, wherein the storage module comprises:
a priority judging unit, configured to respectively judge priorities of the unicast packet, the multicast packet, and the broadcast packet;
a unicast message storage unit, configured to store a high-priority unicast message to the unicast high-priority queue if the unicast message is of a high priority, and store a low-priority unicast message to the unicast low-priority queue if the unicast message is of a low priority;
a multicast message storage unit, configured to store a high-priority multicast message to the multicast high-priority pre-stage queue if the multicast message is of a high priority, and store a low-priority multicast message to the multicast low-priority pre-stage queue if the multicast message is of a low priority;
and the broadcast message storage unit is used for storing the broadcast message with high priority to the broadcast high-priority pre-queue if the broadcast message is with high priority, and storing the broadcast message with low priority to the broadcast low-priority pre-queue if the broadcast message is with high priority.
9. The system of claim 6, wherein the queue level scheduling module comprises:
a high-priority comparison unit, configured to compare the surplus number of tokens allocated to the high-priority multicast packet and the high-priority broadcast packet with a token surplus backpressure value;
a low-priority token increasing unit, configured to increase the token numbers of the low-priority multicast packet and the low-priority broadcast packet, if the surplus numbers of the tokens of the high-priority multicast packet and the high-priority broadcast packet are respectively greater than a token surplus counter-pressure value;
a low priority multicast comparing unit, configured to compare the surplus number of tokens of the low priority multicast packet with the length of the first multicast packet in the multicast low priority pre-stage queue;
a low-priority multicast message storage unit, configured to store the low-priority multicast message to the multicast low-priority post-queue if the surplus number of tokens of the low-priority multicast message is greater than the length of the first multicast message in the multicast low-priority pre-queue;
a low priority broadcast comparing unit, configured to compare the surplus number of tokens of the low priority broadcast packet with the length of the first broadcast packet in the broadcast low priority pre-stage queue;
a low-priority broadcast packet storage unit, configured to store the low-priority broadcast packet in the broadcast low-priority back-stage queue if the surplus number of tokens of the low-priority broadcast packet is greater than the length of the first broadcast packet in the broadcast low-priority front-stage queue.
10. The system of claim 9, wherein the queue level scheduling module further comprises:
a high-priority token increasing unit, configured to increase the number of tokens of the high-priority multicast packet and the high-priority broadcast packet, if the surplus number of tokens of the high-priority multicast packet and the high-priority broadcast packet is smaller than a token surplus counter-pressure value, respectively;
a high-priority multicast comparing unit, configured to compare the surplus number of tokens of the high-priority multicast packet with the length of the first multicast packet in the multicast high-priority pre-stage queue;
a high-priority multicast message dequeuing unit, configured to dequeue the high-priority multicast message from the multicast high-priority pre-stage queue and enter the multicast high-priority post-stage queue if the surplus number of tokens of the high-priority multicast message is greater than the length of the first multicast message in the multicast high-priority pre-stage queue;
a high-priority broadcast comparing unit, configured to compare the surplus number of tokens of the high-priority broadcast packet with the length of the first broadcast packet in the broadcast high-priority pre-stage queue;
a high-priority broadcast message dequeuing unit, configured to dequeue the high-priority broadcast message from the broadcast high-priority pre-queue and enter the broadcast high-priority post-queue if the surplus number of tokens of the high-priority broadcast message is greater than the length of the first broadcast message in the broadcast high-priority pre-queue.
CN202010616343.6A 2020-06-30 2020-06-30 A queue management method and system Pending CN111917664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010616343.6A CN111917664A (en) 2020-06-30 2020-06-30 A queue management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010616343.6A CN111917664A (en) 2020-06-30 2020-06-30 A queue management method and system

Publications (1)

Publication Number Publication Date
CN111917664A true CN111917664A (en) 2020-11-10

Family

ID=73227029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010616343.6A Pending CN111917664A (en) 2020-06-30 2020-06-30 A queue management method and system

Country Status (1)

Country Link
CN (1) CN111917664A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114217918A (en) * 2021-09-28 2022-03-22 新华三半导体技术有限公司 Message scheduling method and network chip
CN115460152A (en) * 2022-04-22 2022-12-09 篆芯半导体(南京)有限公司 Method, system, storage medium and electronic device for controlling multicast message
CN115987912A (en) * 2022-12-21 2023-04-18 迈普通信技术股份有限公司 Message forwarding control method, device, equipment and storage medium
CN116614445A (en) * 2023-07-20 2023-08-18 苏州仰思坪半导体有限公司 Data transmission method and related device thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4459588A (en) * 1982-03-05 1984-07-10 Burroughs Corporation Timed token protocol for local area networks
CN102142008A (en) * 2010-12-02 2011-08-03 华为技术有限公司 Method and system for implementing distributed memory database, token controller and memory database
CN103533661A (en) * 2013-10-23 2014-01-22 中国舰船研究设计中心 Wireless channel access control method based on virtual token
CN106302239A (en) * 2015-05-25 2017-01-04 深圳市中兴微电子技术有限公司 A kind of method and device of single multicast flow scheduling management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4459588A (en) * 1982-03-05 1984-07-10 Burroughs Corporation Timed token protocol for local area networks
CN102142008A (en) * 2010-12-02 2011-08-03 华为技术有限公司 Method and system for implementing distributed memory database, token controller and memory database
CN103533661A (en) * 2013-10-23 2014-01-22 中国舰船研究设计中心 Wireless channel access control method based on virtual token
CN106302239A (en) * 2015-05-25 2017-01-04 深圳市中兴微电子技术有限公司 A kind of method and device of single multicast flow scheduling management

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡云;: "对网络流量管理与拥塞管理的研究", 电脑开发与应用, no. 05 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114217918A (en) * 2021-09-28 2022-03-22 新华三半导体技术有限公司 Message scheduling method and network chip
CN115460152A (en) * 2022-04-22 2022-12-09 篆芯半导体(南京)有限公司 Method, system, storage medium and electronic device for controlling multicast message
CN115987912A (en) * 2022-12-21 2023-04-18 迈普通信技术股份有限公司 Message forwarding control method, device, equipment and storage medium
CN115987912B (en) * 2022-12-21 2024-08-20 迈普通信技术股份有限公司 Message forwarding control method, device, equipment and storage medium
CN116614445A (en) * 2023-07-20 2023-08-18 苏州仰思坪半导体有限公司 Data transmission method and related device thereof
CN116614445B (en) * 2023-07-20 2023-10-20 苏州仰思坪半导体有限公司 Data transmission method and related device thereof

Similar Documents

Publication Publication Date Title
CN111917664A (en) A queue management method and system
US6785236B1 (en) Packet transmission scheduling with threshold based backpressure mechanism
EP1774714B1 (en) Hierarchal scheduler with multiple scheduling lanes
US8638664B2 (en) Shared weighted fair queuing (WFQ) shaper
US7190674B2 (en) Apparatus for controlling packet output
US6993041B2 (en) Packet transmitting apparatus
US8467295B2 (en) System and methods for distributed quality of service enforcement
KR100323258B1 (en) Rate guarantees through buffer management
US9608926B2 (en) Flexible recirculation bandwidth management
US6674718B1 (en) Unified method and system for scheduling and discarding packets in computer networks
US10387074B2 (en) Efficient use of buffer space in a network switch
US20070070895A1 (en) Scaleable channel scheduler system and method
CN101834790B (en) Multicore processor based flow control method and multicore processor
US20030174650A1 (en) Weighted fair queuing (WFQ) shaper
Homg et al. An adaptive approach to weighted fair queue with QoS enhanced on IP network
US7269180B2 (en) System and method for prioritizing and queuing traffic
US8879578B2 (en) Reducing store and forward delay in distributed systems
US9294410B2 (en) Hybrid dataflow processor
CN104301254B (en) A data packet scheduling method for data center network
CN101478486B (en) Method, equipment and system for switch network data scheduling
CN1518296A (en) A Realization Method of Integrated Queue Scheduling Supporting Multiple Services
WO2016188057A1 (en) Unicast/multicast traffic scheduling management method and apparatus
CN115086238A (en) TSN network port output scheduling device
US8995458B1 (en) Method and apparatus for delay jitter reduction in networking device
CN102404225B (en) Method for rapid enqueue of packet for differential queue service system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201110

RJ01 Rejection of invention patent application after publication