WO2023124660A1 - 报文的调度方法、装置、电子设备及存储介质 - Google Patents
报文的调度方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2023124660A1 WO2023124660A1 PCT/CN2022/133807 CN2022133807W WO2023124660A1 WO 2023124660 A1 WO2023124660 A1 WO 2023124660A1 CN 2022133807 W CN2022133807 W CN 2022133807W WO 2023124660 A1 WO2023124660 A1 WO 2023124660A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- queue
- sending
- messages
- queues
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000001914 filtration Methods 0.000 claims abstract description 37
- 238000012216 screening Methods 0.000 claims abstract description 5
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
- H04L47/2433—Allocation of priorities to traffic types
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2425—Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
-
- 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
Definitions
- the present disclosure relates to the technical field of communications, and in particular, to a message scheduling method, device, electronic equipment, and storage medium.
- CPE Customer Premise Equipment
- Qos Quality of Service
- MAC Media Access Control
- IP Internet Protocol
- Scheduling function as new services take up most of the bandwidth, it is difficult for some delay-sensitive services to be well guaranteed during the peak period of network usage. Therefore, in the case of limited network bandwidth, network congestion often occurs The problem is that the user's network experience is not good.
- the purpose of the present disclosure is to solve the above problems, provide a message scheduling method, device, electronic equipment and storage medium, realize the secondary scheduling of the specified port message, and solve the problem that often occurs when the network bandwidth is limited.
- the problem of network congestion has further enhanced the quality of network service and improved user experience.
- an embodiment of the present disclosure provides a message scheduling method, the method includes: filtering out the first message from the designated port from the received messages according to the preset first filtering rule; Wherein, the first filter rule includes the specified port; the first packet is put into the first queue with the highest priority on the bridge side, and the non-first packets in the received packets are put into the excepted queue on the bridge side. Other queues other than the first queue; perform the first multi-level scheduling on the messages in the queues on the bridge side, and transmit them to the sending queues on the sending port side; send the messages in each sending queue.
- an embodiment of the present disclosure provides a device, including: a screening module, configured to filter out the first message from the designated port from the received messages according to the preset first filtering rule; Wherein, the first filtering rule includes the specified port; the putting module is set to put the first message into the first queue with the highest priority on the bridge side, and put the non-first messages in the received messages into Access other queues except the first queue on the bridge side; the first scheduling module is configured to perform multi-level scheduling for the first time on each queue on the bridge side, and transmit them to each sending queue on the sending port side; the sending module, Send the messages in each sending queue.
- an embodiment of the present disclosure further provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores information that can be used by the An instruction executed by at least one processor, where the instruction is executed by the at least one processor, so that the at least one processor can execute the above packet scheduling method.
- an embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program, and implementing the above message scheduling method when the computer program is executed by a processor.
- FIG. 1 is a structural block diagram of a system provided by an embodiment of the present disclosure
- Fig. 2 is a flow chart 1 of a message scheduling method provided by an embodiment of the present disclosure
- FIG. 3 is a second flowchart of a message scheduling method provided by an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram of a message scheduling device provided by an embodiment of the present disclosure.
- Fig. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- An embodiment of the present disclosure relates to a message scheduling method, the method includes: filtering out the first message from the specified port from the received messages according to the preset first filtering rule; wherein, the first filtering The rules include specifying the port; putting the first message into the first queue with the highest priority on the bridge side, and putting the non-first messages in the received messages into the bridge side except the first queue Other queues; carry out the first multi-level scheduling on the messages in the queues on the bridge side, and transmit them to the sending queues on the sending port side; send the messages in each sending queue to solve the problem of limited network bandwidth. Under the circumstances, the problem of network congestion often occurs, which further enhances the quality of network service and improves user experience.
- the router in the embodiment of the present disclosure includes: a receiving module, a bridge module, a filtering module, a routing module and a sending module.
- the receiving module is mainly set to receive user-side traffic collection. After collection, the traffic is aggregated to the bridge module, and the packets of the specified port can be filtered out through the filter module, so as to implement the first Qos scheduling for the packets at the bridge. ; After passing through the network bridge, the message is forwarded to the sending module by the routing module. After the message reaches the sending module, it will be enqueued to the corresponding wan network card of the sending module again.
- the second Qos scheduling is implemented for the message of the specified port. Packets that have been rescheduled can be sent to the Internet one step faster.
- the message scheduling method provided by the embodiment of the present disclosure is divided into two parts, one part is network port slicing, after the Ethernet, 2.4G and 5G accesses are converged to the bridge, they can be filtered using the Iptables tool based on the kernel Netfilter framework Data traffic out of different network ports.
- the other part is the secondary scheduling of packets.
- the QoS policy deployed to the device in advance can re-accelerate the data packets of the specified slice port.
- FIG. 1 The system structure diagram of the embodiment of the present disclosure is shown in FIG. 1 , which is mainly composed of a receiving module, a bridge module, a routing module and a sending module.
- the receiving module includes an Ethernet receiving module, WiFi 2.4G module and WiFi 5G module;
- the bridge module br-lan includes a packet filter module, N queues and a scheduler, and
- the sending module wan includes a filter module, N queues and a scheduler device S109.
- the receiving module is connected to client devices such as PCs, mobile phones and other Internet devices through the Ethernet receiving module, WiFi 2.4G module and 5G module.
- the bridge module assigns ip addresses to the connected devices for the devices to use online.
- the network bridge module br-lan after the receiving module receives the respective business messages, and after all the messages are aggregated to the bridge, the messages will pass through the packet filter module to filter out the messages of the specified network port slices, and The above messages are marked, and the marked messages are mapped to the first queue of the high priority queue, and the unmarked messages flow into other queues, such as the second/third/fourth queues.
- the scheduler is used to schedule the packets in the queues. Among them, the packets in the first queue are dispatched first. Packets are scheduled.
- a first packet from a specified port is filtered out of received packets according to a preset first filtering rule; wherein, the first filtering rule includes the specified port.
- filtering rules are deployed for the device in advance according to business requirements, that is, the first packet from the designated port is prioritized.
- the router receives a large number of packets and needs to be forwarded, according to the preset filtering rules, the The first message of is screened out from a large number of messages.
- step 202 the first message is put into the first queue with the highest priority on the bridge side, and the non-first messages in the received messages are put into the bridge side except the first queue other queues.
- the router screens out the first packet from the designated port, it marks the first packet.
- step 203 the first multi-level scheduling is performed on the messages in the queues on the bridge side, and transmitted to the sending queues on the sending port side.
- the scheduler is configured as strict priority scheduling.
- the packets in the first queue will be dispatched first, and if there are always packets that need to be sent in the first queue, then other The queue does not schedule packets until the packets in the first queue are sent.
- the other queues schedule and transmit the packets in the other queues to the sending queues of the sending port according to the priority.
- the first multi-level scheduling is performed on the queues on the bridge side and transmitted to the sending queues on the sending port side, it is detected according to the routing table information whether the current first multi-level scheduling message is A message that needs to be transmitted to the sending port; in the case that it is determined to be a message that needs to be transmitted to the sending port, the first multi-level dispatched message is put into each of the sending port side according to the preset second filtering rule.
- the sending queue when it is determined that it is not the message that needs to be transmitted to the sending port, transmit the current message that has undergone the first multi-level scheduling to the upper-layer application.
- the routing table information needs to be checked for the packets scheduled out of the queue, and whether the packet needs to be forwarded is judged according to the routing table information. Forwarding, the packets scheduled out of the queue are directly transmitted to the upper layer application.
- the first filtering rule on the bridge side is different from the second filtering rule on the sending port side.
- the message transmitted to the sending port is filtered out by the second filter rule to the message of the designated port, and the filtered message is marked, wherein, the message filtered according to the first filter rule and According to the different packets screened out by the second filtering rule, the marked packets are put into the first queue with the highest priority on the sending port side, and the unmarked packets are put into the sending port side with a priority lower than in the other queues of the first queue.
- the sending port side can also directly put the marked packets into the first queue with the highest priority on the sending port side according to the mark on the bridge side, and other packets are put into the first queue with a lower priority in other queues.
- step 204 the messages in each sending queue are sent.
- the second multi-level scheduling is performed on the messages in the queues on the sending port side, and the messages are transmitted to the Internet.
- step C100 routers satisfying the hierarchical structure are accessed through Ethernet or WiFi 2.4G/5G, wherein the packets corresponding to the Ethernet ports are the packets that need to be accelerated in this solution.
- step C101 after the service data flow is filtered by the filter and labeled, it is aggregated to the bridge br-lan.
- step C102 the marked messages are mapped to high priority queues respectively, and the unmarked messages are mapped into the queues according to their priorities.
- step C103 the queue is scheduled at the bridge br-lan, the scheduler is set to strict priority scheduling, and the high-priority queue message is dispatched out of the queue first, and the message dispatched out of the queue needs to query the routing table. And judge whether to forward the message according to the result of the routing table.
- step C104 if it is forwarded, send the packet through the specified port according to the routing result.
- the packets to be forwarded are sent through the network card on the wan side. Before reaching the network card, the packets can be filtered again or directly use the label marked in step 302.
- step C105 the message is mapped into the queue, and the high-priority message is put into the highest priority queue.
- step C106 the wan scheduler schedules the queue, and the scheduler is set to strict priority scheduling, and the high-priority queue packets are dispatched out of the queue first, and the packets are sent to the network side.
- the ports that need priority scheduling are screened out from a large number of messages and marked, so that the marked messages are put into the first queue with the highest priority, and the unmarked messages are put into the queues other than the first queue, and then The first multi-level scheduling is performed on the message according to the priority of the queue.
- the second multi-level scheduling is performed on the message, that is, through the Hqos method, the second time Accelerates data packets on designated ports.
- step division of the above various methods is only for the sake of clarity of description. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
- the embodiment of the present disclosure also relates to a message scheduling device, as shown in FIG. 4 , including: a screening module 401 , an input module 402 , a first scheduling module 403 and a sending module 404 .
- the screening module 401 is configured to filter out the first message from the designated port from the received messages according to the preset first filtering rule; wherein, the first filtering rule includes the designated port; the input module 402 , set to put the first packet into the first queue with the highest priority on the bridge side, and put non-first packets among the received packets into other queues on the bridge side except the first queue ;
- the first scheduling module 403 is set to carry out the first multi-level scheduling to the messages in the queues on the bridge side, and transmits them to the sending queues on the sending port side;
- the sending module 404 is set to send messages in each sending queue messages are sent.
- the filtering module 401 deploys filtering rules for the device in advance according to business requirements, that is, the first packet from the designated port is prioritized for scheduling, and when the router receives a large number of packets that need to be forwarded, according to the preset filtering rules, The first packet from the specified port is filtered out from a large number of packets.
- the input module 402 marks the screened first packet from the specified port, so that the subsequent steps can identify the first packet, and maps the marked first packet to the first packet with the highest priority. queue, and map unmarked packets to other queues with a lower priority than the first queue.
- the first scheduling module 403 configures the scheduler as strict priority scheduling.
- the packets in the first queue will be scheduled out first, and if there is always a packet in the first queue that needs to be sent message, then the other queues will not schedule the message until the message in the first queue is sent.
- the other queues schedule and transmit the packets in the other queues to the sending queues of the sending port according to the priority.
- the message scheduling device specifies the messages of ports requiring priority scheduling in the first filtering rule, and when a large number of messages are received at the same time, according to the first filtering rule, the ports that need priority scheduling will be selected according to the first filtering rule
- the messages are screened out from a large number of messages and marked, so that the marked messages are put into the first queue with the highest priority, and the unmarked messages are put into the queues other than the first queue, and then
- the first multi-level scheduling is performed on the message according to the priority of the queue.
- the second multi-level scheduling is performed on the message, that is, through the Hqos method, the second time Accelerates data packets on designated ports.
- this implementation mode is an apparatus embodiment corresponding to the above message scheduling method embodiment, and this implementation mode can be implemented in cooperation with the above message scheduling method embodiment.
- the relevant technical details mentioned in the above embodiment of the packet scheduling method are still valid in this embodiment, and are not repeated here to reduce repetition.
- the relevant technical details mentioned in this implementation manner can also be applied to the above embodiment of the message scheduling method.
- a logical unit can be a physical unit, or a part of a physical unit, and can Combination of physical units.
- units that are not closely related to solving the technical problems raised by the present disclosure are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
- An embodiment of the present disclosure also provides an electronic device, as shown in FIG. 5 , including at least one processor 501; and a memory 502 connected in communication with the at least one processor 501; An instruction executed by the at least one processor 501, where the instruction is executed by the at least one processor 501, so that the at least one processor can execute the foregoing packet scheduling method.
- the memory and the processor are connected by a bus
- the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together.
- the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
- the bus interface provides an interface between the bus and the transceivers.
- a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
- the data processed by the processor is transmitted on the wireless medium through the antenna, further, the antenna also receives the data and transmits the data to the processor.
- the processor manages the bus and general processing, and can also provide various functions including timing, peripheral interfacing, voltage regulation, power management, and other control functions. Instead, memory can be used to store data that the processor uses when performing operations.
- Embodiments of the present disclosure also provide a computer-readable storage medium storing a computer program.
- the above method embodiments are implemented when the computer program is executed by the processor.
- a device which can be A single chip microcomputer, a chip, etc.
- a processor processor
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
一种报文的调度方法、装置、电子设备及存储介质,该方法包括:根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,所述第一过滤规则包括所述指定端口;将所述第一报文放入网桥侧的优先级最高的第一队列,并将所述接收到的报文中的非第一报文放入网桥侧的除所述第一队列外的其他队列;对所述网桥侧的各队列中的报文进行第一次多级调度,传输至发送端口侧的各发送队列中;对所述各发送队列中的报文进行发送。实现了对指定端口报文进行二次调度,解决了在网络带宽有限的情况下,经常出现网络拥塞的问题,进一步增强了网络服务质量,提升了用户体验。
Description
相关申请的交叉引用
本公开基于2021年12月31日提交的发明名称为“报文的调度方法、装置、电子设备及存储介质”的中国专利申请CN202111673297.4,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。
本公开涉及通信技术领域,尤其涉及一种报文的调度方法、装置、电子设备及存储介质。
随着网络应用层出不穷,P2P、网络游戏和IPTV等新兴业务,占用了互联网的大部分带宽,因此,在网络带宽有限的情况下,经常出现网络拥塞的问题,从而导致用户网络体验不佳。
目前市场上的用户前置设备(Customer Premise Equipment,简称为CPE)产品常采用简单的服务质量(Quality of Service,简称为Qos),其中,Qos是对分组投递过程中可为延迟、延迟抖动、丢包率等核心需求提供支持的服务能力的评估,主要是基于介质访问控制层(Media Access Control,简称为MAC)/网络协议(Internet Protocol,简称为IP)、端口号等特征的传统限速调度功能,然而随着新型业务占用大部分带宽后,一些对时延敏感的业务,在网络使用高峰期很难得到很好地保证,因此,在网络带宽有限的情况下,经常出现网络拥塞的问题,用户网络体验不佳。
发明内容
本公开的目的在于解决上述问题,提供一种报文的调度方法、装置、电子设备及存储介质,实现了对指定端口报文进行二次调度,解决了在网络带宽有限的情况下,经常出现网络拥塞的问题,进一步增强了网络服务质量,提升了用户体验。
为解决上述问题,本公开的实施例提供了一种报文的调度方法,方法包括:根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,第一过滤规则包括指定端口;将第一报文放入网桥侧的优先级最高的第一队列,并将接收到的报文中的非第一报文放入网桥侧的除第一队列外的其他队列;对网桥侧的各队列中的报文进行第一次多级调度,传输至发送端口侧的各发送队列中;对各发送队列中的报文进行发送。
为解决上述问题,本公开的实施例提供了一种装置,包括:筛选模块,设置为根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,第一过滤规则包括指定端口;放入模块,设置为将第一报文放入网桥侧的优先级最高的第一队列,并将接收到的报文中的非第一报文放入网桥侧的除第一队列外的其他队列;第一调度模块,设置为对网桥侧的各队列进行第一次多级调度,传输至发送端口侧的各发送队列中;发送模块,对各发送队列中的报文进行发送。
为解决上述问题,本公开的实施例还提供了一种电子设备,包括:至少一个处理器;以 及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述一种报文的调度方法。
为解决上述问题,本公开的实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述一种报文的调度方法。
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本公开一实施例提供的系统的结构框图;
图2是本公开一实施例提供的报文的调度方法的流程图一;
图3是本公开一实施例提供的报文的调度方法的流程图二;
图4是本公开一实施例提供的报文的调度装置的结构示意图;
图5是本公开一实施例提供的电子设备的结构示意图。
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本公开各实施方式中,为了使读者更好地理解本公开而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本公开所要求保护的技术方案。
本公开的一实施例涉及一种报文的调度方法,方法包括:根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,第一过滤规则包括指定端口;将第一报文放入网桥侧的优先级最高的第一队列,并将接收到的报文中的非第一报文放入网桥侧的除第一队列外的其他队列;对网桥侧的各队列中的报文进行第一次多级调度,传输至发送端口侧的各发送队列中;对各发送队列中的报文进行发送,解决了在网络带宽有限的情况下,经常出现网络拥塞的问题,进一步增强了网络服务质量,提升了用户体验。
在本公开实施例中的路由器包含了:接收模块,网桥模块,过滤模块,路由模块以及发送模块。其中,接收模块主要设置为接收用户端流量采集,采集后流量被汇聚到网桥模块,通过过滤模块可以过滤出指定端口的报文,从而对该报文在网桥处实施第一次Qos调度;经过网桥后的报文被路由模块转发至发送模块,报文到达发送模块后会再次入队到发送模块对应的wan网卡,在此处对指定端口的报文实施第二次Qos调度,经过二次调度的报文可以更快一步的被发送到Internet网络。
本公开实施例提供的报文的调度方法,分为两个部分,一部分是网络端口切片,在以太网、2.4G以及5G接入汇聚到网桥后,可以基于内核Netfilter框架,使用Iptables工具过滤出不同网络端口的数据流量。另一部分是报文的二次调度,在网络使用高峰期即网络拥塞时,通过提前给设备部署的Qos策略,二次加速指定切片端口的数据报文。
本公开实施例的系统结构图如图1所示,主要有接收模块、网桥模块、路由模块及发送模块组成。其中,接收模块包含以太接收模块、WiFi 2.4G模块和WiFi 5G模块;网桥模块 br-lan包含包过滤器模块、N个队列和调度器,发送模块wan包含过滤器模块、N个队列和调度器S109。
接收模块,通过以太接收模块、WiFi 2.4G模块和5G模块接入客户端设备如PC、手机等互联网设备,网桥模块为接入的设备分配ip地址供设备上网使用。
网桥模块br-lan,在接收模块接收到各自业务报文后,在所有报文汇聚到网桥上后,报文会经过包过滤器模块,筛选出指定网络端口切片的报文,并对上述报文打上标记,被打上标记的报文映射到高优先级队列第一队列中,未被标记的报文则流入其他队列中,如第二/三/四队列。在网络拥塞时,调度器用于调度队列中的报文,其中,第一队列中的报文被优先调度出包,第一队列中的报文调度完成后,才按照优先级对其他队列里的报文进行调度。
下面对本实施例中的方法的实现细节进行具体的说明,以下内容仅为方便理解本方案的实现细节,并非实施本方案的必须。具体流程如图2所示,可包括如下步骤:
在步骤201中,根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,所述第一过滤规则包括所述指定端口。
在一个例子中,根据业务需求提前为设备部署了过滤规则,即优先调度来自指定端口的第一报文,当路由器接收到大量报文需要转发时,根据预设的过滤规则,将来自指定端口的第一报文从大量报文中筛选出来。
在步骤202中,将第一报文放入网桥侧的优先级最高的第一队列,并将接收到的报文中的非第一报文放入网桥侧的除第一队列外的其他队列。
另外,在路由器将来自指定端口的第一报文筛选出来之后,对第一报文进行标记。
在一个例子中,将筛选出的来自指定端口的第一报文打上标记,便于后续步骤识别第一报文,将已打标记的第一报文映射到优先级最高的第一队列中,并将未被打标记的报文按照优先级映射到优先级低于第一队列的其他队列中。
在步骤203中,对网桥侧的各队列中的报文进行第一次多级调度,传输至发送端口侧的各发送队列中。
在一个例子中,调度器配置为严格优先级调度,当网络发生拥塞时,第一队列中的报文会优先被调度出包,并且如果第一队列中一直存在需要发送的报文,那么其他队列一直不进行报文的调度,直至第一队列中的报文发送完毕。其中,其他队列按照优先级将其他队列中的报文调度传输至发送端口的各发送队列中。
进一步地,在对网桥侧的各队列进行第一次多级调度,传输至发送端口侧的各发送队列中之前,根据路由表信息检测当前的经第一次多级调度的报文是否为需传输至发送端口的报文;在确定为需传输至发送端口的报文情况下,执行将经第一次多级调度的报文根据预设的第二过滤规则放入发送端口侧的各发送队列中;在确定不为所述需传输至所述发送端口的报文情况下,将当前的经所述第一次多级调度的报文传输至上层应用。
在一个例子中,调度出队列的报文需要查路由表信息,根据路由表信息判断报文是否需要转发,若需要转发,则将报文传输至发送侧端口的各发送队列中;若不需要转发,则直接将被调度出队列的报文传输至上层应用。
更进一步地,网桥侧的第一过滤规则和发送端口侧的第二过滤规则不同。
在一个例子中,被传输至发送端口的报文,经第二过滤规则筛选出指定端口的报文,并为筛选出的报文打上标记,其中,根据第一过滤规则筛选出的报文和根据第二过滤规则筛选 出的报文不同,将被打上标记的报文放入发送端口侧优先级最高的第一队列,并将未被打上标记的报文放入发送端口侧优先级低于第一队列的其他队列中。
另外,发送端口侧也可以直接根据网桥侧所打上的标记,被打上标记的报文依旧放入发送端口侧优先级最高的第一队列,其他报文则放入优先级低于第一队列的其他队列中。
在步骤204中,对各发送队列中的报文进行发送。
具体地说,对所述发送端口侧的各队列中的报文进行第二次多级调度,传输至互联网。
为了使本公开实施例中的报文的调度方法的实现过程更加清楚,参考图3进行具体说明,具体内容如下:
在步骤C100中,满足层次结构的路由器通过以太网或者WiFi 2.4G/5G方式接入,其中,以太网口对应的报文是本方案需要加速的报文。
在步骤C101中,业务数据流经过过滤器的过滤并打上标签后,汇聚到网桥br-lan处。
在步骤C102中,将打了标记的报文,分别映射到高优先级队列,未打标记的报文按照优先级映射入队列。
在步骤C103中,在网桥br-lan处对队列进行调度,调度器被设置为严格优先级调度,将高优先级队列报文优先调度出队列,调度出队列的报文需要查询路由表,并根据路由表结果判断报文是否转发。
在步骤C104中,若转发,则按照路由结果通过制定端口发包。需要转发的报文通过wan侧网卡发包,在到达网卡前,报文可以被再次过滤或者直接使用步骤302打的标签。
在步骤C105中,报文映射入队,高优先级报文入最高优先级队列。
在步骤C106中,wan调度器对队列进行调度,调度器被设置为严格优先级调度,将高优先级队列报文优先调度出队列,将报文发送到网络侧。
本公开实施例提供的报文的调度方法,通过在第一过滤规则中指定需要优先调度的端口的报文,当同一时间接收到大量报文时,根据第一过滤规则,将需要优先调度的报文从大量报文中筛选出来并打上标记,便于将已打标记的报文放入优先级最高的第一队列优先,未打标记的报文则放入除第一队列外的队列,然后根据队列的优先级对报文进行第一次多级调度,被调度的报文被发送至发送端口的队列中后,再对报文进行第二次多级调度,即通过Hqos方法,二次对指定端口数据报文加速,通过提前部署Qos策略,无需用户设置,可以在网络高峰期保证网络服务质量。实现了对指定端口报文进行二次调度,解决了在网络带宽有限的情况下,经常出现网络拥塞的问题,进一步增强了网络服务质量,提升了用户体验。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本公开实施例还涉及一种报文的调度装置,如图4所示,包括:筛选模块401、放入模块402、第一调度模块403以及发送模块404。
具体地,筛选模块401,设置为根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,第一过滤规则包括指定端口;放入模块402,设置为将第一报文放入网桥侧的优先级最高的第一队列,并将接收到的报文中的非第一报文放入网桥侧的除第一队列外的其他队列;第一调度模块403,设置为对网桥侧的各队列中的报文进行第一 次多级调度,传输至发送端口侧的各发送队列中;发送模块404,设置为对各发送队列中的报文进行发送。
在一个例子中,筛选模块401根据业务需求提前为设备部署了过滤规则,即优先调度来自指定端口的第一报文,当路由器接收到大量报文需要转发时,根据预设的过滤规则,将来自指定端口的第一报文从大量报文中筛选出来。
在一个例子中,放入模块402将筛选出的来自指定端口的第一报文打上标记,便于后续步骤识别第一报文,将已打标记的第一报文映射到优先级最高的第一队列中,并将未被打标记的报文映射到优先级低于第一队列的其他队列中。
在一个例子中,第一调度模块403将调度器配置为严格优先级调度,当网络发生拥塞时,第一队列中的报文会优先被调度出包,并且如果第一队列中一直存在需要发送的报文,那么其他队列一直不进行报文的调度,直至第一队列中的报文发送完毕。其中,其他队列按照优先级将其他队列中的报文调度传输至发送端口的各发送队列中。
本公开实施例提供的报文的调度装置,通过在第一过滤规则中指定需要优先调度的端口的报文,当同一时间接收到大量报文时,根据第一过滤规则,将需要优先调度的报文从大量报文中筛选出来并打上标记,便于将已打标记的报文放入优先级最高的第一队列优先,未打标记的报文则放入除第一队列外的队列,然后根据队列的优先级对报文进行第一次多级调度,被调度的报文被发送至发送端口的队列中后,再对报文进行第二次多级调度,即通过Hqos方法,二次对指定端口数据报文加速,通过提前部署Qos策略,无需用户设置,可以在网络高峰期保证网络服务质量。
不难发现,本实施方式为上述报文的调度方法实施例相对应的装置实施例,本实施方式可与上述报文的调度方法实施例互相配合实施。上述报文的调度方法实施例提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在上述报文的调度方法实施例中。
值得一提的是,本公开上述实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本公开的创新部分,本实施方式中并没有将与解决本公开所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。
本公开的实施例还提供一种电子设备,如图5所示,包括至少一个处理器501;以及,与所述至少一个处理器501通信连接的存储器502;其中,所述存储器502存储有可被所述至少一个处理器501执行的指令,所述指令被所述至少一个处理器501执行,以使所述至少一个处理器能够执行上述报文的调度方法。
其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。
处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压 调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。
上述产品可执行本公开实施例所提供的方法,具备执行方法相应的功能模块和有益效果,未在本实施例中详尽描述的技术细节,可参见本公开实施例所提供的方法。
本公开的实施例还提供一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
上述实施例是提供给本领域普通技术人员来实现和使用本公开的,本领域普通技术人员可以在脱离本公开的发明思想的情况下,对上述实施例做出种种修改或变化,因而本公开的保护范围并不被上述实施例所限,而应该符合权利要求书所提到的创新性特征的最大范围。
Claims (10)
- 一种报文的调度方法,包括:根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,所述第一过滤规则包括所述指定端口;将所述第一报文放入网桥侧的优先级最高的第一队列,并将所述接收到的报文中的非第一报文放入网桥侧的除所述第一队列外的其他队列;对所述网桥侧的各队列中的报文进行第一次多级调度,传输至发送端口侧的各发送队列中;对所述各发送队列中的报文进行发送。
- 根据权利要求1所述的报文的调度方法,其中,在所述根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文之后,还包括:对所述第一报文进行标记;将所述第一报文放入网桥侧的优先级最高的第一队列,包括:将带有所述标记的报文放入所述第一队列中。
- 根据权利要求2所述的报文的调度方法,其中,在所述对所述网桥侧的各队列进行第一次多级调度,传输至发送端口侧的各发送队列中之前,还包括:根据路由表信息检测当前的经所述第一次多级调度的报文是否为需传输至所述发送端口的报文;在确定为所述需传输至所述发送端口的报文情况下,执行所述将经所述第一次多级调度的报文根据预设的第二过滤规则放入发送端口侧的各发送队列中。
- 根据权利要求3所述的报文的调度方法,其中,还包括:在确定不为所述需传输至所述发送端口的报文情况下,将当前的经所述第一次多级调度的报文传输至上层应用。
- 根据权利要求1-4中任一项所述的报文的调度方法,其中,所述第二过滤规则与所述第一过滤规则不同。
- 根据权利要求1所述的报文的调度方法,其中,所述对所述各发送队列中的报文进行发送,包括:对所述发送端口侧的各队列中的报文进行第二次多级调度,将所述发送端口侧接收到的报文传输至互联网。
- 根据权利要求1中所述的报文的调度方法,其中,所述将所述接收到的报文中的非第一报文放入网桥侧的除所述第一队列外的其他队列,包括:按照优先级将所述接收到的报文中的非第一报文放入网桥侧的除所述第一队列外的其他 队列。
- 一种报文的调度装置,包括:筛选模块,设置为根据预设的第一过滤规则从接收到的各报文中筛选出来自指定端口的第一报文;其中,所述第一过滤规则包括所述指定端口;放入模块,设置为将所述第一报文放入网桥侧的优先级最高的第一队列,并将所述接收到的报文中的非第一报文放入网桥侧的除所述第一队列外的其他队列;第一调度模块,设置为对所述网桥侧的各队列中的报文进行第一次多级调度,传输至发送端口侧的各发送队列中;发送模块,设置为对所述各发送队列中的报文进行发送。
- 一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至7中任一项所述的报文的调度方法。
- 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行行时实现权利要求1至7中任一项所述的报文的调度方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111673297.4A CN116418753A (zh) | 2021-12-31 | 2021-12-31 | 报文的调度方法、装置、电子设备及存储介质 |
CN202111673297.4 | 2021-12-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023124660A1 true WO2023124660A1 (zh) | 2023-07-06 |
Family
ID=86997525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/133807 WO2023124660A1 (zh) | 2021-12-31 | 2022-11-23 | 报文的调度方法、装置、电子设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116418753A (zh) |
WO (1) | WO2023124660A1 (zh) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1980183A (zh) * | 2005-11-30 | 2007-06-13 | 中兴通讯股份有限公司 | 在异步传输模式的永久虚电路端口实现服务质量的方法 |
US20080310439A1 (en) * | 2007-06-15 | 2008-12-18 | International Business Machines Corporation | Communicating prioritized messages to a destination queue from multiple source queues using source-queue-specific priority values |
CN101867511A (zh) * | 2009-04-20 | 2010-10-20 | 华为技术有限公司 | 流控帧发送方法、相关设备及系统 |
CN105490961A (zh) * | 2014-09-19 | 2016-04-13 | 杭州迪普科技有限公司 | 报文处理方法、装置以及网络设备 |
CN109391555A (zh) * | 2017-08-08 | 2019-02-26 | 迈普通信技术股份有限公司 | 报文调度方法、装置及通信设备 |
CN109547352A (zh) * | 2018-11-07 | 2019-03-29 | 杭州迪普科技股份有限公司 | 报文缓存队列的动态分配方法和装置 |
CN111884948A (zh) * | 2020-07-09 | 2020-11-03 | 烽火通信科技股份有限公司 | 一种流水线调度方法与装置 |
-
2021
- 2021-12-31 CN CN202111673297.4A patent/CN116418753A/zh active Pending
-
2022
- 2022-11-23 WO PCT/CN2022/133807 patent/WO2023124660A1/zh unknown
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1980183A (zh) * | 2005-11-30 | 2007-06-13 | 中兴通讯股份有限公司 | 在异步传输模式的永久虚电路端口实现服务质量的方法 |
US20080310439A1 (en) * | 2007-06-15 | 2008-12-18 | International Business Machines Corporation | Communicating prioritized messages to a destination queue from multiple source queues using source-queue-specific priority values |
CN101867511A (zh) * | 2009-04-20 | 2010-10-20 | 华为技术有限公司 | 流控帧发送方法、相关设备及系统 |
CN105490961A (zh) * | 2014-09-19 | 2016-04-13 | 杭州迪普科技有限公司 | 报文处理方法、装置以及网络设备 |
CN109391555A (zh) * | 2017-08-08 | 2019-02-26 | 迈普通信技术股份有限公司 | 报文调度方法、装置及通信设备 |
CN109547352A (zh) * | 2018-11-07 | 2019-03-29 | 杭州迪普科技股份有限公司 | 报文缓存队列的动态分配方法和装置 |
CN111884948A (zh) * | 2020-07-09 | 2020-11-03 | 烽火通信科技股份有限公司 | 一种流水线调度方法与装置 |
Also Published As
Publication number | Publication date |
---|---|
CN116418753A (zh) | 2023-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3471341B1 (en) | Network slice method and system | |
US10432556B1 (en) | Enhanced audio video bridging (AVB) methods and apparatus | |
EP3198931B1 (en) | Transmitting data based on flow input from base station | |
US7185073B1 (en) | Method and apparatus for defining and implementing high-level quality of service policies in computer networks | |
US20090292575A1 (en) | Coalescence of Disparate Quality of Service Matrics Via Programmable Mechanism | |
CN105530204B (zh) | 软件定义无线网络中视频业务QoS保证的系统及方法 | |
US8284789B2 (en) | Methods and apparatus for providing dynamic data flow queues | |
KR20050061237A (ko) | 서비스 품질 보장을 위한 시스템 및 방법 | |
US6636509B1 (en) | Hardware TOS remapping based on source autonomous system identifier | |
EP2362589B1 (en) | Priority and source aware packet memory reservation and flow control | |
WO2020083301A1 (zh) | 一种网络切片的方法、计算机设备及存储介质 | |
US20200112523A1 (en) | Data Flow Processing Method and Device | |
US20120176903A1 (en) | Non-uniform per-packet priority marker for use with adaptive protocols | |
Ricart‐Sanchez et al. | Toward hardware‐accelerated QoS‐aware 5G network slicing based on data plane programmability | |
US11190980B1 (en) | Tag-based data packet routing in dual connectivity systems | |
WO2021121086A1 (zh) | 一种流量调度方法、电子设备及存储介质 | |
Stewart et al. | An architecture for automated network control of QoS over consumer broadband links | |
WO2023124660A1 (zh) | 报文的调度方法、装置、电子设备及存储介质 | |
US11936761B2 (en) | Tag-based data packet prioritization in dual connectivity systems | |
Cisco | Planning for Quality of Service | |
Cisco | Planning for Quality of Service | |
Cisco | Planning for QoS Policy Manager | |
CN110753007B (zh) | 基于QoS的流策略配置方法和装置 | |
Cisco | Configuring Quality of Service | |
Cisco | Quality of Service Solutions Configuration Guide Cisco IOS Release 12.0 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22913918 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |