[go: up one dir, main page]

CN104378451B - Network communication route selecting method, apparatus and system - Google Patents

Network communication route selecting method, apparatus and system Download PDF

Info

Publication number
CN104378451B
CN104378451B CN201310353751.7A CN201310353751A CN104378451B CN 104378451 B CN104378451 B CN 104378451B CN 201310353751 A CN201310353751 A CN 201310353751A CN 104378451 B CN104378451 B CN 104378451B
Authority
CN
China
Prior art keywords
address
user terminal
server
speed
ans
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310353751.7A
Other languages
Chinese (zh)
Other versions
CN104378451A (en
Inventor
黄科超
甘晖明
邵杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310353751.7A priority Critical patent/CN104378451B/en
Publication of CN104378451A publication Critical patent/CN104378451A/en
Application granted granted Critical
Publication of CN104378451B publication Critical patent/CN104378451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment
    • H04L61/3025Domain name generation or assignment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

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

Abstract

The present invention relates to a kind of network communication route selecting method, apparatus and system, method includes: to obtain IP information list relevant to the domain name of user terminal from acceleration domain name server query;Network communication is carried out between user terminal, cceleration machine room access point and application platform server according to the IP address of the IP address of application platform server and cceleration machine room access point;During network communication, the IP address of IP address and cceleration machine room access point to application platform server speed point tests the speed, it is calculated according to the result that tests the speed using pre-defined algorithm and obtains current optimal network communication IP address, the optimal network routing link of terminal can be found in time, guarantee that the network communication of terminal carries out in preferred routing, to greatly improve network communications quality and shorten network latency.

Description

Network communication route selecting method, apparatus and system
Technical field
The present invention relates to field of computer technology more particularly to a kind of network communication route selecting method, apparatus and system.
Background technique
With the development of smart phone and universal, some application (App) of smart phone is used to inquire various network informations Operation it is very universal.However, due to being interfered by operator, cell phone network setting mismatched, region communication routing it is bad Etc. factors influence, the web experience of many users is bad.
Because terminal often uses a fixed IP address or a fixed domain in traditional network communication Name is communicated with server.Wherein, it is using the shortcomings that fixed ip address: when the operator of terminal network operator and IP When inconsistent, it will cause very big network delay and unstability;It is using the shortcomings that fixed domain name: there can be user The problems such as DNS is mismatched, DNS is held as a hostage or even DNS is configured to external DNS causes dns resolution inaccuracy or parsing delay It is very long, ultimately cause the unreliability of network communication.
In addition, in the network communication of smart phone, since mobile phone is often in a kind of state of movement, i.e., locating for mobile phone Region can often change, network communication link can also change with the difference in region, thus not can guarantee mobile phone Communication carries out in preferably network communication link, thereby reduces the network communications quality of mobile phone, and extends network waiting Time.
Summary of the invention
The embodiment of the present invention provides a kind of network communication route selecting method, apparatus and system, it is intended to improve network communication Quality.
The embodiment of the present invention proposes a kind of network communication route selecting method, comprising:
IP information list relevant to the domain name of user terminal is obtained from acceleration domain name server query;The IP information column Table includes: the IP address of application platform server, the IP address of cceleration machine room access point and application platform server speed measuring point IP address;
According to the IP address of the IP address of the application platform server and cceleration machine room access point in user terminal, acceleration Network communication is carried out between computer room access point and application platform server;
During network communication, IP address and cceleration machine room access point to the application platform server speed measuring point IP address tests the speed, and is calculated according to the result that tests the speed using pre-defined algorithm and obtains current optimal network communication IP address.
The embodiment of the present invention also proposes a kind of network communication route selecting device, comprising:
Inquiry obtains module, for obtaining IP information relevant to the domain name of user terminal from acceleration domain name server query List;The IP information list includes: the IP address of application platform server, the IP address of cceleration machine room access point and application The IP address of platform server speed point;
Communication module, for being existed according to the IP address of the application platform server and the IP address of cceleration machine room access point Network communication is carried out between user terminal, cceleration machine room access point and application platform server;
Speed selection module is used for during network communication, to the IP address of the application platform server speed measuring point It tests the speed with the IP address of cceleration machine room access point, is calculated according to the result that tests the speed using pre-defined algorithm and obtain current optimal net Network communicates IP address.
The embodiment of the present invention also proposes a kind of system, comprising: accelerates name server and user terminal, the user terminal Including device as described above, the acceleration name server is connect with the user terminal communication;The acceleration domain name service Device is used to receive the inquiry request that the user terminal is sent, and returns to the domain name with the user terminal according to the inquiry request Relevant IP information list.
A kind of system of the embodiment of the present invention, comprising: application platform server, cceleration machine room access point, test the speed server with And user terminal, the user terminal include device as described above, the cceleration machine room access point is flat with the application respectively Platform server, the server that tests the speed are connected with user terminal communication, and the server that tests the speed is connect with the user terminal communication;
The application platform server is used to carry out network by the cceleration machine room access point and the user terminal logical News;
The cceleration machine room access point is also used to during network communication, receives and forward the survey of the user terminal Speed is requested to the server that tests the speed;
The server that tests the speed, test the speed request and the reception user terminal sent for receiving the user terminal The request of testing the speed sent through the cceleration machine room access point;And after receiving request of testing the speed accordingly, returned to user terminal Response bag or response bag from the cceleration machine room access point to user terminal that returned through, to respectively to the application platform The IP address of server speed measuring point and the IP address of cceleration machine room access point test the speed.
A kind of network communication route selecting method, apparatus and system that the embodiment of the present invention proposes, based on from accelerating domain name The IP information list relevant to the domain name of user terminal that server inquiry obtains carries out network communication, in network communication process In, it is tested the speed by the IP address of IP address and cceleration machine room access point to application platform server speed point, according to survey Fast result, which calculates, obtains current optimal network communication IP address, thus can find the optimal network routing link of terminal in time, Network link capacity is made full use of, guarantees that the network communication of terminal carries out in preferred routing, greatly improves network communication Quality and shorten network latency.
Detailed description of the invention
Fig. 1 be the present embodiments relate to system architecture diagram;
Fig. 2 is the flow diagram of inventive network communication route selecting method preferred embodiment;
Fig. 3 is the IP address and cceleration machine room access point in the embodiment of the present invention, to application platform server speed point IP address tests the speed, and the flow diagram for obtaining current optimal network communication IP address is calculated according to the result that tests the speed;
Fig. 4 is to obtain IP relevant to the domain name of user terminal from acceleration domain name server query in the embodiment of the present invention The flow diagram of information list;
Fig. 5 is in the embodiment of the present invention, and after user terminal accesses application platform, acquisition matches with the user terminal Acceleration name server IP address flow diagram;
Fig. 6 is carried out by preset analytics engine to the domain name for accelerating name server in the embodiment of the present invention Parsing obtains the flow diagram of the IP address of the acceleration name server to match with the user terminal;
Fig. 7 is the functional block diagram of inventive network communication route selecting device preferred embodiment;
Fig. 8 is the functional block diagram of speed selection module in inventive network communication route selecting Installation practice;
Fig. 9 is the functional block diagram that inquiry obtains module in inventive network communication route selecting Installation practice;
Figure 10 is the functional block diagram of acquiring unit in inventive network communication route selecting Installation practice.
In order to keep technical solution of the present invention clearer, clear, it is described in further detail below in conjunction with attached drawing.
Specific embodiment
The present embodiments relate to technical term include:
OC: accelerating computer room (Outer Center), and dispersion is established in each area, the use of each computer room service location Family.
Local DNS: mobile terminal home domain name resolution system (Local Domain Name System) is mobile whole The domain name analysis system of default is held, generally with network operator's correlation.
DNS: DNS management system (Domain Name System).
ANS: accelerate domain name system (Accelerated Domain Name System), it is a kind of more preferably than traditional DNS Private domain name management system is used to the relevant information of quick search domain name, such as domain name source station (application platform server) IP Location, cceleration machine room access point address, test the speed server ip address and corresponding port numbers etc..
App: application, the present embodiment refer in particular to the application program on intelligent mobile terminal.
The address IP:IP (Internet Protocol Address) is a kind of addressing to host on internet Mode, also referred to as internet protocol address.
Solution for embodiment of the invention is mainly: by realizing that one kind tests the speed based on giving out a contract for a project to multilink progress TCP Technic relization scheme, come find the optimal network routing link of terminal in time, network link capacity is made full use of, to improve net Network communication quality.
As shown in Figure 1, the present embodiments relate to system architecture include: user terminal, accelerate name server, OC (accelerate computer room) access point, testing service device and source station (application platform server), in which:
User terminal can be the mobile terminal that mobile phone, tablet computer etc. are equipped with client software and application program.
Name server is accelerated to be specifically as follows ANS server, ANS server is to accelerate domain name system, is responsible for domain name Parsing is used to the relevant information of quick search domain name, for example domain name source station IP address, cceleration machine room access point IP address, tests the speed Server ip address and corresponding port numbers etc..User terminal is by interacting the domain name obtained with user terminal with ANS server Relevant IP information.Following embodiment is with the illustration of ANS server.
Cceleration machine room access point is a kind of proxy server, is responsible for for user terminal data being forwarded to what user terminal was specified Server, and the user data for the server passback that family terminal is specified is returned into user terminal;
The specified server of above-mentioned user terminal can be the server that tests the speed, and be also possible to source station.User terminal and source station Between user data forwarded by cceleration machine room access point.
It tests the speed server and source station is deployed in same computer room, user terminal can construct arbitrary size data packet, pass through net Network is received and dispatched to test its delay with source station, for example, user terminal directly sends test request data packet to the server that tests the speed, surveys Original is wrapped return user terminal immediately after receiving test request data packet by fast server;Meanwhile user terminal is by accelerating computer room Access point sends test request data packet to the server that tests the speed, and the server that tests the speed immediately wraps original after receiving test request data packet User terminal is returned to by cceleration machine room access point, the delay of itself and source station is tested by network transmitting-receiving with this, according to survey Test result, judgement are that source station response is fast or cceleration machine room access point response is fast, and then it is logical to select corresponding route to carry out network News.
Based on above system framework, as shown in Fig. 2, present pre-ferred embodiments propose a kind of network communication route selecting side Method, comprising:
Step S10 obtains IP information list relevant to the domain name of user terminal from acceleration domain name server query;
The IP information list include: the IP address of application platform server, the IP address of cceleration machine room access point and The IP address of application platform server speed measuring point.
The present embodiment can be routed based on giving out a contract for a project to test the speed to multilink progress TCP come the timely network for finding that terminal is optimal Link improves network communications quality to make full use of network link capacity.
Before the flow startup that tests the speed, IP relevant to the domain name of user terminal is obtained from acceleration domain name server query first Information, to carry out network communication between user terminal and source station, and while network communication to source station speed measuring point IP and Cceleration machine room access point IP tests the speed, and obtains current optimal network communication IP address.
When from accelerating domain name server query to obtain IP information relevant to the domain name of user terminal, ANS can be based on The domain name of server realizes that quickly ANS server ip address is chosen under user terminal wireless network, so as to user terminal according to The IP address of the ANS server sends inquiry request to ANS server, obtains IP information relevant to user terminal domain name.
Thus a Software Development Kit (Software Development Kit, SDK) for mobile acceleration is introduced, This SDK is loaded into the code of application program for mobile terminal, and is accordingly programmed according to interface, mobile acceleration can be realized Effect.
The above-mentioned mobile acceleration SDK of application platform access on the subscriber terminal, when carrying out network communication for the first time, user terminal Meeting is simultaneously dealt into ANS server inquiry source station IP relevant to user terminal domain name, OC IP, speed measuring point IP up, then right again The IP that ANS is preferentially specified carries out network communication.
Step S20, according to the IP address of the IP address of the application platform server and cceleration machine room access point in user Network communication is carried out between terminal, cceleration machine room access point and application platform server;
As previously mentioned, for the first time carry out network communication when, user terminal meeting and be dealt into ANS server up inquire obtain and The relevant source station IP address of user terminal domain name, the IP of OC access point, speed measuring point IP, it is then specified to ANS server priority again IP carry out network communication.
Therefore, user terminal is in the IP address for getting source station IP address and OC access point that ANS server is inquired After equal IP information, network communication is carried out according to source station IP address and the IP address of OC access point.
Compared with prior art, in traditional network communication, a fixed IP address or a fixation are often used Domain name communicated with corresponding server, will cause very big network delay, unstability and network communication can not By property, the present embodiment through the above scheme, when the App that user uses has accessed mobile acceleration SDK, network communication will automatically around Local dns resolution system is opened, effectively prevent seeking the influence for the factors such as quotient interferes, cell phone network setting mismatches, directly by special ANS server inquires source station, the IP address of OC access point carries out network communication, from there through combining wireless network operation The technology of quotient and dns resolution, high efficient and reliable solve the problems, such as the access of mobile phone terminal across a network.
Step S30, IP address and acceleration computer room during network communication, to the application platform server speed measuring point The IP address of access point tests the speed, and is calculated with obtaining current optimal network communication IP according to result is tested the speed using pre-defined algorithm Location.
While the IP address specified by ANS server priority carries out network communication, it can start in new thread Test the speed engine, and the engine that tests the speed can test the speed to speed measuring point IP address, OC access point IP address, and is worked as according to result calculating of testing the speed Preceding more preferably network communication IP address.
User terminal is in the process for carrying out network communication according to source station IP address and acceleration computer room (OC) access point IP address In, it tests the speed to source station speed measuring point IP and cceleration machine room access point IP, more preferably net can be calculated by pre-defined algorithm Network communicates IP address, and saves for using within the effective time, it is possible thereby to avoid since region communication routing is bad And bring network communication failure or prolonged waiting.
When being tested the speed, one side user terminal directly sends test request data packet to the server that tests the speed, and test the speed clothes Original is wrapped return user terminal immediately after receiving test request data packet by business device;Meanwhile user terminal is by accelerating computer room access Point sends test request data packet to the server that tests the speed, and the server that tests the speed immediately passes through original packet after receiving test request data packet Cceleration machine room access point returns to user terminal, tests the delay of itself and source station by network transmitting-receiving with this, according to predetermined calculation Method obtains test result, and judgement is that source station response is fast or cceleration machine room access point response is fast, so select corresponding route into Row network communication.
Specifically, as shown in figure 3, as an implementation, above-mentioned steps S30: to applying platform server speed point IP address and the IP address of cceleration machine room access point test the speed, according to test the speed result using pre-defined algorithm and calculate obtain it is current Optimal network communication IP address may include:
Step S301 starts the engine that tests the speed, and the TCP established between the user terminal and testing service device is linked;
Step S302 passes through described two threads that test the speed of engine parallel starting that test the speed;To respectively to the application platform The IP address of server speed measuring point and the IP address of cceleration machine room access point test the speed;
Step S303 is tested the speed in thread two, is obtained the IP of application platform server speed measuring point respectively using pre-defined algorithm The time delay that tests the speed that is averaged of the IP address of address and cceleration machine room access point;
Specifically, in the thread that tests the speed of the IP address to the application platform server speed measuring point, user terminal is direct Test request data packet is sent to the server that tests the speed, and the response bag for server return of testing the speed described in reception, obtains and send test Request data package is to the time delay that tests the speed for receiving response bag;Pre-determined number is tested with this, every minor tick preset time is continuous every time The test request data packet for sending predetermined number obtains being averaged when testing the speed for the IP address of the application platform server speed measuring point Prolong;In the thread that tests the speed of the IP address to the cceleration machine room access point, user terminal passes through cceleration machine room access point to survey Fast server sends test request data packet, and the response that the server that tests the speed described in reception is returned by cceleration machine room access point Packet obtains and sends test request data packet to the time delay that tests the speed for receiving response bag;Pre-determined number is tested with this, every minor tick is pre- If the time, the test request data packet of predetermined number is continuously transmitted every time, obtains the IP address of the cceleration machine room access point Averagely test the speed time delay;
Step S304 chooses the two lesser IP address corresponding to time delay that averagely test the speed in Yanzhong when averagely testing the speed, as working as Preceding optimal network communication IP address.
Under normal conditions, when carrying out the inquiry of ANS server, ANS server can operator according to terminal and IP information Corresponding one group of source station, OC access point and speed measuring point IP are returned to, wherein speed measuring point IP, which can consider, is equal to source station IP, is surveying It after fast engine start, will concurrently test the speed to speed measuring point IP and OC access point IP, the strategy that specifically tests the speed is as follows:
The process that tests the speed every time can be set one and test the speed time interval, and the present embodiment is to carry out for 600 seconds with the time interval that tests the speed Citing.When the accelerating interface of user's operation triggering SDK, if it is determined that the time of testing the speed to last time is greater than with current time difference The process that tests the speed at 600 seconds by starting newly.
Firstly, the communication link for establishing user terminal between the server that tests the speed using TCP that tests the speed.
Under normal circumstances, the process that tests the speed every time can concurrent two test the speed thread to speed measuring point IP and OC access point IP respectively into Row tests the speed.
It testing the speed in process in every wheel, each IP tests the speed multiple (such as 3 times) respectively, every minor tick predetermined time (such as 3 Second), multiple request data packages that test the speed (such as 4 request data packages) are continuously transmitted every time.
After server (including point server and the OC access point server of testing the speed) receives the request data package that tests the speed of terminal, i.e., The request data package that tests the speed is responded to terminal and is returned.
Terminal records the overall delay for establishing a connection to and receiving server response bag respectively.
The strategy that tests the speed as shown above includes speed measuring point IP and OC access point two IP of IP in the testing the speed of every wheel, and Each IP's repeatedly tests the speed, it is assumed here that and each every wheel of IP tests the speed 3 times, and OC IP is A, and 3 total delays tested the speed are respectively Ta1, Ta2, Ta3;Speed measuring point IP is B, total delay respectively Tb1, Tb2, the Tb3 to test the speed for 3 times, then:
Time delay AVGa=(Ta1+Ta2+Ta3)/3 that test the speed that be averaged of OC IP;
Speed measuring point IP(namely source station IP) time delay AVGb=(Tb1+Tb2+Tb3)/3 that test the speed that be averaged;
The present embodiment is considered to fluctuate since network exists, and in order to more really react the network condition of each link, takes The average delay value to test the speed compares, small for average delay, then it is assumed that the link is more excellent link.
According to shown in above-mentioned calculating average delay formula, if AVGa > AVGb, then it is assumed that source station IP is more excellent IP, this When the IP can be preserved for being used within the effective time;If AVGa < AVGb, then it is assumed that OC IP is more excellent IP, together Sample, at this moment the IP can also be preserved for being used within the effective time.
Whichever IP is more preferably IP, and the engine that tests the speed can all preserve use when for next network communication, to protect The communication for having demonstrate,proved terminal is carried out in preferably link, and Internet resources are made full use of, and improves communication quality.
The present embodiment inquires source station through the above scheme, by ANS server, the IP address of OC access point carries out network Communication, in communication process, tests the speed to source station speed measuring point IP and OC access point IP, is calculated more by corresponding algorithm Excellent communication IP, and save the network communication for guaranteeing terminal for using within the effective time in preferred routing into Row, is avoided being communicated the bad and bring network communication of routing due to region and fails, and improves the success rate of terminal called, sufficiently benefit With network link capacity, while network latency is decreased, greatly improves network communications quality, promoted at the network of App Reason ability brings more smooth, faster web experience to user.
As shown in figure 4, as an implementation, above-mentioned steps S10: obtaining from acceleration domain name server query and user The step of domain name of terminal relevant IP information list may include:
Step S101 obtains the acceleration domain name to match with the user terminal after user terminal accesses application platform The IP address of server;
The present embodiment can realize quick ANS server under user terminal wireless network based on the domain name of ANS server IP address is chosen, so that user terminal quickly carries out network communication by the ANS server ip address chosen.
Thus one is introduced for the mobile Software Development Kit (SDK) accelerated, this SDK is loaded into mobile terminal application It in the code of program, and is accordingly programmed according to interface, the effect of mobile acceleration can be realized.
Specifically, on the subscriber terminal the above-mentioned mobile acceleration SDK of application platform access, when carrying out network communication for the first time, User terminal obtains the IP address of the ANS server to match with the user terminal by interacting with ANS server, so as to basis The IP address of the ANS server sends inquiry request to ANS server, obtains IP information relevant to user terminal domain name.
It, can be according to the network of user terminal when obtaining the IP address of the ANS server to match with the user terminal Type and the connection IP address that ANS server is determined in conjunction with operator's informaiton.
Step S102 sends inquiry request to the acceleration name server by the IP address of the server;
Step S103, receive it is described accelerate that name server returns according to the inquiry request with the user terminal The relevant IP information list of domain name.
ANS server obtains and the user terminal in the inquiry request for receiving user terminal according to the inquiry request The relevant IP information of domain name, for example, the IP address of source station IP address, the IP address of source station speed measuring point and cceleration machine room access point Deng an IP information list is consequently formed and returns to user terminal.Wherein, the domain name of user terminal is that user registers in application platform When, application platform is a domain name of its distribution, and user terminal can be using the domain name of this distribution, by accelerating connecing for platform offer Mouth carries out network request.
In addition, in order to achieve the purpose that quick response, as the IP for having multiple ANS servers to match with user terminal When location, user terminal, which will start, concurrently to be inquired, to multiple ANS server transmitted in parallel inquiry requests.
Meanwhile in order to reduce the consumption of user terminal performance and network inquiry, the factors such as time and space are comprehensively considered, When having multiple ANS server ip address, the number of concurrent of user terminal be can be set as needed as predetermined number, for example be limited to 3, i.e., when existing more than 3 ANS server ip address, the IP address of 3 ANS servers of inquiry only can be concurrently gone, then It chooses and responds most fast query information.
Later, user terminal can be according to source station IP address that ANS server inquires, cceleration machine room access point IP address Equal IP information quickly carries out network communication.
Through the above scheme, when the App that user uses has accessed mobile acceleration SDK, network communication will be certainly for the present embodiment It is dynamic to get around Local dns resolution system, it effectively prevent seeking the influence for the factors such as quotient interferes, cell phone network setting mismatches, it is directly logical It crosses the IP information such as source station IP address, the cceleration machine room access point IP address that dedicated ANS server inquires and quickly carries out network Communication is prolonged so as to avoid network caused by when being communicated in the prior art using the domain name of fixed IP address or fixation When, unstability and unreliability problem, high efficient and reliable solves the problems, such as the access of mobile phone terminal across a network.
Further, as shown in figure 5, as an implementation, above-mentioned steps S101 may include:
Step S1011 obtains the network type of user terminal after user terminal accesses application platform;
Step S1012 judges the network type of user terminal;When the network type of the user terminal is mobile network's class When type, S1013 is entered step;When the user terminal network type be non-moving network type, enter step S1015;
Step S1013 obtains the network operator information of the user terminal;It obtains successfully, enters step S1014;It obtains Failure is taken, S1015 is entered step;
Step S1014, locally obtains according to the network operator information of the user terminal from the user terminal and institute State the IP address for the acceleration name server that network operator information matches.
Step S1015 is parsed by domain name of the preset analytics engine to the server, is obtained and the user The IP address for the acceleration name server that terminal matches.
Specifically, wherein terminal network type includes the non-moving network of the mobile networks and WIFI etc. such as 2G, 3G.This Outside, the IP address of a ANS server and the domain name of ANS server can be locally saved in user terminal;Wherein IP address includes The IP address of three nets and corresponding operator's informaiton.
User terminal is after accessing application platform, with obtaining the IP of the ANS server to match with the user terminal first Location.
When obtaining the IP address of the ANS server to match with the user terminal, the network of user terminal is obtained first Type;When the network type of the user terminal is mobile networks' types such as 2G or 3G, attempt to obtain the user terminal Network operator information, operator are generally divided into China Mobile, China Telecom, three kinds of China Unicom.
After obtaining the network operator information success of user terminal, according to the network operator information of the user terminal The IP address of the ANS server to match with the network operator information is locally obtained from the user terminal, and is taken to ANS Business device is concurrently inquired.
When the network type for determining user terminal is the non-moving network type such as WIFI, alternatively, working as the network of user terminal When type is mobile network's type and the network operator information failure for obtaining the user terminal, pass through preset analytics engine The domain name of the ANS server is parsed, obtains the IP address of the ANS server to match with the user terminal, eventually End is concurrently inquired then to ANS server.Wherein, analytics engine can specifically use dns resolution engine.
Further, as shown in fig. 6, as an implementation, passing through preset analytics engine in above-mentioned steps S1015 The step of parsing to the domain name of the server, obtaining the IP address of the server to match with the user terminal can be with Include:
Step S10151 sends the UDP of dns resolution by preset analytics engine to the specified dns server (User Datagram Protocol, User Datagram Protocol) request;It is carried in UDP request and contains the server Domain name dns resolution protocol package;
Step S10152 receives the DNS Protocol response bag of the dns server feedback;
Step S10153 parses the DNS Protocol response bag of the NDS server feedback, obtains and the user The IP address for the acceleration name server that terminal matches.
Compared with prior art, in traditional network communication, a fixed IP address or a fixation are often used Domain name communicated with corresponding server, will cause very big network delay, unstability and network communication can not By property, the present embodiment through the above scheme, when the App that user uses has accessed mobile acceleration SDK, network communication will automatically around Local dns resolution system is opened, operator's interference, cell phone network setting is effectively prevent the influence of factors such as to mismatch;In combination with The technology of wireless carriers and dns resolution, the IP address for going retrieval to match by terminal network operator's informaiton first, In the case where network operator information is unknown, by preset dns resolution engine, the dns server of Xiang Zhiding was inquired with end The consistent destination server IP address of network operator is held, thus directly by the way that dedicated ANS server inquires source station, OC connects The IP address of access point carries out network communication, improves the stability of network inquiry, shortens query time, and high efficient and reliable solves hand The problem of machine terminal inter-network accesses.
As shown in fig. 7, present pre-ferred embodiments propose a kind of network communication route selecting device, comprising: inquiry obtains Module 20, communication module 21, speed selection module 22, in which:
Inquiry obtains module 20, for obtaining IP letter relevant to the domain name of user terminal from acceleration domain name server query Cease list;The IP information list includes: the IP address of application platform server, the IP address of cceleration machine room access point and answers With the IP address of platform server speed point;
Communication module 21, for according to the IP address of the application platform server and the IP address of cceleration machine room access point Network communication is carried out between user terminal, cceleration machine room access point and application platform server;
Speed selection module 22, for during network communication, to the IP of the application platform server speed measuring point The IP address of location and cceleration machine room access point tests the speed, and is calculated according to the result that tests the speed with obtaining current optimal network communication IP Location.
The present embodiment can be routed based on giving out a contract for a project to test the speed to multilink progress TCP come the timely network for finding that terminal is optimal Link improves network communications quality to make full use of network link capacity.
Before the flow startup that tests the speed, inquiry obtains module 20 from the acquisition of acceleration domain name server query and user terminal first The relevant IP information of domain name, so that communication module 21 carries out network communication between user terminal and source station, and by choosing of testing the speed Modulus block 22 tests the speed to source station speed measuring point IP and cceleration machine room access point IP while network communication, obtains current optimal Network communication IP address.
When from accelerating domain name server query to obtain IP information relevant to the domain name of user terminal, ANS can be based on The domain name of server realizes that quickly ANS server ip address is chosen under user terminal wireless network, so as to user terminal according to The IP address of the ANS server sends inquiry request to ANS server, obtains IP information relevant to user terminal domain name.
Thus a Software Development Kit (Software Development Kit, SDK) for mobile acceleration is introduced, This SDK is loaded into the code of application program for mobile terminal, and is accordingly programmed according to interface, mobile acceleration can be realized Effect.
The above-mentioned mobile acceleration SDK of application platform access on the subscriber terminal, when carrying out network communication for the first time, user terminal Meeting is simultaneously dealt into ANS server inquiry source station IP relevant to user terminal domain name, OC IP, speed measuring point IP up, then right again The IP that ANS is preferentially specified carries out network communication.
Therefore, user terminal is in the IP address for getting source station IP address and OC access point that ANS server is inquired After equal IP information, network communication is carried out according to source station IP address and the IP address of OC access point.
Compared with prior art, in traditional network communication, a fixed IP address or a fixation are often used Domain name communicated with corresponding server, will cause very big network delay, unstability and network communication can not By property, the present embodiment through the above scheme, when the App that user uses has accessed mobile acceleration SDK, network communication will automatically around Local dns resolution system is opened, effectively prevent seeking the influence for the factors such as quotient interferes, cell phone network setting mismatches, directly by special ANS server inquires source station, the IP address of OC access point carries out network communication, from there through combining wireless network operation The technology of quotient and dns resolution, high efficient and reliable solve the problems, such as the access of mobile phone terminal across a network.
While the IP address specified by ANS server priority carries out network communication, it can start in new thread Test the speed engine, and the engine that tests the speed can test the speed to speed measuring point IP address, OC access point IP address, and is worked as according to result calculating of testing the speed Preceding more preferably network communication IP address.
User terminal is in the process for carrying out network communication according to source station IP address and acceleration computer room (OC) access point IP address In, it tests the speed to source station speed measuring point IP and cceleration machine room access point IP, more preferably net can be calculated by pre-defined algorithm Network communicates IP address, and saves for using within the effective time, it is possible thereby to avoid since region communication routing is bad And bring network communication failure or prolonged waiting.
When being tested the speed, one side user terminal directly sends test request data packet to the server that tests the speed, and test the speed clothes Original is wrapped return user terminal immediately after receiving test request data packet by business device;Meanwhile user terminal is by accelerating computer room access Point sends test request data packet to the server that tests the speed, and the server that tests the speed immediately passes through original packet after receiving test request data packet Cceleration machine room access point returns to user terminal, tests the delay of itself and source station by network transmitting-receiving with this, according to predetermined calculation Method obtains test result, and judgement is that source station response is fast or cceleration machine room access point response is fast, so select corresponding route into Row network communication.
Specifically, as shown in figure 8, as an implementation, the speed selection module 22 may include: start unit 221, test the speed unit 222 and network communication IP selection unit 223, in which:
Start unit 221 for starting the engine that tests the speed, and establishes the TCP between the user terminal and testing service device Link;And before engine is tested the speed in starting, judgement currently tests the speed the time and whether the test the speed difference of time of last time is greater than between setting Every time threshold, otherwise the process if so, starting is tested the speed does not start the process that tests the speed.
Test the speed unit 222, for passing through described two threads that test the speed of engine parallel starting that test the speed;It tests the speed in thread two, Obtain the flat of the IP address of application platform server speed measuring point and the IP address of cceleration machine room access point respectively using pre-defined algorithm Test the speed time delay;
In the thread that tests the speed of the IP address to the application platform server speed measuring point, from user terminal directly to testing the speed Server sends test request data packet, and the response bag for server return of testing the speed described in reception, obtains and sends test request number According to packet to the time delay that tests the speed for receiving response bag;Pre-determined number is tested with this, every minor tick preset time continuously transmits pre- every time Fixed number purpose test request data packet, obtains the time delay that tests the speed that is averaged of the IP address of the application platform server speed measuring point;? To in the thread that tests the speed of the IP address of the cceleration machine room access point, taken from user terminal by cceleration machine room access point to testing the speed Business device sends test request data packet, and the response bag that the server that tests the speed described in reception is returned by cceleration machine room access point, obtains It takes and sends test request data packet to the time delay that tests the speed for receiving response bag;Pre-determined number is tested with this, when every minor tick is preset Between, the test request data packet of predetermined number is continuously transmitted every time, obtains being averaged for the IP address of the cceleration machine room access point Test the speed time delay;
Network communication IP selection unit 223, the lesser time delay institute that averagely tests the speed in Yanzhong is right when averagely testing the speed for selection two The IP address answered, as current optimal network communication IP address.
As shown in figure 9, the inquiry acquisition module 20 may include:
Acquiring unit 201, transmission unit 202 and receiving unit 203, in which:
Acquiring unit 201, for obtaining the clothes to match with the user terminal after user terminal accesses application platform The IP address of business device;
Transmission unit 202, for the IP address by the server, Xiang Suoshu server sends inquiry request;
Receiving unit 203, for receiving that the server returns according to the inquiry request and the user terminal The relevant IP information list of domain name.
The present embodiment can realize quick ANS server under user terminal wireless network based on the domain name of ANS server IP address is chosen, so that user terminal quickly carries out network communication by the ANS server ip address chosen.
Thus a Software Development Kit (Software Development Kit, SDK) for mobile acceleration is introduced, This SDK is loaded into the code of application program for mobile terminal, and is accordingly programmed according to interface, mobile acceleration can be realized Effect.
Specifically, on the subscriber terminal the above-mentioned mobile acceleration SDK of application platform access, when carrying out network communication for the first time, User terminal obtains the IP address of the ANS server to match with the user terminal by interacting with ANS server, so as to basis The IP address of the ANS server sends inquiry request to ANS server, obtains IP information relevant to the domain name of user terminal.
Acquiring unit 201, can be according to user when obtaining the IP address of the ANS server to match with the user terminal The network type of terminal and the connection IP address that ANS server is determined in conjunction with operator's informaiton.
IP address of the transmission unit 202 by the ANS server later, Xiang Suoshu ANS server transmission inquiry request.
ANS server obtains and the user terminal in the inquiry request for receiving user terminal according to the inquiry request The relevant IP information of domain name, for example, source station IP address, the IP address of source station speed measuring point and IP address of OC access point etc., thus It forms an IP information list and returns to user terminal, wherein the domain name of user terminal is user in application platform registration, application Platform is a domain name of its distribution, and user terminal can be using the domain name of this distribution, by accelerating the interface of platform offer to carry out Network request.
User terminal receive that the ANS server returns according to the inquiry request by receiving unit 203 with it is described The relevant IP information list of user terminal domain name.
In addition, in order to achieve the purpose that quick response, as the IP for having multiple ANS servers to match with user terminal When location, user terminal, which will start, concurrently to be inquired, to multiple concurrent inquiry requests of ANS server.
Meanwhile in order to reduce the consumption of user terminal performance and network inquiry, the factors such as time and space are comprehensively considered, When having multiple ANS server ip address, the number of concurrent of user terminal be can be set as needed as predetermined number, for example be limited to 3, i.e., when existing more than 3 ANS server ip address, the IP address of 3 ANS servers of inquiry only can be concurrently gone, then It chooses and responds most fast query information.
Later, user terminal can be believed according to IP such as source station IP address, the OC access point IP address that ANS server inquires Breath quickly carries out network communication.
Through the above scheme, when the App that user uses has accessed mobile acceleration SDK, network communication will be certainly for the present embodiment It is dynamic to get around Local dns resolution system, it effectively prevent seeking the influence for the factors such as quotient interferes, cell phone network setting mismatches, it is directly logical It crosses the IP information such as source station IP address, the IP address of OC access point that dedicated ANS server inquires and quickly carries out network communication, Network delay, shakiness caused by when being communicated so as to avoid the domain name of the IP address or fixation that use fixation in the prior art Qualitative and unreliability problem, high efficient and reliable solve the problems, such as the access of mobile phone terminal across a network.
Further, as shown in Figure 10, above-mentioned acquiring unit 201 may include: network type acquiring unit 2011, operation Quotient's information acquisition unit 2012 and IP address acquiring unit 2013, in which:
Network type acquiring unit 2011, for obtaining the network of user terminal after user terminal accesses application platform Type;
Operator's informaiton acquiring unit 2012, for when the network type of the user terminal be mobile network's type when, Obtain the network operator information of the user terminal;
IP address acquiring unit 2013, for according to the network operator information of the user terminal from the user terminal The local IP address for obtaining the ANS server to match with the network operator information.
Further, the IP address acquiring unit 2013 is also used to when the network type of the user terminal be non-moving Network type, alternatively, when the network type of the user terminal is mobile network's type and the network for obtaining the user terminal It when operator's informaiton fails, is parsed by domain name of the preset dns resolution engine to the ANS server, acquisition and institute State the IP address for the ANS server that user terminal matches.
Specifically, wherein terminal network type includes the non-moving network of the mobile networks and WIFI etc. such as 2G, 3G.This Outside, the IP address of a ANS server and the domain name of ANS server can be locally saved in user terminal;Wherein IP address includes The IP address of three nets and corresponding operator's informaiton.
User terminal is after accessing application platform, with obtaining the IP of the ANS server to match with the user terminal first Location.
When obtaining the IP address of the ANS server to match with the user terminal, the network of user terminal is obtained first Type;When the network type of the user terminal is mobile networks' types such as 2G or 3G, attempt to obtain the user terminal Network operator information, operator are generally divided into China Mobile, China Telecom, three kinds of China Unicom.
After obtaining the network operator information success of user terminal, according to the network operator information of the user terminal The IP address of the ANS server to match with the network operator information is locally obtained from the user terminal, and is taken to ANS Business device is concurrently inquired.
When the network type for determining user terminal is the non-moving network type such as WIFI, alternatively, working as the network of user terminal When type is mobile network's type and the network operator information failure for obtaining the user terminal, pass through preset dns resolution Engine parses the domain name of the ANS server, with obtaining the IP of the ANS server to match with the user terminal Location, terminal are concurrently inquired then to ANS server.
Further, the IP address acquiring unit 2013 is also used to through preset dns resolution engine to specified DNS Server sends the UDP request of dns resolution;The DNS solution of the domain name containing the ANS server is carried in UDP request Analyse protocol package;Receive the DNS Protocol response bag of the dns server feedback;The DNS Protocol of dns server feedback is rung It should wrap and be parsed, obtain the IP address of ANS server to match with the user terminal.
Compared with prior art, in traditional network communication, a fixed IP address or a fixation are often used Domain name communicated with corresponding server, will cause very big network delay, unstability and network communication can not By property, the present embodiment through the above scheme, when the App that user uses has accessed mobile acceleration SDK, network communication will automatically around Local dns resolution system is opened, operator's interference, cell phone network setting is effectively prevent the influence of factors such as to mismatch;In combination with The technology of wireless carriers and dns resolution, the IP address for going retrieval to match by terminal network operator's informaiton first, In the case where network operator information is unknown, by preset dns resolution engine, the dns server of Xiang Zhiding was inquired with end The consistent destination server IP address of network operator is held, thus directly by the way that dedicated ANS server inquires source station, OC connects The IP address of access point carries out network communication, improves the stability of network inquiry, shortens query time, and high efficient and reliable solves hand The problem of machine terminal inter-network accesses.
In addition, the embodiment of the present invention also proposes a kind of system, it is referred to above-mentioned system architecture diagram shown in FIG. 1, this is System may include: that name server and user terminal, the acceleration name server is accelerated to connect with the user terminal communication; It is described that name server is accelerated to be used to receive the inquiry request that the user terminal is sent, according to inquiry request return and institute State the relevant IP information list of domain name of user terminal.The user terminal is obtained from acceleration domain name server query and user terminal The relevant IP information list of domain name;The IP information list includes: the IP address of application platform server, accelerates computer room access The IP address of point and the IP address of application platform server speed measuring point;According to the IP address of the application platform server and add It is logical that the IP address of fast computer room access point carries out network between user terminal, cceleration machine room access point and application platform server News;During network communication, the IP of IP address and cceleration machine room access point to the application platform server speed measuring point Location is tested the speed, and is calculated according to the result that tests the speed and is obtained current optimal network communication IP address.
Its basic principle for implementing network communication route selecting, please refers to above-described embodiment, details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of system, it is referred to above-mentioned system architecture diagram shown in FIG. 1, this is System may include: application platform server, cceleration machine room access point, test the speed server and user terminal, the acceleration computer room Access point respectively with the application platform server, test the speed server and user terminal communication is connect, it is described test the speed server with The user terminal communication connection;
Above-mentioned user terminal is used to obtain IP information relevant to the domain name of user terminal from acceleration domain name server query List;The IP information list includes: the IP address of application platform server, the IP address of cceleration machine room access point and application The IP address of platform server speed point;According to the IP of the IP address of the application platform server and cceleration machine room access point Location carries out network communication between user terminal, cceleration machine room access point and application platform server;In network communication process In, the IP address of IP address and cceleration machine room access point to the application platform server speed measuring point tests the speed, according to survey Fast result, which calculates, obtains current optimal network communication IP address.
The application platform server is used to carry out network by the cceleration machine room access point and the user terminal logical News;
The cceleration machine room access point is also used to during network communication, receives and forward the survey of the user terminal Speed is requested to the server that tests the speed;
The server that tests the speed, test the speed request and the reception user terminal sent for receiving the user terminal The request of testing the speed sent through the cceleration machine room access point;And after receiving request of testing the speed accordingly, returned to user terminal Response bag or response bag from the cceleration machine room access point to user terminal that returned through, to respectively to the application platform The IP address of server speed measuring point and the IP address of cceleration machine room access point test the speed.
Above system implements the basic principle of network communication route selecting, please refers to above-described embodiment, herein no longer It repeats.
Through the above scheme, when the App that user uses has accessed mobile acceleration SDK, network communication will be certainly for the present embodiment It is dynamic to get around Local dns resolution system, it effectively prevent operator's interference, cell phone network setting the influence of factors such as to mismatch;Simultaneously The technology of combining wireless network operator and dns resolution, the IP for going retrieval to match by terminal network operator's informaiton first Address, in the case where network operator information is unknown, by preset dns resolution engine, the dns server of Xiang Zhiding is inquired With the consistent destination server IP address of terminal network operator, the sum that is thus directly inquired by dedicated ANS server The IP address progress network communication of the relevant source station of user terminal domain name, OC access point, improves the stability of network inquiry, shortens Query time;In addition, testing the speed to source station speed measuring point IP and OC access point IP in communication process, passing through corresponding algorithm IP is more preferably communicated to calculate, and is saved for being used within the effective time, is avoided since region communication routing is bad And bring network communication failure or prolonged waiting, improve terminal called quality.From there through combining wireless network operation The technology of quotient and dns resolution, high efficient and reliable solve the problems, such as the access of mobile phone terminal across a network, and smooth, quick net Network response also meets user demand.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device or the network equipment etc.) execute method described in each embodiment of the present invention.Specifically, Fig. 7, Fig. 8, Fig. 9, Tu10Suo Program instruction corresponding to the network communication route selecting device stated can store in the readable storage medium storing program for executing of user terminal, and It is executed by least one processor therein, to realize network communication route selecting method described in Fig. 2 to Fig. 6.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations Equivalent structure made by description of the invention and accompanying drawing content or process transformation, are applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (18)

1. a kind of network communication route selecting method characterized by comprising
IP information list relevant to the domain name of user terminal is obtained from accelerating domain name system ANS server to inquire;The IP letter Breath list includes: that the IP address of application platform server, the IP address of cceleration machine room access point and application platform server are surveyed The IP address of speed point;
According to the IP address of the IP address of the application platform server and cceleration machine room access point in user terminal, acceleration computer room Network communication is carried out between access point and application platform server;
During network communication, the IP of IP address and cceleration machine room access point to the application platform server speed measuring point Location is tested the speed, and the IP address for corresponding to the smaller time delay that averagely tests the speed is chosen using pre-defined algorithm according to the result that tests the speed, as current Optimal network communication IP address.
2. the method according to claim 1, wherein described pair application platform server speed point IP address and The IP address of cceleration machine room access point tests the speed, when averagely being tested the speed according to the result that tests the speed using pre-defined algorithm selection correspondence is smaller The IP address prolonged includes: as the step of current optimal network communication IP address
Start the engine that tests the speed, and the TCP established between the user terminal and testing service device is linked;
Pass through described two threads that test the speed of engine parallel starting that test the speed;
It tests the speed in thread two, obtain the IP address of application platform server speed measuring point respectively using pre-defined algorithm and accelerates computer room The time delay that tests the speed that is averaged of the IP address of access point;
The lesser IP address corresponding to time delay that averagely tests the speed in Yanzhong when selection two is averagely tested the speed, it is logical as current optimal network Interrogate IP address.
3. according to the method described in claim 2, it is characterized in that, the starting is tested the speed before engine further include:
Judgement currently tests the speed the time and whether the test the speed difference of time of last time is greater than setting interval time threshold values, if so, starting survey Fast process.
4. method according to claim 1,2 or 3, which is characterized in that described to be obtained and user's end from the inquiry of ANS server The step of domain name at end relevant IP information list includes:
After user terminal accesses application platform, the IP address of the ANS server to match with the user terminal is obtained;
By the IP address of the ANS server, Xiang Suoshu ANS server sends inquiry request;
Receive IP information relevant to the domain name of the user terminal column that the ANS server is returned according to the inquiry request Table.
5. according to the method described in claim 4, it is characterized in that, it is described user terminal access application platform after, obtain with The step of IP address for the ANS server that the user terminal matches includes:
After user terminal accesses application platform, the network type of user terminal is obtained;
When the network type of the user terminal is mobile network's type, network operator's letter of the user terminal is obtained Breath;
It is locally obtained according to the network operator information of the user terminal from the user terminal and is believed with the network operator The IP address of the matched ANS server of manner of breathing.
6. according to the method described in claim 5, it is characterized in that, it is described user terminal access application platform after, obtain with The step of IP address for the ANS server that the user terminal matches further include:
When the network type of the user terminal is non-moving network type, alternatively, the network type when the user terminal is When the network operator information failure of mobile network's type and the acquisition user terminal, by preset analytics engine to described The domain name of ANS server is parsed, and the IP address of the ANS server to match with the user terminal is obtained.
7. according to the method described in claim 6, it is characterized in that, it is described by preset analytics engine to the server Domain name is parsed, obtain match with the user terminal ANS server IP address the step of include:
The User Datagram Protocol of dns resolution is sent to specified DNS management system dns server by preset analytics engine Discuss UDP request;The dns resolution protocol package of the domain name containing the ANS server is carried in UDP request;
Receive the DNS Protocol response bag of the dns server feedback;
The DNS Protocol response bag of dns server feedback is parsed, the ANS to match with the user terminal is obtained The IP address of server.
8. according to the method described in claim 4, it is characterized in that, described obtain and user terminal from the inquiry of ANS server The step of domain name relevant IP information list further include:
When the IP address for the ANS server of acquisition to match with the user terminal there are it is multiple when, to the ANS of preset number Server transmitted in parallel inquiry request;
It receives and responds the IP information list that most fast ANS server returns in the ANS server of the preset number.
9. a kind of network communication route selecting device characterized by comprising
Inquiry obtains module, for obtaining IP relevant to the domain name of user terminal from acceleration domain name system ANS server inquiry Information list;The IP information list include: the IP address of application platform server, the IP address of cceleration machine room access point and The IP address of application platform server speed measuring point;
Communication module, for according to the IP address of the application platform server and the IP address of cceleration machine room access point in user Network communication is carried out between terminal, cceleration machine room access point and application platform server;
Speed selection module, for during network communication, IP address to the application platform server speed measuring point and plus The IP address of fast computer room access point tests the speed, and chooses the corresponding smaller time delay that averagely tests the speed using pre-defined algorithm according to result is tested the speed IP address, as current optimal network communication IP address.
10. device according to claim 9, which is characterized in that the speed selection module includes:
Start unit, for starting the engine that tests the speed, and the TCP established between the user terminal and testing service device is linked;
Test the speed unit, for testing the speed in thread two, obtains the IP of application platform server speed measuring point respectively using pre-defined algorithm The time delay that tests the speed that is averaged of the IP address of address and cceleration machine room access point;
Network communication IP selection unit, for choose two averagely test the speed when Yanzhong it is lesser with averagely testing the speed IP corresponding to time delay Location, as current optimal network communication IP address.
11. device according to claim 10, which is characterized in that the start unit be also used to starting test the speed engine it Before, judgement currently tests the speed the time and whether the test the speed difference of time of last time is greater than setting interval time threshold values, tests the speed if so, starting Process.
12. according to device described in claim 9,10 or 11, which is characterized in that the inquiry obtains module and includes:
Acquiring unit, for obtaining the ANS server to match with the user terminal after user terminal accesses application platform IP address;
Transmission unit, for the IP address by the ANS server, Xiang Suoshu ANS server sends inquiry request;
Receiving unit, the domain name with the user terminal returned for receiving the ANS server according to the inquiry request Relevant IP information list.
13. device according to claim 12, which is characterized in that the acquiring unit includes:
Network type acquiring unit, for obtaining the network type of user terminal after user terminal accesses application platform;
Operator's informaiton acquiring unit, for when the network type of the user terminal is mobile network's type, described in acquisition The network operator information of user terminal;
IP address acquiring unit, for locally being obtained according to the network operator information of the user terminal from the user terminal The IP address of the ANS server to match with the network operator information.
14. device according to claim 13, which is characterized in that the IP address acquiring unit is also used to as the user The network type of terminal be non-moving network type, alternatively, when the user terminal network type be mobile network's type and When obtaining the network operator information failure of the user terminal, by preset analytics engine to the domain name of the server into Row parsing, obtains the IP address of the ANS server to match with the user terminal.
15. device according to claim 14, which is characterized in that the IP address acquiring unit is also used to by preset Analytics engine sends the UDP request of dns resolution to specified dns server;It is carried in UDP request and contains the ANS The dns resolution protocol package of the domain name of server;Receive the DNS Protocol response bag of the dns server feedback;The DNS is taken The DNS Protocol response bag of business device feedback is parsed, and the IP address of ANS server to match with the user terminal is obtained.
16. device according to claim 12, which is characterized in that
The transmission unit is also used to work as the ANS server to match with the user terminal that the acquiring unit obtains IP address there are it is multiple when, to the ANS server transmitted in parallel inquiry request of preset number;
The receiving unit, is also used to receive and responds what most fast ANS server returned in the ANS server of the preset number IP information list.
17. a kind of system characterized by comprising accelerate domain name system ANS server and user terminal, the user terminal Including device described in any one of claim 9-16, the ANS server is connect with the user terminal communication;It is described ANS server is used to receive the inquiry request that the user terminal is sent, and is returned according to the inquiry request whole with the user The relevant IP information list of the domain name at end.
18. a kind of system characterized by comprising application platform server, cceleration machine room access point, test the speed server and User terminal, the user terminal include device described in any one of claim 9-16, the cceleration machine room access point point Not with the application platform server, test the speed server and user terminal communication is connect, test the speed server and the user Terminal communication connection;
The application platform server is used to carry out network communication by the cceleration machine room access point and the user terminal;
The cceleration machine room access point is also used to during network communication, receives and testing the speed for the user terminal is forwarded to ask It asks to the server that tests the speed;
The server that tests the speed request and receives the user terminal through institute for testing the speed of receiving that the user terminal sends State the request of testing the speed of cceleration machine room access point transmission;And after receiving request of testing the speed accordingly, to the sound of user terminal return The response bag that should be wrapped or be returned through the cceleration machine room access point to user terminal, to respectively to the application platform service The IP address of device speed measuring point and the IP address of cceleration machine room access point test the speed.
CN201310353751.7A 2013-08-14 2013-08-14 Network communication route selecting method, apparatus and system Active CN104378451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310353751.7A CN104378451B (en) 2013-08-14 2013-08-14 Network communication route selecting method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310353751.7A CN104378451B (en) 2013-08-14 2013-08-14 Network communication route selecting method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104378451A CN104378451A (en) 2015-02-25
CN104378451B true CN104378451B (en) 2019-09-20

Family

ID=52557097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310353751.7A Active CN104378451B (en) 2013-08-14 2013-08-14 Network communication route selecting method, apparatus and system

Country Status (1)

Country Link
CN (1) CN104378451B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107438268B (en) * 2016-03-31 2021-12-24 阿里巴巴集团控股有限公司 Method and device for accelerating wireless network for mobile device
CN106302156A (en) * 2016-09-18 2017-01-04 深圳市青柠互动科技开发有限公司 A kind of live broadcasting method solving region network discrepancy time delay and system
CN109086091B (en) * 2017-06-13 2021-08-06 中国移动通信有限公司研究院 Interface loading method, device and device for software development kit
CN108616609A (en) * 2018-03-10 2018-10-02 北京酷我科技有限公司 A kind of iOS network DNSs parsing strategy
CN109688603B (en) 2018-03-30 2021-03-23 新华三技术有限公司 Network diagnosis method, device and machine readable storage medium
CN108924005B (en) * 2018-06-29 2020-05-12 优刻得科技股份有限公司 Network detection method, network detection apparatus, medium, and device
CN110113446B (en) * 2019-05-23 2022-03-18 竞技世界(成都)网络技术有限公司 Client addressing method, device and system
CN110177140B (en) * 2019-05-27 2022-06-07 湖南快乐阳光互动娱乐传媒有限公司 IP scheduling system and method for client data downloading
CN112242937B (en) * 2020-10-13 2024-03-08 腾讯科技(深圳)有限公司 Network speed measuring method and device, electronic equipment and computer readable medium
WO2025004079A1 (en) * 2023-06-30 2025-01-02 Jio Platforms Limited System and method for enabling speed test of internet connection using mobile application

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446121B1 (en) * 1998-05-26 2002-09-03 Cisco Technology, Inc. System and method for measuring round trip times in a network using a TCP packet
CN101340312A (en) * 2008-08-12 2009-01-07 腾讯科技(深圳)有限公司 Network quality monitoring method and system of internet data center
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 Intelligent dispatching method, device and system of content delivery network flow
CN102123063A (en) * 2011-04-26 2011-07-13 杭州华三通信技术有限公司 Method and device for detecting link bandwidth
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Method and device for selecting optimal application server of domain name system DNS
CN103024461A (en) * 2012-12-10 2013-04-03 乐视网信息技术(北京)股份有限公司 Method for measuring speed of player
CN104301444A (en) * 2013-07-17 2015-01-21 腾讯科技(深圳)有限公司 Network IP acquiring method, device, application platform, client and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446121B1 (en) * 1998-05-26 2002-09-03 Cisco Technology, Inc. System and method for measuring round trip times in a network using a TCP packet
CN101340312A (en) * 2008-08-12 2009-01-07 腾讯科技(深圳)有限公司 Network quality monitoring method and system of internet data center
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 Intelligent dispatching method, device and system of content delivery network flow
CN102123063A (en) * 2011-04-26 2011-07-13 杭州华三通信技术有限公司 Method and device for detecting link bandwidth
CN102340554A (en) * 2011-09-29 2012-02-01 奇智软件(北京)有限公司 Method and device for selecting optimal application server of domain name system DNS
CN103024461A (en) * 2012-12-10 2013-04-03 乐视网信息技术(北京)股份有限公司 Method for measuring speed of player
CN104301444A (en) * 2013-07-17 2015-01-21 腾讯科技(深圳)有限公司 Network IP acquiring method, device, application platform, client and system

Also Published As

Publication number Publication date
CN104378451A (en) 2015-02-25

Similar Documents

Publication Publication Date Title
CN104378451B (en) Network communication route selecting method, apparatus and system
CN104301444B (en) Network IP acquisition methods, device, application platform, client and system
CN104202360B (en) The method of accessed web page, device and router
US9002932B2 (en) Cloud computing access gateway and method for providing a user terminal access to a cloud provider
CN107395683B (en) A method for selecting a back-to-source path and a server
KR101574453B1 (en) System and method for mobility and multi-homing content retrieval applications
US20200228433A1 (en) Computer-readable recording medium including monitoring program, programmable device, and monitoring method
US20150213134A1 (en) Data query method and system and storage medium
CN101227343B (en) Method and device for testing TCPv6 and UDPv6
US20170142196A1 (en) Method and apparatus for selecting source server
CN107613037B (en) Domain name redirection method and system
CN109347997A (en) Domain name resolution method, device, server and storage medium
CN103686198A (en) Video data processing method, device and system
US20140113657A1 (en) Method and wireless access device for implementing positioning service for mobile device
US20170034302A1 (en) Facilitation of efficient web site page loading
EP3917083A1 (en) Network device and method for searching for edge service implemented in network device
CN108156274A (en) Equipment is made to obtain the method and device of domain name mapping result in a kind of VPN network
CN109309728A (en) A kind of data processing method and relevant apparatus
CN113676471B (en) Cross-node communication method, system, medium and electronic device based on container cloud platform
CN102761608A (en) UDP (User Datagram Protocol) conversation multiplexing method and load balancing equipment
US20150172408A1 (en) Unified service platform for ubiquitous network and service implementation method
WO2017107795A1 (en) Method and device for accelerating access to website
CN115567521B (en) Communication method and device between local area network and public cloud, and computing equipment
CN107835095A (en) A kind of processing method and processing device of daily record
KR101645251B1 (en) Protocol dynamic configuration system for reflecting network characteristics in service oriented architecture and Method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210927

Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 2, 518044, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right