CN107277188A - A kind of method, client, server and operation system for determining IP address attaching information - Google Patents

A kind of method, client, server and operation system for determining IP address attaching information Download PDF

Info

Publication number
CN107277188A
CN107277188A CN201710464894.3A CN201710464894A CN107277188A CN 107277188 A CN107277188 A CN 107277188A CN 201710464894 A CN201710464894 A CN 201710464894A CN 107277188 A CN107277188 A CN 107277188A
Authority
CN
China
Prior art keywords
address
client
ownership place
query result
server
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
Application number
CN201710464894.3A
Other languages
Chinese (zh)
Other versions
CN107277188B (en
Inventor
陈东毅
林艺玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201710464894.3A priority Critical patent/CN107277188B/en
Publication of CN107277188A publication Critical patent/CN107277188A/en
Application granted granted Critical
Publication of CN107277188B publication Critical patent/CN107277188B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Abstract

The embodiment of the invention discloses a kind of method for determining IP address attaching information, including:The ownership place that client inquires about its outer net IP address according to local record is identified, and Query Result is sent to server;Server determines that the ownership place included in Query Result is designated the ownership place mark of outer net IP address when judging that Query Result is effective;If invalid, by matching local information library, the IP address section and ownership place mark belonging to outer net IP address are determined.IP address section and the ownership place mark that client the reception server is sent, update local record.Because the ownership place that outer net IP address can be cached in client is identified, without carrying out IP matching operations by server every time, and it is only uncached in the client, or caching ownership place mark it is invalid when just matching operation is carried out by server, thus, the process resource of server can be effectively saved, and improve the efficiency and accuracy for determining IP address attaching information.

Description

A kind of method, client, server and operation system for determining IP address attaching information
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method for determining IP address attaching information, client, Server and operation system.
Background technology
With continuing to develop for information technology, also more and more extensively, user is not only for application of the internet in people live Internet can also can be accessed by various types of intelligent terminals by desktop computer, notebook computer to access internet.
In order to uniquely identify each main frame in internet, Virtual network operator can be unique for every host assignment one IP (Internet Protocol, Internet protocol) address, it is the logic with unified form that a kind of IP agreement is provided Address.When distributing IP address due to Virtual network operator, it will usually which the IP address in an IP address segment is distributed into one City or area, therefore, server are provided with IP address database, for storing each IP address section and its attaching information The corresponding relation of (such as Virtual network operator and area).
Under some business scenarios related to IP address ownership, server is only determining returning for the IP address of main frame Belong to after information, the service request of main frame can just be handled, then, its IP address is generally sent to server by main frame, Each IP address section stored in IP address and IP address database by server by main frame carries out matching operation, to determine IP address section and corresponding attaching information where the IP address of main frame.
However, due to when main frame asks related to IP address ownership business to server every time, server be required for into IP matching operation of row, when the concurrent access request of user is more, substantial amounts of IP matching operations may require that consumption is substantial amounts of Server resource, thus so that determine that the efficiency of IP address attaching information is poor.
In summary, a kind of method for determining IP address attaching information is needed badly at present, to solve only to borrow in the prior art The computing for helping server by utilizing IP address to carry out IP matchings and occurring expends excess resource, determines the efficiency of IP address attaching information Poor technical problem, and ensure the accuracy of IP address attaching information.
The content of the invention
The present invention provides a kind of method, client, server and operation system for determining IP address attaching information, to solve The computing for certainly only carrying out IP matchings by server by utilizing IP address in the prior art and occurring expends excess resource, with determining IP The poor technical problem of the efficiency of location attaching information.
A kind of method for determining IP address attaching information provided in an embodiment of the present invention, methods described includes:
The ownership place that client inquires about its outer net IP address according to local record is identified, and Query Result is sent to service Device;
The server receives the Query Result, judges whether the Query Result is effective, if effectively, it is determined that described The ownership place included in Query Result is designated the ownership place mark of the outer net IP address;If invalid, pass through matching Local information library, determines the IP address section and ownership place mark belonging to the outer net IP address, and send to the client;
The client receives the IP address section and ownership place mark that the server is sent, and is updated to local record.
Alternatively, the local record of the client includes IP address section and the corresponding ownership terrestrial reference of the IP address section Know;
The ownership place that the client inquires about the outer net IP address according to local record is identified, comprising:
The client matches whether the outer net IP address belongs to the IP address section, if belonging to, by the ownership Ground mark is incorporated to the Query Result.
Alternatively, the local information library of the server is identified comprising IP address section and corresponding ownership place.
Alternatively, the local information library is updated by public network IP storehouse and operator IP storehouses.
Alternatively, the server judges that the whether effective method of the Query Result is included:Obtain the Query Result In the ownership place mark;Inquire about with the presence or absence of ownership place mark in the local information library, if in the presence of it is determined that described Query Result effectively, otherwise determines that the Query Result is invalid.
Alternatively, the server is by match information storehouse, determine IP address section belonging to the outer net IP address and Ownership place is identified, comprising:By matching the IP address section belonging to the outer net IP address, the IP address section correspondence is determined The ownership place be designated the outer net IP address ownership place mark.
Alternatively, the client is sending service request while sending the Query Result, and the server is according to institute State Query Result to confirm after the ownership place mark, the service request is handled.
Based on same inventive concept, the embodiment of the present invention provides a kind of client of operation system, and the client can With reference to the above method, the IP address attaching information of the client is determined.The client includes:Enquiry module, ask modulus Block and memory module.
Wherein, the enquiry module is used for the sheet inquired about according to the outer net IP address of the client in the memory module Ground is recorded, and Query Result is sent to the request module;
The request module is used to receive the Query Result, and the Query Result is sent into the operation system Server;
The memory module, the local record for storing the client, and the IP sent according to the server Location section and ownership place mark, replace the local record updated in the memory module.
Alternatively, the request module is additionally operable to, receive user service request, and when receiving the service request to The enquiry module sends inquiry request;
The enquiry module is additionally operable to, and is received after the inquiry request, the local record inquired about in the memory module, The Query Result is sent to the request module;
The request module is additionally operable to, and the service request and the Query Result are sent to the server.
Alternatively, IP address section and the corresponding ownership place mark of the IP address section are included in the local record.
The embodiment of the present invention provides a kind of server of operation system, and the server can refer to the above method, determine The IP address attaching information of the client.The server includes transceiver module, processing module and local information library;
The transceiver module is used for, the Query Result of the ownership place mark of its outer net IP address of reception client query;
The processing module is used for, and the ownership place of the outer net IP address of the client is determined according to the Query Result Mark;
The processing module is specifically for determining whether the Query Result is effective, if effectively, it is determined that the inquiry knot The ownership place included in fruit is designated the ownership place mark of the outer net IP address;If the Query Result is invalid, lead to Overmatching local information library, determines the IP address section and ownership place mark belonging to the outer net IP address, and receive by described Hair module is sent to the client.
Alternatively, the processing module is also particularly useful for the presence or absence of in the Query Result in inquiry local information library Ownership place mark, if in the presence of, it is determined that the Query Result effectively, if being not present, it is determined that the Query Result without Effect.
Alternatively, the processing module is also particularly useful for by matching the IP address belonging to the outer net IP address Section, determines that the corresponding ownership place of the IP address section is designated the ownership place mark of the outer net address.
Alternatively, the transceiver module is additionally operable to, and the transceiver module is additionally operable to, and receives the described of the client transmission While Query Result, the service request of the client is received;
The processing module is also particularly useful for according to returning for the outer net IP address of the Query Result confirmation client After the mark of possession, the service request is handled based on ownership place mark;
The transceiver module is additionally operable to, and the result of the service request is back into the client.
Alternatively, the local information library is identified comprising IP address section and corresponding ownership place.
Alternatively, the local information library is updated by public network IP storehouse and operator IP storehouses.
The embodiment of the present invention also provides a kind of operation system, the operation system include at least one above-mentioned client and Server.
In the embodiment of the present invention, the ownership place that client can inquire about its outer net IP address according to local record is identified, and will be looked into Ask result to send to server, the ownership place in the Query Result for judging client by server is identified whether effectively, if effectively, The ownership place is then directly identified to the ownership place mark for being defined as the client, otherwise, the outer net IP address matched Local information library, determines the affiliated IP address section and ownership place mark of the outer net IP address of client, and is updated to local Record.
As can be seen here, in technical scheme provided by the present invention, its outer net IP is first inquired about in local record by client The ownership place mark of address, then validation is carried out to ownership place mark by server, identify effective situation in ownership place Under, server need to only be identified to ownership place to carry out once confirming that the ownership place that would know that client outer net IP address is identified, and Without determining all to carry out IP matching operations by server during IP address attaching information every time, find belonging to client outer net IP IP address section, further according to IP address section inquiry ownership place mark, so as to alleviate the computing pressure of server, saves resource.
Further, since can only have in the inquiry that client only need to be locally recorded once, and local record newest Record, inquiry workload is minimum, and the influence to client is very small, and for server, without carrying out very every time The matching of time-consuming IP address, is also to be greatly improved from the point of view of the overall angle of operation system so as to improve operating efficiency Operating efficiency.
Further, when the Query Result of client feedback is invalid, that is, do not record, or recorded in locally recording Expired, server can feed back to newest record client, and client is upgraded in time local record, and it is changed in information Before, it can be carried out effectively using, and the validity of Query Result is ensure that to a certain extent, lift information of home location The accuracy matched somebody with somebody.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
A kind of flow chart for determination IP address attaching information method that Fig. 1 is provided by a preferred embodiment of the present invention;
Fig. 2 closes for IP address section is corresponding with attaching information in the local record of client in a preferred embodiment of the present invention It is schematic diagram;
The operation system structural representation that Fig. 3 is provided by a preferred embodiment of the present invention;
Fig. 4 is the structural representation of client in embodiment illustrated in fig. 3;
Fig. 5 is the structural representation of server in embodiment illustrated in fig. 3.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step it is described in detail, it is clear that described embodiment, only a part of embodiment of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Client in the embodiment of the present invention can be the computer equipment being connected in internet, and it possesses an outer net IP address, and request message is sent out by the outer net IP address, the visitor of operation system is installed in this computer equipment Family end program, user can be by carrying out business operation to the client-side program in computer equipment, and receives operation system service Device transmitted information.Wherein, the computer equipment is specifically as follows polytype computer equipment, such as, can be with For desktop computer, notebook computer, or other kinds of intelligent terminal, such as smart mobile phone, tablet personal computer.
Server in the embodiment of the present invention is to be run in the computer equipment being connected in internet, the computer equipment There is the server program of operation system.Server is communicated by internet with client, receives the business that client is sent Request, and result is returned to the client asked after handling service request.
In the embodiment of the present invention, operation system includes at least one client, and a server;In other of the present invention In embodiment, operation system can also include at least one client and at least one server.User is sent by client Service request, and the result of service request is received, server receives the service request sent from each client, and Handled, return to result to relative client.It is worth noting that, handled by operation system in the embodiment of the present invention Specific business tine not by the present invention limited.
The embodiment of the present invention is described in further detail with reference to Figure of description.
A kind of flow chart for determination IP address attaching information method that Fig. 1 is provided by a preferred embodiment of the present invention, such as Shown in Fig. 1, the determination IP address attaching information method comprises the following steps S101 to step S103:
Step S101:The ownership place that client inquires about its outer net IP address according to local record is identified, and by Query Result Send to server;
Step S102:Effectively whether the server receives the Query Result, judge in the Query Result, if having Effect, it is determined that the ownership place included in Query Result is designated the ownership place mark of outer net IP address;If invalid, pass through matching Local information library, determines the IP address section and ownership place mark belonging to outer net IP address, and send to client;
Step S103:IP address section and the ownership place mark that client the reception server is sent, and it is updated to local record.
In the embodiment of the present invention, client includes be stored with IP address section and the local note of corresponding information of home location Record, it is determined that client outer net IP address information of home location when, first client local record with matching its outer net IP The ownership place mark of location, so as to effectively share the inquiry pressure of server.In addition, client sends Query Result to service After device, it can judge whether the Query Result of client is effective by server, if effectively, directly by the ownership place in Query Result Mark is defined as the ownership place mark of client, otherwise, just carries out local information library matching, with determining the outer net IP of client IP address section and ownership place mark belonging to location, and update the local record of client.
As can be seen here, server when determining IP address attaching information every time without all passing through the match query of IP address section Computing, but matching result is handed down to client, it is stored in the local record of client, ownership place mark then is only needed Inquired about in the local record of client, and return to server, so as to save the IP address network segment of substantial amounts of repetition The work of match query.Moreover, server can carry out validation when receiving the Query Result of client, with Determine that the ownership place in Query Result identifies whether can use, and this confirmation work need to only carry out simply counting to ownership place mark According to matching, workload is smaller, and the validity of the local record in client can be verified, if Query Result is invalid, Then it is updated immediately, it is ensured that the accuracy of the real-time information of home location of client outer net IP address.
Specifically, in step S101, the ownership place that client inquires about its outer net IP address according to local record is identified, And send Query Result to server.In an initial condition, the local record of client can be sky, or initially set Local record in the record put, client includes IP address section and the corresponding ownership place mark of IP address section.
User end to server is sent after Query Result, and server can confirm to Query Result, if Query Result is true It is invalid to recognize, then by matching IP address section and corresponding ownership terrestrial reference belonging to local information library confirmation client outer net IP address Know, and be issued to client, client receive server send and after the IP address section come and corresponding ownership place mark, more New local record so that the information in local record is newest effective information, is used for subsequent query.
It is worth noting that, in presently preferred embodiments of the present invention, client updates the mode of local record and updated to replace, Increase new record, and old record deletion, consequently, it is possible to only preserve the newest letter received from server in locally recording Breath, so that the work of inquiry local record is simpler quick.It is understood that visitor in the other embodiment of the present invention The update mode of the local record at family end is newly-increased renewal, i.e., directly enter in local record the information increase received, pass through The renewal of this mode, does not influence historical record while can preserving new record, and when outer net IP address changes, may It can obtain current corresponding ownership place mark by the inquiry to historical record, so as to effectively make use of historical record, subtract The light pressure of server.
The method of the ownership place mark of client query outer net IP address is included, and matches whether its outer net IP address belongs to this IP address section in ground record, if belonging to, obtains corresponding ownership place mark, is incorporated in Query Result, if being not belonging to, returns Setting value is returned to be incorporated in Query Result.
It should be noted that for client, a client has an outer net IP address, but the outer net IP address It may change, thus need first to carry out IP address section progress matching confirmation, corresponding ownership place mark could be returned.
As can be seen here, the local record of client includes three kinds of states:Without information, information is expired, information is effective, then visitor The Query Result that the ownership place that its outer net IP address is inquired about in family end according to local record is identified includes three kinds of situations:Query Result is Sky, Query Result non-NULL but information is out of date, Query Result non-NULL and not out of date, first two situation will being serviced device be judged as Query Result is invalid, and the third situation then being serviced device be determined as that Query Result is effective.
In step s 102, server receives Query Result, judges whether Query Result is effective, if effectively, it is determined that look into Ask the ownership place mark that the ownership place included in result is designated outer net IP address;If invalid, by matching local information library, The IP address section and ownership place mark belonging to outer net IP address are determined, and is sent to client.
Server is received after the Query Result that client is sent, and is first obtained the ownership place mark in Query Result, is obtained Get after ownership place mark, with the presence or absence of ownership place mark in inquiry local information library, if in the presence of determining that the Query Result has Effect, otherwise determines that the Query Result is invalid.In addition, as it was noted above, be also possible in Query Result do not include ownership place mark, I.e. Query Result is sky, then server can not just obtain ownership place mark, in this case, the inquiry knot from Query Result It is invalid that fruit will be directly determined as.
After server judges that Query Result is effective, then the ownership place mark in Query Result just can be identified as sending visitor The ownership place mark at family end, server then carries out corresponding business processing using the information.
After server judges that Query Result is invalid, then need, by matching local information library, to determine the outer net IP address Affiliated IP address section and ownership place mark, the method for matching local information library is included, according to the outer net IP for sending client IP address section in location matching local information library, and determine that ownership place is identified by the IP address section matched, then the determination Ownership place mark then for send client newest ownership place mark, server using the information carry out corresponding service at Reason, and send the newest IP address section and ownership place is identified to client.
As it was noted above, in step s 103, client receives the IP address section that server sends and come and corresponding After ownership place mark, local record is updated.So as to which the local record that ensure that client is the newest confirmation of server Information, ensure that the real-time effectiveness of client query result to a certain extent.
Specifically, the local information library of server includes multiple IP address sections and the corresponding ownership terrestrial reference of each IP address section Know, the IP address section and the corresponding relation of attaching information that are stored in the local information library can refer to the form shown in Fig. 2, but this Invent and be not particularly limited.
As shown in Fig. 2 the unique ownership place mark of corresponding one of each IP address section in local record, i.e., [IP1, IP60] corresponding ownership place is designated A1, and [IP110, IP180] corresponding ownership place is designated A2, [IP260, IP350] correspondence Ownership place be designated A3.
Wherein, and the corresponding specifying information of ownership place mark can also be configured according to actual conditions, for example, In some embodiments of the invention, the corresponding ownership place of a certain IP address section identifies what is belonged to for representing the IP address section The combination of network operator information and regional information, moreover, different ownership place marks can be used for representing heterogeneous networks operator The combination of information and regional information, it is also possible to represent the combination of identical network operator information and regional information, this area Technical staff can identify the implication specifically represented to a certain ownership place and be configured, and the present invention is not specifically limited to this.
It should be noted that those skilled in the art can be carried out specifically to the form that ownership place is identified according to actual needs Set, such as, can be any one or more combination in numeral, letter or other symbols, Fig. 2 as a kind of example, The form that capitalization is combined with numeral is employed, but the invention is not restricted to this.
Due to the outer net IP of each client of operation system affiliated IP should be able to be all matched in local information library Location section, therefore the quantity of the IP address section stored in local information library is far more than cacheable in the local record in single client The quantity of IP address section.
Local information library can be updated by public network IP storehouse and operator IP storehouses, i.e., as Virtual network operator is to IP address The change of distribution, to the operation such as the deletion of IP address section, diminution, increase, newly-increased.Such as, certain Virtual network operator can be by IP Address field [IP1, IP70] is allocated to area 1, and the corresponding attaching information of the IP address section is A1.Subsequently, as business demand Change, the Virtual network operator can only by IP address section [IP1, IP59] distribute to area 1, and by former IP address section in portion IP address section, i.e. [IP60, IP70] is divided to distribute to area 2.
When some IP address section in local information library is updated, then the corresponding ownership of IP address section before renewal It is invalid that ground mark will be regarded as, and distributes new ownership place mark for the IP address section after updating, and is stored in local information library.Hold Example is connected, due to the change of business demand, IP address section [IP1, IP59] only can be distributed to area 1 by the Virtual network operator, And the part IP address section in former IP address section, i.e. [IP60, IP70] are distributed into area 2, then IP address section [IP1, IP59] corresponding home identity is then updated to A2, and the corresponding ownership place mark of IP address section [IP60, IP70] is then updated to A3, And original IP address section [IP1, IP70] and its corresponding ownership place mark are deleted, do not reuse the deleted ownership Ground is identified, it is to avoid judged by accident when in the Query Result that client is sent comprising ownership place mark.
As can be seen that server carries out IP sections of inquiries without the outer net IP address every time to each client and matched, Need to only IP sections of inquiries be carried out to new outer net IP address or invalid ownership place mark, and effective ownership place mark only needs to carry out Once matching is determined, greatly reduces the inquiry pressure of server.
Each client can be by inquiring about whether the outer net IP address of itself is local it can be seen from above method step The mode of the IP address in IP address section in record, primarily determines that the ownership place of outer net IP address, if the outer net IP of client Do not change, then server need not carry out IP address section matching, so as to reduce workload, effectively alleviate server address attribution The pressure of matching operation is carried out to IP address, the efficiency for determining IP address attaching information is improved.
In business scenario specifically related to client ip attaching information, client can send business to server While request, Query Result is sent, service end is first identified according to the ownership place of Query Result confirmation request client, according to returning Possession mark knows information of home location, and service request is handled based on the information of home location, and by the knot of business processing Fruit returns to client.
Based on same inventive concept, the embodiments of the invention provide a kind of operation system, Fig. 3 is institute of the embodiment of the present invention The structural representation of the operation system of offer, as shown in figure 3, the operation system 300, comprising multiple client (in figure 3010th, 3011...301n etc.) and server 302.Wherein, any client can refer to the above method, determine outside it The attaching information of net IP address.
The embodiment of the present invention also provides a kind of client of operation system, and Fig. 4 is the one kind provided in the embodiment of the present invention The structural representation of client, as shown in figure 4, client 400 includes:Memory module 401, enquiry module 402 and request module 403。
Wherein, the local record that enquiry module 402 is inquired about in memory module 401 according to the outer net IP address of client, and Query Result is sent to request module.
Request module 403 receives the Query Result that enquiry module 402 is sent, and Query Result is sent into operation system Server.
Be stored with local record in memory module 401, IP address section and the ownership place mark that its reception server is sent, and Update the local record in memory module 401.Wherein, in local record comprising IP address section and the IP address section is corresponding returns Possession is identified.
In presently preferred embodiments of the present invention, client updates the mode of local record and updated to replace, that is, increases new record, And old record deletion, consequently, it is possible to the newest information received from server only be preserved in locally recording, so that looking into The work for asking local record is simpler quick.
It is understood that the update mode of the local record of client is to increase newly more in the other embodiment of the present invention Newly, i.e., directly the information increase received is entered in local record, renewal in this way, while new record being preserved Historical record is not influenceed, and when outer net IP address changes, may can obtain current by the inquiry to historical record Corresponding ownership place mark, so as to effectively make use of historical record, alleviates the pressure of server.
In specific service application scene, request module 403 is additionally operable to receive the service request of user, and is receiving industry During business request inquiry request is sent to enquiry module 402.Enquiry module 402 is received after inquiry request, inquires about memory module 401 In local record, Query Result is returned into request module 403.Request module 403 sends service request and Query Result To server.
Client provided by the present invention can tentatively confirm that its ownership place is identified by inquiring about local record, so that one Determine to alleviate the matching operation pressure of server in degree.
The embodiment of the present invention also provides a kind of server of operation system, and Fig. 5 is the one kind provided in the embodiment of the present invention The structural representation of server, the server can refer to the above method, determine the IP address attaching information of the client. As shown in figure 5, server 500 includes transceiver module 501, processing module 502 and local information library 503;
Transceiver module 501 receives the Query Result that client 400 is sent, and is sent to processing module 502.
Processing module 502 receives the Query Result that transceiver module 501 is sent, and client 400 is determined according to Query Result Outer net IP address ownership place mark.
Specifically, processing module 502 determines that the outer net IP address ownership place identification method of client 400 is included:It is determined that Whether Query Result is effective, if effectively, it is determined that the ownership place included in Query Result is designated the outer net IP address of client 400 Ownership place mark;If Query Result is invalid, by matching local information library 503, the IP belonging to outer net IP address is determined Address field and ownership place mark, and sent by transceiver module 501 to client.
Wherein processing module 502 judges that the whether effective method of Query Result is included:Obtain the ownership place in Query Result With the presence or absence of ownership place mark in mark, inquiry local information library, if in the presence of, it is determined that the Query Result is effective, if not depositing , it is determined that the Query Result is invalid.If being identified in addition, not including ownership place in Query Result, processing module 502 is directly sentenced The disconnected Query Result is invalid.
After processing module 502 determines that Query Result is effective, then the ownership place mark in Query Result just can be identified as The ownership place mark of client 400 is sent, server 400 then carries out corresponding business processing using the information.
After processing module 502 judges that Query Result is invalid, then need, by matching local information library 503, to determine client IP address section and ownership place mark belonging to 400 outer net IP address.
The method of wherein matching local information library 503 is included, and is matched according to the outer net IP address for sending client 400 local IP address section in information bank 503, and determine that ownership place is identified by the IP address section matched, then the ownership place of the determination Mark then identifies to send the newest ownership place of client 400, and server 400 carries out corresponding service processing using the information, And the newest IP address section and ownership place mark are sent to client 400 by transceiver module 501.
In specific service application scene, when the processing of service request needs to use client information of home location, receive While sending out the Query Result that the reception client 400 of module 501 is sent, corresponding service request is received, and be sent to place in the lump Manage module 502.
Processing module 502 is confirmed according to Query Result after the ownership place mark of the outer net IP address of client 400, based on returning Possession mark is handled service request, and result is sent to transceiver module 501.
The result that the receiving processing module 502 of transceiver module 501 is sent, and result is returned to relative client 400。
The local information library 503 of server includes multiple IP address sections and the corresponding ownership place mark of each IP address section, The IP address section and the corresponding relation of attaching information that are stored in the local information library 503 can refer to the form shown in Fig. 2, this hair It is bright and be not particularly limited.By the outer net IP of each client of operation system should be able to match institute in local information library The IP address section of category, therefore the quantity of the IP address section stored in local information library is far more than in the local record in single client The quantity of cacheable IP address section.
Local information library 503 can be updated by public network IP storehouse and operator IP storehouses, i.e., as Virtual network operator is to IP The change of address distribution, to the operation such as the deletion of IP address section, diminution, increase, newly-increased.Such as, certain Virtual network operator can be with IP address section [IP1, IP70] is allocated to area 1, the corresponding attaching information of the IP address section is A1.Subsequently, as business IP address section [IP1, IP59] only can be distributed to area 1 by the change of demand, the Virtual network operator, and by former IP address section Part IP address section, i.e., [IP60, IP70] distribute to area 2.
When some IP address section in local information library 503 is updated, then the IP address section before renewal is corresponding It is invalid that ownership place mark will be regarded as, and distributes new ownership place mark for the IP address section after updating, and is stored in local information library In.Example in undertaking, due to the change of business demand, IP address section [IP1, IP59] only can be distributed to ground by the Virtual network operator Area 1, and the part IP address section in former IP address section, i.e. [IP60, IP70] are distributed into area 2, then IP address section [IP1, IP59] corresponding home identity is then updated to A2, and the corresponding ownership place mark of IP address section [IP60, IP70] is then updated to A3, And original IP address section [IP1, IP70] and its corresponding ownership place mark are deleted, do not reuse the deleted ownership Ground is identified, it is to avoid judged by accident when in the Query Result that client is sent comprising ownership place mark.
As can be seen that server carries out IP sections of inquiries without the outer net IP address every time to each client and matched, Need to only IP sections of inquiries be carried out to new outer net IP address or invalid ownership place mark, and effective ownership place mark only needs to carry out Once matching is determined, greatly reduces the inquiry pressure of server.
In summary, in the embodiment of the present invention, client can inquire about the ownership place of its outer net IP address according to local record Mark, Query Result is sent to server, the ownership place in the Query Result for judging client by server has been identified whether Effect, if effectively, the ownership place directly to be identified to the ownership place mark for being defined as the client, otherwise, by the outer net IP address matches local data base, determines the affiliated IP address section and ownership place mark of the outer net IP address of client, and It is updated to local record.
Because the ownership place that its outer net IP address can be cached with the local record of client is identified, without determining IP every time IP matching operations are all carried out by server during address attribution information, but only its uncached ownership place is identified in the client, Or IP matchings are just carried out by server when the IP sections cached in client and invalid ownership place mark, thus, can effectively it save The process resource of server has been saved, and has improved the efficiency and accuracy for determining IP address attaching information.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used wherein includes the meter of computer usable program code at one or more The computer journey that calculation machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The function of being specified in present one flow of flow chart or one square frame of two or more flow and/or block diagram or two or more square frame Device.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to The manufacture of device is made, the command device is realized in one flow of flow chart or two or more flow and/or one side of block diagram The function of being specified in frame or two or more square frame.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or two or more flow and/or square frame The step of function of being specified in one square frame of figure or two or more square frame.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (17)

1. a kind of method for determining IP address attaching information, it is characterised in that methods described includes:
The ownership place that client inquires about its outer net IP address according to local record is identified, and Query Result is sent to server;
The server receives the Query Result, judges whether the Query Result is effective, if effectively, it is determined that the inquiry As a result the ownership place included in is designated the ownership place mark of the outer net IP address;It is local by matching if invalid Information bank, determines the IP address section and ownership place mark belonging to the outer net IP address, and send to the client;
The client receives the IP address section and ownership place mark that the server is sent, and is updated to local record.
2. the method as described in claim 1, it is characterised in that the local record of the client includes IP address section and described The corresponding ownership place mark of IP address section;
The ownership place that the client inquires about the outer net IP address according to local record is identified, comprising:
The client matches whether the outer net IP address belongs to the IP address section, if belonging to, by the ownership terrestrial reference Knowledge is incorporated to the Query Result.
3. the method as described in claim 1, it is characterised in that the local information library of the server includes IP address section and right The ownership place mark answered.
4. method as claimed in claim 3, it is characterised in that the local information library is by public network IP storehouse and operator IP storehouses It is updated.
5. method as claimed in claim 3, it is characterised in that the server judges the whether effective side of the Query Result Method is included:
Obtain the ownership place mark in the Query Result;
Inquire about with the presence or absence of ownership place mark in the local information library, if in the presence of, determine the Query Result effectively, it is no Then determine that the Query Result is invalid.
6. method as claimed in claim 3, it is characterised in that the server is determined described outer by match information storehouse IP address section and ownership place mark belonging to net IP address, comprising:
By matching the IP address section belonging to the outer net IP address, the corresponding ownership place of the IP address section is determined It is designated the ownership place mark of the outer net IP address.
7. the method as described in claim 1, it is characterised in that the client is sending service request while being looked into described in transmission Result is ask, after the server confirms that the ownership place is identified according to the Query Result, the service request is handled.
8. a kind of client of operation system, it is characterised in that the client includes:
Enquiry module, request module and memory module, wherein, the enquiry module is with being used for the outer net IP according to the client The local record that location is inquired about in the memory module, and Query Result is sent to the request module;
The request module is used to receive the Query Result, and the Query Result is sent to the service of the operation system Device;
The memory module, the local record for storing the client, and the IP address section sent according to the server And ownership place mark, replace the local record updated in the memory module.
9. client as claimed in claim 8, it is characterised in that the request module is additionally operable to, the business for receiving user please Ask, and inquiry request is sent to the enquiry module when receiving the service request;
The enquiry module is additionally operable to, and is received after the inquiry request, the local record inquired about in the memory module, by institute State Query Result and be sent to the request module;
The request module is additionally operable to, and the service request and the Query Result are sent to the server.
10. client as claimed in claim 8, it is characterised in that IP address section and the IP are included in the local record The corresponding ownership place mark of address field.
11. a kind of server of operation system, it is characterised in that the server includes transceiver module, processing module and local Information bank;
The transceiver module is used for, the Query Result of the ownership place mark of its outer net IP address of reception client query;
The processing module, the ownership terrestrial reference of the outer net IP address for determining the client according to the Query Result Know;
The processing module is specifically for determining whether the Query Result is effective, if effectively, it is determined that in the Query Result Comprising the ownership place be designated the outer net IP address ownership place mark;If the Query Result is invalid, by With the local information library, the IP address section and ownership place mark belonging to the outer net IP address are determined, and receive by described Hair module is sent to the client.
12. server as claimed in claim 11, it is characterised in that the processing module is also particularly useful for the local letter of inquiry The ownership place mark that whether there is in storehouse in the Query Result is ceased, if in the presence of, it is determined that the Query Result is effective, if It is not present, it is determined that the Query Result is invalid.
13. server as claimed in claim 11, it is characterised in that the processing module is also particularly useful for by matching The IP address section belonging to outer net IP address is stated, determines that the corresponding ownership place of the IP address section is designated the outer net The ownership place mark of address.
14. server as claimed in claim 11, it is characterised in that the transceiver module is additionally operable to, receives the client While the Query Result sent, the service request of the client is received;
The processing module is also particularly useful for according to the ownership place of the outer net IP address of the Query Result confirmation client After mark, the service request is handled based on ownership place mark;
The transceiver module is additionally operable to, and the result of the service request is back into the client.
15. server as claimed in claim 11, it is characterised in that the local information library includes IP address section and corresponding Ownership place is identified.
16. server as claimed in claim 15, it is characterised in that the local information library is by public network IP storehouse and operator IP storehouses are updated.
17. a kind of operation system, it is characterised in that the operation system is comprising any at least one such as claim 8 to 10 Client described in and the server as any one of claim 11 to 16.
CN201710464894.3A 2017-06-19 2017-06-19 Method, client, server and service system for determining IP address attribution information Expired - Fee Related CN107277188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710464894.3A CN107277188B (en) 2017-06-19 2017-06-19 Method, client, server and service system for determining IP address attribution information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710464894.3A CN107277188B (en) 2017-06-19 2017-06-19 Method, client, server and service system for determining IP address attribution information

Publications (2)

Publication Number Publication Date
CN107277188A true CN107277188A (en) 2017-10-20
CN107277188B CN107277188B (en) 2020-01-14

Family

ID=60067902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710464894.3A Expired - Fee Related CN107277188B (en) 2017-06-19 2017-06-19 Method, client, server and service system for determining IP address attribution information

Country Status (1)

Country Link
CN (1) CN107277188B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505320A (en) * 2019-08-13 2019-11-26 锐捷网络股份有限公司 A kind of method, apparatus, the network equipment and the storage medium of more new IP address
CN112019644A (en) * 2019-05-29 2020-12-01 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN112532414A (en) * 2019-09-18 2021-03-19 中国移动通信集团河北有限公司 Method, device and equipment for determining ISP attribution and computer storage medium
CN113495892A (en) * 2020-03-20 2021-10-12 北京沃东天骏信息技术有限公司 Method and device for updating IP address information base

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758649A (en) * 2004-10-05 2006-04-12 华为技术有限公司 Method of interconnected protocol network communicating between different edition network
CN103561123A (en) * 2013-10-28 2014-02-05 北京国双科技有限公司 Method and device for determining IP segment affiliation
CN103716282A (en) * 2012-09-28 2014-04-09 北京新媒传信科技有限公司 Method and system for correcting IP library
US20160014674A1 (en) * 2014-07-10 2016-01-14 Lg Electronics Inc. Method for location based access control in wireless communication system and apparatus therefor
CN105635057A (en) * 2014-10-30 2016-06-01 北京奇虎科技有限公司 Security identification method and device of domain name system (DNS)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758649A (en) * 2004-10-05 2006-04-12 华为技术有限公司 Method of interconnected protocol network communicating between different edition network
CN103716282A (en) * 2012-09-28 2014-04-09 北京新媒传信科技有限公司 Method and system for correcting IP library
CN103561123A (en) * 2013-10-28 2014-02-05 北京国双科技有限公司 Method and device for determining IP segment affiliation
US20160014674A1 (en) * 2014-07-10 2016-01-14 Lg Electronics Inc. Method for location based access control in wireless communication system and apparatus therefor
CN105635057A (en) * 2014-10-30 2016-06-01 北京奇虎科技有限公司 Security identification method and device of domain name system (DNS)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019644A (en) * 2019-05-29 2020-12-01 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN112019644B (en) * 2019-05-29 2022-08-02 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN110505320A (en) * 2019-08-13 2019-11-26 锐捷网络股份有限公司 A kind of method, apparatus, the network equipment and the storage medium of more new IP address
CN112532414A (en) * 2019-09-18 2021-03-19 中国移动通信集团河北有限公司 Method, device and equipment for determining ISP attribution and computer storage medium
CN113495892A (en) * 2020-03-20 2021-10-12 北京沃东天骏信息技术有限公司 Method and device for updating IP address information base

Also Published As

Publication number Publication date
CN107277188B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN108595207B (en) Gray scale publishing method, rule engine, system, terminal and storage medium
CN100422958C (en) Using direct memory access for performing database operations between two or more machines
CN102982141B (en) A kind of method and device realizing distributed data base agency
CN107277188A (en) A kind of method, client, server and operation system for determining IP address attaching information
US20150229710A1 (en) Content delivery reconciliation
CN109710190B (en) Data storage method, device, equipment and storage medium
CN103634144B (en) The configuration file management method of many IDC clusters, system and equipment
CN107066570A (en) Data managing method and device
CN109040337A (en) A kind of information query method, Edge Server and information query system
CN110222116B (en) Control method and device for transaction data storage and storage medium
CN103064960A (en) Method and equipment for database query
CN101854378A (en) Data operating method and data operating equipment
CN106933548A (en) Global information is obtained, processes and updated, methods, devices and systems
CN105095313A (en) Data access method and equipment
CN108595505A (en) The method and apparatus of data query
CN107528894A (en) A kind of storage system Real time data acquisition method and platform
CN111488626A (en) Data processing method, device, equipment and medium based on block chain
CN109445902A (en) A kind of data manipulation method and system
CN101673217B (en) Method for realizing remote program call and system thereof
CN106446050A (en) Method and system for subscription by aiming at changed data of database
CN112328760B (en) Service providing method, device and system
CN103441865B (en) Method, system and the BRAS and Portal server of management ip address
CN100407623C (en) Method and system for user data transaction in communication system
US11522995B2 (en) Number management system, number management method, and number management device
CN110069505B (en) Offline data processing method and offline data updating device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200114

CF01 Termination of patent right due to non-payment of annual fee