A flow scheduling method, device, equipment and storage medium
By obtaining data flow information and network resource parameters, it automatically determines and marks the exit identification of the data flow, solving the problem of selecting an appropriate external network and improving the scheduling efficiency and processing quality of data flows.
Patent Information
- Application Number
- CN202110568201.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-05-24
AI Technical Summary
With the existing technology, it is difficult to select a suitable external network when the data flow enters the external network from the internal network, which affects the data processing efficiency. Especially when the external network corresponding to the destination IP address fails or is congested, the scheduling efficiency is low.
By obtaining the data flow information of multiple target data flows and the network resource parameters of multiple traffic outlets, the outlet identification of each target data flow is determined, and the identification is used to mark the data flow to achieve automated traffic scheduling and select a relatively Excellent traffic outlet.
It realizes the automation of traffic scheduling, provides a better traffic outlet for data flows, improves data processing efficiency, and avoids scheduling problems caused by external network failures or congestion.
Smart Images

Figure CN114679414B
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud technology, and in particular to a traffic scheduling method, device, equipment and storage medium. Background Art
[0002] With the rapid development of computers, data streams such as videos and pictures are also increasing rapidly. When a data stream enters an external network from an internal network, it is usually necessary to schedule the data stream from the internal network to the external network through a certain scheduling method. At present, data streams are generally scheduled according to the destination IP address of the data stream, that is, the data stream is scheduled to the external network corresponding to the destination IP address. However, if the external network corresponding to the destination IP address fails or is congested, it may affect the data processing corresponding to the data stream. Therefore, how to select a suitable external network for the data stream has become an urgent problem to be solved. Summary of the invention
[0003] The embodiments of the present application provide a traffic scheduling method, apparatus, device and storage medium, which can realize the automation of traffic scheduling and provide a better traffic outlet for the data flow, so that the data flow can be sent to a better network for subsequent data processing.
[0004] The first aspect of the embodiment of the present application discloses a traffic scheduling method, the method comprising:
[0005] Acquire data flow information of each target data flow among the multiple target data flows, wherein the data flow information includes egress information for indicating an initial traffic egress;
[0006] Acquire a network resource parameter of each traffic outlet among a plurality of traffic outlets, and determine an outlet identifier corresponding to each target data flow according to the network resource parameter and the outlet information of each target data flow;
[0007] Using the exit identifier corresponding to each target data stream, marking each target data stream to obtain multiple marked data streams, each marked data stream carries the exit identifier;
[0008] The multiple labeled data flows are scheduled to a target traffic outlet according to an outlet identifier carried in each labeled data flow.
[0009] A second aspect of an embodiment of the present application discloses a data flow device, the device comprising:
[0010] An acquiring unit, configured to acquire data flow information of each target data flow among a plurality of target data flows, wherein the data flow information includes egress information indicating an initial flow egress;
[0011] A determination unit, configured to obtain a network resource parameter of each traffic outlet among a plurality of traffic outlets, and determine an outlet identifier corresponding to each target data flow according to the network resource parameter and the outlet information of each target data flow;
[0012] A marking unit, used to mark each target data stream by using the exit identifier corresponding to each target data stream, so as to obtain a plurality of marked data streams, each of which carries the exit identifier;
[0013] The scheduling unit is used to schedule the multiple labeled data flows to the target traffic outlet according to the outlet identifier carried in each labeled data flow.
[0014] The third aspect of an embodiment of the present application discloses a data flow, including a processor, a memory and a network interface, wherein the processor, the memory and the network interface are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect above.
[0015] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect.
[0016] The fifth aspect of the embodiment of the present application discloses a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a server reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the server executes the method of the first aspect above.
[0017] In an embodiment of the present application, data flow information of each target data flow in multiple target data flows can be obtained, and the data flow information may include export information for indicating the initial flow export. Network resource parameters of each flow export in multiple flow exports can also be obtained to determine the export identifier corresponding to each target data flow according to the network resource parameters and the export information of each target data flow, and use the export identifier corresponding to each target data flow to mark each target data flow, thereby obtaining multiple marked data flows, each marked data flow carries an export identifier. Further, multiple marked data flows can be scheduled to the target flow export according to the export identifier carried in each marked data flow. By implementing the above method, the automation of flow scheduling can be realized, and a better flow export can be provided for the data flow, so that the data flow can be sent to a better network for subsequent data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 It is a schematic diagram of the architecture of a traffic scheduling system provided in an embodiment of the present application;
[0020] Figure 2 It is a flow chart of a traffic scheduling method provided in an embodiment of the present application;
[0021] Figure 3 It is a flow chart of another traffic scheduling method provided in an embodiment of the present application;
[0022] Figure 4 It is a flow chart of a traffic scheduling method based on a routing scheduling method provided in an embodiment of the present application;
[0023] Figure 5 It is a flow chart of another flow scheduling method provided in an embodiment of the present application;
[0024] Figure 6 It is a structural schematic diagram of a flow scheduling device provided in an embodiment of the present application;
[0025] Figure 7 It is a structural diagram of a traffic scheduling device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] The technical solution of the present application can be used in a traffic scheduling device (or a traffic scheduling device system), which can be a server or other device. For example, the traffic scheduling device can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0028] Cloud Technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing.
[0029] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, image websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.
[0030] This application stores the data required for traffic scheduling in the "cloud", and the data in the cloud can be obtained and expanded at any time according to needs.
[0031] Traffic scheduling refers to scheduling specific traffic to a specified link for transmission, in order to achieve quality optimization or cost savings. Traffic is divided into inbound and outbound directions. Inbound traffic refers to traffic from the external network to the internal network, and outbound traffic refers to traffic from the internal network to the external network. Generally, traffic scheduling solutions can be divided into two categories: outbound and inbound. For inbound traffic scheduling, traffic from the external network to the internal network can be directed by publishing different routing priorities. This solution is mainly for outbound traffic scheduling.
[0032] A traffic scheduling method proposed in an embodiment of the present application can obtain data flow information of each target data flow in multiple target data flows, and also obtain network resource parameters of each traffic outlet in multiple traffic outlets, so as to determine the outlet identifier of each target data flow according to the network resource parameters and the outlet information for indicating the initial traffic outlet included in the data flow information of each target data flow, and mark each target data flow using the outlet identifier of each target data flow, so as to schedule each target data flow to the target traffic outlet according to the outlet identifier carried in each target data flow. By implementing the above method, the automation of traffic scheduling can be realized, and a better traffic outlet can be provided for the data flow, so that the data flow can be sent to a better network for subsequent data processing.
[0033] Optionally, in some scenarios, the traffic scheduling device (or system) may include multiple components, such as a control component, a marking component, and a forwarding component. Optionally, the above components may also be called other names, such as a control device, a marking device, and a forwarding device, which are not limited in this application.
[0034] For example, see Figure 1 , Figure 1 Schematic diagram of the architecture of a traffic scheduling system provided in an embodiment of the present application. Figure 1 As shown, the traffic scheduling system includes a control component, a marking component and a forwarding component.
[0035] The control component is used to obtain data flow information of each target data flow in multiple target data flows, wherein the data flow information includes egress information for indicating an initial flow egress. The target data flow can be determined by the control component by screening the data flow information of each initial data flow in the multiple initial data flows received. Figure 1 As shown, the initial data flow refers to the data flow that needs to enter the second network (second network 1, second network 2, ... second network n) from the first network, wherein the first network can be an internal network and the second network can be an external internal network. Optionally, the control component can also obtain network resource parameters to determine the target traffic outlet according to the network resource parameters, and the target traffic outlet can be a traffic outlet that is better than the initial traffic outlet. After obtaining the outlet information of each target data stream in the multiple target data streams, the outlet identifier corresponding to each target data stream can be determined according to the outlet information of each target data stream. The control component can also be used to convert the traffic scheduling rules required by the user into traffic marking rules and traffic forwarding rules, and send the traffic marking rules to the marking component, and send the traffic forwarding rules to the forwarding component, so that the marking component can mark the multiple target data streams transmitted to the marking component according to the traffic marking rules, and also enable the forwarding component to schedule each marked data stream to the corresponding target traffic outlet.
[0036] The marking component is used to mark each target data flow using the egress identifier corresponding to each target data flow to obtain multiple marked data flows, wherein each marked data flow may carry an egress identifier. Optionally, the multiple target data flows may be marked using the flow marking rules issued by the control component. Among them, the DSCP value in the data flow may be used to identify different data flows, that is, the DSCP value may be used to represent the egress identifier.
[0037] The forwarding component is used to dispatch multiple labeled data flows to the target traffic outlet according to the outlet identifier carried in each labeled data flow. Optionally, the traffic forwarding rules issued by the control component can be used to dispatch the multiple labeled data flows to the corresponding target traffic outlets, and through the target traffic outlets, the labeled data flows can also enter the external network corresponding to the target traffic outlets.
[0038] From the above, it can be seen that the present application provides a refined export traffic scheduling method, which can determine a better and more suitable traffic export corresponding to the data flow by controlling the relevant information obtained by the component (such as data flow information, network resource parameters, and user attributes), and use the export identifier to indicate the traffic export corresponding to the data flow, so that a large number of data flows can be traffic scheduled according to the export identifier, and the data volume can be scheduled to a better traffic export, so that the data flow can go to a better network for subsequent data processing.
[0039] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0040] See also Figure 2 , Figure 2 is a flow chart of a traffic scheduling method provided in an embodiment of the present application, such as Figure 2 As shown, the traffic scheduling method may include:
[0041] S201: Acquire data flow information of each target data flow among a plurality of target data flows, where the data flow information includes egress information for indicating an initial traffic egress.
[0042] In one implementation, the control component can obtain data flow information of each target data flow in multiple target data flows, and the target data flow is the data flow that needs to be scheduled later. The data flow information may include exit information for indicating the initial traffic exit, and the initial traffic exit can be understood as the traffic exit expected by the user corresponding to the target data flow. The data flow information may also include other information, for example, the data flow information may also include the source IP address, destination IP address, etc. of the target data flow. For example, the data flow information of multiple target data flows obtained by the control component may be as shown in Table 1. It can be seen from Table 1 that when the source IP address of a target data flow is 10.1.1.1 and the destination IP address is 1.1.1.1, the corresponding initial traffic exit is a telecommunications exit. For another example, when the source IP address of a target data flow is 10.1.1.3 and the destination IP address is 1.1.1.1, the corresponding initial traffic exit is a mobile exit. In this application, the traffic exit may be understood as an exit from a first network to a second network. For example, a data flow can access a network segment within China Telecom through a China Telecom egress, or a data flow can access a network segment within China Unicom through a China Unicom egress.
[0043] Table 1:
[0044] Source IP address Destination IP address Initial flow export 10.1.1.1 1.1.1.1 Telecommunications Export 10.1.1.2 1.1.1.1 Unicom export 10.1.1.3 1.1.1.1 Mobile export
[0045] In one implementation, the above-mentioned target data stream may be a filtered data stream, that is, the present application may schedule some data streams in a targeted manner. Specifically, the control component may obtain the data stream information of each of the multiple initial data streams, and after obtaining the data stream information, consider the subsequent marking of some of the initial data streams to determine the flow exit of the part of the initial data stream. Then, the multiple initial data streams may be filtered to obtain the target data stream. Optionally, multiple target data streams may be filtered out from the multiple initial data streams according to the data stream filtering rules and the data stream information of each initial data stream. The data stream information may also include the time, region, data stream identifier, etc. of the data stream. Optionally, the data stream filtering rule may be a filtering rule for a region, or a filtering rule for a certain time period, or a filtering rule for a data stream identifier, or a filtering rule for an IP address, etc. Other data stream filtering rules may also be set according to requirements, which are not limited in this application. For example, if the data flow screening rule is a screening rule for a region, the initial data flow in the same region can be determined as the target data flow. Assuming that the data flow screening rule is to screen out the initial data flow in Shanghai, that is to say, the initial data flow in Shanghai can be used as the target data flow. For another example, if the data flow screening rule is a screening rule for an IP address, the screening can be performed on the source IP address or the destination IP address carried by the data flow. Taking the source IP address as an example, the data flow screening rule can include the IP address range of the source IP address, that is, the initial data flow corresponding to the source IP address in the IP address range is used as the target data flow.
[0046] S202: Acquire network resource parameters of each traffic outlet among multiple traffic outlets, and determine an outlet identifier corresponding to each target data flow according to the network resource parameters and the outlet information of each target data flow.
[0047] In one implementation, a mapping relationship between a flow exit and an exit identifier can be obtained, and the mapping relationship is stored in a target area, for example, in a control component or in other areas, which is not limited in this application. Then, for any target data stream among multiple target data streams, the exit identifier corresponding to the target data stream can be determined based on the mapping relationship and the initial flow exit carried by the exit information of the target data stream. Among them, the exit identifier can be an identifier corresponding to the initial flow exit.
[0048] In one implementation, in order to match the target data flow to a better and more suitable traffic outlet, the target data flow can be directed to a better network for subsequent data processing. Then, the initial traffic outlet can be adjusted to adjust the initial traffic outlet to the target traffic outlet, and the target traffic outlet can be a better and more suitable traffic outlet than the initial traffic outlet. Then, the outlet identifier corresponding to the target data flow can also be the identifier corresponding to the target traffic outlet. Optionally, the network resource parameters of each traffic outlet in the multiple traffic outlets can be obtained to determine the target traffic outlet of the target data flow from the multiple traffic outlets according to the network resource parameters. After determining the target traffic outlet, the outlet identifier corresponding to the target data flow can be determined according to the target traffic outlet of the target data flow. For example, the initial traffic outlet in the export information of the target data flow can be replaced with the target traffic outlet, then the outlet identifier corresponding to the target data flow can be determined according to the target traffic outlet of the target data flow.
[0049] For example, network resource parameters may include current network quality, traffic export cost, etc., and may also include other parameters, which are not limited in this application. For example, assuming that the network resource parameters include the current network quality, the current network quality corresponding to each traffic export can be obtained, then the traffic export with better current network quality can be considered as the target traffic export of the target data flow. For another example, assuming that the network resource parameters include the current network quality and traffic export cost, the current network quality and traffic export cost corresponding to each traffic export can be obtained, then, when the current network quality is the same, the traffic export with lower traffic export cost can be selected as the target traffic export of the target data flow.
[0050] Optionally, the export identifier can be represented by a Differentiated Services Code Point (DSCP). In the service category TOS identifier byte of the IP header of each data packet, the DSCP can be encoded using the 6-bit value of the IP data packet header to obtain the DSCP value. It can be understood that 64 DSCP values can be obtained by encoding using 6-bit values, that is, there can be 64 export identifiers, and one export identifier corresponds to one traffic export. Then, 64 traffic exports can be marked using the DSCP value. It can be seen that it is also more convenient to use the DSCP value to make the export identifier. In some cases, the user may need to set the DSCP value in the corresponding data stream, that is, set the 6-bit value of the IP data packet header of the data packet, and hope to do some processing at the receiving end of the data stream according to the DSCP value. However, this situation is generally used between internal networks, and from the internal network to the external network, the user usually does not set the DSCP value in the data stream. It can be understood that the above situation will not conflict with the use of the DSCP value as the export identifier in this application. Among them, the exit mark can also be implemented using other methods, which is not limited in this application.
[0051] In some scenarios, in order to prevent users from setting DSCP values, users may be prohibited from setting DSCP values when traffic scheduling is performed on target data flows. Alternatively, before using the DSCP value to mark the target data flow, it is detected whether the DSCP value is a set DSCP value (such as the original DSCP value is usually 0). If the DSCP value is a set DSCP value, the set DSCP value may be backed up first, and then the backup may be used to restore the set DSCP value after traffic scheduling is completed.
[0052] For example, taking the export identifier as the DSCP value, the mapping relationship between the traffic export and the export identifier can be shown in Table 2. It can be seen that different traffic exports correspond to different export identifiers. For example, when the initial traffic export of the target data flow is telecommunications, then the export identifier corresponding to the target data flow is 10.
[0053] Table 2:
[0054] Source IP address Destination IP address Traffic export Egress ID (DSCP value) 10.1.1.1 1.1.1.1 telecommunications 10 10.1.1.2 1.1.1.1 China Unicom 20 10.1.1.3 1.1.1.1 move 30
[0055] S203: Using the egress identifier corresponding to each target data flow, label each target data flow to obtain a plurality of labeled data flows.
[0056] In one implementation, each target data stream can be labeled according to a traffic labeling rule, wherein the traffic labeling rule can be used to indicate that the target data stream is labeled according to an egress identifier. Specifically, taking any target data stream among multiple target data streams as an example, the initial identifier corresponding to the target data stream can be obtained. For example, the egress identifier is represented by a DSCP value, and the original DSCP value in the data stream is usually 0, so the initial identifier of the target data stream is 0. After obtaining the initial identifier, the initial identifier of the target data stream can be replaced according to the egress identifier corresponding to the target data stream to obtain a labeled data stream corresponding to the target data stream, and the labeled data stream also carries the egress identifier. For example, if the egress identifier corresponding to a target data stream is 10, the initial identifier 0 of the target data stream can be replaced with 10.
[0057] In one implementation, step S203 can be implemented by a marking component. Specifically, multiple target data streams can be transmitted to the marking component. After the multiple target data streams reach the marking component, the marking component can modify the DSCP value in each target data stream according to the traffic marking rule, that is, the marked data stream corresponding to each target data stream can be obtained.
[0058] S204: Scheduling multiple labeled data flows to a target traffic outlet according to an outlet identifier carried in each labeled data flow.
[0059] In one implementation, each marked data stream can be scheduled according to a traffic forwarding rule so that each marked data stream is scheduled to a corresponding target traffic outlet. The traffic forwarding rule can be used to indicate scheduling according to an outlet identifier, and the traffic forwarding rule can also carry a mapping relationship between a traffic outlet and an outlet identifier, so as to determine the traffic outlet corresponding to the target data stream according to the mapping relationship, wherein the mapping relationship between the traffic outlet and the outlet identifier can be as shown in Table 2. Specifically, the outlet identifier in each marked data stream in a plurality of marked data streams can be identified, that is, the DSCP value in each marked data stream is obtained. Then, after determining the outlet identifier in each marked data stream, the target traffic outlet corresponding to each marked data stream can be determined according to the mapping relationship between the traffic outlet and the outlet identifier and the outlet identifier in each marked data stream, and then each marked data stream is forwarded to the corresponding target traffic outlet according to the target traffic outlet corresponding to each marked data stream. For example, as shown in Table 2, if the outlet identifier in a marked data stream is 10, it can be determined that the target traffic outlet corresponding to the marked data stream is a telecommunications outlet, and the marked data stream can be forwarded to the telecommunications outlet.
[0060] From the above, it can be seen that the present application selects the corresponding traffic export according to the export identifier. By using this method, the scheduling problem caused by the error of the network segment information of the external network can be well solved. For example, the network segment information of a certain external network is published incorrectly. For example, the network segment information of the external network should be 1.1.1.0 / 24, but the information released to the public is 2.2.2.0 / 24. For another example, when the external network 1 publishes the network segment information, what is actually published is the network segment information of the external network 2. For another example, multiple external networks publish the same network segment information. Then, from the above, it can be seen that if the corresponding traffic export is determined according to the destination IP address, it may cause problems in traffic scheduling, thereby affecting the scheduling efficiency. However, the present application uses the export identifier to select the corresponding traffic export, rather than the destination IP address to select the traffic export, which can effectively avoid the scheduling problems caused by the error of the network segment information of the external network.
[0061] In one implementation, step S204 can be implemented by a forwarding component. Specifically, multiple labeled data streams can be transmitted from the above-mentioned labeling component to the forwarding component. After the multiple labeled data streams reach the forwarding component, the forwarding component can schedule each labeled data stream according to the traffic forwarding rules to schedule each labeled data stream to the corresponding target traffic outlet.
[0062] In an embodiment of the present application, data flow information of each target data flow in multiple target data flows can be obtained, and the data flow information may include export information for indicating the initial flow export. Network resource parameters of each flow export in multiple flow exports can also be obtained to determine the export identifier corresponding to each target data flow according to the network resource parameters and the export information of each target data flow, and use the export identifier corresponding to each target data flow to mark each target data flow, thereby obtaining multiple marked data flows, each marked data flow carries an export identifier. Further, multiple marked data flows can be scheduled to the target flow export according to the export identifier carried in each marked data flow. By implementing the above method, the automation of flow scheduling can be realized, and a better flow export can be provided for the data flow, so that the data flow can be sent to a better network for subsequent data processing.
[0063] See also Figure 3 , Figure 3 is a flow chart of another traffic scheduling method provided in an embodiment of the present application. Figure 3 As shown, the traffic scheduling method may include:
[0064] S301: Acquire data flow information of each target data flow among multiple target data flows.
[0065] S302: Obtain a network resource parameter of each traffic outlet among a plurality of traffic outlets, and determine a target traffic outlet for each target data flow from the plurality of traffic outlets according to the network resource parameter.
[0066] In one implementation, it is understood that the route scheduling method may be to perform route lookup based on the destination IP address. Figure 4 The figure shows a flow chart of realizing traffic scheduling by using routing scheduling. Figure 4 As shown in the figure, the forwarding component is connected to three external networks, namely, China Telecom, China Unicom and China Mobile. Each external network has three network segments, of which China Telecom's network segment is 1.1.1.0 / 24, China Unicom's network segment is 2.2.2.0 / 24, and China Mobile's network segment is 3.3.3.0 / 24. The three external networks are also interconnected, that is, the network segments of China Unicom and China Mobile can also be accessed through China Telecom's exit. The forwarding component can receive the full routing table of the three external networks through the Border Gateway Protocol (BGP). Then, when scheduling traffic, the network segment where the destination IP address is located can be found in the full routing table according to the destination IP address of the data flow, so as to schedule traffic. For example, if the destination IP address of a data flow is 1.1.1.1, the data flow is scheduled to the China Telecom exit; if the destination IP address of a data flow is 2.2.2.2, the data flow is scheduled to the China Unicom exit; if the destination IP address of a data flow is 3.3.3.3, the data flow is scheduled to the China Mobile exit. It can be seen that the routing scheduling method is to send the routing method according to the network segment corresponding to the destination IP address to achieve scheduling.
[0067] In some scenarios, if the current telecom network fails or is congested, and the network quality of dispatching to the Unicom exit and accessing 1.1.1.1 is better than dispatching directly to the telecom exit. In this case, it is hoped that the data flow accessing 1.1.1.1 can also be dispatched to the Unicom exit. If a route is sent to the forwarding component, the route indicates that the network segment 1.1.1.0 / 24 is directed to the Unicom exit, and considering that the Unicom exit may have problems such as insufficient bandwidth, then all data flows accessing 1.1.1.0 / 24 in the Telecom exit cannot be superimposed. In this case, only part of the data flow accessing 1.1.1.0 / 24 can be forwarded to the Unicom exit. Then, it may be necessary to schedule based on both the source IP address and the destination IP address at the same time. In this case, policy-based routing (PBR) can be used to implement traffic scheduling. Policy-based routing is a method that uses traffic policies to perform route selection. Policy-based routing can match a certain feature of the traffic for special processing. Compared with the routing scheduling method that can only make decisions and provide routes based on the destination IP address of the traffic, policy-based routing can make decisions and provide routes based on traffic characteristics such as source IP address, destination IP address, source port, destination port, protocol, TOS, etc.
[0068] In some scenarios, if there are tens of thousands of source IP addresses and tens of thousands of destination IP addresses, there may be tens of millions of combinations of source IP addresses and destination IP addresses. It is understandable that the computational complexity of traffic scheduling is very large and the calculation speed may be slow, thereby reducing the efficiency of traffic scheduling.
[0069] From the above, we can see that the routing scheduling method and the policy routing method are more suitable for situations where there is less data flow or user demand is not high. When there are more data flows, the above two traffic scheduling methods may have the following problems: First, the scale is limited. The PBR method will occupy the forwarding device hardware. Generally, forwarding devices can set thousands of rules, but for the Internet, there can be hundreds of thousands of routes. Using PBR, it is impossible to achieve hundreds of thousands of routes on the Internet; second, the precision is insufficient. The routing scheduling method sends out routing segments, which may not be able to achieve the full amount of IP, because there are currently more than 800,000 routing segments. If they are split into 32-bit mask routes, there will be hundreds of millions of routes, which the forwarding device cannot handle.
[0070] Then, in order to realize traffic scheduling for a large number of data streams and schedule the data volume to a better traffic outlet, it is possible to consider adding an exit identifier to the target data stream to determine the traffic outlet according to the exit identifier. The exit identifier can be implemented using the DSCP carried by the data stream. DSCP is a mature data stream (data packet) marking field. All devices can process it normally and do not require additional development. Optionally, marking the data stream using the exit identifier can be achieved by adding a marking component. To determine the exit identifier, it is necessary to first determine the traffic outlet corresponding to the data stream, so that the exit identifier of the data stream can be determined later according to the mapping relationship between the traffic outlet and the exit identifier. Among them, determining the traffic outlet corresponding to the data stream can be achieved by adding a control component. The control component can obtain data flow information of the data stream, and the data flow information may include exit information indicating the initial traffic outlet, and the initial traffic outlet may be the original demand of the user. Then, according to the exit information, an exit identifier can be assigned to the data stream, and the exit identifier can also be sent to the marking component so that the marking component marks the data stream. In order to schedule the data flow to a better traffic outlet, the control component can also obtain relevant network resource parameters to replace the user's original demand (initial traffic outlet) with a better traffic outlet according to the network resource parameters.
[0071] In one implementation, in order to schedule the target data flow to a better flow outlet, the initial flow outlet can be replaced by a better flow outlet, and the better flow outlet is the target flow outlet. Specifically, the control component can obtain the network resource parameters of each flow outlet in the multiple flow outlets to determine the target flow outlet of each target data flow from the multiple flow outlets according to the network resource parameters. The network resource parameters may include the current network quality, the flow outlet cost, and the like. In addition to obtaining the network resource parameters corresponding to each flow outlet, the user attributes corresponding to the target data flow can also be obtained, so as to determine the target flow outlet of the target data flow according to the user attributes corresponding to the target data flow and the network resource parameters corresponding to each flow outlet. Optionally, an outlet adjustment rule can be set, and the network resource parameters and user attributes involved in the outlet adjustment rule can be used to automatically calculate an optimal flow outlet, and the optimal flow outlet is also the target flow outlet. For example, for any target data flow among the multiple target data flows, the user priority corresponding to the target data flow can be determined according to the user attributes corresponding to the target data flow, and the outlet priority corresponding to each flow outlet among the multiple flow outlets can be determined according to the network resource parameters. After determining the user priority and the export priority, the target traffic export of the target data flow can be determined from multiple traffic exports according to the export adjustment rule, the user priority corresponding to the target data flow, and the export priority corresponding to each traffic export.
[0072] Optionally, the export adjustment rule may be to determine the target traffic export of the target data flow according to the user attributes of the target data flow and the traffic export cost corresponding to each traffic export. Among them, the user priority of the target data flow may be determined according to the user attributes, and the export priority of the traffic export may be determined according to the traffic export cost. The export adjustment rule may specifically be that the target data flow with a high user priority may be scheduled to a traffic export with a higher export priority, while the target data flow with a lower user priority may be scheduled to a traffic export with a lower export priority, thereby realizing differentiated services. For example, the traffic export cost corresponding to each traffic export in multiple traffic exports and the user attributes corresponding to each target data flow may be obtained, and the export priority corresponding to each traffic export may be determined according to the traffic export cost corresponding to each traffic export, and the user priority corresponding to each target data flow may be determined according to the user attributes corresponding to each target data flow, so as to determine the target traffic export corresponding to each target data flow according to the export priority and the user priority.
[0073] For example, suppose there are three traffic outlets and two target data streams, where the traffic outlet costs of the three traffic outlets are 1,000 yuan (traffic outlet 1), 700 yuan (traffic outlet 2), and 500 yuan (traffic outlet 3), respectively. The traffic outlet costs of each traffic outlet can be used to set the outlet priority. The higher the traffic outlet cost of a certain traffic outlet, the lower the outlet priority of the traffic outlet. For example, the outlet priorities of the above three traffic outlets can be 1 (traffic outlet 1), 2 (traffic outlet 2), and 3 (traffic outlet 3), respectively. The user attributes corresponding to the two target data streams can be important users (target data stream 1) and ordinary users (target data stream 2), respectively. Then, the user priorities of the two target data streams can be divided into 2 (target data stream 1) and 1 (target data stream 2), respectively. Then, according to the outlet adjustment rules, the target traffic outlet corresponding to target data stream 1 can be traffic outlet 3, and the target traffic outlet corresponding to target data stream 2 can be traffic outlet 2 or traffic outlet 3. Among them, the priority in this application (such as the export priority and user priority described above, or the cost priority and quality priority described below) can be understood as the larger the value, the higher the priority. The above-mentioned priority can also be other values that can reflect the priority and the level of priority.
[0074] Optionally, the export adjustment rule may be to determine the target traffic export of the target data flow according to the user attributes of the target data flow, the traffic export cost corresponding to each traffic export, and the current network quality corresponding to each traffic export. Among them, whether the current network quality is faulty, the degree of congestion, etc. is reflected. The export adjustment rule may specifically be that the target data flow with high user priority can be scheduled to a traffic export with low traffic export cost and good network quality, while the target data flow with low user priority is scheduled to a traffic export with high traffic export cost and poor network quality, thereby achieving differentiated services. For example, the traffic export cost corresponding to each traffic export in multiple traffic exports, the current network quality corresponding to each traffic export, and the user attributes corresponding to each target data flow can be obtained, and the export priority corresponding to each traffic export is determined according to the traffic export cost and current network quality corresponding to each traffic export, and the user priority corresponding to each target data flow is determined according to the user attributes corresponding to each target data flow, so as to determine the target traffic export corresponding to each target data flow according to the export priority and the user priority.
[0075] For example, suppose there are 3 traffic outlets and 2 target data streams, where the traffic outlet costs of the 3 traffic outlets are 1,000 yuan (traffic outlet 1), 700 yuan (traffic outlet 2), and 500 yuan (traffic outlet 3), respectively, and the current network qualities of the 3 traffic outlets are low (traffic outlet 1), low (traffic outlet 2), and high (traffic outlet 3), respectively. The cost priority corresponding to the traffic outlet cost and the quality priority corresponding to the current network quality can be used to jointly determine the outlet priority corresponding to each traffic outlet. For example, the higher the traffic outlet cost of a certain traffic outlet, the lower the cost priority of the traffic outlet, and the higher the current network quality of a certain traffic outlet, the higher the quality priority of the traffic outlet. Then, the cost priorities of the above 3 traffic outlets can be 1 (traffic outlet 1), 2 (traffic outlet 2), and 3 (traffic outlet 3), respectively, and the quality priorities can be 1 (traffic outlet 1), 1 (traffic outlet 2), and 2 (traffic outlet 3), respectively. The outlet priority can be the sum of the cost priority and the quality priority, or the sum of the weighted cost priority and the weighted quality priority, or the outlet priority can be determined in other ways, which is not limited in this application. Assuming that the export priority is the sum of the cost priority and the quality priority, the export priorities of the above three traffic exports can be 2 (traffic export 1), 3 (traffic export 2), and 5 (traffic export 3), respectively. The user attributes corresponding to the two target data streams can be important users (target data stream 1) and ordinary users (target data stream 2), then the user priorities of the two target data streams can be 2 (target data stream 1) and 1 (target data stream 2), respectively. Then, according to the export adjustment rules, the target traffic export corresponding to the target data stream 1 can be traffic export 3, and the target traffic export corresponding to the target data stream 1 can be traffic export 1 or traffic export 2. It can be understood that, under the same network quality, the traffic export with low traffic export cost is preferred, then the target traffic export corresponding to the target data stream 2 can be traffic export 2.
[0076] S303: Replace the initial traffic outlet in the outlet information with the target traffic outlet.
[0077] S304: Determine an egress identifier corresponding to each target data flow according to the target traffic egress in the egress information of each target data flow.
[0078] In one implementation, a mapping relationship between a traffic outlet and an outlet identifier may be obtained. For example, the mapping relationship may be as shown in Table 2. Then, for any target data stream among multiple target data streams, the outlet identifier corresponding to the target data stream may be determined based on the mapping relationship and the target traffic outlet carried by the outlet information of the target data stream. For example, when the target traffic outlet of the target data stream is telecommunications, the outlet identifier corresponding to the target data stream is 10.
[0079] S305: using the egress identifier corresponding to each target data stream, marking each target data stream to obtain multiple marked data streams, each marked data stream carrying an egress identifier;
[0080] S306: Scheduling multiple labeled data flows to a target traffic outlet according to the outlet identifier carried in each labeled data flow.
[0081] The specific implementation of steps S301 and S305 - S306 can refer to the specific description of steps S201 and S203 - S204 in the above embodiment, which will not be repeated here.
[0082] In an embodiment of the present application, multiple target data streams can be determined, and each target data stream can carry export information for indicating the initial traffic export. It is also possible to obtain network resource parameters of each traffic export in the multiple traffic exports, so as to determine the target traffic export of each target data stream from the multiple traffic exports according to the network resource parameters, and replace the initial traffic export in the export information with the target traffic export, and determine the export identifier corresponding to each target data stream according to the target traffic export of each target data stream. Further, each target data stream can be marked using the export identifier corresponding to each target data stream to obtain multiple marked data streams, each marked data stream can carry an export identifier, so that multiple marked data streams can be scheduled to the target traffic export according to the export identifier carried in each marked data stream. By implementing the above method, the automation of traffic scheduling can be realized, the traffic export can be selected more flexibly, the traffic scheduling efficiency can be improved, and a better traffic export can be provided for the data stream, so that the data stream can be sent to a better network for subsequent data processing.
[0083] To better understand the traffic scheduling method provided in the embodiment of the present application, Figure 5 The process shown in the figure is further explained. Figure 5As shown, the control component can obtain the source IP address and destination IP address pairs and export information corresponding to each target data stream as shown in Table 1. The control component can also convert the traffic scheduling rules into traffic marking rules and traffic forwarding rules, and send the traffic marking rules to the marking component, so that the marking component can mark multiple target data streams transmitted to the marking component according to the traffic marking rules, and send the traffic forwarding rules to the forwarding component, so that the forwarding component schedules each marked data stream to the corresponding target traffic export. Among them, the marking component can be a marking cluster, which can be composed of an X86 cluster. The X86 cluster can process public network traffic, can process tens of millions of data streams, and can also be reused. The marking component can also be other clusters, which is not limited in this application. If there is no cluster that can process public network traffic on the original traffic scheduling system, a new cluster can be added, but adding a new cluster alone may increase the traffic scheduling cost. Existing cloud service providers can provide elastic IP (Elastic IP, EIP), which is implemented using X86 clusters. Therefore, it can be understood that this application can be applicable to cloud service provider scenarios.
[0084] In one implementation, the control component can further optimize the initial traffic export of the target data flow to obtain a better traffic export, which is the above-mentioned target traffic export. For example, an export adjustment rule can be added to the control component, and the export adjustment rule can be a certain algorithm. Then, the control component can obtain relevant parameters about the algorithm (which can be understood as the above-mentioned network resource parameters and user attributes). For example, the parameters of the algorithm can include information such as current network quality, traffic export cost, and user attributes. Then, after obtaining the relevant parameters, the algorithm and the relevant parameters can be used to automatically calculate an optimal traffic export, which is also the target traffic export. Among them, the algorithm can be used to periodically calculate the optimal traffic export. For example, the period can be 1 second, or 3 seconds, or other values. It can be seen that the present application provides a traffic scheduling method that can be applied to cloud service providers. Cloud service providers usually need to provide the best network quality at the lowest cost according to the user's service level, and it does not need to add additional hardware resources when applied to cloud service providers. The current EIP cluster can be reused as the marking component.
[0085] In one implementation, after the target traffic outlet is calculated according to the network resource parameters, the corresponding outlet identifier can be assigned to each target data stream according to the mapping relationship between the pre-set traffic outlet and the outlet identifier. For example, the outlet identifier can be represented by a DSCP value. When the target data stream arrives at the marking cluster, the marking cluster can modify the DSCP value corresponding to each target data stream according to the traffic marking rule to obtain multiple marked data streams, and then transmit the multiple marked data streams to the forwarding component. After the forwarding component receives multiple marked data streams, it can identify the DSCP value corresponding to each marked data stream, so as to determine the target traffic outlet corresponding to each marked data stream according to the mapping relationship between the outlet identifier and the traffic outlet, and schedule each marked data stream to the corresponding target traffic outlet. For example, as shown in Table 2, if the DSCP value corresponding to the marked data stream is 10, the forwarding component can forward the marked data stream to the telecommunications outlet, and if the DSCP value corresponding to the marked data stream is 20, the forwarding component can forward the marked data stream to the Unicom outlet. If the DSCP value corresponding to the marked data stream is 30, the forwarding component can forward the marked data stream to the mobile outlet.
[0086] See also Figure 6 , Figure 6 : is a schematic diagram of a flow scheduling device provided in an embodiment of the present application. The flow scheduling device described in this embodiment includes:
[0087] An acquiring unit 601 is used to acquire data flow information of each target data flow among multiple target data flows, wherein the data flow information includes egress information indicating an initial traffic egress;
[0088] A determination unit 602 is configured to obtain a network resource parameter of each traffic outlet among a plurality of traffic outlets, and determine an outlet identifier corresponding to each target data flow according to the network resource parameter and the outlet information of each target data flow;
[0089] The marking unit 603 is used to mark each target data stream by using the exit identifier corresponding to each target data stream to obtain multiple marked data streams, each marked data stream carrying the exit identifier;
[0090] The scheduling unit 604 is used to schedule the multiple labeled data flows to the target traffic outlet according to the outlet identifier carried in each labeled data flow.
[0091] In one implementation, the marking unit 603 is specifically used to:
[0092] For any target data stream among the multiple target data streams, obtaining an initial identifier corresponding to the target data stream;
[0093] The initial identifier included in the target data flow is replaced according to the exit identifier corresponding to the target data flow to obtain a marked data flow corresponding to the target data flow.
[0094] In one implementation, the determining unit 602 is specifically configured to:
[0095] Determine a target traffic outlet for each target data flow from the multiple traffic outlets according to the network resource parameter;
[0096] Replacing the initial flow exit in the exit information of each target data flow with the target flow exit;
[0097] An exit identifier corresponding to each target data flow is determined according to a target traffic exit of each target data flow.
[0098] In one implementation, the determining unit 602 is specifically configured to:
[0099] For any target data stream among the multiple target data streams, obtaining a user attribute corresponding to the target data stream, and determining a user priority corresponding to the target data stream according to the user attribute;
[0100] Determine an egress priority corresponding to each of the plurality of traffic egresses according to the network resource parameter;
[0101] A target traffic outlet of the target data stream is determined from the multiple traffic outlets according to an outlet adjustment rule, a user priority corresponding to the target data stream, and an outlet priority corresponding to each traffic outlet.
[0102] In one implementation, the method is applied to a traffic scheduling device, wherein the traffic scheduling device includes a control component and a forwarding component; the determining unit 602 is specifically configured to:
[0103] For any target data flow among the multiple target data flows, the control component determines the egress identifier corresponding to the target data flow according to the mapping relationship between the traffic egress and the egress identifier and the egress information of the target data flow; and sends the mapping relationship to the forwarding component;
[0104] The scheduling unit 604 is specifically configured to:
[0105] The forwarding component is used to identify the exit identifier in each of the multiple marked data streams; the target traffic exit corresponding to each marked data stream is determined according to the mapping relationship and the exit identifier in each of the marked data streams; and each of the marked data streams is scheduled to the corresponding target traffic exit according to the target traffic exit corresponding to each of the marked data streams.
[0106] In one implementation, the traffic scheduling device further includes a marking component; the marking unit 603 is specifically used to:
[0107] Each target data stream is marked by the marking component to obtain multiple marked data streams.
[0108] In one implementation, the acquisition unit 601 may also be used to:
[0109] Obtaining data stream information of each initial data stream among the multiple initial data streams;
[0110] According to the data flow screening rule and the data flow information of each of the initial data flows, a plurality of target data flows are screened out from the plurality of initial data flows.
[0111] It is understood that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The functional units in the embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0112] See also Figure 7 , Figure 7 701 , a flow forwarding device according to an embodiment of the present application, includes a processor 701 , a memory 702 , and a network interface 703 . The processor 701 , the memory 702 , and the network interface 703 can exchange data.
[0113] The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0114] The memory 702 may include a read-only memory and a random access memory, and provide program instructions and data to the processor 701. A portion of the memory 702 may also include a non-volatile random access memory. When the processor 701 calls the program instructions, it is used to execute:
[0115] Acquire data flow information of each target data flow among the multiple target data flows, wherein the data flow information includes egress information for indicating an initial traffic egress;
[0116] Acquire a network resource parameter of each traffic outlet among a plurality of traffic outlets, and determine an outlet identifier corresponding to each target data flow according to the network resource parameter and the outlet information of each target data flow;
[0117] Using the exit identifier corresponding to each target data stream, marking each target data stream to obtain multiple marked data streams, each marked data stream carries the exit identifier;
[0118] The multiple labeled data flows are scheduled to a target traffic outlet according to an outlet identifier carried in each labeled data flow.
[0119] In one implementation, the processor 701 is specifically configured to:
[0120] For any target data stream among the multiple target data streams, obtaining an initial identifier corresponding to the target data stream;
[0121] The initial identifier included in the target data flow is replaced according to the exit identifier corresponding to the target data flow to obtain a marked data flow corresponding to the target data flow.
[0122] In one implementation, the processor 701 is specifically configured to:
[0123] Determine a target traffic outlet for each target data flow from the multiple traffic outlets according to the network resource parameter;
[0124] Replacing the initial flow exit in the exit information of each target data flow with the target flow exit;
[0125] An exit identifier corresponding to each target data flow is determined according to a target traffic exit of each target data flow.
[0126] In one implementation, the processor 701 is specifically configured to:
[0127] For any target data stream among the multiple target data streams, obtaining a user attribute corresponding to the target data stream, and determining a user priority corresponding to the target data stream according to the user attribute;
[0128] Determine an egress priority corresponding to each of the plurality of traffic egresses according to the network resource parameter;
[0129] A target traffic outlet of the target data stream is determined from the multiple traffic outlets according to an outlet adjustment rule, a user priority corresponding to the target data stream, and an outlet priority corresponding to each traffic outlet.
[0130] In one implementation, the method is applied to a traffic scheduling device, the traffic scheduling device includes a control component and a forwarding component; the processor 701 is specifically configured to:
[0131] For any target data flow among the multiple target data flows, the control component determines the egress identifier corresponding to the target data flow according to the mapping relationship between the traffic egress and the egress identifier and the egress information of the target data flow; and sends the mapping relationship to the forwarding component;
[0132] The forwarding component is used to identify the exit identifier in each of the multiple marked data streams; the target traffic exit corresponding to each marked data stream is determined according to the mapping relationship and the exit identifier in each of the marked data streams; and each of the marked data streams is scheduled to the corresponding target traffic exit according to the target traffic exit corresponding to each of the marked data streams.
[0133] In one implementation, the traffic scheduling device further includes a marking component; the processor 701 is specifically configured to:
[0134] Each target data stream is marked by the marking component to obtain multiple marked data streams.
[0135] In one implementation, the processor 701 is further configured to:
[0136] Obtaining data stream information of each initial data stream among the multiple initial data streams;
[0137] According to the data flow screening rule and the data flow information of each of the initial data flows, a plurality of target data flows are screened out from the plurality of initial data flows.
[0138] The present application also provides a computer storage medium in which program instructions are stored. When the program is executed, it may include: Figure 2 or Figure 3 Part or all of the steps of the traffic scheduling method in the corresponding embodiment.
[0139] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0140] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0141] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the server reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the server executes the steps performed in the embodiments of the above methods.
[0142] The above is a detailed introduction to a traffic scheduling method, device, equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A traffic scheduling method, characterized in that: include: Acquire data flow information of each target data flow among the multiple target data flows, wherein the data flow information includes egress information for indicating an initial traffic egress; Acquire a network resource parameter of each traffic outlet among the multiple traffic outlets, where the network resource parameter of a traffic outlet includes a current network quality and a traffic outlet cost of the traffic outlet; For any target data stream among the multiple target data streams, obtaining a user attribute corresponding to the target data stream, and determining a user priority corresponding to the target data stream according to the user attribute; Determine the egress priority corresponding to each traffic egress according to the current network quality and traffic egress cost of each traffic egress; The egress priority of a traffic egress is the sum of the cost priority and the quality priority, or the egress priority of a traffic egress is the sum of the weighted cost priority and the weighted quality priority; the cost priority is negatively correlated with the traffic egress cost, and the quality priority is positively correlated with the current network quality; Determine the target traffic outlet of the target data stream from the multiple traffic outlets according to the outlet adjustment rule, the user priority corresponding to the target data stream, and the outlet priority corresponding to each traffic outlet; wherein the outlet adjustment rule is: the target data stream with high user priority is dispatched to the traffic outlet with low traffic outlet cost and good current network quality, and the target data stream with low user priority is dispatched to the traffic outlet with high traffic outlet cost and poor current network quality; The initial flow exit in the exit information of each target data flow is replaced with the target flow exit; the exit identifier corresponding to each target data flow is determined according to the target flow exit of each target data flow; the exit identifier of each target data flow is used to indicate the identifier corresponding to the target flow exit of the corresponding target data flow; the exit identifier of a target data flow is represented by a differential service code point DSCP; Using the exit identifier corresponding to each target data stream, marking each target data stream to obtain multiple marked data streams, each marked data stream carries the exit identifier; The multiple labeled data flows are scheduled to a target traffic outlet according to an outlet identifier carried in each labeled data flow.
2. The method according to claim 1, characterized in that The step of marking each target data flow by using the egress identifier corresponding to each target data flow to obtain a plurality of marked data flows includes: For any target data stream among the multiple target data streams, obtaining an initial identifier corresponding to the target data stream; The initial identifier included in the target data flow is replaced according to the exit identifier corresponding to the target data flow to obtain a marked data flow corresponding to the target data flow.
3. The method according to claim 1, characterized in that Applied to a traffic scheduling device, the traffic scheduling device includes a control component and a forwarding component; the determining the exit identifier corresponding to each target data flow according to the target traffic exit of each target data flow includes: For any target data flow among the multiple target data flows, the control component determines the egress identifier corresponding to the target data flow according to the mapping relationship between the traffic egress and the egress identifier and the egress information of the target data flow; and sends the mapping relationship to the forwarding component; The step of scheduling the multiple labeled data flows to a target traffic outlet according to an outlet identifier carried in each labeled data flow includes: The forwarding component is used to identify the exit identifier in each of the multiple marked data streams; the target traffic exit corresponding to each marked data stream is determined according to the mapping relationship and the exit identifier in each of the marked data streams; and each of the marked data streams is scheduled to the corresponding target traffic exit according to the target traffic exit corresponding to each of the marked data streams.
4. The method according to claim 3, characterized in that The traffic scheduling device further includes a marking component; marking each target data stream to obtain a plurality of marked data streams, including: Each target data stream is marked by the marking component to obtain multiple marked data streams.
5. The method according to any one of claims 1 to 4, characterized in that: Before acquiring the data stream information of each target data stream in the multiple target data streams, the method further includes: Obtaining data stream information of each initial data stream among the multiple initial data streams; According to the data flow screening rule and the data flow information of each of the initial data flows, a plurality of target data flows are screened out from the plurality of initial data flows.
6. A flow scheduling device, characterized in that: include: An acquiring unit, configured to acquire data flow information of each target data flow among a plurality of target data flows, wherein the data flow information includes egress information indicating an initial flow egress; A determination unit, configured to obtain a network resource parameter of each of the plurality of traffic outlets, wherein the network resource parameter of a traffic outlet includes a current network quality and a traffic outlet cost of the traffic outlet; The determining unit is further configured to obtain, for any target data stream among the multiple target data streams, a user attribute corresponding to the target data stream, and determine a user priority corresponding to the target data stream according to the user attribute; The determination unit is further used to determine the export priority corresponding to each traffic export according to the current network quality and traffic export cost of each traffic export respectively; the export priority of a traffic export is the sum of the cost priority and the quality priority, or the export priority of a traffic export is the sum of the weighted cost priority and the weighted quality priority; the cost priority is negatively correlated with the traffic export cost, and the quality priority is positively correlated with the current network quality; The determination unit is further configured to determine the target traffic outlet of the target data flow from the multiple traffic outlets according to the outlet adjustment rule, the user priority corresponding to the target data flow, and the outlet priority corresponding to each traffic outlet; wherein the outlet adjustment rule is: the target data flow with a high user priority is dispatched to a traffic outlet with a low traffic outlet cost and a good current network quality, and the target data flow with a low user priority is dispatched to a traffic outlet with a high traffic outlet cost and a poor current network quality; The determination unit is further used to replace the initial traffic outlet in the outlet information of each target data flow with the target traffic outlet; determine the outlet identifier corresponding to each target data flow according to the target traffic outlet of each target data flow; the outlet identifier of each target data flow is used to indicate the identifier corresponding to the target traffic outlet of the corresponding target data flow; the outlet identifier of a target data flow uses a differentiated service code point DSCP; A marking unit, used to mark each target data stream by using the exit identifier corresponding to each target data stream, so as to obtain a plurality of marked data streams, each of which carries the exit identifier; The scheduling unit is used to schedule the multiple labeled data flows to the target traffic outlet according to the outlet identifier carried in each labeled data flow.
7. A flow scheduling device, characterized in that: The method comprises a processor, a memory and a network interface, wherein the processor, the memory and the network interface are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 5.
