CN104994185B - Internet protocol address data base processing method and device - Google Patents
Internet protocol address data base processing method and device Download PDFInfo
- Publication number
- CN104994185B CN104994185B CN201510359291.8A CN201510359291A CN104994185B CN 104994185 B CN104994185 B CN 104994185B CN 201510359291 A CN201510359291 A CN 201510359291A CN 104994185 B CN104994185 B CN 104994185B
- Authority
- CN
- China
- Prior art keywords
- internet protocol
- protocol address
- location information
- geographical location
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5061—Pools of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Abstract
The disclosure is directed to a kind of Internet protocol address data base processing method and devices.This method comprises: obtaining the Internet protocol address and geographical location information of terminal;The Internet protocol address database prestored is updated according to the Internet protocol address of the terminal and geographical location information, the Internet protocol address database includes the corresponding relationship of Internet protocol address and geographical location information.The technical solution can obtain the quantity and network access of corresponding Internet protocol address in any geographic area according to the Internet protocol address database of real-time update, and the accuracy of Internet protocol address data and relevant statistics can be improved.
Description
Technical field
This disclosure relates to wireless communication technology field more particularly to Internet protocol address data base processing method and dress
It sets.
Background technique
Internet protocol address (Internet Protocol Address, hereinafter referred to as IP address).IP address is IP association
A kind of unified address format provided is provided, it on internet each network and each terminal distribution one logically
Location shields the difference of physical address with this.
Summary of the invention
The embodiment of the present disclosure provides Internet protocol address data base processing method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of Internet protocol address data base processing method is provided, comprising:
Obtain the Internet protocol address and geographical location information of terminal;
According to the Internet protocol address of the terminal and geographical location information to the Internet protocol address data prestored
Library is updated, and the Internet protocol address database, which includes that Internet protocol address is corresponding with geographical location information, to close
System.
In one embodiment, according to the Internet protocol address of the terminal and geographical location information to the internet
Protocol address database is updated, comprising:
By the corresponding relationship of the Internet protocol address of the terminal and geographical location information and the Internet protocol
The corresponding relationship of Internet protocol address and geographical location information in the database of location is compared;
When the Internet protocol address of the terminal and the corresponding relationship of geographical location information and the Internet protocol
When the corresponding relationship of Internet protocol address and geographical location information mismatches in the database of location, according to the internet of the terminal
Protocol address and geographical location information are updated the Internet protocol address database.
In one embodiment, according to the Internet protocol address of the terminal and geographical location information to the internet
Protocol address database is updated, comprising:
According to the corresponding mapping of Internet protocol address of terminal described in default Internet protocol address mapping relationship searching
Internet protocol address;
By the corresponding relationship of the mapping Internet protocol address and the geographical location information of the terminal and the interconnection
Internet protocol address is compared with the corresponding relationship of geographical location information in fidonetFido address database;
When the corresponding relationship of the mapping Internet protocol address and the geographical location information of the terminal and the interconnection
When the corresponding relationship of Internet protocol address and geographical location information mismatches in fidonetFido address database, according to the mapping
The geographical location information of Internet protocol address and the terminal is updated the Internet protocol address database.
In one embodiment, the Internet protocol address includes 4 bytes, is reflected according to default Internet protocol address
The relationship of penetrating searches the corresponding mapping Internet protocol address of Internet protocol address of the terminal, comprising:
The identical Internet protocol address of first three byte is corresponded into same mapping Internet protocol address.
In one embodiment, according to the Internet protocol address of the terminal and geographical location information to the internet
Protocol address database is updated, comprising:
Obtain the access style of the accessing terminal to network;
When the access style is WIFI, according to the Internet protocol address of the terminal and geographical location information to institute
Internet protocol address database is stated to be updated.
In one embodiment, when the access style is mobile network, according to the Internet protocol of the terminal
Location and geographical location information are updated the Internet protocol address database, further includes:
Obtain the number attribution of the Mobile Directory Number of the terminal;
The geographical location information of the terminal is compared with the number attribution;
When the geographical location information of the terminal is consistent with the number attribution, according to the internet protocol of the terminal
View address and geographical location information are updated the Internet protocol address database;
When the geographical location information of the terminal and the number attribution are inconsistent, the internet of the terminal is abandoned
Protocol address and geographical location information.
According to the second aspect of an embodiment of the present disclosure, a kind of Internet protocol address database processing device is provided, comprising:
Module is obtained, for obtaining the Internet protocol address and geographical location information of terminal;
Update module, for the Internet protocol address and geographical location information according to the terminal to the internet prestored
Protocol address database is updated, and the Internet protocol address database includes that Internet protocol address and geographical location are believed
The corresponding relationship of breath.
In one embodiment, the update module, comprising:
First comparison submodule, for by the corresponding relationship of the Internet protocol address of the terminal and geographical location information
It is compared with the corresponding relationship of Internet protocol address and geographical location information in the Internet protocol address database;
First updates submodule, for when the Internet protocol address of the terminal and the corresponding relationship of geographical location information
When being mismatched with the corresponding relationship of Internet protocol address and geographical location information in the Internet protocol address database, root
The Internet protocol address database is updated according to the Internet protocol address and geographical location information of the terminal.
In one embodiment, the update module, comprising:
Submodule is searched, the Internet protocol address for searching the terminal for networking protocol address mapping relation is corresponding
Mapping Internet protocol address;
Second comparison submodule, for by the geographical location information of the mapping Internet protocol address and the terminal
In corresponding relationship and the Internet protocol address database corresponding relationship of Internet protocol address and geographical location information into
Row compares;
Second updates submodule, for the geographical location information when the mapping Internet protocol address and the terminal
The corresponding relationship of Internet protocol address and geographical location information is not in corresponding relationship and the Internet protocol address database
When matching, according to the mapping Internet protocol address and the geographical location information of the terminal to the Internet protocol address
Database is updated.
In one embodiment, the lookup submodule is used for when the Internet protocol address includes 4 bytes,
The identical Internet protocol address of first three byte is corresponded into same mapping Internet protocol address.
In one embodiment, according to the Internet protocol address of the terminal and geographical location information to the internet
Protocol address database is updated, comprising:
First acquisition submodule, for obtaining the access style of the accessing terminal to network;
Third updates submodule, is used for when the access style is WIFI, according to the Internet protocol of the terminal
Location and geographical location information are updated the Internet protocol address database.In one embodiment, further includes:
Second acquisition submodule, for obtaining the mobile subscriber of the terminal when the access style is mobile network
The number attribution of directory number;
Submodule is compared, the geographical location information of the terminal is compared with the number attribution;
4th updates submodule, when the geographical location information of the terminal is consistent with the number attribution, according to institute
The Internet protocol address and geographical location information for stating terminal are updated the Internet protocol address database;
Submodule is abandoned, when the geographical location information of the terminal and the number attribution are inconsistent, described in discarding
The Internet protocol address and geographical location information of terminal.
According to the third aspect of an embodiment of the present disclosure, a kind of Internet protocol address data library device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the Internet protocol address and geographical location information of terminal;
According to the Internet protocol address of the terminal and geographical location information to the Internet protocol address data prestored
Library is updated, and the Internet protocol address database, which includes that Internet protocol address is corresponding with geographical location information, to close
System.
The technical scheme provided by this disclosed embodiment can include the following benefits: can be according to the interconnection to timely update
FidonetFido address database obtains the quantity and network access of corresponding Internet protocol address in any geographic area, can be improved
The accuracy of Internet protocol address data and relevant statistics, and then corresponding data are provided to improve network service quality
It supports.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart of Internet protocol address data base processing method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of Internet protocol address data base processing method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of Internet protocol address data base processing method shown according to an exemplary embodiment.
Fig. 4 is the flow chart of Internet protocol address data base processing method shown according to an exemplary embodiment.
Fig. 5 is the flow chart of Internet protocol address data base processing method shown according to an exemplary embodiment.
Fig. 6 is the block diagram of Internet protocol address database processing device shown according to an exemplary embodiment.
Fig. 7 is the block diagram of Internet protocol address database processing device shown according to an exemplary embodiment.
Fig. 8 is the block diagram of Internet protocol address database processing device shown according to an exemplary embodiment.
Fig. 9 is the block diagram of Internet protocol address database processing device shown according to an exemplary embodiment.
Figure 10 is the block diagram of Internet protocol address database processing device shown according to an exemplary embodiment.
Figure 11 is the block diagram of Internet protocol address database processing device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
There are many purposes in IP address library in user's scheduling and data statistics, safeguards the accuracy tool in an IP address library
It is significant.The IP address distribution of operator is among constantly variation, with keeping the IP of IP address base and operator
It is necessary that location, which is consistent,.The technical solution that the embodiment of the present disclosure provides, passes through the geographical position to a large number of users terminal
It sets and is acquired analysis with IP address, to guarantee the real-time synchronization in IP address library and operation upside.
In the embodiment of the present disclosure, the data format stored in IP address library can be defined, as shown in the following table 1,
Table 1
Field | 114.246.65.0/24 | China | Beijing | Beijing |
Meaning | IP address | Country origin | Province | City |
The format of the user data got can also be defined, as shown in table 2 below,
Table 2
Wherein, user data can not include all information in above-mentioned table 2, but include at least the IP address of user terminal
And geographical location information.
Fig. 1 is a kind of process of Internet protocol address data base processing method shown according to an exemplary embodiment
Figure, as shown in Figure 1, Internet protocol address data base processing method is in network side, comprising the following steps:
In step s 11, the IP address and geographical location information of terminal are obtained;
In step s 12, according to the Internet protocol address of terminal and geographical location information to the Internet protocol prestored
Address database is updated, and the Internet protocol address database includes Internet protocol address and geographical location information
Corresponding relationship.
In the present embodiment, a certain IP address and corresponding geographical location information in network side acquisition terminal upload the letter
It ceases in IP address database, the history information of the corresponding geographical location information of the IP is inquired in IP address database,
The geographical location information of the IP recorded in comparison current IP address database whether the geographical location information with the IP of upload
It is consistent, if inconsistent, be updated operation, i.e., mentioned currently with the IP physical address information uploaded in IP address database
The geographical location information of the IP of middle record.A large amount of such IP address information and corresponding geographical location information in real time upload to
In IP address database, to complete the update operation of IP address database.
The technical scheme provided by this disclosed embodiment can include the following benefits: guarantee IP address database and fortune
Seek quotient side IP address data consistency, improve the accuracy of IP address database, can further increase user scheduling and
The accuracy of data statistics improves the service quality of service provider.
Fig. 2 is a kind of process of the Internet protocol address data base processing method shown according to another exemplary embodiment
Figure, as shown in Fig. 2, optionally, step S12 includes:
In the step s 21, by the corresponding relationship of the IP address of the terminal and geographical location information and the IP address number
It is compared according to the corresponding relationship of IP address and geographical location information in library;
In step S22, when the IP address of the terminal and the corresponding relationship of geographical location information and the IP address number
When being mismatched according to the corresponding relationship of IP address in library and geographical location information, believed according to the IP address of the terminal and geographical location
Breath is updated the IP address database.
For example, the collected IP address of terminal of network side is 121.20.160.153, corresponding geographical location information is river
Beitang mountain.Geographical location information Hebei Handan corresponding to the IP address 121.20.160.153 recorded in IP address database.
Obtaining address in the corresponding IP address database of the above-mentioned IP address and network side, to collect IP address inconsistent, then according to net
The collected geographical location information in network side updates the corresponding geographical location information of the IP address in IP address database, that is, repairs
Changing corresponding geographical location information Hebei Handan the IP in IP address database is Tangshan.IP address database scanning system
The change frequency that system adds up according to the IP history, to shorten or maintain the scan period to the IP at this stage.
In optinal plan, the IP address 234.39.9.28 of the record in IP address database, corresponding geographical location letter
Breath is Taiyuan, Shanxi.The corresponding geographical location information of the collected IP address of terminal 234.39.9.28 of network side still Taiyuan, Shanxi.
If it is consistent that address in the corresponding IP address database of the IP address and network side collect IP address, continue to keep IP address
To the geographical location information of the IP in database.The stable frequency that IP address database scanning system adds up according to the IP history,
To extend or maintain the scan period to the IP.
The technical scheme provided by this disclosed embodiment can include the following benefits: maintain IP address database in real time
The update of middle IP address and corresponding physical address distinguishes the scan frequency for stablizing IP and easily change IP, it is ensured that IP address
While the accuracy of database data, this technical effect is reached with the consumption of lower system resource.
Fig. 3 is a kind of process of the Internet protocol address data base processing method shown according to another exemplary embodiment
Figure, as shown in figure 3, optionally, step S12 includes:
In step S31, according to the corresponding mapping IP of the IP address of terminal described in preset IP address mapping relationship searching
Location;
In step s 32, by it is described mapping IP address and the terminal geographical location information corresponding relationship with it is described
IP address is compared with the corresponding relationship of geographical location information in IP address database;
In step S33, when it is described mapping IP address and the terminal geographical location information corresponding relationship with it is described
When the corresponding relationship of IP address and geographical location information mismatches in IP address database, according to the mapping IP address and described
The geographical location information of terminal is updated the IP address database.
Current existing IP address probably has 4,000,000,000 or so, if IP address database stores 4,000,000,000 or so IP address,
And maintenance is updated to this 4,000,000,000 IP address in real time, data volume to be treated is excessive, network side server processing pressure
It is too big.In order to reduce the IP address for needing to update, IP address mapping relations can be preset.For example, real ip address
121.20.160.0 --- the corresponding mapping IP address of 121.20.160.255 is 121.20.160.0/24.Due to practical IP
Location 121.20.160.0 --- the corresponding geographical location information of 121.20.160.255 is really identical, in these IP address
There is the corresponding relationship of the address IP and geographical location information to change, then pair of other IP address and geographical location information
It should be related to and also change.Therefore, an identical mapping IP address can be assigned with these IP address, not to each practical IP
Location is updated maintenance, but only maintains a mapping IP address, in this way, greatly reducing the IP address number for needing updating maintenance
Amount, reduces the processing pressure of network side server.
For example, a certain IP address of terminal is 23.56.15.39, finding it to map IP address is 23.56.15.0/24,
Geographic location area corresponding to mapping IP address 23.56.15.0/24 can be equivalent to corresponding to IP address 23.56.15.39
Geographic location area.Citing might as well assume that geographic location area corresponding to IP address of terminal 23.56.15.39 is Beijing stone
Jingshan mountain area, then geographic location area corresponding to the mapping IP address 23.56.15.0/24 of IP address 23.56.15.39 is
Beijing Shijingshan District, i.e. geographic location area corresponding to the IP address in this section 23.56.15.0---23.56.15.255
For Beijing Shijingshan District.According in the corresponding relationship and the IP address database of the geographical location information of mapping IP address and terminal
The historical statistical data of the corresponding relationship of IP address and geographical location information, to shorten or extend or maintain to the mapping IP address
Scan period.
The technical scheme provided by this disclosed embodiment can include the following benefits: can be had using mapping IP address
The raising of effect updates the efficiency of IP address database, while considerably reducing network side server processing pressure.
Fig. 4 is a kind of process of Internet protocol address data base processing method shown according to an exemplary embodiment
Figure, as shown in figure 4, according to the Internet protocol address of the terminal and geographical location information to the Internet protocol address number
It is updated according to library, comprising the following steps:
In step S41, the access style of the accessing terminal to network is obtained;
In step S42, when the access style is WIFI, according to the IP address and geographical location information of the terminal
The IP address database is updated.
In the present embodiment, a certain terminal networking equipment is taken the mobile phone as an example, but be not limited to smart phone.In smart phone
Access style WIFI when, there are corresponding relationships for the IP address of the smart phone and geographical location information at this time, i.e. the IP
Geographical location information corresponding to address is just geographical location locating for the smart phone.
In the present embodiment, a certain terminal networking equipment is taken the mobile phone as an example, and such terminal networking equipment has SIM card
(Subscriber Identity Module, client identification module), but it is not limited to smart phone.Terminal networking equipment has
The user identity identification characteristic of SIM card, such as number attribution can provide the default geographic location information of user, i.e.,
City or region where when handling cell-phone number.
The technical scheme provided by this disclosed embodiment can include the following benefits: the mobile terminals such as smart phone are logical
Crossing WIFI online is that physical location information can be determined by its IP address, so that IP address database is improved to movement
The confirmation efficiency of the physical location information of terminal device.
Fig. 5 is a kind of process of Internet protocol address data base processing method shown according to an exemplary embodiment
Figure, as shown in figure 5, when the access style is mobile network, according to the Internet protocol address of the terminal and geographical position
Confidence breath is updated the Internet protocol address database, further includes:
In step s 51, the number attribution of the Mobile Directory Number of the terminal is obtained;
In step S52, the geographical location information of the terminal is compared with the number attribution;
In step S53, when the geographical location information of the terminal is consistent with the number attribution, according to the end
The Internet protocol address and geographical location information at end are updated the Internet protocol address database;
In step S54, when the geographical location information of the terminal and the number attribution are inconsistent, described in discarding
The Internet protocol address and geographical location information of terminal.
In the present embodiment, a certain terminal mobile networking equipment by taking smart phone as an example, but is not limited to smart phone.When
The network access of this smart phone is GSM network (Global System for the Mobile communication, GSM of 2G
Global system for mobile communications network), the CDMA2000 network of 3G (Code Division Multiple Access 2000, frequency
Point multi-access network), WCDMA network (Wideband Code Division Multiple Access, wideband code division multiple access),
(Time Division-Synchronous Code Division Multiple, time division synchronous code division are more for TD-SCDMA network
Location), the modes such as 4GLTE network (Long Term Evolution, long term evolution) access network, such terminal networking equipment tool
Standby SIM card (Subscriber Identity Module, client identification module), but it is not limited to smart phone.Has SIM card
Terminal networking equipment there is user identity identification, including number attribution information.At this point, corresponding to the IP address of smart phone
Physical location region may be its number attribution physical location region, it is also possible to region locating for the smart phone
Physical location region.Therefore smart phone can not be concluded in the mobile networks such as 2G, 3G, 4G, the region in physical location region is
The number attribution of the smart phone or the physical location region where smart phone, therefore avoid carrying out IP number in the case
The accuracy of IP database update can be increased according to the update in library.
Therefore smart phone accesses network system by mobile network, uploads the smart phone related data to IP number of addresses
When according in library, first determines whether the number attribution information in the sim card information of smart phone user and upload the intelligence in data
Whether geographical location information locating for mobile phone is consistent, if above- mentioned information are inconsistent, directly abandons the upload of the smart phone
Internet protocol address and geographical location information;If above- mentioned information are consistent, if the IP address of the IP smart phone and geographical position
Confidence breath is inconsistent with corresponding data in IP address database, then updates corresponding data.
The technical scheme provided by this disclosed embodiment can include the following benefits: pass through the mobile device to terminal
Number attribution information, can directly abandon number attribution and the number that is not consistent of locating geographical location that uploads in data
According to can effectively improve the update efficiency and accuracy of IP address database.
In one embodiment, Fig. 6 is Internet protocol address database processing shown according to an exemplary embodiment
The block diagram of device.As shown in fig. 6, the device includes obtaining module 61, update module 62.
The acquisition module 61 is configured as obtaining the Internet protocol address and geographical location information of terminal;
The update module 62 is configured as according to the Internet protocol address of the terminal and geographical location information to prestoring
Internet protocol address database be updated, the Internet protocol address database include Internet protocol address and ground
Manage the corresponding relationship of location information.
In one embodiment, Fig. 7 is Internet protocol address database processing shown according to an exemplary embodiment
The block diagram of device.As shown in fig. 7, the device includes the first comparison submodule 71, the first update submodule 72.
The first comparison submodule 71, is configured as the Internet protocol address of the terminal and geographical location information
The corresponding relationship of Internet protocol address and geographical location information in corresponding relationship and the Internet protocol address database
It is compared;
This first updates submodule 72, is configured as Internet protocol address and geographical location information when the terminal
The corresponding relationship of Internet protocol address and geographical location information is not in corresponding relationship and the Internet protocol address database
When matching, according to the Internet protocol address of the terminal and geographical location information to the Internet protocol address database into
Row updates.
In one embodiment, Fig. 8 is Internet protocol address database processing shown according to an exemplary embodiment
The block diagram of device.As shown in figure 8, the device includes that the lookup submodule 81, second comparison submodule 82, second updates submodule
83。
The lookup submodule 81 is configured as the Internet protocol that networking protocol address mapping relation searches the terminal
The corresponding mapping Internet protocol address in location;
The second comparison submodule 82, is configured as the geographical position by the mapping Internet protocol address and the terminal
Pair of Internet protocol address and geographical location information in the corresponding relationship and the Internet protocol address database of confidence breath
It should be related to and be compared;
The second update submodule 83, is configured as the geographical position when the mapping Internet protocol address and the terminal
Pair of Internet protocol address and geographical location information in the corresponding relationship and the Internet protocol address database of confidence breath
When should be related to mismatch, according to the mapping Internet protocol address and the geographical location information of the terminal to the internet
Protocol address database is updated.
The lookup submodule 81 is configured as when the Internet protocol address includes 4 bytes, by first three byte
Identical Internet protocol address corresponds to same mapping Internet protocol address.
In one embodiment, Fig. 9 is Internet protocol address database processing shown according to an exemplary embodiment
The block diagram of device.As shown in figure 9, the device includes the first acquisition submodule 91, third update submodule 92.
First acquisition submodule 91 is configured as obtaining the access style of the accessing terminal to network;
The third updates submodule 92, is configured as when the access style is WIFI, according to the interconnection of the terminal
FidonetFido address and geographical location information are updated the Internet protocol address database.
In one embodiment, Figure 10 is Internet protocol address database processing shown according to an exemplary embodiment
The block diagram of device.As shown in Figure 10, which includes the second acquisition module 101, the comparison update submodule of submodule the 102, the 4th
103, submodule 104 is abandoned.
The second acquisition module 101 is configured as obtaining the shifting of the terminal when the access style is mobile network
Employ the number attribution of family directory number;
The comparison submodule 102 is configured as when the access style is mobile network, by the geographical position of the terminal
Confidence breath is compared with the number attribution;
4th updates submodule 103, is configured as when the access style is mobile network, when the ground of the terminal
When reason location information is consistent with the number attribution, according to the Internet protocol address and geographical location information pair of the terminal
The Internet protocol address database is updated;
The discarding submodule 104 is configured as when the access style is mobile network, when the geographical position of the terminal
When confidence breath is inconsistent with the number attribution, the Internet protocol address and geographical location information of the terminal are abandoned.Figure
The block diagram of 11 Internet protocol address database processing devices shown according to an exemplary embodiment.For example, device 1100 can
To be provided as a network access equipment, such as router.Referring to Fig.1 1, device 1100 includes processing component 1122, further
Including one or more processors, and the memory resource as representated by memory 1132, it can be by processing component for storing
The instruction of 1122 execution, such as application program.The application program stored in memory 1132 may include one or one with
On each correspond to one group of instruction module.In addition, processing component 1122 is configured as executing instruction, to execute above-mentioned side
Method.
Device 1100 can also include that a power supply module 1126 be configured as the power management of executive device 1100, and one
Wired or wireless network interface 1150 is configured as device 1100 being connected to network and input and output (I/O) interface
1158.Device 1100 can be operated based on the operating system for being stored in memory 1132, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (7)
1. a kind of Internet protocol address data base processing method characterized by comprising
Obtain the Internet protocol address and geographical location information of terminal;
According to the Internet protocol address of the terminal and geographical location information to the Internet protocol address database prestored into
Row updates, and the Internet protocol address database includes the corresponding relationship of Internet protocol address and geographical location information;
The Internet protocol address database is carried out according to the Internet protocol address of the terminal and geographical location information
It updates, comprising:
According to the corresponding mapping interconnection of the Internet protocol address of terminal described in default Internet protocol address mapping relationship searching
FidonetFido address;
Wherein, the Internet protocol address includes 4 bytes, according to default Internet protocol address mapping relationship searching
The corresponding mapping Internet protocol address of the Internet protocol address of terminal, comprising:
The identical Internet protocol address of first three byte is corresponded into same mapping Internet protocol address;
By the corresponding relationship of the mapping Internet protocol address and the geographical location information of the terminal and the internet protocol
Internet protocol address is compared with the corresponding relationship of geographical location information in view address database;
When the corresponding relationship of the mapping Internet protocol address and the geographical location information of the terminal and the internet protocol
When discussing the corresponding relationship of Internet protocol address and geographical location information mismatch in address database, interconnected according to the mapping
The geographical location information of fidonetFido address and the terminal is updated the Internet protocol address database;And
According to the corresponding relationship of mapping Internet protocol address and the geographical location information of terminal and the Internet protocol address
The historical statistical data of the corresponding relationship of Internet protocol address and geographical location information in database, to shorten or extend or tie up
Hold the scan period to the mapping Internet protocol address;Or Internet protocol address and geographical position according to the terminal
Confidence breath is updated the Internet protocol address database, comprising:
By the corresponding relationship of the Internet protocol address of the terminal and geographical location information and the Internet protocol address number
It is compared according to the corresponding relationship of Internet protocol address and geographical location information in library;
When the Internet protocol address of the terminal and the corresponding relationship of geographical location information and the Internet protocol address number
When being mismatched according to the corresponding relationship of Internet protocol address in library and geographical location information, according to the Internet protocol of the terminal
Address and geographical location information are updated the Internet protocol address database.
2. the method according to claim 1, wherein according to the Internet protocol address of the terminal and geographical position
Confidence breath is updated the Internet protocol address database, comprising:
Obtain the access style of the accessing terminal to network;
When the access style is WIFI, according to the Internet protocol address of the terminal and geographical location information to described mutual
Networking protocol address database is updated.
3. according to the method described in claim 2, it is characterized in that, when the access style be mobile network when, according to described
The Internet protocol address and geographical location information of terminal are updated the Internet protocol address database, further includes:
Obtain the number attribution of the Mobile Directory Number of the terminal;
The geographical location information of the terminal is compared with the number attribution;
When the geographical location information of the terminal is consistent with the number attribution, according to the Internet protocol of the terminal
Location and geographical location information are updated the Internet protocol address database;
When the geographical location information of the terminal and the number attribution are inconsistent, the Internet protocol of the terminal is abandoned
Address and geographical location information.
4. a kind of Internet protocol address database processing device characterized by comprising
Module is obtained, for obtaining the Internet protocol address and geographical location information of terminal;
Update module, for the Internet protocol address and geographical location information according to the terminal to the Internet protocol prestored
Address database is updated, and the Internet protocol address database includes Internet protocol address and geographical location information
Corresponding relationship;
The update module, comprising:
Submodule is searched, the Internet protocol address for the terminal according to default Internet protocol address mapping relationship searching
Corresponding mapping Internet protocol address;
Wherein, the lookup submodule is used for when the Internet protocol address includes 4 bytes, by first three byte phase
Same Internet protocol address corresponds to same mapping Internet protocol address;
Second comparison submodule, for by the correspondence of the mapping Internet protocol address and the geographical location information of the terminal
Relationship is compared with the corresponding relationship of Internet protocol address and geographical location information in the Internet protocol address database
It is right;
Second updates submodule, for the correspondence when the mapping Internet protocol address and the geographical location information of the terminal
The corresponding relationship of Internet protocol address and geographical location information mismatches in relationship and the Internet protocol address database
When, according to the mapping Internet protocol address and the geographical location information of the terminal to the Internet protocol address data
Library is updated;And
According to the corresponding relationship of mapping Internet protocol address and the geographical location information of terminal and the Internet protocol address
The historical statistical data of the corresponding relationship of Internet protocol address and geographical location information in database, to shorten or extend or tie up
Hold the scan period to the mapping Internet protocol address;Or
The update module, comprising:
First comparison submodule, for by the corresponding relationship of the Internet protocol address of the terminal and geographical location information and institute
The corresponding relationship for stating Internet protocol address and geographical location information in Internet protocol address database is compared;
First updates submodule, for when the Internet protocol address of the terminal and corresponding relationship and the institute of geographical location information
When stating the corresponding relationship of Internet protocol address and geographical location information mismatch in Internet protocol address database, according to institute
The Internet protocol address and geographical location information for stating terminal are updated the Internet protocol address database.
5. device according to claim 4, which is characterized in that the update module, comprising:
First acquisition submodule, for obtaining the access style of the accessing terminal to network;
Third updates submodule, for when the access style is WIFI, according to the Internet protocol address of the terminal and
Geographical location information is updated the Internet protocol address database.
6. device according to claim 5, which is characterized in that the update module, further includes:
Second acquisition submodule, for obtaining the mobile subscriber number of the terminal when the access style is mobile network
The number attribution of book number;
Submodule is compared, the geographical location information of the terminal is compared with the number attribution;
4th updates submodule, when the geographical location information of the terminal is consistent with the number attribution, according to the end
The Internet protocol address and geographical location information at end are updated the Internet protocol address database;
Submodule is abandoned, when the geographical location information of the terminal and the number attribution are inconsistent, abandons the terminal
Internet protocol address and geographical location information.
7. a kind of Internet protocol address data library device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the Internet protocol address and geographical location information of terminal;
According to the Internet protocol address of the terminal and geographical location information to the Internet protocol address database prestored into
Row updates, and the Internet protocol address database includes the corresponding relationship of Internet protocol address and geographical location information;
The Internet protocol address database is carried out according to the Internet protocol address of the terminal and geographical location information
It updates, comprising:
According to the corresponding mapping interconnection of the Internet protocol address of terminal described in default Internet protocol address mapping relationship searching
FidonetFido address;
Wherein, the Internet protocol address includes 4 bytes, according to default Internet protocol address mapping relationship searching
The corresponding mapping Internet protocol address of the Internet protocol address of terminal, comprising:
The identical Internet protocol address of first three byte is corresponded into same mapping Internet protocol address;
By the corresponding relationship of the mapping Internet protocol address and the geographical location information of the terminal and the internet protocol
Internet protocol address is compared with the corresponding relationship of geographical location information in view address database;
When the corresponding relationship of the mapping Internet protocol address and the geographical location information of the terminal and the internet protocol
When discussing the corresponding relationship of Internet protocol address and geographical location information mismatch in address database, interconnected according to the mapping
The geographical location information of fidonetFido address and the terminal is updated the Internet protocol address database;And
According to the corresponding relationship of mapping Internet protocol address and the geographical location information of terminal and the Internet protocol address
The historical statistical data of the corresponding relationship of Internet protocol address and geographical location information in database, to shorten or extend or tie up
Hold the scan period to the mapping Internet protocol address;Or
The Internet protocol address database is carried out according to the Internet protocol address of the terminal and geographical location information
It updates, comprising:
By the corresponding relationship of the Internet protocol address of the terminal and geographical location information and the Internet protocol address number
It is compared according to the corresponding relationship of Internet protocol address and geographical location information in library;
When the Internet protocol address of the terminal and the corresponding relationship of geographical location information and the Internet protocol address number
When being mismatched according to the corresponding relationship of Internet protocol address in library and geographical location information, according to the Internet protocol of the terminal
Address and geographical location information are updated the Internet protocol address database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510359291.8A CN104994185B (en) | 2015-06-25 | 2015-06-25 | Internet protocol address data base processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510359291.8A CN104994185B (en) | 2015-06-25 | 2015-06-25 | Internet protocol address data base processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104994185A CN104994185A (en) | 2015-10-21 |
CN104994185B true CN104994185B (en) | 2019-02-19 |
Family
ID=54305936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510359291.8A Active CN104994185B (en) | 2015-06-25 | 2015-06-25 | Internet protocol address data base processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104994185B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105554174B (en) * | 2015-12-22 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Attribution management method and attribution management system of network protocol address |
CN105516392A (en) * | 2015-12-30 | 2016-04-20 | 小米科技有限责任公司 | Method and device for updating IP address information base |
CN106998371B (en) * | 2016-01-25 | 2020-11-06 | 创新先进技术有限公司 | Credible IP information judging method, IP information base updating method and device |
CN107018210A (en) * | 2017-04-12 | 2017-08-04 | 北京微影时代科技有限公司 | A kind of IP address base establishing method and device |
CN111416886B (en) * | 2020-03-26 | 2022-02-11 | 安徽文香科技有限公司 | Internet protocol address dynamic modification method and device and electronic equipment |
CN114500454B (en) * | 2021-12-20 | 2024-01-23 | 成都鲁易科技有限公司 | Method and device for detecting geographic position change of electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102014366A (en) * | 2009-09-04 | 2011-04-13 | 腾讯科技(深圳)有限公司 | Method, device and system for updating IP address home information |
CN102104635A (en) * | 2009-12-17 | 2011-06-22 | 阿里巴巴集团控股有限公司 | Method and device for updating Internet protocol (IP) address base |
CN103327133A (en) * | 2013-05-31 | 2013-09-25 | 青岛海信传媒网络技术有限公司 | Method and device for updating geographic position information |
CN103678676A (en) * | 2013-12-25 | 2014-03-26 | 乐视网信息技术(北京)股份有限公司 | IP library processing method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8635350B2 (en) * | 2006-06-12 | 2014-01-21 | Icontrol Networks, Inc. | IP device discovery systems and methods |
-
2015
- 2015-06-25 CN CN201510359291.8A patent/CN104994185B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102014366A (en) * | 2009-09-04 | 2011-04-13 | 腾讯科技(深圳)有限公司 | Method, device and system for updating IP address home information |
CN102104635A (en) * | 2009-12-17 | 2011-06-22 | 阿里巴巴集团控股有限公司 | Method and device for updating Internet protocol (IP) address base |
CN103327133A (en) * | 2013-05-31 | 2013-09-25 | 青岛海信传媒网络技术有限公司 | Method and device for updating geographic position information |
CN103678676A (en) * | 2013-12-25 | 2014-03-26 | 乐视网信息技术(北京)股份有限公司 | IP library processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104994185A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104994185B (en) | Internet protocol address data base processing method and device | |
CN104159276B (en) | The network search method and device of multimode terminal | |
CN104376053B (en) | A kind of storage and retrieval method based on magnanimity meteorological data | |
CN103501374B (en) | Telephone directory sequencing method and device, terminal | |
CN104869615B (en) | Network access method and mobile communication terminal | |
CN102187713B (en) | wireless network search | |
CN105656997B (en) | Temperature cache contents active push method based on mobile subscriber's relationship | |
CN103686617B (en) | Create the method and device of instant messaging group | |
CN107562743B (en) | Data storage method and device, and data search request processing method and device | |
CN105491529B (en) | The memory mapping treatment method and big data platform of mobile terminal locations data | |
CN111611225A (en) | Data storage management method, query method, device, electronic equipment and medium | |
CN104486777B (en) | A kind of method and device for realizing data processing | |
CN105338113A (en) | Multi-platform data interconnected system for sharing urban data resources | |
TWI652586B (en) | Group search method and device based on social network | |
WO2018000560A1 (en) | Method, apparatus and communication terminal for implementing network access service | |
CN112511393B (en) | Equipment linkage control method and device and storage medium | |
WO2016202262A1 (en) | Network access method and mobile terminal | |
CN105760468A (en) | Large-scale image querying system based on inverted position-sensitive Hash indexing in mobile environment | |
CN104853409B (en) | A kind of method for network access and mobile communication terminal | |
CN103379476A (en) | Terminal and contact information updating method | |
CN104853412B (en) | A kind of method for network access and mobile communication terminal | |
US20160156724A1 (en) | Method, apparatus, and system for determining target user for service policy | |
CN102710447B (en) | Terminal equipment cloud restorative procedure and system | |
CN110234156A (en) | A kind of method and apparatus of network selection | |
CN108762979B (en) | Terminal information backup method and backup device based on matching tree |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |