CN104811477A - Automatic network distance measuring method and device - Google Patents

Automatic network distance measuring method and device Download PDF

Info

Publication number
CN104811477A
CN104811477A CN201510138305.3A CN201510138305A CN104811477A CN 104811477 A CN104811477 A CN 104811477A CN 201510138305 A CN201510138305 A CN 201510138305A CN 104811477 A CN104811477 A CN 104811477A
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.)
Granted
Application number
CN201510138305.3A
Other languages
Chinese (zh)
Other versions
CN104811477B (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 Efly Network Co Ltd
Original Assignee
Guangdong Efly Network 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 Efly Network Co Ltd filed Critical Guangdong Efly Network 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 an automatic network distance measuring method and device. The method comprises that access logs of a user in service nodes of the network are obtained; according to the access logs, the IP address of the user is obtained, and response time of unit data in each service node is calculated; and the service node in which the response time of the unit data is shortest is used as the service node of the IP address. According to the method and the device, the service node whose IP address corresponds to the shortest distance can be rapidly and accurately determined, the network response time is shortened, and the risk of faults is reduced.

Description

The method that network distance is measured automatically and device
Technical field
The embodiment of the present invention relates to Internet technical field, particularly relates to method and device that a kind of network distance measures automatically.
Background technology
Along with the development of the Internet, how promote Consumer's Experience to greatest extent and become the problem that everybody is concerned about, wherein, method is exactly Internet service delivered to from the nearest service node of user, thus shorten the response time of network, reduce the possibility of fault.So will achieve this end, the distance of how to measure between User IP with service node has just become an important problem.
In the prior art, determine the geographical position of IP by the whois information of IP address or determined the geographical position of IP by user oneself feedback, and then according to determining the inquiry CDN service nodal information storehouse, geographical position of IP, determine with the geographical position of IP apart from immediate service node.
But said method all has some limitations, the whois information of IP often upgrades relatively slower, can not determine the geographical position of IP accurately; And the mode real-time of user feedback is poor, and Data Collection difficulty is large, is difficult to cover larger scope.
Summary of the invention
A kind of method that the embodiment of the present invention provides network distance automatically to measure and device, can determine the service node that distance corresponding to IP address is the shortest fast and accurately.
First aspect, embodiments provides a kind of method that network distance is measured automatically, comprising:
Obtain the access log on user's each service node in a network;
Obtain IP address according to described access log and calculate the response time of the unit data on each service node;
The service node the shortest response time of unit data is considered as the service node of IP address.
Second aspect, the device that the embodiment of the present invention also provides a kind of network distance automatically to measure, comprising:
Access log acquisition module, for obtaining the access log on user's each service node in a network;
Response time acquisition module, for obtaining the response time of IP address and the unit data of calculating on each service node according to described access log;
Service node determination module, is considered as the service node of IP address by the service node the shortest response time of unit data.
The embodiment of the present invention is by obtaining the access log on user's each service node in a network; Obtain IP address according to described access log and calculate the response time of the unit data on each service node; The service node the shortest response time of unit data is considered as the service node of IP address.The embodiment of the present invention can determine the service node that distance corresponding to IP address is the shortest fast and accurately, thus shortens network response time, reduces the risk broken down.
Accompanying drawing explanation
The schematic flow sheet of the method that Fig. 1 measures automatically for the network distance that the embodiment of the present invention one provides;
The schematic flow sheet of the method that Fig. 2 measures automatically for the network distance that the embodiment of the present invention two provides;
The structural representation of the device that Fig. 3 measures automatically for the network distance that the embodiment of the present invention three provides.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not entire infrastructure.
The executive agent of the method that the network distance that the embodiment of the present invention provides is measured automatically, can be the device that installation network distance is on the terminal device measured automatically, this device can adopt hardware or software simulating.Wherein, terminal equipment can be mobile terminal device such as smart mobile phone, portable computer etc., also can be fixed terminal equipment such as desktop computer etc.
Embodiment one
The schematic flow sheet of the method that Fig. 1 measures automatically for the network distance that the embodiment of the present invention one provides, as shown in Figure 1, specifically comprises:
Step 11, the access log obtained on user's each service node in a network;
Wherein, network comprises the conventional network such as WIFI, 3G, 4G.Service node is dispose server in a network.Access log comprises IP address, the information such as visit data and access services node of subscription client.
Such as, can be regular or real-time obtain serve log from each service node, also can report serve log to obtain by each service node.
Step 12, to obtain IP address according to described access log and calculate response time of the unit data on each service node;
Wherein, the response time of unit data obtains time needed for unit data for obtaining user.Such as, user is 1s by the client time of downloading on service node needed for 3M data, then the response time that can calculate the unit data of IP address on this service node corresponding to this client is 1s/3M=0.33s/M.
Step 13, by the service node being considered as IP the address the shortest response time of unit data.
Such as, by the method described in step 12, calculate the response time of this unit data of IP address on each service node respectively, by comparing the service node being considered as IP the address the shortest response time of unit data.
The present embodiment is by obtaining the access log on user's each service node in a network; Obtain IP address according to described access log and calculate the response time of the unit data on each service node; The service node the shortest response time of unit data is considered as the service node of IP address, the service node that distance corresponding to IP address is the shortest can be determined fast and accurately, thus shorten the access to netwoks response time, reduce the risk broken down.
Exemplary, on the basis of above-described embodiment, also comprise obtain the response time of IP address and the unit data of calculating on each service node according to described access log after:
The response time of the unit data of described IP address on each service node is sorted;
The neighborhood service node of IP address is determined according to ranking results.
Wherein, the response time of the unit data of IP address on neighborhood service node and the difference of the response time of the shortest unit data are less than the service node of preset value.
Such as, the shortest by response time of calculating the unit data of IP address on service node 1 is 1s/M, preset value is set to 1s/M, calculate IP address the response time of the unit data on service node 2 be 2s/M, the response time of unit data on service node 3 is 2s/M, the response time of unit data on service node 4 is 3s/M, then determine that the neighborhood service node of this IP address is service node 2 and service node 3.
Exemplary, on the basis of above-described embodiment, described method also comprises: build IP network range information storehouse, comprises response time of unit data corresponding to IP address the shortest service node and/or adjacent service node in described network distance information bank.
Exemplary, described network is preferably CDN.
Above-described embodiment is equally by obtaining the access log on user's each service node in a network; Obtain IP address according to described access log and calculate the response time of the unit data on each service node; The service node the shortest response time of unit data is considered as the service node of IP address, the service node that distance corresponding to IP address is the shortest can be determined fast and accurately, thus shorten the access to netwoks response time, reduce the risk broken down.And construct network distance information bank, be convenient to subsequent query.
Embodiment two
The schematic flow sheet of the method that Fig. 2 measures automatically for the network distance that the embodiment of the present invention two provides, as shown in Figure 2, specifically comprises:
Access log on step 21, periodic collection user each service node in a network;
Step 22, analyze described access log, therefrom obtain IP address and calculate response time of the unit data on each service node;
Step 23, the service node the shortest response time of unit data is considered as the service node of IP address;
Step 24, the response time of the unit data of described IP address on each service node to be sorted;
Step 25, determine the neighborhood service node of IP address according to ranking results;
Step 26, build IP network range information storehouse, in described network distance information bank, comprise response time of unit data corresponding to IP address the shortest service node and/or adjacent service node.
The present embodiment is by obtaining the access log on user's each service node in a network; Obtain IP address according to described access log and calculate the response time of the unit data on each service node; The service node the shortest response time of unit data is considered as the service node of IP address, the service node that distance corresponding to IP address is the shortest can be determined fast and accurately, thus shorten the access to netwoks response time, reduce the risk broken down.
Embodiment three
The structural representation of the device that Fig. 3 measures automatically for the network distance that the embodiment of the present invention three provides, as shown in Figure 3, specifically comprises: access log acquisition module 31, response time acquisition module 32 and service node determination module 33.
Access log acquisition module 31 is for obtaining the access log on user's each service node in a network;
Response time acquisition module 32 is for obtaining the response time of IP address and the unit data of calculating on each service node according to described access log;
The service node the shortest response time of unit data is considered as the service node of IP address by service node determination module 33.
The method that the device that network distance described in the present embodiment is measured automatically is measured automatically for the network distance performed described in said method embodiment, the technique effect of its know-why and generation is similar, is not repeated here.
Exemplary, on the basis of above-described embodiment, said apparatus also comprises:
The response time of the unit data of described IP address on each service node, after the response time obtaining IP address and the unit data of calculating on each service node according to described access log at described response time acquisition module 32, sorts by order module 34;
Neighborhood service node determination module 35 is for determining the neighborhood service node of IP address according to ranking results.
Exemplary, on the basis of above-described embodiment, said apparatus also comprises:
Information bank builds module 36 for building IP network range information storehouse, comprises response time of unit data corresponding to IP address the shortest service node and/or adjacent service node in described network distance information bank.
Exemplary, on the basis of above-described embodiment, described network is CDN.
The method that the device that network distance described in above-described embodiment is measured automatically is measured automatically for the network distance performed described in said method embodiment, the technique effect of its know-why and generation is similar, is not repeated here.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (8)

1. the method automatically measured of network distance, is characterized in that, comprising:
Obtain the access log on user's each service node in a network;
Obtain IP address according to described access log and calculate the response time of the unit data on each service node;
The service node the shortest response time of unit data is considered as the service node of IP address.
2. method according to claim 1, is characterized in that, also comprises after obtaining the response time of IP address and the unit data of calculating on each service node according to described access log:
The response time of the unit data of described IP address on each service node is sorted;
The neighborhood service node of IP address is determined according to ranking results.
3. method according to claim 2, is characterized in that, also comprises: build IP network range information storehouse, comprises response time of unit data corresponding to IP address the shortest service node and/or adjacent service node in described network distance information bank.
4. the method according to any one of claims 1 to 3, is characterized in that, described network is CDN.
5. the device automatically measured of network distance, is characterized in that, comprising:
Access log acquisition module, for obtaining the access log on user's each service node in a network;
Response time acquisition module, for obtaining the response time of IP address and the unit data of calculating on each service node according to described access log;
Service node determination module, is considered as the service node of IP address by the service node the shortest response time of unit data.
6. device according to claim 5, it is characterized in that, also comprise: order module, after the response time obtaining IP address and the unit data of calculating on each service node according to described access log at described response time acquisition module, the response time of the unit data of described IP address on each service node is sorted;
Neighborhood service node determination module, for determining the neighborhood service node of IP address according to ranking results.
7. device according to claim 6, is characterized in that, also comprises:
Information bank builds module, for building IP network range information storehouse, comprises response time of unit data corresponding to IP address the shortest service node and/or adjacent service node in described network distance information bank.
8. the device according to any one of claim 5 ~ 7, is characterized in that, described network is CDN.
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 true CN104811477A (en) 2015-07-29
CN104811477B 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 (6)

* 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
US20100161760A1 (en) * 2008-12-18 2010-06-24 At&T Corp. Systems and Methods for Determining the Location of a Request on a Content Delivery Network
CN101989951A (en) * 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method, system and equipment for selecting service node
US20110172956A1 (en) * 2008-09-29 2011-07-14 Shinji Nakadai Distance metric estimating system, coordinate calculating node, distance metric estimating method, and program
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110172956A1 (en) * 2008-09-29 2011-07-14 Shinji Nakadai Distance metric estimating system, coordinate calculating node, distance metric estimating method, and program
CN101741886A (en) * 2008-11-05 2010-06-16 北京搜狗科技发展有限公司 Access path generating method, system and device
US20100161760A1 (en) * 2008-12-18 2010-06-24 At&T Corp. Systems and Methods for Determining the Location of a Request on a Content Delivery Network
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
CN104811477B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN103402177B (en) A kind of WiFi terminal information transmission system and its implementation
CN104506644B (en) A kind of method, apparatus and mobile terminal for carrying out network data access
JP4891817B2 (en) Design rule management method, design rule management program, rule construction device, and rule check device
Taherkordi et al. From IoT big data to IoT big services
US20180276325A1 (en) Consumer Performance Index Scoring for Websites and Web-Based Applications
CN103685603B (en) Domain name system resolution and equipment
US10277475B2 (en) System and method for dynamically testing networked target systems
US10223397B1 (en) Social graph based co-location of network users
CN102867266B (en) A kind of news valency method and device
CN109561167B (en) Domain name resolution method and device
CN103024730B (en) A kind of application method for down loading, terminal and server
CN109615211A (en) A kind of Project Risk Assessment system, method and a kind of storage medium
CN109117448B (en) Thermodynamic diagram generation method and device
JP5986028B2 (en) Apparatus, program, and method for estimating short-time stay location of user having portable terminal
CN106937308B (en) Method and equipment for determining user access service area and activity information
CN104702439B (en) The method and apparatus for monitoring network node
CN105491172B (en) It is a kind of for determining the method and apparatus of the information of home location of network address
CN104735041A (en) Method and device for having access to offline resources
CN110661660B (en) Alarm information root analysis method and device
Williams et al. Methodology to model the energy and greenhouse gas emissions of electronic software distributions
CN103227791A (en) Method and device for wireless data collection
CN104811477A (en) Automatic network distance measuring method and device
Sik et al. Toward cognitive data analysis with big data environment
CN102930015B (en) A kind of for providing the method and apparatus of Search Results on mobile terminals
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