CN103297444A - Identity analysis method and device - Google Patents

Identity analysis method and device Download PDF

Info

Publication number
CN103297444A
CN103297444A CN2012100413698A CN201210041369A CN103297444A CN 103297444 A CN103297444 A CN 103297444A CN 2012100413698 A CN2012100413698 A CN 2012100413698A CN 201210041369 A CN201210041369 A CN 201210041369A CN 103297444 A CN103297444 A CN 103297444A
Authority
CN
China
Prior art keywords
hsvr
address
guid
hcode
message
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.)
Pending
Application number
CN2012100413698A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2012100413698A priority Critical patent/CN103297444A/en
Publication of CN103297444A publication Critical patent/CN103297444A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an identity analysis method. According to the method, corresponding relation of an HCode and an HSvr is established so that an Internet user can obtain an IP address registered corresponding to an analysis target by analyzing the target attributive HSvr. Accordingly, communication with a user can be achieved by analyzing the GUID of the user, so that communication between people is convenient. The invention further provides a host identification method, the user can identify a false GUID through the method, and the user cannot be cheated. The invention further provides a browsing method, information provided by a host indicated by the GUID can be browsed through a browser improved with the method, the user can be helped to issue a website based on the GUID, and the method helps to control domain name number expanding speed. The invention further provides the HSvr, and identity analysis service is provided for global users through the HSvr.

Description

Identity analytic method and device
Technical field
The present invention relates to internet communication, relate to global user's Unified Identity analytic method and device in the Internet or rather.
Background technology
Communication based on the Internet, comprise that literal, voice, video etc. are mutual, can meet or exceed based on the same effect of the communication of telecommunications network, why mostly will the Internet user also be equipped with the landline telephone of telecommunications network? the network design that this function repeats not only causes the social resources waste, also can additionally take the limited personal air of user.Such as, the user of deployment the Internet netting twine, the general subscribers feeder that all also will dispose a telecommunications network is to be used for the access of fixed telephone terminal.In addition, along with popularizing of online, a lot of people have a lot of times to face computer every day.Since when answering the phone of telecommunications network, to take a hand usually, therefore, concerning a people who is surfing the Net, just very inconvenient.This shows, release the Internet Protocol telephone terminal as early as possible, substitute existing telecommunications network telephone terminal and more and more met the needs that people link up.
Just as in the telecommunications network, converse with someone, just need know that his telephone number is the same, in the Internet, Internet user UsrA will communicate by letter with UsrB, just need know the IP address of UsrB.But the IP address is not easy to memory, and especially the IPv6 that will comprehensively enable has 128 bit address.
To this, people propose already and adopt such scheme: domain name is set, the corresponding relation of domain name and IP address is saved in the name server (DNS, Domain Name Server), described DNS allows people obtain an IP address from a domain name by the domain name mapping service is provided.Like this, people only need remember hommization more, are convenient to the domain name understanding and remember, just can reach the effect of memory host IP address.
But registered domain name normally has cost, also comprises, realize static name, must spend original just static ip address of IPV4 very in short supply of higher one-tenth the application, not so, just needs to buy the dynamic territory analyzing service.Even if IPV6, have 128 IP address, can give IP address of each inch land allotment of the earth, but when the user will point to portable terminal when (comprising telecommunications network portable terminal and portable personal computer) with a domain name, the IP address of this portable terminal still can be because of the flowing of portable terminal, for example user's international roaming or strange land office and changing, and, different with the enterprise customer, for privacy and security needs, the personal user also needs often to change the IP address of oneself.Especially, registered domain name can cause the expansion of DNS scale too much, thereby has influence on the efficient of universal access (for example normal internet).
Also have a kind of scheme: UsrA and UsrX all with oneself IP address registration to an an attribution server (HSvr, Home Server) on, for example, UsrA and UsrX are registered to an instantaneous communication system (IMS, Instant Messenger System) user in, and UsrA and UsrX are at instant communication server (IMSvr, Instant Messenger Server), also be among the HSvr, registered the IP address of oneself, like this, UsrA or UsrX can be by visiting the IP address that HSvr obtains the other side.About IMS and the more data of HSvr, the explanation referring to " communication means and system " patent of invention of submitting to simultaneously repeats no more here.Though, can obtain the other side's IP address between the user of same IMS mutually, for example, among the IMS of Tengxun, QQ user UsrA can be by the QQ number of a QQ user UsrX, obtain the IP address of UsrX, but, but can't accomplish this point between the user of different IMS, for example, for the Hi user UsrD of Baidu, he just can't obtain the IP address of UsrX according to the QQ number of UsrX.
Summary of the invention
In view of this, the invention provides a kind of identity analytic method, this method makes the Internet user can obtain the IP address of registering at the parsing target from the HSvr that resolves the target ownership, thereby reaches the purpose that GUID is resolved by setting up the corresponding relation of HCode and HSvr.By this method the identity of the Internet different user is resolved, thereby obtain the IP address of this user's active client, the user can be communicated based on GUID, both can avoid the excessive expansion in DNS space, can also satisfy the mobility requirement of client effectively.
A kind of identity analytic method is characterized in that, sets up the corresponding relation of HCode and HSvr; Said method comprising the steps of:
Ab, according to the HCode that resolves target GUI D correspondence, according to the corresponding relation of described HCode and HSvr, determine to resolve the HSvr that target belongs to, namely resolve target HSvr; To comprise that the analysis request message of resolving target GUI D sends to this parsing target HSvr;
Cd, described parsing target HSvr obtain the IP address of registration according to the parsing target GUI D that receives, reply the IP address that obtains.
Step ab further is:
A, client will comprise that the analysis request message of resolving target GUI D sends to the HSvr of ownership, i.e. source HSvr;
B, described source HSvr are according to the HCode of described parsing target GUI D correspondence, corresponding relation according to described HCode and HSvr, determine the HSvr of described parsing target GUI D ownership, namely resolve target HSvr, will comprise that the analysis request message of resolving target GUI D sends to this parsing target HSvr;
Step cd further is:
C, described parsing target HSvr obtain the IP address of registration according to the parsing target GUI D that receives, the IP address that obtains is sent to described source HSvr;
The described IP address that d, described source HSvr will receive sends to described client.
Described source HSvr sets up SS with described parsing target HSvr and is connected, and described source HSvr preserves the corresponding relation of this SS connection and corresponding HCode; Step b is described according to described parsing target GUI D, according to the corresponding relation of described HCode and HSvr, determine to resolve target HSvr and refer to, according to the HCode of described parsing target GUI D, according to the corresponding relation of the SS connection of preserving with corresponding HCode, determine corresponding SS connection; Describedly will comprise that the analysis request message of resolving target GUI D sends to this parsings target HSvr and refers to, connect by the SS that determines, will comprise that the analysis request message of parsing target GUI D sends.
Like this, just can communicate with this user by the GUID that resolves a user, thereby make things convenient for people's communication.
A kind of method of handling analysis request is characterized in that, said method comprising the steps of:
A, according to the HCode that resolves target GUI D in the request message, according to the HCode that sets up and the corresponding relation of HSvr, judge whether this parsing target GUI D belongs to oneself, if, execution in step b then; Otherwise, execution in step c;
B, directly obtain own IP address at described parsing target GUI D registration, send to the requestor, then finish;
C, according to the HCode that sets up and the corresponding relation of HSvr, will carry the HSvr that the message of resolving target GUI D sends to the HCode correspondence of described parsing target GUI D.
A kind of communication means is characterized in that, said method comprising the steps of:
A, obtain purpose GUID:
B, parsing purpose GUID obtain corresponding IP address;
C, send message according to the IP address that obtains to the other side, perhaps, initiate connection request to the other side and set up CC and connect to be used for information interaction.
By described communication means, help to promote Internet Protocol telephone progressively substituting the telecommunications network phone.
A kind of caller identification method is characterized in that, said method comprising the steps of:
A, when receiving the connection request of caller, or when receiving the GUID that caller sends, from the packet that receives, resolve and obtain source IP address;
B, receive the GUID that caller sends after, by resolving described GIUD, obtain corresponding IP address;
Whether the source IP address that c, judgement obtain in step a is consistent with the IP address that obtains in step b, if consistent, then with the GUID of this GUID as caller; Otherwise, think that this GUID is not the GUID of caller.
In step a, further obtain source port number; In step b, when resolving described GUID, further obtain corresponding port numbers; Step c further is: judge whether the source IP address that obtains is consistent with the IP address that obtains and port numbers with source port number in step b in step a, if consistent, then with the GUID of this GUID as caller; Otherwise, think that this GUID is not the GUID of caller.
Can help the GUID of User Recognition falseness by this method, prevent that the user from having dust thrown into the eyes.
A kind of browsing method is characterized in that, obtains expansion URL, said method comprising the steps of:
The expansion URL that a, analysis are obtained obtains<main frame〉part, judgement<main frame〉when part is GUID, by resolving this GUID, obtain corresponding IP address;
B, according to corresponding IP address, obtain the indicated resource of this expansion URL from the main frame of correspondence;
The resource that c, processing are obtained.
In step a, further obtain corresponding port numbers when resolving described GUID; Step b further is: according to resolving IP address and the port numbers that described GUID obtains, obtain the indicated resource of this expansion URL from the main frame of correspondence.
Can browse the information that main frame that GUID points to provides by the browser of this method improvement, help the user based on described GUID issuing web site, help control domain name quantity speed of expansion.
A kind of HSvr is characterized in that, comprises central processing module, communication access module, memory module;
Described communication access module is used for the access communications network, carries out information interaction with client; Described communication access module also is used for setting up being connected with the SS of other HSvr, so that connect by the SS that sets up, carries out information interaction with described other HSvr;
Described memory module is used for preserving the corresponding relation that HCode is connected with SS;
Described memory module is preserved the corresponding relation of HCode and HSvr, to obtain a HSvr that HCode corresponding according to the HCode of described preservation with the corresponding relation of HSvr for central processing module;
Perhaps, described communication access module be connected to setting preservation the GUIDAS of corresponding relation of described HCode and HSvr, to be used for central processing module obtains a HCode correspondence by visit GUIDAS HSvr;
Perhaps, described central processing module is set up the corresponding relation of HCode and HSvr by the domain name constructing module is set, and to be used for the domain name constructing module by arranging, obtains the HDomain of a HCode correspondence, and this HDomain points to corresponding HSvr;
Whether central processing module is determined corresponding HSvr according to described HCode with the corresponding relation of HSvr according to the HCode of a GUID, be that own corresponding HSvr judges whether this GUID belongs to oneself by judging definite HSvr; Perhaps, whether central processing module determines that according to the corresponding relation that described HCode and SS connect corresponding SS connects according to the HCode of a GUID, be that particular value connects to judge whether this GUID belongs to oneself by judging that definite SS connects;
For the analysis request message of resolving target GUI D that comprises that receives, whether this parsing target GUI of central processing module judges D belongs to oneself, if then directly obtain own IP address at described parsing target GUI D registration, send to the requestor, then finish; Otherwise, by connecting according to the determined SS of corresponding relation that the HCode that preserves is connected with SS according to the HCode that resolves target GUI D, send having carried the analysis request message of resolving target GUI D.
For replying message from the analysis request of the IP address of resolving target GUI D correspondence comprising of other HSvr and applicant information, central processing module is according to the applicant information in this message, and the IP address of described parsing target GUI D correspondence is sent to corresponding requestor.
In addition, based on identity analytic method of the present invention, 7,000,000,000 personal users in the whole world can transfer to different HSvr to the original demand of 7,000,000,000 domain names, like this, just greatly alleviated the burden of DNS, and laid the first stone for Internet Protocol telephone progressively substitutes the telecommunications network phone.
Description of drawings
Shown in Figure 1, be the IMS networking diagram that interconnects.
Shown in Fig. 1-1, for based on the interconnected figure of the HSvr of GUIDAS.
Shown in Figure 2, be analysis mode one flow chart of the present invention.
Shown in Figure 3, be analysis mode two flow charts of the present invention.
Shown in Figure 4, for resolving the message flow graph.
Shown in Figure 5, be browsing method embodiment flow chart.
Shown in Figure 6, be HSvr of the present invention system composition diagram in the frame of broken lines.
Shown in Fig. 6-1, connect the system group network figure of GUIDAS outward for HSvr.
Embodiment
Whole world Unified Identity (GUID, Global Unified Identity) is used for identifying in the world a user.Described GUID comprises two parts: ownership sign indicating number (HCode, Home Code) and user code (UCode, User Code).Wherein, HCode indicates this GUID, and also namely the user attaching of this GUID correspondence is in which attribution server (HSvr, Home Server), and UCode is used to indicate different user under the HCode.A HSvr can have a plurality of HCode.
In the present invention, a user's HCode refers to the HCode of this user's GUID correspondence, and a user's UCode refers to the UCode of this user's GUID correspondence.
As shown in Figure 1, be HSvr and its customer relationship schematic diagram.In Fig. 1, the HSvr of A service provider (SP-A) is HSvr-A, and wherein, registration has user A (UsrA) and user X (UsrX); B service provider (SP-B) has HSvr-B and two HSvr of HSvr-X, and wherein, the HSvr-B registration has user B (UsrB) and user Y (UsrY); The HSvr of C service provider (SP-C) is HSvr-C, and wherein, registration has user C (UsrC) and user Z (UsrZ).
For ease of understanding, in the description of back, we with, SP-A is that Tengxun, SP-B are that Netease, SP-C are Microsofts, is example.
In the middle of the reality, HCode has dissimilar.For ease of describing, introduce three types HCode here.
Domain name kind HCode:HCode is a domain name, and corresponding GUID is an addresses of items of mail (is called for short and posts the location), and UCode wherein posts the user name of location for this.At this moment, the GUID representation is generally: user name @ domain name, @ is for posting the location designator here.
For example, HSvr-A has domain name kind HCode such as qq.com; HSvr-B has two domain name kind HCode such as 163.com and yeah.net; HSvr-C has hotmail.com and two domain name kind HCode of live.com.Three users' of Netease such as [email protected], [email protected] and [email protected] GUID belongs to HSvr-B.
International merchant's sign indicating number (IBC, International Business Code) class HCode:HCode is an IBC, and corresponding UCode is one-level user ID (FLUI, First Level User Identity).Corresponding GUID is principal and subordinate's sign indicating number (MsC, Master-slave Code).At this moment, the GUID representation is generally: FLUI#IBC, here, # is the MsC designator.
Wherein, IBC or FLUI can be alphabetical, digital combination in any.For example, HSvr-A has QQ, two IBC such as 99; HSvr-B has 163 and two IBC such as WY, and HSvr-X has IBC such as 126 grades; HSvr-C has 352 and two IBC of MSN.And the HSvr of Baidu has Hi, two IBC such as 816; The HSvr of Google has three IBC such as Ggl, Gtalk and 900.For example, for the existing instant messaging number of the account of this Tengxun of QQ number, arranging its corresponding IBC is QQ, and then the MsC of QQ number 123789 correspondences is 123789#QQ; If Tengxun is because at present newly-increased QQ number is oversize, and provide a kind of TC number, and the corresponding IBC of agreement is 88, then the MsC of TC number 123789 correspondences is 123789#88.Equally, the IBC of the Hi number of the account correspondence of agreement Baidu is Hi, and then the MsC of a Hi user name simayi correspondence is simayi#Hi.
Shadow sign indicating number class HCode:HCode is ownership two tuples (H2T, Home Two-Tuple): (CC, NBC), also namely, described H2T comprises two parts: national code (CC, Country Code) and state inside trade sign indicating number (NBC, National Business Code), and namely (CC, NBC).Corresponding GUID is a shadow sign indicating number.At this moment, the GUID representation is generally: CC*NBC*UCode, * is shadow sign indicating number designator here.
CC generally is phone national code (TCC, Telecom Country Code), i.e. the national code of existing phone system or region code, for example, China be 86, the U.S. be 1, India is 91, Hong Kong is 852, Vietnam be 84.
CC also can be national TLD (CTLD, Country Top Level Domain), and for example that China be cn, the U.S. be us, India be in, Hong Kong be the VN that is of hk, Vietnam.
NBC is the operation code in the country.NBC can be alphabetical, digital combination in any.When NBC was pure digi-tal, the present invention was referred to as code (TeleCode, Telegraphic Code); When containing nonnumeric character among the NBC, the present invention is referred to as NBC another name (NBCAlias, NBC Alias).
The user of a shadow sign indicating number correspondence is also referred to as shadow sign indicating number user (SCUsr, Shadow Code User).In the present invention, the H2T of a SCUsr refers to the H2T of the shadow sign indicating number correspondence of this SCUsr.
About the more information of shadow sign indicating number, see also " shadow sign indicating number addressing method " patent of invention of submitting to simultaneously, repeat no more here.
Resolve target GUI D below by one of UsrA request analysis, for example the GUID of UsrB is example, and the inventive method is set forth.
The GUID of UsrA request analysis UsrB can have following two kinds of analysis modes:
Analysis mode one, UsrA directly visit the IP address that HSvr-B obtains UsrB
Under this analysis mode, UsrA need know that UsrB belongs to that HSvr, in order to initiate the analysis request of the GUID of parsing UsrB to this HSvr.
Analysis mode two, UsrA obtain the IP address of UsrB by HSvr-A
Under this analysis mode, HSvr-A needs also to know that UsrB belongs to that HSvr, in order to will send to this HSvr from the analysis request about the GUID that resolves UsrB of UsrA.
The present invention can determine to resolve target GUI D according to the corresponding relation of described foundation and belong to which HSvr a client or HSvr according to the HCode of a GUID by setting up the corresponding relation of HCode and HSvr.
Provide several modes of setting up the corresponding relation of described HCode and HSvr to supply technical staff's reference below:
The corresponding relation of mode one, the described HCode of foundation and HSvr is: the corresponding relation of setting up the host IP address of HCode and HSvr.As shown in table 1:
Table 1
HCode The HSvr host IP address HSvr
126 The host IP address of HSvr-X HSvr-X
163 The host IP address of HSvr-B HSvr-B
163.com The host IP address of HSvr-B HSvr-B
352 The host IP address of HSvr-C HSvr-C
99 The host IP address of HSvr-A HSvr-A
Hotmail.com The host IP address of HSvr-C HSvr-C
live.com The host IP address of HSvr-C HSvr-C
MSN The host IP address of HSvr-C HSvr-C
QQ The host IP address of HSvr-A HSvr-A
qq.com The host IP address of HSvr-A HSvr-A
WY The host IP address of HSvr-B HSvr-B
yeah.net The host IP address of HSvr-B HSvr-B
According to table 1, client or HSvr can obtain the host IP address of corresponding HSvr according to a HCode.
Table 1 also can be split into a plurality of tables according to the HCode type.For example, the corresponding relation of domain name and HSvr is put in the table, the corresponding relation of IBC and HSvr is put in the another one table.
The corresponding relation of mode two, the described HCode of foundation and HSvr is: the corresponding relation of setting up the domain name of HCode and the corresponding HSvr of sensing.It is home domain name (HDomain, Home Domain) that the present invention claims to be used in reference to the domain name of the host IP address of HSvr.For example, by being set, HCode and the mapping table of the domain name of pointing to corresponding HSvr set up the corresponding relation of described HCode and HSvr, as showing shown in the 1-3:
Table 1-3
HCode HDomain HSvr
126 Point to the domain name of HSvr-X HSvr-X
163 Point to the domain name of HSvr-B HSvr-B
163.com Point to the domain name of HSvr-B HSvr-B
352 Point to the domain name of HSvr-C HSvr-C
99 Point to the domain name of HSvr-A HSvr-A
Hotmail.com Point to the domain name of HSvr-C HSvr-C
live.com Point to the domain name of HSvr-C HSvr-C
MSN Point to the domain name of HSvr-C HSvr-C
QQ Point to the domain name of HSvr-A HSvr-A
qq.com Point to the domain name of HSvr-A HSvr-A
WY Point to the domain name of HSvr-B HSvr-B
yeah.net Point to the domain name of HSvr-B HSvr-B
According to table 1-3, client or HSvr can obtain the domain name of pointing to corresponding HSvr according to a HCode
According to mode two, also set up the corresponding relation of the host IP address of domain name and corresponding HSvr, for example, domain name is host name, in name server (DNS, Domain Name Server), by the A record is set, described host name is directly pointed to the host IP address of corresponding HSvr; Perhaps, in DNS, by canonical name is set, domain name is pointed to indirectly the host IP address of corresponding HSvr.Like this, according to a HCode, corresponding domain name can be obtained, host IP address pointed can be obtained by this domain name of further parsing.
According to mode one, all under the clearer and more definite situation, client or HSvr can set up the corresponding relation of described HCode and HSvr in this locality at HSvr and HCode.Generally, HSvr can not determine HSvr and the corresponding HCode that will connect in advance fully, to this, a server (GUIDAS of GUID alliance also can be set, GUID Alliance Server), the corresponding relation with described HCode and HSvr is saved among this GUIDAS, like this, each HSvr can obtain the host IP address of the HSvr of a HCode correspondence by visit GUIDAS, as Figure 1-1.
Be understood that, according to mode two, if the corresponding relation of described HCode and HSvr is preserved in this locality, perhaps in GUIDAS, preserve, then according to a HCode, from local search, perhaps visit GUIDAS, can obtain corresponding domain name; Further by domain name mapping, obtain the host IP address of this HCode correspondence.
The corresponding relation of mode three, the described HCode of foundation and HSvr is: the domain name constructing module is set, by the domain name constructing module that arranges, comes to produce corresponding HDomain according to HCode.For example, the domain name constructing module arranges domain name constructed fuction or domain name building method or domain name structure expression formula, by domain name constructed fuction or domain name building method or the domain name structure expression formula that arranges, comes to produce corresponding HDomain according to HCode.
Correspondingly, in DNS, allow this HDomain directly or indirectly point to the HSvr host IP address.For example, in DNS, by the A record is set, allow this HDomain directly point to the HSvr host IP address, perhaps, by canonical name is set, allow this HDomain point to the HSvr host IP address indirectly.
For example, for domain name kind HCode, can arrange domain name structure expression formula and be: " HomeServer. "+HCode, like this, the HDomain of HCode value 163.com correspondence is HomeServer.163.com, and the HDomain of HCode value yeah.net correspondence is HomeServer.yeah.net.In DNS, by adding corresponding A record or canonical name, with the host IP address of HomeServer.163.com and HomeServer.yeah.net sensing HSvr-B.Equally, the HDomain of HCode value qq.com correspondence is HomeServer.qq.com, in DNS, by adding the host IP address that corresponding A record or canonical name point to HomeServer.qq.com HSvr-A.By domain name mapping, can obtain the HSvr host IP address of a HDomain correspondence.Like this, for this GUID of [email protected], UsrA client or HSvr-A are HomeServer.163.com by the HDomain that domain name structure expression formula obtains, and by resolving HomeServer.163.com, obtain the IP address of HSvr-B.
For IBC class HCode, can arrange domain name structure expression formula and be: HCode+ " .IBCode ", like this, the HDomain of IBC value 163 correspondences is 163.IBCode, the HDomain of IBC value WY correspondence is WY.IBCode.In DNS, by adding corresponding A record or canonical name, with the host IP address of 163.IBCode and WY.IBCode sensing HSvr-B.Equally, the HDomain of IBC value 99 correspondences is 99.IBCode, in DNS, by adding the host IP address that corresponding A record or canonical name point to 99.IBCode HSvr-A.Like this, for this GUID of zhangliao#163, UsrA client or HSvr-A are 163.IBCode by the HDomain that domain name structure expression formula obtains, and by resolving 163.IBCode, obtain the IP address of HSvr-B.
For shadow sign indicating number class HCode, can arrange domain name structure expression formula and be: NBC+ ". "+CC+ " .homesvr ", like this, for H2T value (86,133), the HDomain of correspondence is 133.86.homesvr.In DNS, by adding corresponding A record or canonical name, 133.86.homesvr is pointed to the host IP address of HSvr-B.Equally, the corresponding HDomain of H2T value (91,92) is 92.91.homesvr, in DNS, by adding corresponding A record or canonical name, 92.91.homesvr is pointed to the host IP address of HSvr-A.Like this, for this shadow sign indicating number of 86*133*16882012, UsrA client or HSvr-A are 133.86.homesvr by the HDomain that domain name structure expression formula obtains, and by resolving 133.86.homesvr, obtain the IP address of HSvr-B.
Certainly, HCode for any kind, can be by agreement domain name structure expression formula: HCode+ " .HomeSvr ", obtain the HDomain of a HCode correspondence, like this, the HDomain of HCode value 163.com correspondence is 163.com.homesvr, and the HDomain of HCode value WY correspondence is wy.homesvr.In DNS, by adding corresponding A record or canonical name, with the host IP address of 163.com.homesvr and wy.homesvr sensing HSvr-B.
In the middle of the reality, can increase new record type in DNS, the present invention is referred to as the H type, is used to refer to one and is recorded as the H record.Record the host IP address that a domain name is directly or indirectly pointed to corresponding HSvr by a H.In this case, for domain name kind HCode, described expression formula can directly be HCode, and namely the HDomain of a HCode correspondence is this HCode self.For example, the record of the H among the DNS can be as shown in table 2.
Table 2
Title Refresh interval Type Host name or IP address
163.com 3600 seconds H 119.84.66.17
yeah.net 3600 seconds H 163.com
99.IBCode 3600 seconds H 119.147.15.56
According to the H record shown in the table 2, wanting accessed record according to a domain name and being used to indicate is the record type value of H record, can obtain the host IP address of correspondence by visit DNS.
According to mode three, the corresponding relation that the domain name constructing module is set up described HCode and HSvr is set, the domain name constructing module by arranging to produce corresponding HDomain according to HCode like this.Further by domain name mapping, for example, according to this HDomain, by visit DNS, obtain the host IP address of this HCode correspondence.
Like this, the HCode that pass-through mode one or mode two or mode three are set up and the corresponding relation of HSvr according to a HCode, can obtain corresponding host IP address.
A HSvr can be according to the HCode of a GUID, corresponding relation according to described HCode and HSvr obtains corresponding host IP address, by judging whether corresponding host IP address is the IP address of this HSvr oneself, and this HSvr can confirm whether this GUID belongs to oneself.
HSvr also can further preserve one's own relevant HCode, be a kind of HCode of special shape and the corresponding relation of HSvr, like this, whether be that one's own HCode can confirm directly whether a GUID belongs to oneself by the HCode that judges a GUID.
HSvr can read one's own HCode from self HCode configuration file.Perhaps, HSvr reads one's own domain name from self domain name configuration file, reads one's own IBC from self IBC configuration file.
In the middle of the reality, also can set up the corresponding relation of IBC class or shadow sign indicating number class HCode and HSvr according to mode one or mode two, and set up the corresponding relation of domain name kind HCode and HSvr according to mode three.
Above-mentioned by setting up the corresponding relation of HCode and HSvr, client or HSvr-A can obtain the host IP address of the HSvr that a GUID belongs to.
According to analysis mode one, when the GUID of UsrA request analysis UsrB, carry out according to following steps:
Step 11, UsrA carry out addressing according to the GUID of UsrB, that is, the HSvr according to the HCode of the GUID correspondence of UsrB determines the UsrB ownership namely resolves target HSvr; The message of having carried the GUID of UsrB is sent to this parsing target HSvr.
Here, UsrA is according to the HCode of the GUID correspondence of UsrB, obtains the host IP address of corresponding HSvr from the corresponding relation of the HCode as shown in table 1 that sets up and HSvr, related news sent to the HSvr of described correspondence according to this IP address.Because UsrB belongs to HSvr-B, namely its HCode is corresponding to HSvr-B, and therefore, the message that UsrA just will carry the GUID of UsrB sends to HSvr-B.
Step 12, described parsing target HSvr receive the message from UsrA, according to the GUID of UsrB, obtain the IP address of the UsrB of registration, and the IP address that obtains is sent to UsrA.
Step 13, UsrA receive the IP address of the UsrB of described parsing target HSvr transmission.
As shown in Figure 2, be analysis mode one flow chart of the present invention.
Like this, IP address and the UsrB of the UsrA UsrB that just can obtain according to parsing carry out information interaction.
In step 12, if do not register the IP address corresponding to UsrB, then described parsing target HSvr can reply failed message to UsrA, perhaps, described parsing target HSvr is carried at the 0 IP address as UsrB and replys in the message, like this, UsrA judges that the IP address of UsrB is at 0 o'clock, just knows not login of UsrB.
In the middle of the reality, UsrA may need to resolve a lot of other users' GUID simultaneously, and for example the festive occasion sends SMS message for a plurality of good friends, and at this moment, the client of UsrA just may need to visit a lot of HSvr.In addition, HSvr is in security needs, does not generally directly respond the analysis request of the subscription client outside the IMS system.In this case, generally adopt analysis mode two.
According to analysis mode two, when the GUID of UsrA request analysis UsrB, carry out according to following steps:
Step 101, UsrA will carry parsing target GUI D, and namely the analysis request message of the GUID of UsrB sends to HSvr-A.
Step 102, HSvr-A receive the message from UsrA, carry out addressing according to the GUID of UsrB, that is, the HSvr according to the HCode of the GUID correspondence of UsrB determines the UsrB ownership namely resolves target HSvr; The message of having carried the GUID of UsrB is sent to this parsing target HSvr.
Here, HSvr-A is according to the HCode of the address information correspondence of UsrB, obtains the host IP address of corresponding HSvr from the corresponding relation of the HCode as shown in table 1 that sets up and HSvr, related news sent to the HSvr of described correspondence according to this IP address.Because UsrB belongs to HSvr-B, namely its HCode is corresponding to HSvr-B, and therefore, the message that HSvr-A just will carry the GUID of UsrB sends to HSvr-B.
Step 103, described parsing target HSvr receive the message from HSvr-A, according to the GUID of UsrB, obtain the IP address of the UsrB of registration, and the IP address that obtains is sent to HSvr-A.
Step 104, HSvr-A receive the message from the IP address of containing UsrB of described parsing target HSvr, and the IP address of UsrB is sent to UsrA.
Step 105, UsrA receive the IP address of the UsrB of HSvr-A transmission.
So just realized the purpose of the GUID of the parsing UsrB that UsrA asks.
As shown in Figure 3, be analysis mode two flow charts of the present invention.
In the middle of the reality, the GUID of UsrA request analysis may belong to HSvr-A, for example the GUID of UsrX.Therefore, step 102 further is: HSvr-A judges whether UsrB belongs to oneself, and namely whether the HCode of UsrB is had by HSvr-A after receiving message from UsrA, if then directly obtain the IP address of the UsrB that oneself preserves, and send to UsrA; If UsrB does not belong to oneself, namely the HCode of UsrB is not had by HSvr-A, then determines the HSvr of UsrB ownership according to the HCode of UsrB, and the message of having carried the GUID of UsrB is sent to this HSvr.
Perhaps, step 102 further is, after HSvr-A receives message from UsrA, determine the HSvr of UsrB ownership according to the HCode of UsrB, judge whether this HSvr is HSvr-A self, and for example whether the IP address is identical, if, then directly obtain the IP address of the UsrB that oneself preserves, and send to UsrA; If not, the message that then will carry the GUID of UsrB sends to this HSvr.
In fact, the GUID of UsrA possibility while request analysis UsrB and the GUID of UsrC, in this case, distinguish the IP address of acquisition corresponding to that GUID in order to allow UsrA be convenient to, in step 103, when described parsing target HSvr sends the IP address of UsrB to HSvr-A, can also further in message, carry the GUID of UsrB; Correspondingly, in step 104, when HSvr-A sends the IP address of UsrB to UsrA, also further in message, carry the GUID of UsrB.Like this, UsrA learns that according to the GUID of the UsrB that carries corresponding IP address is the IP address of UsrB, rather than the IP address of UsrC.
If do not register the IP address corresponding to UsrB, then HSvr-B replys failed message to HSvr-A, perhaps, the 0 IP address as UsrB is carried in the answer message, and like this, UsrA judges that the IP address of UsrB is at 0 o'clock, just knows not login of UsrB.
In the middle of the reality, above-mentioned message sends, for example between UsrA and the HSvr-B, or between UsrA and the HSvr-A, or the message between HSvr-A and the HSvr-B sends, can be to finish by IP-based UDP (User Datagram Protocol) packet, also can be to fetch by the communication link of setting up to finish.
For example, in step 101, UsrA can send related news to HSvr-A by the UDP message bag.UsrA also can establish a communications link with HSvr-A, and the present invention claims client, comprises browser, to the connection for CS that communicates to connect of server.Connect UsrA by the CS that sets up and send described message to HSvr-A.
Also for example, in step 102, HSvr-A can send related news to HSvr-B by the UDP message bag.HSvr-A also can establish a communications link with HSvr-B, and the present invention claims HSvr the connection for SS that communicates to connect to HSvr.Connect HSvr-A by the SS that sets up and send described message to HSvr-B.
Usually, described CS connection is that TCP (Transmission Control Protocol) connects.It can be that TCP connects that described SS connects, and also can be to adopt other technology, and what for example ATM (Asynchronous Transfer Mode) technology, or agreement was set up communicates to connect.Being connected with SS with described CS connection below is that TCP is connected to example.
When setting up the CS connection, usually, be that HSvr provides IP address and port numbers as the TCP server, connected by subscription client.Being used for setting up tcp server port that CS connects number can also can be unified to arrange by each IMS oneself regulation.
When setting up the SS connection, usually, be that the HSvr that receives connection request provides IP address and port numbers as the TCP server, bring in connection by the HSvr that initiates connection request as TCP client.Usually, unified agreement is used for setting up tcp server port that SS connects number, and for example, arranging unified port numbers is 1868.Certainly, also can in table 1, increase port number field, set up tcp server port that SS connects number in order to being used for of specializing that corresponding HSvr provides.
Usually, connect at the TCP that sets up, Hu Tongxin both sides respectively have a socket (Socket) correspondingly mutually, referring to the technical data of unix or linux socket aspect.Socket is a data structure that description communicates to connect, and generally comprises five part essential informations: protocol description information, local ip address, local port number, peer IP address and peer port number.Though, by local ip address, local port number, four partial informations such as peer IP address and peer port number can uniquely determine that a TCP is connected.But, use for making things convenient for application layer, at described data structure, there is a numbering corresponding with it, usually, claims this to be numbered socket descriptor (SktD, Socket Descriptor), like this, application layer just can be identified different TCP by different SktD and connect.
For example, the TCP client produces a socket by Socket () function call, obtain a SktD, and by connect () function call, this socket is carried out initialization, after successful initialization, the SktD of correspondence as the parameter that sends function send () or receiver function recv (), can be carried out transmission or the reception of data.
Also for example, the TCP server produces a socket by Socket () function call, obtains a SktD, and by bind () function call, this socket is carried out the local parameter initialization.The TCP server is converted to this socket by listen () function call and intercepts socket, in order to wait for the connection request of client, and obtain socket at different TCP clients by accept () function call, and SktD, this SktD as the parameter that sends function send () or receiver function recv (), can be carried out transmission or the reception of data.
Usually, connect for CS, HSvr is as the TCP server, the connection request that the listen for user client-side is initiated, and when setting up TCP and connect, create the socket (USoSS, UserSide-oriented Server Socket) of user oriented client-side.Connect for SS, HSvr intercepts the connection request that other HSvr initiates as the TCP server, and when setting up the TCP connection, creates the socket (PHoSS, PeerHSvr-oriented Server Socket) towards other HSvr; HSvr initiates connection request as the TCP client to other HSvr, and when setting up the TCP connection, creates the socket (PHoCS, PeerHSvr-oriented Client Socket) towards other HSvr.
In the middle of the reality, when UsrA initiate to resolve the request of GUID of UsrB, UsrX may initiate to resolve the request of the GUID of UsrY, at this moment, distinguish different response messages for convenience, in step 102, when the message of the GUID that will carry UsrB sends to described parsing target HSvr, in message, carry requestor's relevant information, like this, distinguish different response messages by described request person's relevant information, described request person's relevant information can be the corresponding client of requestor, for example the hyphen of corresponding CS connection preferably, is requestor's GUID.For example, in step 102, when the message of the GUID that will carry UsrB sends to described parsing target HSvr, further comprise the GUID of UsrA in the message; In step 103, when described parsing target HSvr sends to HSvr-A in the IP address that will obtain, in message, further carry the GUID of described UsrA; In step 104, HSvr-A sends to UsrA according to the GUID that is received from UsrA entrained in the message of described parsing target HSvr with the IP address of UsrB in this message.Referring to message flow graph as shown in Figure 4.
If HSvr-A does not set up the client of UsrA and the corresponding relation of UsrA, for example, UsrA does not log on HSvr-A, and then in step 101, UsrA also is included in the GUID of oneself in the described message.For example, UsrA sends described message by a UDP message bag.
If HSvr-A has set up the client of UsrA and the corresponding relation of UsrA, for example, UsrA has logined HSvr-A, and then HSvr-A can obtain the GUID of UsrA according to the client that sends message according to described corresponding relation.
Provide two kinds of modes of logining HSvr below:
Mode one, client send to Hsvr by the UDP message bag and land request message, GUID and password are landed in indication in landing request message, after HSvr receives this packet, obtain the corresponding password of preserving according to this GUID, login request message is verified, when checking is passed through, preserve the corresponding relation of this GUID and relative client.Whether for example, whether the password that judgement is preserved and the password of reception be consistent, for example equate, if consistent, then checking is passed through, otherwise, verify and do not pass through.
Usually, can preserve the corresponding relation of described client and GUID by online user's information table, as shown in table 3.Here, identify a client with client ip address and port numbers.
Table 3
GUID The IP address Port Remark
The GUID of UsrB The IP address of UsrB The port numbers of UsrB The online information of UsrB
The GUID of UsrY The IP address of UsrY The port numbers of UsrY The online information of UsrY
HSvr can also return the successful message of login to client after being proved to be successful.
In the middle of the reality, when HSvr registered the user, according to the registration account number, namely GUID had preserved corresponding password, the user account information table that ginseng is shown in Table 4.
Table 4
GUID Password Remark
The GUID of UsrB ******** The account record of UsrB
The GUID of UsrY ******** The account record of UsrY
Mode two, client and HSvr set up TCP and are connected, and after being connected to HSvr, send log messages, GUID and password are landed in indication in login message, after HSvr receives this log messages, from user account information as shown in table 4, obtain corresponding password according to this GUID, this log messages is verified, when checking is passed through, preserve the corresponding relation of this GUID and relative client.Whether for example, whether the password that judgement is preserved and the password of reception be consistent, for example equate, if consistent, then checking is passed through, otherwise, verify and do not pass through.
Referring to the online user's information table shown in the table 3-1.Here, the sign that connects with CS is as the sign of relative client.
Table 3-1
GUID CS connects Remark
The GUID of UsrB The SktD of CS1 The online information of UsrB
The GUID of UsrY The SktD of CS2 The online information of UsrY
HSvr can also return the successful message of login to client after being proved to be successful.
Equally, HSvr can also further preserve IP address and the port numbers of the corresponding client of obtaining.Referring to showing the online user's information table shown in the 3-2:
Table 3-2
GUID CS connects The IP address Port Remark
The GUID of UsrB The SktD of CS1 The IP address of UsrB The port numbers of UsrB The online information of UsrB
The GUID of UsrY The SktD of CS2 The IP address of UsrY The port numbers of UsrY The online information of UsrY
As show shown in the 3-2, if client does not need to carry out with HSvr other information interaction, so, client has been registered the IP address of oneself in HSvr after, can also disconnect and being connected of HSvr.Correspondingly, the corresponding CS connection of HSvr is set to a particular value, for example-100, represents that corresponding TCP connection disconnects.In this case, HSvr can identify a client with client ip address and port numbers.When client changes in the IP address of oneself, in HSvr, register new IP address again.
When client withdraws from, HSvr can be from described online user's information table with the record deletion of this client correspondence.
Need to prove, HSvr or during the UDP message bag, can obtain the IP address of opposite end by resolving corresponding IP protocol header when receiving the connection request of TCP client or other HSvr, by resolving corresponding Transmission Control Protocol head or udp header, can obtain the port numbers of opposite end.For example, use the socket technology, HSvr can obtain IP address and the port numbers of TCP client by accept () function when accepting connection request.HSvr can also obtain IP address and the port numbers of TCP client by getpeername () function.
Certainly, also can specify IP address or the port numbers of described client at the data division (non-protocol header) of log messages.Correspondingly, the IP address of preserving the client of obtaining according to described GUID can be to preserve described specially appointed IP address according to this GUID.
Can further include login time etc. the information of client type, version number and subscription client in the described log messages.For example described client type is proprietary type, the QQ client of Tengxun for example, and Hi client of Baidu etc. C type client also can be universal class, for example the client of browser form, i.e. category-B type client.
According to table 3-2, when customer end adopted mode one was logined, corresponding CS connection was set to particular value, for example-100.
According to the online user's information table shown in table 3-2, HSvr can obtain corresponding GUID according to the client that sends message.Like this, in step 101, described message can not carried the relevant information of UsrA, correspondingly, in step 102, HSvr-A is further according to the SktD of CS connection or according to client ip address and port numbers, obtain the GUID of UsrA according to the online user's information table shown in table 3-2, like this, when HSvr-A sends to described parsing target HSvr in the message of the GUID that will carry UsrB, just can further in message, carry the GUID of the UsrA that obtains.
The back is that table 3-2 is that example further specifies the present invention with described online user's information table.
For example, UsrA sets up CS with HSvr-A and is connected, and signs in to HSvr-A, and HSvr-A preserves the corresponding relation of UsrA and relative client by the online user's information table shown in table 3-2; UsrB signs in to HSvr-B, and HSvr-B preserves the corresponding relation of UsrB and relative client by the online user's information table shown in table 3-2.At this moment, the GUID of UsrA request analysis UsrB, carry out according to following steps:
Step 201, UsrA connect by the CS that sets up will carry parsing target GUI D, and namely the analysis request message of the GUID of UsrB sends to HSvr-A.
Step 202, HSvr-A connect by this CS, and also the SktD that namely connects according to this CS receives the message from UsrA, according to the SktD that this CS connects, obtain the GUID of UsrA according to the online user's information table shown in table 3-2.GUID according to UsrB carries out addressing, namely, judge whether UsrB belongs to oneself, whether the HCode that is UsrB is had by HSvr-A, if then directly according to the GUID of UsrB, obtain corresponding IP address according to the online user's information table shown in table 3-2, CS by the UsrA correspondence connects, and the IP address of UsrB is sent to UsrA; If UsrB does not belong to oneself, the HCode that is UsrB is not had by HSvr-A, then determine the HSvr of UsrB ownership according to the HCode of UsrB, namely resolve target HSvr, the message of having carried the GUID of the GUID of UsrB and UsrA is sent to this parsing target HSvr.
Here, HSvr-A according to the corresponding relation of described HCode and HSvr, obtains the host IP address of corresponding HSvr according to the HCode of UsrB, related news is sent to the HSvr of described correspondence according to this IP address.Because UsrB belongs to HSvr-B, namely its HCode is corresponding to HSvr-B, and therefore, the analysis request message that HSvr-A just will carry the GUID of the GUID of UsrB and UsrA sends to HSvr-B.
Step 203, HSvr-B receive the message from HSvr-A, according to the online user's information table shown in table 3-2, obtain the IP address of the UsrB of registration according to the GUID of UsrB, and the IP address that obtains and the GUID of UsrA are sent to HSvr-A.
Step 204, HSvr-A receive the answer message from the GUID of the IP address of containing UsrB of HSvr-B and UsrA, GUID according to UsrA, according to determining that as online user's information table of table shown in the 3-2 CS of UsrA correspondence connects, connect by this CS, the IP address of UsrB is sent to UsrA.
Step 205, UsrA receive the IP address of the UsrB of HSvr-A transmission.
Certainly, in step 101 step 201, UsrA will carry the message of resolving target GUI D when sending to HSvr-A, also oneself GUID can be included in the described message, but like this, UsrA can transmit the GUID of falseness to UsrB.
The present invention for convenience of description defines a kind of simple message format here, but is not used in restriction the present invention:
ToUsr: being used to specify the parsing target of message, is resolve target GUI D part or all of;
FromUsr: being used to specify the analysis request person of message, is the part or all of of requestor GUID;
MsgCode: message code (MsgCode, Message Code): for example, GetIP, the IP address of resolving target is obtained in indication; ResGetIP, indication replying corresponding GetIP message.
MsgContent: message content.When MsgCode=GetIP, be null; When MsgCode=ResGetIP, be to resolve the IP address of target, or failure flags value or descriptor.
Like this, just can be filled up to the GUID of UsrB among the ToUsr, the GUID of UsrA is filled up among the FromUsr.
For convenience of description, the present invention will be according to resolving target, and for example ToUsr carries out addressing, that is, the addressing purpose also claims forward message (FwMsg, Forward Message) for the message of resolving target is called the target addressed messages; Will be according to the requestor, for example FromUsr carries out addressing, that is and, the addressing purpose is requestor's the source that the news that addressed messages, is also referred to as and replys message (ResMsg, Response Message).
Usually, distinguishing a message by MsgCode is FwMsg or ResMsg.In the middle of the reality, can represent the forward message code with odd number, represent to reply message code with even number.For example, forward message code GetIP=21, corresponding answer message code ResGetIP=22.Message described in the present invention unless specialize, generally refers to FwMsg.
In step 102, HSvr-A can be connected by the SS with HSvr-B foundation, sends corresponding message to HSvr-B.HSvr-A can determine the HSvr of UsrB ownership according to the GUID of UsrB, namely obtains the host IP address of HSvr-B, and passes through the port numbers of this IP address and agreement, and for example unified agreement 1868 is connected to HSvr-B; Connect by this SS, the message that HSvr-A will carry the GUID of UsrB sends to HSvr-B.And in the step 103, HSvr-B can also connect to come to HSvr-A transmission ResMsg by this, the mechanism of for example taking to block is handled the message of receiving, add the sign that connects perhaps for the message of receiving, be put in the message queue, and when handling this message, determine to send the connection that ResMsg will use according to the sign that is inserted into the connection in the message, the present invention below will introduce the stronger processing mode of autgmentability.
In fact, in the operating environment that interconnects normally, information interaction between two HSvr may be very frequent, therefore, when HSvr-A is connected to HSvr-B, sent corresponding analysis request message, and after receiving relevant answer message, this connection does not need to disconnect, and comes from the analysis request message of HSvr-B so that receive, or sends new analysis request message to HSvr-B.In this case, preferably, HSvr preserves the corresponding relation that HCode is connected with SS, so that when sending message between HSvr, determines the required SS connection of passing through of the described message of transmission according to the HCode of addressing purpose GUID in the message.For example, the corresponding relation that HCode is connected with SS is saved in the table 5.
Table 5
HCode SS connects Remark
163.com The SktD of SS1 HSvr-B
yeah.net The SktD of SS1 HSvr-B
Hotmail.com The SktD of SS2 HSvr-C
live.com The SktD of SS2 HSvr-C
163 The SktD of SS1 HSvr-B
352 The SktD of SS2 HSvr-C
MSN The SktD of SS2 HSvr-C
WY The SktD of SS1 HSvr-B
Like this, in step 102, HSvr-A judges whether UsrB belongs to oneself after receiving message from UsrA, if then directly obtain the IP address of the UsrB that oneself preserves, and send to UsrA; If UsrB does not belong to oneself, then from the HCode shown in the table 5 and corresponding relation that SS connects, determine that corresponding SS connects according to the HCode of UsrB, the message that connects the GUID that will carry UsrB by this SS sends, and namely sends to the HSvr of correspondence.For example, use the SktD of the SS connection of determining as parameter, use send () function, the message of having carried the GUID of UsrB is sent.
HSvr-A also can be according to the corresponding relation of described HCode and HSvr, the host IP address of the HCode correspondence of the UsrB that obtains, and judge whether it is the IP address of oneself, if then UsrB belongs to oneself, otherwise do not belong to oneself.Preferably, HSvr-A preserves one's own relevant HCode in advance, and HSvr-A judges whether the HCode of UsrB is had by own, if then UsrB belongs to oneself, otherwise does not belong to oneself.
Of particular note, the corresponding relation that described HCode is connected with SS is actually a kind of special shape of the corresponding relation of HCode and HSvr, and the SS that namely opposite end HSvr (PeerHSvr, Peer HSvr) is relevant connects the corresponding relation with HCode.Therefore, in the middle of the reality, HSvr-A can also be according to the corresponding relation of described HCode and HSvr, the perhaps one's own relevant HCode that preserves in advance, in table 5, add some special records, the HCode of described special record is had by HSvr-A oneself, and corresponding SS is connected to a certain particular value, for example-100.As show shown in the 5-1:
Table 5-1
HCode SS connects Remark
163.com The SktD of SS1 HSvr-B
qq.com -100 null
yeah.net The SktD of SS1 HSvr-B
Hotmail.com The SktD of SS2 HSvr-C
live.com The SktD of SS2 HSvr-C
99 -100 null
163 The SktD of SS1 HSvr-B
352 The SktD of SS2 HSvr-C
MSN The SktD of SS2 HSvr-C
QQ -100 null
WY The SktD of SS1 HSvr-B
Like this, in step 102, after HSvr-A receives message from UsrA, from the HCode shown in the table 5-1 and corresponding relation that SS connects, determine corresponding SS connection according to the HCode of UsrB, whether the SS connection of judging described correspondence is-100, if illustrate that then the GUID of UsrB belongs to oneself, then directly obtain the IP address of the UsrB that oneself preserves, and send to UsrA; If it is not-100 that the SS of described correspondence connects, then, the message that connects the GUID that will carry UsrB by this SS sends to corresponding HSvr.
In the middle of the reality, among the HSvr, the corresponding relation that the HCode shown in table 5 or table 5-1 is connected with SS, corresponding SS connects according to the C/S type that connects and is divided into two kinds: PHoSS type and PHoCS type.
Therefore, according to the C/S type that SS connects, can or show the 5-1 separated into two parts with table 5, that is, and the mapping table that HCode is connected with the PHoSS type, the mapping table that HCode is connected with the PHoCS type.
In the middle of the reality, in order to improve retrieval rate, HSvr can be saved in HCode respectively in the different tables with the corresponding relation that SS connects according to dissimilar HCode.For example, the corresponding relation that IBC is connected with SS is saved in as among the following table 5-2, and the corresponding relation that H2T is connected with SS is saved in as among the following table 5-3:
Table 5-2
IBC SS connects Remark
163 The SktD of SS1 HSvr-B
352 The SktD of SS2 HSvr-C
MSN The SktD of SS2 HSvr-C
WY The SktD of SS1 HSvr-B
Table 5-3
CC NBC SS connects Remark
86 35 The SktD of SS2 HSvr-C
86 133 The SktD of SS1 HSvr-B
86 139 The SktD of SS1 HSvr-B
86 163 The SktD of SS1 HSvr-B
86 352 The SktD of SS2 HSvr-C
91 183 The SktD of SS1 HSvr-B
91 562 The SktD of SS1 HSvr-B
91 581 The SktD of SS1 HSvr-B
In the middle of the reality, can reach the agreement of mutual parsing the other user's GUID between Tengxun, Netease and the Microsoft, and issue one's own HCode respectively, like this, Tengxun can be according to the HCode of issue, according to the corresponding relation of described HCode and HSvr, obtain the host IP address of corresponding HSvr, perhaps according to the HCode of issue, obtain corresponding HDomain, obtain the host IP address of corresponding HSvr by operations such as domain name mappings.Set up SS with these HSvr respectively and be connected, and according to the corresponding relation of described HSvr and HCode, set up the corresponding relation that HCode as shown in table 5 is connected with SS.
Also for example, Tengxun arranges a relevant HSvr description document in advance in HSvr-A, in this document, each HSvr is arranged, for example HSvr-B, HSvr-X and HSvr-C etc., host IP address, and the HCode that has of corresponding HSvr.HSvr-A is by loading this document, the initialization procedure of execution list 5: the host IP address that from described HSvr description document, reads a HSvr, with and the HCode that has, according to the host IP address that reads, set up and be connected with the SS of this HSvr, then according to the HCode of this HSvr correspondence, in table 5, set up the corresponding relation that these HCode are connected with this SS, then carry out same operation one by one at other the HSvr that describes in the described HSvr description document, like this, just can carry out initial configuration according to described HSvr description document his-and-hers watches 5.
Equally, the HSvr-B of Netease also comes the table 5 of initialization oneself according to the processing mode of the HSvr-A of Tengxun.Like this, Tengxun will set up two SS with Netease and be connected, and namely double T CP connects:
Have two towards the socket of HSvr-B in HSvr-A: 1, HSvr-A is as the TCP server, intercepts the connection request that HSvr-B initiates and set up TCP when connecting and the PHoSS that creates; 2, HSvr-A is as the TCP client, when initiating connection request and setting up TCP to connect to HSvr-B and the PHoCS that creates.HSvr-A sends message by described PHoCS to HSvr-B by the message of described PHoSS reception from HSvr-B.
Have two towards the socket of HSvr-A in HSvr-B: 1, HSvr-B is as the TCP server, intercepts the connection request that HSvr-A initiates and set up TCP when connecting and the PHoSS that creates; 2, HSvr-B is as the TCP client, when initiating connection request and setting up TCP to connect to HSvr-A and the PHoCS that creates.HSvr-B sends message by described PHoCS to HSvr-A by the message of described PHoSS reception from HSvr-A.
Because TCP connects and can be used for two-way communication, therefore, HSvr-A and HSvr-B only need set up a TCP and be connected and can carry out information interaction.Therefore, HSvr-A is at the host IP address according to a HSvr reading, sets up with before the SS of this HSvr is connected, and can also further judge whether to have set up with the SS of this HSvr to be connected, if then in table 5, set up the corresponding relation that this SS connects the HCode that has with this HSvr.Like this, HSvr-A only sets up a TCP with HSvr-B and is connected.For example, HSvr-A searches peer IP address PHoCS or the PHoSS identical with the host IP address of described this HSvr that reads from each PHoCS of creating or PHoSS, judge whether to find, if find, then think this PHoCS or PHoSS correspondence and connected towards the SS of this HSvr, set up the corresponding relation that this SS connects the HCode that has with this HSvr; Otherwise, just carry out and set up the operation that is connected with the SS of this HSvr.
In the middle of the reality, the whole world has the SP of HSvr may be a lot, and other HSvr of a required connection of HSvr normally changes, or even uncertain, and the HCode that HSvr has also may change.Therefore, preferably, come corresponding relation data in the instead of manual admin table 5 by the mode of Dynamic Maintenance, the method of the corresponding relation that is connected with SS about HSvr dynamic and intelligent configuration HCode as shown in table 5, " communication means and system " patent of invention referring to submitting to simultaneously repeats no more here.
Need to prove, when actual enforcement is of the present invention, in above-mentioned each table, corresponding to the value of each SS link field, usually be the numbering that each HSvr internal distribution connects for this SS, for example, as SktD, or a pointer that points to this connecting object.For example, connect at this SS of SS1, the numbering of HSvr-A internal distribution is 123, and the numbering of HSvr-B internal distribution is 891, though HSvr-A distributes to the numbering difference that same SS is connected with HSvr-B, the two numbering by own internal distribution can be determined to same SS and connect.
In the present invention, the SS that HSvr obtains a GUID correspondence connects and refers to: according to the HCode of this GUID correspondence, according to the corresponding relation that described HCode is connected with SS, determine corresponding SS connection.The CS that HSvr obtains a GUID correspondence connects and refers to: according to this GUID, according to online user's information table shown in table 3-2, determine that corresponding CS connects.
Above-mentioned when communicating based on socket, describedly pass through a connection, for example CS connects or SS connects, a message is sent, refer to by the socket of this connection described message be sent, for example the socket descriptor according to this socket adopts send () or sendto functions such as () described message to be sent to the opposite end of this connection.
GUID with UsrA is sunquan#QQ below, and the GUID of UsrB is [email protected], and the GUID of UsrX is zhouyu#99, is example explanation UsrA request analysis [email protected], and the processing procedure of resolving zhouyu#99.
In this example, UsrA is connected to HSvr-A, and successfully logins, and has registered the IP address of UsrB among the HSvr-B, and HSvr-A has registered the IP address of UsrX.HSvr-A has set up SS with HSvr-B and has been connected.
It is as follows to resolve the [email protected] process:
At first, UsrA is as follows to HSvr-A transmission message:
FromUsr=null,
MsgCode=GetIP,
MsgContent=null
HSvr-A receives the above-mentioned message that UsrA sends, and according to clients corresponding, according to for example showing the online user's information table shown in the 3-2, obtains the GUID of UsrA, and FromUsr is set to sunquan#QQ.Because the domain name yeah.net among the ToUsr does not belong to HSvr-A, and belongs to HSvr-B, therefore, the SS of the ToUsr correspondence by this message of obtaining connects, and sends message as follows to HSvr-B:
FromUsr=sunquan#QQ,
MsgCode=GetIP,
MsgContent=null
HSvr-B receives the above-mentioned message that HSvr-A sends, according to the IP address of for example showing online user information table 3-2 shown in obtain registration of [email protected] from oneself preserving, the MsgCode of message is set to ResGetIP, the MsgContent value is set to the IP address of [email protected], according to the HCode value QQ among the FromUsr, determined SS connects according to the corresponding relation of oneself preserving as shown in table 5, replys this message to HSvr-A:
FromUsr=sunquan#QQ,
MsgCode=ResGetIP,
The IP address of [email protected]
HSvr-A receives above-mentioned answer message, according to FromUsr, determines that with the corresponding relation of relative users CS is connected according to the CS connection shown in table 3-2, should reply message by this CS connection and send to sunquan#QQ.
UsrA receives the IP address of the [email protected] of HSvr-A transmission.
It is as follows to resolve the zhouyu#99 process:
At first, UsrA is as follows to HSvr-A transmission message:
ToUsr=zhouyu#99,
FromUsr=null,
MsgCode=GetIP,
MsgContent=null
HSvr-A receives the above-mentioned message that UsrA sends, and according to the online user's information table shown in table 3-2, FromUsr is set to sunquan#QQ.
Because the IBC value 99 among the ToUsr belongs to HSvr-A, therefore, according to the IP address that as show online user information table 3-2 shown in obtain registration of zhouyu#99 from oneself preserving, the MsgCode of message is set to ResGetIP, and the MsgContent value is set to the IP address of zhouyu#99.According to FromUsr, believe that according to the online user shown in table 3-2 the definite CS of system's table connects, and should reply message by this CS connection and send to sunquan#QQ.Described message is as follows:
ToUsr=zhouyu#99,
FromUsr=sunquan#QQ,
MsgCode=ResGetIP,
The IP address of MsgContent=zhouyu#99
UsrA receives the IP address of the zhouyu#99 of HSvr-A transmission.
Above-mentioned, HSvr-B is when obtaining the IP address of registration according to [email protected], perhaps HSvr-A is when obtaining the IP address of registration according to zhouyu#99, if do not obtain the IP address of registering, for example, corresponding user is not online, then is written among the MsgContent of message as corresponding IP address 0.Certainly, also can return one-1 expression and resolve failure.
Equally, HSvr-B can be further be included in the port numbers of the UsrB that preserves in the answer message of analysis request, and like this, by resolving the GUID of UsrB, UsrA just can obtain IP address and the port numbers of UsrB simultaneously.Like this, the IP address of the UsrB that obtains by parsing of UsrA is connected UsrB or sends the UDP message bag to UsrB with port numbers.Especially, for the many home Web sites that are deployed on the same station server, just can be directly with the GUID of correspondence as its station address, i.e. URL(uniform resource locator) (URL, Uniform Resource Locator),<main frame partial information.
The GUID analytic method according to the present invention, after obtaining a GUID, by GUID is resolved, the user can obtain the IP address of a GUID correspondence, thereby can establish a communications link by the user of this IP address and this GUID sign, so just can reach the effect that intercoms mutually between the user who belongs to different HSvr.For example, obtained corresponding IP address by the GUID that resolves UsrB after, UsrA can be according to the port numbers of this IP address and agreement, for example 1891, initiate connection request, UsrB receives this connection request, establishes a communications link with UsrA (the present invention claims client to be connected to the CC that is connected to of client).Connect by this CC, UsrA and UsrB carry out the mutual of literal or information such as voice or video.
Based on described GUID analytic method, the present invention proposes a kind of communication means, is used for the communication between the realization different user.The following is the embodiment of described communication means:
At first, obtain the GUID of UsrB at step 301, UsrA.
For example, the Internet Protocol telephone terminal is obtained the GUID of the UsrB of user's input by receiving user's pushbutton signal.
Step 302, by resolving the GUID of UsrB, UsrA obtains corresponding IP address.
For example, according to above-mentioned GUID analytic method, the analysis request that UsrA will carry the GUID of UsrB sends to UsrA ownership HSvr, be HSvr-A, HSvr-A determines the HSvr that UsrB belongs to, i.e. HSvr-B according to the HCode of UsrB, the analysis request of carrying the GUID of UsrB is sent to HSvr-B, HSvr-B obtains corresponding IP address according to the GUID of UsrB from the online user's information table shown in table 3-2, and the IP address that obtains is sent to HSvr-A, sends to UsrA by HSvr-A.
The IP address that step 303, basis obtain, UsrA sends message to UsrB, or initiates connection request to UsrB and set up the CC connection.For example, according to the IP address that obtains and the port numbers of agreement, for example 1891, send the UDP message bag that has carried message content to UsrB, perhaps, according to the IP address that obtains and the port numbers of agreement, initiate connection request and set up CC to connect to UsrB, connect by this CC, send described message content to UsrB.
By communication means of the present invention, can effectively promote the Internet Protocol telephone terminal to the substituting of existing telecommunications network telephone terminal, thereby can reach the minimizing wasting of resources, save the effect of user's space.
When if HSvr logins in client, when the IP address of registration client, registered the port numbers of subscription client simultaneously, and, receiving when asking the corresponding IP of this GUID address, further return the port numbers of this GUID of registration, so, in step 302, by resolving the GUID of UsrB, UsrA also further obtains corresponding port numbers, correspondingly, step 303 further is: according to the IP address and the port numbers that obtain in step 302, UsrA sends message to UsrB, or initiates connection request to UsrB and set up the CC connection.
Above-mentioned HSvr when the IP address of registered user's client, has registered the port numbers of subscription client simultaneously when client is logined.In the middle of the reality, HSvr also can only register the IP address of client.Like this, after UsrA obtains the IP address of UsrB by parsing, port numbers that can be according to a preconcerted arrangement, for example 1891, connect UsrB or send the UDP message bag to UsrB.
UsrA is setting up when being connected with the CC of UsrB, or afterwards, further sends the GUID of oneself, and like this, UsrB just can obtain requestor's GUID, thereby reaches the effect of caller identification.
In order to prevent the similar number deceptive practices of (namely called with false calling number deception) that show arbitrarily, based on GUID analytic method of the present invention, a kind of caller identification method has been proposed also, fake to be used for the identification identity.
Described caller identification method first embodiment:
At first,, when receiving the connection request that UsrA initiates, or when receiving the GUID that UsrA sends, from the packet that receives, resolve and obtain source IP address in step 501, UsrB.
For example obtain source IP address as the IP address of originating party from the IP data pack protocol header parsing that receives.In the middle of the reality, when receiving the connection request that the UsrA client initiates, or during the UDP message bag, can obtain the IP address of opposite end by resolving corresponding IP protocol header, by resolving corresponding Transmission Control Protocol head or udp header, can obtain the port numbers of opposite end.
Step 502, UsrB according to GUID analytic method provided by the present invention, resolve this GIUD after receiving the GUID of UsrA transmission, obtain corresponding IP address.
For example send the request message of the described GUID of request analysis to HSvr-B, HSvr-B sends to HSvr-A with this request, Hsvr-A obtains the corresponding IP of this GUID address from the online user's information table shown in table 3-2, this IP address is sent to HSvr-B, and HSvr-B sends to UsrB with the IP address that receives again.
Step 503, UsrB judge whether the IP address that obtains is consistent with the IP address that obtains, for example whether identical in step 502 in step 501, if consistent, then with the GUID of described GUID as UsrA, otherwise, think that UsrA has sent false GUID.
UsrB judges that refusal established a communications link with UsrA when the GUID of UsrA transmission was the GUID of falseness, and perhaps further disconnection is connected with the CC that UsrA sets up.
Equally, after UsrA obtains corresponding IP address by the GUID that resolves UsrB, can send the UDP message bag to UsrB by the port numbers of this IP address and agreement, thereby reach the purpose that sends relevant information to UsrB.
UsrA may further include the GUID of UsrA, so that UsrB knows identity of the sender in sending to the UDP message bag of UsrB.
Described caller identification method second embodiment:
At first, at the UDP message bag that step 601, UsrB receive UsrA, from the packet that receives, resolve and obtain source IP address.For example obtain source IP address as the IP address of originating party from the IP data pack protocol header parsing that receives.
The GUID that step 602, UsrB obtain carrying from described UDP message bag according to described GUID analytic method, resolves this GIUD, obtains corresponding IP address.
Step 603, UsrB judge whether the IP address that obtains is consistent with the IP address that obtains, for example whether identical in step 602 in step 601, if consistent, then with the GUID of described GUID as UsrA, otherwise, think that UsrA has sent false GUID.
UsrB judges when UsrA has sent false GUID, can discard the message that UsrA sends.
By above-mentioned caller identification method, can prevent from utilizing caller ID to fake to carry out phone swindle or short message swindle.
When if HSvr logins in client, when the IP address of registration client, registered the port numbers of subscription client simultaneously, and, receiving when asking the request message of the corresponding IP of a GUID address, further returning the port numbers of this GUID of registration, so, when carrying out caller identification, can further identify caller according to port numbers.For example:
In step 501, further from the packet that receives, resolve and obtain source port number; In step 502, when resolving described GIUD, further obtain corresponding port numbers; Step 503 further is: UsrB judges whether the IP address that obtains is consistent with the IP address that obtains and port numbers with port numbers in step 502 in step 501, for example whether identical, if consistent, then with the GUID of described GUID as UsrA, otherwise, think that UsrA has sent false GUID.
Correspondingly, in step 601, further from the packet that receives, resolve and obtain source port number; In step 602, when resolving described GIUD, further obtain corresponding port numbers; Step 603 further is: UsrB judges whether the IP address that obtains is consistent with the IP address that obtains and port numbers with port numbers in step 602 in step 601, for example whether identical, if consistent, then with the GUID of described GUID as UsrA, otherwise, think that UsrA has sent false GUID.
By further according to port numbers caller being identified, can effectively identify virus or hacker and utilize the message of different port numbers transmissions or the connection request of initiation, thereby can further strengthen the fail safe of communication.
In order to satisfy the needs of most personal user's Web Hostings, the present invention proposes a kind of browsing method of resolving based on GUID.
The general type of existing URL is: the access mode of<URL 〉: //<main frame 〉:<port 〉/<path 〉, wherein,<main frame〉be host domain name or the host IP address of depositing resource.The present invention is by expansion URL definition, with in the existing definition of URL<main frame part is that " host domain name or host IP address " expands to<main frame part is " host domain name or host IP address or GUID ", thereby allow existing browser realize supporting visit based on GUID by upgrading.Like this, the effect by registration GUID just can reach registered domain name makes a large amount of personal user websites no longer need registered domain name in the DNS, thereby helps to control the expansion of DNS.
URL based on expansion can improve existing browsing method, in order to make browser can browse a resource on the corresponding main frame of GUID.As shown in Figure 5, be an embodiment flow chart of browsing method provided by the invention:
The expansion URL that step 901, analysis are obtained obtains<main frame〉part.
Step 902, judgement<main frame〉whether be the IP address partly, if, execution in step 907, otherwise execution in step 903.
Step 903, judgement<main frame〉whether be domain name partly, if then execution in step 905, otherwise execution in step 904.
Step 904, judgement<main frame〉whether be GUID partly, if then execution in step 906, otherwise, finish.
Step 905, according to this domain name, obtain corresponding IP address, execution in step 907 from the domain name mapping module.
Step 906, according to this GUID, obtain corresponding IP address, execution in step 907 from the identity parsing module.
Step 907, basis<main frame〉the corresponding IP address of part, obtain the indicated resource of this expansion URL from the main frame of correspondence.
The resource that step 908, processing are obtained.For example, described resource is a html file, and the resource that described processing is obtained is for showing this html file.
Usually, browser obtains an expansion URL by dual mode: the address field that provides by browser receives the expansion URL that the user imports, and clicks the super connection of text by the user and obtains the expansion URL that arranges in this super connection.
In step 905, the domain name parsing module is used for asking DNS according to the domain name that receives, and obtains the IP address of this domain name correspondence, and the IP address that obtains is returned to the requestor, for example browser.The domain name mapping module generally also arranges buffering area in this locality, and the IP address and the corresponding relation of the domain name of correspondence that obtain are preserved.Like this, the domain name mapping module according to this buffering area of domain name lookup of appointment, if find the IP address of this domain name correspondence, is then directly returned this IP address to the requestor earlier when receiving the request of a domain name mapping; If do not find, the domain name mapping request message that then will carry this domain name sends to DNS, DNS obtains corresponding IP address according to this domain name, and the IP address that obtains is returned to the domain name mapping module, and the domain name mapping module returns to the requestor with this IP address again.
In step 906, described identity parsing module is used for according to GUID analytic method provided by the invention, obtains the IP address of resolving target GUI D correspondence, and the IP address that obtains is returned to the requestor, for example browser.Equally, the identity parsing module also can arrange buffering area in this locality, and the IP address and the corresponding relation of corresponding GUID that obtain are preserved.Like this, the identity parsing module is searched this buffering area according to resolving target GUI D earlier when receiving the request of an identity parsing, if find the corresponding IP of this parsing target GUI D address, then directly return this IP address to the requestor; If do not find, then according to GUID analytic method as described in the GUID that resolves UsrB as UsrA, the IP address that obtains this parsing target GUI D correspondence returns to the requestor with the IP address that obtains.
Usually, described identity parsing module is for example logined the HSvr that GUID and login password sign in to this login GUID ownership accordingly in advance according to the login account that obtains.Described according to GUID analytic method provided by the invention, obtaining the IP address of resolving target GUI D correspondence refers to, the identity parsing module will carry the HSvr that the analysis request of resolving target GUI D sends to previous login, when the HSvr of described login judges that resolving target GUI D belongs to oneself, directly obtain the IP address of oneself registering according to this parsing target GUI D, the IP address that obtains is returned to the identity parsing module.D does not belong to oneself if the HSvr of described login judges this parsing target GUI, then will carry the HSvr that the analysis request of resolving target GUI D sends to this parsing target GUI D ownership, namely resolve target HSvr, resolve target HSvr and obtain the IP address of oneself registering according to this parsing target GUI D, the corresponding IP of this parsing target GUI D address that obtains is returned to the HSvr of described login, the corresponding IP of this parsing target GUI D address that the HSvr of described login will receive returns to the identity parsing module, the identity parsing module returns to the requestor with this IP address, for example browser.
In the middle of the reality, the identity parsing module can be an independently process, and browser is by system message, or internal memory shares, or mode such as file-sharing and this identity parsing module carry out information interaction.Browser also can be set up tcp/ip communication with this identity parsing module and be connected, fetch by the communication link of setting up and to carry out information interaction, for example, the port numbers that agreement identity parsing module provides to browser is 1813, like this, when browser is resolved a GUID at needs, can be 1813 process by connection local side slogan, reach the purpose of carrying out information interaction with described identity parsing module.
If at described<main frame〉corresponding main frame deploy a plurality of processes, then, in order to distinguish different processes, step 907 further is:
Step 907B, basis<main frame〉corresponding IP address and the port numbers of part, obtain the indicated resource of this expansion URL from the main frame of correspondence.
In step 907B, described port numbers is the port numbers of appointment among this expansion URL.If do not specify corresponding port numbers among this expansion URL, then described port numbers is the port numbers of agreement.For example, for the visit of World Wide Web (WWW), the port numbers of corresponding agreement is 80.
In step 906, the identity parsing module further obtains corresponding port numbers by resolving described GUID, and like this, in step 907B, described port numbers can be to resolve the port numbers that obtains from GUID.
In step 907B, according to<main frame〉the corresponding IP address of part, with a port numbers, obtaining the indicated file of described expansion URL from the main frame of correspondence can be: send a resource request UDP message bag according to described IP address and port numbers to this main frame, carried in the packet described URL<path part, described main frame basis<path〉partly obtain corresponding resource, for example expand the html file that is called htm for one, and return the resource of obtaining by a UDP message bag.
In step 907B, according to<main frame〉the corresponding IP address of part, with a port numbers, obtaining the indicated file of described expansion URL from the main frame of correspondence also can be: according to described IP address and port numbers, initiate connection request to this main frame, connect set up after, connect transmission resource request data bag by this, carried in the packet described URL<path part, described main frame basis<path〉part obtains corresponding resource, and returns the resource of obtaining.After receiving the respective resources that described main frame returns, can further carry out to connect and discharge, that is, disconnect and being connected of this main frame foundation.
By implementing improved browsing method, browser can like this, just can satisfy the demand of disposing individual sites according to GUID directly according to main frame of a GUID visit.
The present invention also provides a kind of HSvr, reference when implementing identity analytic method of the present invention for the technical staff.
A kind of HSvr comprises central processing module, communication access module, memory module.As shown in Fig. 6 frame of broken lines.
Described communication access module is used for the access communications network, carries out information interaction with client; Described communication access module also is used for setting up being connected with the SS of other HSvr, connects with described other HSvr by the SS that sets up and carries out information interaction.
Described memory module be used for to be preserved the online user's information table shown in table 3-2, and the corresponding relation that is connected with SS of HCode.
For the analysis request message of resolving target GUI D that comprises from client, central processing module is according to the HCode that resolves target GUI D, according to the HCode that sets up and the corresponding relation of HSvr, judge whether this parsing target GUI D belongs to oneself, if, then according to described parsing target GUI D, from the IP address that described online user's information table obtains this parsing target GUI D correspondence, return to the client of request; Otherwise the message that will comprise this parsing target GUI D connects and sends by being connected SS that corresponding relation determines according to the HCode of described parsing target with SS according to described HCode.
Central processing module can be when judging that this parsings target GUI D does not belong to oneself, is connected the SS connection that corresponding relation is determined according to the HCode of described parsing target with SS according to described HCode.
Central processing module also can be that first HCode according to described parsing target is connected the SS connection that corresponding relation is determined according to described HCode with SS, judge whether determined SS connects is particular value, for example-100, if, think that then this parsing target GUI D belongs to oneself, otherwise, think that this parsing target GUI D does not belong to oneself.Described HCode is connected in the corresponding relation with SS, comprises that some particular value SS connect, and this particular value SS connects corresponding HCode and had by this HSvr.
Reply message for an analysis request that comprises requestor GUID from other HSvr, central processing module is according to the requestor GUID in this message, determine corresponding client according to the online user's information table shown in table 3-2, should reply message and send to this client.
For from carrying of other HSvr resolve the analysis request message of target GUI D and requestor GUID, central processing module is according to resolving target GUI D, obtain the IP address of this parsing target GUI D correspondence from described online user's information table, HCode according to the requestor GUID in the request message, the corresponding relation that is connected with SS according to described HCode, determine that corresponding SS connects, connect by the SS that determines, will comprise that the answer message of this IP address and described request person GUID sends.
Described memory module is preserved the corresponding relation of HCode and HSvr, and central processing module obtains a HSvr that HCode is corresponding according to the HCode of described preservation with the corresponding relation of HSvr.
Perhaps, described communication access module be connected to setting preservation the GUIDAS of corresponding relation of described HCode and HSvr, shown in Fig. 6-1.Central processing module obtains the HSvr of a HCode correspondence by visit GUIDAS.
Perhaps, described central processing module is set up the corresponding relation of HCode and HSvr by the domain name constructing module is set, and by the domain name constructing module that arranges, obtains the HDomain of a HCode correspondence, and this HDomain points to corresponding HSvr.
The corresponding relation of described HCode and HSvr is the corresponding relation of the host IP address of HCode and HSvr.The described HSvr that obtains a HCode correspondence refers to obtain the host IP address of this HCode correspondence.
Perhaps, central processing module obtains the HDomain of a HCode correspondence by the domain name constructing module of setting.According to this HDomain, by domain name mapping, for example visit DNS, obtain corresponding host IP address.
Central processing module is according to the corresponding relation of described HCode and HSvr, and indication communication access module is set up SS with other HSvr and is connected, and the corresponding relation that is connected with the SS of described foundation at described other the corresponding HCode of HSvr of described storage device preservation.
Described storage device is used for preserving the HCode that HSvr has, and central processing module judges according to the HCode that the HSvr that preserves has whether a GUID belongs to oneself.
Described foundation is connected with the SS of other HSvr, and central processing module is connected to opposite end HSvr by the communication access module, sets up to be connected with the SS of described opposite end HSvr.For example, central processing module can be when the opposite end HSvr to a HCode correspondence sends message, judges when foundation is connected with the SS of this opposite end HSvr as yet, carries out to set up to be connected with the SS of this opposite end HSvr.Central processing module is according to this HCode, obtains the host IP address of this opposite end HSvr according to the corresponding relation of the HCode of described foundation and HSvr, and according to the host IP address that obtains, and sets up to be connected with the SS of this opposite end HSvr.
Described foundation is connected also with the SS of other HSvr, and central processing module is by the connection request of communication access module reception opposite end HSvr, and foundation is connected with the SS of described opposite end HSvr.
It can be to finish by the UDP message bag that described and client is carried out information interaction.In the middle of the reality, described communication access module also is used for receiving the client connection request, sets up to be connected with the CS of client; Described and client are carried out information interaction and are connected by the CS that sets up and finish.
Further, described memory module is also preserved user account information, preserves the corresponding relation of GUID and corresponding password in the described user account information.According to described user account information, described central processing module is verified the logging request of the subscription client of reception, and after checking is passed through, is preserved the corresponding relation of this client and relative users in described online user's information table.
For example, for the login request message that comprises login user GUID and login password from client, central processing module is according to this GUID, from described user account information table, obtain corresponding password, whether the password of judging login password and preservation is consistent, for example whether equate, if then return login success message to client.Described login request message is to send after the CS that client-requested is set up connects foundation, central processing module is after checking is passed through to login request message, and the corresponding relation that this GUID of preservation is connected with CS in described user's line information table is as the corresponding relation of this GUID and relative client.
Further, central processing module also obtains IP address and/or the port numbers of logging on client, and after login authentication is passed through, further preserve and comprise the IP address that obtains and/or the login relevant information of port numbers, for example, receive from client pass through login request message that the UDP message bag sends the time, perhaps when client is initiated to connect the connection request of ownership clothes server, or after having set up the CS connection, by this CS connect receive from the login request message of client the time, obtain IP address and/or the port numbers of client, and after checking was passed through to log messages, the GUID according to current login user in described online user's information table preserved this IP address and/or port numbers.
Further, for the registration message that comprises registered user GUID and account password from client, whether there has been this GUID in the central processing module judges account information table, if exist, then return registration failure, otherwise, in described account information table, create user account according to described registered user GUID and account password, and return the message that succeeds in registration to client.
Being preferred embodiment of the present invention only below, is not for limiting protection scope of the present invention.All in the spirit and principles in the present invention and so on, any modification of doing, improve, be equal to replacement etc. and all should be included within protection scope of the present invention.

Claims (10)

1. an identity analytic method is characterized in that, sets up the corresponding relation of HCode and HSvr; Said method comprising the steps of:
Ab, according to the HCode that resolves target GUI D correspondence, according to the corresponding relation of described HCode and HSvr, determine to resolve the HSvr that target belongs to, namely resolve target HSvr; To comprise that the analysis request message of resolving target GUI D sends to this parsing target HSvr;
Cd, described parsing target HSvr obtain the IP address of registration according to the parsing target GUI D that receives, reply the IP address that obtains.
2. method according to claim 1 is characterized in that, step ab further is:
A, client will comprise that the analysis request message of resolving target GUI D sends to the HSvr of ownership, i.e. source HSvr;
B, described source HSvr are according to the HCode of described parsing target GUI D correspondence, corresponding relation according to described HCode and HSvr, determine the HSvr of described parsing target GUI D ownership, namely resolve target HSvr, will comprise that the analysis request message of resolving target GUI D sends to this parsing target HSvr;
Step cd further is:
C, described parsing target HSvr obtain the IP address of registration according to the parsing target GUI D that receives, the IP address that obtains is sent to described source HSvr;
The described IP address that d, described source HSvr will receive sends to described client.
3. method according to claim 2 is characterized in that, described source HSvr sets up SS with described parsing target HSvr and is connected, and described source HSvr preserves the corresponding relation of this SS connection and corresponding HCode; Step b is described according to described parsing target GUI D, according to the corresponding relation of described HCode and HSvr, determine to resolve target HSvr and refer to, according to the HCode of described parsing target GUI D, according to the corresponding relation of the SS connection of preserving with corresponding HCode, determine corresponding SS connection; Describedly will comprise that the analysis request message of resolving target GUI D sends to this parsings target HSvr and refers to, connect by the SS that determines, will comprise that the analysis request message of parsing target GUI D sends.
4. a method of handling analysis request is characterized in that, said method comprising the steps of:
A, according to the HCode that resolves target GUI D in the request message, according to the HCode that sets up and the corresponding relation of HSvr, judge whether this parsing target GUI D belongs to oneself, if, execution in step b then; Otherwise, execution in step c;
B, directly obtain own IP address at described parsing target GUI D registration, send to the requestor, then finish;
C, according to the HCode that sets up and the corresponding relation of HSvr, will carry the HSvr that the message of resolving target GUI D sends to the HCode correspondence of described parsing target GUI D.
5. a communication means is characterized in that, said method comprising the steps of:
A, obtain purpose GUID;
B, parsing purpose GUID obtain corresponding IP address;
C, send message according to the IP address that obtains to the other side, perhaps, initiate connection request to the other side and set up CC and connect to be used for information interaction.
6. a caller identification method is characterized in that, said method comprising the steps of:
A, when receiving the connection request of caller, or when receiving the GUID that caller sends, from the packet that receives, resolve and obtain source IP address;
B, receive the GUID that caller sends after, by resolving described GIUD, obtain corresponding IP address;
Whether the source IP address that c, judgement obtain in step a is consistent with the IP address that obtains in step b, if consistent, then with the GUID of this GUID as caller; Otherwise, think that this GUID is not the GUID of caller.
7. method according to claim 6 is characterized in that, in step a, further obtains source port number; In step b, when resolving described GUID, further obtain corresponding port numbers; Step c further is: judge whether the source IP address that obtains is consistent with the IP address that obtains and port numbers with source port number in step b in step a, if consistent, then with the GUID of this GUID as caller; Otherwise, think that this GUID is not the GUID of caller.
8. a browsing method is characterized in that, obtains expansion URL, said method comprising the steps of:
The expansion URL that a, analysis are obtained obtains<main frame〉part, judgement<main frame〉when part is GUID, by resolving this GUID, obtain corresponding IP address;
B, according to corresponding IP address, obtain the indicated resource of this expansion URL from the main frame of correspondence;
The resource that c, processing are obtained.
9. method according to claim 8 is characterized in that, in step a, further obtains corresponding port numbers when resolving described GUID; Step b further is: according to resolving IP address and the port numbers that described GUID obtains, obtain the indicated resource of this expansion URL from the main frame of correspondence.
10. a HSvr is characterized in that, comprises central processing module, communication access module, memory module;
Described communication access module is used for the access communications network, carries out information interaction with client; Described communication access module also is used for setting up being connected with the SS of other HSvr, so that connect by the SS that sets up, carries out information interaction with described other HSvr;
Described memory module is used for preserving the corresponding relation that HCode is connected with SS;
Described memory module is preserved the corresponding relation of HCode and HSvr, to obtain a HSvr that HCode corresponding according to the HCode of described preservation with the corresponding relation of HSvr for central processing module;
Perhaps, described communication access module be connected to setting preservation the GUIDAS of corresponding relation of described HCode and HSvr, to be used for central processing module obtains a HCode correspondence by visit GUIDAS HSvr;
Perhaps, described central processing module is set up the corresponding relation of HCode and HSvr by the domain name constructing module is set, and to be used for the domain name constructing module by arranging, obtains the HDomain of a HCode correspondence, and this HDomain points to corresponding HSvr;
Whether central processing module is determined corresponding HSvr according to described HCode with the corresponding relation of HSvr according to the HCode of a GUID, be that own corresponding HSvr judges whether this GUID belongs to oneself by judging definite HSvr; Perhaps, whether central processing module determines that according to the corresponding relation that described HCode and SS connect corresponding SS connects according to the HCode of a GUID, be that particular value connects to judge whether this GUID belongs to oneself by judging that definite SS connects;
For the analysis request message of resolving target GUI D that comprises that receives, whether this parsing target GUI of central processing module judges D belongs to oneself, if then directly obtain own IP address at described parsing target GUI D registration, send to the requestor, then finish; Otherwise, by connecting according to the determined SS of corresponding relation that the HCode that preserves is connected with SS according to the HCode that resolves target GUI D, send having carried the analysis request message of resolving target GUI D.
For replying message from the analysis request of the IP address of resolving target GUI D correspondence comprising of other HSvr and applicant information, central processing module is according to the applicant information in this message, and the IP address of described parsing target GUI D correspondence is sent to corresponding requestor.
CN2012100413698A 2012-02-23 2012-02-23 Identity analysis method and device Pending CN103297444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100413698A CN103297444A (en) 2012-02-23 2012-02-23 Identity analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100413698A CN103297444A (en) 2012-02-23 2012-02-23 Identity analysis method and device

Publications (1)

Publication Number Publication Date
CN103297444A true CN103297444A (en) 2013-09-11

Family

ID=49097764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100413698A Pending CN103297444A (en) 2012-02-23 2012-02-23 Identity analysis method and device

Country Status (1)

Country Link
CN (1) CN103297444A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016192495A1 (en) * 2015-05-29 2016-12-08 阿里巴巴集团控股有限公司 Account theft risk identification method, identification apparatus, and prevention and control system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631140A (en) * 2009-08-03 2010-01-20 中兴通讯股份有限公司 Cluster server of instant communication system and method of inter-clusters communication
US20100069095A1 (en) * 2008-09-15 2010-03-18 Microsoft Corporation System and methods for communication between instant message users and short message service users
CN101883057A (en) * 2009-05-04 2010-11-10 上海赢思软件技术有限公司 Method and device for realizing instant messaging among multiple members in instant messaging group
CN101924644A (en) * 2009-06-15 2010-12-22 北京华智大为科技有限公司 Method and system for information interaction through domain name
CN102202015A (en) * 2011-06-09 2011-09-28 张李影 Method and system for realizing intercommunication among different kinds of instant messaging tools
CN102223293A (en) * 2010-04-16 2011-10-19 中兴通讯股份有限公司 Routing method of information requests and processing system
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100069095A1 (en) * 2008-09-15 2010-03-18 Microsoft Corporation System and methods for communication between instant message users and short message service users
CN101883057A (en) * 2009-05-04 2010-11-10 上海赢思软件技术有限公司 Method and device for realizing instant messaging among multiple members in instant messaging group
CN101924644A (en) * 2009-06-15 2010-12-22 北京华智大为科技有限公司 Method and system for information interaction through domain name
CN101631140A (en) * 2009-08-03 2010-01-20 中兴通讯股份有限公司 Cluster server of instant communication system and method of inter-clusters communication
CN102223293A (en) * 2010-04-16 2011-10-19 中兴通讯股份有限公司 Routing method of information requests and processing system
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment
CN102202015A (en) * 2011-06-09 2011-09-28 张李影 Method and system for realizing intercommunication among different kinds of instant messaging tools

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016192495A1 (en) * 2015-05-29 2016-12-08 阿里巴巴集团控股有限公司 Account theft risk identification method, identification apparatus, and prevention and control system
KR20180013998A (en) * 2015-05-29 2018-02-07 알리바바 그룹 홀딩 리미티드 Account theft risk identification method, identification device, prevention and control system
KR102138965B1 (en) 2015-05-29 2020-07-29 알리바바 그룹 홀딩 리미티드 Account theft risk identification method, identification device, prevention and control system
US11233812B2 (en) 2015-05-29 2022-01-25 Advanced New Technologies Co., Ltd. Account theft risk identification

Similar Documents

Publication Publication Date Title
US10425379B2 (en) Establishing unique sessions for DNS subscribers
US8370457B2 (en) Network communication through a virtual domain
CN100502367C (en) Method and device for saving domain name system record
CN101175097B (en) Resolution of flexible address schemes for IMS services
US8150912B2 (en) Systems and methods for providing customer-selected solutions for multiple datacenter website hosting
CN101997759B (en) Service implementation method and service system
CN108574744A (en) A kind of domain name analytic method, device, electronic equipment and readable storage medium storing program for executing
EP1305726A1 (en) Systems and methods of accessing network resources
CN101834910A (en) Domain name resolution method and device
CN102843391A (en) Information transmitting method and gateway
CN103685584B (en) A kind of anti-Domain Hijacking method and system based on tunneling technique
CN101499996B (en) Domain name differentiate parsing method and domain name server
CN100379227C (en) E-mail management device and E-mail transmission method
CN102474469A (en) A method and system for interworking between instant messaging service and short message service
CN102833262A (en) Whois information-based phishing website gathering, identification method and system
CN101282368A (en) Method and apparatus for storing DNS record, domain name analysis method and apparatus
CN105871698B (en) A kind of management method and system of instant messaging service
CN103338213A (en) Method, system and access gateway for intercommunication between local equipment and IMS (IP Multimedia Subsystem) network
CN104125310B (en) Message method based on semi-permanent address
CN101938789A (en) Method and system for selecting packet network gateway with designated capability
CN103297444A (en) Identity analysis method and device
JP3827415B2 (en) Terminal device for e-mail system
US20020069283A1 (en) Apparatus and method for providing communication service based on personal identifier in internet network
CN110677417A (en) Anti-crawler system and method
CN103297555A (en) Shadow code addressing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Wuhou District Shaoling road Chengdu city Sichuan province 610000 No. 29 2-2-3 Li Huaijiang

Applicant after: Wang Zhengwei

Address before: 610000 Sichuan city in Chengdu province Wuhou Temple Street No. 87 (empty Jiashuyuan) 1 Building 1 unit 3

Applicant before: Wang Zhengwei

WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130911

WD01 Invention patent application deemed withdrawn after publication