CN104253879A - IP (Internet protocol) address-based position calibration method and IP address-based position calibration device - Google Patents

IP (Internet protocol) address-based position calibration method and IP address-based position calibration device Download PDF

Info

Publication number
CN104253879A
CN104253879A CN201410468109.8A CN201410468109A CN104253879A CN 104253879 A CN104253879 A CN 104253879A CN 201410468109 A CN201410468109 A CN 201410468109A CN 104253879 A CN104253879 A CN 104253879A
Authority
CN
China
Prior art keywords
address
positional information
physical location
information
packet
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.)
Pending
Application number
CN201410468109.8A
Other languages
Chinese (zh)
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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology 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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201410468109.8A priority Critical patent/CN104253879A/en
Publication of CN104253879A publication Critical patent/CN104253879A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an IP (Internet protocol) address-based position calibration method and an IP address-based position calibration device. The IP address-based position calibration method comprises the following steps: capturing multiple data packets transmitted and received upon IP addresses; extracting position information from the data packets; processing the position information so as to calibrate the physical position of each IP address; performing output and presentation on the physical position of each IP address. According to the IP address-based position calibration method and the IP address-based position calibration device provided by the invention, the multiple data packets transmitted and received upon the IP addresses are captured, and the position information is extracted from the multiple data packets so as to process the position information of each IP address so as to calibrate the physical position of each IP address, and the output and the representation are performed on the physical position of each IP address. The IP address-based position calibration method and the IP address-based position calibration device provided by the invention have the beneficial effects that positioning on an optional IP address is realized, and moreover, the concrete physical position of each IP address can be rapidly, accurately and simply positioned; the vacancy, in the communication field, of the prior art is filled.

Description

A kind of IP address-based position calibration method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of IP address-based position calibration method and device, to realize the demarcation of virtual ip address to concrete physical location.
Background technology
Along with the develop rapidly of Internet technology, on the one hand, the maturation of enterprise-level Wifi technology, mobile phone and panel computer universal, increasing enterprise and family have abandoned wired network access, then adopt wireless wifi to carry out network insertion, the various accuracy having merged the APP software of wifi, GPS, LBS positioning function there has also been very large raising, even can ensure the positioning precision of meter level in indoor; On the other hand, the flow of enterprise network and personal network presents explosive growth, valuable Internet resources are abused, it is extremely serious that unordered, the random access of the Internet, the private of network connect random phenomenon of taking, the reduction of the cost of net crime, also brings various potential potential safety hazard to enterprises and individuals; Given this, locate online position and place scope really by virtual network ip address and just seem extremely important.
At present this field also not good localization method for IP address physical location and place scope, corresponding online personnel or enterprise also can only be searched by operator by the IP information of putting on record, but these all can accurately not orient the field boundary in online place particular location and online place, especially solution is not had for the network privately connected in violation of rules and regulations, at this, be the physical location of IP address by the concrete place of IP and the field boundary scope definition in online place.
Summary of the invention
The invention provides a kind of IP address-based position calibration method and device, to overcome the defect of prior art.
First aspect, the invention provides a kind of IP address-based position calibration method, comprising:
Catch and carry out based on described IP address the packet received and dispatched;
Extract location information from described packet;
Described positional information is processed, to demarcate the physical location of described IP address;
The physical location of described IP address is carried out output to show.
Preferably, catch the packet carrying out receiving and dispatching based on described IP address to comprise:
Image copying is carried out to the packet received and dispatched based on described IP address, to obtain the packet load of image copying;
Described packet load is carried out to the decoding of network layer and transport layer.
Preferably, described positional information is processed, comprises with the physical location demarcating described IP address:
Obtain the described positional information extracted in collection period threshold value;
If the quantity of described positional information reaches information lower limit, then demarcate the physical location of described IP address based on described positional information.
Preferably, described positional information is processed, comprises with the physical location demarcating described IP address:
The positional information departing from setpoint distance in described positional information is filtered out;
The physical location of described IP address is demarcated according to remaining positional information.
Preferably, the physical location of described IP address is carried out output displaying to comprise:
By the physical location of described IP address, electronic chart marks, and export displaying.
Second aspect, the invention provides a kind of IP address-based position label means, comprising:
Capture-data bag module, carries out based on described IP address the packet received and dispatched for catching;
Extract location information module, for extract location information from described packet;
Processing module, for processing described positional information, to demarcate the physical location of described IP address;
Exporting display module, showing for the physical location of described IP address being carried out output.
Preferably, described capture-data bag module comprises:
Image copying unit, carries out image copying to the packet received and dispatched based on described IP address, to obtain the packet load of image copying;
Decoding unit, for carrying out the decoding of network layer and transport layer to described packet load.
Preferably, described processing module comprises:
Acquiring unit, for obtaining the described positional information extracted in collection period threshold value;
First demarcates unit, if reach information lower limit for the quantity of described positional information, then demarcates the physical location of described IP address based on described positional information.
Preferably, described processing module comprises:
Filter element, for filtering out the positional information departing from setpoint distance in described positional information;
Second demarcates unit, for demarcating the physical location of described IP address according to remaining positional information.
Preferably, described output display module comprises:
By the physical location of described IP address, electronic chart marks, and export displaying.
The IP address-based position calibration method of one provided by the invention and device, carry out based on IP address multiple packets of receiving and dispatching by catching, and from multiple packet extract location information, to process the positional information of this IP address, to demarcate the physical location of IP, and the physical location of IP address is carried out output displaying.Beneficial effect of the present invention is, achieves the location to any IP address, and can fast, accurately, the concrete physical location of IP address, simple location, filled up the vacancy of prior art in this field.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, introduce doing one to the accompanying drawing used required in embodiment or description of the prior art simply below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of IP address-based position calibration method that the embodiment of the present invention one provides;
Fig. 2 is the physical location exploded view of demarcation that the embodiment of the present invention one provides certain IP address when completing;
Fig. 3 is the general flow schematic diagram of a kind of IP address-based integrated location scaling method that the embodiment of the present invention two provides;
Fig. 4 is the schematic diagram of a kind of IP address-based position label means that the embodiment of the present invention three provides;
Fig. 5 is the Rotating fields schematic diagram of a kind of IP address-based position label means that the embodiment of the present invention three provides;
Fig. 6 is the schematic diagram of the network system of the IP address-based position label means that the embodiment of the present invention three provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, hereinafter with reference to the accompanying drawing in the embodiment of the present invention, by execution mode, technical scheme of the present invention is described clearly and completely, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
Shown in figure 1, for the flow chart of a kind of IP address-based position calibration method that the embodiment of the present invention one provides, the technical scheme of the present embodiment is applicable to carries out position related protocol analysis to demarcate the situation of the physical location corresponding to this IP address for IP address, at this, physical location is used in reference to the physics place scope of concrete physics place corresponding to this IP address and the covering of this IP address.IP address can be the IP address that any user uses, typical as, Virtual network operator be supplied to the constant IP of the static state of enterprise or user, by dial up on the telephone or other modes are networked time assigned stochastic and dynamic IP address.If IP address is dynamic IP addressing, then the method demarcates physical location method when this dynamic IP addressing is once used.If IP address is static address, then the method is the physical location method of demarcating this static ip address.The method of demarcating IP address has nothing to do with the user using this IP address, equipment or usage quantity.The IP address-based uniqueness of the method, physical address is demarcated to the information analysis that IP address sends, the method can be performed by the device demarcating IP address physical location, and this device can adopt the mode of software and/or hardware to realize, and configuration performs within a communication device.
The step of the method is as follows:
Step 110, catch and carry out based on described IP address the packet received and dispatched.
In above-mentioned steps, IP address is current IP address that using, to be calibrated, may be static ip address or dynamic IP addressing, static ip address is provided by Virtual network operator usually, owning user is when surfing the Net at every turn, its IP address is fixed address, and dynamic IP addressing refers to that at every turn the surf the Net IP address that is assigned to of user is not identical.Along with developing rapidly of radio network technique and electronic product, under the wifi technology of maturation, routing device can by multiple accessing terminal to network, share an IP address, be connected with internet device, therefore catch in above-mentioned steps and carry out based on described IP address the packet received and dispatched, do not refer to the packet that a terminal use of IP address to be calibrated sends or the partial data bag that multiple terminal use sends, but specifically refer to all packets that this IP address to be calibrated is received and dispatched in the acquisition time of regulation.
Step 120, from described packet extract location information.
As mentioned above, in all packets that IP address to be calibrated is received and dispatched, comprise position data bag and other packets.Run when terminal use surfs the Net as micro-letter, to call a taxi software, during the assistant softwares such as public transport software, such software all can require the positional information obtaining terminal use, wherein positional information comprises IP address and orientation, the place latitude and longitude information of terminal use, therefore the agreement used during such software transmission positional information is called position related protocol, the packet at the positional information place by this position related protocol transmission is called position data bag, positional information is comprised in position data bag, the physical location of the terminal use corresponding to IP address wherein can be analyzed from position data bag, when extracting the positional information in each packet in the packet from IP address to be calibrated, then can according to the IP address in the plurality of packet and multiple latitude and longitude information, the physical location of this IP address to be calibrated may be calibrated.Other packets refer to the packet not comprising positional information, and therefore other packets can not calibrate the physical location of IP address.
Given data handbag draws together position data bag and other packets, comprises positional information, do not comprise positional information in other packets in position data bag.Therefore, from described packet, extract location information specifically refers to from extract location information the position data bag comprising positional information.Thus, position data bag and other packets of lacking positional information cannot extract positional information completely again, then this position data bag lacking positional information is invalid packets with other packets, directly abandons.
Step 130, described positional information to be processed, to demarcate the physical location of described IP address.
According to above-mentioned steps, from all position data bags of IP address to be calibrated, extract multiple positional information, acquisition procedure due to packet is Real-time Obtaining, and multiple terminal uses of IP address to be calibrated may send several packets, therefore may catch multiple packet in real time successively in collection period threshold value, thus there is multiple positional information.These corresponding IP addresses to be calibrated of positional informations possibility, and the latitude and longitude information in positional information may be different, the all positional informations to obtaining in collection period threshold value are needed to process thus, to obtain the positional information correctly can demarcating IP address physical location, this correct position information set share the physical location demarcating IP address to be calibrated.
Step 140, the physical location of described IP address carried out output and show.
As mentioned above, according to the process of step 130, the set of the positional information extracted can demarcate the physical location of described IP address, but concrete fixed setting and position can not be shown, therefore IP geographic location information to be calibrated is carried out showing and exporting on map, then according to the map in output show result queries go out IP address to be calibrated physical location.As shown in Figure 2, the physical location exploded view of certain the IP address when demarcation provided for the embodiment of the present invention one completes.As is noted in the figures, point in image is latitude and longitude information points corresponding to multiple positional informations of IP address (124.193.127.162) to be calibrated, thus can the physical location of this IP address of expliciting the position, thus realize the demarcation from virtual ip address to online place and place scope.
On the basis of above-described embodiment, the operation of each step can be selected multiple implementation method to realize, and provides respectively below and is preferred embodiment described in detail.
For step 110, catch the operation carrying out the packet received and dispatched based on described IP address, below provide a kind of preferred implementation: the packet of catching described IP address based on image copying mode, specifically comprises:
S111, image copying is carried out to the packet received and dispatched based on described IP address, to obtain the packet load of image copying;
TCP/IP reference model defines terminal use and how to be connected into internet by IP address, and the standard how data are transmitted between which and to be applied, this model has 4 level structures layer by layer, is specifically divided into from down to up: Access Layer, network layer, transport layer and application layer.The Access Layer of TCP/IP reference model is often referred to the part that in network, direct intended for end consumers connects or accesses, the object of Access Layer allows terminal use to be connected to network and by specific transmitted data on network report, therefore Access Layer is the interface of terminal use and network, and each packet that terminal use sends is all through Access Layer.The network layer of TCP/IP reference model also referred to as communicator stratum reticulare, be mainly used in being responsible for definition data by network flow the path of process.The transport layer of TCP/IP reference model provides the transmission service from source host to destination host, for the data that segmentation and sufficient upper level applications send, and transmits between endpoints.Therefore Access Layer can obtain the entire packet that described IP address carries out receiving and dispatching, image copying is carried out to entire packet, then can obtain entire packet load, thus can process this packet load, realize the extraction to positional information in packet and location, image copying packet can obtain whole packet load, and the packet transmission application process in a network that processing procedure and the user of packet load are sent separate, be independent of each other.
S112, described packet load is carried out to the decoding of network layer and transport layer;
Known in above-mentioned steps S111, obtain all packets of IP address at Access Layer by image copying, the packet load obtained is the packet of image copying, and this class packet follows ICP/IP protocol in transmitting-receiving process.Therefore at this, decoding that described packet load carries out network layer and transport layer is specifically referred to, the packet load following ICP/IP protocol is carried out network layer decoding, to parse the network layer load in packet, carry out transport layer decoding again, to parse the transport layer load in packet, by transport layer Load transportation to application layer, be application layer load, carry out follow-up decoding to facilitate extract location information module.For convenience, the packet described in subsequent process is decoded packet, and such decoded packet is application layer load.
Each packet of same IP may comprise positional information and also may not comprise positional information, and extract location information module can attempt parsing positional information from each packet, and the data packet discarding that will process.
The service that the application layer of TCP/IP reference model passes through to use each layer below to provide, providing service directly to user, is the interface between computer network and user or interface.Application layer provides the application program of service and the communications component of support application program to form by some user orienteds.The particular content of application layer is exactly the agreement that given application process is followed when communicating.
In the present embodiment, transport layer is decoded packet to the packet that application layer is transmitted, after the data packet transmission that these have been resolved to application layer, then application layer load is such packet of having resolved, after these packets are passed to application layer, then subsequent process can be decoded to packet with extract location information, thus judges the physics place of the IP address corresponding to packet of catching.
In above-mentioned steps, catch and carry out based on described IP address the packet received and dispatched, it is exactly real-time capture-data bag from the subnet of certain IP address, and by image copying and network layer, transport layer is decoded, to obtain application layer load, when being calibrated the physics place of IP address to be calibrated from the application layer load obtained by subsequent process, then step 110 is without the need to obtaining the application layer load of this IP address to be calibrated again, repeat to avoid calibration process, therefore the time situation that once can demarcate according to complete realization of staff, the time cycle of setting capture-data bag, for collection period threshold value, IP address to be calibrated within this cycle time can not change and can resolve abundant positional information to calibrate the physics place of IP address.Initialization is carried out to IP address to be calibrated, after initialization, catch the packet of this IP address, now collection period is initial, the packet gathered before initialization may not be the packet of current IP address to be calibrated, packet captured after IP address initialization to be calibrated could as the parameter of demarcating this IP address to be calibrated, after collection period threshold value arrives, outside can not ensureing this collection period time, whether IP address changes, therefore no longer using the packet of the catching packet as this IP address to be calibrated, thus, can ensure in collection period threshold value, the packet of catching is the packet of unique IP address, the situation of IP address modification can not be there is.In collection period threshold value, each packet of catching is decoded by image copying and network layer decoding, transport layer, transfers to application layer and processes as application layer load.
In this step 110, staff according to circumstances sets collection period threshold value, time of IP address physical location can be demarcated by manual control, in collection period threshold value, catch and carry out based on IP address the packet received and dispatched, ensure that the packet that all packets of catching are IP address to be calibrated and send, thus guarantee the uniqueness of demarcating IP address.
For step 120, the operation of extract location information from described packet, specifically comprises:
Positional information is made up of IP address and latitude and longitude information, and therefore positional information has latitude and longitude information characteristic sum IP address feature.Application layer receives the application layer load of transport layer transmission, and from application layer load information, extract the information meeting IP address feature and the information meeting latitude and longitude information feature, the packet processed directly abandons.In this step 120, application layer is by decoding to packet, positional information is extracted again from the packet of decoding, again the packet processed directly is abandoned, the packet making all non-position information or do not comprise positional information can not have an impact to the process of demarcating IP address to be calibrated physical location, thus can make that the information content of acquisition is single, scaling method is simple.
For step 130, process described positional information, to demarcate the operation of the physical location of described IP address, preferred embodiment (1) is as follows:
S131, obtain the described positional information extracted in collection period threshold value;
The collection period threshold value of known work personnel setting ensure that within this cycle time, IP address to be calibrated does not change, therefore the arbitrary data bag obtained in collection period threshold time is the packet of IP address to be calibrated, and the process of extract location information occurs in real time after capture-data packet procedures, therefore the described positional information extracted in collection period threshold value is obtained, namely add up in this collection period, the quantity of positional information also obtains positional information content.
In collection period threshold value, multiple positional information quantity is by positional information counters count.Positional information counter carries out quantity renewal according to the positional information extracted, and positional information quantity in counter is increased by 1, adds up thus in collection period threshold value, the positional information quantity of IP address to be calibrated.
If the quantity of the described positional information of S132 reaches information lower limit, then demarcate the physical location of described IP address based on described positional information;
As mentioned above, information lower limit is according to circumstances set by staff, the minimum positional information quantity of the physical location that can describe roughly corresponding to IP address to be calibrated is referred at this, if the positional information quantity that this IP address to be calibrated obtains in collection period threshold value is less than information lower limit, then think that existing positional information quantity can not describe roughly the physical location of IP address, the physical location of the IP address of existing positional information quantity description is fuzzy in other words, cannot determine the physical location of IP address.
At this, all right definition information higher limit, information higher limit refers to that enough accurate descriptions go out the positional information quantity of this physical location corresponding to IP address to be calibrated, namely when existing positional information quantity equals information higher limit, the concrete physical location of IP address can be gone out by accurate definition completely, such as can navigate to the building at place, IP address, when existing positional information quantity is greater than information higher limit, also the concrete physical location of IP address can be oriented completely, but what exceed that information higher limit part can not relocate is more concrete, make calibration process tediously long on the contrary, therefore, when existing positional information quantity reaches information higher limit, then abandon unnecessary positional information quantity, direct demarcation equals the positional information quantity of information higher limit, calibration process can be made quick, accurately.
In sum, in collection period threshold value, whole positional information quantity that setting obtains are n, if so information lower limit≤n< information higher limit, then calibrate roughly the physical location of IP address to be calibrated based on existing positional information; If information higher limit≤n, then calibrate the physical location of IP address to be calibrated based on existing positional information entirely accurate.Therefore, in collection period threshold value, when the positional information of acquisition reaches information lower limit, then demarcate the physical location of described IP address based on described positional information.
If the quantity of the described positional information of S133 does not reach information lower limit, then terminate calibration process;
As mentioned above, known in collection period threshold value, when the quantity of the positional information obtained reaches information lower limit, just position-based information can calibrate the physical location of IP address, and in setting of the present invention, information lower limit is the positional information amount threshold that can describe roughly IP address physical location, therefore, when in collection period threshold value, the quantity of the positional information obtained does not reach information lower limit, illustrate that the sum of the positional information of existing quantity is very few, the physical location None-identified of the IP address that existing positional information quantity calibrates, the physical location of IP address can not described roughly, therefore prescribe a time limit under described positional information quantity is less than information, assert this procedure failure to this IP address location physical location, stop and terminating the calibration process to this IP address.
For step S132, based in collection period threshold value, the quantity of the whole positional informations obtained demarcates the physical location of IP address, at this, can also by collection period threshold value, obtain the quantity of enough positional informations as demarcation foundation, concrete execution mode can be divided into following two kinds:
(1), in collection period threshold value, when the positional information quantity of acquisition reaches information lower limit, the physical location of described IP address is demarcated based on described positional information;
As mentioned above, the acquisition of positional information is carried out in collection period threshold value, when the quantity of the positional information obtained reaches information lower limit, the physical location of IP address to be calibrated now can be described out roughly, so no longer can obtain positional information in this collection period threshold value, directly to the process that the physical location carrying out IP address is demarcated.Now the positional information of existing quantity can describe roughly the physical location of IP address to be calibrated, then can not need to obtain positional information again within the remaining time of collection period threshold value, all positional informations that existing positional information quantity comprises are demarcated roughly, this acquisition time is consuming time shorter, and calibration process is quick, algorithm is simple.
(2), in collection period threshold value, when the positional information quantity of acquisition reaches information higher limit, the physical location of described IP address is demarcated based on described positional information;
As mentioned above, positional information is obtained in collection period threshold value, when the positional information quantity obtained reaches information higher limit, the physical location of positional information quantity enough accurate calibration IP address now, then do not need to obtain positional information again within the remaining time of collection period threshold value, directly carry out calibration process.The positional information quantity of current acquisition can go out the physical location of IP address to be calibrated by accurate description, does not need extract location information again, make acquisition time consuming time short compared with cripetura, calibration algorithm is simple.
For step 130, process described positional information, to demarcate the operation of the physical location of described IP address, preferred embodiment (2) are as follows:
T131, the positional information departing from setpoint distance in described positional information to be filtered out;
As mentioned above, according to step 120, in collection period threshold value, from the packet of IP address to be calibrated transmitting-receiving, extract positional information, so direct all positional informations to extracting in collection period are filtered, its mode is, clustering algorithm is utilized to remove noise spot to filter, the latitude and longitude information location physical location having each positional information of quantity according to IP address to be calibrated carries out clustering algorithm, obtain the IP address physical location information of discrete type thus, noise spot is cleared up again by cluster analysis, filter thus and obtain IP address physical location comparatively accurately.
Cluster analysis is obtained for research widely and successfully application at present in a lot of fields, as pattern recognition, data analysis, image procossing, market survey, client's segmentation, Web document classification etc.Cluster is exactly according to certain specific criteria (as distance criterion), a data set be divided into different classes or bunch, make the similitude of the data object in same bunch large as far as possible, the otherness of the data object simultaneously not in same bunch is also large as much as possible, namely after cluster, of a sort data are brought together as far as possible, and different pieces of information is separated as far as possible.
The present invention gets the IP address physical location of discrete type by clustering algorithm, its reason is, same IP address may comprise multiple terminal use, the latitude and longitude information of different terminal uses is different, or when only may there be a terminal use IP address, this terminal use is in moving process, latitude and longitude information in the positional information of therefore IP address changes, therefore the point of location information that the physical location of IP address is corresponding is discrete type, but the coverage of any one IP address is not infinitely-great, it is gathered in smaller region, the terminal use being positioned at its scope can be connected with the Internet by this IP address, latitude and longitude information gap so within the scope of it also can be very little, therefore the IP address physical location that clustering algorithm gets is discrete type among a small circle.Little due to the coverage of IP address, the physical location of so obtained IP address may certain part very large gathering of generation within the scope of this and intensive, and between numerical value, interval is very little, and similarity is very high, and these are effective point of location information.And outside this scope, possible positional information numerical point departs from accumulation regions more greatly and do not produce gathering, then judge that such departs from very large point of location information as noise spot, filter these noise spots by clustering method, just obtain the effective point of location information in IP address by clustering algorithm thus.Latitude and longitude information similarity in effective point of location information is very large, and the gap between numerical point is very little.For an IP address to be calibrated, the active position information point obtained after clustering algorithm then can demarcate physical location and the place scope of IP address accurately.
T132, demarcate the physical location of described IP address according to remaining positional information;
As mentioned above, be beneficial to clustering algorithm and the positional information departing from setpoint distance in described positional information filtered out, so remaining positional information is effective point of location information, demarcates the physical location of IP address according to this remaining positional information.
In this step 130, by obtaining positional informations whole in collection period threshold value, when the positional information quantity obtained reaches information lower limit, then can calibrate roughly the positional information of IP address, when the positional information quantity obtained reaches information higher limit, so then enough accurate calibrations go out the positional information of IP address, thus demarcate the physical location of IP address, this step avoids repeatedly operating process, make method simple.Or this step can according to the positional information extracted, direct location information carries out filtering to obtain effective positional information, carry out the demarcation of IP address physical location again according to effective positional information, also can demarcate fast and accurately the physical location of IP address.
For step 140, the physical location of described IP address is carried out output and show, be preferred embodiment by the physical location of described IP address at this, electronic chart marks, and export displaying.
In this step, by the point of location information to IP address obtained, displayed by map, thus accurately orient the concrete physical location of virtual ip address, have intuitively, accurately, simply, effect fast.
The IP address-based position calibration method of the one that the embodiment of the present invention one provides, carry out based on IP address the packet received and dispatched by catching, and from packet extract location information, to process the positional information of this IP address, to demarcate the physical location of IP, and the physical location of IP address is carried out output displaying.Beneficial effect of the present invention is, achieves the location to any IP address within the collection period time, and can fast, accurately, the concrete physical location of IP address, simple location, filled up the vacancy of prior art in this field.
Embodiment two
With reference to figure 3, it is the general flow schematic diagram of a kind of IP address-based integrated location scaling method that the embodiment of the present invention two provides.From embodiment one, adopt different execution modes to demarcate the physical location of IP address in step 130, at this, the present embodiment adopts a kind of execution mode of optimization to realize IP address-based location position, and the method concrete steps comprise:
S11, carry out initialization to the process data packet of catching IP address to be calibrated, staff according to circumstances sets collection period threshold value, is the packet of IP address to be calibrated after making initialization at the packet of the IP address of collection period threshold value IT;
In S12, collection period threshold value, capture-data bag module is caught the mirror image data bag of the subnet outlet corresponding to IP address in real time and packet is carried out to the decoding of network layer and transport layer;
S13, packet proceeded to application layer decoding, decode positional information from containing the packet of positional information, the packet of having resolved directly abandons;
The positional information that S14, basis extract, carries out positional information quantity statistics, to upgrade positional information quantity;
S15, judge current location information upgrade after moment whether reach the collection period threshold value pre-set, if so, then perform S16, if not, then perform S18;
The reason implementing this step is, after collection period threshold value arrives, can not guarantee that whether the positional information extracted subsequently is the positional information of current IP address to be calibrated, therefore rashly positional information quantity can not be upgraded again in time afterwards, if do not carry out the judgement of collection period threshold value, the positional information of different IP addresses can be added up in the positional information quantity that then may obtain, thus make calibration result produce very large error.
If the moment after S16 current location information upgrades has reached the collection period threshold value pre-set, then no longer location information quantity upgrades, the numerical value of statistics current location information quantity, and then judge whether existing positional information quantity is more than or equal to information lower limit, if, then perform S19, if not, then perform S17;
S17, judge that existing positional information quantity is less than information lower limit, and the moment after current location information renewal has reached the collection period threshold value pre-set, positional information quantity can not upgrade again, illustrate that current existing positional information quantity can not describe roughly the physical location of IP address at all, therefore this demarcates the procedure failure of the physical location of IP address, stops and terminating calibration process;
Moment after S18, current location information upgrade does not reach the collection period threshold value pre-set, need to judge whether existing positional information quantity is more than or equal to the information upper limit, if existing positional information quantity reaches the information upper limit, perform S19, if existing positional information quantity is less than the information upper limit, then returns and perform S12;
Prescribe a time limit when the described positional information quantity of judgement is less than in information, illustrate that current existing positional information quantity entirely accurate can not describe physics place and the place scope of IP address, if the moment can obtain the positional information of this IP address again afterwards, should carry out obtaining positional information to increase the operation of positional information quantity, and then may accurate calibration IP address.Because the moment after now current location information renewal not yet reaches collection period threshold value, the positional information extracted after the moment that so current location information upgrades or the positional information of current IP address, and then extract location information can be carried out to increase the operation of the positional information quantity of IP address.Therefore, when the described positional information quantity of judgement to be less than in information in limited time, to return and perform step S12, the packet of catching this current IP address is gone forward side by side line position information extraction, positional information quantity is increased, until stop when reaching collection period threshold value increasing positional information quantity.
S19, the positional information of existing quantity carried out to cluster analysis and noise spot cleaning, obtain the point of location information that IP address is effective, similarity is high;
S20, by the IP address obtained effectively, the high point of location information of similarity exports, and combining cartographic information carries out outputs shows, thus the physical location exploded view of acquisition IP address;
S21, the physics place of IP address to be calibrated and the calibration process of place scope to be completed.
The general flow schematic diagram of a kind of IP address-based integrated location scaling method that the embodiment of the present invention two provides, by judging collection period threshold value, and the positional information quantity obtained in collection period threshold value, thus within the acquisition time cycle, on map, export the physical location showing IP address fast and accurately.
Embodiment three
With reference to figure 4, it is the schematic diagram of a kind of IP address-based position label means that the embodiment of the present invention three provides.This device comprises: capture-data bag module 210, extract location information module 220, processing module 230 and output display module 240.
Wherein, capture-data bag module 210 carries out based on described IP address the packet received and dispatched for catching; Extract location information module 220 is for extract location information from described packet; Processing module 230 for processing described positional information, to demarcate the physical location of described IP address; Export display module 240 to show for the physical location of described IP address being carried out output.
Said apparatus, preferably, described capture-data bag module 210 comprises:
Image copying unit 211, for carrying out image copying to the packet received and dispatched based on described IP address, to obtain the packet load of image copying;
Decoding unit 212, for carrying out the decoding of network layer and transport layer to described packet load.
Said apparatus, preferably, described processing module 230 comprises:
Acquiring unit 231, for obtaining the described positional information extracted in collection period threshold value;
First demarcates unit 232, if reach information lower limit for the quantity of described positional information, then demarcates the physical location of described IP address based on described positional information.
Said apparatus, preferably, described processing module 230 comprises:
Filter element 233, for filtering out the positional information departing from setpoint distance in described positional information;
Second demarcates unit 234, for demarcating the physical location of described IP address according to remaining positional information.
Said apparatus, preferably, described output display module 240 comprises:
By the physical location of described IP address, electronic chart marks, and export displaying.
The IP address-based position label means of the one that the invention process three provides, caught by capture-data bag module 210 and carry out based on IP address the packet received and dispatched, extract location information module 220 extract location information from packet, to be processed by the positional information of processing module 230 to this IP address, to demarcate the physical location of IP, and output display module 240 is utilized the physical location of IP address to be carried out output displaying.Beneficial effect of the present invention is, achieves the location to any IP address in collection period threshold value, and can fast, accurately, the concrete physical location of IP address, simple location, filled up the vacancy of prior art in this field.
In order to the 26S Proteasome Structure and Function of more detailed this device of description, at this, device that the 5 pairs of embodiment of the present invention three provide by reference to the accompanying drawings is described in detail.
With reference to figure 5, be the Rotating fields schematic diagram of a kind of IP address-based position label means that the embodiment of the present invention three provides, this device operates based on TCP/IP network reference model.
The Access Layer of TCP/IP reference model is the interface of terminal use and network.Capture-data bag module 210 is the packets of catching IP address when terminal use is connected to network, and therefore capture-data bag module 210 is positioned at Access Layer.
The Access Layer of TCP/IP reference model obtains data and transmits via network layer and transport layer.It can thus be appreciated that capture-data bag module 210 is implemented in the three-decker of TCP/IP reference model.
The particular content of the application layer of TCP/IP reference model is exactly the agreement that given application process is followed when communicating.Therefore extract location information module 220, processing module 230 and output display module 240 are all in application layer.
In the present invention, the Rotating fields of this device comprises: Access Layer 310, data management layer 320, output presentation layer 330.
As mentioned above, capture-data bag module 210 is positioned at the Access Layer 310 of device, extract location information module 220 and processing module 230 are positioned at the data management layer 320 of device, export the output presentation layer 330 that display module 240 is positioned at device, therefore the Rotating fields of the present embodiment device and the corresponding relation of TCP/IP reference model are, the Access Layer of the corresponding reference model of Access Layer 310 of device, network layer and transport layer, the data management layer 320 of device and export the application layer of the corresponding reference model of presentation layer 330.
Capture-data bag module 210 is positioned at the Access Layer 310 of device, for catching of IP address date bag, mainly carries out the decoding of network layer and transport layer, and application layer is passed in the application layer load of the packet of specific characteristic, and processing data packets is complete directly to be abandoned afterwards.Extract location information module 220 is positioned at the data management layer 320 of device, for receiving the information copied out from bottom, and carry out application layer analysis, to extract positional information, then this updating location information is transferred to processing module 230.Processing module 230 is positioned at the data management layer 320 of device, for processing the positional information of IP address obtained, mainly carry out the renewal of positional information, positional information number quantitative statistics data in location information carry out the process such as cluster analysis and noise spot cleaning.Export the output presentation layer 330 that display module 240 is positioned at device, for demarcating for satisfied the IP address shown and require, combining cartographic information carries out the displaying of data, to demarcate physics place and the place scope of IP address.
With reference to figure 6, it is the network system of the IP address-based position label means that the embodiment of the present invention three provides.This network system comprises: the Internet 410, calibration server 420, subnet 430;
Described calibration server 420 is position label means described above, for performing the method described in above-described embodiment one and embodiment two, is placed in the ground floor on described subnet 430, for catching and handle packet from described subnet 430 exit;
Described the Internet 410, is placed in the second layer on described subnet 430 and described calibration server 420 upper strata, and the data for receiving described subnet 430 are gone forward side by side Serial Communication;
Described subnet 430, is placed in the bottom of described calibration server 420 and described the Internet 410, for communicate with described the Internet 410 and as the Data Source of described calibration server 420.
This network system, by increasing a calibration server 420 between subnet 430 and the Internet 410, calibration server 420 is made to obtain the packet of IP address to be calibrated, and from packet extract location information, to process the existing multiple positional information in this IP address, with according to the place scope of result output display IP to be calibrated and physics place, thus the demarcation of the physics place achieved IP address to be calibrated and place scope.
The said goods can perform the method that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
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 (10)

1. an IP address-based position calibration method, is characterized in that, comprising:
Catch and carry out based on described IP address the packet received and dispatched;
Extract location information from described packet;
Described positional information is processed, to demarcate the physical location of described IP address;
The physical location of described IP address is carried out output to show.
2. method according to claim 1, is characterized in that, catches the packet carrying out receiving and dispatching based on described IP address and comprises:
Image copying is carried out to the packet received and dispatched based on described IP address, to obtain the packet load of image copying;
Described packet load is carried out to the decoding of network layer and transport layer.
3. method according to claim 1, is characterized in that, processes described positional information, comprises with the physical location demarcating described IP address:
Obtain the described positional information extracted in collection period threshold value;
If the quantity of described positional information reaches information lower limit, then demarcate the physical location of described IP address based on described positional information.
4. method according to claim 1, is characterized in that, processes described positional information, comprises with the physical location demarcating described IP address:
The positional information departing from setpoint distance in described positional information is filtered out;
The physical location of described IP address is demarcated according to remaining positional information.
5. method according to claim 1, is characterized in that, the physical location of described IP address is carried out output displaying and comprises:
By the physical location of described IP address, electronic chart marks, and export displaying.
6. an IP address-based position label means, is characterized in that, comprising:
Capture-data bag module, carries out based on described IP address the packet received and dispatched for catching;
Extract location information module, for extract location information from described packet;
Processing module, for processing described positional information, to demarcate the physical location of described IP address;
Exporting display module, showing for the physical location of described IP address being carried out output.
7. device according to claim 6, is characterized in that, described capture-data bag module comprises:
Image copying unit, for carrying out image copying to the packet received and dispatched based on described IP address, to obtain the packet load of image copying;
Decoding unit, for carrying out the decoding of network layer and transport layer to described packet load.
8. device according to claim 6, is characterized in that, described processing module comprises:
Acquiring unit, for obtaining the described positional information extracted in collection period threshold value;
First demarcates unit, if reach information lower limit for the quantity of described positional information, then demarcates the physical location of described IP address based on described positional information.
9. device according to claim 6, is characterized in that, described processing module comprises:
Filter element, for filtering out the positional information departing from setpoint distance in described positional information;
Second demarcates unit, for demarcating the physical location of described IP address according to remaining positional information.
10. device according to claim 6, is characterized in that, described output display module comprises:
By the physical location of described IP address, electronic chart marks, and export displaying.
CN201410468109.8A 2014-09-15 2014-09-15 IP (Internet protocol) address-based position calibration method and IP address-based position calibration device Pending CN104253879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410468109.8A CN104253879A (en) 2014-09-15 2014-09-15 IP (Internet protocol) address-based position calibration method and IP address-based position calibration device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410468109.8A CN104253879A (en) 2014-09-15 2014-09-15 IP (Internet protocol) address-based position calibration method and IP address-based position calibration device

Publications (1)

Publication Number Publication Date
CN104253879A true CN104253879A (en) 2014-12-31

Family

ID=52188400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410468109.8A Pending CN104253879A (en) 2014-09-15 2014-09-15 IP (Internet protocol) address-based position calibration method and IP address-based position calibration device

Country Status (1)

Country Link
CN (1) CN104253879A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105246155A (en) * 2015-10-26 2016-01-13 深圳市宏电技术股份有限公司 Method and device for positioning geographic position of network access facility
CN105933294A (en) * 2016-04-12 2016-09-07 晶赞广告(上海)有限公司 Network user positioning method, device and terminal
CN106789411A (en) * 2016-12-07 2017-05-31 北京亚鸿世纪科技发展有限公司 The acquisition method and device of IP data are enlivened in a kind of computer room
CN107087040A (en) * 2017-05-25 2017-08-22 唐明伟 The localization method of relative position, device and system
CN107204049A (en) * 2017-05-25 2017-09-26 唐明伟 The methods, devices and systems of electronic signing
CN108600413A (en) * 2018-05-08 2018-09-28 阿里巴巴集团控股有限公司 Localization method and device and electronic equipment
CN109525936A (en) * 2018-01-15 2019-03-26 四川中电昆辰科技有限公司 Multifrequency point position data return system
CN110677504A (en) * 2018-07-03 2020-01-10 百度在线网络技术(北京)有限公司 Method and apparatus for determining location information
CN112085099A (en) * 2020-09-09 2020-12-15 西南大学 Distributed student clustering integration method and system
CN113067913A (en) * 2021-03-19 2021-07-02 北京达佳互联信息技术有限公司 Positioning method, device, server, medium and product
CN113407796A (en) * 2021-05-13 2021-09-17 郑州埃文计算机科技有限公司 Static IP building-level positioning method based on IP historical positions

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976306A (en) * 2006-11-08 2007-06-06 华为技术有限公司 Testing method and testing device for media request/response time
US20070271372A1 (en) * 2006-05-22 2007-11-22 Reconnex Corporation Locational tagging in a capture system
CN201414134Y (en) * 2009-06-02 2010-02-24 北京迈朗世讯科技有限公司 Media technology platform system and data collecting system
CN101702693A (en) * 2009-10-28 2010-05-05 苏州新海宜通信科技股份有限公司 Narrowad push system based on deep message analysis technology and control method
CN102724629A (en) * 2012-06-21 2012-10-10 中兴通讯股份有限公司 Method and system for realizing driver-free wireless terminal positioning service
CN103533077A (en) * 2013-10-24 2014-01-22 深圳先进技术研究院 Internet chat positioning system and Internet chat positioning method
CN103841519A (en) * 2014-03-25 2014-06-04 北京极科极客科技有限公司 Method and device for accurately positioning geographic positions through network sniffing
CN104038522A (en) * 2013-03-06 2014-09-10 深圳先进技术研究院 Virtual-real hybrid space positioning system based on Internet of Things

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070271372A1 (en) * 2006-05-22 2007-11-22 Reconnex Corporation Locational tagging in a capture system
CN1976306A (en) * 2006-11-08 2007-06-06 华为技术有限公司 Testing method and testing device for media request/response time
CN201414134Y (en) * 2009-06-02 2010-02-24 北京迈朗世讯科技有限公司 Media technology platform system and data collecting system
CN101702693A (en) * 2009-10-28 2010-05-05 苏州新海宜通信科技股份有限公司 Narrowad push system based on deep message analysis technology and control method
CN102724629A (en) * 2012-06-21 2012-10-10 中兴通讯股份有限公司 Method and system for realizing driver-free wireless terminal positioning service
CN104038522A (en) * 2013-03-06 2014-09-10 深圳先进技术研究院 Virtual-real hybrid space positioning system based on Internet of Things
CN103533077A (en) * 2013-10-24 2014-01-22 深圳先进技术研究院 Internet chat positioning system and Internet chat positioning method
CN103841519A (en) * 2014-03-25 2014-06-04 北京极科极客科技有限公司 Method and device for accurately positioning geographic positions through network sniffing

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105246155B (en) * 2015-10-26 2019-03-08 深圳市宏电技术股份有限公司 A kind of method and device positioning network access equipment geographical location
CN105246155A (en) * 2015-10-26 2016-01-13 深圳市宏电技术股份有限公司 Method and device for positioning geographic position of network access facility
CN105933294A (en) * 2016-04-12 2016-09-07 晶赞广告(上海)有限公司 Network user positioning method, device and terminal
CN105933294B (en) * 2016-04-12 2019-08-16 晶赞广告(上海)有限公司 Network user's localization method, device and terminal
CN106789411A (en) * 2016-12-07 2017-05-31 北京亚鸿世纪科技发展有限公司 The acquisition method and device of IP data are enlivened in a kind of computer room
CN106789411B (en) * 2016-12-07 2020-01-21 北京亚鸿世纪科技发展有限公司 Method and device for acquiring active IP data in machine room
CN107204049A (en) * 2017-05-25 2017-09-26 唐明伟 The methods, devices and systems of electronic signing
CN107087040A (en) * 2017-05-25 2017-08-22 唐明伟 The localization method of relative position, device and system
CN107087040B (en) * 2017-05-25 2020-09-01 唐明伟 Relative position positioning method, device and system
CN109525936A (en) * 2018-01-15 2019-03-26 四川中电昆辰科技有限公司 Multifrequency point position data return system
CN109525936B (en) * 2018-01-15 2024-03-19 四川中电昆辰科技有限公司 Multi-frequency point position data return system
CN108600413A (en) * 2018-05-08 2018-09-28 阿里巴巴集团控股有限公司 Localization method and device and electronic equipment
CN108600413B (en) * 2018-05-08 2021-01-26 创新先进技术有限公司 Positioning method and device and electronic equipment
CN110677504A (en) * 2018-07-03 2020-01-10 百度在线网络技术(北京)有限公司 Method and apparatus for determining location information
CN110677504B (en) * 2018-07-03 2021-10-19 百度在线网络技术(北京)有限公司 Method and apparatus for determining location information
CN112085099A (en) * 2020-09-09 2020-12-15 西南大学 Distributed student clustering integration method and system
CN112085099B (en) * 2020-09-09 2022-05-17 西南大学 Distributed student clustering integration method and system
CN113067913A (en) * 2021-03-19 2021-07-02 北京达佳互联信息技术有限公司 Positioning method, device, server, medium and product
CN113407796A (en) * 2021-05-13 2021-09-17 郑州埃文计算机科技有限公司 Static IP building-level positioning method based on IP historical positions

Similar Documents

Publication Publication Date Title
CN104253879A (en) IP (Internet protocol) address-based position calibration method and IP address-based position calibration device
US10812761B2 (en) Complex hardware-based system for video surveillance tracking
US11875606B2 (en) Method and system for managing a parking lot based on intelligent imaging
CN103493089B (en) Method and apparatus for tracking the feeding in social networks
US20190073518A1 (en) Techniques for built environment representations
WO2019237572A1 (en) Housing resource information obtaining method and apparatus, and storage medium and server
CN108416901A (en) Method and device for identifying goods in intelligent container and intelligent container
CN106021363A (en) Course recommendation method and device
CN111079699A (en) Commodity identification method and device
CN111126252A (en) Stall behavior detection method and related device
US20180376289A1 (en) Crowd Condition Estimation System, Crowd Condition Estimation Method and Recording Medium
CN106027874A (en) Method for configuring camera
CN106255966A (en) StoreFront identification is used to identify entity to be investigated
CN104899265A (en) Information recommendation method and system
CN107426059A (en) DPI equipment feature databases automatic update method, system, DPI equipment and cloud server
CN102880853A (en) Network-based traditional Chinese medicine identification system and method
WO2022267795A1 (en) Regional map processing method and apparatus, storage medium, and electronic device
CN106156055A (en) The identification of search engine reptile, processing method and processing device
CN105528683A (en) Road patrol method, hand-held terminal and cloud server
CN105915599A (en) Interface displaying method and interface displaying device
CN110645999A (en) Navigation method, navigation device, server, terminal and storage medium
CN108011761A (en) The method of collection and analysis visitor&#39;s data based on big data
CN115063746A (en) Vehicle warehousing management method and device, computer equipment and storage medium
CN102880686B (en) A kind of interest point search method and device
CN108763414B (en) Live-action display method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141231

RJ01 Rejection of invention patent application after publication