CN110620733A - Service flow control method and device - Google Patents

Service flow control method and device Download PDF

Info

Publication number
CN110620733A
CN110620733A CN201910936082.3A CN201910936082A CN110620733A CN 110620733 A CN110620733 A CN 110620733A CN 201910936082 A CN201910936082 A CN 201910936082A CN 110620733 A CN110620733 A CN 110620733A
Authority
CN
China
Prior art keywords
service data
data
traffic
data center
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910936082.3A
Other languages
Chinese (zh)
Inventor
袁航
祖立军
何东杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201910936082.3A priority Critical patent/CN110620733A/en
Publication of CN110620733A publication Critical patent/CN110620733A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

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 method and a device for controlling service flow, which relate to the technical field of communication, wherein the method comprises the following steps: the method comprises the steps that a first data center obtains the total traffic of service data which needs to be transmitted to a second data center through a first special line at present, and the total traffic of the service data is determined according to the traffic of each service data which needs to be transmitted to the second data center through the first special line; if the first data center determines to carry out shunting processing according to the total traffic of the service data, determining a second special line matched with the traffic of the first service data, wherein the first service data is any one of the service data which needs to be transmitted through the first special line currently; and the first data center sends the first service data to a second data center through a second special line, and returns to the first data center to obtain the total traffic of the service data which needs to be transmitted through the first special line currently, wherein the total traffic of the service data which needs to be transmitted through the first special line currently does not include the traffic of the first service data. And the fine shunting processing of burst flow is realized.

Description

Service flow control method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for controlling service flow.
Background
In a transaction process involving a data center network, it is found that sometimes a situation in which a transaction amount is greatly increased in a short time occurs due to some marketing activities. When the volume of transactions increases substantially, it is possible for sudden large volumes to occur in a private line across the data center. When the dedicated bandwidth cannot effectively carry the traffic, congestion occurs, even a large amount of packet loss occurs, resulting in transaction failure. In order to avoid the situation, the burst traffic must be shunted in time after the burst traffic is generated, that is, part of the burst traffic is introduced into other special lines with lower load, so that the stable operation of the production network is ensured.
In the prior art, the load balancing of the dedicated lines is usually used to implement the shunting, but in the prior art, the implementation of equally dividing the burst traffic according to the number of the dedicated lines results in that the sum of the occupied transmission traffic and the component traffic on a certain dedicated line is higher than the load of the traffic of another dedicated line, which affects the transmission effect.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling service flow, which can realize fine shunting of burst flow.
In one aspect, an embodiment of the present application provides a method for controlling service traffic, where the method includes:
the method comprises the steps that a first data center obtains the total traffic of service data which needs to be transmitted to a second data center through a first special line at present, wherein the total traffic of the service data is determined according to the traffic of each service data which needs to be transmitted to the second data center through the first special line;
if the first data center determines to perform the shunting processing according to the total traffic of the service data, determining a second special line matched with the traffic of the first service data, wherein the first service data is any one of the service data which needs to be transmitted through the first special line currently;
and the first data center sends the first service data to the second data center through the second special line, and returns to the step of acquiring the total traffic of the service data which needs to be transmitted through the first special line currently by the first data center, wherein the total traffic of the service data which needs to be transmitted through the first special line currently does not include the traffic of the first service data.
Optionally, the idle traffic of the second dedicated line is at least equal to the traffic of the first service data.
Optionally, after the first data center sends the first service data to a second data center through the second dedicated line, the method further includes:
and the first data center receives response data aiming at the first service data, which is sent by the second data center through the second private line.
Optionally, the sending, by the first data center, the first service data to a second data center through the second dedicated line includes:
the first data center creates first SR tunnel information including the second special line information according to a Segmented Routing (SR) technology, wherein the first SR tunnel information is used for indicating that the first service data are transmitted to the second data center through the second special line;
the first data center adds the first SR tunnel information into a header of the first service data, and sends the first service data to the second data center according to the header of the first service data;
the first data center receives response data, which is sent by the second data center through the second private line and aims at the first service data, and the method further comprises the following steps:
the first data center receives response data of the first service data sent by the second data center according to a header of the response data of the first service data, wherein the header of the response data of the first service data comprises second SR tunnel information, and the second SR tunnel information is used for indicating that the response data of the first service data is transmitted to the first data center through the second dedicated line.
Optionally, the determining, by the first data center, to perform the splitting processing according to the total traffic of the service data includes:
and when the first data center determines that the total traffic data flow is greater than a shunting threshold, determining to perform shunting processing, wherein the shunting threshold is determined at least according to the bandwidth utilization rate of the first special line.
Optionally, each service data is burst service data, and the burst service data conforms to one of the following characteristics:
the traffic of the service data is increased rapidly within a set time, and the traffic of the service data keeps stable fluctuation after the traffic is increased rapidly;
the traffic of the service data is increased rapidly within the set time, and the traffic of the service data keeps increasing stably after the traffic is increased rapidly.
Optionally, after the step of returning, by the first data center, to the first data center to obtain the total traffic of the service data that needs to be transmitted through the first dedicated line currently, the method further includes:
and if the first data center determines to perform reflux processing according to the total traffic of the service data, sending second service data to the second data through the first special line, wherein the second service data is any one of the service data which needs to be transmitted through the first special line currently.
In one aspect, an embodiment of the present application provides a traffic control apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the total traffic of the service data which needs to be transmitted to a second data center through a first special line at present, and the total traffic of the service data is determined according to the traffic of each service data which needs to be transmitted to the second data center through the first special line;
a determining unit, configured to determine, if it is determined to perform a flow splitting process according to the total traffic of the service data, a second dedicated line that is matched with traffic of first service data, where the first service data is any one of service data that needs to be currently transmitted via the first dedicated line;
and a sending unit, configured to send the first service data to the second data center through the second dedicated line, and return to the step of obtaining, by the first data center, a total traffic of service data that needs to be currently transmitted through the first dedicated line, where the total traffic of service data that needs to be currently transmitted through the first dedicated line does not include the traffic of the first service data.
Optionally, the idle traffic of the second dedicated line is at least equal to the traffic of the first service data.
Optionally, the obtaining unit is further configured to:
and receiving response data aiming at the first service data, which is sent by the second data center through the second private line.
Optionally, the sending unit is specifically configured to:
creating first SR tunnel information including the second private line information according to a Segmented Routing (SR) technology, wherein the first SR tunnel information is used for indicating that the first service data is transmitted to the second data center through the second private line;
adding the first SR tunnel information into the header of the first service data, and sending the first service data to the second data center according to the header of the first service data;
the acquisition unit is further configured to:
and receiving response data of the first service data, which is sent by the second data center according to a header of the response data of the first service data, wherein the header of the response data of the first service data comprises second SR tunnel information, and the second SR tunnel information is used for indicating that the response data of the first service data is transmitted to the first data center through the second private line.
Optionally, the determining unit is specifically configured to:
and when the total traffic data flow is determined to be greater than a shunting threshold, determining to perform shunting processing, wherein the shunting threshold is determined at least according to the bandwidth utilization rate of the first special line.
Optionally, each service data is burst service data, and the burst service data conforms to one of the following characteristics:
the traffic of the service data is increased rapidly within a set time, and the traffic of the service data keeps stable fluctuation after the traffic is increased rapidly;
the traffic of the service data is increased rapidly within the set time, and the traffic of the service data keeps increasing stably after the traffic is increased rapidly.
Optionally, the sending unit is further configured to:
and if the backflow processing is determined to be performed according to the total traffic of the service data, sending second service data to the second data through the first special line, wherein the second service data is any one of the service data which needs to be transmitted through the first special line currently.
In one aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the traffic flow control methods when executing the computer program.
In one aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program runs on the computer device, the computer device is caused to execute the steps of any one of the traffic flow control methods described above.
The method for controlling the service traffic provided in the embodiment of the present application may convert the burst traffic to a dedicated line matched with the burst traffic after the burst traffic is found, and then implement service processing across data centers through the dedicated line. In the embodiment of the application, whether the spare private line can bear the burst traffic or not is considered, so that the problem of overhigh load of the transferred private line can not occur after the burst traffic is transferred to the matched private line, and the problems in the prior art are at least solved.
In addition, in the embodiment of the application, the first data center can transfer the burst traffic to the second data center through the SR technology, so that the consistency of the processing path and the response path in one service processing process is ensured, and the fine shunting processing of the burst traffic is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a prior art shunting scheme provided by an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for controlling traffic according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a first data center offloading process according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling a traffic flow according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a traffic flow control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a specific practical process, the applicant of the present application finds that, in a process of transmitting business data traffic related to a cross-data center network, a situation that a transaction amount is greatly increased in a short time due to some marketing activities, for example, sales promotion activities of sales platforms on various networks, is sometimes found, and a sudden large flow may occur in a cross-center private line. When the dedicated bandwidth cannot effectively carry the traffic, congestion occurs, even a large amount of packet loss occurs, resulting in transaction failure. In order to avoid the situation, the burst traffic must be shunted in time after the burst traffic is generated, that is, part of the burst traffic is introduced into other special lines with lower load, so that the stable operation of the production network is ensured.
For example, as shown in fig. 1, two data centers exist in fig. 1, which are a first data center and a second data center respectively, the first data center is connected to the second data center through a dedicated line 1 and a dedicated line 2, the dedicated line 1 is a dedicated line for processing a card-less service traffic, and the dedicated line 2 is a dedicated line for processing a banking service traffic, so that when the card-less service traffic suddenly increases, the load of the dedicated line 1 is too high, and congestion and packet loss are generated.
In the prior art, the flow of the card-free service is equally divided into two parts, 50% of the flow is reserved on a special line 1, and the other 50% of the flow is divided into two parts on a special line 2. For example, in fig. 1, the flow rate of the cardless service is 800M, the flow rate of the banking service is 400M, however, the flow rate that the private line 1 can bear is 600M, and the flow rate that the private line 2 can bear is 400M, if the method of the average flow is used, the load on the private line 2 becomes 800M, which exceeds the load on the private line 2, and causes congestion and packet loss, that is, the above technical problem cannot be solved in the prior art.
Based on the above drawbacks of the prior art, the applicant of the present application has conceived a service flow control method, and when a burst flow occurs, a dedicated line matched with the burst flow is determined, and the burst flow is sent to a second data center, so as to achieve the purpose of shunting the burst flow.
After introducing the design concept of the embodiment of the present application, some simple descriptions are provided below for application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In specific implementation, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
To further illustrate the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the accompanying drawings and the detailed description. Although the embodiments of the present application provide the method operation steps as shown in the following embodiments or figures, more or less operation steps may be included in the method based on the conventional or non-inventive labor. In steps where no necessary causal relationship exists logically, the order of execution of the steps is not limited to that provided by the embodiments of the present application.
An embodiment of the present application provides a method for controlling a traffic flow, specifically as shown in fig. 2, including:
step S201, a first data center obtains a total traffic of service data that needs to be currently transmitted to a second data center through a first dedicated line, where the total traffic of service data is determined according to traffic of each service data that needs to be transmitted to the second data center through the first dedicated line.
In the embodiment of the application, the first data center can obtain the total flow of the service data which needs to be transmitted to the second data center through the first special line currently. Optionally, in this embodiment of the application, the first data center may obtain each flow of each service data in real time, and then determine a total flow of each service data by calculating a sum of each flow of each service data, or in this embodiment of the application, each flow of each service data is stored in the database in advance, and the first data center obtains each flow of each service data in the database and calculates the total flow of each service data.
Optionally, in this embodiment of the present application, each flow of each service data may be determined by using a five-tuple of each service data, for example, in this embodiment of the present application, each acquired service data that needs to be transmitted to the second data center through the dedicated line 1 includes service data 1, service data 2, and service data 3, where the five-tuple of the service data 1 is: source ip 10.1.1.1, destination ip10.2.1.1, source port 1000, destination port 2000, communication protocol TCP, flow size b 1; the quintuple of the service data 2 is: source ip 10.1.2.1, destination ip10.2.2.1, source port 2000, destination port 3000, communication protocol TCP, flow size b 2; the quintuple of the service data 3 is: source ip 10.1.3.1, destination ip10.2.3.1, source port 1000, destination port 2000, communication protocol TCP, traffic size b 3.
Step S202, if the first data center determines to perform the offloading processing according to the total traffic of the service data, determining a second dedicated line matched with the traffic of the first service data, where the first service data is any one of the service data that needs to be currently transmitted through the first dedicated line.
In this embodiment of the application, if the first data center determines to perform the splitting processing according to the total traffic of the service data, the second dedicated line matched with the traffic of the first service data is determined.
In the embodiment of the application, the first data center determines whether to perform the shunting according to the total amount of the service data. In an optional embodiment, the first data center determines whether offloading is required according to the total amount of the service data and an offloading threshold.
In this embodiment of the present application, the offloading threshold may be determined by a bandwidth utilization rate of the dedicated line, where the bandwidth utilization rate is determined according to a traffic of the bandwidth occupied by the dedicated line and a maximum supported traffic of the dedicated line bandwidth, for example, the maximum supported traffic of the dedicated line 1 is 100M, and for a traffic corresponding to the service data, the occupied bandwidth is 50M, and the bandwidth utilization rate is 50%. In the embodiment of the application, when the bandwidth utilization rate exceeds the shunting threshold, shunting is performed. Similarly, when the bandwidth utilization does not exceed the offloading threshold, the first data center determines that offloading is not required for the service data transmitted via the first dedicated line.
In this embodiment, in an optional embodiment, the offloading threshold may be determined by parameters such as a time delay and a packet loss rate, or the parameters such as an incoming time delay and a packet loss rate may be used as one of the offloading thresholds, and when the time delay and the packet loss rate of the first dedicated line are greater than the time delay threshold and the packet loss rate threshold in the offloading threshold, the first data center determines that offloading is required.
Optionally, in this embodiment of the application, the service data that needs to be transmitted through the first dedicated line may be understood as burst service data, where the burst service data conforms to one of the following characteristics: the traffic of the service data is increased rapidly within a set time, and the traffic of the service data keeps stable fluctuation after the traffic is increased rapidly; the traffic of the service data is increased rapidly within the set time, and the traffic of the service data keeps increasing stably after the traffic is increased rapidly.
Specifically, the burst service data includes:
1. the traffic bandwidth of the service data 1 is W, the service data is in a stable fluctuation state for a long time, the traffic bandwidth is increased to W1 within a short time t0, and the traffic bandwidth is stable fluctuation on W1, so that the service data 1 is burst service data;
2. the traffic bandwidth of the service data 1 is W, the service data 1 is in a steady fluctuation state for a long time, the traffic bandwidth is increased to W1 within a short time t0, and then the traffic bandwidth is increased to W2 steadily, so that the traffic of the service data 1 is burst service data.
Optionally, in this embodiment of the present application, whether each service data is burst service data is determined according to a quintuple of each service data.
In the embodiment of the application, after determining to perform the shunting processing, the first data center determines the second private line matched with any burst service data, and may also determine the first service data from each service data according to a certain rule.
In an optional embodiment, the service data with the largest flow in each service data may be used as the first service data, and an optional selection method is used. For example, in the embodiment of the present application, the service data that needs to be transmitted to the second data center through the first dedicated line are service data 1, service data 2, service data 3, and service data 4, a flow rate of the service data 1 is 300M, a flow rate of the service data 2 is 400M, a flow rate of the service data 3 is 200M, and a flow rate of the service data 4 is 250M. The sequence of the service data is service data 2, service data 1, service data 4 and service data 3, and the service data 2 is used as the first service data.
In this embodiment of the present application, the first service data may also be selected according to other methods, which are not described herein.
In this embodiment of the present application, determining the second dedicated line that matches the traffic of the first service data refers to determining a dedicated line that is different from the first dedicated line and is capable of bearing the traffic of the first service data, so in this embodiment of the present application, the unoccupied traffic of the second dedicated line is at least equal to the traffic of the first service data.
In an optional embodiment, the first data center may further sort, according to the unoccupied traffic, other private lines except the first private line, and may sort, from large to small, the unoccupied traffic to obtain a private line sequence, where the first main line in the private line sequence is used as the second main line.
For example, in the embodiment of the present application, the first data center and the second data center transmit the first service data through the dedicated line 1, the dedicated line 2, the dedicated line 3, and the dedicated line 4, where the unoccupied traffic of the dedicated line 2 is 300M, the unoccupied traffic of the dedicated line 3 is 600M, the unoccupied traffic of the dedicated line 4 is 500M, and the sequence of the dedicated lines is the dedicated line 3, the dedicated line 4, and the dedicated line 2, and the dedicated line 3 is used as the second dedicated line.
In this application, there is an optional embodiment, when the matching second dedicated line cannot be found in the traffic of the first service data, after the set time, the second dedicated line matching the traffic of the first service data is determined again.
Step S203, the first data center sends the first service data to the second data center through the second dedicated line, and returns to the step of the first data center acquiring total traffic of the service data currently required to be transmitted through the first dedicated line, where the total traffic of the service data currently required to be transmitted through the first dedicated line does not include the traffic of the first service data.
In the embodiment of the application, after the first data center determines the second dedicated line, the first service data is sent to the second data center through the second dedicated line, after the sending, the first data center obtains the total traffic of the service data which needs to be transmitted to the second data center through the first dedicated line, and at this time, the total traffic of the service data obtained by the first data center does not include the traffic of the first service data which is already sent to the second data center.
That is to say, in the embodiment of the present application, after the first data center sends the first service data to the second data center, the first data center further needs to determine the next first service data, and then determines the second private line matched with the next first service data.
For example, in the embodiment of the present application, after a first data center sends service data 2 in a sequence of service data to a second data center through a dedicated line 3, the first data center updates each service data in the sequence of service data, then determines a second dedicated line matched with the first service data, and sends the first service data through the second dedicated line.
In this embodiment of the present application, a first data center may send first service data to a second data center through an SR technique, and specifically, in this embodiment of the present application, the first data center creates first SR tunnel information including the second private line information, where the first SR tunnel information is used to indicate that the first service data needs to be transmitted to the second data center through the second private line, and the first data center adds the first SR tunnel information to a header of the first service data, and sends the first service data to the second data center according to the header of the first service data.
In this embodiment of the application, after the first data center sends the first service data to the second data center, the second data center may also send the response data to the first data center, and the second data center may also send the response data to the first data center through the second dedicated line.
That is to say, after the first data center establishes the first SR tunnel information by using the SR technology, the second data center also establishes the second SR tunnel information corresponding to the first SR tunnel information by using the SR technology, and the second SR tunnel information is used to indicate that the response data of the first service data is transmitted to the first data center through the second dedicated line.
In this embodiment, there may also be an optional embodiment, after the first data center sends the first service data to the second data center, when the first data center determines that the total traffic of the service data that needs to be transmitted to the second data center through the first dedicated line does not need to be split, the first data center further sends the second service data in the service data to the second data center through the first dedicated line.
Optionally, in this embodiment of the present application, a backflow threshold may be set to determine whether backflow is required. That is, in the embodiment of the present application, the first data center determines whether to perform the reflow processing according to the total traffic data flow.
In an alternative embodiment, the backflow threshold is determined at least according to the bandwidth usage rate of the first dedicated line, for example, when the bandwidth usage rate of the first dedicated line reaches 90%, the backflow threshold is set, and when the bandwidth usage rate of the first dedicated line falls back to 60%, the backflow threshold is set.
In the embodiment of the application, when the first data center determines that the reflow processing is required, the SR tunnel information is deleted, so that the first data center can send the service data to the second data center according to the first private line.
Meanwhile, in the embodiment of the application, the second data center also deletes the corresponding SR tunnel information, so that the second data center can send the response data of the first service data to the first data center through the first dedicated line.
An exemplary explanation of the shunting process and the reflow process of the first data center is shown in fig. 3, each service data that needs to be transmitted to the second data center through a specific dedicated line is service data 1, service data 2, service data 3, and service data 4, where a flow of the service data 1 is 200M, a flow of the service data 2 is 150M, a flow of the service data 3 is 100M, a flow of the service 4 is 50M, a total flow of each service data in the first data is determined to be 500M, a bandwidth usage rate of the set dedicated line is calculated to be 90% and a shunting threshold value is 85% for a total flow of current service data, so the first data center determines that the shunting process needs to be performed.
In the embodiment of the application, the first data center sorts the traffic of each service data from large to small to form service data, and the sequence is service data 1, service data 2, service data 3 and service data 4; similarly, the first data center sorts other private lines from large to small according to idle traffic to form a private line sequence, the other private lines include a private line 1, a private line 2, a private line 3 and a private line 4, the idle traffic of the private line 1 is 800M, the idle traffic of the private line 2 is 700M, the idle traffic of the private line 3 is 500M, and the sequence of the private line sequence is the private line 1, the private line 2, the private line 3 and the private line 4.
The method comprises the steps that a first data center determines that a special line matched with service data 1 is a special line 1, the service data 1 is sent to a second data center through the special line 1, after the first data center sends the service data, a service data sequence is updated, the updated service data sequence is service data 2, service data 3 and service data 4, the first data center determines that the total flow of current service data is 300M, and the bandwidth utilization rate of the special line is set to be 88% and is larger than a shunting threshold value aiming at the total flow of the current service data, so that shunting processing is needed.
The first data center updates a private line queue, the updated private line queue is a private line 2, a private line 1 (remaining 600M) and a private line 3, the service data 2 is sent to the second data center through the private line 2, then the first data center continues to determine the total flow of each service data currently for the set private line, in the embodiment of the present application, each service data for the set private line is a service data 3 and a service data 4, the total flow of each service data is 150M, the total flow of each service data is set with a private line bandwidth utilization rate of 50%, the set backflow threshold value is 60%, so the first data center determines to perform backflow processing, and the first data center sends the service data 3 to the second data center through the set private line.
In order to better explain the embodiment of the present application, the traffic control method provided in the embodiment of the present application is described below in combination with a specific implementation scenario, and in the embodiment of the present application, the method is applied to a traffic control system, where the traffic control system at least includes a first data center and a second data center, and the first data center and the second data center are connected by a plurality of dedicated lines.
In the embodiment of the present application, as shown in fig. 4, the method specifically includes:
step S401, a first data center obtains the total flow of all service data which need to be transmitted to a second data center through a set special line;
step S402, the first data center determines whether to perform shunting according to the total flow of each service data and a set shunting threshold, and if the first data center determines that shunting is needed, step S403 is executed; otherwise, executing step S404;
step S403, the first data center forms a service data sequence according to the descending order of the flow of each service data, and step S405 is executed;
step S404, the first data center sends one of the service data to the second data center through a set special line, and the step S401 is returned;
step S405, the first data center forms a special line sequence according to the sequence from the small to the small of the other special lines;
step S406, the first data center sends the first service data in the service data sequence to the second data center through the first dedicated line in the dedicated line sequence, and returns to step S401.
In the above embodiment, there is no precedence order between step S403 and step S405.
Based on the foregoing embodiments, referring to fig. 5, an embodiment of the present invention provides a traffic flow control apparatus 500, including:
an obtaining unit 501, configured to obtain a total traffic of service data that needs to be currently transmitted to a second data center through a first dedicated line, where the total traffic of service data is determined according to traffic of each service data that needs to be transmitted to the second data center through the first dedicated line;
a determining unit 502, configured to determine, if it is determined to perform a splitting process according to the total traffic of the service data, a second dedicated line that is matched with traffic of first service data, where the first service data is any one of service data that needs to be currently transmitted through the first dedicated line;
a sending unit 503, configured to send the first service data to the second data center through the second dedicated line, and return to the step where the first data center obtains a total traffic of service data that needs to be currently transmitted through the first dedicated line, where the total traffic of service data that needs to be currently transmitted through the first dedicated line does not include the traffic of the first service data.
Optionally, the idle traffic of the second dedicated line is at least equal to the traffic of the first service data.
Optionally, the obtaining unit 501 is further configured to:
and receiving response data aiming at the first service data, which is sent by the second data center through the second private line.
Optionally, the sending unit 503 is specifically configured to:
creating first SR tunnel information including the second private line information according to a Segmented Routing (SR) technology, wherein the first SR tunnel information is used for indicating that the first service data is transmitted to the second data center through the second private line;
adding the first SR tunnel information into the header of the first service data, and sending the first service data to the second data center according to the header of the first service data;
the obtaining unit 501 is further configured to:
and receiving response data of the first service data, which is sent by the second data center according to a header of the response data of the first service data, wherein the header of the response data of the first service data comprises second SR tunnel information, and the second SR tunnel information is used for indicating that the response data of the first service data is transmitted to the first data center through the second private line.
Optionally, the determining unit 502 is specifically configured to:
and when the total traffic data flow is determined to be greater than a shunting threshold, determining to perform shunting processing, wherein the shunting threshold is determined at least according to the bandwidth utilization rate of the first special line.
Optionally, each service data is burst service data, and the burst service data conforms to one of the following characteristics:
the traffic of the service data is increased rapidly within a set time, and the traffic of the service data keeps stable fluctuation after the traffic is increased rapidly;
the traffic of the service data is increased rapidly within the set time, and the traffic of the service data keeps increasing stably after the traffic is increased rapidly.
Optionally, the sending unit 503 is further configured to:
and if the backflow processing is determined to be performed according to the total traffic of the service data, sending second service data to the second data through the first special line, wherein the second service data is any one of the service data which needs to be transmitted through the first special line currently.
Optionally, in this embodiment of the present application, the traffic flow control device may be a routing edge device in the first data center, or may be other devices in the first data center.
Based on the same technical concept, the embodiment of the present application provides a computer device, as shown in fig. 6, including at least one processor 601 and a memory 602 connected to the at least one processor, where a specific connection medium between the processor 601 and the memory 602 is not limited in the embodiment of the present application, and the processor 601 and the memory 602 are connected through a bus in fig. 6 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present application, the memory 602 stores instructions executable by the at least one processor 601, and the at least one processor 601 may execute the steps included in the foregoing traffic flow control method by executing the instructions stored in the memory 602.
The processor 601 is a control center of the computer device, and may connect various parts of the terminal device by using various interfaces and lines, and obtain the client address by executing or executing the instructions stored in the memory 602 and calling the data stored in the memory 602. Optionally, the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles an operating system, a user interface, an application program, and the like, and the modem processor mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 601. In some embodiments, the processor 601 and the memory 602 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 601 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
The memory 602, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 602 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 602 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 602 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
Based on the same technical concept, embodiments of the present application provide a computer-readable storage medium storing a computer program executable by a computer device, which, when the program runs on the computer device, causes the computer device to execute the steps of a traffic flow control method.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A method for traffic control, the method comprising:
the method comprises the steps that a first data center obtains the total traffic of service data which needs to be transmitted to a second data center through a first special line at present, wherein the total traffic of the service data is determined according to the traffic of each service data which needs to be transmitted to the second data center through the first special line;
if the first data center determines to perform the shunting processing according to the total traffic of the service data, determining a second special line matched with the traffic of the first service data, wherein the first service data is any one of the service data which needs to be transmitted through the first special line currently;
and the first data center sends the first service data to the second data center through the second special line, and returns to the step of acquiring the total traffic of the service data which needs to be transmitted through the first special line currently by the first data center, wherein the total traffic of the service data which needs to be transmitted through the first special line currently does not include the traffic of the first service data.
2. The method of claim 1, wherein idle traffic of the second dedicated line is at least equal to traffic of the first traffic data.
3. The method of claim 1, wherein after the first data center sends the first service data to a second data center via the second dedicated line, the method further comprises:
and the first data center receives response data aiming at the first service data, which is sent by the second data center through the second private line.
4. The method of claim 3, wherein the first data center sends the first service data to a second data center through the second dedicated line, and wherein the method comprises:
the first data center creates first SR tunnel information including the second special line information according to a Segmented Routing (SR) technology, wherein the first SR tunnel information is used for indicating that the first service data are transmitted to the second data center through the second special line;
the first data center adds the first SR tunnel information into a header of the first service data, and sends the first service data to the second data center according to the header of the first service data;
the first data center receives response data, which is sent by the second data center through the second private line and aims at the first service data, and the method further comprises the following steps:
the first data center receives response data of the first service data sent by the second data center according to a header of the response data of the first service data, wherein the header of the response data of the first service data comprises second SR tunnel information, and the second SR tunnel information is used for indicating that the response data of the first service data is transmitted to the first data center through the second dedicated line.
5. The method according to claim 1, wherein the determining, by the first data center, to perform the offloading processing according to the total traffic data flow includes:
and when the first data center determines that the total traffic data flow is greater than a shunting threshold, determining to perform shunting processing, wherein the shunting threshold is determined at least according to the bandwidth utilization rate of the first special line.
6. The method of claim 1, wherein each of the service data is a burst service data, and wherein the burst service data conforms to one of the following characteristics:
the traffic of the service data is increased rapidly within a set time, and the traffic of the service data keeps stable fluctuation after the traffic is increased rapidly;
the traffic of the service data is increased rapidly within the set time, and the traffic of the service data keeps increasing stably after the traffic is increased rapidly.
7. The method according to claim 1, wherein after the step of the first data center returning to the first data center to obtain the total traffic of the service data currently required to be transmitted through the first dedicated line, the method further comprises:
and if the first data center determines to perform reflux processing according to the total traffic of the service data, sending second service data to the second data through the first special line, wherein the second service data is any one of the service data which needs to be transmitted through the first special line currently.
8. A traffic control apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the total traffic of the service data which needs to be transmitted to a second data center through a first special line at present, and the total traffic of the service data is determined according to the traffic of each service data which needs to be transmitted to the second data center through the first special line;
a determining unit, configured to determine, if it is determined to perform a flow splitting process according to the total traffic of the service data, a second dedicated line that is matched with traffic of first service data, where the first service data is any one of service data that needs to be currently transmitted via the first dedicated line;
and a sending unit, configured to send the first service data to the second data center through the second dedicated line, and return to the step of obtaining, by the first data center, a total traffic of service data that needs to be currently transmitted through the first dedicated line, where the total traffic of service data that needs to be currently transmitted through the first dedicated line does not include the traffic of the first service data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any one of claims 1 to 7 are performed by the processor when the program is executed.
10. A computer-readable storage medium, having stored thereon a computer program executable by a computer device, for causing the computer device to perform the steps of the method of any one of claims 1 to 7, when the program is run on the computer device.
CN201910936082.3A 2019-09-29 2019-09-29 Service flow control method and device Pending CN110620733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910936082.3A CN110620733A (en) 2019-09-29 2019-09-29 Service flow control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910936082.3A CN110620733A (en) 2019-09-29 2019-09-29 Service flow control method and device

Publications (1)

Publication Number Publication Date
CN110620733A true CN110620733A (en) 2019-12-27

Family

ID=68924851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910936082.3A Pending CN110620733A (en) 2019-09-29 2019-09-29 Service flow control method and device

Country Status (1)

Country Link
CN (1) CN110620733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338784A (en) * 2021-12-07 2022-04-12 中国联合网络通信集团有限公司 Service processing method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506395A (en) * 2016-11-28 2017-03-15 迈普通信技术股份有限公司 A kind of business stream scheduling method and device
CN109361600A (en) * 2018-04-20 2019-02-19 中国移动通信有限公司研究院 A kind of method and apparatus of to acquisite approachs mark
CN110061920A (en) * 2018-01-18 2019-07-26 中兴通讯股份有限公司 A kind of method creating two-way section of routing tunnel, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506395A (en) * 2016-11-28 2017-03-15 迈普通信技术股份有限公司 A kind of business stream scheduling method and device
CN110061920A (en) * 2018-01-18 2019-07-26 中兴通讯股份有限公司 A kind of method creating two-way section of routing tunnel, equipment and storage medium
CN109361600A (en) * 2018-04-20 2019-02-19 中国移动通信有限公司研究院 A kind of method and apparatus of to acquisite approachs mark

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338784A (en) * 2021-12-07 2022-04-12 中国联合网络通信集团有限公司 Service processing method, device and storage medium

Similar Documents

Publication Publication Date Title
US9185047B2 (en) Hierarchical profiled scheduling and shaping
CN110413416B (en) Current limiting method and device for distributed server
CN108881448B (en) API request processing method and device
CN107295036B (en) Data sending method and data merging equipment
CN107547391B (en) Message transmission method and device
CN100539580C (en) Balancing method of loads in the data network and device
CN111343102A (en) Flow rate control method, server-side server, client-side server and system
CN110535697B (en) Method for balancing block chain cross-domain broadcast network load
CN112654003A (en) Method, device, storage medium and electronic equipment for sending message
CN111538572A (en) Task processing method, device, scheduling server and medium
CN110620733A (en) Service flow control method and device
CN107896196B (en) Method and device for distributing messages
US10666723B2 (en) Data distribution system, data communication device and program for data distribution
CN101599910A (en) The method and apparatus that message sends
CN110933181B (en) Routing method, device and system and electronic equipment
CN116886798A (en) Service message processing method, device, electronic equipment and medium
CN107659511B (en) Overload control method, host, storage medium and program product
CN114070798B (en) Message transmission method, device and equipment
CN113572695B (en) Link aggregation method, device, computing equipment and computer storage medium
CN113839884B (en) Flow control method and device
CN110309225B (en) Data processing method and system
CN114172895A (en) Routing method, routing device, computer equipment and storage medium
CN113691459A (en) Data transmission method and device based on identification message
CN105900383A (en) Communication system, control node and communication method
CN105072047A (en) Message transmitting and processing method

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