WO2020082522A1 - 一种传输数据流量的方法和装置 - Google Patents

一种传输数据流量的方法和装置 Download PDF

Info

Publication number
WO2020082522A1
WO2020082522A1 PCT/CN2018/119885 CN2018119885W WO2020082522A1 WO 2020082522 A1 WO2020082522 A1 WO 2020082522A1 CN 2018119885 W CN2018119885 W CN 2018119885W WO 2020082522 A1 WO2020082522 A1 WO 2020082522A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission
target
data traffic
network
transmission path
Prior art date
Application number
PCT/CN2018/119885
Other languages
English (en)
French (fr)
Inventor
陈凯林
Original Assignee
网宿科技股份有限公司
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 网宿科技股份有限公司 filed Critical 网宿科技股份有限公司
Priority to US16/964,397 priority Critical patent/US20210051210A1/en
Priority to EP18938150.2A priority patent/EP3869750A4/en
Publication of WO2020082522A1 publication Critical patent/WO2020082522A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/08Learning-based routing, e.g. using neural networks or artificial intelligence
    • 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/12Shortest path evaluation
    • H04L45/124Shortest path evaluation using a combination of 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/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/247Multipath using M:N active or standby paths
    • 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/308Route determination based on user's profile, e.g. premium users
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/7453Address table lookup; Address filtering using hashing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Definitions

  • the invention relates to the technical field of data transmission, in particular to a method and device for transmitting data traffic.
  • the application acceleration network is a network deployed between the user and the server to accelerate data transmission.
  • the user can send the data traffic to the entrance acceleration node of the application acceleration network.
  • the entrance acceleration node can select one transmission among multiple transmission paths to the server in the application acceleration network. Path to transmit the above data traffic.
  • each time the ingress acceleration node receives data traffic directed to the server it can transmit the data traffic through the determined optimal transmission path, and at the same time, it can be based on the network status parameters of multiple transmission paths from the ingress acceleration node to the server Including transmission delay, transmission packet loss rate, acceleration node load and path bandwidth usage, etc.), re-select the optimal transmission path from the above multiple transmission paths for subsequent data traffic transmission.
  • An ingress acceleration node consists of multiple ingress proxy devices. When data traffic reaches the ingress acceleration node, it will be distributed to different ingress proxy devices in a balanced manner. Due to problems such as detection time, device operating status, and detected data errors, the detection results of different ingress proxy devices on the optimal transmission path to the same destination address may be biased. In this way, for some servers that require that the source IP address of data traffic cannot be changed during multiple interactions (such as the service background of online banking, the service background of payment applications, etc.), the data transmitted by different entry proxy devices in the same entry acceleration node Data traffic is likely to be judged as illegal or invalid data by the server, thereby affecting the network transmission quality of the application acceleration network.
  • embodiments of the present invention provide a method and apparatus for transmitting data traffic.
  • the technical solution is as follows:
  • a method for transmitting data traffic includes:
  • the entrance proxy device detects the network transmission quality of all transmission paths to the target server
  • the ingress proxy device selects and records multiple candidate transmission paths among all the transmission paths according to the network transmission quality
  • the ingress proxy device When receiving the data traffic directed to the target server, the ingress proxy device selects the target transmission path among the multiple candidate transmission paths recorded according to the user terminal identifier carried by the data traffic;
  • the ingress proxy device transmits the data traffic through the target transmission path.
  • the entrance proxy device detects the network transmission quality of all transmission paths to the target server, including:
  • the ingress proxy device detects the network state parameters of each transmission path to the target server, where the network state parameters include at least transmission delay, transmission packet loss rate, load and bandwidth utilization rate of all node devices on the transmission path;
  • the ingress proxy device determines the network transmission quality of each transmission path according to the network state parameter and a preset threshold corresponding to each of the network state parameters, and a quality influence weight corresponding to each of the network state parameters value.
  • the ingress proxy device selects multiple alternative transmission paths among the all transmission paths according to the network transmission quality, including:
  • the ingress proxy device sorts all the transmission paths according to the network transmission quality value from high to low, and selects a preset number of candidate transmission paths that are ranked highest; or,
  • the ingress proxy device determines the transmission path with the network transmission quality value higher than a preset quality threshold in all the transmission paths as an alternative transmission path; or,
  • the ingress proxy device determines a transmission path whose difference between the network transmission quality value and the maximum network transmission quality value in all transmission paths is within a preset deviation range as an alternative transmission path.
  • the ingress proxy device when receiving data traffic directed to the target server, selects a target transmission path among the plurality of alternative transmission paths according to the user terminal identifier carried by the data traffic, include:
  • the ingress proxy device When receiving data traffic directed to the target server, the ingress proxy device performs a hash calculation on the user terminal identifier carried by the data traffic to obtain a target hash value;
  • the ingress proxy device selects a target transmission path among the plurality of candidate transmission paths according to the target hash value and a path identifier corresponding to each of the candidate transmission paths.
  • the ingress proxy device when receiving data traffic directed to the target server, selects a target transmission path among the plurality of alternative transmission paths according to the user terminal identifier carried by the data traffic, include:
  • the ingress proxy device When receiving data traffic directed to the target server, the ingress proxy device performs a hash calculation on the user terminal identifier carried by the data traffic to obtain a target hash value;
  • the ingress proxy device determines the target exit acceleration node according to the target hash value and the node identifier corresponding to the exit acceleration node on each of the candidate transmission paths;
  • the ingress proxy device selects a target transmission path with the best network transmission quality among all candidate transmission paths passing through the target exit acceleration node.
  • the method further includes:
  • the ingress proxy device sends the target path identifier of the target transmission path to other ingress proxy devices of the ingress acceleration node to which it belongs, so that When the other ingress proxy device transmits the data traffic directed to the target server within a preset duration, the transmission path is selected according to the target path identifier.
  • the ingress proxy device selects multiple alternative transmission paths among the all transmission paths according to the network transmission quality, including:
  • the ingress proxy device selects multiple alternative transmission paths among the all transmission paths according to the network transmission quality.
  • an apparatus for transmitting data traffic includes:
  • the detection module is used to detect the network transmission quality of all transmission paths to the target server;
  • a first selection module configured to select and record multiple candidate transmission paths among all the transmission paths according to the network transmission quality
  • a second selection module configured to select a target transmission path among the multiple candidate transmission paths recorded according to the user terminal identifier carried by the data flow when receiving data traffic directed to the target server;
  • the transmission module is configured to transmit the data traffic through the target transmission path.
  • the detection module is specifically used for:
  • the network transmission quality value of each transmission path is determined according to the network state parameter and a preset threshold corresponding to each of the network state parameters, and a quality influence weight corresponding to each of the network state parameters.
  • the first selection module is specifically used for:
  • a transmission path whose difference between the network transmission quality value and the maximum network transmission quality value in all the transmission paths is within a preset deviation range is determined as an alternative transmission path.
  • the second selection module is specifically used for:
  • a target transmission path is selected among the plurality of candidate transmission paths.
  • the second selection module is specifically used for:
  • the target transmission path with the best network transmission quality is selected.
  • the device further includes:
  • the sending module is configured to send the target path identifier of the target transmission path to other entrance proxy devices of the entrance acceleration node to which the target transmission path is within a preset critical quality range, so that all When the other ingress proxy device transmits data traffic directed to the target server within a preset duration, the transmission path is selected according to the target path identifier.
  • the first selection module is specifically used for:
  • an entry proxy device in a third aspect, includes a processor and a memory.
  • the memory stores at least one instruction, at least one program, code set, or instruction set.
  • the at least one instruction, all The at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for transmitting data traffic according to the first aspect.
  • a computer-readable storage medium in which at least one instruction, at least one program, code set or instruction set is stored in the storage medium, the at least one instruction, the at least one program, the code The set or instruction set is loaded and executed by the processor to implement the method for transmitting data traffic as described in the first aspect.
  • the ingress proxy device detects the network transmission quality of all transmission paths reaching the target server; the ingress proxy device selects and records multiple alternative transmission paths among all transmission paths according to the network transmission quality; In the case of data traffic at the terminal, the ingress proxy device selects the target transmission path among the multiple candidate transmission paths recorded according to the user terminal identifier carried by the data traffic; the ingress proxy device transmits the data traffic through the target transmission path.
  • the selection conditions of the transmission path are relaxed, so that multiple alternative transmission paths selected by different entry agent devices of the same entry acceleration node in a short time have a high probability, Then, the user terminal identification is used to lock the actual transmission path, which ensures that different ingress proxy devices target the data traffic of the same user terminal, and the transmission path that meets the source IP address consistency requirements can be selected within the same candidate range, thereby ensuring that The application accelerates the overall network transmission quality of the network.
  • FIG. 1 is a schematic structural diagram of a scenario for transmitting data traffic according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for transmitting data traffic according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for transmitting data traffic according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for transmitting data traffic according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an ingress proxy device provided by an embodiment of the present invention.
  • An embodiment of the present invention provides a method for transmitting data traffic.
  • the execution subject of the method may be any entry proxy device in an entry acceleration node of an application acceleration network.
  • the application acceleration network may be composed of multiple acceleration nodes. It is divided into entrance acceleration node, intermediate acceleration node and exit acceleration node.
  • the entrance acceleration node may be a network node for receiving data traffic sent from the user end to the server, and each entrance acceleration node may include multiple entrance proxy devices, and multiple entrance proxy devices may be responsible for reaching the entrance acceleration node in a balanced manner User traffic transmission processing.
  • Each ingress proxy device can transmit the received user data traffic to the first-level or multi-level intermediate acceleration node in the application acceleration network (the intermediate acceleration node may not exist in the transmission path) according to the preset transmission path.
  • the exit acceleration node sends the data traffic to the receiver.
  • FIG. 1 is a schematic diagram of a scenario architecture for transmitting data traffic.
  • the entrance proxy device can detect all transmission paths to the server in the application acceleration network while transmitting data traffic, and select or modify the preset transmission path according to the detection result to ensure that the preset transmission path is always the network transmission Good quality path.
  • the entrance proxy device may include a processor, a memory, and a transceiver.
  • the processor may be used to perform processing of transmitting data traffic in the following process
  • the memory may be used to store data required during processing and generated data, such as alternative transmission Path, path identification, node identification, etc.
  • the transceiver can be used to receive and send related data in the process, such as receiving data traffic, sending probe messages, etc.
  • Step 201 The ingress proxy device detects the network transmission quality of all transmission paths to the target server.
  • the ingress proxy device can detect the network transmission quality of the transmission path to each server according to a preset detection trigger mechanism.
  • the entry proxy device can first determine all the transmission paths to the target server, and then probe the network of these transmission paths by sending probe messages to the target server Transmission quality.
  • the preset detection trigger mechanism may be various, and this embodiment is not specifically limited.
  • the detection may be periodically triggered according to the preset interval duration (such as detection every 1 minute), or may be triggered by the target server.
  • Trigger detection based on access conditions such as triggering detection when the target server's access heat reaches the preset threshold within a preset duration
  • the timing of triggering detection can also be determined by the historical network transmission quality of each transmission path (such as multiple transmission path detection
  • the transmission quality of the network fluctuates greatly, that is, shorten the triggering interval of detection, and vice versa).
  • the detected network transmission quality can be reflected by the values calculated by multiple network state parameters.
  • the processing of step 201 can be as follows: the entrance proxy device detects the network state of each transmission path to the target server Parameters; the entrance proxy device determines the network transmission quality value of each transmission path according to the network state parameter and the preset threshold corresponding to each network state parameter, and the quality influence weight corresponding to each network state parameter.
  • the network state parameters include at least transmission delay, transmission packet loss rate, load and bandwidth utilization rate of all node devices on the transmission path.
  • the ingress proxy device can detect the current network state parameters of each transmission path during the process of detecting its network transmission quality.
  • the network state parameters may include at least transmission delay, transmission Packet loss rate, load and bandwidth usage of all node devices on the transmission path. These network status parameters can be pre-selected by technicians, which can effectively reflect the network transmission quality of the transmission path.
  • each network status parameter can correspond to a preset threshold and a quality impact weight, only when the network status parameter
  • the transmission path can be used to transmit data traffic only when it is greater than the corresponding preset threshold, and the quality impact weight can numerically reflect the impact of each network state parameter on the network transmission quality.
  • the ingress proxy device may determine each item according to the network state parameter and the preset threshold corresponding to each network state parameter, and the quality impact weight corresponding to each network state parameter.
  • the network transmission quality value of the transmission path Specifically, each network state parameter of a transmission path can be subtracted from its corresponding preset threshold, and then the difference can be multiplied by the corresponding quality impact weight, and then all the multipliers can be accumulated to obtain the transmission path. Network transmission quality value. In this way, through the numerical method of parameters, the network transmission quality of each transmission path can be judged more intuitively, conveniently, and accurately from multiple network status parameters.
  • Step 202 The ingress proxy device selects and records multiple candidate transmission paths among all transmission paths according to the network transmission quality.
  • the ingress proxy device may select multiple alternative transmission paths among all transmission paths according to the detected network transmission quality, and record accordingly. It is used to transmit data traffic directed to the target server through one or more transmission paths in the alternative transmission path before obtaining the next detection result. It can be understood that, in order to ensure the transmission quality of subsequent data traffic, multiple candidate transmission paths should be multiple transmission paths with the best network transmission quality among all transmission paths.
  • the process of selecting an alternative transmission path in step 202 may exist in the following ways:
  • the ingress proxy device sorts all transmission paths according to the network transmission quality value from high to low, and selects a preset number of candidate transmission paths that are ranked first.
  • the ingress proxy device may arrange the multiple transmission paths in the order of the network transmission quality values from high to low, and then select the preset number of the top ranking The transmission path is used as an alternative transmission path. In this way, the number of alternative transmission paths selected each time is consistent, which facilitates subsequent management and selection of alternative transmission paths.
  • Manner 2 The ingress proxy device determines the transmission paths of all transmission paths whose network transmission quality value is higher than a preset quality threshold as candidate transmission paths.
  • the ingress proxy device may filter out the transmission paths whose network transmission quality values are higher than the preset quality threshold among multiple transmission paths, and determine these transmission paths as Alternative transmission path. In this way, using the preset quality threshold as the screening condition can ensure that the network transmission quality of the selected alternative transmission path is better.
  • Manner 3 The ingress proxy device determines the transmission path whose difference between the network transmission quality value and the maximum network transmission quality value in all transmission paths is within a preset deviation range as the candidate transmission path.
  • the ingress proxy device may first determine the maximum network transmission quality value among the network transmission quality values of multiple transmission paths, and then filter out the network transmission quality value and the The transmission path whose maximum network transmission quality value difference is within a preset deviation range is used as an alternative transmission path. In this way, it is possible to ensure that the available alternative transmission paths that can be selected under any circumstances and have better network transmission quality are selected.
  • Step 203 When receiving the data traffic directed to the target server, the ingress proxy device selects the target transmission path among the multiple candidate transmission paths recorded according to the user terminal identifier carried by the data traffic.
  • an entrance proxy device in the entrance acceleration node connected to the target server in the application acceleration network may receive the data traffic directed to the target server, And obtain the client ID carried in the data traffic, which can be obtained by the entrance proxy device and used to distinguish different users, which can be the IP address of the client, the device code of the client, or User account for logging in to the client.
  • the ingress proxy device can query multiple recorded alternative transmission paths to the target server, and then select one of the recorded multiple alternative transmission paths for this transmission according to the user ID carried by the user traffic The target transmission path of the data traffic.
  • the processing in step 203 can be as follows: When data traffic directed to the target server is received, the ingress proxy device responds to the data traffic The carried user terminal identifier is hashed to obtain the target hash value; the entrance proxy device selects the target transmission path among the multiple alternative transmission paths according to the target hash value and the path identifier corresponding to each alternative transmission path.
  • the ingress proxy device may obtain the user terminal identifier carried in the data traffic, and hash the user terminal identifier to obtain the target hash value. Thereafter, the ingress proxy device may select the target transmission path among the multiple alternative transmission paths according to the target hash value and the path identifier corresponding to each alternative transmission path. Specifically, among the multiple candidate transmission paths, a transmission path whose path identifier is closest to the target hash value may be selected as the target transmission path.
  • the entrance proxy device has a high probability to transmit through the same transmission path.
  • the target transmission path may be selected based on the node identification of the exit acceleration node of each transmission path.
  • the processing of step 203 may be as follows: When receiving data traffic directed to the target server, the entrance proxy device The user ID carried by the data flow is hashed to obtain the target hash value; the entrance proxy device determines the target exit acceleration node according to the target hash value and the node identifier corresponding to the exit acceleration node on each alternative transmission path; The proxy device selects the target transmission path with the best network transmission quality among all the alternative transmission paths passing through the target exit acceleration node.
  • the ingress proxy device when it receives the data traffic directed to the target server, it can obtain the user ID carried in the data traffic, and hash the user ID to obtain the target hash value. Thereafter, the ingress proxy device may determine the target egress acceleration node according to the target hash value and the node identifier corresponding to the egress acceleration node on each candidate transmission path. Specifically, an exit acceleration node whose node identifier is closest to the target hash value may be selected as the target exit acceleration node among all exit acceleration nodes included in multiple candidate transmission paths. Of course, there are various ways to select the target exit acceleration node using the above target hash value and node identifier, and this embodiment does not limit this.
  • the ingress proxy device may select a target transmission path that passes through the target exit acceleration node and has the best network transmission quality among multiple candidate transmission paths. In this way, for the data traffic sent by the same user terminal multiple times in a short time, there is a high probability that the data traffic will be transmitted to the server through the same exit acceleration node.
  • step 204 the ingress proxy device transmits data traffic through the target transmission path.
  • the ingress proxy device can send the data traffic directed to the target server received this time to the target server through the target transmission path.
  • the ingress proxy device can also store the path identifier of the target transmission path and the client ID in correspondence, and set a certain storage duration, so that if within the storage duration, the ingress proxy device receives the carry again With the same client ID and the same data traffic that points to the target server, you can directly select the target transmission path to transmit the data traffic. It should be noted that this transmission will not update the correspondence between the above path ID and the client ID. Storage duration.
  • the corresponding path identifier may be broadcast, and the corresponding processing may be as follows: If the network transmission quality of the target transmission path is at a preset threshold Within the quality range, the entrance proxy device sends the target path identifier of the target transmission path to other entrance proxy devices of the entrance acceleration node to which it belongs, so that other entrance proxy devices transmit data traffic directed to the target server within a preset duration The target path identifier selects the transmission path.
  • the ingress proxy device may send the target path identifier of the target transmission path to other ingress proxy devices of the ingress acceleration node to which it belongs.
  • the specific sending method may be in the form of broadcasting. In this way, after acquiring the above-mentioned target path identifier, other import proxy devices may select the target transmission path according to the above-mentioned target path identifier if they need to transmit the data traffic directed to the target server within a preset duration.
  • the data traffic of different servers can be treated differently.
  • the processing in step 202 can be as follows: if the target server has source IP address consistency requirements, the ingress proxy device selects from all transmission paths according to the network transmission quality Multiple alternative transmission paths.
  • a list of servers with source IP address consistency requirements may be recorded in the entry proxy device. This list may be pre-configured by the technician on the entry proxy device, and each server in the list requires a short time The source addresses of data traffic on the same user end are consistent. Furthermore, after detecting the network transmission quality of all transmission paths to the target server, the ingress proxy device can determine whether there is a source IP address consistency requirement at the target server according to the above list. Multiple alternative transmission paths are selected from all the above transmission paths. If it does not exist, the ingress proxy device can select one transmission path with the best network transmission quality among all the above transmission paths, and then use the transmission path to transmit the transmission to the target server. Data Flow.
  • the ingress proxy device detects the network transmission quality of all transmission paths reaching the target server; the ingress proxy device selects and records multiple alternative transmission paths among all transmission paths according to the network transmission quality; In the case of data traffic at the terminal, the ingress proxy device selects the target transmission path among the multiple candidate transmission paths recorded according to the user terminal identifier carried by the data traffic; the ingress proxy device transmits the data traffic through the target transmission path.
  • the selection conditions of the transmission path are relaxed, so that multiple alternative transmission paths selected by different entry agent devices of the same entry acceleration node in a short time have a high probability, Then, the user terminal identification is used to lock the actual transmission path, which ensures that different ingress proxy devices target the data traffic of the same user terminal, and the transmission path that meets the source IP address consistency requirements can be selected within the same candidate range, thereby ensuring The application accelerates the overall network transmission quality of the network.
  • an embodiment of the present invention also provides an apparatus for transmitting data traffic.
  • the apparatus includes:
  • the detection module 301 is used to detect the network transmission quality of all transmission paths to the target server;
  • the first selection module 302 is configured to select and record multiple candidate transmission paths among all the transmission paths according to the network transmission quality
  • the second selection module 303 is configured to select a target transmission path among multiple recorded alternative transmission paths according to the user terminal identifier carried by the data flow when receiving data traffic directed to the target server;
  • the transmission module 304 is configured to transmit the data traffic through the target transmission path.
  • the detection module 301 is specifically used to:
  • the network transmission quality value of each transmission path is determined according to the network state parameter and a preset threshold corresponding to each of the network state parameters, and a quality influence weight corresponding to each of the network state parameters.
  • the first selection module 302 is specifically used to:
  • a transmission path whose difference between the network transmission quality value and the maximum network transmission quality value in all the transmission paths is within a preset deviation range is determined as an alternative transmission path.
  • the second selection module 303 is specifically used to:
  • a target transmission path is selected among the plurality of candidate transmission paths.
  • the second selection module 303 is specifically used to:
  • the target transmission path with the best network transmission quality is selected.
  • the device further includes:
  • the sending module 305 is configured to send the target path identifier of the target transmission path to other entrance proxy devices of the entrance acceleration node to which the target transmission path's network transmission quality is within a preset critical quality range, so that When the other ingress proxy device transmits the data traffic directed to the target server within a preset duration, the transmission path is selected according to the target path identifier.
  • the first selection module 302 is specifically used to:
  • the ingress proxy device detects the network transmission quality of all transmission paths reaching the target server; the ingress proxy device selects and records multiple alternative transmission paths among all transmission paths according to the network transmission quality; In the case of data traffic at the terminal, the ingress proxy device selects the target transmission path among the multiple candidate transmission paths recorded according to the user terminal identifier carried by the data traffic; the ingress proxy device transmits the data traffic through the target transmission path.
  • the selection conditions of the transmission path are relaxed, so that multiple alternative transmission paths selected by different entry agent devices of the same entry acceleration node in a short time have a high probability, Then, the user terminal identification is used to lock the actual transmission path, which ensures that different ingress proxy devices target the data traffic of the same user terminal, and the transmission path that meets the source IP address consistency requirements can be selected within the same candidate range, thereby ensuring that The application accelerates the overall network transmission quality of the network.
  • the device for transmitting data traffic only uses the division of the above functional modules as an example to illustrate the transmission of data traffic.
  • the above functions can be assigned to different functional modules as needed Completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device for transmitting data traffic and the method for transmitting data traffic provided in the above embodiments belong to the same concept. For the specific implementation process, refer to the method embodiments, and details are not described here.
  • FIG. 5 is a schematic structural diagram of an entrance proxy device provided by an embodiment of the present invention.
  • the portal agent device 500 may have a relatively large difference due to different configurations or performances, and may include one or more central processors 522 (eg, one or more processors) and a memory 532, and one or more storage applications 542 Or a storage medium 530 of data 544 (for example, one or one mass storage device in Shanghai).
  • the memory 532 and the storage medium 530 may be short-term storage or persistent storage.
  • the program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the portal agent device 500.
  • the central processor 522 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the portal agent device 500.
  • the entrance proxy device 500 may also include one or more power supplies 529, one or more wired or wireless network interfaces 550, one or more input output interfaces 558, one or more keyboards 556, and / or, one or more operations System 541, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • the entry agent device 500 may include a memory, and one or more programs, where one or more programs are stored in the memory and configured to be executed by one or more processors.
  • the one or more programs include Carry out the above instructions for transmitting data traffic.
  • the program may be stored in a computer-readable storage medium.
  • the mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种传输数据流量的方法和装置,属于数据传输技术领域。所述方法包括:入口代理设备探测到达目标服务端的所有传输路径的网络传输质量;所述入口代理设备根据所述网络传输质量在所述所有传输路径中选择并记录多条备选传输路径;当接收到指向所述目标服务端的数据流量时,所述入口代理设备根据所述数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;所述入口代理设备通过所述目标传输路径传输所述数据流量。采用本发明,用户端在短时间内通过应用加速网络与服务端进行多次交互时,可以大幅提高到达服务端的数据流量的源IP一致的概率,从而保证了应用加速网络的网络传输质量。

Description

一种传输数据流量的方法和装置 技术领域
本发明涉及数据传输技术领域,特别涉及一种传输数据流量的方法和装置。
背景技术
应用加速网络是一种部署在用户端和服务端之间的,用于加速数据传输的网络。用户端在通过应用加速网络向服务端发送数据流量时,可以将数据流量发送至应用加速网络的入口加速节点,入口加速节点可以在应用加速网络中到达服务端的多条传输路径中,选择一条传输路径来传输上述数据流量。
具体处理中,入口加速节点每接收到一次指向服务端的数据流量时,可以通过已确定出的最优传输路径传输数据流量,同时可以根据入口加速节点到服务端的多条传输路径的网络状态参数(包括传输时延、传输丢包率、加速节点负载和路径带宽使用率等),从上述多条传输路径中重新选择最优传输路径,以用于后续数据流量的传输。
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:
一个入口加速节点包括多台入口代理设备构成,数据流量到达入口加速节点时,将会均衡地分发到不同的入口代理设备。由于探测时间、设备运行状态、探测到的数据误差等问题,不同入口代理设备对到达同一目的地址的最优传输路径的探测结果可能存在偏差。这样,对于一些要求在多次交互过程中数据流量的源IP地址不能变化的服务端(如网上银行的服务后台、支付应用的服务后台等),由同一入口加速节点中不同入口代理设备传输的数据流量,很可能会被服务端判定为非法数据或无效数据,从而影响应用加速网络的网络传输质量。
发明内容
为了解决现有技术的问题,本发明实施例提供了一种传输数据流量的方法和装置。所述技术方案如下:
第一方面,提供了一种传输数据流量的方法,所述方法包括:
入口代理设备探测到达目标服务端的所有传输路径的网络传输质量;
所述入口代理设备根据所述网络传输质量在所述所有传输路径中选择并记录多条备选传输路径;
当接收到指向所述目标服务端的数据流量时,所述入口代理设备根据所述数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;
所述入口代理设备通过所述目标传输路径传输所述数据流量。
可选的,所述入口代理设备探测到达目标服务端的所有传输路径的网络传输质量,包括:
所述入口代理设备探测到达目标服务端的每条传输路径的网络状态参数,其中,所述网络状态参数至少包括传输时延、传输丢包率、传输路径上所有节点设备的负载和带宽使用率;
所述入口代理设备根据所述网络状态参数和每个所述网络状态参数对应的预设阈值,以及每个所述网络状态参数对应的质量影响权重,确定每条所述传输路径的网络传输质量值。
可选的,所述入口代理设备根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径,包括:
所述入口代理设备对所述所有传输路径按所述网络传输质量值由高到低排序,选择排序靠前的预设数目条备选传输路径;或者,
所述入口代理设备将所述所有传输路径中所述网络传输质量值高于预设质量阈值的传输路径确定为备选传输路径;或者,
所述入口代理设备将网络传输质量值与所述所有传输路径中最大网络传输质量值的差值处于预设偏差范围内的传输路径确定为备选传输路径。
可选的,所述当接收到指向所述目标服务端的数据流量时,所述入口代理设备根据所述数据流量携带的用户端标识,在所述多条备选传输路径中选择目标传输路径,包括:
当接收到指向目标服务端的数据流量时,所述入口代理设备对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
所述入口代理设备根据所述目标哈希值与每条所述备选传输路径对应的路径标识,在所述多条备选传输路径中选择目标传输路径。
可选的,所述当接收到指向所述目标服务端的数据流量时,所述入口代理 设备根据所述数据流量携带的用户端标识,在所述多条备选传输路径中选择目标传输路径,包括:
当接收到指向目标服务端的数据流量时,所述入口代理设备对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
所述入口代理设备根据所述目标哈希值与每条所述备选传输路径上的出口加速节点对应的节点标识,确定目标出口加速节点;
所述入口代理设备在经过所述目标出口加速节点的所有备选传输路径中,选择所述网络传输质量最优的目标传输路径。
可选的,所述在所述多条备选传输路径中选择目标传输路径之后,还包括:
如果所述目标传输路径的网络传输质量处于预设的临界质量范围内,所述入口代理设备则向其所属的入口加速节点的其它入口代理设备发送所述目标传输路径的目标路径标识,以使所述其它入口代理设备在预设时长内传输指向所述目标服务端的数据流量时,根据所述目标路径标识选择传输路径。
可选的,所述入口代理设备根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径,包括:
如果所述目标服务端存在源IP地址一致性需求,所述入口代理设备则根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径。
第二方面,提供了一种传输数据流量的装置,所述装置包括:
探测模块,用于探测到达目标服务端的所有传输路径的网络传输质量;
第一选择模块,用于根据所述网络传输质量在所述所有传输路径中选择并记录多条备选传输路径;
第二选择模块,用于当接收到指向所述目标服务端的数据流量时,根据所述数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;
传输模块,用于通过所述目标传输路径传输所述数据流量。
可选的,所述探测模块,具体用于:
探测到达目标服务端的每条传输路径的网络状态参数,其中,所述网络状态参数至少包括传输时延、传输丢包率、传输路径上所有节点设备的负载和带宽使用率;
根据所述网络状态参数和每个所述网络状态参数对应的预设阈值,以及每个所述网络状态参数对应的质量影响权重,确定每条所述传输路径的网络传输质量值。
可选的,所述第一选择模块,具体用于:
对所述所有传输路径按所述网络传输质量值由高到低排序,选择排序靠前的预设数目条备选传输路径;或者,
将所述所有传输路径中所述网络传输质量值高于预设质量阈值的传输路径确定为备选传输路径;或者,
将网络传输质量值与所述所有传输路径中最大网络传输质量值的差值处于预设偏差范围内的传输路径确定为备选传输路径。
可选的,所述第二选择模块,具体用于:
当接收到指向目标服务端的数据流量时,对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
根据所述目标哈希值与每条所述备选传输路径对应的路径标识,在所述多条备选传输路径中选择目标传输路径。
可选的,所述第二选择模块,具体用于:
当接收到指向目标服务端的数据流量时,对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
根据所述目标哈希值与每条所述备选传输路径上的出口加速节点对应的节点标识,确定目标出口加速节点;
在经过所述目标出口加速节点的所有备选传输路径中,选择所述网络传输质量最优的目标传输路径。
可选的,所述装置还包括:
发送模块,用于如果所述目标传输路径的网络传输质量处于预设的临界质量范围内,则向所属的入口加速节点的其它入口代理设备发送所述目标传输路径的目标路径标识,以使所述其它入口代理设备在预设时长内传输指向所述目标服务端的数据流量时,根据所述目标路径标识选择传输路径。
可选的,所述第一选择模块,具体用于:
如果所述目标服务端存在源IP地址一致性需求,则根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径。
第三方面,提供了一种入口代理设备,所述入口代理设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如第一方面所述的传输数据流量的方法。
第四方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如第一方面所述的传输数据流量的方法。
本发明实施例提供的技术方案带来的有益效果是:
本发明实施例中,入口代理设备探测到达目标服务端的所有传输路径的网络传输质量;入口代理设备根据网络传输质量在所有传输路径中选择并记录多条备选传输路径;当接收到指向目标服务端的数据流量时,入口代理设备根据数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;入口代理设备通过目标传输路径传输数据流量。这样,通过选择多条备选传输路径的方式,将传输路径的选择条件放宽,使得同一入口加速节点的不同入口代理设备在短时间内选出的多条备选传输路径有很大概率相同,再通过用户端标识来锁定实际使用的传输路径,保证了不同入口代理设备针对同一用户端的数据流量,在相同的备选范围内可以选出满足源IP地址一致性需求的传输路径,从而可以保证应用加速网络整体的网络传输质量。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种传输数据流量的场景架构示意图;
图2是本发明实施例提供的一种传输数据流量的方法流程图;
图3是本发明实施例提供的一种传输数据流量的装置结构示意图;
图4是本发明实施例提供的一种传输数据流量的装置结构示意图;
图5是本发明实施例提供的一种入口代理设备的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
本发明实施例提供了一种传输数据流量的方法,该方法的执行主体可以是应用加速网络的入口加速节点中任一入口代理设备,应用加速网络可以由多个加速节点组成,加速节点主要可以分为入口加速节点、中间加速节点和出口加速节点。
其中,入口加速节点可以是用于接收用户端发送的指向服务端的数据流量的网络节点,每个入口加速节点可以包括多台入口代理设备,多台入口代理设备可以均衡地负责到达入口加速节点的用户流量的传输处理。每台入口代理设备均可以按照预设的传输路径通过应用加速网络中的一级或多级中间加速节点(传输路径中也可能不存在中间加速节点),将接收到的用户端的数据流量传输至与服务端相连的最后一跳加速节点(即出口加速节点)处,再由出口加速节点将数据流量发送给接收端。图1为传输数据流量的场景架构示意图。
入口代理设备在传输数据流量的同时,还可以对应用加速网络中到达服务端的所有传输路径进行探测,并根据探测结果选择或修改预设的传输路径,以保证预设的传输路径始终为网络传输质量良好的路径。
入口代理设备可以包括处理器、存储器、收发器,处理器可以用于进行下述流程中执行传输数据流量的处理,存储器可以用于存储处理过程中需要的数据以及产生的数据,如备选传输路径、路径标识、节点标识等,收发器可以用于接收和发送处理过程中的相关数据,如接收数据流量,发送探测消息等。
下面将结合具体实施方式,对图2所示的处理流程进行详细的说明,内容可以如下:
步骤201,入口代理设备探测到达目标服务端的所有传输路径的网络传输质量。
在实施中,入口代理设备在工作状态下,可以按照预设的探测触发机制探 测其到达各个服务端的传输路径的网络传输质量。以目标服务端为例,每次探测到达目标服务端的传输路径时,入口代理设备可以先确定所有达到目标服务端的传输路径,然后通过向目标服务端发送探测消息的方式,探测这些传输路径的网络传输质量。此处,预设的探测触发机制可以多种多样,本实施例不进行具体限定,如可以按照预设间隔时长周期性触发探测(如每隔1分钟即探测一次),也可以由目标服务端的访问情况来触发探测(如预设时长内目标服务端的访问热度到达预设阈值即触发探测),还可以由各传输路径的历史网络传输质量来决定触发探测的时刻(如多次探测到传输路径的网络传输质量波动较大,即缩短探测的触发间隔,反之则扩大)。
可选的,探测到的网络传输质量可以由多个网络状态参数计算得到的数值的来体现,相应的,步骤201的处理可以如下:入口代理设备探测到达目标服务端的每条传输路径的网络状态参数;入口代理设备根据网络状态参数和每个网络状态参数对应的预设阈值,以及每个网络状态参数对应的质量影响权重,确定每条传输路径的网络传输质量值。
其中,网络状态参数至少包括传输时延、传输丢包率、传输路径上所有节点设备的负载和带宽使用率。
在实施中,针对到达目标服务端的每条传输路径,入口代理设备在探测其网络传输质量的过程中,可以探测每条传输路径当前的网络状态参数,网络状态参数可以至少包括传输时延、传输丢包率、传输路径上所有节点设备的负载和带宽使用率。这些网络状态参数可以是技术人员预先选定的,能够有效反映传输路径的网络传输质量,同时,每个网络状态参数各自可以对应有一个预设阈值和一个质量影响权重,只有当网络状态参数的大于相应的预设阈值时,传输路径才可以被用来传输数据流量,而质量影响权重可以数值化地反映各网络状态参数对网络传输质量的影响。故而,入口代理设备在探测到每条传输路径的网络状态参数后,可以根据网络状态参数和每个网络状态参数对应的预设阈值,以及每个网络状态参数对应的质量影响权重,确定每条传输路径的网络传输质量值。具体的,可以将一条传输路径的每个网络状态参数与各自对应的预设阈值相减,再将得到差值与各自对应的质量影响权重相乘,然后将所有乘积累加从而得到该传输路径的网络传输质量值。这样,通过参数数值化的方式,可以由多个网络状态参数更直观、便捷、准确地判断出每条传输路径的网络传 输质量的好坏。
步骤202,入口代理设备根据网络传输质量在所有传输路径中选择并记录多条备选传输路径。
在实施中,入口代理设备在探测了到达目标服务端的所有传输路径的网络传输质量之后,可以根据探测到的网络传输质量在所有传输路径中选择多条备选传输路径,并进行相应记录,以用来在得到下次探测结果前,通过备选传输路径中的一条或多条传输路径来传输指向目标服务端的数据流量。可以理解,为了保证后续数据流量的传输质量,多条备选传输路径应当时所有传输路径中网络传输质量最优的多条传输路径。
可选的,基于上述网络传输质量数值化的处理,步骤202中选择备选传输路径的处理可以存在如下几种方式:
方式一,入口代理设备对所有传输路径按网络传输质量值由高到低排序,选择排序靠前的预设数目条备选传输路径。
在实施中,入口代理设备在探测到所有传输路径的网络传输质量值之后,可以将多条传输路径按照网络传输质量值由高到低的顺序进行排列,然后选择排序靠前的预设数目条传输路径作为备选传输路径。这样,每次选择出的备选传输路径的数目一致,便于进行后续对备选传输路径的管理和选择。
方式二,入口代理设备将所有传输路径中网络传输质量值高于预设质量阈值的传输路径确定为备选传输路径。
在实施中,入口代理设备在探测到所有传输路径的网络传输质量值之后,可以在多条传输路径中筛选出网络传输质量值高于预设质量阈值的传输路径,并将这些传输路径确定为备选传输路径。这样,以预设质量阈值为筛选条件,可以保证选出的备选传输路径的网络传输质量较优。
方式三,入口代理设备将网络传输质量值与所有传输路径中最大网络传输质量值的差值处于预设偏差范围内的传输路径确定为备选传输路径。
在实施中,入口代理设备在探测到所有传输路径的网络传输质量值之后,可以先在多条传输路径的网络传输质量值中确定出最大网络传输质量值,然后筛选出网络传输质量值与该最大网络传输质量值的差值处于预设偏差范围内的传输路径作为备选传输路径。这样,可以保证在任何情况下均能选择出的可用的,且网络传输质量较优的备选传输路径。
步骤203,当接收到指向目标服务端的数据流量时,入口代理设备根据数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径。
在实施中,用户端通过应用加速网络向目标服务端发送数据流量时,应用加速网络中与目标服务端相连的入口加速节点中的某一入口代理设备可以接收到上述指向目标服务端的数据流量,并获取该数据流量中携带的用户端标识,该用户端标识可由入口代理设备获取到的、并用来区分不同用户的标识,具体可以是用户端的IP地址,也可以是用户端的设备编码,或者是登录用户端的用户账号等。之后,入口代理设备可以查询本地已记录的指向目标服务端的多条备选传输路径,再根据上述用户流量携带的用户端标识,在记录的多条备选传输路径中选择一条用于本次传输该数据流量的目标传输路径。
可选的,在选择目标传输路径时可以基于每条传输路径具备唯一的路径标识进行,相应的,步骤203的处理可以如下:当接收到指向目标服务端的数据流量时,入口代理设备对数据流量携带的用户端标识进行哈希计算,得到目标哈希值;入口代理设备根据目标哈希值与每条备选传输路径对应的路径标识,在多条备选传输路径中选择目标传输路径。
在实施中,入口代理设备在接收到指向目标服务端的数据流量时,可以获取该数据流量中携带的用户端标识,并对用户端标识进行哈希计算以得到目标哈希值。之后,入口代理设备可以根据目标哈希值与每条备选传输路径对应的路径标识,在多条备选传输路径中选择目标传输路径。具体的,可以在多条备选传输路径中选择路径标识与目标哈希值最接近的一条传输路径作为目标传输路径。当然,使用上述目标哈希值和路径标识选择目标传输路径的方式多种多样,本实施例不对此进行限定。这样,对于短时间内同一用户端多次发来的数据流量,入口代理设备有很大概率会通过同一条传输路径进行传输。
可选的,在选择目标传输路径时可以基于每条传输路径的出口加速节点的节点标识进行,相应的,步骤203的处理可以如下:当接收到指向目标服务端的数据流量时,入口代理设备对数据流量携带的用户端标识进行哈希计算,得到目标哈希值;入口代理设备根据目标哈希值与每条备选传输路径上的出口加速节点对应的节点标识,确定目标出口加速节点;入口代理设备在经过目标出口加速节点的所有备选传输路径中,选择网络传输质量最优的目标传输路径。
在实施中,入口代理设备在接收到指向目标服务端的数据流量时,可以获 取该数据流量中携带的用户端标识,并对用户端标识进行哈希计算以得到目标哈希值。之后,入口代理设备可以根据目标哈希值与每条备选传输路径上的出口加速节点对应的节点标识,确定目标出口加速节点。具体的,可以在多条备选传输路径包含的所有出口加速节点中选择节点标识与目标哈希值最接近的一个出口加速节点作为目标出口加速节点。当然,使用上述目标哈希值和节点标识选择目标出口加速节点的方式多种多样,本实施例不对此进行限定。进而,入口代理设备可以在多条备选传输路径中选择经过上述目标出口加速节点的,且网络传输质量最优的目标传输路径。这样,对于短时间内同一用户端多次发来的数据流量,有很大概率会通过同一个出口加速节点将数据流量传输至服务端。
步骤204,入口代理设备通过目标传输路径传输数据流量。
在实施中,入口代理设备在指向目标服务端的多条备选传输路径中选择了目标传输路径后,可以通过该目标传输路径向目标服务端发送本次接收到的指向目标服务端的数据流量。另外,入口代理设备在传输数据流量之后,也可以将目标传输路径的路径标识和用户端标识对应存储,并设置一定的存储时长,这样,如果在该存储时长内,入口代理设备再次接收到携带有相同用户端标识,且同样指向目标服务端的数据流量,则可以直接选择目标传输路径传输该数据流量,需要说明的是,本次传输将不会更新上述路径标识和用户端标识的对应关系的存储时长。
可选的,如果选择的目标传输路径在下次探测时可能无法称为备选传输路径,则可以广播相应的路径标识,相应的处理可以如下:如果目标传输路径的网络传输质量处于预设的临界质量范围内,入口代理设备则向其所属的入口加速节点的其它入口代理设备发送目标传输路径的目标路径标识,以使其它入口代理设备在预设时长内传输指向目标服务端的数据流量时,根据目标路径标识选择传输路径。
在实施中,入口代理设备在多条备选传输路径中选择了目标传输路径之后,如果发现目标传输路径的网络传输质量处于预设的临界质量范围内,即在探测结果出现一定程度的误差的情况下,再次探测时可能无法探测到目标传输路径,入口代理设备则可以向其所属的入口加速节点的其它入口代理设备发送目标传输路径的目标路径标识,具体发送的方式可以采用广播的形式。这样,其它入 口代理设备在获取到上述目标路径标识后,如果在预设时长内需要传输指向目标服务端的数据流量,则可以根据上述目标路径标识选择目标传输路径。不难理解,对于网络传输质量处于预设的临界质量范围内的传输路径,其它入口代理设备在探测后选择备选传输路径时,很可能将其排除在外,故而在基于用户端标识挑选传输路径时,选出的传输路径无法保持相同。
可选的,可以对不同服务端的数据流量区别处理,相应的,步骤202的处理可以如下:如果目标服务端存在源IP地址一致性需求,入口代理设备则根据网络传输质量在所有传输路径中选择多条备选传输路径。
在实施中,入口代理设备中可以记录有存在源IP地址一致性需求的服务端的列表,该列表可以由技术人员预先在配置在入口代理设备上,列表中的每个服务端均要求短时间内同一用户端的数据流量的源地址一致。进而,入口代理设备在探测到达目标服务端的所有传输路径的网络传输质量后,可以根据上述列表判断目标服务端是否存在源IP地址一致性需求,如果存在,入口代理设备则可以根据网络传输质量在上述所有传输路径中选择多条备选传输路径,如果不存在,入口代理设备则可以在上述所有传输路径中选择网络传输质量最优的一条传输路径,并后续使用该传输路径传输指向目标服务端的数据流量。
本发明实施例中,入口代理设备探测到达目标服务端的所有传输路径的网络传输质量;入口代理设备根据网络传输质量在所有传输路径中选择并记录多条备选传输路径;当接收到指向目标服务端的数据流量时,入口代理设备根据数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;入口代理设备通过目标传输路径传输数据流量。这样,通过选择多条备选传输路径的方式,将传输路径的选择条件放宽,使得同一入口加速节点的不同入口代理设备在短时间内选出的多条备选传输路径有很大概率相同,再通过用户端标识来锁定实际使用的传输路径,保证了不同入口代理设备针对同一用户端的数据流量,在相同的备选范围内可以选出满足源IP地址一致性需求的传输路径,从而可以保证应用加速网络整体的网络传输质量。
基于相同的技术构思,本发明实施例还提供了一种传输数据流量的装置,如图3所示,所述装置包括:
探测模块301,用于探测到达目标服务端的所有传输路径的网络传输质量;
第一选择模块302,用于根据所述网络传输质量在所述所有传输路径中选择并记录多条备选传输路径;
第二选择模块303,用于当接收到指向所述目标服务端的数据流量时,根据所述数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;
传输模块304,用于通过所述目标传输路径传输所述数据流量。
可选的,所述探测模块301,具体用于:
探测到达目标服务端的每条传输路径的网络状态参数,其中,所述网络状态参数至少包括传输时延、传输丢包率、传输路径上所有节点设备的负载和带宽使用率;
根据所述网络状态参数和每个所述网络状态参数对应的预设阈值,以及每个所述网络状态参数对应的质量影响权重,确定每条所述传输路径的网络传输质量值。
可选的,所述第一选择模块302,具体用于:
对所述所有传输路径按所述网络传输质量值由高到低排序,选择排序靠前的预设数目条备选传输路径;或者,
将所述所有传输路径中所述网络传输质量值高于预设质量阈值的传输路径确定为备选传输路径;或者,
将网络传输质量值与所述所有传输路径中最大网络传输质量值的差值处于预设偏差范围内的传输路径确定为备选传输路径。
可选的,所述第二选择模块303,具体用于:
当接收到指向目标服务端的数据流量时,对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
根据所述目标哈希值与每条所述备选传输路径对应的路径标识,在所述多条备选传输路径中选择目标传输路径。
可选的,所述第二选择模块303,具体用于:
当接收到指向目标服务端的数据流量时,对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
根据所述目标哈希值与每条所述备选传输路径上的出口加速节点对应的节点标识,确定目标出口加速节点;
在经过所述目标出口加速节点的所有备选传输路径中,选择所述网络传输质量最优的目标传输路径。
可选的,如图4所示,所述装置还包括:
发送模块305,用于如果所述目标传输路径的网络传输质量处于预设的临界质量范围内,则向所属的入口加速节点的其它入口代理设备发送所述目标传输路径的目标路径标识,以使所述其它入口代理设备在预设时长内传输指向所述目标服务端的数据流量时,根据所述目标路径标识选择传输路径。
可选的,所述第一选择模块302,具体用于:
如果所述目标服务端存在源IP地址一致性需求,则根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径。
本发明实施例中,入口代理设备探测到达目标服务端的所有传输路径的网络传输质量;入口代理设备根据网络传输质量在所有传输路径中选择并记录多条备选传输路径;当接收到指向目标服务端的数据流量时,入口代理设备根据数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;入口代理设备通过目标传输路径传输数据流量。这样,通过选择多条备选传输路径的方式,将传输路径的选择条件放宽,使得同一入口加速节点的不同入口代理设备在短时间内选出的多条备选传输路径有很大概率相同,再通过用户端标识来锁定实际使用的传输路径,保证了不同入口代理设备针对同一用户端的数据流量,在相同的备选范围内可以选出满足源IP地址一致性需求的传输路径,从而可以保证应用加速网络整体的网络传输质量。
需要说明的是:上述实施例提供的传输数据流量的装置在传输数据流量时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的传输数据流量的装置与传输数据流量的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
图5是本发明实施例提供的入口代理设备的结构示意图。该入口代理设备500可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处 理器522(例如,一个或一个以上处理器)和存储器532,一个或一个以上存储应用程序542或数据544的存储介质530(例如一个或一个以上海量存储设备)。其中,存储器532和存储介质530可以是短暂存储或持久存储。存储在存储介质530的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对入口代理设备500中的一系列指令操作。更进一步地,中央处理器522可以设置为与存储介质530通信,在入口代理设备500上执行存储介质530中的一系列指令操作。
入口代理设备500还可以包括一个或一个以上电源529,一个或一个以上有线或无线网络接口550,一个或一个以上输入输出接口558,一个或一个以上键盘556,和/或,一个或一个以上操作系统541,例如Windows Server,Mac OS X,Unix,Linux,FreeBSD等等。
入口代理设备500可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行上述传输数据流量的指令。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (16)

  1. 一种传输数据流量的方法,其特征在于,所述方法包括:
    入口代理设备探测到达目标服务端的所有传输路径的网络传输质量;
    所述入口代理设备根据所述网络传输质量在所述所有传输路径中选择并记录多条备选传输路径;
    当接收到指向所述目标服务端的数据流量时,所述入口代理设备根据所述数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;
    所述入口代理设备通过所述目标传输路径传输所述数据流量。
  2. 根据权利要求1所述的方法,其特征在于,所述入口代理设备探测到达目标服务端的所有传输路径的网络传输质量,包括:
    所述入口代理设备探测到达目标服务端的每条传输路径的网络状态参数,其中,所述网络状态参数至少包括传输时延、传输丢包率、传输路径上所有节点设备的负载和带宽使用率;
    所述入口代理设备根据所述网络状态参数和每个所述网络状态参数对应的预设阈值,以及每个所述网络状态参数对应的质量影响权重,确定每条所述传输路径的网络传输质量值。
  3. 根据权利要求2所述的方法,其特征在于,所述入口代理设备根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径,包括:
    所述入口代理设备对所述所有传输路径按所述网络传输质量值由高到低排序,选择排序靠前的预设数目条备选传输路径;或者,
    所述入口代理设备将所述所有传输路径中所述网络传输质量值高于预设质量阈值的传输路径确定为备选传输路径;或者,
    所述入口代理设备将网络传输质量值与所述所有传输路径中最大网络传输质量值的差值处于预设偏差范围内的传输路径确定为备选传输路径。
  4. 根据权利要求1所述的方法,其特征在于,所述当接收到指向所述目标服务端的数据流量时,所述入口代理设备根据所述数据流量携带的用户端标识, 在所述多条备选传输路径中选择目标传输路径,包括:
    当接收到指向目标服务端的数据流量时,所述入口代理设备对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
    所述入口代理设备根据所述目标哈希值与每条所述备选传输路径对应的路径标识,在所述多条备选传输路径中选择目标传输路径。
  5. 根据权利要求1所述的方法,其特征在于,所述当接收到指向所述目标服务端的数据流量时,所述入口代理设备根据所述数据流量携带的用户端标识,在所述多条备选传输路径中选择目标传输路径,包括:
    当接收到指向目标服务端的数据流量时,所述入口代理设备对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
    所述入口代理设备根据所述目标哈希值与每条所述备选传输路径上的出口加速节点对应的节点标识,确定目标出口加速节点;
    所述入口代理设备在经过所述目标出口加速节点的所有备选传输路径中,选择所述网络传输质量最优的目标传输路径。
  6. 根据权利要求1所述的方法,其特征在于,所述在所述多条备选传输路径中选择目标传输路径之后,还包括:
    如果所述目标传输路径的网络传输质量处于预设的临界质量范围内,所述入口代理设备则向其所属的入口加速节点的其它入口代理设备发送所述目标传输路径的目标路径标识,以使所述其它入口代理设备在预设时长内传输指向所述目标服务端的数据流量时,根据所述目标路径标识选择传输路径。
  7. 根据权利要求1所述的方法,其特征在于,所述入口代理设备根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径,包括:
    如果所述目标服务端存在源IP地址一致性需求,所述入口代理设备则根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径。
  8. 一种传输数据流量的装置,其特征在于,所述装置包括:
    探测模块,用于探测到达目标服务端的所有传输路径的网络传输质量;
    第一选择模块,用于根据所述网络传输质量在所述所有传输路径中选择并记录多条备选传输路径;
    第二选择模块,用于当接收到指向所述目标服务端的数据流量时,根据所述数据流量携带的用户端标识,在记录的多条备选传输路径中选择目标传输路径;
    传输模块,用于通过所述目标传输路径传输所述数据流量。
  9. 根据权利要求8所述的装置,其特征在于,所述探测模块,具体用于:
    探测到达目标服务端的每条传输路径的网络状态参数,其中,所述网络状态参数至少包括传输时延、传输丢包率、传输路径上所有节点设备的负载和带宽使用率;
    根据所述网络状态参数和每个所述网络状态参数对应的预设阈值,以及每个所述网络状态参数对应的质量影响权重,确定每条所述传输路径的网络传输质量值。
  10. 根据权利要求9所述的装置,其特征在于,所述第一选择模块,具体用于:
    对所述所有传输路径按所述网络传输质量值由高到低排序,选择排序靠前的预设数目条备选传输路径;或者,
    将所述所有传输路径中所述网络传输质量值高于预设质量阈值的传输路径确定为备选传输路径;或者,
    将网络传输质量值与所述所有传输路径中最大网络传输质量值的差值处于预设偏差范围内的传输路径确定为备选传输路径。
  11. 根据权利要求8所述的装置,其特征在于,所述第二选择模块,具体用于:
    当接收到指向目标服务端的数据流量时,对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
    根据所述目标哈希值与每条所述备选传输路径对应的路径标识,在所述多条备选传输路径中选择目标传输路径。
  12. 根据权利要求8所述的装置,其特征在于,所述第二选择模块,具体用于:
    当接收到指向目标服务端的数据流量时,对所述数据流量携带的用户端标识进行哈希计算,得到目标哈希值;
    根据所述目标哈希值与每条所述备选传输路径上的出口加速节点对应的节点标识,确定目标出口加速节点;
    在经过所述目标出口加速节点的所有备选传输路径中,选择所述网络传输质量最优的目标传输路径。
  13. 根据权利要求8所述的装置,其特征在于,所述装置还包括:
    发送模块,用于如果所述目标传输路径的网络传输质量处于预设的临界质量范围内,则向所属的入口加速节点的其它入口代理设备发送所述目标传输路径的目标路径标识,以使所述其它入口代理设备在预设时长内传输指向所述目标服务端的数据流量时,根据所述目标路径标识选择传输路径。
  14. 根据权利要求8所述的装置,其特征在于,所述第一选择模块,具体用于:
    如果所述目标服务端存在源IP地址一致性需求,则根据所述网络传输质量在所述所有传输路径中选择多条备选传输路径。
  15. 一种入口代理设备,其特征在于,所述入口代理设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至7任一所述的传输数据流量的方法。
  16. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如权利要求1至7任一所述的传输数据流量的方法。
PCT/CN2018/119885 2018-10-25 2018-12-07 一种传输数据流量的方法和装置 WO2020082522A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/964,397 US20210051210A1 (en) 2018-10-25 2018-12-07 Method and device for transmitting data traffic
EP18938150.2A EP3869750A4 (en) 2018-10-25 2018-12-07 DATA TRAFFIC TRANSMISSION APPARATUS AND METHOD

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811251184.3 2018-10-25
CN201811251184.3A CN109302346B (zh) 2018-10-25 2018-10-25 一种传输数据流量的方法和装置

Publications (1)

Publication Number Publication Date
WO2020082522A1 true WO2020082522A1 (zh) 2020-04-30

Family

ID=65157965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119885 WO2020082522A1 (zh) 2018-10-25 2018-12-07 一种传输数据流量的方法和装置

Country Status (4)

Country Link
US (1) US20210051210A1 (zh)
EP (1) EP3869750A4 (zh)
CN (1) CN109302346B (zh)
WO (1) WO2020082522A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI739616B (zh) * 2020-09-30 2021-09-11 中華電信股份有限公司 配置路由路徑的方法和電子系統
CN114928568A (zh) * 2022-06-16 2022-08-19 中国联合网络通信集团有限公司 一种路由路径选择方法、装置及计算机可读存储介质

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765163B (zh) * 2019-10-17 2020-07-14 广州商品清算中心股份有限公司 一种大数据处理流程的执行计划生成方法
US11463536B2 (en) 2020-08-28 2022-10-04 Teso LT, UAB Curating proxy server pools
CN112671649A (zh) * 2020-12-22 2021-04-16 广州技象科技有限公司 基于物联网传输故障检测的路径选择方法及装置
WO2022141021A1 (zh) * 2020-12-29 2022-07-07 杭州趣链科技有限公司 一种文件存储方法、装置、系统以及设备
CN113098766A (zh) * 2021-04-07 2021-07-09 北京字跳网络技术有限公司 一种通信方法及装置
CN115460572A (zh) * 2021-06-08 2022-12-09 腾讯科技(深圳)有限公司 应用程序加速方法、装置、设备及存储介质
CN113300914A (zh) * 2021-06-28 2021-08-24 北京字跳网络技术有限公司 网络质量监测方法、装置、系统、电子设备和存储介质
CN113347089B (zh) * 2021-07-05 2022-09-09 北京字跳网络技术有限公司 软件定义网络sdn系统、网络配置方法、装置和设备
CN113726749B (zh) * 2021-08-13 2023-04-28 山西鑫博睿科技有限公司 基于大数据和智慧安防的数据管理系统
CN113872824B (zh) * 2021-08-19 2023-04-07 网宿科技股份有限公司 Cdn网络质量检测方法、系统、服务器及存储介质
CN113438172B (zh) * 2021-08-26 2021-12-10 北京华云安信息技术有限公司 基于多级节点网络的数据传输方法和装置
CN114285791B (zh) * 2021-12-17 2023-07-07 上海绚显科技有限公司 数据传输方法、装置、计算机设备及存储介质
CN116367274A (zh) * 2021-12-28 2023-06-30 北京小米移动软件有限公司 数据通信方法、装置、存储介质及电子设备
CN114612049B (zh) * 2022-05-11 2022-08-05 弥费实业(上海)有限公司 路径生成方法、装置、计算机设备和存储介质
CN116471225B (zh) * 2023-06-12 2023-08-18 中仪英斯泰克科技有限公司 组播流传输路径的优选方法及装置、电子设备、存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9094464B1 (en) * 2014-12-18 2015-07-28 Limelight Networks, Inc. Connection digest for accelerating web traffic
CN106656800A (zh) * 2017-02-21 2017-05-10 网宿科技股份有限公司 一种路径选取方法及系统、网络加速节点及网络加速系统
CN107026793A (zh) * 2017-03-31 2017-08-08 腾讯科技(深圳)有限公司 路由方法、装置及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088413B (zh) * 2011-03-02 2012-07-04 华为技术有限公司 一种网络流量分流方法、网络节点及系统
CN103581120B (zh) * 2012-07-24 2018-04-20 阿里巴巴集团控股有限公司 一种识别用户风险的方法和装置
CN104348717B (zh) * 2013-08-02 2018-05-11 新华三技术有限公司 报文转发方法和装置
US10264091B2 (en) * 2014-02-19 2019-04-16 Level 3 Communications, Llc Proxy server failover and load clustering
CN107370672A (zh) * 2016-05-11 2017-11-21 华为技术有限公司 路径选择的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9094464B1 (en) * 2014-12-18 2015-07-28 Limelight Networks, Inc. Connection digest for accelerating web traffic
US20160182670A1 (en) * 2014-12-18 2016-06-23 Limelight Networks, Inc. Acceleration of web traffic using tcp hand-off
CN106656800A (zh) * 2017-02-21 2017-05-10 网宿科技股份有限公司 一种路径选取方法及系统、网络加速节点及网络加速系统
CN107026793A (zh) * 2017-03-31 2017-08-08 腾讯科技(深圳)有限公司 路由方法、装置及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3869750A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI739616B (zh) * 2020-09-30 2021-09-11 中華電信股份有限公司 配置路由路徑的方法和電子系統
CN114928568A (zh) * 2022-06-16 2022-08-19 中国联合网络通信集团有限公司 一种路由路径选择方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
CN109302346B (zh) 2020-09-18
EP3869750A1 (en) 2021-08-25
CN109302346A (zh) 2019-02-01
EP3869750A4 (en) 2021-12-22
US20210051210A1 (en) 2021-02-18

Similar Documents

Publication Publication Date Title
WO2020082522A1 (zh) 一种传输数据流量的方法和装置
US20180262533A1 (en) Monitoring Device Data and Gateway Data
WO2019120187A1 (en) Non-intrusive mechanism to measure network function packet processing delay
CN113315744A (zh) 可编程交换机、流量统计方法、防御方法和报文处理方法
CN108965066B (zh) 一种对传输路径进行探测的方法和装置
US7908355B2 (en) Method for improving network server load balancing
EP3375145B1 (en) Network-connectivity detection
CN104426881A (zh) 一种检测恶意行为的方法及装置
US6697751B2 (en) Apparatus for assessing communication equipment
US20220255831A1 (en) Method and apparatus for detecting link status
CN104519069A (zh) 一种拦截资源请求的方法和装置
CN113706305A (zh) 一种基于区块链的数字货币网络交易的初始节点判断方法和系统
CN113709236A (zh) 一种基于区块链的数字货币交易网络中初始节点对应的邻居节点的判断方法和系统
CN110380981B (zh) 一种流量分发方法及设备
EP4066527A1 (en) Performing distributed dynamic frequency selection using a shared cache
CN111082996A (zh) 一种带内监控软件的自动配置方法、装置和介质
US20230388896A1 (en) Centralized solution to high-throughput topology optimization for wireless mesh networks
CN110838950A (zh) 一种网络性能抖动值的确定方法及装置
US10200445B2 (en) Method for analyzing performance of network application program in software defined networking environment, apparatus therefor, and computer program therefor
CN113301003B (zh) 信息、数据链路检测方法、设备及存储介质
Lrt et al. Capturing collusive interest flooding attacks signal: A novel Malaysia's state named-data networking topology (MY-NDN)
KR20190114126A (ko) 메시지의 처리 완료 지연 시간을 기초로 스위치로의 메시지 송신을 제어하는 sdn 컨트롤러 및 그 방법
JP2003258910A (ja) 不正アクセス経路解析システム及び不正アクセス経路解析方法
US10162733B2 (en) Debugging failure of a service validation test
CN112825504B (zh) 一种数据监测方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18938150

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018938150

Country of ref document: EP

Effective date: 20210521