CN117896326A - Network data transmission method, network device, electronic device and computer readable medium - Google Patents

Network data transmission method, network device, electronic device and computer readable medium Download PDF

Info

Publication number
CN117896326A
CN117896326A CN202211224867.6A CN202211224867A CN117896326A CN 117896326 A CN117896326 A CN 117896326A CN 202211224867 A CN202211224867 A CN 202211224867A CN 117896326 A CN117896326 A CN 117896326A
Authority
CN
China
Prior art keywords
traffic management
scheduling queue
scheduler
target
management scheduler
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
CN202211224867.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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202211224867.6A priority Critical patent/CN117896326A/en
Publication of CN117896326A publication Critical patent/CN117896326A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/629Ensuring fair share of resources, e.g. weighted fair queuing [WFQ]

Landscapes

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

Abstract

The present disclosure provides a network data transmission method, the method comprising: receiving messages to be forwarded of different user terminals, and determining flow classification of the messages to be forwarded; matching the message to be forwarded to a corresponding target scheduling queue based on the flow classification of the message to be forwarded; the target scheduling queue is associated with a target shared traffic management scheduler, and the target shared traffic management scheduler manages the target scheduling queue, and the target shared traffic management scheduler and the target scheduling queue are determined from a resource pool based on scheduling queue requirements of the user terminal. The present disclosure also provides a network device, an electronic device, and a computer readable medium.

Description

网络数据传输方法及网络设备、电子设备、计算机可读介质Network data transmission method, network device, electronic device, and computer readable medium

技术领域Technical Field

本公开涉及通讯技术领域,特别涉及一种网络数据传输方法及网络设备、电子设备、计算机可读介质。The present disclosure relates to the field of communication technology, and in particular to a network data transmission method and a network device, an electronic device, and a computer-readable medium.

背景技术Background technique

随着计算机网络的高速发展,越来越多的重要数据在网络上传输,QoS(Qualityof Service,即服务质量)技术被用于保障数据传输的质量。但随着用户规模的扩大,业务种类的增多,对网络设备的要求越来越高,例如,要求细化区分业务流量,还要求对多个用户、多种业务、多种流量等传输对象进行统一管理和分层调度。因此,相关技术人员提出HQoS(Hierarchical Quality of service,分层服务质量)技术。HQoS技术是将网络传输的调度策略组装成分层次的树状结构。树状结构包括多个层次的节点,例如:根节点和叶子节点。根节点是流量的汇聚点,每个根节点设置有一个调度器(Scheduler),每个叶子节点设置一个调度队列(Queue)。调度器可以对叶子节点的调度队列进行调度管理,从而实现网络传输的分层管理。With the rapid development of computer networks, more and more important data are transmitted on the network, and QoS (Quality of Service) technology is used to ensure the quality of data transmission. However, with the expansion of the user scale and the increase in the types of services, the requirements for network equipment are getting higher and higher. For example, it is required to refine and distinguish business traffic, and also to uniformly manage and hierarchically schedule transmission objects such as multiple users, multiple services, and multiple traffic. Therefore, relevant technicians proposed HQoS (Hierarchical Quality of service) technology. HQoS technology assembles the scheduling strategy of network transmission into a hierarchical tree structure. The tree structure includes multiple levels of nodes, such as root nodes and leaf nodes. The root node is the convergence point of traffic. Each root node is equipped with a scheduler (Scheduler), and each leaf node is equipped with a scheduling queue (Queue). The scheduler can schedule and manage the scheduling queue of the leaf node, thereby realizing hierarchical management of network transmission.

发明内容Summary of the invention

本公开提供一种网络数据传输方法及网络设备、电子设备、计算机可读介质。The present invention provides a network data transmission method, a network device, an electronic device, and a computer-readable medium.

第一方面,本公开实施例提供一种网络数据传输方法,其包括:In a first aspect, an embodiment of the present disclosure provides a network data transmission method, which includes:

接收不同用户终端的待转发报文,并确定所述待转发报文的流分类;Receiving messages to be forwarded from different user terminals, and determining flow classifications of the messages to be forwarded;

基于所述待转发报文的流分类将所述待转发报文匹配至对应的目标调度队列;其中,所述目标调度队列与目标共享流量管理调度器关联,并由所述目标共享流量管理调度器管理所述目标调度队列,所述目标共享流量管理调度器和所述目标调度队列是基于所述用户终端的调度队列需求从资源池确定的。Based on the flow classification of the message to be forwarded, the message to be forwarded is matched to the corresponding target scheduling queue; wherein, the target scheduling queue is associated with a target shared traffic management scheduler, and the target scheduling queue is managed by the target shared traffic management scheduler, and the target shared traffic management scheduler and the target scheduling queue are determined from a resource pool based on the scheduling queue requirements of the user terminal.

在一些实施例中,确定所述目标共享流量管理调度器和所述目标调度队列的步骤包括:In some embodiments, the step of determining the target shared traffic management scheduler and the target scheduling queue includes:

基于所述调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列;Determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirements;

将所述至少一个目标调度队列与所述目标共享流量管理调度器关联。The at least one target scheduling queue is associated with the target shared traffic management scheduler.

在一些实施例中,所述基于所述调度队列需求从资源池确定目标共享流量管理调度器,包括:In some embodiments, determining a target shared traffic management scheduler from a resource pool based on the scheduling queue requirement includes:

基于所述调度队列需求查找所述资源池,确定满足所述调度队列需求的候选流量管理调度器;Searching the resource pool based on the scheduling queue requirements, and determining a candidate traffic management scheduler that meets the scheduling queue requirements;

判断所述候选流量管理调度器是否满足预设的匹配条件;Determining whether the candidate traffic management scheduler meets a preset matching condition;

在所述候选流量管理调度器满足所述匹配条件的情况下,将所述候选流量管理调度器确定为所述目标共享流量管理调度器。In a case where the candidate traffic management scheduler satisfies the matching condition, the candidate traffic management scheduler is determined as the target shared traffic management scheduler.

在一些实施例中,所述基于所述调度队列需求查找所述资源池,确定满足所述调度队列需求的候选流量管理调度器,包括:In some embodiments, searching the resource pool based on the scheduling queue requirement to determine a candidate traffic management scheduler that meets the scheduling queue requirement includes:

基于所述调度队列需求查找所述资源池中已使能的调度器;Searching for an enabled scheduler in the resource pool based on the scheduling queue requirement;

在所述已使能的调度器无法满足所述调度队列需求的情况下,查找所述资源池中未使能的调度器,确定满足所述调度队列需求的候选流量管理调度器。In the case that the enabled scheduler cannot meet the scheduling queue requirement, a non-enabled scheduler in the resource pool is searched to determine a candidate traffic management scheduler that meets the scheduling queue requirement.

在一些实施例中,在所述资源池中的所述流量管理调度器按预设顺序排列;所述基于所述调度队列需求查找所述资源池,包括:In some embodiments, the traffic management schedulers in the resource pool are arranged in a preset order; and searching the resource pool based on the scheduling queue requirement includes:

从搜索标记开始基于所述调度队列需求顺序查找所述资源池中的所述流量管理调度器;其中,所述搜索标记为确定前一用户终端的共享流量管理调度器的位置;Searching the traffic management scheduler in the resource pool based on the scheduling queue demand order starting from the search mark; wherein the search mark is to determine the location of the shared traffic management scheduler of the previous user terminal;

在从所述搜索标记起至所述预设顺序的末尾没有满足所述调度队列需求的候选流量管理调度器的情况下,从所述预设顺序的起始位置继续搜索。When there is no candidate traffic management scheduler that meets the scheduling queue requirement from the search mark to the end of the preset sequence, the search continues from the beginning of the preset sequence.

在一些实施例中,所述资源池包括多个调度器组,每个所述调度器组包括预设数量的所述流量管理调度器;所述基于所述调度队列需求查找所述资源池,包括:In some embodiments, the resource pool includes a plurality of scheduler groups, each of the scheduler groups includes a preset number of the traffic management schedulers; searching the resource pool based on the scheduling queue requirements includes:

以所述调度器组为粒度基于所述调度队列需求查找所述资源池。The resource pool is searched based on the scheduling queue requirement at the granularity of the scheduler group.

在一些实施例中,所述匹配条件包括所述候选流量管理调度器的类型匹配、所述候选流量管理调度器的队列数目小于或等于预设的总队列数目中的一种或多种。In some embodiments, the matching condition includes one or more of the following: the type of the candidate traffic management scheduler matches, and the number of queues of the candidate traffic management scheduler is less than or equal to a preset total number of queues.

在一些实施例中,所述基于所述调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列之前,还包括:In some embodiments, before determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirement, the method further includes:

判断所述调度队列需求对应的用户终端是否满足共享条件;其中,所述共享条件包括所述用户终端满足预设终端配置条件和/或所述用户终端满足业务配置条件。Determine whether the user terminal corresponding to the scheduling queue requirement meets the sharing condition; wherein the sharing condition includes that the user terminal meets the preset terminal configuration condition and/or the user terminal meets the service configuration condition.

在一些实施例中,所述基于所述调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列之前,还包括:In some embodiments, before determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirement, the method further includes:

接收配置信息,并基于所述配置信息确定所述调度队列需求。Configuration information is received, and the scheduling queue requirement is determined based on the configuration information.

第二方面,本公开实施例提供一种网络设备,其包括:In a second aspect, an embodiment of the present disclosure provides a network device, comprising:

接收模块,用于接收不同用户终端的待转发报文,并确定所述待转发报文的流分类;A receiving module, used for receiving messages to be forwarded from different user terminals and determining flow classification of the messages to be forwarded;

匹配模块,用于基于所述待转发报文的流分类将所述待转发报文匹配至对应的目标调度队列;其中,所述目标调度队列与目标共享流量管理调度器关联,并由所述目标共享流量管理调度器管理所述目标调度队列,所述目标共享流量管理调度器和所述目标调度队列是基于所述用户终端的调度队列需求从资源池确定的。A matching module is used to match the message to be forwarded to the corresponding target scheduling queue based on the flow classification of the message to be forwarded; wherein the target scheduling queue is associated with a target shared traffic management scheduler, and the target shared traffic management scheduler manages the target scheduling queue, and the target shared traffic management scheduler and the target scheduling queue are determined from a resource pool based on the scheduling queue requirements of the user terminal.

选取模块,用于基于所述调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列;A selection module, configured to determine a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirements;

关联模块,用于将所述至少一个目标调度队列与所述目标共享流量管理调度器关联。An associating module is used to associate the at least one target scheduling queue with the target shared traffic management scheduler.

在一些实施例中,所述选取模块包括:In some embodiments, the selection module includes:

查找单元,用于基于所述调度队列需求查找所述资源池,确定满足所述调度队列需求的候选流量管理调度器;A searching unit, configured to search the resource pool based on the scheduling queue requirement and determine a candidate traffic management scheduler that meets the scheduling queue requirement;

判断单元,用于判断所述候选流量管理调度器是否满足预设的匹配条件;A judging unit, used to judge whether the candidate traffic management scheduler meets a preset matching condition;

确定单元,用于在所述候选流量管理调度器满足所述匹配条件的情况下,将所述候选流量管理调度器确定为所述目标共享流量管理调度器。A determining unit is used to determine the candidate traffic management scheduler as the target shared traffic management scheduler if the candidate traffic management scheduler meets the matching condition.

在一些实施例中,还包括;In some embodiments, further comprising:

判断模块,用于判断所述调度队列需求对应的用户终端是否满足共享条件;其中,所述共享条件包括所述用户终端满足预设终端配置条件和/或所述用户终端满足业务配置条件。A judgment module is used to judge whether the user terminal corresponding to the scheduling queue demand meets the sharing condition; wherein the sharing condition includes that the user terminal meets the preset terminal configuration condition and/or the user terminal meets the service configuration condition.

在一些实施例中,还包括;In some embodiments, further comprising:

配置模块,用于接收配置信息;A configuration module, used for receiving configuration information;

所述关联模块,还用于基于所述配置信息确定所述调度队列需求。The association module is further used to determine the scheduling queue requirement based on the configuration information.

第三方面,本公开实施例提供一种电子设备,其特征在于,包括:In a third aspect, an embodiment of the present disclosure provides an electronic device, characterized in that it includes:

一个或多个处理器;one or more processors;

存储装置,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现根据本公开提供的方法;A storage device having one or more programs stored thereon, when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided according to the present disclosure;

一个或多个I/O接口,连接在所述处理器与存储器之间,配置为实现所述处理器与存储器的信息交互。One or more I/O interfaces are connected between the processor and the memory and are configured to implement information interaction between the processor and the memory.

第四方面,本公开实施例提供一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现根据本公开提供的方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method provided according to the present disclosure.

本公开实施例提供的网络传输方法,将目标调度队列与目标共享流量管理调度器关联,由目标共享流量管理调度器管理目标调度队列,目标调度队列可以是不同用户终端的调度队列,当接收到不同用户终端的待转发报文时,基于待转发报文的流分类将待转发报文匹配至对应的目标调度队列,一个目标共享流量管理调度器可以管理不同用户终端的待转发报文,不再是一个目标共享流量管理调度器对应一个用户终端,减少了目标共享流量管理调度器的需求量,缓解了目标共享流量管理调度器数量受限的问题,节省了硬件资源。The network transmission method provided by the embodiment of the present disclosure associates a target scheduling queue with a target shared traffic management scheduler, and the target shared traffic management scheduler manages the target scheduling queue. The target scheduling queue can be a scheduling queue for different user terminals. When messages to be forwarded from different user terminals are received, the messages to be forwarded are matched to the corresponding target scheduling queues based on the flow classification of the messages to be forwarded. One target shared traffic management scheduler can manage messages to be forwarded from different user terminals, and one target shared traffic management scheduler no longer corresponds to one user terminal, which reduces the demand for target shared traffic management schedulers, alleviates the problem of limited number of target shared traffic management schedulers, and saves hardware resources.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

在本公开实施例的附图中:In the accompanying drawings of the embodiments of the present disclosure:

图1为本公开实施例的应用场景图;FIG1 is an application scenario diagram of an embodiment of the present disclosure;

图2为本公开实施例提供一种网络数据传输方法的流程图;FIG2 is a flow chart of a network data transmission method provided by an embodiment of the present disclosure;

图3为本公开实施例中步骤S202的流程图;FIG3 is a flow chart of step S202 in an embodiment of the present disclosure;

图4为本公开实施例中S301的流程图;FIG4 is a flow chart of S301 in an embodiment of the present disclosure;

图5为本公开实施例提供的一种网络设备的组成框图;FIG5 is a block diagram of a network device provided by an embodiment of the present disclosure;

图6为本公开实施例提供的另一种网络设备的组成框图;FIG6 is a block diagram of another network device provided in an embodiment of the present disclosure;

图7为本公开实施例提供的一种网络数据传输的方法的流程图;FIG7 is a flow chart of a method for network data transmission provided by an embodiment of the present disclosure;

图8为本公开实施中目标共享流量管理调度器为两个用户终端提供流量管理服务的示意图;FIG8 is a schematic diagram of a target shared traffic management scheduler providing traffic management services for two user terminals in an implementation of the present disclosure;

图9为本公开实施例提供的一种电子设备的组成框图。FIG. 9 is a block diagram of a composition of an electronic device provided in an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本领域的技术人员更好地理解本公开的技术方案,下面结合附图对本公开实施例提供的网络数据传输方法及网络设备进行详细描述。In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the network data transmission method and network device provided by the embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

在下文中将参考附图更充分地描述本公开,但是所示的实施例可以以不同形式来体现,且本公开不应当被解释为限于以下阐述的实施例。反之,提供这些实施例的目的在于使本公开透彻和完整,并将使本领域技术人员充分理解本公开的范围。The present disclosure will be described more fully below with reference to the accompanying drawings, but the embodiments shown may be embodied in different forms, and the present disclosure should not be construed as being limited to the embodiments set forth below. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete, and will enable those skilled in the art to fully understand the scope of the present disclosure.

本公开实施例的附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与详细实施例一起用于解释本公开,并不构成对本公开的限制。通过参考附图对详细实施例进行描述,以上和其它特征和优点对本领域技术人员将变得更加显而易见。The accompanying drawings of the embodiments of the present disclosure are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the detailed embodiments to explain the present disclosure, and do not constitute a limitation of the present disclosure. By describing the detailed embodiments with reference to the accompanying drawings, the above and other features and advantages will become more apparent to those skilled in the art.

在不冲突的情况下,本公开各实施例及实施例中的各特征可相互组合。In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

本公开所使用的术语仅用于描述特定实施例,且不意欲限制本公开。如本公开所使用的术语“和/或”包括一个或多个相关列举条目的任何和所有组合。如本公开所使用的单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。如本公开所使用的术语“包括”、“由……制成”,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其它特征、整体、步骤、操作、元件、组件和/或其群组。The terms used in the present disclosure are only used to describe specific embodiments and are not intended to limit the present disclosure. The term "and/or" as used in the present disclosure includes any and all combinations of one or more related enumerated items. The singular forms "one" and "the" as used in the present disclosure are also intended to include plural forms, unless the context clearly indicates otherwise. The terms "including", "made of..." as used in the present disclosure specify the presence of the features, wholes, steps, operations, elements and/or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and/or groups thereof.

除非另外限定,否则本公开所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本公开明确如此限定。Unless otherwise defined, all terms (including technical and scientific terms) used in this disclosure have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined in this disclosure.

本公开不限于附图中所示的实施例,而是包括基于制造工艺而形成的配置的修改。因此,附图中例示的区具有示意性属性,并且图中所示区的形状例示了元件的区的具体形状,但并不是旨在限制性的。The present disclosure is not limited to the embodiments shown in the drawings, but includes modifications of the configurations formed based on the manufacturing process. Therefore, the regions illustrated in the drawings have schematic properties, and the shapes of the regions shown in the drawings illustrate the specific shapes of the regions of the elements, but are not intended to be limiting.

网络设备是用户终端连接互联网络的网络设备。例如,家庭使用的网络设备,家庭成员使用的多个用户终端可以通过网络设备连接互联网络。再如,公司使用的网络设备,员工使用的多个用户终端可以通过网络设备连接互联网络。不同用户终端业务对网络资源的要求不同。例如,基于IP的语音传输(Voice over Internet Protocol,VoIP)业务需要较少的带宽,但对时延的要求较高。视频业务对时延要求不高,但对带宽的要求较高;普通的上网业务对时延和带宽要求均普通。Network equipment is a network device that connects user terminals to the Internet. For example, a network device used in a home can connect multiple user terminals used by family members to the Internet through the network device. Another example is a network device used in a company, where multiple user terminals used by employees can connect to the Internet through the network device. Different user terminal services have different requirements for network resources. For example, Voice over Internet Protocol (VoIP) services based on IP require less bandwidth but have higher requirements for latency. Video services do not have high requirements for latency but have high requirements for bandwidth; ordinary Internet services have ordinary requirements for both latency and bandwidth.

HQoS技术可以对网络资源进行分层调度,即通过流量管理调度器实现网络资源的分层调度,缓解了不同用户终端业务之间的带宽挤占。对于家庭用网络设备,设置整个家庭的带宽,对家庭的各种业务进行统一调度,如设置高优先级业务挤占低优先级业务。HQoS technology can perform hierarchical scheduling of network resources, that is, hierarchical scheduling of network resources is achieved through the traffic management scheduler, which alleviates the bandwidth crowding between different user terminal services. For home network devices, the bandwidth of the entire home is set, and various home services are uniformly scheduled, such as setting high-priority services to crowd out low-priority services.

相关的网络设备虽然能够缓解不同用户终端业务之间的带宽挤占,然而,用户终端与流量管理调度器存在对应关系,即在同一时间段,一个流量管理调度器仅能为一个用户终端提供服务。一方面,流量管理调度器的处理能力常常远大于用户终端的需求,流量管理调度器的利用率较低。另一方面,网络设备中流量管理调度器的数量有限,只能为有限数量的用户终端提供服务,也不利于网络设备的扩容。Although the relevant network equipment can alleviate the bandwidth crowding between different user terminal services, there is a corresponding relationship between the user terminal and the traffic management scheduler, that is, in the same time period, a traffic management scheduler can only provide services for one user terminal. On the one hand, the processing capacity of the traffic management scheduler is often much greater than the needs of the user terminal, and the utilization rate of the traffic management scheduler is low. On the other hand, the number of traffic management schedulers in the network equipment is limited, and it can only provide services for a limited number of user terminals, which is not conducive to the expansion of network equipment.

基于此,本公开实施例提供一种网络数据传输方法,以提高流量管理调度器的利用率,以及方便网络设备扩容。Based on this, an embodiment of the present disclosure provides a network data transmission method to improve the utilization rate of the traffic management scheduler and facilitate the expansion of network equipment.

图1为本公开实施例的应用场景图。如图1所示,网络设备10包括多个流量管理调度器11,每个流量管理调度器可以为至少一个用户终端20提供流量管理服务,网络设备10与用户终端20之间可以通过网络30实现通讯连接。其中,流量管理调度器11采用HQoS技术对流量进行分层管理。例如,HQoS技术提供根节点和多个叶子节点,多个叶子节点与根节点关联,根节点对与其关联的叶子节点进行管理。每个根节点对应一个流量管理调度器11,每个叶子节点对应一个调度队列,所以流量管理调度器11可以管理多个调度队列。本公开实施例中,调度队列可以是不同用户终端20的调度队列,即流量管理调度器11可以对不同用户终端的流量进行管理。网络30可以是无线网络和有线网络。FIG1 is an application scenario diagram of an embodiment of the present disclosure. As shown in FIG1 , a network device 10 includes a plurality of traffic management schedulers 11, each of which can provide traffic management services for at least one user terminal 20, and the network device 10 and the user terminal 20 can achieve communication connection through a network 30. Among them, the traffic management scheduler 11 uses HQoS technology to perform hierarchical management of traffic. For example, the HQoS technology provides a root node and a plurality of leaf nodes, and the plurality of leaf nodes are associated with the root node, and the root node manages the leaf nodes associated with it. Each root node corresponds to a traffic management scheduler 11, and each leaf node corresponds to a scheduling queue, so the traffic management scheduler 11 can manage multiple scheduling queues. In the embodiment of the present disclosure, the scheduling queue can be a scheduling queue of different user terminals 20, that is, the traffic management scheduler 11 can manage the traffic of different user terminals. The network 30 can be a wireless network and a wired network.

第一方面,参照图2,本公开实施例提供一种网络数据传输方法,该方法可应用于网络设备,包括:In a first aspect, referring to FIG. 2 , an embodiment of the present disclosure provides a network data transmission method, which can be applied to a network device, including:

步骤S201,接收不同用户终端的待转发报文,并获得待转发报文的流分类。Step S201: receiving messages to be forwarded from different user terminals, and obtaining flow classifications of the messages to be forwarded.

在步骤S201中,待转发报文的流分类可以通过识别待转发报文的标记确定的。In step S201, the flow classification of the message to be forwarded can be determined by identifying a tag of the message to be forwarded.

在一些实施例中,用户终端采用了HQoS技术,可以对发出的报文分类标记,流量管理调度器通过识别待转发报文的标记即可确定其流分类。例如,用户终端可以通过基于类的标记(Cl ass-based marking)技术对发出的报文进行分类标记。In some embodiments, the user terminal uses HQoS technology to classify and mark the sent messages, and the traffic management scheduler can determine the flow classification of the message to be forwarded by identifying the mark of the message to be forwarded. For example, the user terminal can classify and mark the sent messages through class-based marking technology.

在一些实施例中,用户终端在配置HQoS业务时,可以将转发报文的功能配置为自动识别待转发报文的流分类。流分类包括但不限于待转发报文的优先级、网络协议和访问控制参数。In some embodiments, when configuring the HQoS service, the user terminal can configure the message forwarding function to automatically identify the flow classification of the message to be forwarded. The flow classification includes but is not limited to the priority, network protocol and access control parameters of the message to be forwarded.

步骤S202,基于待转发报文的流分类将待转发报文匹配至对应的目标调度队列。Step S202: Match the message to be forwarded to the corresponding target scheduling queue based on the flow classification of the message to be forwarded.

其中,目标调度队列与目标共享流量管理调度器关联,并由目标共享流量管理调度器管理目标调度队列,目标共享流量管理调度器和目标调度队列是基于用户的调度队列需求从资源池确定的。The target scheduling queue is associated with a target shared traffic management scheduler, and the target scheduling queue is managed by the target shared traffic management scheduler. The target shared traffic management scheduler and the target scheduling queue are determined from a resource pool based on the user's scheduling queue requirements.

在本公开实施例中,目标共享流量管理调度器可以为多个用户终端提供流量管理服务,而且可以对与其关联的多个调度队列进行分层管理,如,将优先级高的调度队列匹配至相应的目标调度队列,以便于获得更宽的带宽服务或延时更短的服务。In the disclosed embodiment, the target shared traffic management scheduler can provide traffic management services for multiple user terminals, and can perform hierarchical management on multiple scheduling queues associated therewith, such as matching high-priority scheduling queues to corresponding target scheduling queues to obtain wider bandwidth services or shorter latency services.

在一些实施例中,目标调度队列具有队列号,队列号与优先级关联。目标共享流量管理调度器确定待转发报文的优先级后,通过队列号与优先级的关联关系,确定目标队列号,再将该待转发报文转发至该目标队列号对应的目标调度队列。In some embodiments, the target scheduling queue has a queue number, and the queue number is associated with a priority. After the target shared traffic management scheduler determines the priority of the message to be forwarded, it determines the target queue number based on the association between the queue number and the priority, and then forwards the message to be forwarded to the target scheduling queue corresponding to the target queue number.

本公开实施例提供的网络传输方法,将目标调度队列与目标共享流量管理调度器关联,由目标共享流量管理调度器管理目标调度队列,目标调度队列可以是不同用户终端的调度队列,当接收到不同用户终端的待转发报文时,基于待转发报文的流分类将待转发报文匹配至对应的目标调度队列,一个目标共享流量管理调度器可以管理不同用户终端的待转发报文,不再是一个目标共享流量管理调度器对应一个用户终端,减少了目标共享流量管理调度器的需求量,缓解了目标共享流量管理调度器数量受限的问题,节省了硬件资源。The network transmission method provided by the embodiment of the present disclosure associates a target scheduling queue with a target shared traffic management scheduler, and the target shared traffic management scheduler manages the target scheduling queue. The target scheduling queue can be a scheduling queue for different user terminals. When messages to be forwarded from different user terminals are received, the messages to be forwarded are matched to the corresponding target scheduling queues based on the flow classification of the messages to be forwarded. One target shared traffic management scheduler can manage messages to be forwarded from different user terminals, and one target shared traffic management scheduler no longer corresponds to one user terminal, which reduces the demand for target shared traffic management schedulers, alleviates the problem of limited number of target shared traffic management schedulers, and saves hardware resources.

在一些实施例中,如图3所示,在步骤S202中,确定目标共享流量管理调度器和目标调度队列的步骤包括:In some embodiments, as shown in FIG. 3 , in step S202 , the step of determining a target shared traffic management scheduler and a target scheduling queue includes:

步骤S301,基于调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列。Step S301: determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on scheduling queue requirements.

其中,调度队列需求是根据用户终端在网络设备设置的配置信息确定的。调度队列需求包括但不限于调度队列的数量和调度队列的流分类。用户终端在网络设备的配置信息包括但不限于优先级队列(Priority Queue,简称PQ)、整形队列(SHAPER)、加权公平队列(Weighted Fair Queuing,WFQ)等队列信息。当用户终端完成配置信息的配置,调度队列需求即确定。The scheduling queue requirement is determined based on the configuration information set by the user terminal in the network device. The scheduling queue requirement includes but is not limited to the number of scheduling queues and the flow classification of the scheduling queues. The configuration information of the user terminal in the network device includes but is not limited to the queue information such as priority queue (PQ), shaping queue (SHAPER), weighted fair queue (WFQ), etc. When the user terminal completes the configuration of the configuration information, the scheduling queue requirement is determined.

在一些实施例中,资源池内包括流量管理调度器和调度队列。当用户未设置HQoS业务时,所有的流量管理调度器和调度队列均在资源池,即所有的流量管理调度器和调度队列均未被使用。In some embodiments, the resource pool includes traffic management schedulers and scheduling queues. When the user does not set the HQoS service, all traffic management schedulers and scheduling queues are in the resource pool, that is, all traffic management schedulers and scheduling queues are not used.

在一些实施例中,资源池是通过位图(Bitmap)序列来管理流量管理调度器。如利用32位的Bitmap序列记录每个流量管理调度器的使能情况,在Bitmap序列中,每个bit位代表一个流量管理调度器的使用状态。例如“00000000001111000000000000111100”,其中,“0”表示流量管理调度器未使能(未占用/未使用),“1”表示流量管理调度器使能(占用/使用)。In some embodiments, the resource pool manages the traffic management scheduler through a bitmap sequence. For example, a 32-bit bitmap sequence is used to record the enabling status of each traffic management scheduler. In the bitmap sequence, each bit represents the usage status of a traffic management scheduler. For example, "00000000001111000000000000111100", where "0" indicates that the traffic management scheduler is not enabled (not occupied/not used), and "1" indicates that the traffic management scheduler is enabled (occupied/used).

其中,调度队列需求包括调度队列的需求数目。当网络设备收到用户终端下发的配置HQoS请求时,生成共享流量管理调度器请求时,然后从资源池选取目标流量管理调度器以及目标调度队列。The scheduling queue requirement includes the required number of scheduling queues. When the network device receives the HQoS configuration request sent by the user terminal, it generates a shared traffic management scheduler request, and then selects a target traffic management scheduler and a target scheduling queue from the resource pool.

步骤S302,将至少一个目标调度队列与目标共享流量管理调度器关联。Step S302: associate at least one target scheduling queue with a target shared traffic management scheduler.

其中,根据调度队列需求可以确定用户终端需要的调度队列数量。从资源池选取目标流量管理调度器以及目标调度队列后,将目标调度队列与目标流量管理调度器关联,即将目标调度队列挂接至目标流量管理调度器。The number of scheduling queues required by the user terminal can be determined according to the scheduling queue requirements. After selecting the target traffic management scheduler and the target scheduling queue from the resource pool, the target scheduling queue is associated with the target traffic management scheduler, that is, the target scheduling queue is attached to the target traffic management scheduler.

在一些实施例中,网络设备可以从资源池选择多个目标调度队列,而且,多个目标调度队列的优先级不同,优先级不同的多个目标调度队列均由流量管理调度器进行调度管理。In some embodiments, the network device may select multiple target scheduling queues from a resource pool, and the multiple target scheduling queues have different priorities. The multiple target scheduling queues with different priorities are all scheduled and managed by the traffic management scheduler.

本公开实施例中,流量管理调度器存放在资源池,并由资源池统一管理,而且记录流量管理调度器的使用装填,方便网络设备快速准确地确定目标流量管理调度器。In the disclosed embodiment, the traffic management scheduler is stored in a resource pool and is uniformly managed by the resource pool, and the usage and loading of the traffic management scheduler are recorded, so that the network device can quickly and accurately determine the target traffic management scheduler.

在一些实施例中,如图4所示,步骤S301,基于调度队列需求从资源池确定目标共享流量管理调度器,包括:In some embodiments, as shown in FIG. 4 , step S301, determining a target shared traffic management scheduler from a resource pool based on a scheduling queue requirement, includes:

步骤S401,基于调度队列需求查找资源池,确定满足调度队列需求的候选流量管理调度器。Step S401, searching a resource pool based on the scheduling queue requirements, and determining a candidate traffic management scheduler that meets the scheduling queue requirements.

在步骤S401中,未使能的流量管理调度器可以满足用户终端的调度队列需求,已使能的流量管理调度器也可以满足用户终端的调度队列需求。例如,流量管理调度器虽然为某个用户终端提供流量管理服务,但该用户终端的调度队列需求小于流量管理调度器能够提供的流量管理服务能力。因此,未使能的流量管理调度器和部分已使能的流量管理调度器可以作为候选流量管理调度器。In step S401, the disabled traffic management scheduler can meet the scheduling queue requirements of the user terminal, and the enabled traffic management scheduler can also meet the scheduling queue requirements of the user terminal. For example, although the traffic management scheduler provides traffic management services for a certain user terminal, the scheduling queue requirements of the user terminal are less than the traffic management service capabilities that the traffic management scheduler can provide. Therefore, the disabled traffic management scheduler and some enabled traffic management schedulers can be used as candidate traffic management schedulers.

示例地,用户终端需要3条调度队列需求,而流量管理调度器能够提供16条调度队列的流量管理,此时,流量管理调度器还可以提供13条调度队列的流量管理。因此,流量管理调度器可以为调度队列需求小于13条用户终端提供流量管理服务。For example, if a user terminal requires 3 scheduling queues, and the traffic management scheduler can provide traffic management for 16 scheduling queues, the traffic management scheduler can also provide traffic management for 13 scheduling queues. Therefore, the traffic management scheduler can provide traffic management services for user terminals that require less than 13 scheduling queues.

步骤S402,判断候选流量管理调度器是否满足预设的匹配条件。Step S402, determining whether the candidate traffic management scheduler meets a preset matching condition.

其中,匹配条件包括候选流量管理调度器的类型匹配、候选流量管理调度器中的队列数目小于预设的总队列数中的一种或多种。其中,候选流量管理调度器的类型包括但不限于PQ、SHAPER、WFQ类型。候选流量管理调度器的总队列数目是由该候选流量管理调度器的硬件确定的。The matching condition includes one or more of the following: the type of the candidate traffic management scheduler matches, the number of queues in the candidate traffic management scheduler is less than the preset total number of queues. The type of the candidate traffic management scheduler includes but is not limited to PQ, SHAPER, and WFQ types. The total number of queues of the candidate traffic management scheduler is determined by the hardware of the candidate traffic management scheduler.

示例地,判断候选流量管理调度器的类型是否满足用户终端对调度队列的类型需求,若不满足,则跳过该候选流量管理调度器;如满足,则判断该候选流量管理调度器的队列数目小于或等于预设的总队列数目,如是,则满足匹配条件;若否,则不满足匹配条件。For example, determine whether the type of the candidate traffic management scheduler meets the user terminal's requirements for the type of scheduling queues. If not, skip the candidate traffic management scheduler; if so, determine whether the number of queues of the candidate traffic management scheduler is less than or equal to the preset total number of queues. If so, the matching condition is met; if not, the matching condition is not met.

步骤S403,在候选流量管理调度器满足匹配条件的情况下,将候选流量管理调度器确定为目标共享流量管理调度器。Step S403: When the candidate traffic management scheduler meets the matching condition, the candidate traffic management scheduler is determined as the target shared traffic management scheduler.

在本公开实施例中,先确定候选流量管理调度器,再基于匹配条件从候选流量管理调度器中选择目标流量管理调度器,可以快速确定目标流量管理调度器,从而提高目标流量管理调度器选择的效率。In the disclosed embodiment, candidate traffic management schedulers are first determined, and then a target traffic management scheduler is selected from the candidate traffic management schedulers based on matching conditions. This allows the target traffic management scheduler to be quickly determined, thereby improving the efficiency of selecting the target traffic management scheduler.

在一些实施例中,在候选流量管理调度器满足匹配条件的情况下,还可以进一步判断单速队列和双速队列是否匹配,并在单速队列和双速队列也匹配的情况下,将候选流量管理调度器确定为目标共享流量管理调度器。In some embodiments, when the candidate traffic management scheduler meets the matching conditions, it can be further determined whether the single-speed queue and the dual-speed queue match, and when the single-speed queue and the dual-speed queue also match, the candidate traffic management scheduler is determined as the target shared traffic management scheduler.

在一些实施例中,在候选流量管理调度器满足匹配条件,单速队列和双速队列也匹配的情况下,进一步判断候选流量管理调度器的队列数目小于或等于预设的总队列数目,当候选流量管理调度器的队列数目小于或等于预设的总队列数目时,将候选流量管理调度器确定为目标共享流量管理调度器。In some embodiments, when the candidate traffic management scheduler meets the matching conditions and the single-speed queue and the dual-speed queue also match, it is further determined that the number of queues of the candidate traffic management scheduler is less than or equal to the preset total number of queues. When the number of queues of the candidate traffic management scheduler is less than or equal to the preset total number of queues, the candidate traffic management scheduler is determined as the target shared traffic management scheduler.

在一些实施例中,步骤S401,基于调度队列需求查找资源池,确定满足调度队列需求的候选流量管理调度器,包括:基于调度队列需求查找资源池中已使能的调度器;在已使能的调度器无法满足调度队列需求的情况下,查找资源池中未使能的调度器,确定满足调度队列需求的候选流量管理调度器。In some embodiments, step S401, searching the resource pool based on the scheduling queue requirements to determine a candidate traffic management scheduler that meets the scheduling queue requirements, includes: searching the resource pool for an enabled scheduler based on the scheduling queue requirements; when the enabled scheduler cannot meet the scheduling queue requirements, searching the resource pool for an unenabled scheduler to determine a candidate traffic management scheduler that meets the scheduling queue requirements.

资源池中的流量管理调度器有些是使能的流量管理调度器,有些是未使能的流量管理调度器,如果直接从未使能的流量管理调度器选择候选可以快速确定目标流量管理调度器,然而,会降低流量管理调度器的利用率,不利于为更多的用户终端提供流量管理服务。先查找已使能的流量管理调度器,再查找未使能的流量管理调度器,可以提高流量管理调度器的利用率,扩大网络设备的服务容量。Some of the traffic management schedulers in the resource pool are enabled, and some are disabled. If you directly select candidates from the disabled traffic management schedulers, you can quickly determine the target traffic management scheduler. However, this will reduce the utilization of the traffic management scheduler, which is not conducive to providing traffic management services for more user terminals. First search for enabled traffic management schedulers, and then search for disabled traffic management schedulers, which can improve the utilization of traffic management schedulers and expand the service capacity of network devices.

在一些实施例中,在资源池中的流量管理调度器按预设顺序排列,如流量管理调度器按照设定的序列号顺序排列。In some embodiments, the traffic management schedulers in the resource pool are arranged in a preset order, such as the traffic management schedulers are arranged in a set sequence number order.

基于调度队列需求查找资源池,包括:从搜索标记开始基于调度队列需求顺序查找资源池中的流量管理调度器;其中,搜索标记为确定前一用户终端的共享流量管理调度器的位置;在从搜索标记起至预设顺序的末尾没有满足调度队列需求的候选流量管理调度器的情况下,从预设顺序的起始位置继续搜索。Searching for a resource pool based on scheduling queue requirements includes: starting from a search mark, searching for a traffic management scheduler in the resource pool based on the scheduling queue requirements order; wherein the search mark is used to determine the position of the shared traffic management scheduler of the previous user terminal; if there is no candidate traffic management scheduler that meets the scheduling queue requirements from the search mark to the end of the preset sequence, continuing the search from the starting position of the preset sequence.

需要说明的是,网络设备是串行执行用户终端的共享流量管理调度器的请求,网络设备为前一用户终端确定目标流量管理调度器的位置为搜索标记。网络设备在执行后一用户终端的共享流量管理调度器的请求时,先从该搜索标记开始选择,即先判断为前一用户终端提供服务的流量管理调度器,是否可以作为目标流量管理调度器。It should be noted that the network device serially executes the shared traffic management scheduler request of the user terminal, and the network device determines the location of the target traffic management scheduler for the previous user terminal as a search mark. When the network device executes the shared traffic management scheduler request of the next user terminal, it first starts to select from the search mark, that is, first determines whether the traffic management scheduler that provides services to the previous user terminal can be used as the target traffic management scheduler.

本公开实施例从搜索标记开始搜索资源池,来确目标流量管理调度器,可以提高流量管理调度器的利用率,扩大了网络设备的服务容量。The disclosed embodiment searches the resource pool starting from the search mark to determine the target traffic management scheduler, which can improve the utilization rate of the traffic management scheduler and expand the service capacity of the network device.

在一些实施例中,资源池包括多个调度器组,每个调度器组包括预设数量的流量管理调度器。In some embodiments, the resource pool includes multiple scheduler groups, each scheduler group includes a preset number of traffic management schedulers.

基于调度队列需求查找资源池,包括:以调度器组为粒度基于调度队列需求查找资源池。Searching for a resource pool based on a scheduling queue requirement includes: searching for a resource pool based on a scheduling queue requirement with a scheduler group as a granularity.

示例地,将32个流量管理调度器分词四个调度器组,每个调度器组包括八个流量管理调度器。在查找资源池时,可以按调度器组来查找,若某个调度器组内的八个流量管理调度器均未使能,则可以直接查找下一个调度器组。若调度器组内存在已使能的流量管理调度器,则判断该已使能的流量管理调度器是否可以确定为目标流量管理调度器。For example, 32 traffic management schedulers are divided into four scheduler groups, each of which includes eight traffic management schedulers. When searching for a resource pool, you can search by scheduler group. If all eight traffic management schedulers in a scheduler group are not enabled, you can directly search for the next scheduler group. If there is an enabled traffic management scheduler in the scheduler group, determine whether the enabled traffic management scheduler can be determined as the target traffic management scheduler.

本公开实施例以调度器组为粒度查找资源池,可以提高查找的效率,从而提高确定目标流量管理调度器的效率。The disclosed embodiment searches for resource pools at a granularity of a scheduler group, which can improve the efficiency of the search, thereby improving the efficiency of determining a target traffic management scheduler.

在一些实施例中,在步骤S301,基于调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列之前,还包括:判断调度队列需求对应的用户终端是否满足共享条件;其中,共享条件包括用户终端的终端配置满足预设的终端配置条件和/或用户终端的业务配置满足业务配置条件。In some embodiments, in step S301, before determining the target shared traffic management scheduler and at least one target scheduling queue from the resource pool based on the scheduling queue requirements, it also includes: determining whether the user terminal corresponding to the scheduling queue requirements meets the sharing conditions; wherein the sharing conditions include that the terminal configuration of the user terminal meets the preset terminal configuration conditions and/or the service configuration of the user terminal meets the service configuration conditions.

若用户终端满足预设的共享条件,则网络设备可以为该用户终端提供共享流量管理调度器,若用户终端不能满足预设的共享条件,则网络设备无法为该用户终端提供共享流量管理调度器。If the user terminal meets the preset sharing conditions, the network device can provide a shared traffic management scheduler for the user terminal. If the user terminal does not meet the preset sharing conditions, the network device cannot provide a shared traffic management scheduler for the user terminal.

在本公开实施例中,用户终端的终端配置包括定制队列(Custom Queue,CQ)、CBQ(Class Based Queue,CBQ),但不能是PQ、SHAPER、WFQ,用户终端的业务配置可以是CQ、CBQ、PQ、SHAPER、WFQ,换言之,共享条件中,对用户终端的终端配置有一定的限制,而对用户终端的业务配置没有限制或者限制较少。In the embodiments of the present disclosure, the terminal configuration of the user terminal includes a custom queue (Custom Queue, CQ) and a class based queue (CBQ), but cannot be PQ, SHAPER, or WFQ. The service configuration of the user terminal can be CQ, CBQ, PQ, SHAPER, or WFQ. In other words, in the sharing conditions, there are certain restrictions on the terminal configuration of the user terminal, while there are no restrictions or fewer restrictions on the service configuration of the user terminal.

若用户终端满足共享条件,则网络设备可以为用户终端提供目标共享流量管理调度器和目标调度队列,并对该用户终端提供分层流量管理。若用户终端不满足共享条件,则网络设备可以直接放弃提供目标共享流量管理调度器。If the user terminal meets the sharing conditions, the network device can provide the target shared traffic management scheduler and target scheduling queue for the user terminal and provide hierarchical traffic management for the user terminal. If the user terminal does not meet the sharing conditions, the network device can directly give up providing the target shared traffic management scheduler.

在一些实施例中,在步骤S301,基于调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列之前,还包括:接收配置信息,并基于配置信息确定调度队列需求。In some embodiments, before step S301, determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on scheduling queue requirements, it also includes: receiving configuration information, and determining scheduling queue requirements based on the configuration information.

其中,配置信息可以是HQoS业务配置信息,相比于QoS业务配置信息而言,HQoS业务配置信息可以基于服务等级进行业务区分,可对多个用户终端的多个业务进行流量管理和调度。The configuration information may be HQoS service configuration information. Compared with QoS service configuration information, HQoS service configuration information may differentiate services based on service levels, and may perform traffic management and scheduling for multiple services of multiple user terminals.

配置信息是用户终端发送给网络设备,配置信息包括接口信息、流策略等。基于配置信息可以确定调度队列需求。例如,基于流策略可以确定流分类,基于流的类型和带宽需求可以确定调度队列需求。Configuration information is sent by the user terminal to the network device, and includes interface information, flow policy, etc. Based on the configuration information, the scheduling queue requirements can be determined. For example, flow classification can be determined based on the flow policy, and scheduling queue requirements can be determined based on the flow type and bandwidth requirements.

第二方面,本公开实施例提供一种网络设备,该以提高流量管理调度器的利用率,以及方便扩容。In a second aspect, an embodiment of the present disclosure provides a network device to improve the utilization rate of a traffic management scheduler and facilitate capacity expansion.

参照图5,本公开实施例提供的网络设备500,包括:5 , a network device 500 provided in an embodiment of the present disclosure includes:

接收模块501,用于接收不同用户终端的待转发报文,并获得待转发报文的流分类。The receiving module 501 is used to receive messages to be forwarded from different user terminals and obtain flow classifications of the messages to be forwarded.

匹配模块502,用于基于待转发报文的流分类将待转发报文匹配至对应的目标调度队列;其中,目标调度队列与目标共享流量管理调度器关联,并由目标共享流量管理调度器管理目标调度队列,目标共享流量管理调度器和目标调度队列是基于用户终端的调度队列需求从资源池确定的。The matching module 502 is used to match the message to be forwarded to the corresponding target scheduling queue based on the flow classification of the message to be forwarded; wherein, the target scheduling queue is associated with the target shared traffic management scheduler, and the target scheduling queue is managed by the target shared traffic management scheduler, and the target shared traffic management scheduler and the target scheduling queue are determined from the resource pool based on the scheduling queue requirements of the user terminal.

本公开实施例提供的网络设备,将目标调度队列与目标共享流量管理调度器关联,由目标共享流量管理调度器管理目标调度队列,目标调度队列可以是不同用户终端的调度队列,当接收到不同用户终端的待转发报文时,基于待转发报文的流分类将待转发报文匹配至对应的目标调度队列,一个目标共享流量管理调度器可以管理不同用户终端的待转发报文,不再是一个目标共享流量管理调度器对应一个用户终端,减少了目标共享流量管理调度器的需求量,缓解了目标共享流量管理调度器数量受限的问题,节省了硬件资源。The network device provided by the embodiment of the present disclosure associates a target scheduling queue with a target shared traffic management scheduler, and the target shared traffic management scheduler manages the target scheduling queue. The target scheduling queue can be a scheduling queue for different user terminals. When messages to be forwarded from different user terminals are received, the messages to be forwarded are matched to the corresponding target scheduling queues based on the flow classification of the messages to be forwarded. One target shared traffic management scheduler can manage messages to be forwarded from different user terminals, and one target shared traffic management scheduler no longer corresponds to one user terminal, thereby reducing the demand for target shared traffic management schedulers, alleviating the problem of limited number of target shared traffic management schedulers, and saving hardware resources.

在一些实施例中,网络设备500还包括表管理模块(图中未示出),用于存储用户的配置信息,该配置信息是用户通过用户终端设置的。In some embodiments, the network device 500 further includes a table management module (not shown in the figure) for storing user configuration information, which is set by the user through a user terminal.

在一些实施例中,如图6所述,网络设备600包括,接收模块601和匹配模块602,接收模块601和匹配模块602的作用和功能与接收模块501和匹配模块502相同,在此不再赘述。In some embodiments, as shown in FIG. 6 , the network device 600 includes a receiving module 601 and a matching module 602 . The roles and functions of the receiving module 601 and the matching module 602 are the same as those of the receiving module 501 and the matching module 502 , and are not described in detail herein.

网络设备600还包括选取模块603和关联模块604,其中,The network device 600 further includes a selection module 603 and an association module 604, wherein:

选取模块603,用于基于调度队列需求从资源池确定目标共享流量管理调度器和至少一个目标调度队列。The selection module 603 is used to determine a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirements.

关联模块604,用于将至少一个目标调度队列与目标共享流量管理调度器关联。The association module 604 is configured to associate at least one target scheduling queue with a target shared traffic management scheduler.

在一些实施例中,选取模块603包括:In some embodiments, the selection module 603 includes:

查找单元,用于基于调度队列需求查找资源池,确定满足调度队列需求的候选流量管理调度器;A search unit, used to search a resource pool based on the scheduling queue requirements and determine a candidate traffic management scheduler that meets the scheduling queue requirements;

判断单元,用于判断候选流量管理调度器是否满足预设的匹配条件;A determination unit, used to determine whether the candidate traffic management scheduler meets a preset matching condition;

确定单元,用于在候选流量管理调度器满足匹配条件的情况下,将候选流量管理调度器确定为目标共享流量管理调度器。The determining unit is used to determine the candidate traffic management scheduler as the target shared traffic management scheduler when the candidate traffic management scheduler meets the matching condition.

在一些实施例中,网络设备600还包括;判断模块605,用于判断调度队列需求对应的用户终端是否满足共享条件;其中,共享条件包括用户终端满足预设终端配置条件和/或用户终端满足业务配置条件。In some embodiments, the network device 600 also includes: a judgment module 605, which is used to judge whether the user terminal corresponding to the scheduling queue requirement meets the sharing condition; wherein the sharing condition includes that the user terminal meets the preset terminal configuration condition and/or the user terminal meets the service configuration condition.

在一些实施例中,网络设备600还包括配置模块606,其中,配置模块606,用于接收配置信息;关联模块604,用于基于配置信息确定调度队列需求。In some embodiments, the network device 600 further includes a configuration module 606, wherein the configuration module 606 is used to receive configuration information; and the association module 604 is used to determine a scheduling queue requirement based on the configuration information.

在一些实施例中,网络设备600还包括请求模块607,用于基于调度队列需求发起共享请求。In some embodiments, the network device 600 further includes a request module 607 for initiating a sharing request based on a scheduling queue requirement.

本公开实施例中提供的网络设备600可以是路由器,也可以交换机等设备。The network device 600 provided in the embodiment of the present disclosure may be a router, or a switch or other device.

为了更好地理解本公开实施例的网络数据传输方法及网络设备,下面以两个用户终端为例,结合图6和图7进一步介绍。In order to better understand the network data transmission method and network device of the embodiments of the present disclosure, two user terminals are taken as an example and further described in combination with Figures 6 and 7.

在步骤S701中,启动网络设备,并对网络设备进行初始化。初始化时用户终端没有接入网络设备,网络设备没有接入HQoS业务,共享流量管理调度器和调度队列均在资源池,而且,共享流量管理调度器均未被占用。假设资源池内有32个共享流量管理调度器,Bitmap序列为“00000000000000000000000000000000”。In step S701, the network device is started and initialized. During initialization, the user terminal is not connected to the network device, the network device is not connected to the HQoS service, the shared traffic management scheduler and the scheduling queue are in the resource pool, and the shared traffic management scheduler is not occupied. Assume that there are 32 shared traffic management schedulers in the resource pool, and the Bitmap sequence is "0000000000000000000000000000000000".

在步骤S702中,网络设备接收第一用户终端的HQoS业务请求,并通过配置模块606将HQoS业务请求透传至表管理模块。假设HQoS业务请求包括3个节点,每个节点的调度队列需求如下:第一节点的调度队列需求为PQ高优先级,且限速要求;第二节点的调度队列需求为PQ中优先级,无限速要求;第三节点的调度队列需求为PQ低优先级,无限速要求。In step S702, the network device receives the HQoS service request of the first user terminal, and transparently transmits the HQoS service request to the table management module through the configuration module 606. Assume that the HQoS service request includes 3 nodes, and the scheduling queue requirements of each node are as follows: the scheduling queue requirement of the first node is PQ high priority and speed limit requirement; the scheduling queue requirement of the second node is PQ medium priority and speed limit requirement; the scheduling queue requirement of the third node is PQ low priority and speed limit requirement.

在步骤S703中,表管理模块将HQoS业务请求透传至请求模块607,例如将调度队列需求透传至请求模块607,判断模块605判断第一用户终端是否满足共享条件,若满足共享条件,则执行步骤S704,若不满足共享条件,则退出。In step S703, the table management module transmits the HQoS service request to the request module 607, for example, transmits the scheduling queue requirement to the request module 607, and the judgment module 605 determines whether the first user terminal meets the sharing condition. If the sharing condition is met, step S704 is executed. If the sharing condition is not met, exit.

在步骤S704中,选取模块603查询资源池,获得共享流量管理调度器。In step S704, the selection module 603 queries the resource pool to obtain a shared traffic management scheduler.

示例地,从资源池查询已使能共享流量管理调度器,若已使能共享流量管理调度器无法满足第一用户终端,则查询未使能共享流量管理调度器,以确定目标共享流量管理调度器。在查询过程中,以搜索标记对应的共享流量管理调度器为起点进行查询,若查询到末尾仍没有满足调度队列需求的候选共享流量管理调度器,则从资源池的队首开始查询。而且,可以按照调度器组来查询。例如,资源池内32个共享流量管理调度器可以分为四个调度器组,每个调度器组包括八个共享流量管理调度器。For example, the enabled shared traffic management scheduler is queried from the resource pool. If the enabled shared traffic management scheduler cannot satisfy the first user terminal, the disabled shared traffic management scheduler is queried to determine the target shared traffic management scheduler. During the query process, the query is performed starting from the shared traffic management scheduler corresponding to the search tag. If there is still no candidate shared traffic management scheduler that meets the scheduling queue requirements at the end of the query, the query is started from the head of the queue in the resource pool. Moreover, the query can be performed according to the scheduler group. For example, the 32 shared traffic management schedulers in the resource pool can be divided into four scheduler groups, each scheduler group includes eight shared traffic management schedulers.

“00000000"00000000

0000000000000000

0000000000000000

00000000”00000000"

如果第一个调度器组内的共享流量管理调度器均为未使能共享流量管理调度器,则查询下一个调度器组。将查询到的共享流量管理调度器确定为目标共享流量管理调度器。If all the shared traffic management schedulers in the first scheduler group are not enabled with shared traffic management, the next scheduler group is queried, and the queried shared traffic management scheduler is determined as the target shared traffic management scheduler.

对于上述的3个节点的调度队列需求,可以选择一个目标共享流量管理调度器作为根节点和三个目标调度队列作为叶子节点。修改Bitmap序列,如:For the above three node scheduling queue requirements, you can select a target shared traffic management scheduler as the root node and three target scheduling queues as leaf nodes. Modify the Bitmap sequence, such as:

“00000000"00000000

0000000000000000

0000000000000000

00000001”00000001”

其中“1”为共享流量管理调度器已使能,“0”为共享流量管理调度器未使能。"1" means the shared traffic management scheduler is enabled, and "0" means the shared traffic management scheduler is not enabled.

在步骤S705中,关联模块604将目标共享流量管理调度器挂接至根节点,以及将目标调度队列与目标共享流量管理调度器关联。将Bitmap序列发送在表管理模块进行更新。In step S705, the association module 604 attaches the target shared traffic management scheduler to the root node, and associates the target scheduling queue with the target shared traffic management scheduler. The Bitmap sequence is sent to the table management module for updating.

在步骤S706中,接收第一用户终端的发送的待转发报文,获得待转发报文的流分类,并基于待转发报文的流分类匹配目标调度队列,再将待转发报文发送至相应的目标调度队列。In step S706, a message to be forwarded sent by the first user terminal is received, a flow classification of the message to be forwarded is obtained, and a target scheduling queue is matched based on the flow classification of the message to be forwarded, and then the message to be forwarded is sent to the corresponding target scheduling queue.

在步骤S707中,接收第二用户终端的HQoS业务请求。In step S707, an HQoS service request from a second user terminal is received.

在步骤S708中,通过配置模块606将HQoS业务请求透传至表管理模块。In step S708 , the HQoS service request is transparently transmitted to the table management module through the configuration module 606 .

在步骤S709中,表管理模块将HQoS业务请求透传至请求模块607,判断模块605判断第二用户终端是否满足共享条件,若满足共享条件,则执行步骤S710,若不满足共享条件,则退出。In step S709, the table management module transparently transmits the HQoS service request to the request module 607, and the judgment module 605 judges whether the second user terminal meets the sharing condition. If the sharing condition is met, step S710 is executed; if not, step S710 is exited.

在步骤S710中,选取模块603查询资源池,获得共享流量管理调度器。查询方式与步骤S704相同,在此不再赘述。In step S710, the selection module 603 queries the resource pool to obtain a shared traffic management scheduler. The query method is the same as step S704 and will not be repeated here.

其中,步骤S710确定的共享流量管理调度器可以是第一用户终端确定的共享流量管理调度器,即共享流量管理调度器同时为第一用户终端和第二用户终端提供流量管理服务。The shared traffic management scheduler determined in step S710 may be a shared traffic management scheduler determined by the first user terminal, that is, the shared traffic management scheduler provides traffic management services for both the first user terminal and the second user terminal.

在步骤S711中,若步骤S710确定的共享流量管理调度器与第一用户终端确定的共享流量管理调度器是不同的共享流量管理调度器,则执行方式与步骤S705相同;若步骤S710确定的共享流量管理调度器与第一用户终端确定的共享流量管理调度器是相同的共享流量管理调度器,则关联模块604将目标调度队列与目标共享流量管理调度器关联。将Bitmap序列发送在表管理模块进行更新。In step S711, if the shared traffic management scheduler determined in step S710 is different from the shared traffic management scheduler determined by the first user terminal, the execution method is the same as step S705; if the shared traffic management scheduler determined in step S710 is the same as the shared traffic management scheduler determined by the first user terminal, the association module 604 associates the target scheduling queue with the target shared traffic management scheduler. The Bitmap sequence is sent to the table management module for updating.

在步骤S712中,接收第二用户终端的发送的待转发报文,获得待转发报文的流分类,并基于待转发报文的流分类匹配目标调度队列,再将待转发报文发送至相应的目标调度队列。In step S712, a message to be forwarded sent by the second user terminal is received, a flow classification of the message to be forwarded is obtained, and a target scheduling queue is matched based on the flow classification of the message to be forwarded, and then the message to be forwarded is sent to the corresponding target scheduling queue.

通过上述步骤S701至步骤S712,目标共享流量管理调度器可以为第一用户终端和第二用户终端提供流量管理服务。图8示出了一种目标共享流量管理调度器为第一用户终端和第二用户终端提供流量管理服务的示意图。在图8中,调度队列Q1-Q3为第一用户终端的目标调度队列,调度队列Q5-Q6为第二用户终端的目标调度队列,目标共享流量管理调度器801提供了三个优先级,分别为优先级逐渐下降的金(Gold)调度队列、银(silver)调度队列、铜(Bronze)调度队列。目标共享流量管理调度器可以对调度队列Q1和Q4进行限速。图8示出第一用户终端和第二用户终端共用目标共享流量管理调度器,而且,可以对不同的调度队列进行分级管理。目标共享流量管理调度器801通过端口802将调度队列发送至服务器或其它用户终端。Through the above steps S701 to S712, the target shared traffic management scheduler can provide traffic management services for the first user terminal and the second user terminal. Figure 8 shows a schematic diagram of a target shared traffic management scheduler providing traffic management services for the first user terminal and the second user terminal. In Figure 8, the scheduling queues Q1-Q3 are the target scheduling queues for the first user terminal, the scheduling queues Q5-Q6 are the target scheduling queues for the second user terminal, and the target shared traffic management scheduler 801 provides three priorities, namely the gold scheduling queue, the silver scheduling queue, and the bronze scheduling queue with gradually decreasing priorities. The target shared traffic management scheduler can limit the speed of the scheduling queues Q1 and Q4. Figure 8 shows that the first user terminal and the second user terminal share the target shared traffic management scheduler, and different scheduling queues can be managed in a hierarchical manner. The target shared traffic management scheduler 801 sends the scheduling queues to the server or other user terminals through port 802.

第三方面,本公开实施例还提供一种电子设备。In a third aspect, an embodiment of the present disclosure also provides an electronic device.

参照图9,该电子设备包括:至少一个处理器901;至少一个存储器902,以及一个或多个I/O接口903,连接在处理器901与存储器902之间;其中,存储器902存储有可被至少一个处理器901执行的一个或多个计算机程序,一个或多个计算机程序被至少一个处理器901执行,以使至少一个处理器901能够执行上述的数据处理方法。9 , the electronic device includes: at least one processor 901; at least one memory 902, and one or more I/O interfaces 903, connected between the processor 901 and the memory 902; wherein the memory 902 stores one or more computer programs that can be executed by at least one processor 901, and the one or more computer programs are executed by at least one processor 901 so that the at least one processor 901 can execute the above-mentioned data processing method.

其中,处理器为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH);I/O接口(读写接口)连接在处理器与存储器间,能实现存储器与处理器的信息交互,其包括但不限于数据总线(Bus)等。Among them, the processor is a device with data processing capabilities, including but not limited to the central processing unit (CPU); the memory is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I/O interface (read-write interface) is connected between the processor and the memory, and can realize information exchange between the memory and the processor, including but not limited to the data bus (Bus), etc.

本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,其中,计算机程序在被处理器/处理核执行时实现上述的数据方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。The present disclosure also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned data method when executed by a processor/processing core. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

本领域普通技术人员可以理解,上文中所公开的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。Those skilled in the art will appreciate that all or some of the steps, systems, and functional modules/units in the apparatus disclosed above may be implemented as software, firmware, hardware, or a suitable combination thereof.

在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。In hardware implementations, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation.

某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器(CPU)、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其它数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH)或其它磁盘存储器;只读光盘(CD-ROM)、数字多功能盘(DVD)或其它光盘存储器;磁盒、磁带、磁盘存储或其它磁存储器;可以用于存储期望的信息并且可以被计算机访问的任何其它的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其它传输机制之类的调制数据信号中的其它数据,并且可包括任何信息递送介质。Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-temporary medium) and a communication medium (or temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical disk storage; magnetic cassettes, magnetic tapes, disk storage or other magnetic storage; any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

本公开已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其它实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。The present disclosure has disclosed example embodiments, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly stated, features, characteristics, and/or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and/or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims (16)

1. A method of network data transmission, comprising:
receiving messages to be forwarded of different user terminals, and obtaining flow classification of the messages to be forwarded;
matching the message to be forwarded to a corresponding target scheduling queue based on the flow classification of the message to be forwarded; the target scheduling queue is associated with and managed by a target shared traffic management scheduler, and the target shared traffic management scheduler and the target scheduling queue are determined from a resource pool based on scheduling queue requirements of the user terminal.
2. The method of claim 1, wherein determining the target shared traffic management scheduler and the target dispatch queue comprises:
determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue demand;
the at least one target scheduling queue is associated with the target shared traffic management scheduler.
3. The method of claim 2, wherein the determining a target shared traffic management scheduler from a resource pool based on the scheduling queue demand comprises:
searching the resource pool based on the scheduling queue demand, and determining a candidate flow management scheduler meeting the scheduling queue demand;
judging whether the candidate flow management scheduler meets a preset matching condition or not;
and determining the candidate traffic management scheduler as the target shared traffic management scheduler in the case that the candidate traffic management scheduler meets the matching condition.
4. The method of claim 3, wherein the looking up the resource pool based on the scheduling queue demand, determining a candidate traffic management scheduler that meets the scheduling queue demand, comprises:
Searching an enabled scheduler in the resource pool based on the scheduling queue demand;
and searching for an disabled scheduler in the resource pool under the condition that the enabled scheduler cannot meet the scheduling queue demand, and determining a candidate traffic management scheduler meeting the scheduling queue demand.
5. A method according to claim 3, wherein the traffic management schedulers in the resource pool are arranged in a preset order; the searching the resource pool based on the scheduling queue requirement comprises the following steps:
sequentially searching the traffic management schedulers in the resource pool based on the scheduling queue demands from a search mark; wherein the search mark is used for determining the position of a shared flow management scheduler of a previous user terminal;
and continuing searching from the starting position of the preset sequence under the condition that no candidate traffic management scheduler meeting the scheduling queue requirement is arranged from the searching mark to the end of the preset sequence.
6. A method according to claim 3, wherein the resource pool comprises a plurality of scheduler groups, each scheduler group comprising a preset number of the traffic management schedulers; the searching the resource pool based on the scheduling queue requirement comprises the following steps:
And searching the resource pool based on the scheduling queue requirement by taking the scheduler group as granularity.
7. The method of claim 3, wherein the matching condition comprises one or more of a type of the candidate traffic management scheduler matching a requirement of the user terminal, a number of queues of the candidate traffic management scheduler being less than or equal to a preset total number of queues.
8. The method of any of claims 2 to 7, wherein prior to determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirements, further comprising:
judging whether the user terminal corresponding to the scheduling queue requirement meets a sharing condition or not; the sharing condition includes that the user terminal meets a preset terminal configuration condition and/or the user terminal meets a service configuration condition.
9. The method of any of claims 2 to 7, wherein prior to determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirements, further comprising:
and receiving configuration information and determining the scheduling queue requirement based on the configuration information.
10. A network device, comprising:
the receiving module is used for receiving messages to be forwarded of different user terminals and obtaining flow classification of the messages to be forwarded;
the matching module is used for matching the message to be forwarded to a corresponding target scheduling queue based on the flow classification of the message to be forwarded; the target scheduling queue is associated with a target shared traffic management scheduler, the target shared traffic management scheduler manages the target scheduling queue, and the target shared traffic management scheduler and the target scheduling queue are determined from a resource pool based on scheduling queue requirements of the user terminal.
11. The network device of claim 10, further comprising:
a selection module for determining a target shared traffic management scheduler and at least one target scheduling queue from a resource pool based on the scheduling queue requirements;
and the association module is used for associating the at least one target scheduling queue with the target shared flow management scheduler.
12. The network device of claim 11, wherein the selection module comprises:
the searching unit is used for searching the resource pool based on the scheduling queue demand and determining a candidate flow management scheduler meeting the scheduling queue demand;
The judging unit is used for judging whether the candidate flow management scheduler meets a preset matching condition or not;
and the determining unit is used for determining the candidate traffic management scheduler as the target shared traffic management scheduler in the case that the candidate traffic management scheduler meets the matching condition.
13. The network device of claim 11, further comprising;
the judging module is used for judging whether the user terminal corresponding to the scheduling queue requirement meets the sharing condition or not; the sharing condition includes that the user terminal meets a preset terminal configuration condition and/or the user terminal meets a service configuration condition.
14. The network device of claim 11, further comprising;
the configuration module is used for receiving configuration information;
the association module is further configured to determine the scheduling queue requirement based on the configuration information.
15. An electronic device, comprising:
one or more processors;
storage means having stored thereon one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-9;
One or more I/O interfaces coupled between the processor and the memory configured to enable information interaction of the processor with the memory.
16. A computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method according to any of claims 1-9.
CN202211224867.6A 2022-10-08 2022-10-08 Network data transmission method, network device, electronic device and computer readable medium Pending CN117896326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211224867.6A CN117896326A (en) 2022-10-08 2022-10-08 Network data transmission method, network device, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211224867.6A CN117896326A (en) 2022-10-08 2022-10-08 Network data transmission method, network device, electronic device and computer readable medium

Publications (1)

Publication Number Publication Date
CN117896326A true CN117896326A (en) 2024-04-16

Family

ID=90638212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211224867.6A Pending CN117896326A (en) 2022-10-08 2022-10-08 Network data transmission method, network device, electronic device and computer readable medium

Country Status (1)

Country Link
CN (1) CN117896326A (en)

Similar Documents

Publication Publication Date Title
CN112039942B (en) A subscription publishing method and server
WO2020103834A1 (en) Time sensitive networking communication method and apparatus thereof
RU2419226C2 (en) Memory control for high-speed control of access to environment
CN1237767C (en) A scheduling control method and device for shared resource access
US8392586B2 (en) Method and apparatus to manage transactions at a network storage device
KR102719059B1 (en) Multi-stream ssd qos management
JP7194730B2 (en) Buffer status reporting method, terminal and computer storage medium
US8848532B2 (en) Method and system for processing data
WO2014026613A1 (en) Network bandwidth distribution method and terminal
WO2022089175A1 (en) Network congestion control method and apparatus
CN102035732A (en) Service scheduling method and device
WO2020042612A1 (en) Method and device for storing and reading a message, server, and storage medium
CN110708256A (en) CDN scheduling method, device, network device and storage medium
CN103329493A (en) On-chip packet cut-through
CN117395167A (en) Service level configuration method and device
CN115103450B (en) Multi-service time slot allocation method and equipment
CN117896326A (en) Network data transmission method, network device, electronic device and computer readable medium
CN112492635B (en) Method and device for determining scheduling priority
WO2024082670A1 (en) Communication method and system, and server
CN115033254B (en) A method, device, equipment and storage medium for pre-deploying an application
WO2023226716A1 (en) Packet transmission method, forwarding node, transmission end and storage medium
AT&T
CN114666285A (en) Ethernet send queue scheduling method, system, storage medium and computing device
CN116419333A (en) A slice selection method, device, network function and readable storage medium
JP3653002B2 (en) How to distribute and set policy definitions

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination