CN104811477B - The method and device of network distance automatic measurement - Google Patents

The method and device of network distance automatic measurement Download PDF

Info

Publication number
CN104811477B
CN104811477B CN201510138305.3A CN201510138305A CN104811477B CN 104811477 B CN104811477 B CN 104811477B CN 201510138305 A CN201510138305 A CN 201510138305A CN 104811477 B CN104811477 B CN 104811477B
Authority
CN
China
Prior art keywords
service node
address
response time
unit data
network
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
CN201510138305.3A
Other languages
Chinese (zh)
Other versions
CN104811477A (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.)
Guangdong Ruijiang Cloud Computing Co Ltd
Original Assignee
Guangdong Ruijiang Cloud Computing 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 Guangdong Ruijiang Cloud Computing Co Ltd filed Critical Guangdong Ruijiang Cloud Computing Co Ltd
Priority to CN201510138305.3A priority Critical patent/CN104811477B/en
Publication of CN104811477A publication Critical patent/CN104811477A/en
Application granted granted Critical
Publication of CN104811477B publication Critical patent/CN104811477B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/35Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Landscapes

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

Abstract

The invention discloses a kind of method and devices of network distance automatic measurement, and wherein method includes: the access log obtained on each service node of user in a network;IP address is obtained according to the access log and calculates the response time of the unit data on each service node;The response time of unit data shortest service node is considered as to the service node of IP address.The embodiment of the present invention can fast and accurately determine that IP address is corresponding apart from shortest service node, so as to shorten network response time, reduce the risk to break down.

Description

The method and device of network distance automatic measurement
Technical field
The present embodiments relate to Internet technical field more particularly to a kind of methods and dress of network distance automatic measurement It sets.
Background technique
With the development of internet, how to promote user experience to greatest extent becomes everybody concern, wherein One method is exactly to be sent to Internet service on the service node nearest from user, so as to shorten the response time of network, drop A possibility that low failure.It so to realize this purpose, how measure the distance between User IP and service node just at one A important problem.
In the prior art, the geographical location of IP is determined by the whois information of IP address or passes through user oneself instead The geographical location to determine IP is presented, and then according to the geographical location inquiry CDN service nodal information library for determining IP, it is determining with IP's Geographical location is apart from immediate service node.
But the above method has some limitations, the whois information of IP often updates relatively slowly, can not Accurately determine the geographical location of IP;And the mode real-time of user feedback is poor, and data collection difficulty is big, it is difficult to covering compared with Big range.
Summary of the invention
The embodiment of the present invention provides a kind of method and device of network distance automatic measurement, can fast and accurately determine IP Address is corresponding apart from shortest service node.
In a first aspect, the embodiment of the invention provides a kind of methods of network distance automatic measurement, comprising:
Obtain the access log on each service node of user in a network;
IP address is obtained according to the access log and calculates the response of the unit data on each service node Time;
The response time of unit data shortest service node is considered as to the service node of IP address.
Second aspect, the embodiment of the present invention also provide a kind of device of network distance automatic measurement, comprising:
Access log obtains module, for obtaining the access log on each service node of user in a network;
Response time obtains module, saves for obtaining IP address according to the access log and calculating in each service The response time of unit data on point;
The response time of unit data shortest service node is considered as the service section of IP address by service node determining module Point.
The embodiment of the present invention is by obtaining the access log on each service node of user in a network;According to the visit It asks log acquisition IP address and calculates the response time of the unit data on each service node;By the sound of unit data Shortest service node is considered as the service node of IP address between seasonable.The embodiment of the present invention can fast and accurately determine IP address It is corresponding apart from shortest service node, so as to shorten network response time, reduce the risk to break down.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for the network distance automatic measurement that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of the method for network distance automatic measurement provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram of the device for the network distance automatic measurement that the embodiment of the present invention three provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
The executing subject of the method for network distance automatic measurement provided in an embodiment of the present invention can be to be mounted on terminal device On network distance automatic measurement device, which can use hardware or software realization.Wherein, terminal device can be shifting Dynamic terminal device such as smart phone, portable computer etc., or fixed terminal equipment such as desktop computer etc..
Embodiment one
Fig. 1 is the flow diagram of the method for the network distance automatic measurement that the embodiment of the present invention one provides, such as Fig. 1 institute Show, specifically include:
Access log in step 11, each service node of acquisition user in a network;
Wherein, network includes the common network such as WIFI, 3G, 4G.Service node is the server of deployment in a network.Access The information such as IP address, access data and access service node in log including user client.
For example, can periodically or obtain serve log from each service node in real time, each clothes can also be passed through Business node reports serve log to obtain.
Step 12 obtains IP address according to the access log and calculates the unit data on each service node Response time;
Wherein, the response time of unit data is to obtain the time needed for user obtains unit data.For example, user passes through Time needed for client downloads 3M data on service node is 1s, then the corresponding IP address of the client can be calculated and exist The response time of unit data on the service node is 1s/3M=0.33s/M.
Step 13, by the response time of the unit data shortest service node for being considered as IP address.
For example, calculating separately out units of the IP address on each service node by method described in step 12 According to response time, by comparing by the response time of the unit data shortest service node for being considered as IP address.
The present embodiment is by obtaining the access log on each service node of user in a network;According to the access day Will obtains IP address and calculates the response time of the unit data on each service node;When by the response of unit data Between shortest service node be considered as the service node of IP address, can fast and accurately determine that IP address is corresponding apart from shortest Service node reduces the risk to break down so as to shorten the network access response time.
Illustratively, on the basis of the above embodiments, IP address is obtained according to the access log and calculated After the response time of unit data on each service node further include:
The response time of unit data of the IP address on each service node is ranked up;
The neighborhood service node of IP address is determined according to ranking results.
Wherein, the response of the response time of unit data of the IP address on neighborhood service node and shortest unit data The service node that the difference of time is less than preset value is the industry service node of IP address.
For example, it is 1s/M that the response time that unit data of the IP address on service node 1 is obtained by calculation is most short, it will Preset value is set as 1s/M, and IP address is calculated and is 2s/M, servicing in the response time of the unit data on service node 2 The response time of unit data on node 3 is 2s/M, the response time of unit data on service node 4 is 3s/M, then The neighborhood service node for determining the IP address is service node 2 and service node 3.
Illustratively, on the basis of the above embodiments, the method also includes: building IP network range information library, institute State the response time shortest service node and/or neighbouring clothes in network distance information bank comprising the corresponding unit data of IP address Business node.
Illustratively, the network is preferably CDN network.
Above-described embodiment equally passes through the access log obtained on each service node of user in a network;According to described Access log obtains IP address and calculates the response time of the unit data on each service node;By unit data Response time, shortest service node was considered as the service node of IP address, can fast and accurately determine the corresponding distance of IP address Shortest service node reduces the risk to break down so as to shorten the network access response time.And construct network Subsequent query is convenient in range information library.
Embodiment two
Fig. 2 is the flow diagram of the method for network distance automatic measurement provided by Embodiment 2 of the present invention, such as Fig. 2 institute Show, specifically include:
Step 21, the periodically access log on each service node of collection user in a network;
Step 22, the analysis access log therefrom obtain IP address and calculate the list on each service node The response time of position data;
Step 23, the service node that the response time of unit data shortest service node is considered as to IP address;
Step 24, unit data by the IP address on each service node response time be ranked up;
Step 25, the neighborhood service node that IP address is determined according to ranking results;
Step 26 constructs IP network range information library, includes the corresponding unit of IP address in the network distance information bank The response time of data shortest service node and/or adjacent service node.
The present embodiment is by obtaining the access log on each service node of user in a network;According to the access day Will obtains IP address and calculates the response time of the unit data on each service node;When by the response of unit data Between shortest service node be considered as the service node of IP address, can fast and accurately determine that IP address is corresponding apart from shortest Service node reduces the risk to break down so as to shorten the network access response time.
Embodiment three
Fig. 3 is the structural schematic diagram of the device for the network distance automatic measurement that the embodiment of the present invention three provides, such as Fig. 3 institute Show, specifically include: access log obtains module 31, the response time obtains module 32 and service node determining module 33.
Access log obtains module 31 and is used to obtain the access log on each service node of user in a network;
Response time obtains module 32 and is used to obtain IP address according to the access log and calculate in each service The response time of unit data on node;
The response time of unit data shortest service node is considered as the service of IP address by service node determining module 33 Node.
The device of network distance automatic measurement described in the present embodiment is for executing network described in above method embodiment The technical effect of the method for automatic range measurement, technical principle and generation is similar, is described again here.
Illustratively, on the basis of the above embodiments, above-mentioned apparatus further include:
Sorting module 34, which is used to obtain module 32 in the response time, obtains IP address according to the access log And calculate after the response time of the unit data on each service node, by the IP address on each service node The response time of unit data is ranked up;
Neighborhood service node determining module 35 is used to determine the neighborhood service node of IP address according to ranking results.
Illustratively, on the basis of the above embodiments, above-mentioned apparatus further include:
Information bank building module 36 is for constructing IP network range information library, in the network distance information bank comprising IP The response time shortest service node and/or adjacent service node of the corresponding unit data in location.
Illustratively, on the basis of the above embodiments, the network is CDN network.
The device of network distance automatic measurement described in above-described embodiment is for executing net described in above method embodiment The technical effect of the method for network automatic range measurement, technical principle and generation is similar, is described again here.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (4)

1. a kind of method of network distance automatic measurement characterized by comprising
The access log on each service node of user in a network is obtained in real time;
IP address is obtained according to the access log and calculates the response time of the unit data on each service node;
The response time of unit data shortest service node is considered as to the service node of IP address;
The response time of unit data of the IP address on each service node is ranked up;
The neighborhood service node of IP address is determined according to ranking results;
Wherein, the response time of unit data of the IP address on the neighborhood service node and shortest unit data The service node that the difference of response time is less than preset value is the neighborhood service node of the IP address;
IP network range information library is constructed, when including the response of the corresponding unit data of IP address in the network distance information bank Between shortest service node and/or adjacent service node.
2. the method according to claim 1, wherein the network is CDN network.
3. a kind of device of network distance automatic measurement characterized by comprising
Access log obtains module, for obtaining the access log on each service node of user in a network in real time;
Response time obtains module, for obtaining IP address according to the access log and calculating in each service node Unit data response time;
The response time of unit data shortest service node is considered as the service node of IP address by service node determining module;
Sorting module, for obtaining in the response time, module obtains IP address according to the access log and calculating exists After the response time of unit data on each service node, by unit data of the IP address on each service node Response time be ranked up;
Neighborhood service node determining module, for determining the neighborhood service node of IP address according to ranking results;
Wherein, the response time of unit data of the IP address on the neighborhood service node and shortest unit data The service node that the difference of response time is less than preset value is the neighborhood service node of the IP address;
Information bank constructs module, includes IP address pair in the network distance information bank for constructing IP network range information library The response time for the unit data answered shortest service node and/or adjacent service node.
4. device according to claim 3, which is characterized in that the network is CDN network.
CN201510138305.3A 2015-03-26 2015-03-26 The method and device of network distance automatic measurement Active CN104811477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510138305.3A CN104811477B (en) 2015-03-26 2015-03-26 The method and device of network distance automatic measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510138305.3A CN104811477B (en) 2015-03-26 2015-03-26 The method and device of network distance automatic measurement

Publications (2)

Publication Number Publication Date
CN104811477A CN104811477A (en) 2015-07-29
CN104811477B true CN104811477B (en) 2019-02-22

Family

ID=53695966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510138305.3A Active CN104811477B (en) 2015-03-26 2015-03-26 The method and device of network distance automatic measurement

Country Status (1)

Country Link
CN (1) CN104811477B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741886A (en) * 2008-11-05 2010-06-16 北京搜狗科技发展有限公司 Access path generating method, system and device
CN101989951A (en) * 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method, system and equipment for selecting service node
CN102196060A (en) * 2011-06-15 2011-09-21 北京蓝汛通信技术有限责任公司 Method and system for selecting source station by Cache server
CN103209102A (en) * 2013-03-11 2013-07-17 北京邮电大学 Web quality of service distributed measurement system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010035565A1 (en) * 2008-09-29 2010-04-01 日本電気株式会社 Distance metric estimation system, coordinate calculating node, distance metric estimation method, and program
US8103780B2 (en) * 2008-12-18 2012-01-24 At&T Intellectual Property I, Lp Systems and methods for determining the location of a request on a content delivery network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741886A (en) * 2008-11-05 2010-06-16 北京搜狗科技发展有限公司 Access path generating method, system and device
CN101989951A (en) * 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method, system and equipment for selecting service node
CN102196060A (en) * 2011-06-15 2011-09-21 北京蓝汛通信技术有限责任公司 Method and system for selecting source station by Cache server
CN103209102A (en) * 2013-03-11 2013-07-17 北京邮电大学 Web quality of service distributed measurement system and method

Also Published As

Publication number Publication date
CN104811477A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
US20190102798A1 (en) Systems and methods to create a geographic heatmap
US10114915B2 (en) Consumer performance index scoring for websites and web-based applications
Symeonidis et al. Geo-social recommendations based on incremental tensor reduction and local path traversal
US9559915B2 (en) System and method for dynamically testing networked target systems
KR101785219B1 (en) Service recommendation for user groups in internet of things environments using member organization-based group similarity measures
US10223397B1 (en) Social graph based co-location of network users
US20150206176A1 (en) Behavioral content discovery
Khan et al. Recent open source wireless sensor network supporting simulators: A performance comparison
CN103024730B (en) A kind of application method for down loading, terminal and server
CN109561167A (en) A kind of domain name analytic method and device
KR102351421B1 (en) Method and apparatus for providing information and method and apparatus for providing search result
CN102999558A (en) Processing search queries using a data structure
CN106937308B (en) Method and equipment for determining user access service area and activity information
CN104811477B (en) The method and device of network distance automatic measurement
CN103227791A (en) Method and device for wireless data collection
JP2016139191A (en) Web browsing quality management device and method and program thereof
US20140365476A1 (en) Virtual tag, client hosted and client sourced content/services rating and ranking support
JP6591638B1 (en) Information processing apparatus, information processing method, and information processing program
JP5944878B2 (en) Determination device, determination method, and determination program
JP2017122959A (en) Information generation device and information generation method
CN105447089A (en) Search result page display method and apparatus
CN110858175A (en) Test control method, master control equipment, controlled equipment and test system
US20130290069A1 (en) Pricing engine revenue evaluation
CN104392000B (en) Determine the method and apparatus that mobile site captures quota
CN104702619A (en) Method and device for intelligently determining service node in CDN (Content Distribution Network)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 705-708, room two, No. 121, north south of the Five Ridges Avenue, Chancheng District, Guangdong, Foshan, 528000

Applicant after: GUANGDONG RUIJIANG CLOUD COMPUTING CO., LTD.

Address before: Chancheng District of Guangdong city of Foshan province south of the Five Ridges 528000 Avenue North 121 East International A District Office 7-8

Applicant before: Guangdong Efly Network Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant