[go: up one dir, main page]

CN116056245A - Data scheduling method, device and computer readable storage medium - Google Patents

Data scheduling method, device and computer readable storage medium Download PDF

Info

Publication number
CN116056245A
CN116056245A CN202210846595.7A CN202210846595A CN116056245A CN 116056245 A CN116056245 A CN 116056245A CN 202210846595 A CN202210846595 A CN 202210846595A CN 116056245 A CN116056245 A CN 116056245A
Authority
CN
China
Prior art keywords
network
data flow
source
quality
data
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.)
Granted
Application number
CN202210846595.7A
Other languages
Chinese (zh)
Other versions
CN116056245B (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210846595.7A priority Critical patent/CN116056245B/en
Publication of CN116056245A publication Critical patent/CN116056245A/en
Application granted granted Critical
Publication of CN116056245B publication Critical patent/CN116056245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1263Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows

Landscapes

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

Abstract

The application provides a data scheduling method, a data scheduling device and a computer readable storage medium, wherein the method is applied to network equipment and comprises the following steps: identifying a source of each of the at least one data stream; and scheduling a first data stream in the at least one data stream to a target network path according to the source of each data stream in the at least one data stream, wherein the source of the first data stream meets a preset priority range, and the target network path is a network path with the optimal network quality in a plurality of network paths of the network equipment. According to the scheme, the source of the data stream is identified, the data stream meeting the priority condition is scheduled to the target network path with optimal network quality, so that the data stream with relatively important source preferentially uses a relatively good network, and the network utilization is more reasonable.

Description

数据调度方法、装置及计算机可读存储介质Data scheduling method, device and computer-readable storage medium

技术领域technical field

本申请涉及通信领域,尤其涉及一种数据调度方法、装置及计算机可读存储介质。The present application relates to the communication field, and in particular to a data scheduling method, device and computer-readable storage medium.

背景技术Background technique

随着无线路由器技术的发展,出现了Mesh网络这类组网方案,这类组网主要通过主路由和子路由根据一定拓扑结构布局后形成。且目前无线路由器可以支持双网络,也就是说,无线路由器可以通过移动网络或者以太网接入互联网。例如支持SIM卡插入和网线连接的无线路由器,既可以接入移动网络,也可以接入以太网。With the development of wireless router technology, networking schemes such as Mesh networks have emerged. This type of networking is mainly formed through the layout of main routes and sub-routes according to a certain topology. And the current wireless router can support dual networks, that is to say, the wireless router can access the Internet through a mobile network or Ethernet. For example, a wireless router that supports SIM card insertion and network cable connection can be connected to a mobile network or an Ethernet.

实际场景中,多个设备的多个应用或者一个设备的多个应用同时接入无线路由器的情况是非常常见的。此时,网络负担较大,可能会出现卡顿或掉线等情况。虽然接入的无线路由器可以是双网络的无线路由器,能够支持移动网络和以太网,但由于目前方案依然是利用其中一个网络,或者即使利用两个网络也并不智能,因此对两个网络的利用并不合理,影响用户上网体验。In actual scenarios, it is very common that multiple applications of multiple devices or multiple applications of one device access the wireless router at the same time. At this time, the network burden is heavy, and there may be situations such as freezing or disconnection. Although the connected wireless router can be a dual-network wireless router, which can support mobile network and Ethernet, but because the current solution is still using one of the networks, or even using two networks is not smart, so the two networks The use is unreasonable and affects the user's online experience.

也就是说,目前的双网络的无线路由器只是具备两种网络接入互联网的能力,但该能力并没有发挥出好的作用,即网络利用不合理,导致无法满足多元化上网需求。That is to say, the current dual-network wireless router only has the ability to access the Internet with two networks, but this ability has not played a good role, that is, the network utilization is unreasonable, resulting in the inability to meet diversified Internet access needs.

因此,如何更加合理利用无线路由器的网络,以满足多元化上网需求是亟待解决的技术问题。Therefore, how to make more rational use of the network of wireless routers to meet diversified Internet access requirements is an urgent technical problem to be solved.

发明内容Contents of the invention

本申请提供一种数据调度方法、网络设备及计算机可读存储介质,能够更加合理利用网络,从而满足多元化上网需求。The present application provides a data scheduling method, network equipment, and computer-readable storage medium, which can make more reasonable use of the network, thereby satisfying diversified Internet access requirements.

第一方面,提供了一种数据调度方法,应用于网络设备,该方法包括:接收至少一个数据流;识别至少一个数据流中每个数据流的来源;根据至少一个数据流中每个数据流的来源,将至少一个数据流中的第一数据流调度到目标网络通路上,第一数据流的来源满足预设优先级范围,目标网络通路是该网络设备的多个网络通路中网络质量最优的网络通路。In a first aspect, a data scheduling method is provided, which is applied to a network device, and the method includes: receiving at least one data flow; identifying the source of each data flow in the at least one data flow; according to each data flow in the at least one data flow The source of at least one data flow is dispatched to the target network path, the source of the first data flow satisfies the preset priority range, and the target network path has the highest network quality among the multiple network paths of the network device. Excellent network access.

本申请技术方案,主要通过识别接收到的数据流的来源,并将满足优先级条件的数据流调度到网络质量最优的目标网络通路上。可以理解为来源相对重要的数据流优先使用相对好的网络。使得多个网络通路都被考虑到,网络利用更加合理。此外,来源相对重要的数据流优先使用质量好的网络通路,还兼顾了用户的多元化上网需求。The technical solution of the present application mainly identifies the source of the received data flow, and dispatches the data flow satisfying the priority condition to the target network path with the best network quality. It can be understood that data streams with relatively important sources preferentially use relatively good networks. Multiple network paths are considered, and network utilization is more reasonable. In addition, data streams with relatively important sources are given priority to use high-quality network channels, which also takes into account the diversified Internet access needs of users.

结合第一方面,在第一方面的某些实现方式中,在识别至少一个数据流中每个数据流对应的来源时,可以执行下面的操作:利用识别模型对至少一个数据流进行处理,得到至少一个数据流中每个数据流的来源,该来源包括业务来源或应用程序来源中的至少一项。通过识别出数据流来源于哪类业务或者哪个应用程序中的至少一项,之后就可以根据来源的优先级,优先把优先级高的某些或某个来源的数据流调度到网络质量最优的目标网络通路上。来源的确定精细化,可以使得对于数据流的调度更加符合上网需求。In combination with the first aspect, in some implementations of the first aspect, when identifying the source corresponding to each data flow in at least one data flow, the following operations may be performed: use the recognition model to process at least one data flow to obtain A source for each of the at least one data stream includes at least one of a business source or an application source. By identifying at least one of the type of business or which application program the data flow comes from, then according to the priority of the source, the data flow of some or a certain source with high priority can be dispatched to the network with the best quality on the target network path. The refinement of source determination can make the scheduling of data flows more in line with Internet access requirements.

可选地,识别模型可以采用预训练好的神经网络模型。例如可以利用带来源标签的数据流(即已知来源的数据流)对神经网络模型进行训练,得到的训练好的神经网络模型就具备了设别数据流来源的能力。Optionally, the recognition model may use a pre-trained neural network model. For example, the neural network model can be trained by using the data stream with the source label (that is, the data stream of known source), and the trained neural network model obtained has the ability to identify the source of the data stream.

结合第一方面,在第一方面的某些实现方式中,在根据至少一个数据流中每个数据流的来源,将至少一个数据流中的第一数据流调度到目标网络通路上时,可以执行下面的操作:判断至少一个数据流中每个数据流的来源是否满足预设优先级范围,并将满足预设优先级范围的数据流确定为第一数据流;标记第一数据流;将带有标记的第一数据流调度到目标网络通路上。通过将第一数据流打上标记再进行调度,使得调度更加方便。可以理解为筛选出第一数据流,打上标记,则在调度时,可以优先把有标记的数据流调度到目标网络通路。在该实现方式中,已知接收到的数据流的来源并从中确定了哪些数据流是第一数据流之后,从接收到的数据流中标定(锁定)第一数据流,锁定的方式就是打标记。With reference to the first aspect, in some implementation manners of the first aspect, when scheduling the first data flow in the at least one data flow to the target network path according to the source of each data flow in the at least one data flow, you may Perform the following operations: determine whether the source of each data flow in at least one data flow meets a preset priority range, and determine the data flow that meets the preset priority range as the first data flow; mark the first data flow; The tagged first data flow is dispatched onto the target network path. Scheduling is made more convenient by marking the first data flow before scheduling. It can be understood that the first data flow is screened out and marked, and the marked data flow can be preferentially dispatched to the target network path during scheduling. In this implementation, after knowing the source of the received data streams and determining which data streams are the first data streams, the first data streams are marked (locked) from the received data streams, and the locking method is to open mark.

结合第一方面,在第一方面的某些实现方式中,在标记第一数据流时,可以执行下面的操作:解析至少一个数据流中每个数据流的IP信息,并将IP信息转换为五元组信息;根据所述五元组信息,从所述至少一个数据流中确定所述第一数据流并进行标记。该实现方式可以理解为一种打标记的方式的示例。通过五元组信息是可以区分开每一条数据流的,知道每一条数据流的源地址、目的地址等五元组信息,从而能够知道每条数据流是不是第一数据流,打上标记。With reference to the first aspect, in some implementation manners of the first aspect, when marking the first data flow, the following operations may be performed: parsing the IP information of each data flow in at least one data flow, and converting the IP information into Five-tuple information: determining and marking the first data stream from the at least one data stream according to the five-tuple information. This implementation manner can be understood as an example of a marking manner. Each data flow can be distinguished through the quintuple information, and the quintuple information such as the source address and the destination address of each data flow can be known, so that it can be known whether each data flow is the first data flow and marked.

可选地,该IP信息可以是利用上文所述识别模型对数据流进行特征提取得到的。可以理解为,是识别数据流来源的过程中的输出。从而不必独立设计IP信息的提取模块或提取方法来得到IP信息。Optionally, the IP information may be obtained by extracting features of the data stream using the recognition model described above. It can be understood as the output of the process of identifying the source of the data stream. Therefore, it is not necessary to independently design an extraction module or an extraction method of IP information to obtain IP information.

结合第一方面,在第一方面的某些实现方式中,上述方法还包括:根据多个网络通路的质量参数,确定多个网络通路的网络质量,质量参数包括信号质量指标、速率或时延中的至少一项,信号质量指标和速率分别与网络质量正相关,时延与网络质量负相关。该实现方式主要是通过质量参数来确定网络质量。With reference to the first aspect, in some implementations of the first aspect, the above method further includes: determining the network quality of multiple network paths according to the quality parameters of multiple network paths, the quality parameters including signal quality indicators, rate or delay At least one of them, the signal quality index and the rate are positively correlated with the network quality, and the time delay is negatively correlated with the network quality. This implementation mainly determines the network quality through quality parameters.

结合第一方面,在第一方面的某些实现方式中,在根据多个网络通路的质量参数,确定多个网络通路的网络质量时,可以执行下面的操作:根据多个网络通路在第一时间区间内的多个时间段的质量参数,得到多个网络通路在多个时间段的网络质量度量值;将多个网络通路在多个时间段的网络质量度量值的平均值或加权平均值作为多个网络通路在第一时间区间内的网络质量。该实现方式中,通过将多个时间段的网络质量的评估值(度量值)取平均,能够使得度量结果更加准确,且可以是长期的度量。第一时间区间可以是一天、一个月、一个季度甚至是一年。当第一时间区间是一天时,多个时间段可以是在一天的24小时内确定多个时间段。通过求加权平均值,例如加大上网高峰期的权重,减小上网低谷期的权重,可以使得度量结果的准确性进一步提高。With reference to the first aspect, in some implementations of the first aspect, when determining the network quality of multiple network paths according to the quality parameters of multiple network paths, the following operations may be performed: according to the multiple network paths in the first The quality parameters of multiple time periods in the time interval, to obtain the network quality metrics of multiple network paths in multiple time periods; the average or weighted average of the network quality metrics of multiple network paths in multiple time periods It is the network quality of multiple network paths in the first time interval. In this implementation manner, by averaging evaluation values (measurement values) of network quality in multiple time periods, the measurement result can be made more accurate, and can be a long-term measurement. The first time interval may be a day, a month, a quarter or even a year. When the first time interval is a day, the multiple time periods may be multiple time periods determined within 24 hours of a day. By calculating the weighted average, for example, increasing the weight of the peak period of Internet access and reducing the weight of the low period of Internet access, the accuracy of the measurement result can be further improved.

结合第一方面,在第一方面的某些实现方式中,上述多个网络通路可以包括移动网络通路和以太网通路。该实现方式中,网络通路包括移动网络和以太网两种,实现多种上网方式。但应理解,在本申请实施例的可能的实现方式中多个网络通路可以是相同种类的网络通路,也可以是不同种类的网络通路。With reference to the first aspect, in some implementation manners of the first aspect, the foregoing multiple network paths may include a mobile network path and an Ethernet path. In this implementation mode, the network access includes two types of mobile network and Ethernet, realizing various ways of accessing the Internet. However, it should be understood that in a possible implementation manner of the embodiment of the present application, the multiple network paths may be the same type of network paths, or may be different types of network paths.

可选地,还可以针对不同种类的网络通路,设置不同的信号质量指标。例如,移动网络通路的信号质量指标包括接收信号强度指示RSSI指标,以太网通路的信号质量指标包括协商速率。不同种类的网络通路采用不同的信号质量指标,可使得网络质量的度量更加准确。Optionally, different signal quality indicators may also be set for different types of network paths. For example, the signal quality index of the mobile network path includes a received signal strength indicator RSSI index, and the signal quality index of the Ethernet path includes a negotiated rate. Different types of network paths use different signal quality indicators, which can make the measurement of network quality more accurate.

结合第一方面,在第一方面的某些实现方式中,上述方法还包括:将至少一个数据流中的第二数据流调度到非目标网络通路上,第二数据流用于表示至少一个数据流中除第一数据流之外的数据流,非目标网络通路用于表示多个网络通路中除目标网络通路之外的网络通路。该实现方式,在来源相对重要的数据流被优先调度到质量较好的网络上的基础上,其他数据流也被调度到其他网络通路上,使得所有网络通路都能够得到充分的利用,提高了网络利用率,提高上网速率。With reference to the first aspect, in some implementations of the first aspect, the above method further includes: scheduling the second data flow of the at least one data flow on a non-target network path, the second data flow is used to represent the at least one data flow Among the data flows other than the first data flow, the non-target network path is used to represent a network path other than the target network path among the plurality of network paths. In this implementation method, on the basis that data streams with relatively important sources are preferentially dispatched to networks with better quality, other data streams are also dispatched to other network paths, so that all network paths can be fully utilized, improving Improve network utilization and increase Internet speed.

第二方面,提供了一种数据调度装置,该装置包括由软件和/或硬件组成的用于执行第一方面中的任意一种方法的单元。In a second aspect, a data scheduling device is provided, and the device includes a unit composed of software and/or hardware for executing any one of the methods in the first aspect.

第三方面,提供了一种网络设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,当处理器执行计算机程序时能够实现第一方面的任意一种方法。A third aspect provides a network device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any one of the methods in the first aspect can be implemented.

结合第三方面,在第三方面的某些实现方式中,该网络设备是无线路由器。With reference to the third aspect, in some implementation manners of the third aspect, the network device is a wireless router.

第四方面,提供了一种芯片,包括处理器,该处理器用于读取并执行存储在存储器中的计算机程序,当计算机程序被处理器执行时能够实现第一方面的任意一种方法。In a fourth aspect, a chip is provided, including a processor, the processor is configured to read and execute a computer program stored in a memory, and when the computer program is executed by the processor, any one of the methods in the first aspect can be implemented.

可选地,该芯片还包括存储器,存储器与处理器电连接。Optionally, the chip further includes a memory, and the memory is electrically connected to the processor.

可选地,该芯片还可以包括通信接口。Optionally, the chip may also include a communication interface.

第五方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,当计算机程序被处理器执行时能够实现第一方面的任意一种方法。In a fifth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the methods in the first aspect can be implemented.

第六方面,提供了一种计算机程序产品,该计算机程序产品包括计算机程序,当计算机程序被处理器执行时能够实现第一方面的任意一种方法。In a sixth aspect, a computer program product is provided, the computer program product includes a computer program, and when the computer program is executed by a processor, any one of the methods in the first aspect can be implemented.

附图说明Description of drawings

图1是本申请实施例的一种适用网络场景的示意图。FIG. 1 is a schematic diagram of an applicable network scenario according to an embodiment of the present application.

图2是本申请实施例的一种数据调度方法的示意性流程图。Fig. 2 is a schematic flowchart of a data scheduling method according to an embodiment of the present application.

图3是本申请实施例的标记数据流的示意性流程图。Fig. 3 is a schematic flow chart of marking data flow according to the embodiment of the present application.

图4是本申请实施例的识别模块的部署位置的示意图。Fig. 4 is a schematic diagram of a deployment position of an identification module according to an embodiment of the present application.

图5是本申请实施例的数据流来源的识别过程的示意图。FIG. 5 is a schematic diagram of an identification process of a data flow source according to an embodiment of the present application.

图6是本申请实施例的移动网络的网络质量度量方法的示意性流程图。Fig. 6 is a schematic flowchart of a network quality measurement method for a mobile network according to an embodiment of the present application.

图7是本申请实施例的以太网的网络质量度量方法的示意性流程图。Fig. 7 is a schematic flowchart of a method for measuring network quality of an Ethernet according to an embodiment of the present application.

图8是本申请实施例的另一种数据调度方法的示意性流程图。FIG. 8 is a schematic flowchart of another data scheduling method according to an embodiment of the present application.

图9是本申请实施例的一种数据调度装置的示意图。Fig. 9 is a schematic diagram of a data scheduling device according to an embodiment of the present application.

具体实施方式Detailed ways

下面结合附图对本申请实施例的方案进行介绍。本申请提供的数据调度方法能够应用于路由器等能够进行无线网络通信的网络设备,主要能够应用于具备多个网络通路的路由设备。The solutions of the embodiments of the present application will be introduced below with reference to the accompanying drawings. The data scheduling method provided in this application can be applied to routers and other network devices capable of wireless network communication, and can mainly be applied to routing devices with multiple network paths.

图1是本申请实施例的一种适用网络场景的示意图。如图1所示,该场景中包括至少一个网络设备110和至少一个下挂设备120。FIG. 1 is a schematic diagram of an applicable network scenario according to an embodiment of the present application. As shown in FIG. 1 , this scenario includes at least one network device 110 and at least one downlink device 120 .

网络设备110可以提供无线网络,下挂设备120可以通过网络设备110接入互联网。下挂设备120可以包括终端设备和网络设备,即下挂设备120只要能够接入网络设备110提供的无线网络即可。图1以下挂设备120包括终端设备121、127-129和网络设备122-126为例。应理解,当下挂设备是网络设备时,可以存在下挂在网络设备上的终端设备或其他网络设备。如图1所示,下挂设备122是路由器,该路由器还存在一个下挂设备路由器125,路由器125还存在下挂设备即终端设备128。此时,终端设备128通过网络设备125和122接入网络设备110,再通过网络设备110接入其中一个网络通路,最终接入互联网。The network device 110 can provide a wireless network, and the downlink device 120 can access the Internet through the network device 110 . The downlink device 120 may include a terminal device and a network device, that is, the downlink device 120 only needs to be able to access the wireless network provided by the network device 110 . FIG. 1 is an example where the downlink device 120 includes terminal devices 121, 127-129 and network devices 122-126. It should be understood that when the downlink device is a network device, there may be a terminal device or other network devices downlinked to the network device. As shown in FIG. 1 , the downlink device 122 is a router, and the router also has a downlink device router 125 , and the router 125 also has a downlink device, that is, a terminal device 128 . At this time, the terminal device 128 accesses the network device 110 through the network devices 125 and 122, and then accesses one of the network paths through the network device 110, and finally accesses the Internet.

在图1中,还包括网络设备123和126,以及终端设备129,其中终端设备129是网络设备126的下挂设备,网络设备123是网络设备126的下挂设备,网络设备126是网络设备110的下挂设备,网络设备126与网络设备110之间是有线连接。图中以终端设备129是笔记本电脑为例。In Fig. 1, also comprise network equipment 123 and 126, and terminal equipment 129, wherein terminal equipment 129 is the downlink equipment of network equipment 126, network equipment 123 is the downlink equipment of network equipment 126, and network equipment 126 is network equipment 110 The downlink device, the network device 126 and the network device 110 are wired. In the figure, it is taken that the terminal device 129 is a notebook computer as an example.

在图1中,还包括网络设备124和终端设备127,其中,终端设备127是网络设备124的下挂设备,网络设备124是网络设备110的下挂设备,网络设备124与网络设备110之间是无线连接。In Fig. 1, also include network equipment 124 and terminal equipment 127, wherein, terminal equipment 127 is the hanging equipment of network equipment 124, and network equipment 124 is the hanging equipment of network equipment 110, between network equipment 124 and network equipment 110 is a wireless connection.

可以看出,网络设备110的下挂设备可以是终端设备,也可以是网络设备,且与网络设备110连接的下挂的网络设备可以是有线连接也可以是无线连接。即网络设备之间可以是有线连接也可以是网络连接。网络设备可以是同类型的路由器,也可以不是同类型的路由器。It can be seen that the downlink device of the network device 110 may be a terminal device or a network device, and the downlink network device connected to the network device 110 may be a wired connection or a wireless connection. That is, the network devices can be wired or network connected. Network devices may or may not be routers of the same type.

应理解,无论下挂设备是网络设备还是终端设备,无论连接了几层网络设备,但最终数据的起源都可以追溯到终端设备。It should be understood that no matter the connected device is a network device or a terminal device, and no matter how many layers of network devices are connected, the origin of the final data can be traced back to the terminal device.

终端设备也可以称之为用户设备,可以是手机等移动终端、电脑、计算机、平板电脑、智能终端、投影设备、网络电视设备、车载终端或者其他能够连接网络的终端设备。智能终端例如可以是智能电视、智能音箱、智能手环或智慧屏等。Terminal equipment can also be called user equipment, which can be a mobile terminal such as a mobile phone, a computer, a computer, a tablet computer, a smart terminal, a projection device, an Internet TV device, a vehicle terminal, or other terminal equipment capable of connecting to a network. The smart terminal may be, for example, a smart TV, a smart speaker, a smart bracelet, or a smart screen.

网络设备110可以通过第一网络通路130或第二网络通路140接入互联网。在图1所示场景中,网络通路既可以是移动网络又可以是以太网。图1以第一网络通路130是移动网络,第二网络通路140是以太网为例。但应理解,第一网络通路130和第二网络通路140可以是同类网络通路也可以不是同类的网络通路,不存在限定。此外,网络设备110与互联网之间还可以包括更多条网络通路。The network device 110 can access the Internet through the first network path 130 or the second network path 140 . In the scenario shown in Figure 1, the network path can be either a mobile network or an Ethernet. FIG. 1 takes an example in which the first network path 130 is a mobile network and the second network path 140 is an Ethernet. However, it should be understood that the first network path 130 and the second network path 140 may be network paths of the same type or not, and there is no limitation. In addition, more network paths may be included between the network device 110 and the Internet.

以第一网络通路130是移动网络通路,第二网络通路140是以太网通路为例,如图1所示,移动网络通路包括接入节点131,图1以接入节点131是基站为例,用于提供移动网络信号,该移动网络可以是长期演进(long term evolution,LTE)网络或第五代(5G)网络等各类移动网络。以太网通路包括交换机141和接入服务器142,可以通过交换机141和接入服务器142接入互联网。以太网可以理解为有线网络,但并不是专指通过网线接入的网络通路。为了便于理解,在某些情况下,通过移动网络通路接入互联网可以看作是利用流量上网,而通过以太网通路接入互联网可以看作是利用宽带上网。Taking the first network access 130 as a mobile network access and the second network access 140 as an Ethernet access as an example, as shown in Figure 1, the mobile network access includes an access node 131, and Figure 1 takes the access node 131 as a base station as an example, It is used to provide a mobile network signal, and the mobile network may be a long term evolution (long term evolution, LTE) network or a fifth generation (5G) network and other types of mobile networks. The Ethernet path includes a switch 141 and an access server 142 through which the Internet can be accessed. Ethernet can be understood as a wired network, but it does not specifically refer to network access through network cables. For ease of understanding, in some cases, accessing the Internet through a mobile network channel can be regarded as using traffic to access the Internet, while accessing the Internet through an Ethernet channel can be regarded as using broadband to access the Internet.

在图1所示场景中,网络设备110的下挂设备120在通过网络设备110接入互联网时,既可以通过第一网络通路130接入,又可以通过第二网络通路140接入。例如,网络设备110接收下挂设备120的数据流,然后通过第一网络通路130或第二网络通路140上传至互联网;或者是,网络设备110通过第一网络通路130或第二网络通路140接收互联网的数据流,然后将接收到的数据流发送给下挂设备120。In the scenario shown in FIG. 1 , when the downlink device 120 of the network device 110 accesses the Internet through the network device 110 , it can access the Internet through the first network path 130 or the second network path 140 . For example, the network device 110 receives the data stream of the downlink device 120, and then uploads it to the Internet through the first network path 130 or the second network path 140; or, the network device 110 receives the Internet data flow, and then send the received data flow to the hanging device 120.

在图1所示场景中,用虚线表示无线连接的方式,用实线表示有线的连接方式。可以看出,第一网络通路130即移动网络通路是无线连接的方式,第二网络通路140即以太网通路是有线的连接方式。下挂设备120和网络设备110之间也可以是无线或有线的连接方式。下挂设备之间也可以是无线或有线的连接方式,例如下挂的路由器之间可以是无线或有线的连接方式。In the scenario shown in FIG. 1 , a dotted line indicates a wireless connection mode, and a solid line indicates a wired connection mode. It can be seen that the first network path 130, that is, the mobile network path is in a wireless connection manner, and the second network path 140, that is, an Ethernet path is in a wired connection manner. The connection between the downlink device 120 and the network device 110 may also be wireless or wired. A wireless or wired connection may also be used between the hanging devices, for example, a wireless or wired connection may be used between the hanging routers.

以图1所示场景为Mesh组网场景为例。则网络设备110可以是Mesh组网中的主路由(controller),也可以称之为母路由,可以用作客户前置设备(customer premiseequipment,CPE),该设备统一管理整个Mesh网络,如信道、拓扑结构、下挂设备的接入、以及接入外网等。在Mesh组网中,CPE结合自身的网络接入特点,能够满足移动网络接入和以太网络接入的诉求,同时可以统一管理网络中的信道优化、拓扑变更或参数配置等功能,所以Mesh网络的主路由可作为CPE设备。Take the Mesh networking scenario shown in Figure 1 as an example. Then the network device 110 can be the main router (controller) in the Mesh networking, also can be referred to as the mother router, can be used as customer premise equipment (customer premise equipment, CPE), this equipment manages the whole Mesh network in a unified way, such as channels, Topology structure, access of connected devices, access to external network, etc. In Mesh networking, CPE can meet the requirements of mobile network access and Ethernet access in combination with its own network access characteristics. The main router can be used as a CPE device.

下挂设备120包括终端设备121、127-129和网络设备122-126,此时网络设备122-126即为子路由(agent),也可以称之为副路由,主要执行主路由发过来的命令,并周期性地给主路由上报网络用量和自身能力信息,例如接入了多少个终端设备或用了哪些频段多少带宽等信息。The downlink device 120 includes terminal devices 121, 127-129 and network devices 122-126. At this time, the network devices 122-126 are sub-routes (agents), which can also be called sub-routes, and mainly execute commands sent by the main router. , and periodically report network usage and self-capability information to the main router, such as how many terminal devices are connected or which frequency bands and bandwidth are used.

应理解,子路由可以通过有线(例如网线连接)或无线(例如WIFI)的方式接入母路由。It should be understood that the sub-router can be connected to the parent router in a wired (eg network cable connection) or wireless (eg WIFI) manner.

在图1的数据交互过程中,由于两个网络通路的网络质量可能存在差异,因此通过不同的网络通路接入互联网的数据传输质量或速率是不同的,也就是说,用户的上网体验不同。本申请实施例主要针对该多网络场景(即网络设备支持多个网络通路上网的场景),提高网络利用率。In the process of data interaction in Figure 1, since the network quality of the two network paths may be different, the quality or rate of data transmission connected to the Internet through different network paths is different, that is, the user's online experience is different. The embodiments of the present application mainly aim at the multi-network scenario (that is, the scenario where the network device supports multiple network paths to access the Internet), and improve network utilization.

图2是本申请实施例的一种数据调度方法的示意性流程图。图2所示方法可以用于图1所示网络设备110,为了便于理解,下文主要以网络设备是Mesh网络中的主路由,终端设备是手机为例进行介绍。Fig. 2 is a schematic flowchart of a data scheduling method according to an embodiment of the present application. The method shown in FIG. 2 can be applied to the network device 110 shown in FIG. 1 . For ease of understanding, the following mainly introduces that the network device is the main router in the Mesh network and the terminal device is a mobile phone.

S201、接收数据流。S201. Receive a data stream.

步骤S201接收的数据流可能直接来自于终端设备,也可能来自于子路由。当接收的数据流来自于子路由时,数据流依然可以追溯到来自于具体的终端设备。例如可以接收至少一个数据流。这至少一个数据流可能来自于该主路由的终端设备,也可能来自于子路由的下挂终端设备。The data flow received in step S201 may come directly from the terminal device, or may come from a sub-router. When the received data flow comes from the sub-router, the data flow can still be traced back to the specific terminal device. For example at least one data stream can be received. The at least one data stream may come from a terminal device of the main route, or may come from a downstream terminal device of a sub-router.

当用户通过终端设备上网时,例如利用手机聊天、视频、查阅资料等。也就是说,通过使用某一个或多个应用程序(application,APP)连接互联网。则步骤S201能够接收到通过使用的APP产生的数据流。也可能多个终端设备同时上网,例如某个情景中,网络电视在播放节目、手机在视频通话的同时,智能音箱在播放天气预报。When a user surfs the Internet through a terminal device, such as using a mobile phone to chat, video, and consult information. That is, the Internet is connected by using one or more application programs (application, APP). Then step S201 can receive the data stream generated by the APP used. It is also possible for multiple terminal devices to surf the Internet at the same time. For example, in a certain scenario, the smart speaker is playing the weather forecast while the Internet TV is playing a program and the mobile phone is making a video call.

S202、识别数据流的来源。S202. Identify the source of the data flow.

也就是说,识别步骤S201接收到的至少一个数据流中每个数据流的来源。That is to say, the source of each data stream in the at least one data stream received in step S201 is identified.

在本申请实施例中,该来源可以具体到来源于哪个APP,还可以对APP根据业务类型分类,则来源可以是指来源于哪类业务。因此,该来源可以包括业务来源或应用程序来源(即APP来源)中的至少一项。In the embodiment of the present application, the source can be specific to which APP it comes from, and the APP can also be classified according to business type, then the source can refer to which type of business it comes from. Therefore, the source may include at least one of a service source or an application program source (ie, an APP source).

业务来源可以看作是对APP按照业务类型分类,将来自于某一业务类型的APP的数据流的来源称之为该业务类型的业务来源。例如业务来源是办公类,是指跟办公相关的APP就可以归为办公类APP(即业务来源是办公),办公相关的APP例如可以包括电子邮件或企业自主研发的办公软件等。也就是说,来自于办公相关的APP的数据流称之为业务来源为办公类的数据流。The service source can be regarded as classifying the APP according to the service type, and the source of the data flow from the APP of a certain service type is called the service source of the service type. For example, if the source of business is office, it means that an app related to office can be classified as an office app (that is, the source of business is office). Office-related apps can include e-mail or office software independently developed by the enterprise, for example. That is to say, the data flow from the office-related APP is called the data flow whose business source is office.

业务来源例如可以包括:应用市场、游戏、影音、直播、新闻、社交、购物、支付、生活、网课、可视通话、下载或上传中的至少一项。影音又可以包括互动影音和非互动影音。业务来源也可以采用其他的划分方式,例如可以划分为:消费、娱乐、生活、工作、学习和其他。The business source may include, for example: at least one of application market, game, audio-visual, live broadcast, news, social networking, shopping, payment, life, online class, video call, download or upload. Audio and video may include interactive audio and video and non-interactive audio and video. Business sources can also be divided in other ways, for example, they can be divided into: consumption, entertainment, life, work, study and others.

APP来源可以采用APP名称表示,例如电子词典、天气、应用市场或电子邮件等名称,不再逐一列举。The APP source can be indicated by the APP name, such as electronic dictionary, weather, application market or email, and will not be listed one by one.

每个业务来源中包括至少一个APP来源。Each business source includes at least one APP source.

在一个例子中,业务来源包括:应用市场、游戏、短视频、视频、直播、新闻、社交聊天、办公、购物、支付、生活、网课和下载。应用市场中包括的APP来源为各厂商的应用市场,例如应用中心、应用宝等。游戏中包括多个具体的游戏APP。短视频包括各短视频平台APP。视频中包括用户用来看电影、电视等影音(视听)节目的APP。新闻包括各新闻平台的APP,社交聊天中包括各个具备社交功能的APP。办公中包括可视通话或会议等办公用APP。购物中包括各个购物APP。支付包括各支付平台APP或手机钱包等。生活可以包括美食、外卖、天气等各类APP。网课可以包括各类学习APP。下载可以包括各类下载APP、网盘或者浏览器等。In one example, business sources include: application market, games, short videos, videos, live broadcasts, news, social chat, office, shopping, payment, life, online courses and downloads. The sources of APPs included in the application market are the application markets of various manufacturers, such as the application center and Yongyongbao. The game includes multiple specific game APPs. Short videos include APPs of various short video platforms. Videos include apps that users use to watch audio-visual (audio-visual) programs such as movies and TV. News includes apps of various news platforms, and social chat includes apps with social functions. Office includes office apps such as video calls or conferences. Shopping includes various shopping apps. Payment includes various payment platform APPs or mobile wallets, etc. Life can include various apps such as food, takeaway, and weather. Online courses can include various learning apps. Downloads can include downloading various apps, network disks, or browsers.

可以看出,业务来源的分类方式可以多种多样,且同一个APP有时可以划分到不同的业务来源中,为了方便,可以将APP的主要功能作为分类依据。例如具备聊天功能的支付APP,主要功能是支付,就划分到支付类。It can be seen that business sources can be classified in a variety of ways, and the same APP can sometimes be classified into different business sources. For convenience, the main functions of the APP can be used as the basis for classification. For example, a payment app with a chat function, whose main function is payment, is classified into the payment category.

在一种实现方式中,该来源包括业务来源或应用程序来源(即APP来源)中的至少一项。在识别数据流来源时,可以通过识别模型对数据流进行处理,从而得到数据流的来源。通过识别出数据流来源于哪类业务或者哪个应用程序,之后就可以根据来源的优先级,优先把优先级高的某些或某个来源的数据流调度到网络质量最优的目标网络通路上。该来源的确定更加精细,使得对于数据流的调度更加符合上网需求。In an implementation manner, the source includes at least one of a service source or an application program source (that is, an APP source). When identifying the source of the data flow, the data flow can be processed through the identification model, so as to obtain the source of the data flow. By identifying which type of service or application the data flow comes from, it is possible to prioritize some or a certain source of high-priority data flow to the target network path with the best network quality according to the priority of the source. . The determination of the source is more refined, so that the scheduling of the data flow is more in line with the Internet access requirements.

可选地,可以利用识别模型对至少一个数据流进行处理,得到至少一个数据流中每个数据流的来源,该来源包括业务来源或应用程序来源中的至少一项。通过识别出数据流来源于哪类业务或者哪个应用程序中的至少一项,之后就可以根据来源的优先级,优先把优先级高的某些或某个来源的数据流调度到网络质量最优的目标网络通路上。来源的确定精细化,可以使得对于数据流的调度更加符合上网需求。Optionally, at least one data flow may be processed by using an identification model to obtain a source of each data flow in the at least one data flow, and the source includes at least one of a service source or an application program source. By identifying at least one of the type of business or which application program the data flow comes from, then according to the priority of the source, the data flow of some or a certain source with high priority can be dispatched to the network with the best quality on the target network path. The refinement of source determination can make the scheduling of data flows more in line with Internet access requirements.

可选地,识别模型可以采用预训练好的神经网络模型或其他大数据分析模型。例如可以利用带来源标签的数据流(即已知来源的数据流)对神经网络模型进行训练,得到的训练好的神经网络模型就具备了识别数据流来源的能力。Optionally, the recognition model may use a pre-trained neural network model or other big data analysis models. For example, the neural network model can be trained by using the data stream with the source label (that is, the data stream of known source), and the trained neural network model obtained has the ability to identify the source of the data stream.

在一个例子中,利用卷积神经网络(convolution neural network,CNN)模型训练得到识别模型。训练数据包括数据流和数据流对应的来源标签,该来源标签包括业务来源和程序来源。CNN对数据流进行处理后,会得到来源的预测值和置信度。所以识别数据流来源可以看作是过一个分类的任务,也就是说,将数据流按照来源分类,输出结果即类别就是数据流的来源。在训练过程中,将数据流输入到CNN,得到的来源类别跟实际的来源即上述来源标签比较,调整CNN的权重,从而使得训练后的CNN具备了识别数据流来源的能力。或者可以理解为,CNN通过对已知来源的数据流的学习,从而具备了识别数据流来源的能力。训练好的CNN模型,就可以识别输入模型的未知来源的数据流的来源。In one example, a recognition model is obtained by training a convolution neural network (CNN) model. The training data includes a data flow and a source label corresponding to the data flow, and the source label includes a business source and a program source. After CNN processes the data stream, it will get the predicted value and confidence of the source. Therefore, identifying the source of the data flow can be regarded as a classification task, that is, to classify the data flow according to the source, and the output result, that is, the category, is the source of the data flow. During the training process, the data stream is input to the CNN, and the obtained source category is compared with the actual source, that is, the above source label, and the weight of the CNN is adjusted, so that the trained CNN has the ability to identify the source of the data stream. Or it can be understood that CNN has the ability to identify the source of data flow by learning the data flow of known sources. The trained CNN model can identify the source of the data stream of unknown origin input into the model.

由于不同APP的端口信息、官方的配置信息等是不同的,而且不同类型APP的网络传输特性也是不同的。例如,对于下载类的APP,下行数据流更多;对于检索类APP,则上行次数比较多,以及一次交互产生的数据流的数量也不相同。以及其他能够区分不同数据流的来源的特征参数。因此可以通过提取这类特征,并基于这些特征进行分类,就能区分出不同数据流的APP来源。Because the port information and official configuration information of different APPs are different, and the network transmission characteristics of different types of APPs are also different. For example, for a downloading APP, there are more downstream data streams; for a retrieval APP, there are more upstream times, and the number of data streams generated by one interaction is also different. And other characteristic parameters that can distinguish the source of different data streams. Therefore, by extracting such features and classifying based on these features, the APP sources of different data streams can be distinguished.

识别模型对数据流的处理过程,可以看作是包括特征提取和分类两个步骤。特征提取部分是将数据流转换为特征向量,这些特征向量中包括上述以及其他能够区分不同来源的特征。对这些特征向量进行分类就能够得到来源。The processing process of the data stream by the recognition model can be regarded as including two steps of feature extraction and classification. The feature extraction part is to convert the data stream into feature vectors, which include the above and other features that can distinguish different sources. Classification of these eigenvectors yields sources.

应理解,上述只是以CNN为例进行介绍,本领域技术人员也可以采用其他神经网络或其他深度学习模型或机器学习模型,训练得到识别模型。例如可以采用深度神经网络、循环神经网络等,不再逐一列举。It should be understood that the above is just an introduction using CNN as an example, and those skilled in the art may also use other neural networks or other deep learning models or machine learning models to train and obtain the recognition model. For example, a deep neural network, a recurrent neural network, etc. may be used, and will not be listed one by one.

识别数据流的业务来源和/或APP来源,再进行后续调度,能够使得多种业务或多个应用同时用网时,有主次地进行调度和转发,从而满足用户的多元化上网需求。例如,一个场景中,用户在路由器的一个下挂设备上同时打开了影音、支付和办公三类业务,路由器执行步骤S201接收到来自于该下挂设备的数据流之后,执行步骤S202识别出这三类业务的数据流,即来源为上述三个业务来源,就可以通过后续步骤进行调度,比如将支付类业务的数据流作为下文所述第一数据流优先调度到质量较好的网络通路上。在这个例子中,如果办公更加重要,则可以将办公类业务的数据流作为下文所述第一数据流优先调度到质量较好的网络通路上。又例如,另一个场景中,用户在路由器的一个下挂设备上同时打开了APP1-APP5共计5个APP,路由器执行步骤S201接收到来自于该下挂设备的数据流之后,执行步骤S202识别出这5个APP的数据流,即来源为上述5个APP来源,就可以通过后续步骤进行调度,比如将APP1-APP5中优先级最高的一个或多个APP的数据流作为下文所述第一数据流优先调度到质量较好的网络通路上。Identifying the business source and/or APP source of the data stream, and then performing subsequent scheduling, can make multiple services or multiple applications use the network at the same time, scheduling and forwarding in a prioritized and secondary manner, so as to meet the diversified Internet access needs of users. For example, in one scenario, the user simultaneously opens three types of services: audio-visual, payment, and office services on one of the connected devices of the router. The data flow of the three types of business, that is, the source of the above three business sources, can be scheduled through subsequent steps, for example, the data flow of the payment service is prioritized as the first data flow described below to be dispatched to a network channel with better quality . In this example, if the office is more important, the data flow of the office business may be prioritized as the first data flow described below to be scheduled on a network path with better quality. For another example, in another scenario, the user opens APP1-APP5, a total of 5 APPs, on a connected device of the router at the same time. After the router executes step S201 to receive the data stream from the connected device, it executes step S202 to identify The data streams of these 5 APPs, that is, the sources of the above 5 APP sources, can be scheduled through subsequent steps, for example, the data streams of one or more APPs with the highest priority among APP1-APP5 are used as the first data described below Flows are preferentially dispatched to network channels with better quality.

在另一种实现方式中,上述来源还可以包括设备来源,也就是说,识别出数据流来源于哪个下挂设备。只是识别设备来源的方法与识别业务来源和APP来源的方法不同,也就是说,需要另外采用能够识别设备地址的识别模块来识别设备来源。这种方式可以是识别数据流来源于哪类设备或者数据流来源于哪个设备,这两种识别也是不同的。这种方式中,设置优先级时,可以设置下挂设备的优先级,例如办公场景中,可以设置办公用的下挂设备的优先级高于休闲用的下挂设备,例如,可以让办公电脑的优先级高于电视的优先级,办公电脑和电视是同一个路由器的下挂设备。上述业务来源、APP来源和设备来源三种来源可以相互结合,或者只采用其中一个或多个来源。在一个例子中,该来源可以为设备来源、业务来源或APP来源。在另一个例子中,该来源为设备来源与业务来源的结合,即数据流来源于哪个设备的哪个业务,或者说数据流来源于哪个业务下的哪个设备。在又一个例子中,该来源为设备来源与APP来源的结合,即数据流来源于哪个设备的哪个APP。在又一个例子中,该来源为业务来源与APP来源的结合,即数据流来源于哪个业务下的哪个APP。在又一个例子中,该来源为设备来源、业务来源与APP来源的结合,即数据流来源于哪个设备的哪个业务下的哪个APP。In another implementation manner, the above-mentioned source may also include a device source, that is, it is identified which downlink device the data stream originates from. Only the method of identifying the source of the device is different from the method of identifying the source of the business and the source of the APP, that is to say, an identification module capable of identifying the address of the device is required to identify the source of the device. This manner may be to identify which type of device the data stream originates from or which device the data stream originates from, and these two identifications are also different. In this way, when setting the priority, you can set the priority of the connected devices. For example, in the office scene, you can set the priority of the connected devices for The priority of the router is higher than that of the TV, and the office computer and the TV are devices connected to the same router. The above three sources of business source, APP source and device source can be combined with each other, or only one or more of them can be used. In an example, the source may be a device source, a service source, or an APP source. In another example, the source is a combination of a device source and a service source, that is, which service of which device the data stream comes from, or which device under which service the data stream comes from. In yet another example, the source is a combination of a device source and an APP source, that is, which APP of which device the data flow comes from. In yet another example, the source is a combination of a service source and an APP source, that is, which APP under which service the data flow comes from. In yet another example, the source is a combination of a device source, a service source, and an APP source, that is, which APP under which service of which device the data flow comes from.

S203、根据数据流的来源,将第一数据流调度到目标网络通路上。S203. Schedule the first data flow on the target network path according to the source of the data flow.

也就是说,根据S202识别出的数据流来源,将S201接收的至少一个数据流中的第一数据流调度到目标网络通路上。其中,第一数据流的来源满足预设优先级范围。目标网络通路是多个网络通路中网络质量最优的网络通路。That is to say, according to the source of the data flow identified in S202, the first data flow in the at least one data flow received in S201 is scheduled to the target network path. Wherein, the source of the first data stream satisfies the preset priority range. The target network path is a network path with the best network quality among the plurality of network paths.

上述多个网络通路可以包括移动网络通路和以太网通路。即网络通路包括移动网络和以太网两种,这样可以实现多种上网方式。但应理解,在本申请实施例中多个网络通路可以是相同种类的网络通路,也可以是不同种类的网络通路。The aforementioned plurality of network accesses may include mobile network accesses and Ethernet accesses. That is, the network access includes two types of mobile network and Ethernet, so that multiple ways of accessing the Internet can be realized. However, it should be understood that in the embodiment of the present application, the multiple network paths may be the same type of network paths, or may be different types of network paths.

步骤S203可以看作是先筛选出来源满足预设优先级范围内的数据流,然后将这些数据流调度到目标网络通路上。举例说明:Step S203 can be regarded as first filtering out the data flows whose sources meet the preset priority range, and then dispatching these data flows to the target network path. for example:

例子一,假设预设优先级范围是根据业务来源划分的,业务来源包括:支付、办公、消费、生活和其他,优先级依次降低,预设优先级范围是排序前2名的业务来源。则第一数据流就是支付和办公两类业务来源的数据流。Example 1, assuming that the preset priority range is divided according to business sources, and the business sources include: payment, office, consumption, life and others, and the priority is lowered in order, and the preset priority range is the top 2 business sources. Then, the first data flow is the data flow from the payment and office business sources.

例子二,假设预设优先级范围是根据APP来源划分的,APP来源包括:APP#1-APP#X,X为正整数,优先级依次降低,预设优先级范围是排序前3名的APP来源。则第一数据流就是APP#1-APP#3共3个APP来源的数据流。比如,平板电脑上的支付业务的优先级高于手机上的生活业务的优先级。Example 2, assuming that the preset priority range is divided according to the APP source, the APP source includes: APP#1-APP#X, X is a positive integer, and the priority is lower in order, and the preset priority range is the top 3 APPs source. Then, the first data stream is the data streams from three APP sources including APP#1-APP#3. For example, the priority of the payment service on the tablet computer is higher than that of the life service on the mobile phone.

例子三,假设预设优先级范围是根据业务来源和APP来源结合划分的,业务来源包括:支付、办公、消费、生活和其他,支付包括3个APP来源,办公包括2个APP来源、消费包括4个APP来源、生活包括7个APP来源和其他包括10个APP来源,优先级依次降低。也就是说,支付中的3个APP来源为优先级排序前3,之后是办公中的2个APP来源的优先级排序分别为4和5,以此类推。预设优先级范围例如可以是APP来源的前10名。则第一数据流就是来自于支付、办公和消费3个业务,以及生活中排序第一的APP。Example 3, assuming that the preset priority range is divided according to the combination of business sources and APP sources. Business sources include: payment, office, consumption, life and others. Payment includes 3 APP sources, office includes 2 APP sources, and consumption includes 4 APP sources, Life includes 7 APP sources and Others includes 10 APP sources, and the priority is lowered in order. That is to say, the 3 APP sources in the payment are the top 3 in the priority order, followed by the priority order of the 2 APP sources in the office are 4 and 5, and so on. The preset priority range may be, for example, the top 10 APP sources. Then the first data stream comes from the three businesses of payment, office and consumption, as well as the APP ranked first in life.

例子四,假设预设优先级范围是根据设备来源划分的,设备来源包括:笔记本电脑、手机、智慧屏和智能音箱,优先级依次降低,预设优先级范围是优先级最高的设备来源。则第一数据流就是来自于笔记本电脑的数据流,此时不需要考虑数据流的业务来源和APP来源。但这种情况需要另外采用能够识别设备地址的识别模块来识别设备来源。Example 4, assuming that the preset priority range is divided according to the source of the device. The source of the device includes: laptop, mobile phone, smart screen, and smart speaker. The priority is lower in order, and the preset priority range is the device source with the highest priority. Then the first data stream is the data stream from the notebook computer, and at this time, the business source and APP source of the data stream need not be considered. However, in this case, an identification module capable of identifying the address of the device needs to be additionally used to identify the source of the device.

其他情况不再逐一列举,应理解上述例子中业务来源的来源举例、APP来源的举例、设备来源的举例、以及具体的数值只是为了方便理解方案,不存在限定。Other situations will not be listed one by one. It should be understood that the examples of service sources, APP sources, device sources, and specific values in the above examples are only for the convenience of understanding the solution, and there is no limitation.

在一种可能的实现方式中,图2中步骤S203可以包括下面的操作:判断至少一个数据流中每个数据流的来源是否满足预设优先级范围,并将满足预设优先级范围的数据流确定为第一数据流;标记第一数据流;将带有标记的第一数据流调度到目标网络通路上。In a possible implementation, step S203 in FIG. 2 may include the following operations: judging whether the source of each data stream in at least one data stream satisfies a preset priority range, and the data that satisfies the preset priority range The flow is determined as the first data flow; the first data flow is marked; and the first data flow with the mark is dispatched to the target network path.

通过将第一数据流打上标记再进行调度,使得调度更加方便。可以理解为筛选出第一数据流,打上标记,则在调度时,可以优先把有标记的数据流调度到目标网络通路。在该实现方式中,已知接收到的数据流的来源并从中确定了哪些数据流是第一数据流之后,从接收到的数据流中标定(锁定)第一数据流,锁定的方式就是打标记。Scheduling is made more convenient by marking the first data flow before scheduling. It can be understood that the first data flow is screened out and marked, and the marked data flow can be preferentially dispatched to the target network path during scheduling. In this implementation, after knowing the source of the received data streams and determining which data streams are the first data streams, the first data streams are marked (locked) from the received data streams, and the locking method is to open mark.

在一种实现方式中,可以根据多个网络通路的质量参数,确定多个网络通路的网络质量。该质量参数可以理解为能够对网络质量产生影响的参数。质量参数可以包括信号质量指标、速率或时延中的至少一项。其中,信号质量指标和速率分别与网络质量正相关,时延与网络质量负相关。也就是说,信号质量指标越高、速率越快、时延越小说明网络质量越高。详细度量过程会在下文图6和图7中给出,在此不再展开。In an implementation manner, the network quality of the multiple network paths may be determined according to the quality parameters of the multiple network paths. The quality parameter can be understood as a parameter that can affect network quality. The quality parameter may include at least one of signal quality index, rate or delay. Among them, the signal quality index and the rate are positively correlated with the network quality, and the delay is negatively correlated with the network quality. In other words, the higher the signal quality index, the faster the rate, and the smaller the delay, the higher the network quality. The detailed measurement process will be given in Figure 6 and Figure 7 below, and will not be expanded here.

在一个例子中,还可以针对不同种类的网络通路,设置不同的信号质量指标。例如,移动网络通路的信号质量指标可以包括接收信号强度指示(received signalstrength indication,RSSI)指标,以太网通路的信号质量指标可以包括协商速率。不同种类的网络通路采用不同的信号质量指标,可使得网络质量的度量更加准确。In an example, different signal quality indicators may also be set for different types of network paths. For example, the signal quality index of the mobile network path may include a received signal strength indication (received signal strength indication, RSSI) index, and the signal quality index of the Ethernet path may include a negotiated rate. Different types of network paths use different signal quality indicators, which can make the measurement of network quality more accurate.

在一个例子中,还可以通过多次测量求平均的方式,使得网络质量的测量结果更加准确。例如可以根据多个网络通路在第一时间区间内的多个时间段的质量参数,得到多个网络通路在多个时间段的网络质量度量值;将多个网络通路在多个时间段的网络质量度量值的平均值或加权平均值作为多个网络通路在第一时间区间内的网络质量。该方法通过将多个时间段的网络质量的评估值(也可以称之为测量值、度量值)取平均,能够使得度量结果更加准确,且可以是长期的度量。第一时间区间可以是一天、一个月、一个季度甚至是一年。当第一时间区间是一天时,多个时间段可以是在一天的24小时内确定多个时间段。通过求加权平均值,例如加大上网高峰期的权重,减小上网低谷期的权重,可以使得度量结果的准确性进一步提高。In an example, multiple measurements may be averaged to make the measurement result of the network quality more accurate. For example, according to the quality parameters of multiple network paths in multiple time periods in the first time interval, the network quality metric values of multiple network paths in multiple time periods can be obtained; The average or weighted average of the quality metric values is used as the network quality of the multiple network paths in the first time interval. The method can make the measurement result more accurate and can be a long-term measurement by averaging network quality evaluation values (also referred to as measurement values, measurement values) in multiple time periods. The first time interval may be a day, a month, a quarter or even a year. When the first time interval is a day, the multiple time periods may be multiple time periods determined within 24 hours of a day. By calculating the weighted average, for example, increasing the weight of the peak period of Internet access and reducing the weight of the low period of Internet access, the accuracy of the measurement result can be further improved.

下面以一个具体例子说明,假设在一天内的以下五个时间点:9:00,12:00,17:00,19:00,21:00为测量开始时刻,每15分钟统计一次,每个时间段计算3次,一天内总共计算15次,也就是说,9:00-9:45,12:00-12:45,17:00-17:45,19:00-19:45,21:00-21:45共5时间区间内分别测量3次网络质量,分别得到3个网络质量度量值,一天(第一时间区间的一例)内共计测量了15个时间段(多个时间段的一例)的网络质量,并得到了15个网络质量度量值,则可以将这15个网络质量度量值的平均值或者加权平均值作为这一天的网络质量的度量结果。还可以通过统计一个月内的每天的网络质量度量值,求取平均值或加权平均值作为一个月内的平均网络质量。应理解,该例子中的数值是为了方便理解方案,不存在限定,上述5个时间点可以看作是取一天中上网高峰期的多个时间点的一个具体例子。Let's take a specific example to illustrate, assuming that the following five time points in a day: 9:00, 12:00, 17:00, 19:00, 21:00 are the measurement start time, and statistics are made every 15 minutes. The time period is calculated 3 times, a total of 15 times in one day, that is, 9:00-9:45, 12:00-12:45, 17:00-17:45, 19:00-19:45, 21 :00-21:45 The network quality was measured 3 times in 5 time intervals, and 3 network quality measurement values were obtained respectively. A total of 15 time periods were measured in one day (an example of the first time interval) (multiple time intervals) One example) network quality, and 15 network quality measurement values are obtained, then the average value or weighted average value of these 15 network quality measurement values can be used as the network quality measurement result of this day. It is also possible to calculate the average value or weighted average value as the average network quality within a month by counting the network quality measurement values of each day in a month. It should be understood that the numerical values in this example are for the convenience of understanding the solution, and there is no limitation. The above five time points can be regarded as a specific example of taking multiple time points during the peak period of surfing the Internet in a day.

图2所示方法,主要通过识别接收到的数据流的来源,并将满足优先级条件的数据流调度到网络质量最优的目标网络通路上。可以理解为来源相对重要的数据流优先使用相对好的网络。使得多个网络通路都被考虑到,网络利用更加合理。此外,来源相对重要的数据流优先使用质量好的网络通路,还兼顾了用户的多元化上网需求。The method shown in FIG. 2 mainly identifies the source of the received data flow, and dispatches the data flow satisfying the priority condition to the target network path with the best network quality. It can be understood that data streams with relatively important sources preferentially use relatively good networks. Multiple network paths are considered, and network utilization is more reasonable. In addition, data streams with relatively important sources are given priority to use high-quality network channels, which also takes into account the diversified Internet access needs of users.

在一种可能的实现方式中,图2所示方法还可以包括:将至少一个数据流中的第二数据流调度到非目标网络通路上,第二数据流用于表示至少一个数据流中除第一数据流之外的数据流,非目标网络通路用于表示多个网络通路中除目标网络通路之外的网络通路。该实现方式,在来源相对重要的数据流被优先调度到质量较好的网络上的基础上,其他数据流也被调度到其他网络通路上,使得所有网络通路都能够得到充分的利用,提高了网络利用率,提高上网速率。In a possible implementation manner, the method shown in FIG. 2 may further include: scheduling a second data flow in at least one data flow to a non-target network path, where the second data flow is used to indicate A data flow other than a data flow, the non-target network access is used to indicate a network access other than the target network access among the plurality of network accesses. In this implementation method, on the basis that data streams with relatively important sources are preferentially dispatched to networks with better quality, other data streams are also dispatched to other network paths, so that all network paths can be fully utilized, improving Improve network utilization and increase Internet speed.

在一种实现方式中,可以采用图3所示方法标记第一数据流。图3是本申请实施例的标记数据流的示意性流程图。图3可以看作是步骤S203中标记第一数据流的一个示例。In an implementation manner, the method shown in FIG. 3 may be used to mark the first data stream. Fig. 3 is a schematic flow chart of marking data flow according to the embodiment of the present application. Fig. 3 can be regarded as an example of marking the first data stream in step S203.

S301、解析至少一个数据流中每个数据流的IP信息,并将IP信息转换为五元组信息。S301. Parse IP information of each data flow in at least one data flow, and convert the IP information into quintuple information.

本申请实施例中,可以通过在内核IP协议栈设置独立的模块来根据输入的数据流识别出对应的来源,为了简洁,可以称之为识别模块或业务感知(service aware,SA)模块。In the embodiment of the present application, an independent module can be set in the core IP protocol stack to identify the corresponding source according to the input data flow. For simplicity, it can be called an identification module or a service aware (SA) module.

在内核IP协议栈中,netfilter框架对数据流有5个关键的hook点,可以称之为检测点、关键点或钩子点。而下挂设备的转发数据会经过前节点(pre-routing)、关键节点(forward)、后节点(post-routing)这三个hook点。In the kernel IP protocol stack, the netfilter framework has five key hook points for data flow, which can be called detection points, key points or hook points. The forwarding data of the connected device will go through three hook points: pre-routing, key node (forward), and post-routing.

通常情况下,识别模块工作在netfilter的forward处,该模块以数据流为单位,解析出数据流的IP信息,并将IP信息转换为五元组信息。该五元组信息包括:源IP、目的IP、源端口、目的端口、协议TCP/UDP。因此可以识别出该流对应的设备或应用程序。Usually, the identification module works at the forward of netfilter, and this module takes the data flow as a unit, parses out the IP information of the data flow, and converts the IP information into five-tuple information. The five-tuple information includes: source IP, destination IP, source port, destination port, protocol TCP/UDP. The device or application corresponding to the flow can thus be identified.

为了便于理解,下面结合图4介绍netfilter框架的结构。如图4所示,在netfilter框架中包括路由前处理节点(pre-routing)、路由决策节点、关键节点(forward)、路由后处理后节点(post-routing)和入口(local_in)和出口(local_out)节点。其中,路由前处理节点即图中的PRE_ROUTING,主要处理目的地址转换,以及给数据报文(即数据包或数据流)加特定标记。路由决策节点即图中所示路由决策,用于决策数据报文是转发处理还是路由器本地业务使用。图4中的四层以上协议栈也可以称之为顶层协议栈。在本申请实施例中,识别模块设置在关键节点处,用于识别数据报文的来源。路由后处理节点即图中的POST_ROUTING,主要完成源地址转换。路由器本地业务的处理节点的入口即图中的LOCAL_IN,路由器本地业务的处理节点的出口即图中的LOCAL_OUT。For ease of understanding, the structure of the netfilter framework is introduced below in conjunction with Figure 4. As shown in Figure 4, the netfilter framework includes routing pre-processing nodes (pre-routing), routing decision nodes, key nodes (forward), routing post-processing nodes (post-routing), and entry (local_in) and exit (local_out )node. Among them, the pre-routing processing node is PRE_ROUTING in the figure, which mainly processes destination address conversion and adds specific marks to data packets (ie, data packets or data streams). The routing decision node is the routing decision shown in the figure, which is used to decide whether the data packet is forwarded and processed or used by the router for local services. The protocol stacks above four layers in FIG. 4 may also be referred to as top-layer protocol stacks. In the embodiment of the present application, the identification module is set at the key node, and is used to identify the source of the data message. The post-routing processing node is POST_ROUTING in the figure, which mainly completes source address conversion. The entry of the processing node of the router's local service is LOCAL_IN in the figure, and the exit of the processing node of the router's local service is the LOCAL_OUT in the figure.

可选地,该IP信息可以是利用上文所述识别模型对数据流进行特征提取得到的。可以理解为,是识别数据流来源的过程中的输出。从而不必独立设计IP信息的提取模块或提取方法来得到IP信息。Optionally, the IP information may be obtained by extracting features of the data stream using the recognition model described above. It can be understood as the output of the process of identifying the source of the data stream. Therefore, it is not necessary to independently design an extraction module or an extraction method of IP information to obtain IP information.

S302、根据五元组信息,从至少一个数据流中确定出第一数据流并进行标记。S302. Determine and mark a first data stream from at least one data stream according to the quintuple information.

由于五元组信息中包括源IP和源端口等信息,所以可以推断出数据流的来源。Since the five-tuple information includes information such as source IP and source port, the source of the data flow can be deduced.

可选地,还可以建立识别模块的数据流信息表,该数据流信息表中包括接收到的数据流是否识别完成和识别结果。Optionally, a data stream information table of the identification module can also be established, and the data stream information table includes whether the received data stream has been identified and the identification result.

图3所示方法可以理解为一种打标记的方式的示例。通过五元组信息是可以区分开每一条数据流的,知道每一条数据流的源地址、目的地址等五元组信息,从而能够知道每条数据流是不是第一数据流,然后打上标记。如果把识别模块识别出第一数据流的过程看作是,把接收到的数据流进行了分类,所以知道了每个数据流的来源类别。那么标记数据流的过程则是,从这些数据流中找出某个或某些数据流,从而通过标记的方式锁定这些数据流。可以理解为,识别过程是获取第一数据流的名单的过程,标记过程是根据名单锁定第一数据流的过程。The method shown in FIG. 3 can be understood as an example of a marking manner. Through the quintuple information, each data flow can be distinguished, and the quintuple information such as the source address and destination address of each data flow can be known, so that it can be known whether each data flow is the first data flow, and then marked. If the process of identifying the first data stream by the identification module is regarded as classifying the received data streams, the source category of each data stream is known. Then, the process of marking data streams is to find out one or some data streams from these data streams, so as to lock these data streams by means of marking. It can be understood that the identification process is a process of obtaining a list of the first data stream, and the marking process is a process of locking the first data stream according to the list.

图5是本申请实施例的数据流来源的识别过程的示意图。应理解,图5所示的数据流来源的识别是为了标记第一数据流,可以看作是,根据识别结果找出(锁定/标定)第一数据流的过程,并不是识别模块识别每个数据流来源的过程。FIG. 5 is a schematic diagram of an identification process of a data flow source according to an embodiment of the present application. It should be understood that the identification of the source of the data stream shown in Figure 5 is to mark the first data stream, which can be regarded as a process of finding out (locking/marking) the first data stream according to the identification result, and it is not that the identification module identifies each The process of the source of the data stream.

S501、通过流识别入口接收待识别的数据流。S501. Receive a data stream to be identified through a stream identification entry.

入口函数可以用atp_sc_input表示,对应接口可以用S表示。The entry function can be represented by atp_sc_input, and the corresponding interface can be represented by S.

S502、解析数据流的IP信息并转换为五元组信息。S502. Analyze the IP information of the data stream and convert it into 5-tuple information.

解析函数可以用atp_sc_ct_to_tuple表示,对应接口可以用S1表示。The analysis function can be represented by atp_sc_ct_to_tuple, and the corresponding interface can be represented by S1.

S503、根据五元组信息,查找业务识别模块对应的流表信息。S503. Search for flow table information corresponding to the service identification module according to the quintuple information.

查找函数可以用atp_sc_data_resove表示,对应接口可以用S2表示。The search function can be represented by atp_sc_data_resove, and the corresponding interface can be represented by S2.

流表信息可以包括是否识别完成,识别结果,例如游戏类、视频类等业务来源,或王者荣耀、和平精英、支付宝等具体APP来源。The flow table information can include whether the recognition is completed and the result of the recognition, such as business sources such as games and videos, or specific APP sources such as Glory of Kings, Peace Elite, and Alipay.

S504、判断是否完成流识别,当判断结果为是时,执行步骤S505,当判断结果为否时,执行步骤S506。S504. Judging whether the flow identification is completed, if the judgment result is yes, execute step S505, and when the judgment result is no, execute step S506.

S505、流量统计计数。S505. Traffic statistics and counting.

统计函数可以用atp_sc_serv_stats_add表示。Statistical functions can be represented by atp_sc_serv_stats_add.

S506、识别数据流。S506. Identify the data flow.

也就是说,从流表信息发现还未识别,则识别数据流,并且填充流表信息。That is to say, if it is found from the flow table information that it has not been identified, then the data flow is identified and the flow table information is filled.

该步骤的执行函数可以用atp_sc_eng_input表示,对应接口可以用S3表示。The execution function of this step can be represented by atp_sc_eng_input, and the corresponding interface can be represented by S3.

该步骤还可以包括识别前构造参数和识别引擎进行具体识别。This step may also include identifying pre-recognition configuration parameters and a recognition engine for specific recognition.

识别后的数据流即可进行相应的标记。The identified data streams can then be marked accordingly.

图5可以看作是图3所示方法的一个具体示例,S502可以看作是S301的示例,S503-S506可以看作是S302的示例。Fig. 5 can be regarded as a specific example of the method shown in Fig. 3, S502 can be regarded as an example of S301, and S503-S506 can be regarded as an example of S302.

如上文所述,可以根据网络通路的质量参数确定网络质量,下面结合图6和图7分别介绍对于移动网络和以太网的网络质量的度量方法。As mentioned above, the network quality can be determined according to the quality parameters of the network path. The following introduces the measurement methods for the network quality of the mobile network and the Ethernet respectively with reference to FIG. 6 and FIG. 7 .

图6是本申请实施例的移动网络的网络质量度量方法的示意性流程图。下面对图6各个步骤进行介绍。Fig. 6 is a schematic flowchart of a network quality measurement method for a mobile network according to an embodiment of the present application. Each step in Fig. 6 will be introduced below.

S601、AT模块采集modem模块的信号质量指标。S601. The AT module collects the signal quality index of the modem module.

图6以信号质量指标为RSSI为例。modem模块主要负责和基站等移动网络通路中的传输设备实时通信,实时接收基站指令信息,同时也会主动向基站查询信息,属于CPE的移动网络无线核心模块,给AT模块提供接口的接口可用M表示。FIG. 6 takes RSSI as an example for the signal quality indicator. The modem module is mainly responsible for real-time communication with the transmission equipment in the mobile network path such as the base station, receiving the command information of the base station in real time, and also actively querying the information from the base station. It belongs to the mobile network wireless core module of the CPE, and the interface providing the interface for the AT module can be express.

S602、AT模块向质量测量模块发送信号质量指标。S602. The AT module sends a signal quality indicator to the quality measurement module.

AT模块,通过接口M实时采集modem模块的信号数据,同时将modem信号的RSSI等指标上报到质量测量模块。比如在CPE发生位置移动、信号干扰等场景下,会及时报告信号质量,供质量测量模块及时更新网络质量,这里假设给质量测量模块报告接口为接口A。The AT module collects the signal data of the modem module in real time through the interface M, and reports the RSSI and other indicators of the modem signal to the quality measurement module at the same time. For example, in scenarios such as location movement and signal interference of the CPE, the signal quality will be reported in time for the quality measurement module to update the network quality in a timely manner. Here, it is assumed that the interface reported to the quality measurement module is interface A.

S603、速率统计模块统计速率和时延信息。S603. The rate statistics module collects rate and delay information.

速率统计模块采集网络接口层发送的数据速率和时延。The rate statistics module collects the data rate and delay sent by the network interface layer.

S604、速率统计模块向质量测量模块发送速率和时延信息。S604. The rate statistics module sends rate and delay information to the quality measurement module.

速率统计模块将采集到的速率和时延信息发送给质量测量模块。例如可以分别通过接口T1和接口T2发送。The rate statistics module sends the collected rate and delay information to the quality measurement module. For example, they can be sent via interface T1 and interface T2 respectively.

S605、质量测量模块根据接收的质量参数信息评估网络质量。S605. The quality measurement module evaluates the network quality according to the received quality parameter information.

可选地,可以根据速率(V)、时延(T)和信号质量指标(R),计算得到网络质量(Q)。Optionally, the network quality (Q) may be calculated according to the rate (V), time delay (T) and signal quality index (R).

在一种实现方式中,Q可以满足下面的公式:Q=(aV+bR)/(cT2+d),其中,a,b,c,d均为计算因子,可以通过调测确定。也就是说可以通过获取足够量的V、T、R和Q的历史数据,通过数学建模的方式确定计算因子的值。In an implementation manner, Q may satisfy the following formula: Q=(aV+bR)/(cT 2 +d), where a, b, c, and d are calculation factors and may be determined through commissioning. That is to say, the value of the calculation factor can be determined through mathematical modeling by obtaining sufficient historical data of V, T, R, and Q.

从上述实现方式中可以看出,V、R与Q正相关,T与Q负相关。应理解,该实现方式的公式只是一种示例,本领域技术人员也可以设计其他公式,例如,V和R之间采用乘法关系,或者T不进行平方运算等,只要满足需求即可,不存在限定。It can be seen from the above implementation manners that V and R are positively correlated with Q, and T is negatively correlated with Q. It should be understood that the formula of this implementation is just an example, and those skilled in the art can also design other formulas, for example, a multiplicative relationship is used between V and R, or T does not perform square operations, etc., as long as the requirements are met, there is no limited.

在一个例子中,在一天内测量N次,N为正实数,用Qi则表示第i次的网络质量的度量值,即测量结果,1≤i≤N,那么第Qd天的信号质量为Qd=∑Qi/N。通过每天的信号质量,还可以计算该月的信号质量Qm=∑Qd/M,M为当月测量天数。In an example, N times are measured in one day, N is a positive real number, and Q i is used to represent the measurement value of the i-th network quality, that is, the measurement result, 1≤i≤N, then the signal quality of the Q d-th day Q d =∑Q i /N. Through the signal quality of each day, the signal quality of the month can also be calculated as Q m =∑Q d /M, where M is the number of measurement days in the current month.

图7是本申请实施例的以太网的网络质量度量方法的示意性流程图。下面对图7各个步骤进行介绍。Fig. 7 is a schematic flowchart of a method for measuring network quality of an Ethernet according to an embodiment of the present application. Each step in Fig. 7 will be introduced below.

S701、信号质量采集模块向质量测量模块发送协商速率。S701. The signal quality acquisition module sends the negotiation rate to the quality measurement module.

图7以信号质量指标为协商速率为例。FIG. 7 takes the signal quality index as the negotiation rate as an example.

S702、速率统计模块统计速率和时延信息。S702. The rate statistics module collects rate and delay information.

速率统计模块采集网络接口层发送的数据速率和时延。The rate statistics module collects the data rate and delay sent by the network interface layer.

S703、速率统计模块向质量测量模块发送速率和时延信息。S703. The rate statistics module sends rate and delay information to the quality measurement module.

速率统计模块将采集到的速率和时延信息发送给质量测量模块。例如可以分别通过接口T1和接口T2发送。The rate statistics module sends the collected rate and delay information to the quality measurement module. For example, they can be sent via interface T1 and interface T2 respectively.

S704、质量测量模块根据接收的质量参数信息评估网络质量。S704. The quality measurement module evaluates the network quality according to the received quality parameter information.

可选地,可以根据速率(V)、时延(T)和信号质量指标(N),计算得到网络质量(Q)。Optionally, the network quality (Q) may be calculated according to the rate (V), time delay (T) and signal quality index (N).

在一种实现方式中,Q可以满足下面的公式:Q=(aV+bR)/(cT2+d),其中,a,b,c,d均为计算因子,可以通过调测确定。也就是说可以通过获取足够量的V、T、R和Q的历史数据,通过数学建模的方式确定计算因子的值。In an implementation manner, Q may satisfy the following formula: Q=(aV+bR)/(cT 2 +d), where a, b, c, and d are calculation factors and may be determined through commissioning. That is to say, the value of the calculation factor can be determined through mathematical modeling by obtaining sufficient historical data of V, T, R, and Q.

从上述实现方式中可以看出,V、R与Q正相关,T与Q负相关。应理解,该实现方式的公式只是一种示例,本领域技术人员也可以设计其他公式,例如,V和R之间采用乘法关系,或者T不进行平方运算等,只要满足需求即可,不存在限定。It can be seen from the above implementation manners that V and R are positively correlated with Q, and T is negatively correlated with Q. It should be understood that the formula of this implementation is just an example, and those skilled in the art can also design other formulas, for example, a multiplicative relationship is used between V and R, or T does not perform square operations, etc., as long as the requirements are met, there is no limited.

在一个例子中,在一天内测量N次,N为正实数,用Qi则表示第i次的网络质量的度量值,即测量结果,1≤i≤N,那么第Qd天的信号质量为Qd=∑Qi/N。通过每天的信号质量,还可以计算该月的信号质量Qm=∑Qd/M,M为当月测量天数。In an example, N times are measured in one day, N is a positive real number, and Q i is used to represent the measurement value of the i-th network quality, that is, the measurement result, 1≤i≤N, then the signal quality of the Q d-th day Q d =∑Q i /N. Through the signal quality of each day, the signal quality of the month can also be calculated as Q m =∑Q d /M, where M is the number of measurement days in the current month.

可以看出,以太网的测量方式和移动网络的测量方式是相似的。且经过实验统计发现,在一些场景中,移动网络的网络质量和以太网的网络质量具有一定的相关性,且经试验发现,在一定情况下,a、c、d可以承袭移动网络的对应值,b则可以是将移动网络中的b乘以一个权重系数,该权重系数例如可以是0.2或0.3等值。It can be seen that the measurement method of Ethernet is similar to that of mobile network. And through experimental statistics, it is found that in some scenarios, the network quality of the mobile network and the network quality of the Ethernet have a certain correlation, and it is found through experiments that under certain circumstances, a, c, and d can inherit the corresponding values of the mobile network , b can be multiplied by a weight coefficient in the mobile network, and the weight coefficient can be, for example, 0.2 or 0.3.

图8是本申请实施例的另一种数据调度方法的示意性流程图。图8可以看作是图2所示方法的一个具体示例。下面介绍图8各步骤。FIG. 8 is a schematic flowchart of another data scheduling method according to an embodiment of the present application. FIG. 8 can be regarded as a specific example of the method shown in FIG. 2 . The steps in Figure 8 are described below.

S801、接收单元向识别模块发送接收到的数据流。S801. The receiving unit sends the received data stream to the identification module.

也就是说,接收单元从下挂设备接收到数据流之后,发送给识别模块。That is to say, after receiving the data stream from the downlink device, the receiving unit sends it to the identification module.

该步骤可以看作是S201的一个示例。This step can be regarded as an example of S201.

S802、识别模块识别数据流来源。S802. The identifying module identifies the source of the data stream.

该步骤可以看作是S202的一个示例。This step can be regarded as an example of S202.

S803、识别模块向标记模块发送已识别出来源的数据流。S803. The identifying module sends the data stream whose source has been identified to the marking module.

S804、标记模块将高优先级数据流打上标记。S804. The marking module marks the high-priority data flow.

也就是说,标记模块将满足预设优先级范围的数据流打上标记。That is to say, the marking module marks the data flow satisfying the preset priority range.

例如,标记模块根据识别模块的识别结果,将游戏业务和支付业务等高优先级业务的数据流加上特性标记X。For example, according to the identification result of the identification module, the marking module adds a characteristic mark X to the data streams of high-priority services such as game services and payment services.

S805、标记模块向调度模块发送被打过标记的数据流。S805. The marking module sends the marked data stream to the scheduling module.

可能是只发送打了标记的数据流,也可能是发送所有数据流,只是其中包含有打了标记的数据流。It may be to send only the marked data flow, or it may be to send all the data flow, but it contains the marked data flow.

S806、度量模块测量网络通路的网络质量。S806. The measurement module measures the network quality of the network path.

以网络通路包括移动网络和以太网为例。度量模块可以利用图6所示方法得到移动网络通路的网络质量,也可以利用图7所示方法得到以太网通路的网络质量。当多个网络通路都是移动网络或者都是以太网时,就是利用图6或者图7的方法测量多个网络通路的网络质量。当多个网络通路同时包括移动网络和以太网时,就是分别利用图6的方法测量移动网络通路的网络质量,用图7的方法测量以太网通路的网络质量。Take network access including mobile networks and Ethernet as an example. The measurement module can use the method shown in FIG. 6 to obtain the network quality of the mobile network path, and can also use the method shown in FIG. 7 to obtain the network quality of the Ethernet path. When multiple network paths are all mobile networks or Ethernets, the network quality of multiple network paths is measured by using the method shown in FIG. 6 or FIG. 7 . When multiple network paths include mobile network and Ethernet at the same time, the method in Figure 6 is used to measure the network quality of the mobile network path, and the method in Figure 7 is used to measure the network quality of the Ethernet path.

S807、调度模块接收度量模块发送的网络质量。S807. The scheduling module receives the network quality sent by the measurement module.

以网络通路包括移动网络和以太网为例。在一个例子中,度量模块根据网络度量结果,将移动网络和以太网的网络质量综合比较,选出目标网络通路,也就是网络质量较好的通路,报告给调度模块,也就是说,度量模块发送的是已确定可以作为目标网络通路的网络质量等相关信息。在另一个例子中,度量模块发送所有网络通路的质量,供调度模块根据所有网络通路的网络质量来确定目标网络通路。Take network access including mobile networks and Ethernet as an example. In one example, the measurement module comprehensively compares the network quality of the mobile network and the Ethernet according to the network measurement results, selects the target network path, that is, the path with better network quality, and reports it to the scheduling module, that is to say, the measurement module What is sent is related information such as the network quality that has been determined to be the target network path. In another example, the measurement module sends the quality of all network paths for the scheduling module to determine the target network path according to the network quality of all network paths.

S808、调度模块更新目标网络通路。S808. The scheduling module updates the target network path.

也就是说,调度模块可以根据度量模块的上报结果,删除旧的路由通路配置信息,同时建立新的路由通路配置信息,新的路由通路即为目标网络通路。That is to say, the dispatching module can delete the old routing path configuration information and create new routing path configuration information according to the reporting result of the measuring module, and the new routing path is the target network path.

可以看出S806-S808不受步骤S801-S805中的任意步骤是否执行的影响。It can be seen that S806-S808 is not affected by whether any step in steps S801-S805 is executed.

S809、调度模块将带有标记的数据流调度到目标网络通路上。S809. The scheduling module schedules the marked data flow to the target network path.

例如将带有标记X的数据流调度到目标网络通路上。For example, the data flow marked with X is dispatched to the target network path.

S803-S809可以看作是S203的一个示例。S803-S809 can be regarded as an example of S203.

上文主要结合附图对本申请实施例的数据调度方法进行了介绍。应理解,虽然如上所述的各实施例所涉及的流程图中的各个步骤依次显示,但是这些步骤并不是必然按照图中所示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。下面结合附图对本申请实施例的数据调度装置进行介绍。The above mainly introduces the data scheduling method in the embodiment of the present application with reference to the accompanying drawings. It should be understood that although the various steps in the flowcharts involved in the above-mentioned embodiments are shown sequentially, these steps are not necessarily executed sequentially in the order shown in the figure. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps. The data scheduling device according to the embodiment of the present application will be introduced below with reference to the accompanying drawings.

图9是本申请实施例的一种数据调度装置的示意图。如图9所示,该装置1000包括接收单元1100和处理单元1200。该装置1000可以是集成在网络设备中,也可以是网络设备。该网络设备例如可以是支持多网络的无线路由器。Fig. 9 is a schematic diagram of a data scheduling device according to an embodiment of the present application. As shown in FIG. 9 , the apparatus 1000 includes a receiving unit 1100 and a processing unit 1200 . The apparatus 1000 may be integrated in a network device, or may be a network device. The network device may be, for example, a wireless router supporting multiple networks.

在一种实现方式中,该装置1000可以为图1中的网络设备110,或者设置在网络设备110中。In an implementation manner, the apparatus 1000 may be the network device 110 in FIG. 1 , or be set in the network device 110 .

该装置1000能够用于执行上文任意一种数据调度方法。例如,接收单元1100可用于执行步骤S201,处理单元1200可用于执行步骤S202和S203。又例如,处理单元1200还可用于执行图3、图5、图6或图7中的各个步骤。又例如,接收单元1100可以为图8中的接收单元,可用于执行步骤S801,处理单元1200可用于执行步骤S802-S809。The apparatus 1000 can be used to implement any one of the above data scheduling methods. For example, the receiving unit 1100 can be used to perform step S201, and the processing unit 1200 can be used to perform steps S202 and S203. For another example, the processing unit 1200 may also be configured to execute each step in FIG. 3 , FIG. 5 , FIG. 6 or FIG. 7 . For another example, the receiving unit 1100 may be the receiving unit in FIG. 8 and may be configured to execute step S801, and the processing unit 1200 may be configured to execute steps S802-S809.

如图9所示,处理单元1200可以包括识别模块1210和调度模块1220。识别模块1210可以是上文所述识别模块(SA模块),用于识别数据流的来源。识别模块1210可以用于执行步骤S202,以及S802、S803。As shown in FIG. 9 , the processing unit 1200 may include an identification module 1210 and a scheduling module 1220 . The identifying module 1210 may be the aforementioned identifying module (SA module), configured to identify the source of the data flow. The identification module 1210 can be used to execute step S202, and S802, S803.

调度模块1220用于根据数据流的来源对数据流进行调度,例如可以执行步骤S203、S807-S809。The scheduling module 1220 is configured to schedule the data flow according to the source of the data flow, for example, steps S203, S807-S809 may be executed.

在一种实现方式中,该处理单元1200还包括度量模块1230,度量模块1230与调度模块1220连接,用于测量各个网络通路的网络质量。度量模块1230可以是图8所示度量模块,可以用于执行图6和图7中各个步骤,还可以用于执行S806、S807。In an implementation manner, the processing unit 1200 further includes a measurement module 1230, which is connected to the scheduling module 1220 and used to measure the network quality of each network path. The measurement module 1230 may be the measurement module shown in FIG. 8 , and may be used to execute the steps in FIG. 6 and FIG. 7 , and may also be used to execute S806 and S807.

在一个例子中,度量模块1230包括移动网络度量模块1231和以太网度量模块1232,其中,移动网络度量模块1231用于测量移动网络通路的网络质量,以太网度量模块1232用于测量以太网通路的质量。In one example, the measurement module 1230 includes a mobile network measurement module 1231 and an Ethernet measurement module 1232, wherein the mobile network measurement module 1231 is used to measure the network quality of the mobile network path, and the Ethernet measurement module 1232 is used to measure the network quality of the Ethernet path. quality.

移动网络度量模块1231可以用于执行图6所示各个步骤。The mobile network measurement module 1231 may be used to execute various steps shown in FIG. 6 .

如图9所示,移动网络度量模块1231可以包括子模块1至子模块4四个子模块。该四个子模块可以分别对应图6中的各个模块:modem模块、AT模块、速率统计模块和质量测量模块。As shown in FIG. 9 , the mobile network measurement module 1231 may include four submodules from submodule 1 to submodule 4 . The four sub-modules may respectively correspond to the modules in FIG. 6 : modem module, AT module, rate statistics module and quality measurement module.

以太网度量模块1232可以用于执行图7所示各个步骤。The Ethernet metric module 1232 may be used to execute various steps shown in FIG. 7 .

如图9所示,以太网度量模块1232可以包括子模块5至子模块7三个子模块。该三个子模块可以分别对应图7中的各个模块:信号质量采集模块、速率统计模块和质量测量模块。As shown in FIG. 9 , the Ethernet measurement module 1232 may include three submodules from a submodule 5 to a submodule 7 . The three sub-modules may respectively correspond to the modules in FIG. 7 : a signal quality collection module, a rate statistics module and a quality measurement module.

在一种实现方式中,该处理单元1200还包括标记模块1240,与调度模块1220连接,用于对数据流打标记,例如可以用于执行步骤S803、S804和S805。标记模块1240可以为图8中的标记模块。标记模块1240还可以用于执行图3和图5所示各个步骤。In one implementation manner, the processing unit 1200 further includes a marking module 1240 connected to the scheduling module 1220 and configured to mark the data flow, for example, may be used to execute steps S803, S804 and S805. The marking module 1240 may be the marking module in FIG. 8 . The marking module 1240 can also be used to execute various steps shown in FIG. 3 and FIG. 5 .

在一种实现方式中,处理单元1200还可以用于执行以下操作:将至少一个数据流中的第二数据流调度到非目标网络通路上,第二数据流用于表示至少一个数据流中除第一数据流之外的数据流,非目标网络通路用于表示多个网络通路中除目标网络通路之外的网络通路。In an implementation manner, the processing unit 1200 may also be configured to perform the following operation: dispatch the second data flow in the at least one data flow to a non-target network path, and the second data flow is used to indicate that the at least one data flow except the first A data flow other than a data flow, the non-target network access is used to indicate a network access other than the target network access among the plurality of network accesses.

在一种实现方式中,装置1000还可以包括存储单元,用于存储数据流等数据。该存储单元可以是集成在处理单元1200中,也可以是独立于接收单元1100和处理单元1200之外的单元。In an implementation manner, the apparatus 1000 may further include a storage unit, configured to store data such as a data stream. The storage unit may be integrated in the processing unit 1200 , or may be a unit independent of the receiving unit 1100 and the processing unit 1200 .

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat them here.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the aforementioned method embodiments, and details will not be repeated here.

本申请实施例还提供了一种网络设备,该网络设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。The embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and operable on the at least one processor, and the processor executes The computer program implements the steps in any of the above method embodiments.

本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random accessmemory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/network device and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed, depending on the context, as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.

在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (19)

1.一种数据调度方法,应用于网络设备,其特征在于,包括:1. A data scheduling method, applied to network equipment, is characterized in that, comprising: 接收至少一个数据流;receiving at least one data stream; 识别所述至少一个数据流中每个数据流的来源;identifying a source of each of the at least one data stream; 根据所述至少一个数据流中每个数据流的来源,将所述至少一个数据流中的第一数据流调度到目标网络通路上,所述第一数据流的来源满足预设优先级范围,所述目标网络通路是所述网络设备的多个网络通路中网络质量最优的网络通路。According to the source of each data flow in the at least one data flow, dispatching the first data flow in the at least one data flow to the target network path, the source of the first data flow satisfies a preset priority range, The target network path is a network path with the best network quality among the multiple network paths of the network device. 2.根据权利要求1所述的方法,其特征在于,所述识别所述至少一个数据流中每个数据流的来源,包括:2. The method according to claim 1, wherein the identifying the source of each data flow in the at least one data flow comprises: 利用识别模型对所述至少一个数据流进行处理,得到所述至少一个数据流中每个数据流的来源,所述来源包括业务来源或应用程序来源中的至少一项。The at least one data flow is processed by using the identification model to obtain the source of each data flow in the at least one data flow, and the source includes at least one of a service source or an application program source. 3.根据权利要求1所述的方法,其特征在于,所述根据所述至少一个数据流中每个数据流的来源,将所述至少一个数据流中的第一数据流调度到目标网络通路上,包括:3. The method according to claim 1, wherein, according to the source of each data flow in the at least one data flow, scheduling the first data flow in the at least one data flow to the target network path on, including: 判断所述至少一个数据流中每个数据流的来源是否满足所述预设优先级范围,并将满足所述预设优先级范围的数据流确定为所述第一数据流;judging whether the source of each data flow in the at least one data flow meets the preset priority range, and determining the data flow that meets the preset priority range as the first data flow; 标记所述第一数据流;marking the first data stream; 将带有标记的所述第一数据流调度到所述目标网络通路上。Scheduling the tagged first data flow onto the target network path. 4.根据权利要求3所述的方法,其特征在于,所述标记所述第一数据流包括:4. The method according to claim 3, wherein the marking the first data stream comprises: 解析所述至少一个数据流中每个数据流的IP信息,并将所述IP信息转换为五元组信息;parsing the IP information of each data flow in the at least one data flow, and converting the IP information into five-tuple information; 根据所述五元组信息,从所述至少一个数据流中确定所述第一数据流并进行标记。According to the five-tuple information, the first data stream is determined from the at least one data stream and marked. 5.根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:5. The method according to any one of claims 1 to 4, characterized in that the method further comprises: 根据所述多个网络通路的质量参数,确定所述多个网络通路的网络质量,所述质量参数包括信号质量指标、速率或时延中的至少一项,所述信号质量指标和所述速率分别与所述网络质量正相关,所述时延与所述网络质量负相关。Determine the network quality of the multiple network paths according to the quality parameters of the multiple network paths, the quality parameters include at least one of signal quality indicators, rate or delay, the signal quality indicators and the rate are respectively positively correlated with the network quality, and the time delay is negatively correlated with the network quality. 6.根据权利要求5所述的方法,其特征在于,所述根据所述多个网络通路的质量参数,确定所述多个网络通路的网络质量,包括:6. The method according to claim 5, wherein the determining the network quality of the plurality of network paths according to the quality parameters of the plurality of network paths comprises: 根据所述多个网络通路在第一时间区间内的多个时间段的质量参数,得到所述多个网络通路在所述多个时间段的网络质量度量值;Obtaining network quality metric values of the multiple network paths in the multiple time periods according to the quality parameters of the multiple network paths in the multiple time periods in the first time interval; 将所述多个网络通路在所述多个时间段的网络质量度量值的平均值或加权平均值作为所述多个网络通路在所述第一时间区间内的网络质量。Taking the average or weighted average of the network quality metric values of the multiple network paths in the multiple time periods as the network quality of the multiple network paths in the first time interval. 7.根据权利要求1至4中任一项所述的方法,其特征在于,所述多个网络通路包括移动网络通路和以太网通路。7. The method according to any one of claims 1 to 4, wherein the plurality of network accesses include mobile network accesses and Ethernet accesses. 8.根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:8. The method according to any one of claims 1 to 4, wherein the method further comprises: 将所述至少一个数据流中的第二数据流调度到非目标网络通路上,所述第二数据流用于表示所述至少一个数据流中除所述第一数据流之外的数据流,所述非目标网络通路用于表示所述多个网络通路中除所述目标网络通路之外的网络通路。scheduling a second data flow in the at least one data flow on a non-target network path, the second data flow is used to represent a data flow in the at least one data flow except the first data flow, the The non-target network accesses are used to represent network accesses in the plurality of network accesses except the target network accesses. 9.一种数据调度装置,设置于网络设备,其特征在于,包括:9. A data scheduling device, set in a network device, characterized in that it comprises: 接收单元,用于接收至少一个数据流;a receiving unit, configured to receive at least one data stream; 处理单元,用于识别所述至少一个数据流中每个数据流的来源;a processing unit configured to identify a source of each of the at least one data stream; 所述处理单元还用于,根据所述至少一个数据流中每个数据流的来源,将所述至少一个数据流中的第一数据流调度到目标网络通路上,所述第一数据流的来源满足预设优先级范围,所述目标网络通路是所述网络设备的多个网络通路中网络质量最优的网络通路。The processing unit is further configured to, according to the source of each data flow in the at least one data flow, schedule a first data flow in the at least one data flow to a target network path, and the first data flow of the first data flow The source satisfies a preset priority range, and the target network path is a network path with the best network quality among the multiple network paths of the network device. 10.根据权利要求9所述的装置,其特征在于,所述处理单元具体用于:10. The device according to claim 9, wherein the processing unit is specifically configured to: 利用识别模型对所述至少一个数据流进行处理,得到所述至少一个数据流中每个数据流的来源,所述来源包括业务来源或应用程序来源中的至少一项。The at least one data flow is processed by using the identification model to obtain the source of each data flow in the at least one data flow, and the source includes at least one of a service source or an application program source. 11.根据权利要求9所述的装置,其特征在于,所述处理单元具体用于:判断所述至少一个数据流中每个数据流的来源是否满足所述预设优先级范围,并将满足所述预设优先级范围的数据流确定为所述第一数据流;标记所述第一数据流;将带有标记的所述第一数据流调度到所述目标网络通路上。11. The device according to claim 9, wherein the processing unit is specifically configured to: determine whether the source of each data stream in the at least one data stream satisfies the preset priority range, and will satisfy The data flow in the preset priority range is determined as the first data flow; the first data flow is marked; and the first data flow with the mark is scheduled on the target network path. 12.根据权利要求11所述的装置,其特征在于,所述处理单元具体用于:12. The device according to claim 11, wherein the processing unit is specifically configured to: 解析所述至少一个数据流中每个数据流的IP信息,并将所述IP信息转换为五元组信息;parsing the IP information of each data flow in the at least one data flow, and converting the IP information into five-tuple information; 根据所述五元组信息,从所述至少一个数据流中确定所述第一数据流并进行标记。According to the five-tuple information, the first data stream is determined from the at least one data stream and marked. 13.根据权利要求9至12中任一项所述的装置,其特征在于,所述处理单元还用于:13. The device according to any one of claims 9 to 12, wherein the processing unit is further configured to: 根据所述多个网络通路的质量参数,确定所述多个网络通路的网络质量,所述质量参数包括信号质量指标、速率或时延中的至少一项,所述信号质量指标和所述速率分别与所述网络质量正相关,所述时延与所述网络质量负相关。Determine the network quality of the multiple network paths according to the quality parameters of the multiple network paths, the quality parameters include at least one of signal quality indicators, rate or delay, the signal quality indicators and the rate are respectively positively correlated with the network quality, and the time delay is negatively correlated with the network quality. 14.根据权利要求13所述的装置,其特征在于,所述处理单元具体用于:14. The device according to claim 13, wherein the processing unit is specifically configured to: 根据所述多个网络通路在第一时间区间内的多个时间段的质量参数,得到所述多个网络通路在所述多个时间段的网络质量度量值;Obtaining network quality metric values of the multiple network paths in the multiple time periods according to the quality parameters of the multiple network paths in the multiple time periods in the first time interval; 将所述多个网络通路在所述多个时间段的网络质量度量值的平均值或加权平均值作为所述多个网络通路在所述第一时间区间内的网络质量。Taking the average or weighted average of the network quality metric values of the multiple network paths in the multiple time periods as the network quality of the multiple network paths in the first time interval. 15.根据权利要求9至12中任一项所述的装置,其特征在于,所述多个网络通路包括移动网络通路和以太网通路。15. The apparatus according to any one of claims 9 to 12, wherein the plurality of network accesses comprises a mobile network access and an Ethernet access. 16.根据权利要求9至12中任一项所述的装置,其特征在于,所述处理单元还用于:16. The device according to any one of claims 9 to 12, wherein the processing unit is further configured to: 将所述至少一个数据流中的第二数据流调度到非目标网络通路上,所述第二数据流用于表示所述至少一个数据流中除所述第一数据流之外的数据流,所述非目标网络通路用于表示所述多个网络通路中除所述目标网络通路之外的网络通路。scheduling a second data flow in the at least one data flow on a non-target network path, the second data flow is used to represent a data flow in the at least one data flow except the first data flow, the The non-target network accesses are used to represent network accesses in the plurality of network accesses except the target network accesses. 17.一种网络设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至8中任一项所述的方法。17. A network device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, characterized in that, when the processor executes the computer program, the computer program according to claim The method described in any one of 1 to 8. 18.根据权利要求17所述的网络设备,其特征在于,所述网络设备为无线路由器。18. The network device according to claim 17, wherein the network device is a wireless router. 19.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的方法。19. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented .
CN202210846595.7A 2022-07-19 2022-07-19 Data scheduling method, device and computer readable storage medium Active CN116056245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210846595.7A CN116056245B (en) 2022-07-19 2022-07-19 Data scheduling method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210846595.7A CN116056245B (en) 2022-07-19 2022-07-19 Data scheduling method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116056245A true CN116056245A (en) 2023-05-02
CN116056245B CN116056245B (en) 2023-10-20

Family

ID=86118731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210846595.7A Active CN116056245B (en) 2022-07-19 2022-07-19 Data scheduling method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116056245B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013070152A2 (en) * 2011-11-07 2013-05-16 Binary Bio Ab Dynamic dataflow network
US20170093648A1 (en) * 2015-09-28 2017-03-30 Wi-Lan Labs, Inc. System and method for assessing streaming video quality of experience in the presence of end-to-end encryption
WO2018121237A1 (en) * 2016-12-29 2018-07-05 中兴通讯股份有限公司 Network quality detection method and device
CN110290178A (en) * 2019-05-30 2019-09-27 厦门网宿有限公司 A kind of dispatching method of data flow, electronic equipment and storage medium
US20200366717A1 (en) * 2019-05-17 2020-11-19 Juniper Networks, Inc. Classification of unknown network traffic
CN112532466A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Flow identification method and device and storage medium
CN112949739A (en) * 2021-03-17 2021-06-11 中国电子科技集团公司第二十九研究所 Information transmission scheduling method and system based on intelligent traffic classification
CN113037624A (en) * 2019-12-25 2021-06-25 华为技术有限公司 Data flow control method and device
CN113163449A (en) * 2021-02-25 2021-07-23 腾讯科技(深圳)有限公司 Application program control method, device, equipment and storage medium
CN113378961A (en) * 2021-06-23 2021-09-10 中移(杭州)信息技术有限公司 Network traffic identification method, device, equipment and computer program product
CN113392607A (en) * 2020-03-12 2021-09-14 华为技术有限公司 Method for determining configuration parameters and related equipment
CN113574836A (en) * 2019-04-19 2021-10-29 三星电子株式会社 Electronic device and method for controlling data transmission

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013070152A2 (en) * 2011-11-07 2013-05-16 Binary Bio Ab Dynamic dataflow network
US20170093648A1 (en) * 2015-09-28 2017-03-30 Wi-Lan Labs, Inc. System and method for assessing streaming video quality of experience in the presence of end-to-end encryption
WO2018121237A1 (en) * 2016-12-29 2018-07-05 中兴通讯股份有限公司 Network quality detection method and device
CN113574836A (en) * 2019-04-19 2021-10-29 三星电子株式会社 Electronic device and method for controlling data transmission
US20200366717A1 (en) * 2019-05-17 2020-11-19 Juniper Networks, Inc. Classification of unknown network traffic
CN110290178A (en) * 2019-05-30 2019-09-27 厦门网宿有限公司 A kind of dispatching method of data flow, electronic equipment and storage medium
CN112532466A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Flow identification method and device and storage medium
CN113037624A (en) * 2019-12-25 2021-06-25 华为技术有限公司 Data flow control method and device
CN113392607A (en) * 2020-03-12 2021-09-14 华为技术有限公司 Method for determining configuration parameters and related equipment
CN113163449A (en) * 2021-02-25 2021-07-23 腾讯科技(深圳)有限公司 Application program control method, device, equipment and storage medium
CN112949739A (en) * 2021-03-17 2021-06-11 中国电子科技集团公司第二十九研究所 Information transmission scheduling method and system based on intelligent traffic classification
CN113378961A (en) * 2021-06-23 2021-09-10 中移(杭州)信息技术有限公司 Network traffic identification method, device, equipment and computer program product

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
APPLE INC: "S4-100610 "On HTTP Streaming"", 3GPP TSG_SA\\WG4_CODEC, no. 4 *
原源;曹先彬;范梅梅;: "动态服务质量的多信道媒体接入控制传输机制", 国防科技大学学报, no. 02 *

Also Published As

Publication number Publication date
CN116056245B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN110365503B (en) Index determination method and related equipment thereof
CN112104469B (en) Data processing method and device
JP2022511748A (en) Methods and equipment for determining network performance bottleneck values
CN113379176B (en) Method, device, equipment and readable storage medium for detecting abnormal data of telecommunication network
CN103188119A (en) Confidence intervals for key performance indicators in communication networks
CN115632939B (en) Automatic network selection and routing method for achieving multi-target achievement of computational power network
JP7036225B2 (en) Estimator, system and method and program and learning device and method and program
CN105991707B (en) Multimedia interaction method, server and system
CN113660687B (en) Network difference cell processing method, device, equipment and storage medium
CN113727420B (en) Multimode access network selection device and method
CN108901058A (en) A method for optimal selection of Internet of Things node access channel
CN109994128B (en) Voice quality problem location method, device, equipment and medium
WO2025124254A1 (en) Network switching method and apparatus, and terminal and storage medium
WO2016078246A1 (en) Method and device for supporting diversified network data access, and terminal
US20240320443A1 (en) Real-time user communication sentiment detection for dynamic anomaly detection and mitigation
CN112996015B (en) A method and device for constructing indicator correlation relationships
CN116056245B (en) Data scheduling method, device and computer readable storage medium
Li et al. Traffic prediction-based fast rerouting algorithm for wireless multimedia sensor networks
CN113852565B (en) Hot application identification method, network system, network device and storage medium
CN106789349B (en) Quality of experience modeling analysis and conversation flow classification based method
TWI718778B (en) Network connected apparatus and traffic estimation method thereof
CN105721247B (en) A method and system for analyzing user online behavior data
CA3184330A1 (en) System and method for time sliced based traffic detection
CN115695280A (en) Routing method and device based on edge node, electronic equipment and storage medium
Weissberger et al. Background service QoS in a UMTS network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China