TWI424729B - System and method for reverse lookup of geographic information - Google Patents
System and method for reverse lookup of geographic information Download PDFInfo
- Publication number
- TWI424729B TWI424729B TW100110273A TW100110273A TWI424729B TW I424729 B TWI424729 B TW I424729B TW 100110273 A TW100110273 A TW 100110273A TW 100110273 A TW100110273 A TW 100110273A TW I424729 B TWI424729 B TW I424729B
- Authority
- TW
- Taiwan
- Prior art keywords
- user
- geographic information
- server
- query
- network address
- Prior art date
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本發明係關於一種反查地理資訊之方法與系統,更詳言之,係關於一種利用IP位址反查地理資訊之方法與系統。The present invention relates to a method and system for backtracking geographic information, and more particularly to a method and system for backtracking geographic information using an IP address.
隨著科技的進步,適地性(Location Based Service)的應用與服務日益盛行。簡單的說,適地性的應用與服務是一種隨著使用者所在的位置而提供不同需求的應用與服務給使用者,例如,在使用者透過用戶裝置,如桌上型電腦、筆記型電腦、智慧型手機等裝置瀏覽網頁時,廣告提供端會根據使用者所在的位置提供不同需求的廣告資訊於網頁以供使用者閱讀與購買。With the advancement of technology, the application and service of Location Based Service is becoming more and more popular. To put it simply, the application and service of the right place is an application and service that provides different needs with the user's location, for example, when the user uses a user device, such as a desktop computer or a notebook computer. When a smart phone or the like browses a webpage, the advertisement providing end provides advertising information of different needs according to the location of the user on the webpage for the user to read and purchase.
在目前的用戶裝置中,若用戶裝置不具備全球定位系統(Global Positioning System)的功能時,廣告提供端往往僅能透過簡單的方式利用網路位址(IP)反查到概略的地理資訊,如台北市中正區,而無法反查到精確的地理資訊,如台北市中正區信義路一段21號。此外,在網際網路服務提供者(Internet Service Provider)環境中,網際網路服務提供者業者通常會將網路位址的分發規則定義在寬頻遠端存取伺服器(Broadband Remote Access Server)等後端網路設備中,用戶裝置須透過向後端網路設備即時查詢的方式取得用戶網路位址分發資訊,但通常該類查詢回覆速度較為緩慢而往往無法即時回覆,且當在需要大量查詢即時反查地理資訊時,會遭遇到系統效能瓶頸而無法應付瞬間大量查詢要求的問題。In the current user equipment, if the user equipment does not have the function of the Global Positioning System, the advertisement provider can only use the network address (IP) to check the rough geographic information in a simple manner. For example, in Zhongzheng District of Taipei City, it is impossible to check the precise geographical information, such as No. 21, Section 1, Xinyi Road, Zhongzheng District, Taipei City. In addition, in the Internet Service Provider environment, Internet service provider usually defines the distribution rules of network addresses in Broadband Remote Access Server (Broadband Remote Access Server). In the back-end network device, the user device needs to obtain the user network address distribution information by means of instant query to the back-end network device, but usually the reply speed of the query is slow and often cannot be immediately answered, and when a large number of queries are needed When you immediately check the geographic information, you will encounter a system performance bottleneck and cannot cope with the problem of a large number of query requests.
綜上所述,在習知反查地理資訊的系統中,由於往往僅能反查到概略的地理資訊,而查詢速度亦較為緩慢,且在需要大量即時反查地理資訊時,會遭遇到系統效能瓶頸的問題。因此,極需要一種反查地理資訊之方法與系統,以增加反查地理資訊速度、確保反查地理資訊的查詢要求均能在時間逾期(timeout)前獲得回覆且能反查到更為精確的地理資訊。In summary, in the system of anti-inspection of geographic information, because the general geographic information can only be reversed, the query speed is slower, and the system will be encountered when a large number of real-time reverse geo-inspections are needed. The problem of performance bottlenecks. Therefore, there is a great need for a method and system for back-checking geographic information to increase the speed of back-checking geographic information and ensure that the query requirements for back-checking geographic information can be replied before timeout and can be more accurately detected. Geographic information.
本發明提供一種反查地理資訊之方法,係包括下列步驟:預先準備用戶地理資訊與用戶網路位址的對應關係,並將預先準備的對應關係儲存於對應資料庫;用戶裝置向伺服器提出含有用戶網路位址的查詢要求;伺服器將查詢要求儲存於佇列模組中,若記憶模組中無對應關係,則觸發對應資料庫將預先準備的對應關係儲存於記憶模組中並向網路設備發出查詢;佇列模組中的查詢要求透過記憶模組尋找用戶網路位址對應的用戶地理資訊;伺服器根據對應的用戶地理資訊產生回覆封包並向用戶裝置提出含有用戶地理資訊的回覆封包。The invention provides a method for back-checking geographic information, which comprises the following steps: pre-preparing the correspondence between the user geographic information and the user network address, and storing the pre-prepared correspondence in the corresponding database; the user device submits to the server The query request includes the user's network address; the server stores the query request in the queue module. If there is no corresponding relationship in the memory module, the corresponding database is triggered to store the corresponding prepared relationship in the memory module. Sending a query to the network device; the query in the queue module requires searching for the user geographic information corresponding to the user's network address through the memory module; the server generates a reply packet according to the corresponding user geographic information and presents the user geographic information to the user device. Reply to the packet of the information.
此外,本發明復提供一種反查地理資訊之系統,係包括:對應資料庫,係用以儲存用戶地理資訊與用戶網路位址的對應關係並設定預先準備的對應關係;伺服器,具有佇列模組與記憶模組,並連接於對應資料庫;用戶裝置,係連接於伺服器,其中,用戶裝置向伺服器提出含有用戶網路位址的查詢要求,而伺服器將查詢要求儲存於佇列模組中,若記憶模組中無對應關係,則觸發對應資料庫將預先準備的對應關係儲存於記憶模組中並向網路設備發出查詢,且佇列模組中的查詢要求透過記憶模組尋找用戶網路位址對應的用戶地理資訊,接著伺服器根據對應的用戶地理資訊產生回覆封包並向用戶裝置提出含有用戶地理資訊的回覆封包。In addition, the present invention provides a system for back-checking geographic information, which includes: a corresponding database for storing a correspondence between a user's geographic information and a user's network address and setting a corresponding prepared relationship; the server has a UI The column module and the memory module are connected to the corresponding database; the user device is connected to the server, wherein the user device submits a query request containing the user network address to the server, and the server stores the query request in the query In the queue module, if there is no corresponding relationship in the memory module, the corresponding database is triggered to store the pre-prepared correspondence in the memory module and issue a query to the network device, and the query request in the queue module is The memory module searches for user geographic information corresponding to the user's network address, and then the server generates a reply packet according to the corresponding user geographic information and presents a reply packet containing the user geographic information to the user device.
如上所述,相較於習知技術,本發明係透過伺服器中的佇列模組與記憶模組,以增加反查地理資訊的速度、確保反查地理資訊的查詢要求均能在時間逾期前獲得回覆,並因此避免當大量查詢地理資訊時系統無法負荷的問題。此外,本發明亦透過對應資料庫整合用戶地理資訊與用戶網路位址的對應關係,以提供精確的用戶地理資訊。As described above, the present invention improves the speed of back-checking geographic information and ensures that the query requirements for back-checking geographic information can be overdue by using the queue module and the memory module in the server compared with the prior art. Get a reply before, and therefore avoid the problem that the system can't load when querying a lot of geographic information. In addition, the present invention also integrates the correspondence between the user geographic information and the user's network address through the corresponding database to provide accurate user geographic information.
以下藉由特定的具體實施形態說明本發明之實施方式,熟習此技藝之人士可由本說明書所揭示之內容輕易地瞭解本發明之其他優點與功效。The other embodiments of the present invention will be readily understood by those skilled in the art from this disclosure.
請參閱第1圖,係根據本發明之反查地理資訊之系統100之實施形態所繪示的系統架構圖。Please refer to FIG. 1 , which is a system architecture diagram of an embodiment of a system 100 for reviewing geographic information according to the present invention.
如第1圖所示,本發明之反查地理資訊之系統100係架構在網路上,並包括用戶裝置110、伺服器120、對應資料庫130、用戶資料庫140與網路設備查詢裝置150。該網路可例如為網際網路、企業間網路及/或企業內網路所構成之網路,但不以此為限。As shown in FIG. 1, the system 100 for reviewing geographic information of the present invention is structured on a network, and includes a user device 110, a server 120, a corresponding database 130, a user database 140, and a network device query device 150. The network may be, for example, a network formed by the Internet, an inter-enterprise network, and/or an intranet, but is not limited thereto.
對應資料庫130係儲存用戶網路位址與用戶地理資訊的對應關係;用戶資料庫140係連接於對應資料庫130,用以儲存用戶的基礎資訊,包括用戶編號、用戶地理資訊等,或儲存可分發的網路位址池(IP pool)資訊,但不以此為限;網路設備查詢裝置150,係連接於對應資料庫130,並同時連接於如接取伺服器(Remote Access Server,RAS)160、行動網路170、靜態網路180、動態主機設定通訊協定(Dynamic Host Configuration Protocol,DHCP)伺服器190等網路架構之其中至少一者的網路設備,用以查詢網路設備中用戶編號與用戶網路位址的對應關係。The corresponding database 130 stores the correspondence between the user network address and the user geographic information; the user database 140 is connected to the corresponding database 130 for storing basic information of the user, including the user number, user geographic information, etc., or storing The network address pool (IP pool) information that can be distributed, but not limited thereto; the network device query device 150 is connected to the corresponding database 130 and simultaneously connected to the access server (Remote Access Server, a network device of at least one of a network architecture such as a RAS) 160, a mobile network 170, a static network 180, and a Dynamic Host Configuration Protocol (DHCP) server 190 for querying a network device The correspondence between the user number and the user's network address.
詳言之,對應資料庫130內的預先準備資料除了依據網路架構規劃資料產生,也可以定期輪詢或串接/側錄網路設備查詢裝置150所連接網路設備的認證封包等方式,自網路設備查詢裝置150收集已連線之網路設備中的用戶網路位址及用戶編號資料,透過用戶編號向用戶資料庫140查詢用戶地理資訊,其中,用戶地理資訊包括但不限制於地址資訊,如「台北市中正區信義路一段21號」,亦可為經緯度資訊,如「25.036210,121.523414」。此外,對應資料庫130亦可定期以輪詢方式向用戶資料庫140收集網路位址池資訊。如此一來,對應資料庫130即可根據上述資料並依實際需求預先準備用戶地理資訊與用戶網路位址的對應關係,以供伺服器120使用。In detail, the pre-prepared data in the corresponding database 130 may be periodically polled or serially connected/scheduled to the network device to query the authentication packets of the network device connected to the device 150, etc. The network device query device 150 collects the user network address and the user number data in the connected network device, and queries the user database 140 to query the user geographic information through the user number, wherein the user geographic information includes but is not limited to Address information, such as "No. 21, Section 1, Xinyi Road, Zhongzheng District, Taipei City", can also be latitude and longitude information such as "25.036210, 121.523414". In addition, the corresponding database 130 can also periodically collect the network address pool information from the user database 140 in a polling manner. In this way, the corresponding database 130 can prepare the correspondence between the user geographic information and the user network address according to the above-mentioned data and according to actual needs, for the server 120 to use.
用戶裝置110,包括但不限制於桌上型電腦、筆記型電腦、智慧型手機等,係連接至伺服器120,用以供使用者透過如網頁、應用程式介面(Application Programming Interface,API)等的方式向伺服器120提出查詢用戶網路位址對應之用戶地理資訊的查詢要求,其中,查詢要求含有欲查詢的用戶網路位址,或直接以該查詢要求來源的網路位址為查詢對象。此外,用戶裝置110可用以接收自伺服器120的回覆封包,其中,回覆封包含有用戶地理資訊。The user device 110, including but not limited to a desktop computer, a notebook computer, a smart phone, etc., is connected to the server 120 for the user to pass through, for example, a web page, an application programming interface (API), etc. The method of querying the server 120 for querying the geographic information of the user corresponding to the user's network address, wherein the query request contains the user's network address to be queried, or directly uses the network address of the source of the query as a query. Object. In addition, user device 110 can be used to receive a reply packet from server 120, wherein the reply packet contains user geographic information.
伺服器120係連接於用戶裝置110與對應資料庫130,並具有佇列模組122與記憶模組124,用以接收自用戶裝置110之含有用戶網路位址的查詢要求,將查詢要求儲存於佇列模組122中,並檢查記憶模組124中有無對應關係。若記憶模組124中無對應關係,則觸發對應資料庫130將預先準備的對應關係儲存於記憶模組124中並透過網路設備查詢裝置150向網路設備發出查詢,接著在記憶模組124中尋找用戶網路位址對應的用戶地理資訊,且根據對應的用戶地理資訊產生回覆封包,最後向用戶裝置110提出含有用戶地理資訊的回覆封包。反之,若記憶模組124中有對應關係,則在記憶模組124中尋找用戶網路位址對應的用戶地理資訊,且根據對應的用戶地理資訊產生回覆封包,最後向用戶裝置110提出含有用戶地理資訊的回覆封包。此外,佇列模組122可具有複數個佇列,用以將具有相同用戶網路位址的查詢要求儲存於佇列模組122之相同查詢網路位址的佇列中(將於以下參照第5A與5B圖詳細說明)。The server 120 is connected to the user device 110 and the corresponding database 130, and has a queue module 122 and a memory module 124 for receiving the query request from the user device 110 containing the user network address, and storing the query request. In the array module 122, the presence or absence of a correspondence between the memory modules 124 is checked. If there is no corresponding relationship in the memory module 124, the corresponding database 130 is triggered to store the pre-prepared correspondence in the memory module 124 and send a query to the network device through the network device query device 150, and then in the memory module 124. The user geographic information corresponding to the user network address is searched for, and the reply packet is generated according to the corresponding user geographic information, and finally the reply packet containing the user geographic information is presented to the user device 110. On the other hand, if there is a corresponding relationship in the memory module 124, the user profile information corresponding to the user network address is searched in the memory module 124, and the reply packet is generated according to the corresponding user geographic information, and finally the user device 110 is presented with the user. Reply to the packet of geographic information. In addition, the queue module 122 can have a plurality of queues for storing query requests having the same user network address in the queue of the same query network address of the queue module 122 (refer to the following Details of Figures 5A and 5B).
詳言之,當伺服器120自用戶裝置110接收到查詢要求時,會在相同時間週期內將具有相同用戶網路位址的查詢要求儲存在佇列模組122之相同佇列中,並僅由相同佇列的第一個查詢要求觸發查詢動作,藉以省略其他具有相同用戶網路位址的查詢要求的查詢動作,增加反查地理資訊的速度。該查詢動作會先檢查記憶模組124中有無該用戶網路位址與用戶地理資訊之對應關係,若無,則對應資料庫130會將預先準備好的對應關係儲存於記憶模組124中。接著,若記憶模組124內的該對應關係的用戶地理資訊並非精確的資料,則由對應資料庫130透過網路設備查詢裝置150向網路設備發出查詢以取得精確的資料並儲存於記憶模組124中。藉由提供預先準備好的對應關係,可避免網路設備查詢裝置150返回查詢結果的時間過久,降低系統效能。此外,這些預先準備的對應關係均是以樹狀資料結構儲存於記憶模組124中,以便伺服器120查詢時能利用該樹狀資料結構快速尋找到用戶網路位址對應的用戶地理資訊,藉此,可增加反查地理資訊的速度。最後,伺服器120根據對應的用戶地理資訊產生回覆封包並傳送至用戶裝置110。In detail, when the server 120 receives the query request from the user device 110, the query request having the same user network address is stored in the same queue of the queue module 122 in the same time period, and only The first query request of the same queue triggers the query action, thereby omitting other query actions with the same user network address query requirements, and increasing the speed of checking the geographic information. The query operation first checks whether there is a correspondence between the user network address and the user geographic information in the memory module 124. If not, the corresponding database 130 stores the pre-prepared correspondence in the memory module 124. Then, if the user geographic information of the corresponding relationship in the memory module 124 is not accurate data, the corresponding database 130 sends a query to the network device through the network device query device 150 to obtain accurate data and store it in the memory module. Group 124. By providing a pre-prepared correspondence, the network device querying device 150 can be prevented from returning the query result for a long time, thereby reducing system performance. In addition, the pre-prepared correspondences are stored in the memory module 124 in a tree structure, so that the server 120 can quickly find the user geographic information corresponding to the user's network address by using the tree data structure. In this way, the speed of back-checking geographic information can be increased. Finally, the server 120 generates a reply packet according to the corresponding user geographic information and transmits it to the user device 110.
進一步而言,在伺服器120利用樹狀資料結構尋找用戶網路位址對應的用戶地理資訊的過程中,當查詢要求的時間逾期前,網路設備回覆用戶網路位址對應之精確的用戶地理資訊,如「台北市中正區信義路一段21號」,則伺服器120將精確的用戶地理資訊的對應關係儲存於記憶模組124中,並通知在相同佇列中的其他尚未進行尋找用戶地理資訊的查詢要求,透過伺服器120產生各自的回覆封包並傳送至各自的用戶裝置110,並將所有已回覆的查詢要求自該佇列中移除,藉此,減少具有相同網路位址的查詢要求的查詢次數,以增加反查地理資訊的速度。Further, in the process of the server 120 using the tree data structure to find the user geographic information corresponding to the user network address, the network device replies to the accurate user corresponding to the user network address before the time required by the query expires. Geographic information, such as "No. 21, Section 1, Xinyi Road, Zhongzheng District, Taipei City", the server 120 stores the correspondence of the accurate user geographic information in the memory module 124, and notifies other users in the same queue that the user has not yet been searched. The geo-information query request generates respective reply packets through the server 120 and transmits them to the respective user devices 110, and removes all the replied query requests from the queue, thereby reducing the same network address. The number of queries requested by the query to increase the speed of the anti-checking of geographic information.
此外,當查詢要求的時間逾期卻仍未尋找到用戶網路位址對應之精確的用戶地理資訊時,則伺服器120將目前已有的概略資料交由查詢要求,透過伺服器120產生回覆封包並傳送至用戶裝置110,並將該查詢要求自該佇列中移除並儲存於另一佇列,故可藉由快速回應查詢以避免降低系統效能。需補充說明者,此時該佇列中的第一個查詢要求繼承先前的查詢動作,並重複前述的處理程序,直到該佇列的各個查詢要求均完成回覆各自的用戶裝置110。In addition, when the time required for the query is overdue and the exact user geographic information corresponding to the user's network address is not found, the server 120 submits the current summary data to the query request, and generates a reply packet through the server 120. And transmitted to the user device 110, and the query request is removed from the queue and stored in another queue, so that the system performance can be avoided by quickly responding to the query. In addition, the first query in the queue is required to inherit the previous query action, and the foregoing processing procedure is repeated until the respective query requests of the queue complete the reply to the respective user device 110.
此外,當儲存於記憶模組124中的對應關係許久未被使用,則伺服器120可透過時間逾期機制將對應關係刪除。或者,當用戶中斷與網路裝置查詢裝置150所連接之網路設備的連線時,則伺服器120可透過事件觸發機制將該對應關係刪除。Moreover, when the correspondence stored in the memory module 124 has not been used for a long time, the server 120 can delete the correspondence through the time overdue mechanism. Alternatively, when the user disconnects the network device connected to the network device query device 150, the server 120 may delete the correspondence through the event trigger mechanism.
藉由上述系統,係利用事先準備用戶對應資料、查詢要求佇列模組、即時查詢更新資訊、自動更新資訊等機制,即使在面臨超過網路設備即時查詢負荷量的情況下,也能在查詢時間逾期內回應最適合的資訊,確保整體服務的流暢度。With the above system, the system uses the user-prepared data in advance, the query request queue module, the instant query update information, and the automatic update information. Even in the case of facing the online query load of the network device, the query can be performed. Time to respond to the most appropriate information over time to ensure the smoothness of the overall service.
要特別說明的是,雖然在本實施形態中本發明之反查地理資訊之系統100僅具有一個伺服器120。然而在不同實施形態中,本發明之反查地理資訊之系統100可具有複數個伺服器120,在此情況下,用戶裝置110可利用習知的選擇方式選擇與複數個伺服器120之其中一個伺服器進行傳送查詢要求與接收回覆封包。It is to be particularly noted that although in the present embodiment, the system 100 for reviewing geographic information of the present invention has only one server 120. However, in various embodiments, the system 100 for reviewing geographic information of the present invention may have a plurality of servers 120. In this case, the user device 110 may select one of the plurality of servers 120 using a conventional selection method. The server performs the transmission query request and receives the reply packet.
請參閱第2圖(請同時配合參閱第1圖),係透過所述本發明之反查地理資訊系統,所執行之本發明之反查地理資訊之方法200的流程圖,其中,用戶裝置110、伺服器120、對應資料庫130等係以組態方式進行下列步驟。Please refer to FIG. 2 (please also refer to FIG. 1), which is a flowchart of a method 200 for reviewing geographic information of the present invention performed by the inverse geo-information system of the present invention, wherein the user device 110 The server 120, the corresponding database 130, etc. perform the following steps in a configuration manner.
如第2圖所示,在步驟S210中,令對應資料庫130儲存用戶地理資訊與用戶網路位址的對應關係並設定預先準備的對應關係。接著進至步驟S220。As shown in FIG. 2, in step S210, the corresponding database 130 stores the correspondence between the user geographic information and the user's network address and sets a correspondence prepared in advance. Then it proceeds to step S220.
此外,對應資料庫130可定期透過網路設備查詢裝置150向網路設備收集已連線用戶網路位址與用戶編號,並透過用戶編號向用戶資料庫140查詢用戶地理資訊,以預先產生用戶地理資訊與用戶網路位址的對應關係備用。In addition, the corresponding database 130 can periodically collect the connected user network address and the user number from the network device through the network device querying device 150, and query the user database 140 for the user geographic information through the user number to pre-generate the user. The correspondence between geographic information and the user's network address is reserved.
再者,對應資料庫130復可定期向用戶資料庫140收集網路位址池資訊,以預先產生用戶地理資訊與用戶網路位址的對應關係。Moreover, the corresponding database 130 can periodically collect the network address pool information from the user database 140 to pre-generate the correspondence between the user geographic information and the user network address.
在步驟S220中,令用戶裝置110向伺服器120提出查詢要求,其中,查詢要求中含有欲查詢之用戶網路位址。接著進至步驟S230。In step S220, the user device 110 is caused to make a query request to the server 120, wherein the query request contains the user network address to be queried. Then it proceeds to step S230.
在步驟S230中,令伺服器120將查詢要求儲存於佇列模組122中,並檢查記憶模組124中有無對應關係。若記憶模組124中無對應關係,則進至步驟S232;反之,則進至步驟S240。In step S230, the server 120 is caused to store the query request in the queue module 122, and check whether there is a correspondence between the memory modules 124. If there is no correspondence in the memory module 124, the process goes to step S232; otherwise, the process goes to step S240.
此外,伺服器120可在相同時間週期內將具有相同用戶網路位址的查詢要求儲存於該佇列模組122之相同佇列中。In addition, the server 120 can store query requests having the same user network address in the same queue of the queue module 122 during the same time period.
在步驟S232中,觸發對應資料庫130將預先準備的對應關係儲存於記憶模組124中,並進至步驟S235。In step S232, the trigger corresponding database 130 stores the correspondence relationship prepared in advance in the memory module 124, and proceeds to step S235.
在步驟S235中,對應資料庫130透過網路設備查詢裝置150向網路設備發出查詢,以取得該用戶網路位址與用戶編號的對應關係,再透過用戶資料庫140取得該用戶編號的用戶地理資訊,以產生該用戶地理資訊與該用戶網路位址的對應關係,並存入該記憶模組124中,接著進至步驟S240。In step S235, the corresponding database 130 sends a query to the network device through the network device querying device 150 to obtain the corresponding relationship between the user network address and the user number, and then obtain the user number through the user database 140. The geographic information is generated to generate a correspondence between the user geographic information and the user network address, and is stored in the memory module 124, and then proceeds to step S240.
在步驟S240中,令佇列模組122中的查詢要求透過記憶模組124尋找用戶網路位址對應的用戶地理資訊,接著進至步驟S250。In step S240, the query request in the queue module 122 is made to search for the user geographic information corresponding to the user network address through the memory module 124, and then proceeds to step S250.
於本實施形態中,伺服器120可利用樹狀資料結構尋找用戶網路位址對應的用戶地理資訊。In this embodiment, the server 120 can use the tree data structure to find the user geographic information corresponding to the user network address.
在步驟S250中,令伺服器120根據對應的用戶地理資訊產生回覆封包,接著進至步驟S260。In step S250, the server 120 is caused to generate a reply packet based on the corresponding user geographic information, and then proceeds to step S260.
在步驟S260中,令伺服器120向用戶裝置110提出回覆封包,其中,回覆封包中含有用戶地理資訊。In step S260, the server 120 is caused to present a reply packet to the user device 110, wherein the reply packet contains user geographic information.
以下請參照第3至5B圖,其係分別繪示本發明之反查地理資訊之方法與系統,於實際操作時的示意圖。Please refer to FIG. 3 to FIG. 5B , which are schematic diagrams showing the method and system for reviewing geographic information of the present invention in actual operation.
承前所述,於本實施形態中,本發明之反查地理資訊之方法與系統,係應用於當使用者透過用戶裝置瀏覽網頁時,廣告提供端欲根據使用者所在的位置提供不同需求的廣告資訊於網頁中的情形,但應用的情形並不以此為限。As described above, in the present embodiment, the method and system for reviewing geographic information of the present invention are applied to an advertisement providing a different demand according to the location of the user when the user browses the webpage through the user device. The information is in the situation on the webpage, but the application is not limited to this.
首先,對應資料庫130收集並儲存用戶網路位址與用戶地理資訊的對應關係並設定預先準備的對應關係,如第3圖所示之用戶網路位址與用戶地理資訊的對應關係表300。First, the corresponding database 130 collects and stores the correspondence between the user network address and the user geographic information and sets a corresponding prepared relationship, such as the correspondence between the user network address and the user geographic information shown in FIG. .
其次,當使用者透過用戶裝置110瀏覽網頁時,用戶裝置110向伺服器120提出含有用戶網路位址,如10.90.1.5的查詢要求;伺服器120將查詢要求儲存在佇列模組122中,且可如第4圖所示之樹狀資料結構400將預先準備的對應關係儲存於記憶模組124中。Next, when the user browses the webpage through the user device 110, the user device 110 submits a query request to the server 120 that includes the user's network address, such as 10.90.1.5; the server 120 stores the query request in the queue module 122. And the tree data structure 400 shown in FIG. 4 stores the correspondence prepared in advance in the memory module 124.
接著,伺服器120將佇列模組122中的查詢要求透過記憶模組124尋找用戶網路位址對應的用戶地理資訊,如台北市中正區信義路一段21號;並根據對應的用戶地理資訊產生回覆封包,並向用戶裝置110提出含有用戶地理資訊的回覆封包,藉此,廣告提供端可根據回覆封包中的用戶地理資訊提供不同需求的廣告資訊於網頁中。Then, the server 120 searches the query request in the queue module 122 for the user geographic information corresponding to the user's network address through the memory module 124, such as No. 21, Section 1, Xinyi Road, Zhongzheng District, Taipei City; and according to the corresponding user geographic information. The reply packet is generated, and the reply packet containing the user geographic information is presented to the user device 110, whereby the advertisement providing end can provide the advertisement information of different requirements according to the user geographic information in the reply packet in the webpage.
請參閱第5A與5B圖,係用以說明在佇列模組122中複數個佇列的複數個查詢要求。Please refer to FIGS. 5A and 5B for illustrating a plurality of query requests for a plurality of queues in the array module 122.
在第5A圖中,第一佇列q1 ,具有三個相同網路位址,如10.90.1.5,的查詢要求q11 、q12 、q13 。當查詢要求q11 在時間逾期前利用如第4圖所述的樹狀資料結構尋找到該用戶網路位址對應之精確的用戶地理資訊,如台北市中正區信義路一段21號時,伺服器120會將該精確的用戶地理資訊通知其他尚未進行尋找的查詢要求q12 、q13 。In Figure 5A, the first queue q 1 , with three identical network addresses, such as 10.90.1.5, requires q 11 , q 12 , q 13 . When the query requires q 11 to use the tree data structure as described in Figure 4 to find the accurate user geographic information corresponding to the user's network address before the time expires, such as the 21st section of Xinyi Road, Zhongzheng District, Taipei City, the servo The device 120 notifies the other user query information q 12 , q 13 that the search has not yet been made.
在第5A圖中,第二佇列q2 ,具有三個相同網路位址,如10.90.2.5,的查詢要求q21 、q22 、q23 。當查詢要求q21 在時間逾期且仍未能利用如第4圖所述的樹狀資料結構尋找到該用戶網路位址對應之精確的用戶地理資訊時,伺服器120將目前尋找到該用戶網路位址對應之概略的用戶地理資訊,如台北市大安區時,伺服器120會將該概略的用戶地理資訊通知查詢要求q21 並將查詢要求q21 自佇列q2 移除並儲存於q2plus ,且由查詢要求q22 繼承先前查詢(如第5B圖所示)。In Figure 5A, the second queue q 2 , with three identical network addresses, such as 10.90.2.5, requires q 21 , q 22 , q 23 . When the query asks q 21 to be overdue and still fails to use the tree data structure as described in FIG. 4 to find accurate user geographic information corresponding to the user's network address, the server 120 will currently find the user. When the network address corresponds to the rough user geographic information, such as Daan District of Taipei City, the server 120 notifies the query user request q 21 of the summary user geographic information and removes and stores the query request q 21 from the queue q 2 . At q 2plus , and the previous query is inherited by the query request q 22 (as shown in Figure 5B).
接著,當查詢要求q22 尋找到該用戶網路位址對應之精確的用戶地理資訊,如台北市大安區信義路三段143號時,伺服器120將該精確的用戶地理資訊通知在其他尚未進行尋找用戶地理資訊的查詢要求q23 ,而伺服器120可將該精確的用戶地理資訊通知在佇列q2plus 中的已進行尋找用戶地理資訊的查詢要求q21 以進行資料修正並自佇列中移除,且伺服器120將該精確的用戶地理資訊的對應關係儲存於記憶模組124中。Then, when the query asks q 22 to find the exact user geographic information corresponding to the user's network address, such as No. 143, Section 3, Xinyi Road, Daan District, Taipei, the server 120 notifies the other user of the accurate user geographic information yet. The query request q 23 for searching for the user's geographic information is performed, and the server 120 can notify the accurate user geographic information of the query request q 21 in the queue q 2plus for searching the user's geographic information for data correction and self-provisioning. The information is removed, and the server 120 stores the correspondence of the accurate user geographic information in the memory module 124.
綜上所述,本發明係透過伺服器中的佇列模組與記憶模組,以增加反查地理資訊的搜尋及回覆速度、確保反查地理資訊的查詢要求均能在時間逾期前獲得回覆,並因此避免當大量查詢地理資訊時系統無法負荷的問題。此外,本發明亦透過對應資料庫整合用戶地理資訊與用戶網路位址的對應關係,以提供精確的用戶地理資訊。In summary, the present invention is able to increase the search and reply speed of geo-information through the array module and the memory module in the server, and ensure that the query request for checking the geo-information can be received before the time expires. And therefore avoid the problem that the system can't load when a large number of geo-information queries. In addition, the present invention also integrates the correspondence between the user geographic information and the user's network address through the corresponding database to provide accurate user geographic information.
上述實施形態僅例示性說明本發明之原理及其功效,而非用於限制本發明,任何熟習此項技藝之人士均可在不違背本發明之精神及範疇下,對上述實施形態進行修飾與改變。此外,在上述實施形態中之元件的數量僅為例示性說明,亦非用於限制本發明。因此,本發明之權利保護範圍,應如後述之申請專利範圍所列。The above-described embodiments are merely illustrative of the principles of the present invention and the advantages thereof, and are not intended to limit the scope of the present invention, and those skilled in the art can modify the above-described embodiments without departing from the spirit and scope of the invention. change. In addition, the number of elements in the above embodiments is merely illustrative and is not intended to limit the present invention. Therefore, the scope of protection of the present invention should be as set forth in the scope of the claims described below.
100...反查地理資訊之系統100. . . Anti-inspection of geographic information system
110...用戶裝置110. . . User device
120...伺服器120. . . server
122...佇列模組122. . . Queue module
124...記憶模組124. . . Memory module
130...對應資料庫130. . . Corresponding database
140...用戶資料庫140. . . User database
150...網路設備查詢裝置150. . . Network device inquiry device
160...接取伺服器160. . . Access server
170...行動網路170. . . Mobile network
180...靜態網路180. . . Static network
190...動態主機設定通訊協定伺服器190. . . Dynamic host setting protocol server
200...反查地理資訊之方法200. . . Method of reviewing geographic information
S210、S220、S230、S232、S235、S240、S250、S260...步驟S210, S220, S230, S232, S235, S240, S250, S260. . . step
300...對應關係表300. . . Correspondence table
400...樹狀資料結構400. . . Tree data structure
q1 、q2 、q2plus ...佇列q 1 , q 2 , q 2plus . . . Queue
q11 、q12 、q13 、q21 、q22 、q23 ...查詢要求q 11 , q 12 , q 13 , q 21 , q 22 , q 23 . . . Query request
第1圖係根據本發明之反查地理資訊之系統之實施形態的系統架構圖;1 is a system architecture diagram of an embodiment of a system for retrieving geographic information according to the present invention;
第2圖係根據本發明之反查地理資訊之方法之實施形態的流程圖;2 is a flow chart of an embodiment of a method for backtracking geographic information according to the present invention;
第3圖係用戶網路位址與用戶地理資訊的對應關係表;Figure 3 is a correspondence table between the user network address and the user geographic information;
第4圖係對應關係的樹狀資料結構;以及Figure 4 is a tree structure of correspondence; and
第5A與5B圖係以例示方式說明在佇列模組中兩個佇列的複數個查詢要求。Figures 5A and 5B illustrate, by way of illustration, a plurality of query requirements for two queues in a queue module.
100...反查地理資訊之系統100. . . Anti-inspection of geographic information system
110...用戶裝置110. . . User device
120...伺服器120. . . server
122...佇列模組122. . . Queue module
124...記憶模組124. . . Memory module
130...對應資料庫130. . . Corresponding database
140...用戶資料庫140. . . User database
150...網路設備查詢裝置150. . . Network device inquiry device
160...接取伺服器160. . . Access server
170...行動網路170. . . Mobile network
180...靜態網路180. . . Static network
190...動態主機設定通訊協定伺服器190. . . Dynamic host setting protocol server
Claims (22)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100110273A TWI424729B (en) | 2011-03-25 | 2011-03-25 | System and method for reverse lookup of geographic information |
CN201110120310.3A CN102694835B (en) | 2011-03-25 | 2011-05-06 | Method and system for reverse checking geographic information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100110273A TWI424729B (en) | 2011-03-25 | 2011-03-25 | System and method for reverse lookup of geographic information |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201240417A TW201240417A (en) | 2012-10-01 |
TWI424729B true TWI424729B (en) | 2014-01-21 |
Family
ID=46860121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100110273A TWI424729B (en) | 2011-03-25 | 2011-03-25 | System and method for reverse lookup of geographic information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102694835B (en) |
TW (1) | TWI424729B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI301253B (en) * | 2005-09-21 | 2008-09-21 | Inventec Appliances Corp | Geographic information of transmission method |
US7542831B2 (en) * | 2004-02-27 | 2009-06-02 | Ansaldo Sts Usa, Inc. | Geographic information system and method for monitoring dynamic train positions |
TW201008331A (en) * | 2008-07-11 | 2010-02-16 | Qualcomm Inc | Apparatus and methods for associating a location fix having a quality of service with an event occuring on a wireless device |
TW201030540A (en) * | 2009-02-11 | 2010-08-16 | Intumit Inc L | System for conducting a geographic-oriented keyword advertisement recommendation and method of the same |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001109760A (en) * | 1999-10-06 | 2001-04-20 | Toshiba Corp | Device for displaying geographical information and storage medium with program executing the same stored therein |
US6665715B1 (en) * | 2000-04-03 | 2003-12-16 | Infosplit Inc | Method and systems for locating geographical locations of online users |
CN101388014A (en) * | 2007-09-14 | 2009-03-18 | 英业达股份有限公司 | Apparatus, system for displaying target data relevant to user's location and method thereof |
-
2011
- 2011-03-25 TW TW100110273A patent/TWI424729B/en not_active IP Right Cessation
- 2011-05-06 CN CN201110120310.3A patent/CN102694835B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7542831B2 (en) * | 2004-02-27 | 2009-06-02 | Ansaldo Sts Usa, Inc. | Geographic information system and method for monitoring dynamic train positions |
TWI301253B (en) * | 2005-09-21 | 2008-09-21 | Inventec Appliances Corp | Geographic information of transmission method |
TW201008331A (en) * | 2008-07-11 | 2010-02-16 | Qualcomm Inc | Apparatus and methods for associating a location fix having a quality of service with an event occuring on a wireless device |
TW201030540A (en) * | 2009-02-11 | 2010-08-16 | Intumit Inc L | System for conducting a geographic-oriented keyword advertisement recommendation and method of the same |
Also Published As
Publication number | Publication date |
---|---|
CN102694835B (en) | 2015-05-20 |
TW201240417A (en) | 2012-10-01 |
CN102694835A (en) | 2012-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9525659B1 (en) | Request routing utilizing point of presence load information | |
US9444759B2 (en) | Service provider registration by a content broker | |
US9712457B2 (en) | Server directed client originated search aggregator | |
US10938776B2 (en) | Apparatus and method for correlating addresses of different internet protocol versions | |
WO2019165665A1 (en) | Domain name resolution method, server and system | |
JP5974079B2 (en) | Global traffic management using changed hostnames | |
JP2013538410A (en) | Request routing in network environments | |
US10693834B2 (en) | Client subnet efficiency by equivalence class aggregation | |
CN104202360A (en) | Webpage access method, device and router | |
US11949744B2 (en) | Enhanced online privacy | |
CN108476146A (en) | The method and apparatus for carrying out real-time traffic guiding using active user monitoring data | |
JP2016527817A (en) | Method and system for associating an Internet Protocol (IP) address, a Media Access Control (MAC) address, and a location for a user device | |
CN103281409A (en) | Domain name resolution method of mobile internet and DNS server based on TCP protocol | |
GB2500936A (en) | Identifying the physical location of internet service providers using geo-location data provided by devices requesting data | |
US20170289243A1 (en) | Domain name resolution method and electronic device | |
CN112954089B (en) | Method, device, equipment and storage medium for analyzing data | |
CN102045403A (en) | Method, device and system for processing data of distributed network | |
CN105340243B (en) | Method, system and the medium being present on network for detecting digital media device | |
WO2017096888A1 (en) | Method and device for implementing domain name system | |
CN109788050A (en) | A kind of acquisition source station IP address method, system, electronic equipment and medium | |
WO2018032705A1 (en) | Method and device for providing wireless access point information packet | |
TWI424729B (en) | System and method for reverse lookup of geographic information | |
CN105009122A (en) | System and method to allow a domain name server to process a natural language query and determine context | |
CN111221781B (en) | Data searching method, device, electronic equipment and system | |
US20150227534A1 (en) | Method for processing data query using information-centric network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |