CN105376342A - Device and method for determining user partition in internet and server using device - Google Patents
Device and method for determining user partition in internet and server using device Download PDFInfo
- Publication number
- CN105376342A CN105376342A CN201510655187.3A CN201510655187A CN105376342A CN 105376342 A CN105376342 A CN 105376342A CN 201510655187 A CN201510655187 A CN 201510655187A CN 105376342 A CN105376342 A CN 105376342A
- Authority
- CN
- China
- Prior art keywords
- server
- user
- address
- route
- property
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/69—Types of network addresses using geographic information, e.g. room number
Abstract
The invention provides a device and a method for determining user partition in an internet and a server using the device. The device for determining user partition in the internet comprises a mapping relation module which is used for mapping IP addresses with servers; a user route marking module, wherein a user route identifier is used to mark server attributes corresponding to a registered IP address according to the IP address registered by a user, and the server attributes are used as server attributes of a server of a user route; a user route identification inspection module, wherein the user route identification inspection module is configured in such a manner that by analyzing access records, common IP addresses of the user are determined, server attributes corresponding to the determined common IP addresses are compared with the marked server attributes, and whether the server of the user route needs to be changed is judged; and a user route identification changing module, wherein under the condition that the server of the user route needs to be changed, the server attributes of the server of the user route is updated to the server attributes corresponding to the determined common IP addresses, the user route identifier is used for marking the updated server attributes, and a server changing message is generated and sent.
Description
Technical field
The present invention relates to Internet technology, particularly, relate to a kind of apparatus and method for determining user partition in the Internet and adopt the server of described device.
Background technology
Along with the development of Internet industry, it is even global that some large-scale websites have expanded to the whole nation, and increasing user is at this large-scale website of use.When user distribution in different geographical time, network quality may be bad or unstable: in the network delay in domestic north and south may have 40-100 millisecond, Chinese user and other countries' network delay likely reach 1 second.
In order to make user's accessing Internet quickly, content distributing network (CDN) can utilize the functional module such as domain name system (DNS) service, overall load, contents distribution, scheduling of intelligence, by the not variable of the overall situation or static data content (such as, resource pattern file, news information etc.) be placed on from the nearest caching server of user distance, directly respond user by caching server to ask, thus solve the problem that user accesses the speed of this categorical data.But, the mutability that user is produced and the individuation data that data volume is larger (such as, comment, mail etc.), CDN technology cannot be adopted.
In addition, DNS also can independently as the solution for improving user's access speed.Internet domain name is associated with server ip by DNS, and multiple server ip address can correspond to a domain name.Intelligent DNS system knows User IP according to the DNS request of user, returns the server node nearest with user according to known User IP.Like this, the access of user to the Internet can be accelerated, thus provide and serve faster.But, because this technology depends on the IP (that is, the geographical position of user) of user, when user changes geographical position, DNS system may return different server nodes to user, and the individuation data causing user to produce is stored in from the server away from user.
Therefore, need a kind of apparatus and method for determining user partition in the Internet and adopt the server of described device, described device can carry out correct subregion to user, make the change according to user's common IP address, adjustment user partition, thus enables users accesses the server of subregion nearby.
Summary of the invention
A kind of apparatus and method for determining user partition in the Internet of the present invention and adopt the server of described device, described device can carry out correct subregion to user, make the change according to user's common IP address, adjustment user partition, thus enables users accesses the server of subregion nearby.
According to an aspect of the present invention, providing a kind of device for determining user partition in the Internet, can comprise: mapping relations module, IP address is mapped mutually with server; User's route mark module, according to the IP address of user's registration, marks the server property corresponding with the IP address of registering, as the server property of the server of user's route with user's Route Distinguisher; User's Route Distinguisher polling module, be configured to pass analysis Visitor Logs, determine the common IP address of described user, and by the server property corresponding with determined common IP address and the server property marked being compared, judge whether the server needing to change user's route; And user's Route Distinguisher changes module, when determining the server needing to change user's route, the server property of the server of user's route is updated to the server property corresponding with determined common IP address, carry out the server property after flag update with user's Route Distinguisher, generate and send the message changing server.
Described common IP address can refer to that the access frequency conducted interviews from described IP address within a period of time exceedes the IP address of preset frequency, or the IP address corresponding with the primary geographical address that user inputs.
Described user's Route Distinguisher polling module can be configured to: at set intervals, judges whether to need the step of the server changing user's route described in execution, the wherein said time be arranged by user or specify at random; Or when the quantity of server or density change, after mapping relations module upgrades the mapping relations of IP address and server, described in execution, judge whether the step of the server needing change user route.
Described user's Route Distinguisher polling module can be configured to: when the server property corresponding with determined common IP address is different from marked server property, determines the server needing to change user's route; And when user change its primary geographical address cause changing common IP address time, determine to need the server changing user's route.
Described user's Route Distinguisher changes module and can be configured to: when the server property of the server by user's route is updated to the server property corresponding with determined common IP address, the record final updating time.
The message of described change server can comprise former server property, new server property and final updating time.
According to a further aspect in the invention, providing a kind of method for determining user partition, can comprise: the IP of user is mapped mutually with server; IP address when registering according to user, marks the server property corresponding with registering IP address with user's Route Distinguisher; By analyzing Visitor Logs, determine the common IP address of described user, and by the server property corresponding with determined common IP address and the server property marked being compared, judge whether the server needing to change user's route; When determining the server needing to change user's route, update server attribute, marks new server property with user's Route Distinguisher, generates and sends the message changing server.
Described method can also comprise: while update server attribute, record the final updating time.
According to a further aspect in the invention, provide a kind of server, can comprise: according to the device for determining user partition in the Internet of the present invention; User's Route Distinguisher enquiry module, when receiving user and asking, by searching according to the device for determining user partition in the Internet of the present invention, determines corresponding server property; User's routing module, the corresponding server property inquired and current server attribute are compared, if the server property of the response inquired is different from current server attribute, then by described user's request forward on corresponding server, otherwise perform described user request; And migration of subscriber data module, when from according to of the present invention for determine in the Internet the device of user partition receive change the message of server time, by the user data of described user from former server migration to new server.
Accompanying drawing explanation
By reference to the accompanying drawings, according to following detailed description, the above-mentioned and other side of particular example embodiment of the present invention, feature and advantage will be clearer, in accompanying drawing:
Fig. 1 shows the block diagram of the device for determining user partition in the Internet according to illustrated embodiments of the invention;
Fig. 2 shows the flow chart of the method for determining user partition in the Internet according to illustrated embodiments of the invention; And
Fig. 3 shows the block diagram according to the above-mentioned server for determining user partition in the Internet of the employing of illustrated embodiments of the invention.
Embodiment
Implement below with reference to drawings describing example of the present invention.The invention provides a kind of apparatus and method for determining user partition in the Internet and adopt the server of described device, described device can carry out correct subregion to user, make the change according to user's common IP address, adjustment user partition, thus enables users accesses the server of subregion nearby.
Fig. 1 shows the block diagram of the device 100 for determining user partition in the Internet according to illustrated embodiments of the invention, and Fig. 2 shows the flow chart of the method 200 for determining user partition in the Internet according to illustrated embodiments of the invention.Device 100 and its method of operation 200 for determining user partition in the Internet according to illustrated embodiments of the invention is described in detail below in conjunction with Fig. 1 and Fig. 2.As can be seen from Figure 1, the block diagram for the device 100 determining user partition in the Internet can comprise: mapping relations module 101, user's route mark module 103, user's Route Distinguisher polling module 105 and user's Route Distinguisher change module 107.
First, in step 201, by mapping relations module 101, IP address is mapped mutually with server, to search the positional information described in user.That is, position (country, province, city etc.) are mapped with server room.The careful degree of position, can decide according to the quantity of server room, density, if be such as BeiJing, China, Liang Ge server room, Guangzhou, can by careful for position to province, the province of North of Yangtze River is mapped to server room, Beijing, by the province on the south the Changjiang river, be mapped to server room, Guangzhou.It should be noted that the distribution condition of above-mentioned server room is only the example mapped, reality can according to different province to the network speed etc. of these two server rooms because usually adjusting mapping relations.
In step 202, the IP address of being registered according to user by user's route mark module 103, marks the server property corresponding with the IP address of registering, as the server property of the server of user's route with user's Route Distinguisher.Such as, when user registers, IP is the IP of Beijing, then mark the server property corresponding with Pekinese's server with user's Route Distinguisher.
Then, in step 203, Visitor Logs is analyzed by user's Route Distinguisher polling module 105, determine the common IP address of described user, wherein common IP address refers to that the access frequency conducted interviews from described IP address within a period of time exceedes the IP address of preset frequency, or the IP address corresponding with the primary geographical address that user inputs.Such as, when by analyzing Visitor Logs, determining that the access frequency that user conducts interviews from IP address, Shanghai within the scheduled time (such as, in half a year) exceedes preset frequency, then IP address, this Shanghai being defined as the common IP address of this user.Subsequently in step 204, user's Route Distinguisher polling module 105 passes through by the server corresponding with determined common IP address (such as, being the server in Shanghai in this case) attribute and the server property that marks are (such as, be Pekinese's server in this case) compare, judge whether the server needing to change user's route.When the server property corresponding with determined common IP address is different from marked server property, or when user change its primary geographical address cause change common IP address time, then determine the server needing to change user's route, user's permanent address changes to cause the reason of this situation to include but not limited to; Otherwise then determine the server not needing to change user's route, user goes on business and travels to cause the reason of latter instance to include but not limited to temporarily.That is, when user goes on business and travels temporarily, do not change the server of user's route, the user in the somewhere that makes temporarily to go on business does not take the resource of local user, guarantees that most of user can conduct interviews more quickly.
It should also be noted that except user's Route Distinguisher polling module 105 at set intervals (the wherein said time be arranged by user or specify at random) just perform described in judge whether to need the server changing user's route step except, can also to work as when the quantity of server or density change (such as, increase or reduce server room), after the mapping relations that mapping relations module 101 upgrades IP address and server, described in user's Route Distinguisher polling module 105 performs, judge whether the step needing the server changing user's route.
In step 205, when determining the server needing to change user's route, module 107 is changed by the server property of server that marked by user's Route Distinguisher (such as by user's Route Distinguisher, be Pekinese's server in this case) be updated to the server property corresponding with determined common IP address (such as, be the server in Shanghai in this case), carry out the server property after flag update with user's Route Distinguisher.In addition, when the server property of the server marked by user's Route Distinguisher being updated to the server property corresponding with determined common IP address, user's Route Distinguisher changes module 107 can also record current time, as the final updating time.Described user's Route Distinguisher changes module 107 and is also configured to generate and send the message changing server, and the message of wherein said change server can comprise former server property, new server property and final updating time.Therefore, when user changes common IP address, according to illustrated embodiments of the invention for determining that the device of user partition can according to the concrete condition of user (such as, change resident address, or go on business temporarily, tourism etc.), to user rationalization partition, to impel user to carry out fast access.
Above present a kind of apparatus and method for determining user partition in the Internet, described device can carry out correct subregion to user, makes the change according to user's common IP address, adjustment user partition, thus enables users carries out fast access.
Fig. 3 shows the block diagram of the server 1000 according to the above-mentioned device for determining user partition in the Internet of the employing of illustrated embodiments of the invention.As can be seen from Figure 3, server 1000 can comprise according to above-mentioned example embodiment for determining the device 100 of user partition, user's Route Distinguisher enquiry module 200, user's routing module 300 and migration of subscriber data module 400 in the Internet.
In server 1000, when receiving user and asking, user's Route Distinguisher enquiry module 200, by searching the device 100 for determining user partition in the Internet according to example embodiment of the present invention, determines corresponding server property.The corresponding server property inquired and current server attribute compare by user's routing module 300, if the server property of the response inquired is different from current server attribute, then by described user's request forward on corresponding server, otherwise perform described user request.Utilize above-mentioned Route Distinguisher inquiry service, for user's request that should not belong to book server machine room, the request path of user can be forwarded or be redirected on the server of corresponding machine room, thus guarantee that user accesses its user data nearby.When receive from device 100 change the message of server time, migration of subscriber data module 400 usage data transmission method by the user data of described user from former server migration to new server.Such as, when the server of user's route changes to Shanghai server from Beijing server, migration of subscriber data module 400 by the user data of described user from Beijing server migration to Shanghai server.Migration can realize by the technology such as copying.When migration data starts, transition state mark can be done in former data.Particularly, the migration of subscriber data time window that (if current time-Route Distinguisher final updating time) > allows, that is, complete data migration operation, then user's routing module will not belong to user's Request routing of book server to new server.If not yet complete Data Migration, then can return the response of " asking retry ".Like this, obtain a kind of change according to user's common IP address, adjustment user partition, thus enables users accesses the server of subregion rapidly nearby.
Although illustrate and describe the operation of context of methods with particular order, but the order of the operation of each method can be changed, make it possible to perform specific operation with reverse order or make it possible to operate with other at least in part perform specific operation simultaneously.In addition, the invention is not restricted to above-mentioned example embodiment, it under the prerequisite not departing from spirit and scope of the present disclosure, can comprise one or more miscellaneous part, or omits one or more miscellaneous part.
Below show the present invention in conjunction with the preferred embodiments of the present invention, but one skilled in the art will appreciate that without departing from the spirit and scope of the present invention, various amendment, replacement and change can be carried out to the present invention.Therefore, the present invention should not limited by above-described embodiment, and should be limited by claims and equivalent thereof.
Claims (9)
1., for determining a device for user partition in the Internet, comprising:
Mapping relations module, maps with server mutually by IP address;
User's route mark module, according to the IP address of user's registration, marks the server property corresponding with the IP address of registering, as the server property of the server of user's route with user's Route Distinguisher;
User's Route Distinguisher polling module, be configured to pass analysis Visitor Logs, determine the common IP address of described user, and by the server property corresponding with determined common IP address and the server property marked being compared, judge whether the server needing to change user's route; And
User's Route Distinguisher changes module, when determining the server needing to change user's route, the server property of the server of user's route is updated to the server property corresponding with determined common IP address, carry out the server property after flag update with user's Route Distinguisher, generate and send the message changing server.
2. device according to claim 1, wherein said common IP address refers to that the access frequency conducted interviews from described IP address within a period of time exceedes the IP address of preset frequency, or the IP address corresponding with the primary geographical address that user inputs.
3. device according to claim 1, wherein said user's Route Distinguisher polling module is configured to:
At set intervals, described in execution, judge whether to need the step of the server changing user's route, the wherein said time be arranged by user or specify at random; Or
When the quantity of server or density change, after mapping relations module upgrades the mapping relations of IP address and server, described in execution, judge whether the step of the server needing change user route.
4. device according to claim 1, wherein said user's Route Distinguisher polling module is configured to:
When the server property corresponding with determined common IP address is different from marked server property, determine the server needing to change user's route; And
When user change its primary geographical address cause changing common IP address time, determine to need the server changing user's route.
5. device according to claim 1, wherein said user's Route Distinguisher changes block configuration and is: when the server property of the server by user's route is updated to the server property corresponding with determined common IP address, the record final updating time.
6. device according to claim 5, the message of wherein said change server comprises former server property, new server property and final updating time.
7., for determining a method for user partition, comprising:
The IP of user is mapped mutually with server;
IP address when registering according to user, marks the server property corresponding with registering IP address with user's Route Distinguisher;
By analyzing Visitor Logs, determine the common IP address of described user, and by the server property corresponding with determined common IP address and the server property marked being compared, judge whether the server needing to change user's route;
When determining the server needing to change user's route, update server attribute, marks new server property with user's Route Distinguisher, generates and sends the message changing server.
8. method according to claim 7, records the final updating time while being also included in update server attribute.
9. a server, comprising:
Device for determining user partition in the Internet according to claim 1;
User's Route Distinguisher enquiry module, when receiving user and asking, by searching the device for determining user partition in the Internet according to claim 1, determines corresponding server property;
User's routing module, the corresponding server property inquired and current server attribute are compared, if the server property of the response inquired is different from current server attribute, then by described user's request forward on corresponding server, otherwise perform described user request; And
Migration of subscriber data module, when from according to claim 1 for determine in the Internet the device of user partition receive change the message of server time, by the user data of described user from former server migration to new server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510655187.3A CN105376342B (en) | 2015-10-12 | 2015-10-12 | For determining the device and method of user partition in internet and using the server of described device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510655187.3A CN105376342B (en) | 2015-10-12 | 2015-10-12 | For determining the device and method of user partition in internet and using the server of described device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105376342A true CN105376342A (en) | 2016-03-02 |
CN105376342B CN105376342B (en) | 2018-11-23 |
Family
ID=55378136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510655187.3A Active CN105376342B (en) | 2015-10-12 | 2015-10-12 | For determining the device and method of user partition in internet and using the server of described device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105376342B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213365A (en) * | 2019-05-30 | 2019-09-06 | 掌阅科技股份有限公司 | User access request processing method and electronic equipment based on user partition |
CN114553828A (en) * | 2022-02-24 | 2022-05-27 | 中国人民解放军国防科技大学 | DNS operation and maintenance management method, device, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090164661A1 (en) * | 2007-12-21 | 2009-06-25 | Hostway Corporation | System and method for selecting an optimal authoritive name server |
CN102055818A (en) * | 2010-12-30 | 2011-05-11 | 北京世纪互联工程技术服务有限公司 | Distributed intelligent DNS (domain name server) library system |
CN102098349A (en) * | 2009-12-09 | 2011-06-15 | 中兴通讯股份有限公司 | Address mapping method and access service node |
CN102209011A (en) * | 2010-03-29 | 2011-10-05 | 中兴通讯股份有限公司 | Method for establishing connection with multi-homed terminal and system thereof |
CN103685603A (en) * | 2013-12-19 | 2014-03-26 | 北京奇虎科技有限公司 | Domain name system analyzing method and device |
-
2015
- 2015-10-12 CN CN201510655187.3A patent/CN105376342B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090164661A1 (en) * | 2007-12-21 | 2009-06-25 | Hostway Corporation | System and method for selecting an optimal authoritive name server |
CN102098349A (en) * | 2009-12-09 | 2011-06-15 | 中兴通讯股份有限公司 | Address mapping method and access service node |
CN102209011A (en) * | 2010-03-29 | 2011-10-05 | 中兴通讯股份有限公司 | Method for establishing connection with multi-homed terminal and system thereof |
CN102055818A (en) * | 2010-12-30 | 2011-05-11 | 北京世纪互联工程技术服务有限公司 | Distributed intelligent DNS (domain name server) library system |
CN103685603A (en) * | 2013-12-19 | 2014-03-26 | 北京奇虎科技有限公司 | Domain name system analyzing method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213365A (en) * | 2019-05-30 | 2019-09-06 | 掌阅科技股份有限公司 | User access request processing method and electronic equipment based on user partition |
CN110213365B (en) * | 2019-05-30 | 2021-02-26 | 掌阅科技股份有限公司 | User access request processing method based on user partition and electronic equipment |
CN114553828A (en) * | 2022-02-24 | 2022-05-27 | 中国人民解放军国防科技大学 | DNS operation and maintenance management method, device, equipment and medium |
CN114553828B (en) * | 2022-02-24 | 2023-01-31 | 中国人民解放军国防科技大学 | DNS operation and maintenance management method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN105376342B (en) | 2018-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9961164B2 (en) | DNS overriding-based methods of accelerating content delivery | |
US9130970B2 (en) | Systems for accelerating content delivery via DNS overriding | |
US9141669B2 (en) | Configuring an origin server content delivery using a pulled data list | |
KR101858542B1 (en) | Container Name Server and Container Name Interpretation Method | |
US20100142401A1 (en) | Methods, Systems, And Computer Program Products For Determining A Network Identifier Of A Node Providing A Type Of Service For A Geospatial Region | |
CN103888358B (en) | Routing method, device, system and gateway equipment | |
US20140280803A1 (en) | Optimized Content Distribution Based on Metrics Derived from the End User | |
WO2019028683A1 (en) | Method and system for acquiring and collecting client local dns server | |
US20140149578A1 (en) | Method For Testing Methods of Accelerating Content Delivery | |
JP4699530B2 (en) | Methods, systems, and applications for service addressing | |
CN104702617B (en) | A kind of data distributing method and device based on content distributing network | |
CN108449273A (en) | A kind of network accelerating method and system | |
CN114301990A (en) | Node scheduling method, device and storage medium based on content distribution network | |
CN110674427B (en) | Method, device, equipment and storage medium for responding to webpage access request | |
CN105376342A (en) | Device and method for determining user partition in internet and server using device | |
CN104125310B (en) | Message method based on semi-permanent address | |
CN109818821A (en) | A kind of detection method and device of website CDN framework | |
US20210176301A1 (en) | Method and apparatus for multi-vendor gtm fabric | |
CN104092751A (en) | Service access method and device | |
CN101584192A (en) | Node registering method | |
CA2805686A1 (en) | System and method for providing access to presence status for mobile devices | |
CN112119614A (en) | Geographical positioning system and method | |
CN102957668B (en) | The method and access service router of positional information are obtained in mark net | |
CN104796288B (en) | The Anycast means of communication and device | |
CN114430408B (en) | Domain name resolution scheduling method, device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |