TWI514832B - Methods and devices for updating Internet Protocol IP address libraries - Google Patents

Methods and devices for updating Internet Protocol IP address libraries Download PDF

Info

Publication number
TWI514832B
TWI514832B TW099113506A TW99113506A TWI514832B TW I514832 B TWI514832 B TW I514832B TW 099113506 A TW099113506 A TW 099113506A TW 99113506 A TW99113506 A TW 99113506A TW I514832 B TWI514832 B TW I514832B
Authority
TW
Taiwan
Prior art keywords
address
data
mailing
segment
information
Prior art date
Application number
TW099113506A
Other languages
Chinese (zh)
Other versions
TW201138402A (en
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to TW099113506A priority Critical patent/TWI514832B/en
Publication of TW201138402A publication Critical patent/TW201138402A/en
Application granted granted Critical
Publication of TWI514832B publication Critical patent/TWI514832B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

更新網際網路協定IP位址庫的方法和裝置Method and apparatus for updating an internet protocol IP address pool

本申請案係有關網路技術領域,特別是有關一種更新網際網路協定IP位址庫的方法和裝置。This application relates to the field of network technologies, and more particularly to a method and apparatus for updating an Internet Protocol IP address pool.

Internet(網際網路)依靠TCP(傳輸控制協定)/IP(網際網路協定),在全球範圍內實現不同硬體結構、不同作業系統、不同網路系統的互聯。在Internet上,每一個節點都依靠唯一的IP地址而互相區分和相互聯繫。每一台聯網的電腦無權自行設定IP位址,由網際網路數字分配機構(IANA)負責IP地址的分配。The Internet (Internet) relies on TCP (Transmission Control Protocol)/IP (Internet Protocol) to interconnect different hardware structures, different operating systems, and different network systems on a global scale. On the Internet, each node is distinguished and interconnected by a unique IP address. Each networked computer does not have the right to set its own IP address. The Internet Digital Distribution Authority (IANA) is responsible for the allocation of IP addresses.

IP位址庫顧名思義就是儲存IP位址的資料庫,從理論上說,一個全面、準確的IP位址庫能夠幫助使用者正確識別Internet上的每一台電腦。然而,目前網上IP位址庫資料不是從IANA直接獲得,大都從民間搜集而來,IP位址資訊不全、沒有詳細的實際位址資料、實際位址只到省、市一級,因此,存在IP位址粒度較粗、實際位址錯誤的情況。As the name implies, the IP address library is a database for storing IP addresses. In theory, a comprehensive and accurate IP address library can help users correctly identify every computer on the Internet. However, the current online IP address database information is not directly obtained from IANA, most of them are collected from the private sector. The IP address information is incomplete, there is no detailed physical address information, and the actual address is only at the provincial and municipal levels. Therefore, there is The case where the IP address is coarser and the actual address is incorrect.

在現有技術中,通常採用人工收集的方法對IP位址庫進行補充和校正。In the prior art, the IP address library is usually supplemented and corrected by a manual collection method.

在實現本申請案的過程中,發明人發現現有技術至少存在如下問題:由於現有的IP位址庫採用人工收集的方法,因此不僅費時、費力,而且所能補充和校正的資料量有限。In the process of implementing the present application, the inventors have found that at least the following problems exist in the prior art: since the existing IP address library adopts a manual collection method, it is not only time-consuming and laborious, but also the amount of data that can be supplemented and corrected is limited.

本申請案提供一種更新網際網路協定IP位址庫的方法和裝置,以提高IP位址的實際地址的準確性和覆蓋率。The present application provides a method and apparatus for updating an Internet Protocol IP address pool to improve the accuracy and coverage of an actual address of an IP address.

本申請案提出一種更新網際網路協定IP位址庫的方法,包括以下步驟:獲取交易資訊資料庫中的郵寄位址資料,所述郵寄位址資料包括IP位址和位址資訊;掃描所述郵寄位址資料,以獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及所述IP地址區段對應的實際地址;根據所述IP位址區段對應的實際位址,以更新IP位址庫。The present application proposes a method for updating an Internet Protocol IP address library, comprising the steps of: obtaining mailing address data in a transaction information database, the mailing address data including an IP address and address information; Decoding the address data to obtain an IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and an actual address corresponding to the IP address segment; according to the IP address segment Corresponding actual address to update the IP address library.

較佳地,所述獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及所述IP位址區段對應的實際位址,具體包括:獲取位址資訊相同且IP位址連續的郵寄位址資料的個數;判斷所述位址資訊相同且IP位址連續的郵寄位址資料的個數是否大於預設閾值;如果所述郵寄位址資料的個數大於所述預設閾值,則將所述郵寄位址資料的IP位址合倂到一個IP位址區段,並將所述郵寄位址資料中的相同的位址資訊用作為所述IP位址區段對應的實際位址。Preferably, the obtaining the IP address segment corresponding to the mailing address data with the same address information and the IP address consecutively, and the actual address corresponding to the IP address segment, specifically: acquiring the address information The number of consecutive mailing address data of the same IP address; determining whether the number of mailing address data with the same address information and consecutive IP addresses is greater than a preset threshold; if the mailing address data is If the number is greater than the preset threshold, the IP address of the mailing address data is merged into an IP address segment, and the same address information in the mailing address data is used as the IP address. The actual address corresponding to the address segment.

較佳地,所述掃描郵寄位址資料之前,還包括:獲取IP位址庫資料,IP位址庫資料包括IP位址和對應的地名資訊;將所述IP位址庫資料和所述郵寄位址資料按照IP位址遞增或遞減的順序排列;根據所述IP位址庫資料的地名資訊來過濾所述郵寄位址資料,以刪除位址資訊與對應的IP位址庫資料的地名資訊不匹配的郵寄位址資料。Preferably, before the scanning the address data, the method further includes: obtaining an IP address database, the IP address database data includes an IP address and corresponding place name information; and the IP address database information and the mailing The address data is arranged in the order of increasing or decreasing the IP address; filtering the mailing address data according to the geographical name information of the IP address database data, to delete the address information of the address information and the corresponding IP address database data Unmatched mailing address data.

較佳地,所述地名資訊包括以下內容中的任意一項:國家地址、省級地址、市級地址和縣級地址。Preferably, the place name information includes any one of the following: a country address, a provincial address, a city address, and a county address.

較佳地,所述根據IP位址區段對應的實際位址,以更新IP位址庫,具體包括:使用所述IP位址區段對應的實際位址,以替換所述IP位址區段在所述IP位址庫中對應的地名資訊。Preferably, the updating the IP address library according to the actual address corresponding to the IP address segment, specifically: using the actual address corresponding to the IP address segment to replace the IP address region The section name information corresponding to the segment in the IP address library.

本申請案還提出一種更新IP位址庫的裝置,包括:獲取模組,用以獲取交易資訊資料庫中的郵寄位址資料,所述郵寄位址資料包括IP位址和位址資訊;掃描模組,用以掃描所述獲取模組所獲取的郵寄位址資料,以獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及所述IP地址區段對應的實際地址;更新模組,用以根據所述掃描模組所獲取的IP位址區段對應的實際位址,以更新IP位址庫。The application further provides an apparatus for updating an IP address library, comprising: an obtaining module, configured to obtain mailing address data in a transaction information database, the mailing address data including an IP address and address information; a module, configured to scan the mailing address data obtained by the acquiring module, to obtain an IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and the IP address segment Corresponding actual address; an update module, configured to update the IP address pool according to the actual address corresponding to the IP address segment acquired by the scanning module.

較佳地,所述的裝置,還包括:過濾模組,用以獲取IP位址庫資料,IP位址庫資料包括IP位址和對應的地名資訊;將所述IP位址庫資料和所述郵寄位址資料按照IP位址遞增或遞減的順序排列,根據所述IP位址庫資料的地名資訊來過濾所述獲取模組所獲取的郵寄位址資料,以刪除位址資訊與對應的IP位址庫資料的地名資訊不匹配的郵寄位址資料。Preferably, the device further includes: a filtering module, configured to obtain IP address library data, the IP address library data includes an IP address and corresponding place name information; and the IP address library data and the location The mailing address data is arranged in the order of increasing or decreasing the IP address, and filtering the mailing address data obtained by the obtaining module according to the geographical name information of the IP address database data, so as to delete the address information and the corresponding The address information of the IP address database data does not match the postal address information.

較佳地,所述過濾模組,具體用以根據所述IP位址庫資料的以下地名資訊的任意一項來過濾所述郵寄位址資料:國家地址、省級地址、市級地址和縣級地址。Preferably, the filtering module is configured to filter the mailing address data according to any one of the following place name information of the IP address library data: a country address, a provincial address, a city address, and a county Level address.

較佳地,所述掃描模組,具體包括:獲取子模組,用以獲取位址資訊相同且IP位址連續的郵寄位址資料的個數;判斷子模組,用以判斷所述獲取子模組所獲取的位址資訊相同且IP位址連續的郵寄位址資料的個數是否大於預設閾值;合倂子模組,用以在所述判斷子模組判斷所述郵寄位址資料的個數大於所述預設閾值時,將所述郵寄位址資料的IP位址合倂到一個IP位址區段,並將所述郵寄位址資料中的相同的位址資訊用作為所述IP位址區段對應的實際位址。Preferably, the scanning module specifically includes: acquiring a sub-module for acquiring the number of mailing address materials with the same address information and consecutive IP addresses; determining a sub-module for determining the obtaining Whether the number of the mailing address information obtained by the sub-module is the same and the number of consecutive mailing address data of the IP address is greater than a preset threshold; the combining sub-module is configured to determine the mailing address in the determining sub-module When the number of the data is greater than the preset threshold, the IP address of the mailing address data is merged into an IP address segment, and the same address information in the mailing address data is used as The actual address corresponding to the IP address segment.

較佳地,所述更新模組,具體用以使用所述IP位址區段對應的實際位址,以替換所述IP位址區段在所述IP位址庫中對應的地名資訊。Preferably, the update module is configured to use the actual address corresponding to the IP address segment to replace the corresponding place name information in the IP address pool of the IP address segment.

本申請案包括以下優點,使用大量的郵寄位址資料對現有的IP位址庫中的實際位址來進行自動補充和校驗,準確性和覆蓋率較高;整個過程只需要對IP位址庫資料和郵寄位址資料進行兩次掃描,不需要人工收集,補充和校驗的效率高。當然,實施本申請案的任一產品並不一定需要同時達到以上所述的所有優點。The application includes the following advantages: using a large amount of mailing address data to automatically replenish and verify the actual address in the existing IP address library, the accuracy and coverage are high; the entire process only needs to be IP address The library data and the mailing address data are scanned twice, without manual collection, and the efficiency of supplementation and verification is high. Of course, implementing any of the products of the present application does not necessarily require all of the advantages described above to be achieved at the same time.

本申請案的主要概念包括,從用戶的電子商務交易資訊中獲取郵寄位址資料,對該郵寄位址資料進行掃描,以獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及該IP位址區段對應的實際位址,並根據該IP位址區段對應的實際位址,以更新IP位址庫。The main concepts of this application include obtaining the mailing address data from the user's e-commerce transaction information, and scanning the mailing address data to obtain the IP corresponding to the mailing address data with the same address information and consecutive IP addresses. The address segment, and the actual address corresponding to the IP address segment, and update the IP address pool according to the actual address corresponding to the IP address segment.

下面將結合本申請案中的附圖,對本申請案中的技術方案進行清楚、完整的描述,顯然,所描述的實施例是本申請案的一部分實施例,而不是全部的實施例。基於本申請案中的實施例,本領域普通技術人員在沒有作出創造性勞動的前提下所獲得的所有其他實施例,都屬於本申請案保護的範圍。The technical solutions in the present application are clearly and completely described in the following with reference to the drawings in the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts are within the scope of the present disclosure.

如圖1所示,為本申請案實施例一中的一種更新IP位址庫的方法流程圖,包括以下步驟:步驟101,獲取交易資訊資料庫中的郵寄位址資料。As shown in FIG. 1 , a flowchart of a method for updating an IP address pool in the first embodiment of the present application includes the following steps: Step 101: Obtain a mailing address data in a transaction information database.

用戶使用網際網路中的電腦在參與網路活動時,會登錄一些電子商務網站,並透過電子商務網站達成網路交易,從而在電子商務網站伺服器的資料庫中留下各種交易資訊,例如:購買的商品名稱、價格、商品的郵寄位址、達成交易的該台電腦的IP位址等。本實施例透過建立一交易資訊資料庫用以收集郵寄位址資料。其中,郵寄位址資料包括IP位址和位址資訊。When users use the computers on the Internet to participate in online activities, they log into some e-commerce websites and reach online transactions through e-commerce websites, thus leaving various transaction information in the database of the e-commerce website server, for example : The name of the purchased product, the price, the mailing address of the product, and the IP address of the computer that reached the transaction. This embodiment establishes a transaction information database for collecting mailing address data. Among them, the mailing address information includes IP address and address information.

步驟102,掃描郵寄位址資料,以獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及該IP位址區段對應的實際地址。Step 102: Scan the mailing address data to obtain an IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and an actual address corresponding to the IP address segment.

具體地說,上述獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及所述IP位址區段對應的實際位址,具體包括:獲取位址資訊相同且IP位址連續的郵寄位址資料的個數;判斷所述位址資訊相同且IP位址連續的郵寄位址資料的個數是否大於預設閾值;如果所述郵寄位址資料的個數大於預設閾值,則將所述郵寄位址資料的IP位址合倂到一個IP位址區段,並將所述郵寄位址資料中的相同的位址資訊用作為所述IP位址區段對應的實際位址。Specifically, the obtaining the IP address segment corresponding to the mailing address data with the same address information and the IP address consecutively, and the actual address corresponding to the IP address segment, specifically: obtaining the same address information And the number of consecutive mailing address data of the IP address; determining whether the number of the mailing address data with the same address information and consecutive IP addresses is greater than a preset threshold; if the number of the mailing address materials is If the threshold value is greater than the preset threshold, the IP address of the mailing address data is merged into an IP address segment, and the same address information in the mailing address data is used as the IP address area. The actual address corresponding to the segment.

上述掃描郵寄位址資料之前,還可以獲取IP位址庫資料;將所述IP位址庫資料和所述郵寄位址資料按照IP位址遞增或遞減的順序排列;根據所述IP位址庫資料的地名資訊來過濾所述郵寄位址資料,以刪除位址資訊與對應的IP位址庫資料的地名資訊不匹配的郵寄位址資料。Before the scanning of the address data, the IP address database data may also be obtained; the IP address database data and the mailing address data are arranged in an order of increasing or decreasing according to an IP address; according to the IP address library The geographical name information of the data is used to filter the mailing address data to delete the mailing address data whose address information does not match the geographical name information of the corresponding IP address database data.

其中,IP位址庫資料包括IP位址和對應的地名資訊,該地名資訊包括以下內容中的任意一項:國家地址、省級地址、市級地址和縣級地址。The IP address database information includes an IP address and corresponding place name information, and the place name information includes any one of the following contents: a country address, a provincial address, a city address, and a county address.

步驟103,根據IP位址區段對應的實際位址,以更新IP位址庫。Step 103: Update the IP address pool according to the actual address corresponding to the IP address segment.

具體地說,上述根據IP位址區段對應的實際位址,以更新IP位址庫,具體包括:使用IP位址區段對應的實際位址,以替換該IP位址區段在IP位址庫中對應的地名資訊。Specifically, the foregoing physical address corresponding to the IP address segment is used to update the IP address library, and specifically includes: using an actual address corresponding to the IP address segment to replace the IP address segment in the IP bit. The corresponding place name information in the address library.

本申請案包括以下優點,使用大量的郵寄位址資料對現有的IP位址庫中的實際位址來進行自動補充和校驗,準確性和覆蓋率較高;整個過程只需要對IP位址庫資料和郵寄位址資料進行兩次掃描,不需要人工收集,補充和校驗的效率高。當然,實施本申請案的任一產品並不一定需要同時達到以上所述的所有優點。The application includes the following advantages: using a large amount of mailing address data to automatically replenish and verify the actual address in the existing IP address library, the accuracy and coverage are high; the entire process only needs to be IP address The library data and the mailing address data are scanned twice, without manual collection, and the efficiency of supplementation and verification is high. Of course, implementing any of the products of the present application does not necessarily require all of the advantages described above to be achieved at the same time.

如圖2所示,為本申請案實施例二中的一種更新IP位址庫的方法流程圖,包括以下步驟:步驟201,獲取IP位址庫資料和交易資訊資料庫中的郵寄位址資料,將IP位址庫資料和郵寄位址資料按照IP位址遞增或遞減的順序排列。As shown in FIG. 2, a flowchart of a method for updating an IP address pool in Embodiment 2 of the present application includes the following steps: Step 201: Obtain IP address database information and mailing address data in a transaction information database. The IP address library data and the mailing address data are arranged in the order of increasing or decreasing the IP address.

其中,IP位址庫資料包括IP位址和對應的地名資訊,通常IP位址的一個區段對應一個地名資訊,例如,從192.168.0.1到192.169.5.252的IP位址的區段對應的地名資訊為中國湖北省武漢市。IP位址庫資料通常會在網路上公開,可以直接下載得到。目前,較為常用的IP位址庫資料為純真版的IP位址庫資料,純真版的IP位址庫只用一個檔QQWry.dat就包含了與IP位址相關的所有記錄,方便嵌入到其他程式中,也便於升級。The IP address database information includes an IP address and a corresponding place name information. Usually, a section of the IP address corresponds to a place name information, for example, a place name corresponding to a section of an IP address from 192.168.0.1 to 192.169.5.252. The information is Wuhan, Hubei Province, China. IP address library information is usually published on the Internet and can be downloaded directly. At present, the more commonly used IP address library data is the pure version of the IP address library data. The pure version of the IP address library contains all the records related to the IP address using only one file QQWry.dat, which is convenient to embed in other In the program, it is also easy to upgrade.

交易資訊資料庫係位於購物網站的伺服器中,用以儲存用戶端的IP位址以及用戶端使用者進行購物交易留下的位址資訊等。郵寄位址資料包括IP位址和位址資訊,其中,位址資訊為用戶進行購物交易時留下的郵寄位址。The transaction information database is located in the server of the shopping website, and is used for storing the IP address of the client side and the address information left by the user end user for the shopping transaction. The mailing address information includes IP address and address information, wherein the address information is a mailing address left by the user when making a shopping transaction.

具體地說,客戶在網上購物時,例如在淘寶網上購物時,成交時會填寫郵寄位址,透過記錄客戶的IP位址及其郵寄位址,可以獲取IP位址庫資料和郵寄位址資料。例如,郵寄位址資料可以是一年內登錄淘寶網的IP地址以及各個IP地址對應的郵寄地址。Specifically, when customers shop online, for example, when shopping on Taobao, they will fill in the mailing address when they make a transaction. By recording the customer's IP address and their mailing address, you can obtain the IP address database information and mailing. Address information. For example, the mailing address data may be an IP address registered to Taobao within one year and a mailing address corresponding to each IP address.

步驟202,根據IP位址庫資料的地名資訊來過濾郵寄位址資料,以刪除位址資訊與對應的IP位址庫資料的地名資訊不匹配的郵寄位址資料。Step 202: Filter the mailing address data according to the geographical name information of the IP address database data, so as to delete the mailing address data whose address information does not match the geographical name information of the corresponding IP address database data.

其中,IP位址庫資料的地名資訊包括以下內容中的任意一項:國家地址、省級地址、市級地址和縣級地址。由於IP位址是按照區段分配到不同的地域的,因此同一個地域的IP位址具有臨近性,一般在一個或者多個連續的區段內。現有的IP位址庫資料的地名資訊多到省級,粒度較粗,但是對於省級地址的判斷,正確性一般較高;而郵寄位址資料則細到了街道、門牌號,單條郵寄位址往往噪音較大,並不能有效的地說明IP的實際位址,因此需要對郵寄位址資料進行過濾。The place name information of the IP address library data includes any one of the following contents: a country address, a provincial address, a city address, and a county address. Since the IP addresses are assigned to different regions according to the segments, the IP addresses of the same region are adjacent, generally within one or more consecutive segments. The location information of the existing IP address library data is mostly at the provincial level, and the granularity is relatively coarse. However, for the judgment of the provincial address, the correctness is generally higher; while the mailing address information is detailed to the street, the house number, and the single mailing address. It is often noisy and does not effectively describe the actual address of the IP, so the mailing address data needs to be filtered.

在具體的實現過程中,可以判斷郵寄位址資料的位址資訊與對應的IP位址庫資料的地名資訊是否匹配,如果不匹配,則刪除該郵寄位址資料。可以取IP位址庫資料的地名資訊的省級位址作為標準,以過濾郵寄位址資料中與IP位址庫資料中的IP位址一樣但省級位址不一致的資料。例如,某條郵寄位址資料的IP位址為192.168.0.2,位址資訊為中國江蘇省南京市xx區xx路xx號;而IP位址192.168.0.2所在的IP區段192.168.0.1-192.169.5.252映射到的IP位址庫資料的地名資訊為中國湖北省武漢市,因此,上述郵寄位址資料位址資訊與對應的IP位址庫資料的地名資訊不匹配,需要刪除該郵寄位址資料。In a specific implementation process, it may be determined whether the address information of the mailing address data matches the geographical name information of the corresponding IP address database data, and if not, the mailing address data is deleted. The provincial address of the geographical name information of the IP address database data may be taken as a standard to filter the information in the mailing address data that is the same as the IP address in the IP address database data but the provincial address is inconsistent. For example, the IP address of a mailing address is 192.168.0.2, the address information is xx xx, xx, Nanjing, Jiangsu, China; and the IP section of 192.168.0.2 is 192.168.0.1-192.169. The location information of the IP address library data mapped to .5.252 is located in Wuhan, Hubei Province, China. Therefore, the location information of the mailing address and the location information of the corresponding IP address database do not match, and the mailing address needs to be deleted. data.

當然,可以取IP位址庫資料的地名資訊的國家位址、市級位址或縣級位址作為標準,以過濾郵寄位址資料,其方法與上述流程類似。Of course, the country address, the city address, or the county address of the place name information of the IP address library data can be taken as a standard to filter the mailing address data, and the method is similar to the above process.

另外,如果某個IP區段在IP位址庫資料中沒有對應的地名資訊,但是存在對應的郵寄位址資料,則保留該郵寄位址資料。In addition, if an IP segment does not have corresponding place name information in the IP address database material, but the corresponding mailing address data exists, the mailing address data is retained.

步驟203,掃描郵寄位址資料,根據預設的位址資訊的精度,以獲取位址資訊相同且IP位址連續的郵寄位址資料的個數。Step 203: Scan the mailing address data, and obtain the number of mailing address materials with the same address information and consecutive IP addresses according to the precision of the preset address information.

具體地說,可以設定位址資訊的精度,根據該精度判斷郵寄位址資料的位址資訊是否相同。預先設定的位址資訊的精度可以為市級、縣級、區級甚至更加細化的級別,郵寄位址資料的位址資訊是否相同取決於位址資訊的精度。例如,兩條IP位址連續的郵寄位址資料的位址資訊分別為A省B市C縣和A省B市D縣,如果預先設定的位址資訊的精度為市級,則上述兩條郵寄位址資料的位址資訊相同;如果預先設定的位址資訊的精度為縣級,則上述兩條郵寄位址資料的位址資訊不同。Specifically, the accuracy of the address information can be set, and the address information of the mailing address data is determined to be the same according to the accuracy. The accuracy of the preset address information can be city level, county level, district level or even more detailed level. Whether the address information of the mail address data is the same depends on the accuracy of the address information. For example, the address information of consecutive IP address data of two IP addresses is C county of B province of A province and D county of B city of province A. If the accuracy of pre-set address information is municipal level, then the above two The address information of the mailing address data is the same; if the accuracy of the preset address information is county level, the address information of the above two mailing address materials is different.

同一IP位址和相鄰的IP位址往往對應在一定精度上相同的位址資訊,從大量郵寄位址資料中,能夠有效地定位IP區段對應的市、縣級實際位址。The same IP address and the adjacent IP address often correspond to the same address information at a certain precision. From a large number of mailing address data, the actual city and county-level addresses corresponding to the IP segment can be effectively located.

步驟204,判斷位址資訊相同且IP位址連續的郵寄位址資料的個數是否大於預設閾值,如果大於該預設閾值,則執行步驟205;否則,結束流程。In step 204, it is determined whether the number of the mailing address data with the same address information and the IP address is greater than a preset threshold. If the threshold is greater than the preset threshold, step 205 is performed; otherwise, the process ends.

步驟205,將位址資訊相同且IP位址連續的郵寄位址資料的IP位址合倂到一個IP位址區段,並將上述郵寄位址資料中的相同的位址資訊用作為該IP位址區段對應的實際位址。Step 205: Combine the IP addresses of the mailing address data with the same address information and consecutive IP addresses into one IP address segment, and use the same address information in the mailing address data as the IP address. The actual address corresponding to the address segment.

在具體的實現過程中,設郵寄位址資料共有n條,對郵寄位址資料從第r+1條開始向第n-r條掃描(其中,r為變數,可以設定為20)。假設當前掃描到第i條郵寄位址資料,在[i-r,i+r]的範圍內,有x條郵寄位址資料的位址資訊相同且IP位址連續。如果x<預設閾值δ,則判斷目前區域位址資訊相同的記錄數過少,位址資訊不足以說明當前IP位址的實際位址;如果xδ,則根據預設的位址資訊的精度,確定第i條郵寄位址資料的IP位址對應的實際位址,該實際位址可以是第i條郵寄位址資料的位址資訊到省、市或縣級的位址。In the specific implementation process, there are a total of n mailing address data, and the mailing address data is scanned from the r+1th to the nthth (where r is a variable and can be set to 20). Assume that the current i-mailing address data is scanned, and within the range of [ir, i+r], the address information of the x mailing address data is the same and the IP address is continuous. If x<preset threshold δ, it is judged that the number of records with the same regional address information is too small, and the address information is insufficient to indicate the actual address of the current IP address; if x δ, according to the accuracy of the preset address information, the actual address corresponding to the IP address of the i-th mailing address data is determined, and the actual address may be the address information of the i-th mailing address data to the province. Address at the city or county level.

如果兩條郵寄位址資料的實際位址相同,則它們的IP位址可以合併為一個區段。一直往下掃描郵寄位址資料,直至出現實際位址不同的郵寄位址資料為止,將從第一條至最後一條實際位址相同的IP位址用一個區段表示,將該區段用作為最大的實際位址相同的連續IP區段。If the actual addresses of the two mailing address materials are the same, their IP addresses can be combined into one sector. Always scan the mailing address data until the actual address of the mailing address is different. The IP address with the same physical address from the first to the last address is represented by a section, which is used as the section. The largest consecutive IP segment with the same actual address.

步驟206,根據合倂得到的IP位址區段對應的實際位址,以更新IP位址庫。Step 206: Update the IP address pool according to the actual address corresponding to the IP address segment obtained by the merge.

具體地說,可以使用合併得到的IP位址區段對應的實際地址,以替換該IP位址區段在IP位址庫中對應的地名資訊;對於IP位址庫中該IP位址區段之外的IP位址對應的地名資訊,則不進行任何操作。Specifically, the actual address corresponding to the IP address segment obtained by the combination may be used to replace the corresponding place name information in the IP address field of the IP address segment; for the IP address segment in the IP address library No operation is performed for the place name information corresponding to the IP address other than the IP address.

此外,還可以判斷IP位址區段對應的實際位址是否比該IP位址區段在IP地址庫中對應的地名資訊詳細,當郵寄位址資料中沒有判別結果的IP區段時,則以IP位址庫資料中的實際位址作為對應IP位址的實際位址;當郵寄位址資料中有判別結果的IP區段時,則以郵寄位址資料中的實際位址作為對應IP位址的實際位址。當IP位址庫資料和郵寄位址資料中均有判別結果的IP區段時,如果IP位址區段對應的實際位址比該IP位址區段在IP位址庫中對應的地名資訊郵寄位址資料的實際位址比IP位址庫資料的實際位址詳細,則以IP位址區段對應的實際位址替換該IP位址區段在IP位址庫中對應的地名資訊郵寄位址的實際位址為準;否則,不對該IP位址區段在IP位址庫中對應的地名資訊進行任何操作以IP位址庫資料的實際位址為準。In addition, it can be determined whether the actual address corresponding to the IP address segment is more detailed than the corresponding geographical name information in the IP address pool of the IP address segment, and when there is no IP segment in the mailing address data for discriminating the result, The actual address in the IP address library data is used as the actual address of the corresponding IP address; when there is an IP segment in the mailing address data, the actual address in the mailing address data is used as the corresponding IP address. The actual address of the address. When the IP address library data and the mailing address data have IP segments for discriminating the result, if the actual address corresponding to the IP address segment is higher than the IP address corresponding to the IP address field in the IP address database If the actual address of the mailing address data is more detailed than the actual address of the IP address library data, the corresponding geographical address of the IP address field in the IP address field is replaced by the actual address corresponding to the IP address field. The actual address of the address shall prevail; otherwise, no operation is performed on the corresponding place name information in the IP address field of the IP address field, which is based on the actual address of the IP address pool data.

本申請案包括以下優點,使用大量的郵寄位址資料而對現有的IP位址庫中的實際位址進行自動補充和校驗,準確性和覆蓋率較高;整個過程只需要對IP位址庫資料和郵寄位址資料進行兩次掃描,不需要人工收集,補充和校驗的效率高。當然,實施本申請案的任一產品並不一定需要同時達到以上所述的所有優點。The application includes the following advantages: automatically replenish and verify the actual address in the existing IP address base by using a large amount of mailing address data, and the accuracy and coverage are high; the entire process only needs the IP address. The library data and the mailing address data are scanned twice, without manual collection, and the efficiency of supplementation and verification is high. Of course, implementing any of the products of the present application does not necessarily require all of the advantages described above to be achieved at the same time.

本申請案上述實施例提供了獲取IP位址的實際位址的方法和應用場景,相應地,本申請案還透過以下實施例來提供應用上述方法的裝置。The foregoing embodiment of the present application provides a method and an application scenario for obtaining an actual address of an IP address. Accordingly, the present application further provides an apparatus for applying the foregoing method through the following embodiments.

如圖3所示,為本申請案實施例三中的一種獲取IP位址的實際位址的裝置結構示意圖,包括:獲取模組310,用以獲取交易資訊資料庫中的郵寄位址資料,所述郵寄位址資料包括IP位址和位址資訊。As shown in FIG. 3, a schematic structural diagram of an apparatus for obtaining an actual address of an IP address in the third embodiment of the present application includes: an obtaining module 310, configured to obtain a mailing address data in a transaction information database, The mailing address information includes an IP address and address information.

掃描模組320,用以掃描獲取模組310獲取的郵寄位址資料,以獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及所述IP地址區段對應的實際地址。The scanning module 320 is configured to scan the mailing address data acquired by the obtaining module 310 to obtain an IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and the IP address segment. The corresponding actual address.

更新模組330,用以根據掃描模組320所獲取的IP位址區段對應的實際位址,以更新IP位址庫。The update module 330 is configured to update the IP address pool according to the actual address corresponding to the IP address segment acquired by the scan module 320.

上述更新模組330,具體用以使用所述IP位址區段對應的實際位址,以替換所述IP位址區段在所述IP位址庫中對應的地名資訊。The update module 330 is configured to use the actual address corresponding to the IP address segment to replace the corresponding place name information in the IP address pool of the IP address segment.

本申請案包括以下優點,使用大量的郵寄位址資料對現有的IP位址庫中的實際位址來進行自動補充和校驗,準確性和覆蓋率較高;整個過程只需要對IP位址庫資料和郵寄位址資料進行兩次掃描,不需要人工收集,補充和校驗的效率高。當然,實施本申請案的任一產品並不一定需要同時達到以上所述的所有優點。The application includes the following advantages: using a large amount of mailing address data to automatically replenish and verify the actual address in the existing IP address library, the accuracy and coverage are high; the entire process only needs to be IP address The library data and the mailing address data are scanned twice, without manual collection, and the efficiency of supplementation and verification is high. Of course, implementing any of the products of the present application does not necessarily require all of the advantages described above to be achieved at the same time.

如圖4所示,為本申請案實施例四中的一種更新IP位址庫的裝置結構示意圖,包括:獲取模組410,用以獲取交易資訊資料庫中的郵寄位址資料,所述郵寄位址資料包括IP位址和位址資訊。As shown in FIG. 4, it is a schematic structural diagram of an apparatus for updating an IP address pool in Embodiment 4 of the present application, comprising: an obtaining module 410, configured to obtain mailing address data in a transaction information database, and the mailing The address information includes IP address and address information.

掃描模組420,用以掃描所述獲取模組所獲取的郵寄位址資料,以獲取位址資訊相同且IP位址連續的郵寄位址資料對應的IP位址區段,以及所述IP地址區段對應的實際地址。The scanning module 420 is configured to scan the mailing address data acquired by the acquiring module to obtain an IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and the IP address. The actual address corresponding to the segment.

上述掃描模組420,具體包括:獲取子模組421,用以獲取位址資訊相同且IP位址連續的郵寄位址資料的個數。The scanning module 420 specifically includes: an obtaining sub-module 421, configured to obtain the number of mailing address materials with the same address information and consecutive IP addresses.

判斷子模組422,用以判斷獲取子模組421所獲取的位址資訊相同且IP位址連續的郵寄位址資料的個數是否大於預設閾值。The determining sub-module 422 is configured to determine whether the number of the mailing address data obtained by the obtaining sub-module 421 and having the same address information and the IP address is greater than a preset threshold.

合倂子模組423,用以在判斷子模組422判斷所述郵寄位址資料的個數大於所述預設閾值時,將所述郵寄位址資料的IP位址合併到一個IP位址區段,並將所述郵寄位址資料中的相同的位址資訊用作為所述IP位址區段對應的實際位址。The merging module 423 is configured to merge the IP address of the mailing address data into an IP address when the determining sub-module 422 determines that the number of the mailing address data is greater than the preset threshold. And the same address information in the mailing address data is used as the actual address corresponding to the IP address segment.

更新模組430,用以根據所述掃描模組所獲取的IP位址區段對應的實際位址,以更新IP位址庫。The update module 430 is configured to update the IP address pool according to the actual address corresponding to the IP address segment acquired by the scan module.

上述更新模組430,具體用以使用所述IP位址區段對應的實際位址,以替換所述IP位址區段在所述IP位址庫中對應的地名資訊。The update module 430 is configured to use the actual address corresponding to the IP address segment to replace the corresponding place name information in the IP address pool of the IP address segment.

過濾模組440,用以獲取IP位址庫資料,IP位址庫資料包括IP位址和對應的地名資訊;將所述IP位址庫資料和所述郵寄位址資料按照IP位址遞增或遞減的順序排列,根據所述IP位址庫資料的地名資訊來過濾獲取模組410獲取的郵寄位址資料,以刪除位址資訊與對應的IP位址庫資料的地名資訊不匹配的郵寄位址資料。The filtering module 440 is configured to obtain IP address library data, where the IP address library data includes an IP address and corresponding place name information; and the IP address library data and the mailing address data are incremented according to an IP address or The descending order is arranged, and the mailing address data acquired by the obtaining module 410 is filtered according to the toponymic information of the IP address database data, so as to delete the mailing address that the address information does not match the geographical name information of the corresponding IP address database data. Address information.

上述過濾模組440,具體用以根據所述IP位址庫資料的以下地名資訊的任意一項來過濾所述郵寄位址資料:國家地址、省級地址、市級地址和縣級地址。The filtering module 440 is configured to filter the mailing address data according to any one of the following place name information of the IP address library data: a country address, a provincial address, a city address, and a county address.

本申請案包括以下優點,使用大量的郵寄位址資料而對現有的IP位址庫中的實際位址進行自動補充和校驗,準確性和覆蓋率較高;整個過程只需要對IP位址庫資料和郵寄位址資料進行兩次掃描,不需要人工收集,補充和校驗的效率高。當然,實施本申請案的任一產品並不一定需要同時達到以上所述的所有優點。The application includes the following advantages: automatically replenish and verify the actual address in the existing IP address base by using a large amount of mailing address data, and the accuracy and coverage are high; the entire process only needs the IP address. The library data and the mailing address data are scanned twice, without manual collection, and the efficiency of supplementation and verification is high. Of course, implementing any of the products of the present application does not necessarily require all of the advantages described above to be achieved at the same time.

透過以上的實施方式的描述,本領域的技術人員可以清楚地瞭解到本申請案可借助軟體加必需的通用硬體平臺的方式來實現,當然也可以透過硬體,但很多情況下前者是更佳的實施方式。基於這樣的理解,本申請案的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式來加以體現出來,該電腦軟體產品係儲存在一個儲存媒體中,包括若干指令用以使得一台終端設備(可以是手機、個人電腦、伺服器、或者網路設備等)執行本申請案之各個實施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of a software plus a necessary universal hardware platform, and of course, can also be through hardware, but in many cases, the former is more Good implementation. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. The method described in the various embodiments of the present application is performed such that a terminal device (which may be a mobile phone, a personal computer, a server, or a network device, etc.).

以上所述僅是本申請案的較佳實施方式,應當指出,對於本技術領域的普通技術人員來說,在不違離本申請案之原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視本申請案的保護範圍而定。The above description is only a preferred embodiment of the present application, and it should be noted that those skilled in the art can make some improvements and refinements without departing from the principle of the present application. These improvements and retouchings are also subject to the scope of protection of this application.

本領域技術人員可以理解實施例中的裝置中的模組可以按照實施例描述進行分佈於實施例的裝置中,也可以進行相應變化位於不同於本實施例的一個或多個裝置中。上述實施例的模組可以被集成於一體,也可以分離部署;可以合倂為一個模組,也可以進一步拆分成多個子模組。上述本申請案實施例序號僅僅為了描述,不代表實施例的優劣。A person skilled in the art can understand that the modules in the apparatus in the embodiment can be distributed in the apparatus of the embodiment according to the description of the embodiment, or the corresponding changes can be located in one or more apparatuses different from the embodiment. The modules of the above embodiments may be integrated into one or may be separately deployed; they may be combined into one module, or may be further split into multiple sub-modules. The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.

以上揭示的僅為本申請案的幾個具體實施例,但是,本申請案並非局限於此,任何本領域的技術人員能思之的變化都應落入本申請案的保護範圍。The above disclosure is only a few specific embodiments of the present application, but the present application is not limited thereto, and any changes that can be made by those skilled in the art should fall within the protection scope of the present application.

310...獲取模組310. . . Get module

320...掃描模組320. . . Scanning module

330...更新模組330. . . Update module

410...獲取模組410. . . Get module

420...掃描模組420. . . Scanning module

421...獲取子模組421. . . Get submodule

422...判斷子模組422. . . Judging submodule

423...合倂子模組423. . . Tweezers module

430...更新模組430. . . Update module

440...過濾模組440. . . Filter module

為了更清楚地說明本申請案或現有技術中的技術方案,下面將對本申請案或現有技術描述中所需要使用的附圖作簡單的介紹,顯而易見地,下面描述中的附圖僅僅是本申請案的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖而獲得其他的附圖。In order to more clearly illustrate the present application or the technical solutions in the prior art, the drawings to be used in the present application or the prior art description will be briefly described below. Obviously, the drawings in the following description are only the present application. For some embodiments of the present invention, other drawings may be obtained from those skilled in the art without departing from the drawings.

圖1為本申請案實施例一中的一種更新IP位址庫的方法流程圖;1 is a flowchart of a method for updating an IP address library in Embodiment 1 of the present application;

圖2為本申請案實施例二中的一種更新IP位址庫的方法流程圖;2 is a flowchart of a method for updating an IP address library in Embodiment 2 of the present application;

圖3為本申請案實施例三中的一種更新IP位址庫的裝置結構示意圖;3 is a schematic structural diagram of an apparatus for updating an IP address library in Embodiment 3 of the present application;

圖4為本申請案實施例四中的一種更新IP位址庫的裝置結構示意圖。FIG. 4 is a schematic structural diagram of an apparatus for updating an IP address pool according to Embodiment 4 of the present application.

Claims (10)

一種更新網際網路協定IP位址庫的方法,其特徵在於,包括以下步驟:獲取交易資訊資料庫中的郵寄位址資料,該郵寄位址資料包括IP位址和位址資訊;掃描該郵寄位址資料,以獲取位址資訊相同且IP位址連續的該郵寄位址資料對應的IP位址區段,以及該IP位址區段對應的實際位址;以及根據該IP位址區段對應的該實際位址,以更新IP位址庫,其中,更新該IP位址庫包含:判斷該IP位址區段對應的該實際位址是否比該IP位址區段在該IP位址庫中對應的地名資訊詳細,當該郵寄位址資料中沒有判別結果的該IP位址區段時,則以該IP位址庫資料中的該實際位址作為對應該IP位址的該實際位址,當僅該郵寄位址資料中有該判別結果的該IP位址區段時,則以該郵寄位址資料中的該實際位址作為對應該IP位址的該實際位址,當該IP位址庫資料和該郵寄位址資料中均有該判別結果的該IP位址區段時,如果該IP位址區段對應的該實際位址比該IP位址區段在該IP位址庫中對應的該地名資訊詳細,則以該IP位址區段對應的該實際位址替換該IP位址區段在該IP位址庫中對應的該地名資訊,否則,不對該IP位 址區段在該IP位址庫中對應的該地名資訊進行任何操作。 A method for updating an Internet Protocol IP address library, comprising the steps of: obtaining a mailing address data in a transaction information database, the mailing address data comprising an IP address and address information; scanning the mailing Address data, to obtain an IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and an actual address corresponding to the IP address segment; and according to the IP address segment Corresponding to the actual address, to update the IP address library, wherein updating the IP address library comprises: determining whether the actual address corresponding to the IP address segment is at the IP address than the IP address segment The corresponding geographical name information in the library is detailed. When there is no IP address segment in the mailing address data, the actual address in the IP address database data is used as the actual IP address corresponding to the IP address. a location, when only the IP address segment of the discriminating result is included in the mailing address data, the actual address in the mailing address data is used as the actual address corresponding to the IP address. The IP address database information and the mailing address data have the judgment In the case of the IP address segment of the result, if the actual address corresponding to the IP address segment is more detailed than the location information corresponding to the IP address segment in the IP address pool, the IP address is The actual address corresponding to the address segment replaces the location information corresponding to the IP address segment in the IP address pool; otherwise, the IP address is not The address section performs any operation on the corresponding place name information in the IP address base. 如申請專利範圍第1項所述的方法,其中,該獲取位址資訊相同且IP位址連續的該郵寄位址資料對應的該IP位址區段,以及該IP位址區段對應的該實際位址,具體包括:獲取位址資訊相同且IP位址連續的該郵寄位址資料的個數;判斷該位址資訊相同且IP位址連續的該郵寄位址資料的個數是否大於預設閾值;以及如果該郵寄位址資料的個數大於該預設閾值,則將該郵寄位址資料的該IP位址合併到一個IP位址區段,並將該郵寄位址資料中的相同的位址資訊用作為該IP位址區段對應的該實際位址。 The method of claim 1, wherein the obtaining the IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and the corresponding IP address segment The actual address includes: obtaining the number of the mailing address materials with the same address information and consecutive IP addresses; determining whether the number of the mailing address materials with the same address information and consecutive IP addresses is greater than the pre-address Setting a threshold; and if the number of the mailing address data is greater than the preset threshold, merging the IP address of the mailing address data into an IP address section and the same in the mailing address data The address information is used as the actual address corresponding to the IP address segment. 如申請專利範圍第1項所述的方法,其中,該掃描郵寄位址資料之前,還包括:獲取該IP位址庫資料,該IP位址庫資料包括該IP位址和對應的該地名資訊;將該IP位址庫資料和該郵寄位址資料按照該IP位址遞增或遞減的順序排列;以及根據該IP位址庫資料的該地名資訊來過濾該郵寄位址資料,以刪除該位址資訊與對應的該IP位址庫資料的該地名資訊不匹配的該郵寄位址資料。 The method of claim 1, wherein before the scanning of the address data, the method further comprises: obtaining the IP address database data, where the IP address database material includes the IP address and the corresponding place name information. And arranging the IP address database data and the mailing address data in an order of increasing or decreasing according to the IP address; and filtering the mailing address data according to the place name information of the IP address library data to delete the bit The address information of the address information and the corresponding place name information of the corresponding IP address database data. 如申請專利範圍第3項所述的方法,其中,該地名資訊包括以下內容中的任意一項: 國家地址、省級地址、市級地址和縣級地址。 The method of claim 3, wherein the place name information includes any one of the following contents: Country address, provincial address, city address, and county address. 如申請專利範圍第1項所述的方法,其中,該根據IP位址區段對應的該實際位址,以更新該IP位址庫,具體包括:使用該IP位址區段對應的該實際位址,以替換該IP位址區段在該IP位址庫中對應的該地名資訊。 The method of claim 1, wherein the updating the IP address base according to the actual address corresponding to the IP address segment comprises: using the actual corresponding to the IP address segment a address to replace the place name information corresponding to the IP address field in the IP address pool. 一種更新IP位址庫的裝置,其特徵在於,包括:獲取模組,用以獲取交易資訊資料庫中的郵寄位址資料,該郵寄位址資料包括IP位址和位址資訊;掃描模組,用以掃描該獲取模組所獲取的郵寄位址資料,以獲取位址資訊相同且IP位址連續的該郵寄位址資料對應的IP位址區段,以及該IP位址區段對應的實際位址;以及更新模組,用以根據該掃描模組所獲取的該IP位址區段對應的該實際位址,以更新IP位址庫,其中,更新該IP位址庫包含:判斷該IP位址區段對應的該實際位址是否比該IP位址區段在該IP位址庫中對應的地名資訊詳細,當該郵寄位址資料中沒有判別結果的該IP位址區段時,則以該IP位址庫資料中的該實際位址作為對應該IP位址的該實際位址,當僅該郵寄位址資料中有該判別結果的該IP位址區段時,則以該郵寄位址資料中的該實際位址作為對應該IP位址的該實際位址, 當該IP位址庫資料和該郵寄位址資料中均有該判別結果的該IP位址區段時,如果該IP位址區段對應的該實際位址比該IP位址區段在該IP位址庫中對應的該地名資訊詳細,則以該IP位址區段對應的該實際位址替換該IP位址區段在該IP位址庫中對應的該地名資訊,否則,不對該IP位址區段在該IP位址庫中對應的該地名資訊進行任何操作。 An apparatus for updating an IP address library, comprising: an obtaining module, configured to obtain mailing address data in a transaction information database, the mailing address data includes an IP address and address information; and a scanning module And scanning the mailing address data obtained by the acquiring module to obtain an IP address segment corresponding to the mailing address data with the same address information and consecutive IP addresses, and corresponding to the IP address segment. And an update module, configured to update the IP address pool according to the actual address corresponding to the IP address segment obtained by the scan module, where updating the IP address library includes: determining Whether the actual address corresponding to the IP address segment is more detailed than the location information corresponding to the IP address segment in the IP address database, and the IP address segment having no discrimination result in the mailing address data When the actual address in the IP address database data is used as the actual address corresponding to the IP address, when only the IP address segment of the discriminating result is included in the mailing address data, The actual address in the mailing address data is used as the corresponding IP bit. The actual address, When the IP address field and the mailing address data have the IP address segment of the discriminating result, if the actual address corresponding to the IP address segment is larger than the IP address segment If the corresponding place name information in the IP address database is detailed, the place name information corresponding to the IP address field in the IP address field is replaced by the actual address corresponding to the IP address field; otherwise, the location information is not The IP address section performs any operation on the corresponding place name information in the IP address pool. 如申請專利範圍第6項所述的裝置,其中,還包括:過濾模組,用以獲取IP位址庫資料,該IP位址庫資料包括該IP位址和對應的該地名資訊;將該IP位址庫資料和該郵寄位址資料按照該IP位址遞增或遞減的順序排列,根據該IP位址庫資料的地名資訊來過濾該獲取模組獲取的該郵寄位址資料,以刪除該位址資訊與對應的該IP位址庫資料的該地名資訊不匹配的該郵寄位址資料。 The device of claim 6, further comprising: a filtering module, configured to obtain an IP address database material, where the IP address database material includes the IP address and the corresponding place name information; The IP address database data and the mailing address data are arranged in the order of increasing or decreasing the IP address, and the mailing address data obtained by the obtaining module is filtered according to the geographical name information of the IP address database data to delete the The address information of the mailing address that does not match the location information of the corresponding IP address database data. 如申請專利範圍第7項所述的裝置,其中,該過濾模組,具體用以根據該IP位址庫資料的以下地名資訊的任意一項來過濾該郵寄位址資料:以及國家地址、省級地址、市級地址和縣級地址。 The device of claim 7, wherein the filtering module is configured to filter the mailing address data according to any one of the following place name information of the IP address library data: and a national address and a province. Level address, city level address, and county level address. 如申請專利範圍第6項所述的裝置,其中,該掃描模組,具體包括:獲取子模組,用以獲取位址資訊相同且IP位址連續的該郵寄位址資料的個數;判斷子模組,用以判斷該獲取子模組所獲取的位址資訊相同且IP位址連續的該郵寄位址資料的個數是否大於預設閾值;以及 合併子模組,用以在該判斷子模組判斷該郵寄位址資料的個數大於該預設閾值時,將該郵寄位址資料的該IP位址合併到一個IP位址區段,並將該郵寄位址資料中的相同的位址資訊用作為該IP位址區段對應的該實際位址。 The device of claim 6, wherein the scanning module specifically includes: acquiring a sub-module, configured to obtain the number of the mailing address materials with the same address information and consecutive IP addresses; a sub-module, configured to determine whether the number of the mailing address data obtained by the obtaining sub-module is the same and the IP address is continuous is greater than a preset threshold; The merging sub-module is configured to merge the IP address of the mailing address data into an IP address segment when the determining sub-module determines that the number of the mailing address data is greater than the preset threshold The same address information in the mailing address data is used as the actual address corresponding to the IP address segment. 如申請專利範圍第6項所述的裝置,其中,該更新模組,具體用以使用該IP位址區段對應的該實際位址,以替換該IP位址區段在該IP位址庫中對應的該地名資訊。 The device of claim 6, wherein the update module is configured to use the actual address corresponding to the IP address segment to replace the IP address segment in the IP address pool. The corresponding place name information in the middle.
TW099113506A 2010-04-28 2010-04-28 Methods and devices for updating Internet Protocol IP address libraries TWI514832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099113506A TWI514832B (en) 2010-04-28 2010-04-28 Methods and devices for updating Internet Protocol IP address libraries

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099113506A TWI514832B (en) 2010-04-28 2010-04-28 Methods and devices for updating Internet Protocol IP address libraries

Publications (2)

Publication Number Publication Date
TW201138402A TW201138402A (en) 2011-11-01
TWI514832B true TWI514832B (en) 2015-12-21

Family

ID=46759847

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099113506A TWI514832B (en) 2010-04-28 2010-04-28 Methods and devices for updating Internet Protocol IP address libraries

Country Status (1)

Country Link
TW (1) TWI514832B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071417A1 (en) * 2003-09-29 2005-03-31 Jeffrey Taylor Method and apparatus for geolocation of a network user
US20060168164A1 (en) * 2004-11-05 2006-07-27 Microsoft Corporation Dynamic IP address update
US20090100005A1 (en) * 2007-10-12 2009-04-16 Microsoft Corporation Mapping network addresses to geographical locations
TW200926723A (en) * 2007-07-31 2009-06-16 Yahoo Inc System and method for merging internet protocol address to location data from multiple sources related applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071417A1 (en) * 2003-09-29 2005-03-31 Jeffrey Taylor Method and apparatus for geolocation of a network user
US20060168164A1 (en) * 2004-11-05 2006-07-27 Microsoft Corporation Dynamic IP address update
TW200926723A (en) * 2007-07-31 2009-06-16 Yahoo Inc System and method for merging internet protocol address to location data from multiple sources related applications
US20090100005A1 (en) * 2007-10-12 2009-04-16 Microsoft Corporation Mapping network addresses to geographical locations

Also Published As

Publication number Publication date
TW201138402A (en) 2011-11-01

Similar Documents

Publication Publication Date Title
JP5198689B2 (en) Updating IP address database based on transaction information
KR102127039B1 (en) Interactive data processing method and apparatus using same
CN104699835B (en) For determining that Webpage includes the method and device of point of interest POI data
JP6162781B2 (en) Method and apparatus for determining the location of a new point of interest
CN109040052B (en) Information processing method, terminal and computer readable medium
CN111161086A (en) Method, system, computer equipment and storage medium for inquiring business data
CN111445320B (en) Target community identification method and device, computer equipment and storage medium
CN105447035B (en) data scanning method and device
CN108734306A (en) A kind of data processing method, device, road upkeep system and storage medium
WO2020181854A1 (en) Payment anomaly detection
CN112307297B (en) User identification unification method and system based on priority rule
WO2014059868A1 (en) Update device and method for ip geographical information
CN104506394B (en) A kind of mobile Internet flow statistical method and system
CN111212082B (en) Resource value evaluation user management method based on cloud platform and related product
CN110191097B (en) Method, system, equipment and storage medium for detecting security of login page
WO2017000817A1 (en) Method and device for acquiring matching relationship between data
CN105095390B (en) Chain brand acquisition method and device based on POI data
CN104991964B (en) Year-on-year ring based on time dimension compares computational methods
TW202024964A (en) User position determination method and apparatus, device, and computer readable storage medium
CN102184201A (en) Equipment and method used for selecting recommended sequence of query sequence
TWI514832B (en) Methods and devices for updating Internet Protocol IP address libraries
CN104598598A (en) Method for evaluating relational data standard
CN105653540B (en) Method and device for processing file attribute information
CN110968584A (en) Portrait generating system, method, electronic device and readable storage medium
CN106887184B (en) Route update method and device