CN114039906B - Flow guiding method, electronic device and readable storage medium - Google Patents

Flow guiding method, electronic device and readable storage medium Download PDF

Info

Publication number
CN114039906B
CN114039906B CN202111138879.2A CN202111138879A CN114039906B CN 114039906 B CN114039906 B CN 114039906B CN 202111138879 A CN202111138879 A CN 202111138879A CN 114039906 B CN114039906 B CN 114039906B
Authority
CN
China
Prior art keywords
domain name
name record
record file
application
traffic
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.)
Active
Application number
CN202111138879.2A
Other languages
Chinese (zh)
Other versions
CN114039906A (en
Inventor
蔡继洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN202111138879.2A priority Critical patent/CN114039906B/en
Publication of CN114039906A publication Critical patent/CN114039906A/en
Application granted granted Critical
Publication of CN114039906B publication Critical patent/CN114039906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • H04L45/3065Route determination based on the nature of the carried application for real time traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing

Landscapes

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

Abstract

The application discloses a flow guiding method, electronic equipment and a readable storage medium, wherein domain name record files of all applications are stored in CPE equipment in advance, when the CPE equipment receives new flow from first terminal equipment, a target application to which the flow belongs is determined according to at least one domain name record file, and a line label of the target application is added to the flow and is sent to a POP node. And after the POP node receives the traffic added with the line label, determining a target transmission route according to the line label and guiding the traffic. In the process, the flow is guided based on the domain name record file of the application, the domain name is not required to be resolved to obtain the IP address, the flow is not required to be guided based on the IP address, and the routing strategy is not required to be adjusted according to the IP address of the server, so that the flow is guided based on the method provided by the embodiment of the application, the accuracy is high, and the management of the routing information is facilitated.

Description

Flow guiding method, electronic device and readable storage medium
Technical Field
The present application relates to the field of network communications technologies, and in particular, to a traffic guidance method, an electronic device, and a readable storage medium.
Background
With the rapid development of internet technology, various applications such as social applications, office applications, game applications, etc. are emerging. The user generates traffic during the use of various applications on the terminal device, which is directed to the server via different transmission lines.
In general, the sensitivity of different applications to network quality is different, for example, the game application has high requirement on network quality, and the flow of the game application needs to be guided through a transmission line with good quality. In the conventional process of guiding traffic based on IP addresses, a corresponding routing policy is issued according to the IP addresses, for example, which IP addresses are preset to guide traffic through a high-quality transmission line, and which IP addresses are preset to guide traffic through a low-quality transmission line. After receiving the traffic, the traffic guiding device can directly extract the corresponding IP address or re-analyze the domain name carried in the traffic to obtain the IP address, and then determine the transmission line according to the preset routing strategy.
However, in practice, the skilled person finds that, as the IP addresses of some servers change, the existing routing policies cannot meet the requirements, and that different domain names resolve to the same IP address. In this case, if the routing policy is not adjusted timely, it may result in that a proper transmission line cannot be selected for the traffic, thereby reducing the service quality of the service and even causing a network security problem.
Disclosure of Invention
The application provides a flow guiding method, electronic equipment and a readable storage medium, which are used for guiding flow based on an applied PAC file, and have high accuracy and high speed.
In a first aspect, an embodiment of the present application provides a flow guiding method, including:
receiving traffic from a first terminal device;
determining a target application to which the flow belongs according to at least one domain name record file, wherein different domain name record files in the at least one domain name record file correspond to different applications, and the domain name record file is used for recording domain names of the corresponding applications;
adding a line tag to the traffic, wherein the line tag is used for indicating a transmission line of the traffic in an acceleration network;
and sending the traffic added with the line label to a POP node, wherein the POP node is positioned in the acceleration network.
In a second aspect, an embodiment of the present application provides a flow guiding method, including:
acquiring domain name record files of each application to obtain at least one domain name record file;
setting a line label and routing information for each application in the applications, and setting priority information for each domain name record file in the at least one domain name record file;
Transmitting the at least one domain name record file, and line labels and priority information corresponding to each domain name record file in the at least one domain name record file to CPE equipment;
and sending the routing information to a POP node related to the routing information in the acceleration network, so that the POP node selects a transmission line for the received traffic based on the routing information.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, which processor, when executing the computer program, causes the electronic device to carry out the method as described above in the first aspect or in the various possible implementations of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a computer program stored on the memory and executable on the processor, when executing the computer program, causing the electronic device to implement the method as described above in the second aspect or the various possible implementations of the second aspect.
In a fifth aspect, embodiments of the present application provide a computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the method according to the first aspect or the various possible implementations of the first aspect.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the method according to the above second aspect or the various possible implementations of the second aspect.
In a seventh aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the method as described above in the first aspect or in the various possible implementations of the first aspect.
In an eighth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements the method according to the above second aspect or the various possible implementations of the second aspect.
According to the traffic guiding method, the electronic device and the readable storage medium provided by the embodiment of the application, domain name record files of all applications are stored in the CPE device in advance, when the CPE device receives new traffic from the first terminal device, a target application to which the traffic belongs is determined according to at least one domain name record file, and a line label of the target application is added to the traffic and is sent to the POP node. And after the POP node receives the traffic added with the line label, determining a target transmission route according to the line label and guiding the traffic. In the process, the flow is guided based on the domain name record file of the application, the domain name is not required to be resolved to obtain the IP address, the flow is not required to be guided based on the IP address, and the routing strategy is not required to be adjusted according to the IP address of the server, so that the flow is guided based on the method provided by the embodiment of the application, the accuracy is high, and the management of the routing information is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment of a flow guiding method according to an embodiment of the present application;
FIG. 2 is a flow chart of a flow guiding method provided by an embodiment of the present application;
FIG. 3 is a flowchart of determining a target application in a flow guiding method according to an embodiment of the present application;
FIG. 4 is a flow chart of a flow directing method provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
A software defined wide area network (Software Defined Wide Area Network, SD-WAN) is a service formed by applying software defined network (Software Defined Network, SDN) technology to a wide area network scenario, where the service is used to connect to enterprise networks, data centers, internet applications, and cloud services over a wide geographic range, through which users can obtain better network usage experience. The SD-WAN network environment includes customer peripheral devices (Customer Periphery Equipment, CPE) and access points (Point of Presence, POP), and the network service provider can implement the introduction of user traffic in the customer network into the SD-WAN network by deploying CPE devices in the customer local area network, and provide network services such as acceleration, security, etc. to the user traffic based on a security acceleration network constructed by the POP node, where the network constructed by the POP node may be referred to as an acceleration network.
Based on customer needs, the SD-WAN network needs to provide customized services for different SaaS (Software as a Service, service software) applications. For example, according to the requirements of the clients, the traffic accessing the part of the SaaS application is transmitted through a high-quality transmission line, and the traffic accessing the other SaaS application is transmitted through a normal-quality transmission line. Based on this, it is necessary to select an appropriate transmission line in advance for each application, identify the flow, and guide the flow onto the appropriate transmission line. It can be appreciated that in an actual application scenario, the evaluation of the quality of the transmission line can be determined not only according to the time delay, but also according to the actual requirement by combining the factors of line cost, bandwidth and the like.
Based on this, the embodiment of the application provides a flow guiding method, an electronic device and a readable storage medium, which can transmit the user flow accessing each application through a proper transmission line according to the client requirement, and can not cause the problem that the user access is negatively affected due to improper line selection caused by the change of an application server IP or a user IP, thereby not only improving the accuracy of line selection, but also being easy to maintain.
Fig. 1 is a schematic diagram of an implementation environment of a flow guiding method according to an embodiment of the present application. Referring to fig. 1, the implementation environment includes a first terminal device 11, a CPE device 12, a POP node 13, a control center 14, a server 15, and a second terminal device 16. When the implementation environment is an SD-WAN, the SD-WAN is based on POP networking mode, and POP nodes 13 are not based on internet networking, but are interconnected using a virtual private network (Virtual Private Network, VPN) or other private line.
The first terminal device 11 is a user device, and is deployed in a client lan, and may be hardware or software. When the first terminal device 11 is hardware, the first terminal device 11 is, for example, a mobile phone, a tablet computer, a personal computer, an electronic book reader, a laptop, a desktop computer, or the like, in which an android operating system, a microsoft operating system, a saint operating system, a Linux operating system, or an apple iOS operating system is installed. When the first terminal device 11 is software, it may be installed in the above-listed hardware device, and in this case, the first terminal device 11 is, for example, a plurality of software modules or a single software module, etc., the embodiment of the present application is not limited.
The user may access application services, such as a communication-in-time application, an office application, etc., via the first terminal device 11. In the access process, the user traffic is sent out through the first terminal device 11, received by the CPE device 12 deployed at the network outlet of the local area network, the CPE device 12 identifies the target application accessed by the user traffic, marks the line label on the target application, and sends the target application to the POP node 13, the POP node 13 selects a suitable transmission line for the user traffic according to the line label in the user traffic, and guides the traffic to the server 15 of the target application through the selected transmission line.
CPE device 12 may be a device independent of, or integrated with, a router, switch, or the like.
POP node 13 is also referred to as a network service provider point, accelerator node, etc. POP nodes 13 form a service network that may be constructed based on SD-WAN technology, including a variety of transmission lines of different quality.
Control center 14 is, for example, a control center of an SD-WAN network, and is used to control CPE device 12 and POP node 13. For example, the control center 14 transmits the domain name record file and the priority of the domain name record file of each application to the CPE device 12. Thereafter, the control center 14 also instructs the CPE device 12 to add, modify, or delete domain name record files, or adjust the priority of each domain name record file, etc. In addition, the control center 14 also selects a transmission line for each application according to the client requirement, for example, selects a high-quality transmission line for an instant messaging application, selects a normal-quality transmission line for an office application, and the like, and generates route information according to the line label of the selected transmission line and the transmission line and sends the route information to the POP node 13.
The server 15 is the source server of the application, also called source station. There is at least one server 15, and each SaaS application has its own server 15.
The second terminal device 16 is a device running with an SD-WAN network client platform, and the client can upload configuration information such as a domain name record file of each application or a domain name of the application, a priority of a transmission line of each application, and the like to the control center 14 through the client platform.
The flow guiding method according to the embodiment of the present application will be described in detail below based on the architecture shown in fig. 1. For example, please refer to fig. 2. Fig. 2 is a flowchart of a flow guiding method according to an embodiment of the present application. The present embodiment is described in terms of CPE device and POP node interaction. The method of the embodiment comprises the following steps:
201. the CPE device receives traffic from a first end device.
In one implementation, the first terminal device and the CPE device are deployed within the same customer local area network, and the user accesses various applications through the first terminal device to generate traffic to be sent to the CPE device via the first terminal device. Accordingly, the CPE device receives the traffic. For example, the user generates a traffic using an instant messaging application, and the first terminal device sends the traffic to the CPE device. For another example, the user generates another traffic using the office-like application at the first terminal device, which the first terminal device sends to the CPE device. For another example, a user generates a plurality of sessions in the process of using the instant messaging application on the first terminal device, different sessions generate different flows, and the first terminal device sends the flows to the CPE device.
202. And the CPE equipment determines the target application to which the flow belongs according to at least one domain name record file, wherein the at least one domain name record file corresponds to each application.
Illustratively, the control center generates a domain name record file for each application in advance. The CPE equipment acquires domain name record files of each application from the control center in advance and stores the domain name record files in the local, wherein each domain name record file contains all or part of domain names of the corresponding application. After receiving the traffic from the first terminal device, the CPE device parses the request domain name from the traffic, and determines the target application to which the traffic belongs, that is, which application the user is using, by comparing the request domain name with the domain name included in the domain name record file.
203. The CPE equipment adds a line label for the traffic, wherein the line label is used for indicating a transmission line of the traffic.
Illustratively, the control center pre-generates a line label for each application and issues it to the CPE device. For example, for instant messaging applications, the line tag is used to instruct traffic of the instant messaging application to travel a high quality transmission line. After determining that the traffic belongs to the traffic of the instant messaging application, the CPE equipment marks the traffic with a label guided by a high-quality transmission route.
For another example, for instant messaging applications, a line tag is used to indicate a particular transmission line, such as transmission line 1. After determining that the traffic belongs to the traffic of the instant messaging application, the CPE device marks the traffic with a line tag for indicating the transmission line 1.
In an implementation, the CPE device may add the line tag to the network layer packet of the traffic, so that after the POP node receives the traffic, the POP node may directly obtain the line tag from the network layer packet to determine the transmission line, without further parsing the upper layer packet, thereby improving the traffic forwarding speed.
204. The CPE device sends the traffic with the added line label to the POP node.
Accordingly, the POP node receives traffic from the CPE device with the line label added.
In the embodiment of the application, in the process that the traffic arrives at the server from the CPE equipment, two routes are needed to pass, one route is from the CPE equipment to the POP node, and the other route is from the POP node to the server. The route from the POP node to the server is controlled by the route information issued by the control center. For example, corresponding to a certain application, the control center generates route information according to the line label and the transmission line of the application and issues the route information to the POP node. After the POP node receives the flow of the CPE equipment, which is added with the line label, the transmission line from the POP node to the server can be determined by inquiring the routing table and the like according to the line label.
The route from the CPE device to the POP node is determined by the CPE device. Illustratively, when the CPE device sends the line-tagged traffic to the POP node, if the CPE node is able to access the acceleration network through only one POP node, the CPE device sends the line-tagged traffic to the POP node.
Alternatively, the control center presets which POP nodes are used to receive traffic sensitive to network quality and which POP nodes are used to receive traffic insensitive to network quality. After the CPE device receives the traffic from the terminal device, if the traffic is tagged with a high quality line, the CPE node sends the traffic to the POP node for receiving traffic sensitive to network quality.
Alternatively, if a CPE device is able to access the acceleration network through any one of a plurality of POP nodes, the CPE device selects a POP node from the acceleration network randomly or based on a load balancing policy, accesses the POP node and sends the traffic with the line label added to the POP node. Or before the control center sends the at least one domain name record file to the CPE equipment and the line label and the priority information corresponding to each domain name record file in the at least one domain name record file, at least two POP nodes are selected nearby from the acceleration network according to the geographic position of the CPE equipment. And then, the control center sends indication information to the CPE equipment, wherein the indication information is used for indicating the at least two POP nodes so that the CPE equipment can access an acceleration network nearby through one POP node in the at least two POP nodes.
Illustratively, for each CPE device, the control node determines two or more POP nodes closest to the CPE device and sends indication information to the CPE device. After receiving the indication information, the CPE equipment determines two or more POP nodes nearest to the CPE equipment according to the indication information. The CPE device then periodically or in real-time detects each of the at least two POP nodes after receiving the user traffic, resulting in line quality to each POP node. And then, selecting the POP node with the optimal line quality, and sending the flow marked with the line label to the POP node.
By adopting the scheme, the purpose of rapidly guiding the flow from the CPE equipment to the POP node is achieved by selecting the POP node with the best line quality and sending the flow added with the line label to the POP node, and meanwhile, the CPE equipment selects the POP node access corresponding to the transmission line with the least load due to the fact that different POP nodes correspond to different transmission lines, so that the purpose of load balancing is achieved.
205. And the POP node queries route information according to the line labels to determine a target transmission line, wherein the route information is used for indicating the mapping relation between each line label in at least one line label and the transmission line.
Illustratively, the control center pre-selects transmission lines for each application, generates a line label for each application, generates routing information based on the transmission lines and the line labels, and sends the routing information to the POP node. The POP node may parse the flow to obtain a line label, query the routing information, determine that a corresponding transmission line in the routing information is a target transmission line, and forward based on the target transmission line.
206. The POP node directs traffic to the server via the target transmission line.
After the POP node determines the target transmission line, the flow is transmitted through the target transmission line so as to finally reach the server. The server processes and responds to the traffic, and the response information is returned to the first terminal equipment through the original path.
According to the flow guiding method provided by the embodiment of the application, domain name record files of all applications are stored in the CPE equipment in advance, when the CPE equipment receives new flow from the first terminal equipment, a target application to which the flow belongs is determined according to at least one domain name record file, and a line label of the target application is added to the flow and is sent to the POP node. And after the POP node receives the traffic added with the line label, determining a target transmission route according to the line label and guiding the traffic. In the process, the flow is guided based on the domain name record file of the application, the domain name is not required to be resolved to obtain the IP address, and the flow is not required to be guided based on the IP address, so that the problem of error in flow guiding caused by the fact that different domain names correspond to the same IP address is avoided, and therefore the flow guiding method provided by the embodiment of the application is high in accuracy and high in speed.
Fig. 3 is a flowchart of determining a target application in a flow guiding method according to an embodiment of the present application. The embodiment comprises the following steps:
301. the CPE device parses the traffic to obtain the requested domain name.
Illustratively, each flow carries at least one requested domain name. For the same application, multiple sessions are generated when the user uses the application, each session corresponds to one flow, and each flow carries a request domain name.
302. The CPE device orders the at least one domain name record file in order of priority from high to low to obtain a priority queue.
Illustratively, the CPE device obtains domain name record files for respective applications from a control center in advance. Or, the control center synchronizes the priority to the CPE device after setting the priority for one domain name record file at a time. After the CPE device obtains the plurality of domain name record files and the priority of each domain name record file, the CPE device sorts the domain name record files according to the order of the priority from high to low, thereby obtaining a priority queue.
303. And sequentially comparing each domain name record file in the at least one domain name record file with the request domain name according to the priority queue, and taking the application corresponding to the first domain name record file containing the request domain name in the priority queue as the target application.
When a client agent (haproxy) is set on the CPE device to identify the traffic, the matching sequence of the domain name record files is determined according to the priority of each domain name record file, so as to determine the target application of the traffic.
The domain name record file for an application contains all or most of the domain name for the application. A traffic typically carries a requested domain name. After receiving the traffic and resolving the request domain name, the CPE device compares the request domain name with the domain name contained in the domain name record file with the highest priority, if the domain name record file with the highest priority does not contain the request domain name, continues to compare … … the request domain name with the second domain name record file in the priority queue, and when a certain domain name record file contains the request domain name, takes the application corresponding to the domain name record file as the target application. For example, there are 5 domain name record files in the priority queue, the 2 nd domain name record file is a domain name record file of the game application, and when the domain name record file of the game application contains the requested domain name, it indicates that the traffic is the traffic generated by the game application.
By adopting the scheme, the CPE equipment determines the target application to which the flow belongs according to the priority queue of the domain name record file, and can select a transmission line with quality matching or better than the set quality for the flow, thereby completely ensuring the transmission quality of the sensitive flow and avoiding influencing service processing because the quality of the transmission line does not meet the requirement.
By way of example, when domain names between different applications are repeated, it can be ensured that the application with higher priority is matched with the domain name record file, so that traffic is ensured not to be transmitted through a transmission line lower than the original requirement, and service quality is ensured. For example, two applications, i.e., an instant messaging application and a shopping application, are installed on a first terminal device of a user. The CPE equipment stores a domain name record file of the instant messaging application and a domain name record file of the shopping application, the priority of the domain name record file of the instant messaging application is higher than that of the domain name record file of the shopping application, and the two domain name record files have the same domain name of' provider. The control center presets the line label of the instant address book application as a high-quality transmission line, and the line label of the shopping application as a low-quality transmission line.
And generating traffic in the game process of the user and sending the traffic to the CPE equipment. The CPE device analyzes a request domain name of 'provider.android.com' from the traffic, and determines that a domain name record file of the instant messaging application contains the request domain name according to the priority queue. Thus, the CPE device considers this traffic as traffic for instant messaging applications. And then, the CPE equipment sends the traffic with the high-quality label to the POP node, the POP node selects a high-quality transmission line according to the line label to guide the traffic, and finally the traffic is guided to a server of the instant messaging application.
And generating traffic in the shopping process of the user and sending the traffic to the CPE equipment. The CPE device parses the request domain name "differential. Android. Com" from the traffic, and the priority of the domain name record file of the instant messaging application in the priority queue is higher than the priority of the shopping application, although both domain name record files contain the request domain name "differential. Android. Com". However, because the request domain name is compared with the domain name record file of the instant messaging application, the CPE device determines the traffic as the traffic of the instant messaging application. The CPE adds a high-quality label to the traffic and sends the traffic to the POP node, and the POP node selects a high-quality transmission line according to the line label to guide the traffic, and finally, the traffic is guided to a shopping application server. Obviously, for shopping applications, the transmission line originally required is a low-quality transmission line, but is finally guided by a high-quality transmission line, so that in the embodiment of the application, the flow is ensured not to be transmitted by the transmission line lower than the original requirement, and the service quality is ensured.
In the above embodiment, in order to further improve the efficiency of domain name comparison, that is, to quickly determine whether the requested domain name is included in the domain name record file, in an implementation, the domain name storage structure in the domain name record file may be set, first, for any domain name record file in the priority queue, a dictionary tree is constructed according to the domain name included in the domain name record file, so as to divide the domain name included in the domain name record file into a plurality of sets. And then, the CPE equipment determines a target set from the sets, wherein the target set is the set with the highest probability of containing the request domain name in the sets. And finally, comparing whether the request domain name exists in the target set.
Alternatively, in the above embodiment, the domain name record file is, for example, a PAC (Proxy Automatic Configuration, agent auto configuration) file or the like. Each application has its own PAC file for recording all or part of the domain name of the application. For example, PAC files record domain names corresponding to the applications in a dictionary tree manner.
Specifically, in general, there are very many domain names of one application, such as 3 ten thousand or more domain names of one application. Thus, a domain name record file often contains a large number of domain names. If the requested domain name is compared with each domain name contained in the domain name record file, the workload is large and the time is long. In the embodiment of the application, for each domain name record file, the CPE device constructs a dictionary tree in advance according to the domain name contained in the domain name record file. For example, one domain name record file contains 2 ten thousand domain names, in which there is a domain name with any one of 26 english alphabets, and thus the CPE device divides the 2 ten thousand domain names into 26 sets according to the initials. For each set, the domain names within the set may also continue to be divided into subsets by the second letter.
After receiving the traffic from the first terminal equipment and analyzing the request domain name, the CPE equipment determines a domain name record file with the highest priority according to the priority queue, and further determines a target set according to a dictionary tree of the domain name record file. The CPE device determines if the requested domain name exists in the target set. And if the request domain name exists in the target set, taking the application corresponding to the domain name record file with the highest priority as the target application. If the request domain name does not exist in the target set, determining a second domain name record file according to the priority queue, continuing to search the request domain name … … according to the dictionary tree matching of the second domain name record file until the request domain name is matched, and taking the application corresponding to the domain name record file containing the request domain name as the target application.
In the traditional flow guiding method based on the domain name record file, a top-down matching method is adopted, if the domain name is requested to be located at the back, 200 milliseconds or longer matching time is required, and therefore the time consumed by a user for accessing a server through an application on the first terminal device is excessively long. According to the embodiment of the application, the dictionary tree is adopted for matching, and the matching time is shortened to about 3 milliseconds by reducing the query depth of the matching data. Taking the request domain name of "google.com" as an example, the query depth from top to bottom is about several thousands of orders, the query depth based on the dictionary tree is reduced to 9, the linear time consumption of top to bottom matching is greatly eliminated, and the purpose of quickly accessing the application server can be realized.
Next, a detailed description will be given of how the control center adds, deletes or modifies the domain name record file and synchronizes to the CPE device.
Referring to fig. 1, an operation and maintenance person may send a configuration request to a control center through a second terminal device to request a configuration interface to upload configuration information. And after receiving the configuration request, the control center transmits a data stream for displaying the configuration interface to the second terminal equipment. The second terminal device displays a configuration interface based on the data stream. And uploading the domain name record file to the control center by the operation and maintenance personnel through the configuration interface. Meanwhile, the operation and maintenance personnel can upload information such as user requirements and the like for setting the domain name record file to the control center through the configuration interface. The control center sets priority for each domain name record file according to the user's needs, selects transmission lines for the applications, and generates a line label for each application. And then, the control center sends the domain name record file, the priority and the line sign to the CPE equipment, and generates route information according to the line sign and the transmission line and sends the route information to the POP node.
By adopting the scheme, the second terminal equipment uploads domain name record files and the like to the control center, so that the purpose that the control center acquires the domain name record files of each application is realized.
Optionally, in the foregoing embodiment, the operation and maintenance personnel may upload domain names of applications to the control center through the second terminal device, where the control center generates a domain name record file based on all domain names of the applications and generates line labels of the applications according to requirements.
By adopting the scheme, the control center generates the domain name record file of the application according to the domain name and the like, and when the control center generates the domain name record file, the control center can construct the domain name record file based on the dictionary tree mode in the embodiment.
Fig. 4 is a flowchart of a flow guiding method according to an embodiment of the present application. The embodiment is illustrated from the perspective of the interaction of the control center with the CPE device and POP node. The embodiment comprises the following steps:
401. the control center obtains the domain name record file of each application to obtain at least one domain name record file.
For example, referring to fig. 1, the operator uploads the domain name, the domain name record file, and the like to the control center through the second terminal device, so that the control center obtains the domain name record file of each application, thereby obtaining at least one domain name record file.
402. The control center sets a line tag and routing information for each application in the applications, and sets priority information for each domain name record file in the at least one domain name record file.
The control center sets priority information of each domain name record file according to uploading of the second terminal device, and sets a line label, route information and the like for each application according to content uploaded by the second terminal device. For example, if the content uploaded by the second terminal device indicates that an application is a delay sensitive application, the line tag generated by the control center for the application indicates that the traffic of the application is going to a high-quality transmission line, and the route information indicates that the traffic of the application is guided by the transmission line a, where the transmission line a is a high-quality transmission line.
403. And the control center sends the at least one domain name record file, and the line label and the priority information corresponding to each domain name record file in the at least one domain name record file to the CPE equipment.
Correspondingly, the CPE device receives the at least one domain name record file sent by the control center, and the line label or priority information of each application. In this way, after receiving the traffic from the first terminal device, the CPE device analyzes the traffic to obtain the requested domain name, and compares the requested domain name with each domain name record file according to the priority information, so as to determine the target application. The CPE device then tags the traffic with the line label of the target application.
404. The control center transmits the routing information to POP nodes related to the routing information in the acceleration network.
Correspondingly, the POP node receives the routing information. The routing information is used for indicating the mapping relation between each line label in at least one line label and the transmission line.
405. The POP node selects a transmission line for the received traffic based on the routing information.
And the POP node receives the traffic flow, and determines a transmission line in the acceleration network according to the line label query route information in the traffic flow.
By adopting the scheme, the control center sends the domain name record file, the priority information of each domain name record file and the line label of each application to the CPE equipment in advance, and sends the route information to the POP node. After receiving the traffic, the CPE equipment analyzes the traffic to obtain a request domain name, determines a target application according to the request domain name and each domain name record file, marks a line label of the target application, and sends the line label to the POP node, and the POP node determines a transmission line of the traffic in an acceleration network according to the line label so as to achieve the purpose of accurately and rapidly guiding the traffic.
Optionally, in the foregoing embodiment, when the control center sets routing information for each application in the applications, the control center collects line quality information between POP nodes in the acceleration network and generates a network topology. And then, the control center selects a transmission line for each application in each application according to the line requirement, the line quality information and the network topology of each application. Finally, for each application, routing information is generated from the transmission lines of the application and the line labels.
Illustratively, backbone networks are formed between POP nodes in the acceleration network. When a POP node is relatively close to the server, the POP node can be directly connected with the server. If one POP node is farther from the server, a connection can be established with the server through other POP nodes. The control center collects line quality information among the POP nodes and generates network topology. When the control center generates a transmission line for an application, the transmission line is selected for the application according to the line requirement of the application, the line quality information among the POP nodes and the network topology. For example, for delay sensitive applications, the control center selects a transmission line selected for the application that has a superior line quality for adjacent POP nodes and that is a line in the network topology that can reach the server from the CPE device.
By adopting the scheme, the purpose of generating a high-quality transmission line for application is realized.
Optionally, in the above embodiment, when the domain name record file is newly added, deleted or modified, the control center may synchronize these information with the CPE device.
For example, when the client no longer needs the network service provider to service the traffic of a certain application, for example, the operation and maintenance personnel instruct the control center to delete the domain name record file of the application to be deleted through the second terminal device. And the control center sends a control instruction carrying the identification of the application to be deleted to the CPE equipment. After receiving the control instruction, the CPE device deletes the domain name record file and the information such as the line label or the priority.
By adopting the scheme, the invalid domain name record file and related information are deleted, so that the time length for domain name matching is reduced while the invalid domain name record file occupies excessive storage space.
In the above embodiment, the operator or the like may modify the domain name record file through the configuration interface, for example, add a new domain name or delete a part of the domain name to the domain name record file of an application, which is referred to as an application to be modified. And the control center sends a control instruction carrying the identification of the application to be modified to the CPE equipment. After receiving the control command, the CPE device adds, deletes or modifies the local domain name record file according to the control command. In addition, the control center can instruct the CPE device to modify the priority of the applied line label, transmission line, or domain name record file through the control instruction.
By adopting the scheme, the purpose of flexibly updating the domain name record files of each application is realized, and the control center selects a transmission line according to the requirements of clients, so that customized services can be provided for different clients.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device 500 is, for example, the CPE device or the control center or POP node described above, and the electronic device 500 includes:
A processor 51 and a memory 52;
the memory 52 stores computer instructions;
the processor 51 executes the computer instructions stored in the memory 52, so that the processor 51 executes the traffic steering method as described above for CPE device implementation; alternatively, the processor 51 is caused to execute the flow guiding method as described above by the control center implementation; alternatively, processor 51 may be caused to perform the traffic steering method described above for POP node implementations.
The specific implementation process of the processor 51 may refer to the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Optionally, the electronic device 500 further comprises a communication component 53. The processor 51, the memory 52, and the communication unit 53 may be connected via a bus 54.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and the computer instructions are used for realizing the flow guiding method implemented by the CPE equipment, the control center or the POP node when being executed by a processor.
Embodiments of the present application also provide a computer program product comprising a computer program which, when executed by a processor, implements a flow steering method as implemented by a CPE device, control center or POP node, as described above.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (13)

1. A flow directing method, comprising:
receiving traffic from a first terminal device;
determining a target application to which the flow belongs according to at least one domain name record file, wherein different domain name record files in the at least one domain name record file correspond to different applications, and the domain name record file is used for recording domain names of the corresponding applications;
Adding a line tag to the traffic, wherein the line tag is used for indicating a transmission line of the traffic in an acceleration network; the acceleration network is constructed based on POP nodes;
transmitting the traffic added with the line label to a POP node, wherein the POP node is positioned in the acceleration network;
the determining, according to at least one domain name record file, the target application to which the flow belongs includes:
analyzing the flow to obtain a request domain name;
sorting the at least one domain name record file according to the order of the priority from high to low to obtain a priority queue;
and sequentially comparing each domain name record file in the at least one domain name record file with the request domain name according to the priority queue, and taking the application corresponding to the first domain name record file containing the request domain name in the priority queue as the target application.
2. The method according to claim 1, wherein the file type of the domain name record file is PAC file, and the PAC file records the domain name corresponding to the application in a dictionary tree manner.
3. The method according to any one of claims 1-2, wherein before determining the target application to which the traffic belongs according to at least one domain name record file, further comprising:
And receiving the at least one domain name record file and line labels or priority information of each application, wherein the priority information is used for indicating the priority of each domain name record file in the at least one domain name record file.
4. The method according to any one of claims 1-2, further comprising:
receiving a control instruction from a control center;
and adding, deleting or modifying the local domain name record file according to the control instruction.
5. The method of any of claims 1-2, wherein the sending traffic to the POP node with the line label added thereto comprises:
and selecting a POP node from the acceleration network, and transmitting the traffic added with the line label to the selected POP node.
6. The method of claim 5, wherein selecting a POP node from the acceleration network and transmitting traffic to the selected POP node with the line label added thereto comprises:
receiving indication information from a control center, wherein the indication information is used for indicating at least two POP nodes;
detecting each POP node in the at least two POP nodes to determine the line quality of the flow reaching each POP node;
And sending the traffic added with the line label to the POP nodes with the optimal line quality of the at least two POP nodes.
7. A flow directing method, applied to a control center, comprising:
acquiring domain name record files of each application to obtain at least one domain name record file;
setting a line tag and routing information for each application in the applications, and setting priority information for each domain name record file in the at least one domain name record file;
transmitting the at least one domain name record file, and line labels and priority information corresponding to each domain name record file in the at least one domain name record file to CPE equipment;
transmitting the routing information to a POP node related to the routing information in an acceleration network, so that the POP node selects a transmission line for the received traffic based on the routing information; the acceleration network is constructed based on POP nodes;
wherein said setting routing information for each of said applications comprises:
collecting line quality information among POP nodes in the acceleration network and generating network topology;
selecting a transmission line for each application in each application according to the line requirement of each application in each application, the line quality information and the network topology;
For each application, route information is generated from the transmission line of the application and the line label.
8. The method of claim 7, wherein the obtaining the domain name record file of each application to obtain at least one domain name record file comprises:
receiving a configuration request from a second terminal device, wherein the configuration request is used for requesting a configuration interface;
transmitting a data stream for displaying the configuration interface to the second terminal equipment;
and receiving configuration data sent by the second terminal equipment through the configuration interface, wherein the configuration data comprises a domain name record file.
9. The method of claim 7, wherein the file type of the domain name record file is a PAC file, and the PAC file records the domain name corresponding to the application in a dictionary tree manner.
10. The method of claim 7, wherein after the sending the at least one domain name record file to the CPE device and the line labels and priority information corresponding to each domain name record file in the at least one domain name record file, further comprises:
and sending a control instruction to the CPE equipment, wherein the control instruction is used for indicating the CPE equipment to update a domain name record file stored locally.
11. The method of claim 7, wherein before the sending the at least one domain name record file to the CPE device and the line labels and priority information corresponding to each domain name record file in the at least one domain name record file, further comprises:
selecting at least two POP nodes nearby from the acceleration network according to the geographic position of the CPE equipment;
and sending indication information to the CPE equipment, wherein the indication information is used for indicating the at least two POP nodes so that the CPE equipment accesses the acceleration network through one POP node of the at least two POP nodes.
12. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, wherein execution of the computer program by the processor causes the electronic device to implement the method of any one of claims 1 to 11.
13. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method according to any one of claims 1 to 11.
CN202111138879.2A 2021-09-27 2021-09-27 Flow guiding method, electronic device and readable storage medium Active CN114039906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111138879.2A CN114039906B (en) 2021-09-27 2021-09-27 Flow guiding method, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111138879.2A CN114039906B (en) 2021-09-27 2021-09-27 Flow guiding method, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN114039906A CN114039906A (en) 2022-02-11
CN114039906B true CN114039906B (en) 2023-09-22

Family

ID=80140793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111138879.2A Active CN114039906B (en) 2021-09-27 2021-09-27 Flow guiding method, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114039906B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379016A (en) * 2022-08-22 2022-11-22 深信服科技股份有限公司 Resource access method, access service platform, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168300A (en) * 2013-05-17 2014-11-26 中国电信股份有限公司 Content acceleration method and system
CN106657431A (en) * 2016-11-17 2017-05-10 腾讯科技(深圳)有限公司 Service platform address resolution method and system and related devices
CN108011826A (en) * 2017-12-01 2018-05-08 锐捷网络股份有限公司 Method for routing, routing device, communication system and storage medium
CN112202930A (en) * 2020-12-03 2021-01-08 观脉科技(北京)有限公司 Method, POP and system for accessing mobile equipment to SD-WAN (secure digital-to-WAN) network
CN112217679A (en) * 2020-10-16 2021-01-12 腾讯科技(深圳)有限公司 Application program acceleration method and device, computer equipment and storage medium
CN112564991A (en) * 2019-09-10 2021-03-26 华为技术有限公司 Application identification method and device and storage medium
CN113285885A (en) * 2021-07-23 2021-08-20 阿里云计算有限公司 Service grid-based edge flow control method, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168300A (en) * 2013-05-17 2014-11-26 中国电信股份有限公司 Content acceleration method and system
CN106657431A (en) * 2016-11-17 2017-05-10 腾讯科技(深圳)有限公司 Service platform address resolution method and system and related devices
CN108011826A (en) * 2017-12-01 2018-05-08 锐捷网络股份有限公司 Method for routing, routing device, communication system and storage medium
CN112564991A (en) * 2019-09-10 2021-03-26 华为技术有限公司 Application identification method and device and storage medium
CN112217679A (en) * 2020-10-16 2021-01-12 腾讯科技(深圳)有限公司 Application program acceleration method and device, computer equipment and storage medium
CN112202930A (en) * 2020-12-03 2021-01-08 观脉科技(北京)有限公司 Method, POP and system for accessing mobile equipment to SD-WAN (secure digital-to-WAN) network
CN113285885A (en) * 2021-07-23 2021-08-20 阿里云计算有限公司 Service grid-based edge flow control method, device and storage medium

Also Published As

Publication number Publication date
CN114039906A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN113906723B (en) Multi-cluster portal
US10015243B2 (en) Optimized content distribution based on metrics derived from the end user
CN109327542B (en) Game service access response method, request forwarding method, connection method and device
CN107528862B (en) Domain name resolution method and device
US11218437B2 (en) Method for network traffic forwarding, request sending, and communication acceleration, forwarding server and node server
US20090327460A1 (en) Application Request Routing and Load Balancing
US20200382465A1 (en) Client subnet efficiency by equivalence class aggregation
CN101789904A (en) Method and equipment for controlling flow
US10630808B1 (en) Contextual routing for directing requests to different versions of an application
CN108183975A (en) A kind of method and system of domain name mapping
CN106453576B (en) A kind of exchange method, system and control centre based on mixing cloud platform
EP4095768A1 (en) Application recognition model updating method and apparatus, and storage medium
CN109672698B (en) Content distribution method, device and system
US20020136204A1 (en) Method and system for routing network traffic based upon application information
CN113067909A (en) Edge node addressing method, device, equipment and storage medium
US11212329B2 (en) Method, apparatus, device and storage medium for pushing video stream
CN113301079B (en) Data acquisition method, system, computing device and storage medium
CN108207012A (en) A kind of flow control methods, device, terminal and system
CN112825524B (en) Method, device and system for determining network service node
CN114039906B (en) Flow guiding method, electronic device and readable storage medium
CN106878052B (en) User migration method and device
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server
WO2021057369A1 (en) Httpdns scheduling method and apparatus, medium, and device
CN111901412B (en) Data processing method and computer readable storage medium
CN113760278A (en) Page management method and device

Legal Events

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