A response time determination, traffic migration method, device, equipment and medium

By sending detection requests in multi-line and multi-IP computer rooms and recording response time, determining the optimal line, the problem of network instability is solved, and efficient traffic scheduling and communication quality are improved.

CN115442840BActive Publication Date: 2025-08-12CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210993136.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-18
Publication Date
2025-08-12
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

In multi-line and multi-IP computer rooms, the prior art fails to predict the scheduled lines in advance, resulting in network instability and affecting the quality of communication transmission.

Method used

By sending a detection request carrying operator line identification to a multi-line and multi-IP computer room, recording the response time, determining the optimal route, and migrating traffic to the route with the smallest response time.

Benefits of technology

Improve network stability and communication transmission quality, ensure traffic scheduling to the optimal line, and reduce user request time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442840B_ABST
    Figure CN115442840B_ABST
Patent Text Reader

Abstract

The present application discloses a response time determination and traffic migration method, apparatus, equipment and medium. In an embodiment of the present application, for each operator, the response time of the operator's line can be determined based on the first time of sending a probe request carrying the identifier of the operator's line and the second time of receiving a response request carrying the identifier of the operator's line. This is more conducive to subsequently determining which operator's line to dispatch the traffic to based on the response time corresponding to each operator's line, thereby ensuring network stability and communication transmission quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a response time determination and traffic migration method, device, equipment and medium. Background Art

[0002] China has multiple carriers, including China Telecom, China Mobile, China Unicom, China Education Network, and some large private IDC operators. Each operator maintains its own network autonomous domain and autonomous system (AS) number. This complex, multi-carrier environment creates significant obstacles for inter-carrier communication. To address this issue, multi-line computer rooms have emerged. These include two types: multi-line single-Internet Protocol (IP) computer rooms, known as Border Gateway Protocol (BGP), and multi-line multi-IP computer rooms.

[0003] Since the rental price and bandwidth fees of multi-line single-IP data centers are relatively expensive, especially in high-traffic scenarios such as Content Delivery Network (CDN), the bandwidth cost is too high, and the complexity and investment cost of implementing multi-line single-IP data centers are much higher, most people use multi-line multi-IP data centers to solve the problem of slow interconnection between operators.

[0004] However, if a multi-line multi-IP computer room is used, the access traffic of different lines in the node server in the multi-line multi-IP computer room may be unbalanced. Different operators use different lines, so it is necessary to schedule traffic between different lines to fully utilize the bandwidth of each line. Currently, when scheduling traffic between lines, the node server with larger traffic volume can be identified first, and then the user IP requests corresponding to part of the traffic in the node server with larger traffic volume can be determined. Then, the Linux kernel routing table is adjusted to randomly redirect some user IP requests to other lines. However, this method does not predict in advance the response time when redirecting these user IP requests to other lines. Therefore, the other lines that are redirected may not be the optimal lines, which will cause network instability, thereby affecting the communication transmission quality between the node server and the user client. Summary of the Invention

[0005] The present application provides a response time determination and traffic migration method, device, equipment and medium to solve the problem in the prior art that the scheduled line is not predicted in advance, the optimal line cannot be selected, and the network may be unstable, affecting the communication transmission quality.

[0006] The present application provides a response time determination method, the method comprising:

[0007] For any operator, a detection request carrying the identification of the operator's line is sent to the multi-line multi-IP computer room, and the first time of sending the detection request is recorded; a response request carrying the identification of the operator's line is received from the multi-line multi-IP computer room, and the second time of receiving the response request is recorded; based on the difference between the second time and the first time, the response time of the line with the identification of the operator is determined.

[0008] Furthermore, before sending the detection request carrying the identifier of the line of the operator to the multi-line multi-IP computer room, the method further includes:

[0009] Determine at least one target virtual IP address corresponding to the operator based on the pre-stored correspondence between the operator and the virtual IP address;

[0010] The sending of a detection request carrying the identifier of the line of the operator to the multi-line multi-IP computer room includes:

[0011] A detection request carrying the identifier of the line of the operator is sent to any target virtual IP address of the at least one target virtual IP address of the multi-line multi-IP computer room.

[0012] Furthermore, the detection request is a Hypertext Transfer Protocol HTTP request.

[0013] Furthermore, the identifier of the line of the operator is obtained from the service type domain TOS field in the response request.

[0014] Furthermore, the receiving of the response request carrying the identifier of the line of the operator sent by the multi-line multi-IP computer room includes:

[0015] A response request carrying the identifier of the line of the operator is received, which is sent by the target gateway corresponding to the operator in the multi-line multi-IP computer room.

[0016] The present application also provides a method for determining traffic migration, the method comprising:

[0017] Determine the operator's lines to which traffic will be migrated;

[0018] Based on the saved response time of each operator's line, the line of another operator with the shortest response time is selected as the target line, wherein the response time of each operator's line is determined by the difference between a first time of sending a probe request carrying an identifier of the operator's line to the multi-line multi-IP computer room and a second time of receiving a response request carrying the identifier of the operator's line from the multi-line multi-IP computer room;

[0019] Migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

[0020] The present application also provides a response time determination device, which includes:

[0021] The processing module is configured to send a probe request carrying the identifier of the operator's line to the multi-line multi-IP computer room for any operator, and record a first time when the probe request is sent; receive a response request carrying the identifier of the operator's line returned by the multi-line multi-IP computer room, and record a second time when the response request is received;

[0022] The first determining module is configured to determine a response time of the identified line of the operator according to a difference between the second time and the first time.

[0023] Furthermore, the processing module is further configured to determine at least one target virtual IP address corresponding to the operator based on a pre-stored correspondence between the operator and the virtual IP address;

[0024] The processing module is specifically configured to send a detection request carrying the identifier of the line of the operator to any one of the at least one target virtual IP address of the multi-line multi-IP computer room.

[0025] Furthermore, the processing module is configured to receive a response request carrying an identifier of the line of the operator, which is sent by a target gateway corresponding to the operator in the multi-line multi-IP computer room.

[0026] The present application also provides a flow migration device, which includes:

[0027] A second determination module is configured to determine the line of the operator to which traffic is to be migrated; based on the saved response time of each operator line, the line of another operator with the shortest response time is selected as the target line, wherein the response time of each operator line is determined based on the difference between a first time of sending a probe request carrying the identifier of the operator line to the multi-line multi-IP computer room and a second time of receiving a response request carrying the identifier of the operator line sent by the multi-line multi-IP computer room;

[0028] The migration module is used to migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

[0029] The present application also provides an electronic device, which includes a processor, and the processor is used to implement the steps of any of the above-mentioned response time determination methods when executing a computer program stored in a memory.

[0030] The present application also provides a computer-readable storage medium storing a computer program executable by a terminal. When the program runs on the terminal, the terminal executes the steps of any one of the above-mentioned response time determination methods.

[0031] The present application also provides an electronic device, which includes a processor, and the processor is used to implement the steps of the traffic migration method as described above when executing a computer program stored in a memory.

[0032] The present application also provides a computer-readable storage medium storing a computer program executable by a terminal. When the program runs on the terminal, the terminal executes the steps of the above-mentioned traffic migration method.

[0033] In an embodiment of the present application, for any operator, a probe request carrying the identifier of the operator's line is sent to a multi-line multi-IP computer room, and the first time of sending the probe request is recorded. A response request carrying the identifier of the operator's line returned by the multi-line multi-IP computer room is received, and the second time of receiving the response request is recorded. Based on the difference between the second time and the first time, the response time of the operator's identified line is determined. Since, in an embodiment of the present application, for each operator, the response time of the operator's line can be determined based on the first time of sending the probe request carrying the identifier of the operator's line and the second time of receiving the response request carrying the identifier of the operator's line, it is more conducive to subsequently determining which operator's line to dispatch traffic to based on the response time corresponding to each operator's line, thereby ensuring network stability and communication transmission quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0035] Figure 1 A schematic diagram of a response time determination process provided in some embodiments of the present application;

[0036] Figure 2 A schematic diagram illustrating the relationship between electronic devices deployed in various AS domains and multi-line multi-IP computer rooms provided in some embodiments of the present application;

[0037] Figure 3 A schematic diagram of a process for determining the response time of lines of various operators provided in some embodiments of the present application;

[0038] Figure 4 A schematic diagram of a traffic migration process provided in some embodiments of the present application;

[0039] Figure 5 A schematic diagram showing the response time of lines of various operators provided in some embodiments of the present application;

[0040] Figure 6 A schematic diagram of the structure of a response time determination device provided in some embodiments of the present application;

[0041] Figure 7 A schematic structural diagram of a flow migration device provided in some embodiments of the present application;

[0042] Figure 8 A schematic structural diagram of an electronic device provided in some embodiments of the present application;

[0043] Figure 9 A schematic structural diagram of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0044] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0045] In order to accurately determine the response time corresponding to each operator's line, embodiments of the present application provide a response time determination method, apparatus, device, and medium.

[0046] In an embodiment of the present application, for any operator, a probe request carrying the identification of the operator's line is sent to the multi-line multi-IP computer room, and the first time of sending the probe request is recorded. When a response request carrying the identification of the operator's line is returned by the multi-line multi-IP computer room, the second time of receiving the response request is recorded. Based on the difference between the second time and the first time, the response time of the line with the identification of the operator is determined.

[0047] Figure 1A schematic diagram of a response time determination process provided in some embodiments of the present application includes the following steps:

[0048] S101: For any operator, send a probe request carrying the identifier of the operator's line to a multi-line multi-IP computer room, and record the first time the probe request is sent; receive a response request carrying the identifier of the operator's line returned by the multi-line multi-IP computer room, and record the second time the response request is received;

[0049] The response time determination method provided in the embodiments of the present application is applied to electronic devices, which may be smart terminals, PCs, or servers, and each AS domain corresponds to an electronic device. One operator in a region corresponds to one AS domain. For example, one AS domain corresponds to one telecom operator in Beijing, one AS domain corresponds to one Unicom operator in Beijing, one AS domain corresponds to one telecom operator in Tianjin, and so on.

[0050] For convenience, this application will be described below with respect to an electronic device deployed in any AS area.

[0051] In order to determine the response time corresponding to each operator's line, in an embodiment of the present application, first, for any operator, a detection request carrying the identifier of the operator's line is sent to the multi-line multi-IP computer room, so that after the multi-line multi-IP computer room receives the detection request, it responds according to the detection request and records the first time of sending the detection request. Among them, for each operator, the electronic device can send a detection request carrying the identifier of the operator's line to the multi-line multi-IP computer room, and can also send multiple detection requests carrying the identifier of the operator's line to the multi-line multi-IP computer room. Among them, one operator's line corresponds to one identifier, and the identifiers of the lines of each operator are different. The identifier of each operator's line can be a value in the range of 10-63. Specifically, which operator's line corresponds to which identifier can be set according to demand, as long as the lines can be distinguished.

[0052] It should be noted that electronic equipment and multi-line multi-IP computer rooms can interact through the lines of each operator. For example, the Beijing telecom operator can send a detection request carrying the identification of the telecom operator's line to the multi-line multi-IP computer room based on the telecom operator's line. The Beijing telecom operator can also send a detection request carrying the identification of the Unicom operator's line to the multi-line multi-IP computer room based on the Unicom operator's line.

[0053] Figure 2 The diagram of the relationship between the electronic devices deployed in each AS domain and the multi-line multi-IP computer room provided in some embodiments of this application is now directed to Figure 2 Provide explanation.

[0054] In an embodiment of the present application, a corresponding identifier is also set in advance for each AS domain, specifically including: an AS domain identified as AS100, an AS domain identified as AS200, and an AS domain identified as AS300, etc. For each AS domain, an electronic device is deployed in the AS domain, and each electronic device is connected to a core switch, and the core switch is connected to a multi-line multi-IP computer room based on the lines corresponding to each operator, wherein the lines corresponding to each operator include lines corresponding to telecom operators, lines corresponding to Unicom operators, and lines corresponding to mobile operators, etc.

[0055] In an embodiment of the present application, each time an electronic device sends a probe request carrying the identifier of the operator's line to a multi-line multi-IP computer room, the multi-line multi-IP computer room will send a response request to the electronic device, wherein the response request can be an IP request. In order to facilitate determining which probe request sent by the electronic device each response request sent by the multi-line multi-IP computer room is a response to, the response request can carry an identifier consistent with the identifier of the operator's line carried in the corresponding probe request.

[0056] For each operator, in order to facilitate determination of the response time corresponding to the line of the operator, after receiving the response request carrying the identifier of the line of the operator, it is also necessary to record the second time when the response request is received.

[0057] S102: For any operator, determine the response time of the identified line of the operator according to the difference between the second time corresponding to the operator and the first time corresponding to the operator.

[0058] In order to determine the response time corresponding to the line of each operator, in an embodiment of the present application, for each operator, the response time of the identified line of the operator can be determined based on the difference between the first time of sending the probe request and the second time of receiving the response request.

[0059] For each operator, if an electronic device sends a detection request carrying the identification of the operator's line to a multi-line multi-IP computer room, then the difference between the first time the electronic device sends the detection request carrying the identification of the operator's line to the multi-line multi-IP computer room and the second time the response request carrying the identification of the operator's line sent by the multi-line multi-IP computer room can be directly determined as the response time of the line with the identification of the operator.

[0060] For each operator, if the electronic device sends multiple detection requests carrying the identification of the operator's line to the multi-line multi-IP computer room, then after determining the difference between the first time when the electronic device sends each detection request carrying the identification of the operator's line to the multi-line multi-IP computer room, and the second time when the multi-line multi-IP computer room receives each response request carrying the identification of the operator's line, the response time corresponding to the operator's line each time is determined, and then the average of the response time corresponding to the operator's line each time is determined as the final response time corresponding to the operator's line.

[0061] Specifically, the priority order of each operator can be pre-defined, and then within the preset time length, detection requests carrying the line identification of each operator can be sent to the multi-line multi-IP computer room in order from high to low priority. The preset time length can be 30 minutes, 1 hour, etc. Specifically, the preset time length can be set according to demand.

[0062] Since, in an embodiment of the present application, for each operator, the response time of the operator's line is determined based on the first time of sending a probe request carrying the identifier of the operator's line and the second time of receiving a response request carrying the identifier of the operator's line, it is more conducive to subsequently determining which operator's line to schedule the traffic to based on the corresponding response time of each operator's line, thereby ensuring network stability and communication transmission quality.

[0063] In order to determine based on which virtual IP address of the multi-line multi-IP computer room the probe request is sent, based on the above embodiments, in the embodiment of the present application, before sending the probe request carrying the identifier of the line of the operator to the multi-line multi-IP computer room, the method further includes:

[0064] Determine at least one target virtual IP address corresponding to the operator based on the pre-stored correspondence between the operator and the virtual IP address;

[0065] The sending of a detection request carrying the identifier of the line of the operator to the multi-line multi-IP computer room includes:

[0066] A detection request carrying the identifier of the line of the operator is sent to any target virtual IP address of the at least one target virtual IP address of the multi-line multi-IP computer room.

[0067] Generally speaking, an operator corresponds to at least one virtual IP address (VIP) of a multi-line multi-IP computer room. In order to determine which virtual IP address in the multi-line multi-IP computer room the electronic device sends a probe request to, in an embodiment of the present application, the correspondence between the operator and the virtual IP address is pre-saved in the electronic device. For each line, before sending a probe request carrying the identifier of the line of the operator to the multi-line multi-IP computer room, the at least one target virtual IP address corresponding to the operator is determined based on the pre-saved correspondence between the operator and the virtual IP address and the operator, and then a probe request carrying the identifier of the line of the operator is sent to any one of the at least one target virtual IP addresses of the multi-line multi-IP computer room.

[0068] In order to carry the identifier of the operator's line in the detection request, based on the above embodiments, in the embodiment of the present application, the detection request is a Hyper Text Transfer Protocol (HTTP) request.

[0069] In the embodiment of the present application, for each operator, the detection request carrying the identifier of the operator's line is an HTTP request, and the identifier of the operator's line is carried in the HTTP header (http-header) of the HTTP request.

[0070] In order to determine where to carry the operator's line identifier in the response request, based on the above embodiments, in an embodiment of the present application, the identifier of the operator's line is obtained from the service type domain (Type-of-Service, TOS) field in the response request.

[0071] In an embodiment of the present application, for each operator, after the identification of the operator's line is carried in a detection request and sent to a multi-line multi-IP computer room, the electronic device will receive a response request sent by the multi-line multi-IP computer room carrying the identification of the operator's line, wherein the multi-line multi-IP computer room carries the identification of the operator's line in the TOS field of the response request.

[0072] In order to determine from which gateway a response request sent by a multi-line multi-IP machine room is received, based on the above embodiments, in an embodiment of the present application, receiving a response request sent by the multi-line multi-IP machine room and carrying the identifier of the line of the operator includes:

[0073] A response request carrying the identifier of the line of the operator is received, which is sent by the target gateway corresponding to the operator in the multi-line multi-IP computer room.

[0074] In an embodiment of the present application, for each operator, the electronic device carries the identifier of the operator's line in a probe request and sends it to a multi-line multi-IP computer room. The node server in the multi-line multi-IP computer room carries the identifier of the operator's line carried in the probe request in the TOS field of the response request, so that after the subsequent node server sends the response request to the cache server in the multi-line multi-IP computer room, the operating system on the cache server can parse the TOS field in the response request based on the Linux network layer, determine the target gateway corresponding to the TOS field, and based on the target gateway in the multi-line multi-IP computer room, send the response request carrying the identifier of the operator's line to the electronic device. That is, the electronic device receives the response request carrying the identifier of the operator's line sent by the target gateway in the multi-line multi-IP computer room, where one operator corresponds to one gateway.

[0075] For example, if the TOS field in the response request carries the identification of the telecom operator's line, the electronic device receives the response request carrying the identification of the telecom operator's line sent by the target gateway corresponding to the telecom operator in the multi-line multi-IP computer room.

[0076] In the embodiment of the present application, the multi-line multi-IP computer room can directly send the response request to the electronic device through the target gateway without making changes to the routing table, which is more efficient.

[0077] Figure 3 A schematic diagram of a process for determining the response time of lines of various operators provided in some embodiments of the present application is now directed to Figure 3 Provide explanation.

[0078] For each operator, based on a pre-stored correspondence between operators and virtual IP addresses, at least one target virtual IP address corresponding to the operator is determined. The operator's line identifier is then included in a probe request. The probe request is sent to any of the at least one target virtual IP addresses in the multi-line, multi-IP computer room, and the first time the probe request is sent is recorded. After the multi-line, multi-IP computer room receives the probe request, a node server in the multi-line, multi-IP computer room parses the operator's line identifier carried in the probe request and includes the operator's line identifier in the TOS field of a response request. The node server then sends the response request to a cache server in the multi-line, multi-IP computer room. Subsequently, based on the operating system on the cache server, the cache server parses the TOS field in the response request for the operator's line identifier and determines the operator's target gateway. Based on the target gateway, the response request is sent to the electronic device. After receiving the response request, the electronic device records the second time the response request is received and, based on the first and second times, determines the response time corresponding to the operator's line.

[0079] Figure 4 A schematic diagram of a traffic migration process provided in some embodiments of the present application includes the following steps:

[0080] S401: Determine the line of the operator to which traffic is to be migrated.

[0081] In an embodiment of the present application, the line of the operator to which traffic is to be migrated is first determined, wherein the line of the operator to which traffic is to be migrated may be the line of an operator with more access traffic. The process of determining the line of the operator to which traffic is to be migrated is an existing technology and will not be described in detail here.

[0082] S402: Based on the saved response time of each operator's line, the line of other operators with the shortest response time is used as the target line, wherein the response time of each operator's line is determined by the difference between the first time of sending a detection request carrying the identifier of the operator's line to the multi-line multi-IP computer room and the second time of receiving the response request carrying the identifier of the operator's line sent by the multi-line multi-IP computer room.

[0083] In an embodiment of the present application, since the above embodiment has determined the response time of the line corresponding to each operator, in order to facilitate the subsequent traffic scheduling based on the response time of the lines of each operator, in an embodiment of the present application, the response time of each line of the operator can be pre-saved. In order to perform traffic scheduling on the user IP request in the line of the operator to be migrated, in an embodiment of the present application, the line with the smallest response time among the pre-saved lines of the operator, and other lines except the line of the operator to be migrated are determined as target lines, wherein the response time of each line of the operator is determined based on the difference between the first time of sending a detection request carrying the identifier of the line of the operator to the multi-line multi-IP computer room and the second time of receiving the response request carrying the identifier of the line of the operator sent by the multi-line multi-IP computer room.

[0084] The process of determining the response time of each line of the operator has been described in the above embodiment and will not be repeated here.

[0085] S403: Migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

[0086] In the embodiment of the present application, in order to achieve traffic migration, after determining the target line, a preset number of user access IP requests in the line of the operator to be migrated are migrated to the target line. The preset number can be set according to demand.

[0087] Figure 5 A schematic diagram showing the response time of lines of various operators provided in some embodiments of the present application is now provided. Figure 5 Provide explanation.

[0088] For each operator, an example is given in which an electronic device sends multiple detection requests carrying the identification of the operator's lines to a multi-line, multi-IP computer room. If the AS domain identified as 100, the response time corresponding to the line identified as 10 of the determined operator is 120ms, the AS domain identified as 100, the response time corresponding to the line identified as 20 of the determined operator is 60ms, and the AS domain identified as 100, the response time corresponding to the line identified as 30 of the determined operator is 200ms. Then, when the line of the operator to be migrated for subsequent traffic is the line identified as 30, when traffic scheduling is performed, the IP requests of a preset number of users on the route identified as 30 will be migrated to the line identified as 20.

[0089] It should be noted that if the response time of each saved operator line is determined by the difference between the first time when the electronic device sends a detection request carrying the identification of the operator's line to the multi-line multi-IP computer room for each operator, and the second time when the multi-line multi-IP computer room receives the response request carrying the identification of the operator's line, then the line of other operators with the smallest response time can be used as the target line, and subsequently a preset number of user access IP requests in the line of the operator to be migrated will be migrated to the target line, without specifically limiting to which specific target virtual IP address of the multi-line multi-IP computer room the preset number of user access IP requests will be sent.

[0090] If the response time of each line of the operator saved is the first time corresponding to each time the electronic device sends multiple probe requests carrying the identification of the line of the operator to the multi-line multi-IP computer room for each operator, and the second time after receiving multiple response requests carrying the identification of the line of the operator sent by the multi-line multi-IP computer room, the response time corresponding to each line of the operator is determined, and determined based on the average of the response times corresponding to each line of the operator, then the target virtual IP address corresponding to each probe request carrying the identification of the operator's line may be different. Since the corresponding response times may also be different when the probe request carrying the identification of the line of the operator is sent to different target virtual IP addresses, after the line of the other operator with the smallest response time is used as the target line, it is also possible to first determine which target virtual IP address the probe request is sent to when the response time is the smallest. When migrating a preset number of user access IP requests in the line of the operator to be migrated to the target line, the preset number of user access IP requests are sent based on the target virtual IP address corresponding to the time when the response time is the smallest.

[0091] Since in the embodiment of the present application, the target route can be determined based on the other lines with the shortest response time among the pre-saved response times of the operator's lines, it can effectively ensure that during the traffic migration process, an optimal access line can be found for the user access IP request to be migrated, which can effectively reduce the time of user requests and improve the communication transmission quality between the node server and the user client.

[0092] Figure 6 A schematic structural diagram of a response time determination device provided in some embodiments of the present application, the device comprising:

[0093] Processing module 601 is configured to send a probe request carrying the identifier of the operator's line to a multi-line multi-IP computer room for any operator, and record a first time when the probe request is sent; receive a response request carrying the identifier of the operator's line returned by the multi-line multi-IP computer room, and record a second time when the response request is received;

[0094] The first determining module 602 is configured to determine a response time of the identified line of the operator according to a difference between the second time and the first time.

[0095] In a possible implementation, the processing module 601 is further configured to determine at least one target virtual IP address corresponding to the operator based on a pre-stored correspondence between the operator and the virtual IP address;

[0096] The processing module 601 is specifically configured to send a detection request carrying the identifier of the line of the operator to any target virtual IP address of the at least one target virtual IP address of the multi-line multi-IP computer room.

[0097] In a possible implementation, the processing module 601 is specifically configured to receive a response request carrying an identifier of the line of the operator, which is sent by a target gateway corresponding to the operator in the multi-line multi-IP computer room.

[0098] Figure 7 A schematic diagram of the structure of a traffic migration device provided in some embodiments of the present application, the device comprising:

[0099] The second determination module 701 is configured to determine the line of the operator to be migrated; based on the saved response time of each operator line, the line of another operator with the shortest response time is selected as the target line, wherein the response time of each operator line is determined by the difference between a first time of sending a probe request carrying the identifier of the operator line to the multi-line multi-IP computer room and a second time of receiving a response request carrying the identifier of the operator line sent by the multi-line multi-IP computer room;

[0100] The migration module 702 is configured to migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

[0101] On the basis of the above embodiments, some embodiments of the present application further provide an electronic device, such as Figure 8 As shown, it includes: a processor 801 , a communication interface 802 , a memory 803 and a communication bus 804 , wherein the processor 801 , the communication interface 802 and the memory 803 communicate with each other via the communication bus 804 .

[0102] The memory 803 stores a computer program. When the program is executed by the processor 801, the processor 801 performs the following steps:

[0103] For any operator, a detection request carrying the identification of the operator's line is sent to the multi-line multi-IP computer room, and the first time of sending the detection request is recorded; a response request carrying the identification of the operator's line is received from the multi-line multi-IP computer room, and the second time of receiving the response request is recorded; based on the difference between the second time and the first time, the response time of the line with the identification of the operator is determined.

[0104] Furthermore, the processor 801 is further configured to determine at least one target virtual IP address corresponding to the operator based on a pre-stored correspondence between the operator and the virtual IP address;

[0105] The processor 801 is specifically configured to send a detection request carrying an identifier of the line of the operator to any target virtual IP address of the at least one target virtual IP address of the multi-line multi-IP computer room.

[0106] The processor 801 is specifically configured to receive a response request carrying an identifier of the line of the operator, which is sent by a target gateway corresponding to the operator in the multi-line multi-IP computer room.

[0107] The communication bus mentioned in the server above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0108] The communication interface 802 is used for communication between the electronic device and other devices.

[0109] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk memory. Alternatively, the memory may be at least one storage device located away from the processor.

[0110] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processing processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0111] On the basis of the above embodiments, some embodiments of the present application further provide an electronic device, such as Figure 9 As shown, it includes: a processor 901 , a communication interface 902 , a memory 903 and a communication bus 904 , wherein the processor 901 , the communication interface 902 and the memory 903 communicate with each other via the communication bus 904 .

[0112] The memory 903 stores a computer program. When the program is executed by the processor 901, the processor 901 performs the following steps:

[0113] Determine the operator's lines to which traffic will be migrated;

[0114] Based on the saved response time of each operator's line, the line of another operator with the shortest response time is selected as the target line, wherein the response time of each operator's line is determined by the difference between a first time of sending a probe request carrying an identifier of the operator's line to the multi-line multi-IP computer room and a second time of receiving a response request carrying the identifier of the operator's line from the multi-line multi-IP computer room;

[0115] Migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

[0116] The communication bus mentioned in the server above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0117] The communication interface 902 is used for communication between the electronic device and other devices.

[0118] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk memory. Alternatively, the memory may be at least one storage device located away from the processor.

[0119] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processing processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0120] Based on the above embodiments, some embodiments of the present application further provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by an electronic device. When the program is executed on the electronic device, the electronic device implements the following steps:

[0121] The memory stores a computer program, which, when executed by the processor, causes the processor to perform the following steps:

[0122] For any operator, a detection request carrying the identification of the operator's line is sent to the multi-line multi-IP computer room, and the first time of sending the detection request is recorded; a response request carrying the identification of the operator's line is received from the multi-line multi-IP computer room, and the second time of receiving the response request is recorded; based on the difference between the second time and the first time, the response time of the line with the identification of the operator is determined.

[0123] Furthermore, before sending the detection request carrying the identifier of the line of the operator to the multi-line multi-IP computer room, the method further includes:

[0124] Determine at least one target virtual IP address corresponding to the operator based on the pre-stored correspondence between the operator and the virtual IP address;

[0125] The sending of a detection request carrying the line identifier of the operator to the multi-line multi-IP computer room includes:

[0126] A detection request carrying the identifier of the line of the operator is sent to any target virtual IP address of the at least one target virtual IP address of the multi-line multi-IP computer room.

[0127] Furthermore, the detection request is a Hypertext Transfer Protocol HTTP request.

[0128] Furthermore, the identifier of the line of the operator is obtained from the service type domain TOS field in the response request.

[0129] Furthermore, the receiving of the response request carrying the identifier of the line of the operator sent by the multi-line multi-IP computer room includes:

[0130] A response request carrying the identifier of the line of the operator is received, which is sent by the target gateway corresponding to the operator in the multi-line multi-IP computer room.

[0131] Based on the above embodiments, some embodiments of the present application further provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by an electronic device. When the program is executed on the electronic device, the electronic device implements the following steps:

[0132] The memory stores a computer program, which, when executed by the processor, causes the processor to perform the following steps:

[0133] Determine the operator's lines to which traffic will be migrated;

[0134] Based on the saved response time of each operator's line, the line of another operator with the shortest response time is selected as the target line, wherein the response time of each operator's line is determined by the difference between a first time of sending a probe request carrying an identifier of the operator's line to the multi-line multi-IP computer room and a second time of receiving a response request carrying the identifier of the operator's line from the multi-line multi-IP computer room;

[0135] Migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

[0136] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0138] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0140] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. A method for determining response time, characterized in that: The method comprises: For any operator, the operator's electronic equipment sends a probe request carrying the identification of the operator's line to the multi-line multi-IP computer room through the core switch, and records the first time of sending the probe request; receives a response request carrying the identification of the operator's line returned by the multi-line multi-IP computer room, and records the second time of receiving the response request; determines the response time of the operator's identified line based on the difference between the second time and the first time; wherein, the electronic equipment of each operator is respectively connected to the core switch, and the core switch is connected to the multi-line multi-IP computer room based on the line of each operator; The identifier of the line of the operator is obtained from the service type domain TOS field in the response request.

2. The method according to claim 1, characterized in that Before sending the detection request carrying the identifier of the line of the operator to the multi-line multi-IP computer room, the method further includes: Determine at least one target virtual IP address corresponding to the operator based on the pre-stored correspondence between the operator and the virtual IP address; The sending of a detection request carrying the identifier of the line of the operator to the multi-line multi-IP computer room includes: A detection request carrying the identifier of the line of the operator is sent to any target virtual IP address of the at least one target virtual IP address of the multi-line multi-IP computer room.

3. The method according to claim 1, characterized in that The detection request is a Hypertext Transfer Protocol HTTP request.

4. The method according to claim 1, wherein The receiving of the response request carrying the identifier of the line of the operator sent by the multi-line multi-IP computer room includes: A response request carrying the identifier of the line of the operator is received, which is sent by the target gateway corresponding to the operator in the multi-line multi-IP computer room.

5. A traffic migration method based on the response time determination method according to any one of claims 1 to 4, characterized in that: The method comprises: Determine the operator's lines to which traffic will be migrated; Based on the saved response time of each operator's line, the line of another operator with the shortest response time is selected as the target line, wherein the response time of each operator's line is determined by the difference between a first time of sending a probe request carrying an identifier of the operator's line to the multi-line multi-IP computer room and a second time of receiving a response request sent by the multi-line multi-IP computer room with a TOS field containing the identifier of the operator's line; Migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

6. A response time determination device, characterized in that: The device comprises: A processing module is configured to, for any operator, cause the operator's electronic device to send a probe request carrying the identifier of the operator's line to a multi-line multi-IP computer room through a core switch, and record a first time the probe request is sent; receive a response request carrying the identifier of the operator's line returned by the multi-line multi-IP computer room, and record a second time the response request is received; wherein, the identifier of the operator's line is obtained from the service type domain TOS field in the response request; wherein, the electronic devices of each operator are respectively connected to the core switch, and the core switch is connected to the multi-line multi-IP computer room based on the lines of each operator; The first determining module is configured to determine a response time of the identified line of the operator according to a difference between the second time and the first time.

7. A flow migration device, characterized in that: The device comprises: The second determination module is used to determine the line of the operator to be migrated; based on the saved response time of each operator's line, the line of other operators with the shortest response time is used as the target line, wherein the response time of each operator's line is determined by the difference between the first time when the electronic device of the operator sends a detection request carrying the identifier of the operator's line to the multi-line multi-IP computer room through the core switch, and the second time when the response request carrying the TOS field containing the identifier of the operator's line sent by the multi-line multi-IP computer room is received; wherein the electronic devices of each operator are respectively connected to the core switch, and the core switch is connected to the multi-line multi-IP computer room based on the lines of each operator; The migration module is used to migrate a preset number of user access IP requests in the line of the operator to be migrated to the target line.

8. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory is used to store program instructions, and the processor is used to implement the steps of the response time determination method described in any one of claims 1 to 4 or the traffic migration method described in claim 5 when executing the computer program stored in the memory.

9. A computer-readable storage medium, characterized in that It stores a computer program, which, when executed by a processor, implements the steps of the response time determination method according to any one of claims 1 to 4 or the traffic migration method according to claim 5.

Citation Information

Patent Citations

  • Data transmission method and apparatus as well as terminal

    CN106211238A

  • Link load balancing method and device, electronic equipment and storage medium

    CN111343097A