CN113364873A - Traffic scheduling method and equipment - Google Patents
Traffic scheduling method and equipment Download PDFInfo
- Publication number
- CN113364873A CN113364873A CN202110639333.9A CN202110639333A CN113364873A CN 113364873 A CN113364873 A CN 113364873A CN 202110639333 A CN202110639333 A CN 202110639333A CN 113364873 A CN113364873 A CN 113364873A
- Authority
- CN
- China
- Prior art keywords
- domain name
- name resolution
- target server
- client
- address
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 8
- 238000012216 screening Methods 0.000 claims description 5
- 238000010276 construction Methods 0.000 abstract description 4
- 238000013461 design Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011217 control strategy Methods 0.000 description 2
- 230000029087 digestion Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1021—Server selection for load balancing based on client or server locations
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a traffic scheduling method and equipment, wherein the method comprises the following steps: sending a domain name resolution request to a scheduling system, so that the scheduling system determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, generates a domain name resolution result comprising the address of the target server, and controls the target server to execute flow area restriction rule setting operation; the target server and the client belong to the same region; and acquiring a domain name resolution result sent by the dispatching system, and accessing the target server according to the domain name resolution result to avoid the problem of cross-region access, thereby effectively reducing the load of a backbone network and reducing the construction cost of the backbone network.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a traffic scheduling method and traffic scheduling equipment.
Background
With the development of cloud computing, distributed technologies are rapidly developed, in the existing distributed application scenario, bandwidth control of each distributed cloud site is independent, and traffic is network-wide oriented, that is, when a client accesses a distributed cloud site and a server, any server can be accessed.
However, the client can access any one of the servers, that is, can access the server across regions, which causes a problem of cross-region access, and when the cross-region access is performed, the client needs to pass through a backbone network of a telecommunication operator, thereby increasing the load of the backbone network.
Disclosure of Invention
The embodiment of the invention provides a traffic scheduling method and traffic scheduling equipment, which aim to solve the technical problem of high load of a backbone network in the prior art.
In a first aspect, an embodiment of the present invention provides a traffic scheduling method, which is applied to a client, and the method includes:
sending a domain name resolution request to a scheduling system, so that the scheduling system determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, generates a domain name resolution result comprising the address of the target server, and controls the target server to execute flow area restriction rule setting operation; the target server and the client belong to the same region;
and acquiring a domain name resolution result sent by the scheduling system, and accessing the target server according to the domain name resolution result.
In one possible design, the scheduling system includes a first terminal and a second terminal;
the sending of the domain name resolution request to the scheduling system includes:
sending the domain name resolution request to the second terminal through the first terminal, so that the second terminal determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute flow area restriction rule setting operation, and sends the address of the target server to the first terminal;
the obtaining of the domain name resolution result sent by the scheduling system includes:
and acquiring a domain name resolution result sent by the first terminal, wherein the domain name resolution result is generated by the first terminal according to the address of the target server sent by the second terminal.
In one possible design, the sending the domain name resolution request to a scheduling system includes:
acquiring an address of a second terminal sent by the first terminal;
sending the domain name resolution request to the second terminal so that the second terminal determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute flow area restriction rule setting operation, and generates a domain name resolution result comprising the address of the target server;
the obtaining of the domain name resolution result sent by the scheduling system includes:
and acquiring a domain name resolution result sent by the second terminal.
In one possible design, the traffic region restriction rule indicates that the service is restricted from receiving access requests sent by clients within the local region.
In a second aspect, an embodiment of the present invention provides a traffic scheduling method, which is applied to a scheduling system, and the method includes:
receiving a domain name resolution request sent by a client;
determining the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, generating a domain name resolution result comprising the address of the target server, and controlling the target server to execute flow area restriction rule setting operation; the target server and the client belong to the same region;
and sending the domain name resolution result to the client so that the client accesses the target server according to the domain name resolution result.
In one possible design, the determining, according to a preset scheduling rule, an address of a target server corresponding to a domain name to be accessed in the domain name resolution request includes:
acquiring the region to which a client belongs and acquiring the delay limit time corresponding to the client;
acquiring the region to which the client belongs and the region to which each server corresponding to the domain name to be accessed belongs;
screening service terminals with the same regions as the client from the service terminals to obtain a first service terminal;
acquiring a load value of each first service end and a delay time range corresponding to the load value of the first service end;
and if the delay time limit belongs to the delay time range corresponding to the load value of the first service end, acquiring the address of the first service end, and determining the address as the address of the target service end.
In a third aspect, an embodiment of the present invention provides a traffic scheduling device, which is applied to a client, where the device includes:
the first transceiving module is used for sending a domain name resolution request to a scheduling system so that the scheduling system determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, generates a domain name resolution result comprising the address of the target server, and controls the target server to execute a flow area restriction rule setting operation; the target server and the client belong to the same region;
and the access module is used for acquiring the domain name resolution result sent by the scheduling system and accessing the target server according to the domain name resolution result.
In one possible design, the scheduling system includes a first terminal and a second terminal;
the first transceiver module is further configured to:
sending the domain name resolution request to the second terminal through the first terminal, so that the second terminal determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute flow area restriction rule setting operation, and sends the address of the target server to the first terminal;
the access module is further to:
and acquiring a domain name resolution result sent by the first terminal, wherein the domain name resolution result is generated by the first terminal according to the address of the target server sent by the second terminal.
In one possible design, the first transceiver module is further configured to:
acquiring an address of a second terminal sent by the first terminal;
sending the domain name resolution request to the second terminal so that the second terminal determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute flow area restriction rule setting operation, and generates a domain name resolution result comprising the address of the target server;
the access module is further to:
and acquiring a domain name resolution result sent by the second terminal.
In one possible design, the traffic region restriction rule indicates that the service is restricted from receiving access requests sent by clients within the local region.
In a fourth aspect, an embodiment of the present invention provides a traffic scheduling apparatus, which is applied to a scheduling system, and the apparatus includes:
the second transceiving module is used for receiving a domain name resolution request sent by the client;
the processing module is used for determining the address of a target server corresponding to the domain name to be accessed in the domain name resolution request according to a preset scheduling rule, generating a domain name resolution result comprising the address of the target server, and controlling the target server to execute flow area restriction rule setting operation; the target server and the client belong to the same region;
and the second transceiving module is used for sending the domain name resolution result to the client so that the client accesses the target server according to the domain name resolution result.
In one possible design, the processing module is further to:
acquiring the region to which a client belongs and acquiring the delay limit time corresponding to the client;
acquiring the region to which the client belongs and the region to which each server corresponding to the domain name to be accessed belongs;
screening service terminals with the same regions as the client from the service terminals to obtain a first service terminal;
acquiring a load value of each first service end and a delay time range corresponding to the load value of the first service end;
and if the delay time limit belongs to the delay time range corresponding to the load value of the first service end, acquiring the address of the first service end, and determining the address as the address of the target service end.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the traffic scheduling method as set forth in the first aspect above and in various possible designs of the first aspect.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the traffic scheduling method as set forth in the second aspect above and in various possible designs of the second aspect.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the traffic scheduling method according to the first aspect and various possible designs of the first aspect is implemented.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the traffic scheduling method according to the second aspect and various possible designs of the second aspect is implemented.
In a ninth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for scheduling traffic according to the first aspect and various possible designs of the first aspect are implemented.
In a tenth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for scheduling traffic according to the second aspect and various possible designs of the second aspect are implemented.
The invention provides a traffic scheduling method and equipment, which are used for scheduling traffic in a distributed cloud site when a user needs to access the distributed cloud site, namely the service end, sending a corresponding domain name resolution request to the dispatching system so that the dispatching system determines the address of a target service end to be accessed by the client based on the domain name resolution request, the target server and the client belong to the same region, so that the client accesses the target server according to the address of the target server, thereby realizing the same region access on the basis of realizing the normal access, and the dispatching system controls the target server to execute the flow region restriction rule setting operation so that the target server can only receive the access of the client terminal in the same region, the method can only change the flow of the local area, further ensure the access of the same area and avoid the problem of cross-area access, thereby effectively reducing the load of the backbone network and reducing the construction cost of the backbone network.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a traffic scheduling system according to an embodiment of the present invention;
fig. 2 is a first flowchart of a traffic scheduling method according to an embodiment of the present invention;
fig. 3 is a first scenario diagram of a traffic scheduling method according to an embodiment of the present invention;
fig. 4 is a second scenario diagram of a traffic scheduling method according to an embodiment of the present invention;
fig. 5 is a second flowchart illustrating a traffic scheduling method according to an embodiment of the present invention;
fig. 6 is a third schematic flowchart of a traffic scheduling method according to an embodiment of the present invention;
fig. 7 is a first schematic structural diagram of a traffic scheduling device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a traffic scheduling device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, as the scale of a distributed cloud is larger and larger, the number of distributed cloud sites is larger and larger, and different site traffic charges are different, so that cloud service users tend to the cheaper distributed cloud site traffic, and the traffic which can be digested in the same region needs to be digested across regions, thereby causing the problem of cross-region access, and reducing the utilization rate of a backbone network of a telecommunication operator.
Therefore, in view of the above problems, the technical idea of the present invention is to consider that the load of the backbone network is increased when performing cross-regional access, and therefore, when a client needs to access a distributed cloud site, the client is preferentially scheduled to the distributed cloud site in the region where the client is located to implement local-region access, and a flow control policy is set on the distributed cloud site in the region where the client is located, so that the distributed cloud site can only accept incoming flow of the same region, that is, only the client in the local region can access, thereby further ensuring local-region access of the client, that is, co-regional scheduling of flow, and effectively avoiding the problem of cross-regional access, thereby reducing the load of the backbone network and further reducing the construction cost of the backbone network.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in detail by specific examples. Several of these specific examples may be combined with each other below, and some of the same or similar concepts or processes may not be repeated in some examples. Examples of the present disclosure will now be described with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a traffic scheduling system according to an embodiment of the present invention, and as shown in fig. 1, the traffic scheduling system includes a client 101, a scheduling system 102, and a server 103 in different regions, that is, a region 1 and a region 2. The client 101 sends a domain name resolution request to the scheduling system 102, the scheduling system 102 determines that a server to be accessed by the client is a server 1 in a region 1, generates a domain name resolution result based on an address of the server 1, and sends the domain name resolution result to the client 101, and the client 101 extracts the address of the server 1 from the domain name resolution result and sends the access request to the server 1 based on the address of the server 1.
The client may be a mobile terminal (e.g., a mobile phone, a tablet computer, etc.), a computer, or other terminal device.
The server is a server, a computer and other devices, and specifically, the server can be a distributed cloud site. The number of the servers in different regions, i.e. region 1 and region 2, can be set according to the actual situation, and the application does not limit the number.
Fig. 2 is a first schematic flow chart of a traffic scheduling method according to an embodiment of the present invention, where an execution main body of the embodiment may be a client. As shown in fig. 2, the method includes:
s201, sending a domain name resolution request to a scheduling system, so that the scheduling system determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, generates a domain name resolution result comprising the address of the target server, and controls the target server to execute a flow area restriction rule setting operation. The target server and the client belong to the same region.
In this embodiment, in the process of using the relevant application program by the user, the client where the application program is located needs to access the server, that is, a certain distributed cloud site, to perform some operations (for example, to obtain the relevant resources). When a client accesses a server, a domain name of the server to be accessed, namely a domain name to be accessed, is acquired, and a domain name resolution request including the domain name to be accessed is generated based on a preset domain name resolution format. And after the domain name resolution request is generated, sending the resolution request to a scheduling system.
After receiving the domain name resolution request, the scheduling system acquires a domain name to be accessed in the domain name resolution request, namely the domain name of the server, searches for the server with the domain name of the domain name to be accessed, searches for the server with the region of the client from the server with the domain name of the domain name to be accessed, and determines the server as a target server, wherein the region of the target server is the same as the region of the client. The method comprises the steps of obtaining an address of a target server, generating a domain name resolution result comprising the address of the target server based on a preset resolution result format, and sending the domain name resolution result to a client so that the client can access a corresponding server by using the domain name resolution result, namely, the target server.
In order to more accurately avoid cross-region access, the scheduling system sets a traffic region limitation rule at the target server, namely controls the target server to execute traffic region limitation rule setting operation, so that the target server only receives access of clients in the same region.
Optionally, when the scheduling system controls the target server to execute the traffic region restriction rule setting operation, the scheduling system may generate a traffic region restriction rule setting request including a region to which the client belongs, that is, a region to which the target server belongs, and send the traffic region restriction rule setting request to the target server, and after receiving the setting request, the target server performs the traffic region restriction rule setting operation, that is, sets the traffic region restriction rule, so as to receive only an access request sent by the client in the region to which the target server belongs, that is, only the client in the region to which the target server belongs may access the target server.
Optionally, the traffic region restriction rule indicates that the service end is restricted from receiving an access request sent by a client in the local region, that is, when the client and the service end belong to the same region, the client can access the service end, that is, the service end only receives the incoming traffic of the region where the source address is the service end.
In addition, optionally, the domain name resolution request further includes a source address and an address of the client. When the area to which the client belongs is determined, the area to which the client belongs is determined through the address of the client, namely the area corresponding to the address of the client is searched and determined as the area to which the client belongs.
In addition, each server, namely, the region to which the distributed cloud site belongs, is pre-stored to a designated position, so that when a target server corresponding to the client is searched, the region to which each server belongs can be obtained from the designated position. And when the region to which the server belongs is the same as the region to which the client belongs, taking the server as a target server.
The address is a network address, such as an Internet Protocol (IP) address.
S202, obtaining a domain name resolution result sent by the scheduling system, and accessing a target server according to the domain name resolution result.
In this embodiment, the client receives the domain name resolution result sent by the scheduling system, and extracts the address of the target server from the domain name resolution result, so as to access the target server by using the address of the target server, that is, generate a corresponding access request to the target server, and implement local access, that is, implement local traffic digestion.
In this embodiment, the scheduling system may correspond to a terminal, and the terminal performs all operations required to be performed by the scheduling system. Optionally, in order to improve the operation efficiency of the scheduling system, the scheduling system may have a plurality of terminals, that is, the scheduling system includes a first terminal and a second terminal, and the first terminal and the second terminal cooperate with each other, so as to improve the overall operation efficiency of the scheduling system.
Specifically, taking live broadcast software as an example, a server, that is, a distributed cloud site is a server corresponding to the live broadcast software and is deployed in a plurality of regions, a scheduling system is a CDN (Content Delivery Network) system and is deployed in a certain region, and a client is a live broadcast software client on a mobile terminal used by a user, that is, a client where the live broadcast software is located, and is distributed in each region. The live broadcast software client accesses the server corresponding to the live broadcast software, the CDN system scheduling is needed to schedule an access target to one of the live broadcast software servers, for example, the server located in the region 1, and finally the live broadcast software client on the mobile terminal directly accesses the server deployed in the region 1.
Further, when the scheduling system includes the first terminal and the second terminal, the traffic scheduling process may be performed in the following two ways.
One way is that a domain name resolution request is sent to a second terminal through a first terminal, so that the second terminal determines an address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute a traffic area restriction rule setting operation, and sends the address of the target server to the first terminal. And acquiring a domain name resolution result sent by the first terminal, wherein the domain name resolution result is generated by the first terminal according to the address of the target server sent by the second terminal.
Specifically, as shown in fig. 3, the client communicates with the second terminal through the first terminal, and the specific process includes: firstly, a client sends a domain name resolution request to a first terminal. And the first terminal sends the domain name resolution request to the second terminal. And thirdly, the second terminal determines a server belonging to the same region as the client based on the domain name resolution request so as to obtain a target server, and sets a flow control strategy at the target server, namely controls the target server to execute flow region restriction rule setting operation. And fourthly, sending the address of the target server to the first terminal. And the first terminal generates a domain name resolution result comprising the address of the target server and sends the domain name resolution result to the client. The client accesses the target server, namely the server in the region 1, according to the address of the target server.
Another way is to obtain the address of the second terminal sent by the first terminal. And sending the domain name resolution request to a second terminal so that the second terminal determines the address of a target server corresponding to the domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute flow area restriction rule setting operation and generates a domain name resolution result comprising the address of the target server. And acquiring a domain name resolution result sent by the second terminal.
Specifically, as shown in fig. 4, the client requests domain name resolution from the first terminal. And the first terminal sends the address of the second terminal to the client. And the client side sends the domain name including the service side needing to be accessed to the second terminal. And fourthly, the second terminal determines a server belonging to the same region as the client based on the domain name resolution request to obtain a target server, and sets a flow control strategy at the target server, namely controls the target server to execute flow region restriction rule setting operation. And the second terminal generates a domain name resolution result comprising the address of the target server and sends the domain name resolution result to the client. The client accesses the target server, namely the server in the region 1, according to the address of the target server.
Optionally, when the control target server executes the traffic region restriction rule setting operation, a dynamic traffic control policy may be implemented by using the security group API of the target server, and even if the target server only receives an incoming traffic whose source IP address is in the same region, all outgoing traffic is released, so that the traffic is digested in the distributed cloud sites in the same region as much as possible.
In addition, optionally, flow control on the distributed cloud site may also be implemented by using a firewall function on the cloud.
Optionally, the second terminal provides the scheduling service by means of 302 hopping.
In this embodiment, a local server accessible to a client is determined for an address of the client, that is, a local server into which traffic corresponding to the client needs to enter is determined, so that incoming traffic is preferentially scheduled to a local server in the same region, and cross-region access is avoided, so that the utilization rate of a backbone network is higher, and the use cost of a cloud service user is reduced.
In this embodiment, a distributed bandwidth function is provided in the distributed cloud, which bundles bandwidths of multiple distributed cloud sites into a virtual bandwidth to be provided to the outside and automatically completes scheduling logic of traffic local domain digestion. The traffic is digested in a local domain as much as possible through a security group function and a scheduling system of a distributed cloud site, namely a server side, and the utilization rate of a backbone network is improved.
In this embodiment, when a distributed cloud site, that is, a server needs to be accessed, a corresponding domain name resolution request is sent to a scheduling system, so that the scheduling system determines an address of a target server that a client needs to access based on the domain name resolution request, the target server and the client belong to the same region, so that the client accesses the target server according to the address of the target server, thereby achieving the access in the same region on the basis of achieving normal access, and the scheduling system controls the target server to execute a traffic region restriction rule setting operation, so that the target server can only receive the access of the client in the same region, that is, only the traffic in the same region can be reduced, thereby further ensuring the access in the same region, avoiding the problem of cross-region access, and thus effectively reducing the load of a backbone network and reducing the construction cost of the backbone network.
Fig. 5 is a second flowchart of the traffic scheduling method according to the embodiment of the present invention, where an execution subject of this embodiment may be a scheduling system, specifically, a terminal corresponding to the scheduling system. As shown in fig. 5, the method includes:
s501, receiving a domain name resolution request sent by a client.
S502, determining the address of a target server corresponding to the domain name to be accessed in the domain name resolution request according to a preset scheduling rule, generating a domain name resolution result comprising the address of the target server, and controlling the target server to execute a flow area restriction rule setting operation. The target server and the client belong to the same region.
And S503, sending the domain name resolution result to the client so that the client accesses the target server according to the domain name resolution result.
In this embodiment, when the scheduling system receives a domain name resolution request sent by a client, it indicates that the client needs to access a distributed cloud site corresponding to a domain name to be accessed in the domain name resolution request, that is, a server, and then determines a distributed cloud site in a region to which the client belongs from the distributed cloud site to obtain a target site, that is, a target server. The method comprises the steps of obtaining an address of a target server, generating a domain name resolution result containing the address of the target server, and sending the domain name resolution result to a client, so that the client can access the target server according to the address of the target server in the domain name resolution result, and the same-region access is realized.
In this embodiment, when the scheduling system determines the target server, a flow control policy, that is, a flow area restriction rule, may be set at the target server, so that only the client in the area to which the target server belongs may access the target server, thereby effectively avoiding cross-area access.
Fig. 6 is a third schematic flowchart of a component processing method according to an embodiment of the present invention, and in this embodiment, on the basis of the embodiment of fig. 5, when a target server is determined, the determination may be performed according to a region to which a client belongs and a delay requirement, and this process will be described below with reference to a specific embodiment. As shown in fig. 6, the method includes:
s601, receiving a domain name resolution request sent by a client.
S602, obtaining the region of the client and obtaining the delay limit time corresponding to the client.
In this embodiment, after receiving a domain name resolution request sent by a client, a region where the client is located is searched according to an address of the client, that is, a region to which the client belongs is obtained, and a delay requirement, that is, a delay limit time, corresponding to the client is obtained.
The delay limit time corresponding to the client represents the requirement of the client for the delay, namely the maximum delay time acceptable to the client. The delay limit time corresponding to the client may be obtained from the domain name resolution request, that is, the domain name resolution request includes the delay limit time corresponding to the client. Or, the determination may be performed according to the domain name to be accessed in the domain name resolution request, that is, the delay time corresponding to the domain name to be accessed is searched, and the determination is determined as the delay limit time corresponding to the client.
S603, obtaining the region to which the client belongs and the region to which each server corresponding to the domain name to be accessed belongs.
In this embodiment, a region corresponding to the address of the client is searched and determined as the region to which the client belongs. And searching the region to which the server corresponding to the domain name to be accessed belongs from the domain name region mapping table, so as to obtain the region to which the server corresponding to the client belongs.
S604, screening the service sides with the same region as the region to which the client belongs from the service sides to obtain a first service side.
In this embodiment, after the region of the server corresponding to the domain name to be accessed is obtained, after each server corresponding to the domain name to be accessed is determined, for each server, whether the region to which the server belongs is the same as the region to which the client belongs is determined, and if so, the server is determined to be the first server.
S605, obtaining the load value of each first service end and the delay time range corresponding to the load value of the first service end.
In this embodiment, since there may be multiple sites, that is, multiple first service ends, in the same geographical situation, when the number of the first service ends is multiple, and a target service end needs to be determined from the first service ends, the current load value of each first service end is obtained, so as to obtain the load value of the first service end. For each first service end, searching a load range where a load value of the first service end is located from a preset load delay mapping table, and taking a delay time range corresponding to the load range as a delay time range corresponding to the load value of the first service end, namely the delay time range corresponding to the first service end.
The preset load delay mapping table comprises at least one load range and a delay time range corresponding to each load range.
The current load value of the server may be represented by the total number of clients currently accessing the server, or may be represented by other types of data (for example, CPU utilization, memory utilization, and the like), which is not limited herein.
In addition, when the number of the first service end is one, the first service end may be used as a target service end.
In addition, when the target server is determined from the first servers, other rules such as packet loss rate, delay jitter, retransmission rate, and the like may also be used for determining, for example, the determination is performed based on the packet loss rate corresponding to each first server.
S606, if the delay limiting time belongs to the delay time range corresponding to the load value of the first service end, the address of the first service end is obtained and determined as the address of the target service end.
In this embodiment, for each first service, when the delay time limit corresponding to the client is within the delay time range corresponding to the first service, that is, the delay time range corresponding to the load value of the first service, it is determined that the first service is the second service.
And when the number of the second service terminals is one, directly taking the second service terminals as target service terminals.
And when the number of the second service ends is one, determining a target service end from the second service ends, namely selecting one second service end from the second service ends, and taking the selected second service end as the target service end.
Further, when the target server is determined from the second servers, one second server may be arbitrarily selected and determined as the target server, or the second server with the smallest load value may be used as the target server.
S607, generating a domain name resolution result including the address of the target server, and controlling the target server to execute the traffic region restriction rule setting operation.
And S608, sending the domain name resolution result to the client so that the client accesses the target server according to the domain name resolution result.
In this embodiment, when a target server accessed by a client is determined, a server in a region to which the client belongs is screened out, and a first server is determined, and when a delay time limit corresponding to the client is within a delay time range corresponding to the first server, it is indicated that the first server can meet a response requirement of the client, so that the first server can be used as the target server, and the response requirement of the client is met on the basis of avoiding cross-region access.
In this embodiment, when the target server is determined, the determination is performed according to the delay requirement and the load value of the server, that is, when a plurality of distributed cloud sites exist in the same region, the server with the minimum load pressure is determined based on the requirement of the client and the load request of the distributed cloud sites, and the target server accessible to the client is determined, so that the delay is reduced, and the throughput of the distributed cloud sites is improved.
Fig. 7 is a schematic structural diagram of a first traffic scheduling device according to an embodiment of the present invention, which is applied to a client, and as shown in fig. 7, the traffic scheduling device 700 includes: a first transceiver module 701 and an access module 702.
The first transceiver module 701 is configured to send a domain name resolution request to a scheduling system, so that the scheduling system determines, according to a preset scheduling rule, an address of a target server corresponding to a domain name to be accessed in the domain name resolution request, generates a domain name resolution result including the address of the target server, and controls the target server to perform a traffic area restriction rule setting operation. The target server and the client belong to the same region.
And the access module 702 is configured to obtain a domain name resolution result sent by the scheduling system, and access the target server according to the domain name resolution result.
In one possible design, a scheduling system includes a first terminal and a second terminal.
The first transceiver module 701 is further configured to:
sending a domain name resolution request to a second terminal through the first terminal, so that the second terminal determines the address of a target server corresponding to a domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute a flow area restriction rule setting operation, and sends the address of the target server to the first terminal.
The access module 702 is further configured to:
and acquiring a domain name resolution result sent by the first terminal, wherein the domain name resolution result is generated by the first terminal according to the address of the target server sent by the second terminal.
In one possible design, the first transceiver module 701 is further configured to:
and acquiring the address of the second terminal sent by the first terminal.
And sending the domain name resolution request to a second terminal so that the second terminal determines the address of a target server corresponding to the domain name to be accessed in the domain name resolution request according to a preset scheduling rule, controls the target server to execute flow area restriction rule setting operation and generates a domain name resolution result comprising the address of the target server.
The access module 702 is further configured to:
and acquiring a domain name resolution result sent by the second terminal.
In one possible design, the traffic region restriction rule indicates that the service is restricted from receiving access requests sent by clients within the local region.
Fig. 8 is a schematic structural diagram of a traffic scheduling device provided in an embodiment of the present invention, which is applied to a scheduling system, and as shown in fig. 8, the traffic scheduling device 800 includes: a second transceiver module 801 and a processing module 802.
The second transceiver module 801 is configured to receive a domain name resolution request sent by a client.
The processing module 802 is configured to determine, according to a preset scheduling rule, an address of a target server corresponding to a domain name to be accessed in the domain name resolution request, generate a domain name resolution result including the address of the target server, and control the target server to perform a traffic area restriction rule setting operation. The target server and the client belong to the same region.
The second transceiving module 801 is configured to send the domain name resolution result to the client, so that the client accesses the target server according to the domain name resolution result.
In one possible design, processing module 802 is further configured to:
and acquiring the region to which the client belongs and acquiring the delay limit time corresponding to the client.
And acquiring the region to which the client belongs and the region to which each server corresponding to the domain name to be accessed belongs.
And screening the service end with the same region as the region to which the client belongs from the service ends to obtain a first service end.
And acquiring the load value of each first service end and the delay time range corresponding to the load value of the first service end.
And if the delay limiting time belongs to the delay time range corresponding to the load value of the first service end, acquiring the address of the first service end and determining the address as the address of the target service end.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 9, the electronic apparatus 900 of the present embodiment includes: a processor 901 and a memory 902;
a memory 902 for storing computer-executable instructions;
the processor 901 is configured to execute computer-executable instructions stored in the memory to implement the steps performed by the receiving device in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 902 may be separate or integrated with the processor 901.
When the memory 902 is provided separately, the electronic device further comprises a bus 903 for connecting the memory 902 and the processor 901.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the method for scheduling traffic is implemented as described above.
An embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for scheduling traffic as described above is implemented.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110639333.9A CN113364873A (en) | 2021-06-08 | 2021-06-08 | Traffic scheduling method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110639333.9A CN113364873A (en) | 2021-06-08 | 2021-06-08 | Traffic scheduling method and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113364873A true CN113364873A (en) | 2021-09-07 |
Family
ID=77533125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110639333.9A Pending CN113364873A (en) | 2021-06-08 | 2021-06-08 | Traffic scheduling method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113364873A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116647523A (en) * | 2022-09-08 | 2023-08-25 | 天翼数字生活科技有限公司 | A method and system for unitized scheduling and access of equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101014045A (en) * | 2007-02-02 | 2007-08-08 | 清华大学 | Distributed method of service management in service loading network |
CN101287011A (en) * | 2008-05-26 | 2008-10-15 | 蓝汛网络科技(北京)有限公司 | Method, system and device for responding service request from user in content distributing network |
CN102045411A (en) * | 2009-10-13 | 2011-05-04 | 中国移动通信集团公司 | Method, server and system for domain name resolution |
CN102148752A (en) * | 2010-12-22 | 2011-08-10 | 华为技术有限公司 | Routing implementing method based on content distribution network and related equipment and system |
US20130227153A1 (en) * | 2012-02-28 | 2013-08-29 | Martin Zurmuehl | Computer-implemented method, computer system and computer readable medium |
CN103581299A (en) * | 2013-10-08 | 2014-02-12 | 华为软件技术有限公司 | Service dispatching method, device and system |
CN106375492A (en) * | 2016-08-31 | 2017-02-01 | 贵州白山云科技有限公司 | A CDN service processing method, related equipment and communication system |
CN107786678A (en) * | 2016-08-24 | 2018-03-09 | 北京金山云网络技术有限公司 | Domain name analytic method, apparatus and system |
CN109040343A (en) * | 2018-09-11 | 2018-12-18 | 达闼科技(北京)有限公司 | Domain name analytic method, device, computer readable storage medium and electronic equipment |
CN111314472A (en) * | 2020-02-21 | 2020-06-19 | 聚好看科技股份有限公司 | Domain name resolution method, domain name resolution server and terminal equipment |
CN112422701A (en) * | 2019-08-20 | 2021-02-26 | 华为技术有限公司 | Domain name system query method and communication device |
-
2021
- 2021-06-08 CN CN202110639333.9A patent/CN113364873A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101014045A (en) * | 2007-02-02 | 2007-08-08 | 清华大学 | Distributed method of service management in service loading network |
CN101287011A (en) * | 2008-05-26 | 2008-10-15 | 蓝汛网络科技(北京)有限公司 | Method, system and device for responding service request from user in content distributing network |
CN102045411A (en) * | 2009-10-13 | 2011-05-04 | 中国移动通信集团公司 | Method, server and system for domain name resolution |
CN102148752A (en) * | 2010-12-22 | 2011-08-10 | 华为技术有限公司 | Routing implementing method based on content distribution network and related equipment and system |
US20130227153A1 (en) * | 2012-02-28 | 2013-08-29 | Martin Zurmuehl | Computer-implemented method, computer system and computer readable medium |
CN103581299A (en) * | 2013-10-08 | 2014-02-12 | 华为软件技术有限公司 | Service dispatching method, device and system |
CN107786678A (en) * | 2016-08-24 | 2018-03-09 | 北京金山云网络技术有限公司 | Domain name analytic method, apparatus and system |
CN106375492A (en) * | 2016-08-31 | 2017-02-01 | 贵州白山云科技有限公司 | A CDN service processing method, related equipment and communication system |
CN109040343A (en) * | 2018-09-11 | 2018-12-18 | 达闼科技(北京)有限公司 | Domain name analytic method, device, computer readable storage medium and electronic equipment |
CN112422701A (en) * | 2019-08-20 | 2021-02-26 | 华为技术有限公司 | Domain name system query method and communication device |
CN111314472A (en) * | 2020-02-21 | 2020-06-19 | 聚好看科技股份有限公司 | Domain name resolution method, domain name resolution server and terminal equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116647523A (en) * | 2022-09-08 | 2023-08-25 | 天翼数字生活科技有限公司 | A method and system for unitized scheduling and access of equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11539626B2 (en) | Method, apparatus, and system for load balancing of service chain | |
CN111460460B (en) | Task access method, device, proxy server and machine-readable storage medium | |
CN110830564B (en) | CDN scheduling method, device, system and computer readable storage medium | |
EP3745678B1 (en) | Storage system, and method and apparatus for allocating storage resources | |
CN110225146B (en) | Intranet and extranet mapping method and device, electronic equipment, medium and video conference system | |
CN111585887B (en) | Communication method and device based on multiple networks, electronic equipment and storage medium | |
CN114025021B (en) | Communication method, system, medium and electronic equipment crossing Kubernetes cluster | |
EP4443919A1 (en) | Method and system for performing charging processing on network slice customer, and related device | |
CN111212134A (en) | Request message processing method and device, edge computing system and electronic equipment | |
CN112825527A (en) | Service node distribution method and device based on MEC and related server | |
CN110519183A (en) | A method, device, electronic device and storage medium for node speed limiting | |
US20210084100A1 (en) | Packet Processing Method, Related Device, and Computer Storage Medium | |
CN110995890B (en) | Domain name request scheduling method and device | |
CN113364873A (en) | Traffic scheduling method and equipment | |
CN102857547A (en) | Distributed caching method and device | |
CN115766336A (en) | Resource allocation method, device, equipment and storage medium | |
WO2023050933A1 (en) | Method and apparatus for determining lost host | |
JP6888478B2 (en) | Sorting system | |
CN115914236B (en) | Storage space allocation adjustment method and device, electronic equipment and storage medium | |
CN116233655A (en) | Service processing method, device and storage medium | |
CN110365742B (en) | Multi-active load balancing application creation method and device, computer equipment and storage medium | |
CN114079586B (en) | Access control method and device | |
CN115801808A (en) | Mirror image flow control method and device, electronic equipment and readable storage medium | |
CN113904871A (en) | Network slice access method, PCF entity, terminal and communication system | |
US9544202B2 (en) | Dynamic assignment and enforcement of application-driven per-connection service level agreements |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210907 |
|
RJ01 | Rejection of invention patent application after publication |