CN104954500B - Message addressing method based on semi-permanent address - Google Patents

Message addressing method based on semi-permanent address Download PDF

Info

Publication number
CN104954500B
CN104954500B CN201410116253.5A CN201410116253A CN104954500B CN 104954500 B CN104954500 B CN 104954500B CN 201410116253 A CN201410116253 A CN 201410116253A CN 104954500 B CN104954500 B CN 104954500B
Authority
CN
China
Prior art keywords
rsvr
accoaddr
message
hsvr
spaddr
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.)
Active
Application number
CN201410116253.5A
Other languages
Chinese (zh)
Other versions
CN104954500A (en
Inventor
王正伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201410116253.5A priority Critical patent/CN104954500B/en
Publication of CN104954500A publication Critical patent/CN104954500A/en
Application granted granted Critical
Publication of CN104954500B publication Critical patent/CN104954500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a kind of message addressing method based on semi-permanent address, for the message addressing across service-domain.In the method, due to source RSvr by a GSvr in other HSvr can into other HSvr any account sends message in any RSvr, simplify the communication interface of the source RSvr Yu other HSvr.A kind of message treatment method is also disclosed, for handling the message including purpose SPAddr.One kind is also disclosed and replies message processing method, the replying message including purpose SPAddr for RSvr of the GSvr processing from this HSvr.A kind of message treatment method is also disclosed, for handling the message including purpose SPAddr from client.A kind of guard station recognition methods across service-domain is also disclosed, for obtaining the RCode of an AccoAddr.A kind of HSvr is also disclosed.

Description

Message addressing method based on semi-permanent address
Technical field
The present invention relates to internet communication, more particularly in internet between two service-domains, based on partly forever The message addressing method of long address, and distribution HSvr.
Background technique
In internet communication, Radix Angelicae Sinensis belong to an attribution server (HSvr, Home Server) user (IUsr, Internet User) quantity it is enough when (for example, the QQ number of users of Tencent reaches 700,000,000) or these user distributions in one When a very big territorial scope, in order to improve service quality, generally, multiple child servers can be set, come respectively to corresponding User provide service.
For example, the HSvr includes several child servers.According to GUID (global Unified Identity, Global Unified Identity UCode (user code, User Code)) will belong to all of the HSvr according to certain mapping relations The account information of IUsr is stored in respectively in different child servers, and these accounts are addressed according to the mapping relations.Referring to Application No. is 02146090.6 " a method of store and read data information by data information key field " patents of invention.
The GUID can be the address email, is also possible to principal and subordinate's code, is also possible to a shadow code.About GUID and HSvr are more described, referring to application No. is " communication means and system " patents of invention of 201310037232.X, and Application No. is " shadow code addressing method " patents of invention of 201310049772.X.
Each account has an account address (AccoAddr, Account Address), to address for account.
The AccoAddr of the source account of one GUID is the GUID.
The AccoAddr of the migration account of one GUID be the corresponding cross-domain address code of the migration account (CDAddr, Cross-domain Address).The GUID is this base GUID (BaseGUID, The Base GUID) of the CDAddr, should CDAddr is migration account place across last HSvr information (CeSvrDesc, Cross-end HSvr Description) An ownership code (HCode, Home Code) of HSvr.About more descriptions of HCode, " communication means and it is referring to described System " patent of invention.About more descriptions of CDAddr, " GUID migration is supported referring to application No. is 201310079118.3 Network and related news processing method " patent of invention.
Each AccoAddr is by an address base (AddrBase, Address Base) and an address attribution (AddrHome, Address Home) is constituted.When an AccoAddr is a GUID, the AddrBase of the AccoAddr is The AddrHome of the UCode of the GUID, the AccoAddr are the HCode of the GUID;When an AccoAddr is a CDAddr When, the AddrBase of the AccoAddr is the BaseGUID of the CDAddr, and the AddrHome of the AccoAddr is the CDAddr CeSvrDesc.Such as AccoAddr value liubei@163.com, corresponding AddrBase is liubei, corresponding AddrHome is 163.com.
The HSvr of one AccoAddr ownership is HSvr pointed by the AddrHome of the AccoAddr.
The AddrHome of one account is the AddrHome of the AccoAddr of the account;The AddrBase of one account is The AddrBase of the AccoAddr of the account.
For 163 user of Netease: for UsrA and UsrB, according to the mapping relations that Netease is arranged, UsrA is mapped to net In easy Pekinese child servers, UsrB is mapped in the child servers in Netease Guangzhou.UsrC is Tencent qq user, according to Tencent The mapping relations of setting, UsrC are mapped in the child servers in Tencent Shanghai.
When UsrC sends message to UsrB, the child servers in Tencent Shanghai may will disappear according to nearest access way Breath is sent to the child servers in Netease Nanjing.After the child servers in Netease Nanjing receive the message, according to the mapping relations of Netease, Determine that UsrB in the child servers in Netease Guangzhou, transmits the message to the child servers in Netease Guangzhou, then again by Netease The child servers in Guangzhou transmit the message to UsrB.
Since UsrB is mapped relationship map into the child servers in Netease Guangzhou, although the corresponding user of UsrB is long-term Inhabitation Beijing can only remotely access the child servers in Netease Guangzhou when UsrB logs in the account of oneself every time.For described Remote access, UsrB can be registered in the child servers in Netease Guangzhou migrates child servers.In this way, UsrB is at Beijing, The child servers that UsrB is currently migrated, i.e. Netease's Pekinese's child servers can be registered in the child servers in Netease Guangzhou, and The account information of UsrB is saved in Netease's Pekinese's child servers.In this way, UsrB is when the account of oneself is logined in Beijing, just Netease's Pekinese's child servers can be directly entered.
When supporting UsrB to migrate to Pekinese, when UsrC sends message to UsrB, the sub-services in Tencent Shanghai Device transmits the message to the child servers in Netease Nanjing according to nearest access way.The child servers in Netease Nanjing receive this and disappear After breath, according to the mapping relations of Netease, the child servers in Netease Guangzhou are transmitted the message to, the child servers in Netease Guangzhou are sentenced Disconnected UsrB migrates to Beijing, then, then Netease's Pekinese's child servers is forwarded the message to, by Netease's Pekinese's child servers Transmit the message to UsrB.In this way, the detour of message is just produced, to influence messaging efficiency.
The child servers in Netease Nanjing are after receiving the message, according to the mapping relations of Netease, are also possible to from Netease That UsrB is inquired in the child servers in Guangzhou migrates information, then migrates information according to this and sends message.For example, if UsrB does not have It migrates, then directly sends the message to the child servers in Netease Guangzhou, by the child servers in Netease Guangzhou by the message It is sent to UsrB;If migrated, such as Netease's Pekinese's child servers are migrated to, then according to Netease's Pekinese's sub-services of acquisition The route related information of device directly sends the message to Netease's Pekinese's child servers, by Netease's Pekinese's child servers Transmit the message to UsrB.In this way, also will affect messaging efficiency, and influence the treatment effeciency of related child servers.
For message detour in the above-mentioned message transmission across between service-domain or inquiry is migrated, to produced by message transmission efficiency Influence, proposed in " message method based on semi-permanent address " patent of invention application No. is 201410098231.0 Message method based on semi-permanent address.This method first obtains the guard station server in purpose HSvr where purpose account The code of guard station corresponding to (RSvr, Residence Server) (RCode, Residence Code).To the purpose account When sending message, semi-permanent address (SPAddr, Semi- corresponding to the AccoAddr and the RCode according to the purpose account Permanent Address) or the semipermanent address email (SPEmailAddr, Semi-permanent email Address), the RSvr which being transmitted directly to where the purpose account, to improve messaging efficiency.
The SPAddr of one account includes RCode that the AccoAddr and RSvr where the account of the account is assigned etc. two Part.One SPAddr can be write as (AccoAddr, RCode) form.
The HCode that one HSvr is possessed can be domain name, and an AccoAddr can be the address email.
For example, the HCode that the HSvr of Netease is possessed is domain name 163.com, which includes a guard station identification service Device (RIDSvr, Residence Identification Server) and four RSvr.Wherein, positioned at Pekinese, RSvr is RSvr-10, the RSvr positioned at Guangzhou are RSvr-20, and the RSvr positioned at Shanghai is RSvr-21, and the RSvr positioned at Chengdu is RSvr- 28, the RCode being assigned are respectively 10,20,21,28.It, will in domain name system (DNS, Domain Name System) 10.163.com, four domain names such as 20.163.com, 21.163.com, 28.163.com are respectively directed to the host of this four RSvr Domain name 163.com is directed toward the host IP address of the RIDSvr by IP address.
The AccoAddr value of the account of Liubei is the address email liubei@163.com, and the account is in RSvr-28 In.The SPAddr value of so account of Liubei is exactly (liubei@163.com, 28).
In the RIDSvr, the RCode value according to AccoAddr value liubei@163.com registration is 28.
Machao needs long-term and liubei communication.
This side machao RSvr first parses the domain name of AccoAddr value liubei 163.com, obtains the RIDSvr's Host IP address sends guard station identification request to the RIDSvr, carries AccoAddr value liubei@163.com in request, described After RIDSvr receives the message, finding the corresponding RCode of AccoAddr value liubei@163.com is 28, by RCode value 28 Reply to this side machao.
In this way, this side machao, when sending message to liubei, so that it may with AccoAddr value liubei SPAddr value corresponding to 163.com and RCode value 28 (liubei@163.com, 28) sends message.For example, parsing Domain name 28.163.com corresponding to SPAddr value (liubei@163.com, 28), obtains the IP address of RSvr-28, will be corresponding Message be transmitted directly to RSvr-28.
Relevant more descriptions, referring to " message method based on the semi-permanent address " patent of invention.
When sending message according to SPAddr or SPEmailAddr, due to need to parse corresponding SPAddr or Domain name corresponding to SPEmailAddr, to obtain the IP address of the purpose RSvr, therefore, in order to improve domain name resolution efficiency, It generally, can be in local cache domain name mapping as a result, for use next time.But due in a HSvr, it is understood that there may be numerous RSvr, therefore, correspond to message sending side, the domain name mapping result for needing to cache will be multiplied, to influence inspection Rope efficiency.
In addition, when sending message to the proper account in each RSvr in another HSvr from a HSvr, due to being Corresponding RSvr is directly transmitted the message to, therefore, between two service-domains may need the communication connection established will be at Increase again.For example, have three RSvr such as RSvr-A10, RSvr-A25 and RSvr-A29 in the HSvr of Tencent's service-domain, Netease's clothes It is engaged in there are four RSvr such as RSvr-B10, RSvr-B20, RSvr-B21 and RSvr-B28 in the HSvr in domain, as shown in Figure 1, being two Instance graph is connected between HSvr, then, it may need the communication connection established that will reach 12 between two service-domains.As early as possible this 12 A communication connection may not exist simultaneously, but the both ends of each connection, corresponding to be all different RSvr.In this way, just unfavorable In the management of two HSvr interfaces, for example, the following communication security that may be considered between service-domain, prevents fraudster from accessing Deng.
Summary of the invention
In view of this, the present invention discloses a kind of message addressing method based on semi-permanent address, for across between service-domain Message addressing.In the method, can be appointed into other HSvr due to source RSvr by a GSvr in other HSvr Any account sends message and therefore simplifies the communication interface of the source RSvr Yu other HSvr in one RSvr.
A kind of message addressing method based on semi-permanent address, the destination address of the message is SPAddr;This method packet Include following steps:
A, source RSvr determines purpose GSvr according to the HCode of the purpose SPAddr of message, sends the message to described Purpose GSvr;
B, after the purpose GSvr receives the message, purpose RSvr is determined according to the RCode of the SPAddr, it will be described Message is sent to the purpose RSvr, and the destination address of message includes the AccoAddr of the SPAddr;
Step c, after the described purpose RSvr receives the message, target account is determined according to the purpose AccoAddr.
A kind of message treatment method, message including purpose SPAddr for GSvr processing from other HSvr or is used for RSvr handles the message including purpose SPAddr from client, method includes the following steps:
A, purpose RSvr is determined according to the RCode of the SPAddr;
B, the purpose RSvr is sent the message to, the destination address of message includes the SPAddr AccoAddr。
One kind replying message processing method, the returning including purpose SPAddr for RSvr of the GSvr processing from this HSvr Multiple message, method includes the following steps:
A, purpose RSvr is determined according to the RSvrCompDesc of the SPAddr;
B, described reply message is sent to identified RSvr.
A kind of message treatment method, for handling the message including purpose SPAddr from client, this method includes Following steps:
A, source RSvr judges whether the HCode for possessing the SPAddr, if it is not, according to the HCode of the SPAddr It determines purpose GSvr, sends the message to the purpose GSvr.
The HCode according to the SPAddr, which determines purpose GSvr further, is: parsing the HCode institute of the SPAddr Corresponding domain name obtains the IP address of corresponding ARSvr;According to the IP address, Xiang Xiangying ARSvr sends auxiliary analysis request, GI data are carried in request;After the ARSvr receives the auxiliary analysis request, according to the GI data wherein carried, phase is obtained The IP address is replied to the request side by the IP address for answering GSvr;The request flanks the IP address for receiving the GSvr;It is described It sends the message to the purpose GSvr to refer to, according to the IP address of the GSvr, sends the message.
A kind of guard station recognition methods across service-domain, for obtaining the RCode of an AccoAddr;This method includes following Step:
A, source request lateral root determines that purpose GSvr, Xiang Suoshu purpose GSvr are sent according to the AddrHome of the AccoAddr Guard station identifies request message, and the identification target carried in the request message is the AccoAddr;
B, after the purpose GSvr receives the message, which is sent to the RIDSvr of this HSvr;
C, after the RIDSvr receives the request message, according to the AccoAddr, corresponding RCode is obtained;
D, the RIDSvr replys acquired RCode to source request side.
A kind of HSvr, including GSvr and RSvr;Each RSvr is assigned a RCode;
The RSvr is for saving corresponding account information;
The GSvr is after receiving the message including purpose SPAddr from other HSvr, according to the SPAddr's RCode determines corresponding RSvr, sends the message to identified RSvr, and the destination address of message includes the SPAddr AccoAddr;
The RSvr is after receiving the message including purpose AccoAddr of the GSvr from this HSvr, according to the purpose AccoAddr determines target account.
The RSvr judges whether to possess described after receiving the message including purpose SPAddr from client The HCode of SPAddr, if it is not, then into cross-domain Message Processing process;Otherwise, into Message Processing process in domain.
The HSvr can further include RIDSvr, for providing guard station identification service;It is received in the RIDSvr After identifying request message to the guard station that one includes identification target, the corresponding RCode of the identification target is determined;Determined by reply RCode。
The HSvr further comprises ARSvr, for providing auxiliary analysis service;
Goal description record is provided in the ARSvr, include a parsing target in goal description record with Corresponding GI;The ARSvr is when receiving an auxiliary analysis request for carrying GI data, according to the GI data, from Corresponding parsing target is determined in the goal description record, gives identified parsing target retro to auxiliary analysis request person.
In technical solution provided by the above embodiment, due to can simplify communication interface of the RSvr towards other HSvr, because This, simplifies the processing of RSvr, and is conducive to the management to different HSvr information interactions.
Detailed description of the invention
Shown in Fig. 1, instance graph is connected between two HSvr.
Shown in Fig. 2, for the instance graph of distribution HSvr of the invention.
Shown in Fig. 3, for the process flow diagram of the message including purpose SPAddr from client.
Shown in Fig. 4, for the embodiment process of the cross-domain message addressing method based on semi-permanent address.
Shown in Fig. 5, to provide the HSvr of guard station identification service.
Shown in Fig. 6, the HSvr of RIDSvr is superimposed for GSvr.
It is the HSvr that RIDSvr merges with GSvr shown in Fig. 7.
Shown in Fig. 8, the HSvr of HashSvr is superimposed for GSvr.
It is the HSvr that HashSvr merges with GSvr shown in Fig. 9.
Shown in Figure 10, to receive the HSvr that overseas guard station identifies request message via GSvr.
It is the HSvr for including multiple GSvr shown in Figure 11.
Shown in Figure 12, the HSvr of GSvr is superimposed for RSvr.
It is the HSvr for including GRSvr shown in Figure 13.
It is the HSvr for including ARSvr shown in Figure 14.
It is the HSvr networking diagram of special recommendation of the present invention shown in Figure 15.
Specific embodiment
For the object of the invention, technical solution and advantage is more clearly understood, below with reference to embodiment, from many aspects into Row is described in detail.
The present invention is with { HCode that a HSvr is possessed is a domain name, and an AccoAddr is the address email } For, but it is not used in the restriction present invention.
The AddrHome of the AccoAddr of one SPAddr of the present invention is referred to as the HCode or AddrHome of the SPAddr.
The invention proposes a kind of HSvr, the HSvr includes critical point server (GSvr, GateWay Server) and stays Ground server (RSvr, Residence Server).The HCode of the GSvr and RSvr is the HCode of this HSvr.
As shown in Fig. 2, for the instance graph of distribution HSvr of the invention.In the figure, including two HSvr:HSvr-A and HSvr-B.Wherein, HSvr-A includes GSvr:GSvr-A and three RSvr: being located at Pekinese RSvr-A10, is located at Nanjing RSvr-A25 and RSvr-A29 positioned at Xi'an;HSvr-B includes GSvr:GSvr-B and four RSvr: being located at Beijing RSvr-B10, the RSvr-B20 positioned at Guangzhou, the RSvr-B21 positioned at Shanghai and the RSvr-B28 positioned at Chengdu.
Wherein, the HCode of HSvr-A is qq.com, and the HCode of HSvr-B is 163.com.
Corresponding account information is saved in the RSvr.
The RSvr that RSvr where the corresponding account of one AccoAddr is the AccoAddr.
It generally, may include these attributes: AccoAddr or AccoAddr in the account information of an account AddrBase, Password, ClientIP and ClientPort, etc..Wherein, Password is the password of proper account, ClientIP and ClientPort is the online information of proper account.When an account, which is in, logins state, accordingly ClientIP and ClientPort corresponds to the IP address and port numbers of the client of the account;State is published when the account is in When, generally, corresponding ClientIP and/or ClientPort are null value null or 0, be can also appear as no corresponding online Record.
The RSvr available IP address and port numbers for logging in client in an Account Logon, and will acquire IP address and port numbers are stored in ClientIP the and ClientPort attribute of the account.
More descriptions about account information are referring to " the communication means and system " patent of invention.
The RSvr can save the account information of proper account by account information table as shown in table 4.
Table 4
AccoAddr Password ClientIP ClientPort
liubei@163.com ******** Corresponding IP address Respective end slogan
xushu@163.com ******** Corresponding IP address Respective end slogan
If the port numbers of subscribed client, in table 4, it is convenient to omit the part ClientPort.
Each RSvr is assigned a guard station code RCode, for identifying a RSvr in corresponding HSvr.It is practical On, the RCode can be used as the ID of trace route path in a HSvr, the road planned in HSvr to identify a RSvr Diameter.
The RCode can be a simple coding, such as: jing, guang, hu;It is also possible to one by a connection The multiple subdomain strings to get up, such as: shen.guang, guang.shen, 10.86,86.10, etc.;Or it is connected by back slash The path got up, for example, guang shen, 86 10, etc..Certainly, the RCode is also possible to the corresponding location RSvr Fixed-line telephone area code, behind as example, but be not used in restriction.
Below with the RCode that the RCode that the RCode of RSvr-A10 is 10, RSvr-A25 is 25, RSvr-A29 for 29, The RCode that the RCode that the RCode that the RCode of RSvr-B10 is 10, RSvr-B20 is 20, RSvr-B21 is 21, RSvr-B28 is 28 } for.
The RCode of the RSvr of one AccoAddr is the RCode of the AccoAddr.
The GSvr executes following process after receiving the message including purpose SPAddr from other HSvr:
Step G11, purpose RSvr is determined according to the RCode of the SPAddr.
Step G12, the purpose RSvr is sent the message to, the destination address of message includes the SPAddr AccoAddr。
Generally, in step G12, the destination address for being sent to the message of the purpose RSvr can directly be institute State SPAddr.
RSvr routing table in domain, the address information for RSvr corresponding in register HSvr are set in the GSvr (RSvrAddr, RSvr Address).Referring to RSvr routing table in domain as shown in table 7:
Table 7
In table 7, the RSvrAddr of the RSvr is registered according to the RCode of a RSvr.
The step G11 is further step G11A: according to the RCode of the SPAddr, according in domain as shown in table 7 RSvr routing table determines the RSvrAddr of purpose RSvr.Correspondingly, the step G12 is further step G12A: according to really Fixed RSvrAddr, sends the message to the purpose RSvr, and the destination address of message includes the SPAddr AccoAddr。
Here, the RSvrAddr can be communication link number of the GSvr towards corresponding RSvr, be also possible to described The socket descriptor (SktD, Socket Descriptor) of TCP connection of the GSvr towards corresponding RSvr.
The present invention is subsequent to be described, with { RSvrAddr is the IP address of corresponding RSvr, and arranges unified Port numbers } for, but it is not used in restriction.
The step G11 is further step G11B: according to the RCode of the SPAddr, according in domain as shown in table 7 RSvr routing table determines the IP address of purpose RSvr.Correspondingly, the step G12 is further step G12B: according to determining IP address and agreement port numbers, send the message to the purpose RSvr, the destination address of message includes described The AccoAddr of SPAddr.
Also (RSvrCompDesc, RSvr Complete Description) is fully described with a RSvr in the present invention A RSvr is identified in internet.The RSvrCompDesc includes HCode and RCode two parts information, can be write as (HCode, RCode) form.Wherein the HCode of the RSvrCompDesc is the HCode of corresponding RSvr, the RSvrCompDesc's RCode is the RCode of corresponding RSvr.
It can produce corresponding domain name according to a RSvrCompDesc.More descriptions, referring to described " based on semi-permanently The message method of location " patent of invention.The present invention is { in a manner of generating domain name according to a RSvrCompDesc are as follows: by this The RCode of RSvrCompDesc generates the HCode's as a subdomain together with the HCode of the RSvrCompDesc Subdomain name } for.For RSvrCompDesc value (163.com, 21), it is used as a subdomain by 21, is inserted into domain name Before 163.com, the subdomain name 21.163.com of domain name 163.com is obtained, i.e. RSvrCompDesc value (163.com, 21) is corresponding Domain name.
Contain a RSvrCompDesc in one SPAddr, the HCode of the RSvrCompDesc is the SPAddr's The RCode of HCode, the RSvrCompDesc are the RCode of the SPAddr.For example, a SPAddr is (liubei@ 163.com, 10), the RSvrCompDesc of the SPAddr is (163.com, 10).
Domain name corresponding to the RSvrCompDesc of one RSvr of the present invention is referred to as the domain name of the RSvr.
The RCode according to a RSvr registers the RSvrAddr of the RSvr, may furthermore is that according to the RSvr Domain name register the IP address of the RSvr.Referring to RSvr routing table in the domain as shown in table 7A:
Table 7A
The step G11B is further step G11C: according to domain corresponding to the RSvrCompDesc of the SPAddr Name, according to RSvr routing table in the domain as shown in table 7A, determines the IP address of purpose RSvr.
Particularly, after a RSvr is disposed, the domain name of the RSvr can be directed toward to the IP of the RSvr in corresponding DNS Address.In this way, in step G11C, when that can not be determined from the routing table to purpose IP address, access can also be passed through Distal end dns server obtains the corresponding IP address of domain name, and will be cached to the parsing result of the domain name such as table 7A institute In the domain shown in RSvr routing table.In this case, RSvr routing table can actually be a domain in the domain as shown in table 7A Name parsing result is in local cache table.In this case, the step G11C is actually a domain name resolution process: parsing Domain name corresponding to the RSvrCompDesc of the SPAddr obtains the host IP address of RSvr pointed by the domain name.Correspondingly The step G12B is: according to the port numbers of IP address and agreement that parsing obtains, corresponding RSvr is sent the message to, The destination address of message includes the AccoAddr of the SPAddr.Since domain name mapping is mature application technology, here not It repeats again.
For example, it include purpose SPAddr is (liubei@163.com, 21) that the GSvr, which is received from other HSvr, After message, domain name 21.163.com corresponding to the RSvrCompDesc value (163.com, 21) according to the SPAddr, according to such as RSvr routing table in domain shown in table 7A, determines the IP address of purpose RSvr, obtains the IP address of RSvr-B21;The GSvr root According to the port numbers of obtained IP address and agreement, the message is sent to RSvr-B21, the destination address of message includes described The AccoAddr value liubei@163.com of SPAddr.
The RSvr is being received in this HSvr after the message including purpose AccoAddr of GSvr, is executed as flowed down Journey:
Step R01, according to the purpose AccoAddr, target account is determined.
In this manner it is possible to execute step R09: the message is ended in the target account.
For example, the message be for target account send a short message, then it is described that the message is ended in into the mesh Mark account can be the client that the short message is sent to the target account.
In step R01, the RSvr directly terminates when that can not determine target account.Before the end, may be used also Replying message for " target account being not present " is indicated further to reply to the source address side of message.
The present invention proposes a kind of message treatment method, for handling the message including purpose SPAddr from client.
As shown in figure 3, being the process flow diagram of the message including purpose SPAddr from client.
The RSvr executes following process after receiving the message including purpose SPAddr from client:
Step R21, the described RSvr judges whether the HCode for possessing the SPAddr, if it is not, then entering step R22 To the cross-domain Message Processing process of step R23;Otherwise, Message Processing process in R24 to the domain of step R27 is entered step.
Generally, owned HCode can be saved in RSvr, in this way, whether RSvr may determine that a certain HCode Possessed by oneself.
The step R22 is: determining purpose GSvr according to the HCode of the SPAddr.
The step R23 is: sending the message to the purpose GSvr.Here, the destination address of message includes institute State SPAddr.
Overseas GSvr routing table is set in the RSvr, the address information for the relevant overseas GSvr of register RSvr (GSvrAddr, GSvr Address).Referring to overseas GSvr routing table as shown in table 8, wherein saving in RSvr-B10 Overseas GSvr routing table data.
Table 8
HCode GSvrAddr Remark
qq.com The GSvrAddr of GSvr-A Corresponding GSvr-A
gmail.com The GSvrAddr of GSvr-C Corresponding GSvr-C
In table 8, the GSvrAddr of the GSvr is registered according to the HCode of a GSvr.Wherein, GSvr-C HSvr-C In GSvr.Here, by taking HSvr-C is the instantaneous communication system of Google as an example.
The step R22 is further step R22A: according to the HCode of the SPAddr, according to as shown in table 8 overseas GSvr routing table determines the GSvrAddr of purpose GSvr.
Correspondingly, the step R23 is further step R23A: according to identified GSvrAddr, the message being sent out Give the purpose GSvr.Here, the destination address of the message includes the SPAddr.
The GSvrAddr can be communication link number of the RSvr towards corresponding GSvr, be also possible to the face RSvr To the SktD of the TCP connection of corresponding GSvr.
The present invention is subsequent to be described, with { GSvrAddr is the IP address of corresponding GSvr, and arranges unified Port numbers } for, but it is not used in restriction.
The step R22 is further step R22B: according to the HCode of the SPAddr, according in domain as shown in table 8 RSvr routing table determines the IP address of purpose GSvr.
Correspondingly, the step R23 is further step R23B: according to the port numbers of identified IP address and agreement, Send the message to corresponding GSvr.Here, the destination address of the message includes the SPAddr.
It particularly, can domain name corresponding to the HCode in corresponding DNS by the GSvr after a GSvr is disposed It is directed toward the IP address of the GSvr.In this way, the cross-domain Message Processing process of the step R22 to step R23 is further as follows Step R22-1 to step R23B cross-domain Message Processing process:
Step R22-1, mesh is determined according to overseas GSvr routing table as shown in table 8 according to the HCode of the SPAddr GSvr IP address, judge whether determination arrive, if it is, executing the step R23B;Otherwise, it executes step R22-2: visiting IP address corresponding to the corresponding domain name of HCode for asking distal end dns server to obtain the SPAddr, and by the solution to the domain name Result cache is analysed into overseas GSvr routing table as shown in table 8, then executes the step R23B.
In this case, overseas GSvr routing table as shown in table 8 can actually be a domain name mapping result at this The cache table on ground.In this case, the step R22-1 to step R22-2 is actually a domain name resolution process: parsing institute Domain name corresponding to the HCode of SPAddr is stated, the host IP address of GSvr pointed by the domain name is obtained, this process further includes Cache the parsing result.Since domain name mapping is mature application technology, no longer report here.
Particularly, the corresponding domain name of the HCode of a GSvr is directed toward to the host IP address of the GSvr in corresponding DNS When, Extensive domain name analysis configuration can also be carried out.In this manner it is possible to be come according to the domain name of any RSvr in the affiliated HSvr of the GSvr Purpose GSvr is determined, to send message to corresponding GSvr.In this way, when the SPAddr is a SPEmailAddr, The host IP address of corresponding GSvr can be obtained by directly parsing the domain name of the SPEmailAddr, without first obtaining The domain name of the AccoAddr of the SPEmailAddr parses the domain name again then to obtain the host IP address of corresponding GSvr.
The step R24 is: the RSvr judges whether the RCode of the SPAddr is directed toward oneself, if it is, executing Step R25;Otherwise, the process of R26 to step 27 is entered step.
Generally, its RCode being assigned can be saved in RSvr, in this way, whether RSvr may determine that a certain RCode It is directed toward oneself.
The step R25 is: directly determining target account according to the AccoAddr of the SPAddr, then terminates.In this way, The message can be ended in the target account.
The step R26 is: determining purpose RSvr according to the RCode of the SPAddr.
The step R27 is: sending the message to the purpose RSvr, the destination address of message includes described The AccoAddr of SPAddr.
RSvr routing table in domain, the RSvrAddr for other RSvr in register HSvr are set in RSvr.Referring to such as RSvr routing table in domain shown in table 7-1, wherein saving RSvr routing table data in the domain of RSvr-B10.
Table 7-1
RCode RSvrAddr Remark
20 The IP address of RSvr-B20 Corresponding RSvr-B20
21 The IP address of RSvr-B21 Corresponding RSvr-B21
28 The IP address of RSvr-B28 Corresponding RSvr-B28
In the table, the IP address of the RSvr is registered according to the RCode of a RSvr.Here, unified to arrange RSvr's Respective end slogan.
The step R26 is further step R26B: according to the RCode of the SPAddr, according to the domain as shown in table 7-1 Interior RSvr routing table, determines the IP address of corresponding RSvr.Correspondingly, the step R27 is further step R27B: according to really The port numbers of fixed IP address and agreement, send the message to corresponding RSvr, and the destination address of message includes described The AccoAddr of SPAddr.
For example, in step R26, the SPAddr value is (liubei@163.com, 21), and the RSvr is according to this The RCode value 21 of SPAddr obtains the IP address of purpose RSvr in domain shown in Cong Rubiao 7-1, obtains in RSvr routing table The IP address of RSvr-B21;In step R27, according to the port numbers of obtained IP address and agreement, institute is sent to RSvr-B21 Message is stated, the destination address of message can be the AccoAddr value liubei@163.com of the SPAddr.
When registering the IP address of the RSvr according to the RCode of a RSvr, also may furthermore is that according to the RSvr's Domain name registers the IP address of the RSvr.Referring to RSvr routing table in the domain as shown in table 7-1A:
Table 7-1A
Domain name IP address Remark
20.163.com The IP address of RSvr-B20 Corresponding RSvr-B20
21.163.com The IP address of RSvr-B21 Corresponding RSvr-B21
28.163.com The IP address of RSvr-B28 Corresponding RSvr-B28
The step R26B is further step R26C: according to domain corresponding to the RSvrCompDesc of the SPAddr Name, according to RSvr routing table in the domain as shown in table 7-1A, determines the IP address of purpose RSvr.
Equally, after a RSvr is disposed, can in corresponding DNS by the domain name of the RSvr with being directed toward the IP of the RSvr Location.In this way, in step R26C, when that can not be determined from the routing table according to domain name to corresponding IP address, also IP address corresponding to domain name can be obtained by access distal end dns server, and by the parsing result to the domain name It is cached in the domain as shown in table 7-1A in RSvr routing table.In this case, RSvr routing table in the domain as shown in table 7-1A It can actually be a domain name mapping result in local cache table.
The present invention proposes a kind of message addressing method based on semi-permanent address, for the message addressing across service-domain, institute The destination address for stating message is SPAddr.
As shown in figure 4, be the embodiment process of the message addressing method based on semi-permanent address, in the figure:
Purpose GSvr is determined according to the HCode of the purpose SPAddr of message in step 101, source RSvr first.Referring to step R22 is no longer repeated here.
Step 102, the source RSvr send the message to the purpose GSvr.Here, the destination address packet of message Include the SPAddr.Referring to step R23, no longer repeat here.
After step 103, the purpose GSvr receive the message, purpose RSvr is determined according to the RCode of the SPAddr. Referring to step G11, no longer repeat here.
Step 104, the purpose GSvr send the message to the purpose RSvr, and the destination address of message includes institute State the AccoAddr of SPAddr.Referring to step G12, no longer repeat here.
After step 105, the purpose RSvr receive the message, target account is determined according to the purpose AccoAddr. Referring to step R01, no longer repeat here.
In this way, the message can be ended in the target account by the purpose RSvr.Referring to the step R09, Here it no longer repeats.
From the foregoing, it will be observed that any RSvr in HSvr-A, such as RSvr-A29 any account will send message into HSvr-B, only The SPAddr in the destination address of the message including proper account is needed, and transmits the message to GSvr-B.In this way, The interface of RSvr-A29 and HSvr-B are just greatly simplified, to simplify the processing of RSvr-A29.
The RSvr is being received in this HSvr after the message including purpose AccoAddr of other RSvr, can also be with Step R01 is executed, and further executes step R09.
The HSvr can further include RIDSvr, for providing guard station identification service.
In RIDSvr, the corresponding relationship of AccoAddr and RCode can establish, in order to can according to an AccoAddr To obtain corresponding RCode.
On how to establish the corresponding relationship of AccoAddr and RCode, there are many modes, referring to described " based on semipermanent The message method of address " patent of invention.Here only collect one way in which to refer to for technical staff: table is migrated in foundation, It is migrated in table at this, saves corresponding RCode according to AccountAddr.
After the guard station identification request message that the RIDSvr receives that includes an identification target, according to the corresponding pass System, determines the corresponding RCode of the identification target;RCode determined by replying.Generally, the identification mesh table is one AccoAddr。
About more descriptions of RIDSvr, referring to " message method based on the semi-permanent address " patent of invention, Here it no longer selects.As shown in figure 5, to provide the HSvr of guard station identification service.In the HSvr include a RIDSvr, one GSvr:GSvr-B, four RSvr:RSvr-B10, RSvr-B20, RSvr-B21, RSvr-B28.
The RIDSvr and the GSvr can be deployed in the same server, in this case, the RIDSvr with The GSvr can arrange using different port numbers.As shown in fig. 6, being superimposed the HSvr of RIDSvr for GSvr.It is wrapped in the HSvr Include a RIDSvr, a GSvr:GSvr-B, four RSvr:RSvr-B10, RSvr-B20, RSvr-B21, RSvr-B28.Its In, RIDSvr and GSvr-B are deployed in same server.
The RIDSvr and the GSvr can also be merged into the same server, i.e., critical point-guard station identifies server (GRIDSvr, GateWay Residence Identification Server).As shown in fig. 7, being closed for RIDSvr and GSvr And HSvr.It include a GRIDSvr:GRIDSvr-B, four RSvr:RSvr-B10, RSvr-B20, RSvr- in the HSvr B21,RSvr-B28.Wherein, GRIDSvr realizes the function of RIDSvr and GSvr simultaneously.
The RIDSvr can be a distribution RIDSvr, for example, the RIDSvr includes a hash server (HashSvr, Hash Server), three migrate query service device (QSvr, Roam Query Server): QSvr1, QSvr2, QSvr3。
The HCode of the HashSvr and QSvr is the HCode of this RIDSvr, is also the HCode of this HSvr.
The HashSvr is for receiving guard station identification request message.That is, the RIDSvr is connect by the HashSvr It receives guard station and identifies request message.
Sublist is migrated in setting in corresponding QSvr, for saving corresponding RCode according to corresponding AccoAddr.
The mapping relations of AccoAddr and QSvr are established, to be closed according to the mapping established according to an AccoAddr System, can determine corresponding QSvr.The QSvr is the QSvr of AccoAddr mapping, referred to as the QSvr of the AccoAddr.
According to the mapping relations of the AccoAddr and QSvr of foundation, can be determined according to an AccoAddr corresponding QSvr.In this manner it is possible to save corresponding RCode according to the AccoAddr in migrating in sublist for the QSvr.
After the guard station identification request message that corresponding HashSvr receives that includes an identification target, following process is executed:
Step S31, the described HashSvr is according to the identification target, according to the mapping of the AccoAddr and QSvr that are established Relationship determines corresponding QSvr;Sending to the QSvr includes the query messages for identifying target.
Step S32, it after the described QSvr receives the query messages, according to the identification target, is searched from migrating in sublist Corresponding RCode;Judge whether to find, if found, by response to query message, which is sent to described HashSvr;Otherwise, by response to query message, RCode value 0 is sent to the HashSvr.
Step S33, it after the described HashSvr receives the response to query message, is replied to the request side received RCode。
Here, RCode value 0 is considered as to invalid RCode value.
Generally, the identification target is an AccoAddr.
About more descriptions of the distribution RIDSvr, the HashSvr and QSvr, referring to described " based on semipermanent The message method of address " patent of invention, is no longer selected here.
Particularly, for distributed RIDSvr, corresponding HashSvr and the GSvr can be deployed in the same clothes It is engaged in device, in this case, the HashSvr can arrange from the GSvr using different port numbers.As shown in figure 8, being The HSvr of GSvr superposition HashSvr.Include distribution a RIDSvr, a GSvr:GSvr-B, four RSvr in the HSvr: RSvr-B10,RSvr-B20,RSvr-B21,RSvr-B28.Wherein, RIDSvr includes a HashSvr, three QSvr: QSvr1,QSvr2,QSvr3;HashSvr and GSvr-B are deployed in same server.
Equally, the HashSvr and the GSvr can also be merged into the same server, i.e. critical point-Hash server (GHSvr, GateWay Hash Server).As shown in figure 9, the HSvr merged for HashSvr with GSvr.Include in the HSvr One GHSvr:GHSvr-B, four RSvr:RSvr-B10, RSvr-B20, RSvr-B21, RSvr-B28.Three QSvr: QSvr1,QSvr2,QSvr3;Wherein, GHSvr-B also realizes a distribution other than realizing GSvr function together with three QSvr The function of formula RIDSvr.
The RIDSvr can receive guard station identification request message via GSvr.Accordingly for distributed RIDSvr For, the HashSvr receives identification request message in guard station via GSvr.
As shown in Figure 10, the HSvr to receive overseas guard station identification request message via GSvr.It include one in the HSvr RIDSvr, a GSvr:GSvr-B, four RSvr:RSvr-B10, RSvr-B20, RSvr-B21, RSvr-B28.Wherein, it comes from The guard station of other HSvr identifies request message, is all sent to RIDSvr via GSvr-B.
The RSvr obtains the AccoAddr's after receiving the message including purpose AccoAddr from client RCode, the RCode that will acquire are sent to the client.
When one, RSvr of example needs to obtain the RCode of an AccoAddr, if it is judged that the AccoAddr AddrHome is not possessed by oneself, then according to the AddrHome of the AccoAddr, determines purpose GSvr, Xiang Suoshu purpose GSvr It sends guard station and identifies request message, the identification target carried in the message is an AccoAddr;The purpose GSvr receives this After message, the RIDSvr of this HSvr is transmitted the message to handle.
In this case, the RIDSvr determines corresponding RCode according to the identification target, and recognition result is direct The RSvr is replied to, or recognition result is replied into the RSvr via the purpose GSvr.
When two, RSvr of example need to obtain the RCode of an AccoAddr, if it is judged that oneself possesses this The AddrHome of AccoAddr then directly sends guard station to the GSvr of this HSvr and identifies that request message, the GSvr receive this and disappear After breath, the RIDSvr of this HSvr is transmitted the message to handle.
In this case, recognition result can be transmitted directly to the RSvr by the RIDSvr, can also be by described Recognition result is sent to the RSvr by GSvr.
Generally, when a RSvr needs to obtain the RCode of an AccoAddr, if it is judged that oneself possesses this The AddrHome of AccoAddr transmits the message to the RIDSvr of this HSvr directly then to handle.
On how to obtain the RCode of an AccoAddr, and disappear about how RIDSvr handles guard station identification request More descriptions of breath, etc., referring to associated description in " message method based on the semi-permanent address " patent of invention, this In no longer select.
There can be multiple equivalent G Svr in one HSvr, to realize load sharing, to help to realize the scale of HSvr Change deployment.For example, these equivalent Gs Svr, or be mutually backups, or mirror image each other, alternatively, select one of them for GSvr host, Remaining is GSvr mirror image, or other than deployed environment is different, other identical GSvr.It as shown in figure 11, is to include The HSvr of multiple GSvr.Include three GSvr:GSvr-B1, GSvr-B2, GSvr-B3 and four RSvr in the HSvr: RSvr-B10、RSvr-B20、RSvr-B21、RSvr-B28。
It is of course also possible to which GSvr and RSvr is deployed in a server.As shown in figure 12, folded for RSvr Add the HSvr of GSvr.It include three GSvr, four RSvr in the HSvr.Wherein, GSvr-B1 and RSvr-B10 is deployed in same In a server, GSvr-B2 and RSvr-B20 are deployed in the same server, and GSvr-B3 and RSvr-B21 are deployed in same In a server.
When GSvr and RSvr is deployed in the same server, which is being received from other HSvr's After message including purpose SPAddr, before the process for executing step G11 to step G12, the RCode of the SPAddr is first judged It whether is directed toward local RSvr, if it is, directly transmitting the message to local RSvr, is then terminated;Otherwise, step is just executed The process of rapid G11 to step G12.
Particularly, a GSvr can be merged into a RSvr.The RSvr for incorporating GSvr is known as closing by the present invention Mouth guard station server (GRSvr, GateWay-Residence Server).
It as shown in figure 13, is the HSvr for including GRSvr.In the HSvr, including three GRSvr:GRSvr-B10, GRSvr-B20 and GRSvr-B21 and RSvr:RSvr-B28.
The GRSvr is after receiving the message including purpose SPAddr from other HSvr, according to the SPAddr Before sending message, first judge whether the RCode of the SPAddr is directed toward oneself, if it is, directly according to the SPAddr's AccoAddr is locally determining target account, then terminates;Otherwise, the process of step G11 to step G12 is just executed.Described Before end, the message can be ended in the local target account.
The multiple equivalent GSvr can be disposed respectively from anywhere in internet, for example, can be in local And/or the multiple equivalent G Svr is disposed in cloud respectively.Generally, each GSvr can be disposed according to region, for example, in China Beijing deployment GSvr-B1 in backlands area, GSvr-B2 is disposed in the Nanjing of East China, disposes GSvr- in the Wuhan of Central China B3。
Correspondingly, in DNS system, intelligently parsing configuration is carried out, so that the domain name corresponding to the HCode to the GSvr When being parsed, can according to domain name mapping request from different geographical, with being resolved to the host ip of different GSvr respectively Location.For example, the HCode of HSvr is 163.com, in corresponding DNS, 163.com is directed toward the multiple equivalent of the HSvr simultaneously The host IP address of GSvr.After corresponding dns server receives the analysis request about domain name 163.com, asked with domain name mapping Multiple IP address corresponding to IP address (IPrequester, Requester IP) the matching domain name 163.com for the person of asking, determine The IP address of best match is returned to domain name mapping requestor by best match person.Best of the determination It is to select the IP address nearest apart from the IPrequester from multiple IP address corresponding to domain name 163.com with person, Here, for the distance by the difference of two IP address to determine two IP address.More descriptions " are based on partly forever referring to described The message method of long address " domain name intelligently parsing method in patent of invention, is no longer selected here.
In this manner it is achieved that according to the network segment where requestor come by a domain name mapping to the different IP addresses configured On.
Particularly, the HSvr can further include auxiliary resolution server (ARSvr, Auxiliary Resolution Server), for providing auxiliary analysis service.The HCode of the ARSvr is the HCode of this HSvr.
It as shown in figure 14, is the HSvr for including ARSvr.In the HSvr include an ARSvr:ARSvr-B, three GSvr:GSvr-B1, GSvr-B2, GSvr-B3 and four RSvr:RSvr-B10, RSvr-B20, RSvr-B21, RSvr-B28.
Goal description record is provided in the ARSvr.Include a parsing target in goal description record with Corresponding geography information (GI, Geographic Information).
The ARSvr is when receiving an auxiliary analysis request for carrying GI data, according to the GI data, from institute It states and determines corresponding parsing target in goal description record, give identified parsing target retro to auxiliary analysis request person.
The parsing target is another domain name of IP address or alias or other.Below with institute For stating parsing target and being an IP address, but it is not used in the restriction present invention.
It is the longitude and latitude data instance of certain point with the GI.It include an IP address in one goal description record and right The longitude and latitude data answered.Table is described referring to the IP address as shown in table 1-8:
Table 1-8
IP Longitude Latitude Remark
The IP address of GSvr-B1 Corresponding longitude data Corresponding latitude data
The IP address of GSvr-B1 Corresponding longitude data Corresponding latitude data
The IP address of GSvr-B1 Corresponding longitude data Corresponding latitude data
It is described to determine that corresponding parsing target is further basis from goal description record according to the GI data Corresponding longitude and latitude data, IP address shown in Cong Rubiao 1-8 describe to determine preferable IP address in table.The determination is preferable IP address, which can be, to be determined apart from nearest IP address, behind as example.
After the ARSvr is disposed, so that it may in corresponding DNS, domain corresponding to the HCode by the ARSvr Name is directed toward the IP address of the ARSvr.Here unify the port numbers of agreement ARSvr.
The step R22-2 is further: the corresponding domain name of HCode for accessing dns server to obtain the SPAddr Corresponding IP address;According to the port numbers of the IP address and agreement, auxiliary analysis request, request are sent to corresponding ARSvr It is middle to carry corresponding longitude and latitude data, for example, carrying the longitude and latitude data that auxiliary analysis request person is presently in position;It is described After ARSvr receives the auxiliary analysis request, the longitude and latitude data according to entrained by it, IP address shown in Cong Rubiao 1-8 is retouched It states and is determined in table apart from nearest IP address, the nearest IP address of the distance is replied into auxiliary analysis request side;It is described auxiliary It helps analysis request side by the auxiliary parsing result, the i.e. nearest IP address of domain name and the distance, is saved in such as 8 institute of table In the overseas GSvr routing table shown, the step R23B is then executed.
The determination is apart from nearest IP address: IP address shown in Cong Rubiao 1-8 describes to search such IP in table Address: in its corresponding longitude and latitude data and the auxiliary analysis request longitude and latitude data that carry by calculating, obtain away from It is short from most.
The GI is also possible to area information (AI, Area Information), for example, dividing according to country Different zones.A country can be identified with the Country code (TCC, Telecom Country Code) of country Or area, for example, the TCC of China is 86, the TCC of Japan is 81, the TCC of South Korea is 82, the TCC of Vietnam is 84, the TCC of Laos TCC for 856, Taiwan is 886.
It in this case, include corresponding TCC value in the AI.Table is described referring to the IP address as shown in table 1-1:
Table 1-1
IP AI Remark
The IP address of Chinese GSvr 86
The IP address of Japanese GSvr 81
The IP address of South Korea GSvr 82
The IP address of Vietnam GSvr 84、856 TCC value 84 and 856 is all pointed into Vietnam Server
The IP address of Taiwan GSvr 886
Include TCC value 84 and 856 in corresponding A I for the IP address of Vietnam GSvr in table 1-1, that is, indicates Vietnam Two countries of region overlay Vietnam corresponding to the IP address of GSvr and Laos.
It is described to determine that corresponding parsing target is further basis from goal description record according to the GI data Corresponding AI data, IP address shown in Cong Rubiao 1-1 describe to search matched IP address in table.
The step R22-2 is further: the corresponding domain name of HCode for accessing dns server to obtain the SPAddr Corresponding IP address;According to the port numbers of the IP address and agreement, auxiliary analysis request, request are sent to corresponding ARSvr It is middle to carry corresponding TCC value, for example, carrying the TCC value that auxiliary analysis request person is presently in country or region;The ARSvr After receiving the auxiliary analysis request, the TCC value according to entrained by it, IP address shown in Cong Rubiao 1-1 describes to search in table The matched IP address is replied to auxiliary analysis request side by matched IP address;It the auxiliary analysis request side will be described Parsing result, i.e. domain name and the matched IP address are assisted, is saved in overseas GSvr routing table as shown in table 8, Then the step R23B is executed.
It, can be according to geographical distribution, come to being linked into this HSvr in other HSvr of each GSvr by the ARSvr RSvr carry out access scheduling, can be with the load of each GSvr in this HSvr of Effective Regulation.
Recorded about ARSvr, goal description, and more descriptions of corresponding auxiliary analytic method, referring to application No. is 201410020948.3 " auxiliary analytic method " patent of invention.Which is not described herein again.
Purposes and usage of the invention are shown below by an integrated embodiment.
It as shown in figure 15, is the HSvr networking diagram of special recommendation of the present invention.Include an ARSvr in the HSvr: ARSvr-B, distribution a RIDSvr, three GSvr:GSvr-B1, GSvr-B2, GSvr-B3 and four RSvr:RSvr- B10,RSvr-B20,RSvr-B21,RSvr-B28.Wherein, the RIDSvr include three HashSvr:HashSvr1, HashSvr2, HashSvr3, two QSvr:QSvr1, QSvr2;HashSvr1 and GSvr-B1 are deployed in same server, HashSvr2 and GSvr-B2 is deployed in same server, and HashSvr3 and GSvr-B3 are deployed in same server.It should The HCode that HSvr possesses is 163.com.
GSvr-B1 is located at Beijing, and GSvr-B2 is located at Shanghai, and GSvr-B3 is located at Chongqing.
In corresponding DNS, domain name 163.com is directed toward to the IP address of the ARSvr-B.
In ARSvr-B, setting the IP address such as table 1-8 shown in table is described, in the table respectively registration GSvr-B1, The IP address of GSvr-B2, GSvr-B3 etc. and its corresponding longitude and latitude data.
In each GSvr, according to the RCode of RSvr-B10, RSvr-B20, RSvr-B21, RSvr-B28 etc., register Corresponding IP address.Referring to RSvr routing table in domain as shown in table 7.
Establish the mapping relations of AccoAddr and QSvr are as follows: the initial of the AddrBase of an AccoAddr is corresponding small Female ASCII value of writing is odd number, then the AccoAddr corresponds to QSvr1, and otherwise, which corresponds to QSvr2.Example Such as, it is the account of liubei@163.com that Liubei, which has an AccoAddr value,.Due to the initial l of liubei@163.com ASCII value is 108, is even number, and therefore, liubei@163.com corresponds to QSvr2.
Sublist is migrated in setting in QSvr1 and QSvr2, for registering RCode corresponding to corresponding AccoAddr respectively.Example Such as, it is married into and lived with the bride's family due to liubei in Wu, account data is moved in RSvr-21.In this way, in QSvr2, according to AccoAddr value liubei@163.com registers corresponding RCode value 21, to be directed toward RSvr-B21.
The machao to guard the frontier always will be communicated with liubei often.The AccoAddr value of machao account is machao@ Qq.com, account data are in RSvr-A29, and corresponding SPAddr is (machao@qq.com, 29).
Show how machao communicates with liubei in two steps below.
The first step obtains the corresponding RCode value of liubei@163.com, referring to following process:
First in step 501, this side machao RSvr, i.e. RSvr-A29, AccoAddr value liubei is first parsed The domain name of 163.com obtains the IP address of ARSvr-B;According to the port numbers of the IP address and agreement, sent to ARSvr-B Analysis request is assisted, the longitude and latitude data of this side machao RSvr are carried in request.
For example, RSvr-A29 is in the client transmission for receiving machao including identifying that target is AccoAddr value After the guard station identification request message of liubei@163.com, start to execute step 501, to start guard station identification process.
After step 502, ARSvr-B receive the auxiliary analysis request, according to the longitude and latitude data wherein carried, according to away from It from nearest principle, describes to obtain corresponding IP address in table from the IP address, since Chongqing is nearest apart from Xi'an, in this way, just The IP address of GSvr-B3 is then replied to RSvr-A29 by the IP address for obtaining the GSvr-B3 positioned at Chongqing.
After step 503, RSvr-A29 receive the IP address of GSvr-B3, protected in overseas GSvr routing table as shown in table 8 Deposit the IP address of domain name 163.com and GSvr-B3;According to the port numbers of the IP address and agreement, guard station is sent to GSvr-B3 and is known Other request message, the identification target for including in request are AccoAddr value liubei 163.com.
After step 504, GSvr-B3 receive the guard station identification request message, local HashSvr is forwarded it to, i.e., HashSvr3。
After step 505, HashSvr3 receive the guard station identification request message, according to AccoAddr value liubei@ The ASCII value 108 of the initial l of the AddrBase value of 163.com judges that the AccoAddr corresponds to QSvr2, then, by this Message is sent to QSvr2.
After step 506, QSvr2 receive guard station identification request message, according to AccoAddr value liubei@163.com, From migrating in sublist for setting, corresponding RCode value 21 is obtained, RCode value 21 is replied into HashSvr3.
RCode value 21 is replied to RSvr-A29 via local GSvr-B3 by step 507, HashSvr3.
Certainly, in step 507, HashSvr3 can also identify the source address of request message according to the guard station, will RCode value 21 replies to RSvr-A29, such as the source address is SPAddr value (machao@qq.com, 29).HashSvr3 can be with It is replied message described in being sent by the message mode of following second step to RSvr-A29.
After step 509, RSvr-A29 receive the RCode value 21 replied, by the buddy list of machao, correspond to The RCode of liubei@163.com is set as 21.
In step 509, the RCode value 21 of liubei@163.com can also be sent to the visitor of machao by RSvr-A29 Family end.In this way, it is described client to liubei send message when, so that it may according to AccoAddr value liubei@163.com with SPAddr value corresponding to RCode value 21 (liubei 163.com, 21) Lai Jinhang.
Second step gives liubei to send short message according to SPAddr value (liubei 163.com, 21), referring to such as dirty Journey:
First step 601, this side machao client to corresponding RSvr, i.e. RSvr-A29, send short message, The destination address of message is SPAddr value (liubei@163.com, 21), source address be SPAddr value (machao@qq.com, 29)。
Step 602, RSvr-A29 judge that the HCode value 163.com of the purpose SPAddr of message does not belong to oneself, in It is that purpose GSvr is determined according to the HCode value of the purpose SPAddr of message, for example, by searching for overseas GSvr as shown in table 8 Routing table obtains the IP address of GSvr-B3 corresponding to domain name 163.com.If in overseas GSvr routing table as shown in table 8 There is no IP address corresponding to domain name 163.com, then according to auxiliary analytic method, obtains corresponding GSvr corresponding to 163.com IP address, here it is possible to be repeated no more referring to above-mentioned steps 501 to step 503.
Step 603, RSvr-A29 are sent the message to according to the IP address of GSvr-B3 and the port numbers of agreement GSvr-B3。
After step 604, GSvr-B3 receive the message, according to the RCode value 21 of the purpose SPAddr of the message, from Purpose RSvr is determined in domain as shown in table 7 in RSvr routing table, obtains the IP address of RSvr-B21.
Step 605, GSvr-B3 are sent the message to according to the IP address of RSvr-B21 and the port numbers of agreement RSvr-B21, the destination address of message include the AccoAddr value liubei@163.com of the purpose SPAddr.
After step 606, RSvr-B21 receive the message, target account is determined according to AccoAddr value liubei@163.com Family.
After step 606, RSvr-B21 can send the message to the client of the target account.In this way, The client of this side liubei can receive the short message of machao transmission.
It is known that if liubei is unanimously in Wu, then, machao can use always SPAddr value (liubei 163.com, 21) is transmitted to liubei, without being carried out step 501 every time to step 509.
In GSvr, can save in other HSvr to oneself carry out information exchange corresponding RSvr RSvrAddr. In reality, the RSvrAddr of the RSvr can be saved according to the RSvrCompDesc of a RSvr, it can also be according to one The domain name of RSvr saves the RSvrAddr of the RSvr, and the present invention is { to save the RSvr's according to the domain name of a RSvr RSvrAddr wherein the RSvrAddr is the IP address of corresponding RSvr, and arranges RSvr port numbers } for, but it is not used in limit It is fixed.Referring to overseas RSvr routing table as shown in table 9:
Table 9
Domain name IP address Remark
10.360.cn The IP address of RSvr-C10 Corresponding RSvr-C10
20.139.com The IP address of RSvr-D20 Corresponding RSvr-D20
29.qq.com The IP address of RSvr-A29 Corresponding RSvr-A29
In table 9, the IP address of the RSvr is saved according to the domain name of a RSvr.Wherein, 29.qq.com is qq.com institute It is located at the domain name of certain RSvr in Xi'an namely the domain name of RSvr-A29 in corresponding HSvr, 10.360.cn is corresponding to 360.cn HSvr in be located at Pekinese RSvr domain name, 20.139.com be in HSvr corresponding to 139.com be located at Guangzhou certain The domain name of RSvr.
For example, in step 503, the source address of the guard station identification request message is SPAddr value (machao@ Qq.com, 29).In step 507, RCode value 21 is replied to GSvr-B3 by HashSvr3, and the destination address replied message is SPAddr value (machao@qq.com, 29);GSvr-B3 receives the destination after replying message, replied message according to this Location determines corresponding RSvr, for example, according to SPAddr value (machao@from overseas RSvr routing table as shown in table 9 Qq.com, 29) domain name 29.qq.com corresponding to RSvrCompDesc searches the overseas RSvr routing table, obtains The IP address of RSvr-A29;Described reply message is sent to RSvr- according to the port numbers of the IP address and agreement by GSvr-B3 A29。
Further for example, liubei finishes the route in Wu, carries grandson madam and returned to Chengdu, account data is moved again It returns in RSvr-28.Where machao knows these variations.In this way, this side machao is using SPAddr value (liubei 163.com, 21) when sending short message to liubei, it just will appear following situations:
In step 606, it after RSvr-B21 receives the message, is determined according to AccoAddr value liubei@163.com When target account, active account can not be determined.In this case, RSvr-B21 can surpass the reply of this side to horse indicates " account Family is not present " or indicate " account has been moved out " message.
For example, in step 605, the source address of the message is SPAddr value (machao@qq.com, 29), in step In 606, RSvr-B21 is not determined when determining target account according to AccoAddr value liubei@163.com and is arrived effective account Family, in this way, being just directly entered the recovery process of following steps 607 to step 608:
Expression " account is not present " that step 607, RSvr-B21 creation surpass this side towards horse replies message, the reply The destination address of message is SPAddr value (machao@qq.com, 29), this is replied message and is sent to GSvr-B3.
Step 608, GSvr-B3 receive it is described after replying message, according to the destination address replied message from such as 9 institute of table Corresponding RSvr is determined in the overseas RSvr routing table shown, for example, according to SPAddr value (machao@qq.com, 29) Domain name 29.qq.com corresponding to RSvrCompDesc searches the overseas RSvr routing table, with obtaining the IP of RSvr-A29 Location;The return information is sent to RSvr-A29 according to the IP address, and the port numbers of agreement by GSvr-B3.
In this way, this side machao must arrive the message of liubei " and changing place ", in this way, this side manchao, just Reacquire the corresponding RCode value of liubei@163.com.
Domain name 163.com is saved in overseas GSvr routing table as shown in table 8 with the RSvr-A29 of this side machao For the IP address of GSvr-B3, RSvr-A29 is searched according to the domain name of AccoAddr value liubei@163.com such as 8 institute of table The overseas GSvr routing table shown obtains the IP address of corresponding GSvr-B3.Then, RSvr-A29 is according to the IP address and agreement Port numbers send guard station to GSvr-B3 and identify request message, and the identification target for including in request is AccoAddr value liubei@ 163.com.Later, according to above-mentioned 504 to 509 the process of the step of, RSvr-A29 can obtain liubei@163.com's RCode value.In this way, just having obtained new RCode value 28 corresponding to liubei 163.com.In this way, this side machao can To be transmitted according to SPAddr value (liubei@163.com, 28) to liubei.
It should be noted that if only one GSvr in a HSvr, the RSvr in the HSvr need to only be configured The IP address of the GSvr, in this way, in step 607, RSvr-B21 to GSvr-B3 send described in reply message when, can Directly to be carried out according to the port numbers of the IP address and agreement.
If being provided with multiple GSvr in a HSvr, before step 606, RSvr-B21 is being received from described When the message of GSvr, the IP address of corresponding GSvr is also obtained.In this way, in step 607, the RSvr is to the GSvr When being replied message described in transmission, so that it may be replied message according to the port numbers of acquired IP address, and agreement to send this.
If being provided with multiple GSvr in a HSvr, this multiple GSvr number can also be given, to distinguish different GSvr.
In a RSvr, GSvr routing table in domain can be set, in the table, according to the volume of GSvr corresponding in this HSvr Number save the IP address of the GSvr.Correspondingly, in step 605, the GSvr, can when sending the message to the RSvr It,, can be with when the RSvr is replied message described in the transmission in this way, in step 607 to carry the number of the GSvr in the message According to the GSvr number carried in corresponding message, to obtain the IP address of corresponding GSvr, according to the port of the IP address and agreement Number send described reply message.
Generally, service provider (SP, Service Provider) can in its corresponding RSvr manual configuration institute State GSvr routing table in domain.
One SP can be according to the needs of service interaction, in corresponding GSvr, as shown in table 9 overseas of manual configuration RSvr routing table.
Preferably the GSvr safeguards overseas RSvr routing table as shown in table 9 automatically.
For example, after the step 503 is further the IP address that step 503B:RSvr-A29 receives GSvr-B3, in such as table In overseas GSvr routing table shown in 8, the IP address of domain name 163.com and GSvr-B3 are saved;According to the IP address and agreement Port numbers send guard station to GSvr-B3 and identify request message, include AccoAddr value liubei@163.com in request, this is asked The source address asked is SPAddr value (machao@qq.com, 29).Correspondingly, the step 504 is further step 504B: After GSvr-B3 receives the guard station identification request message, local HashSvr, i.e. HashSvr3 are forwarded it to;Judge such as Whether according to the source address of the request message (machao@qq.com, 29) institute in overseas RSvr routing table shown in table 9 Corresponding domain name 29.qq.com saves the IP address of RSvr-A29, if it is not, on the overseas road RSvr as shown in table 9 By saving the IP address of RSvr-A29 according to domain name 29.qq.com in table.This way it is possible to realize as shown in table 9 is overseas The record of RSvr routing table increases automatically.Here, GSvr-B3 is available to disappear when receiving the guard station identification request message The source IP address of breath, the i.e. IP address of RSvr-A29.
Further for example, the step 604 is further after step 604B:GSvr-B3 receives the message, according to the message Purpose SPAddr RCode value 21 determine purpose RSvr, obtain the IP address of RSvr-B21;Judge in domain as shown in table 9 Whether according to domain name corresponding to the source address of the message (machao@qq.com, 29) in outer RSvr routing table 29.qq.com saves the IP address of RSvr-A29, if it is not, in overseas RSvr routing table as shown in table 9, according to The IP address of domain name 29.qq.com preservation RSvr-A29.
In order to control the expansion of overseas RSvr routing table as shown in table 9, one can also be increased in the table LastTime field receives the time that RSvr corresponding to corresponding domain name sends message to record last time.Referring to such as table Overseas RSvr routing table shown in 9-1.
Table 9-1
Domain name IP address LastTime Remark
10.360.cn The IP address of RSvr-C10 The corresponding time Corresponding RSvr-C10
20.139.com The IP address of RSvr-D20 The corresponding time Corresponding RSvr-D20
29.qq.com The IP address of RSvr-A29 The corresponding time Corresponding RSvr-A29
Based on the overseas RSvr routing table as shown in table 9-1, in step 504B or step 604B, GSvr-B3 is also by domain The LastTime of record corresponding to name 29.qq.com is set as current time.
A scan operation can be set in GSvr, periodically or randomly the record in traversal list 9-1, judges a record Whether LastTime value is more than preset value apart from current time, such as 7*24*3600 seconds, if it is, deleting from table 9-1 The record.In this manner it is possible to keep the automatic growth and decline of table 9-1 according to the variation of portfolio, more preferably run so that GSvr be allowed to reach Mode.
It is replied message about how the QSvr sends to the HashSvr, it can be with reference to the RSvr how to originally The GSvr of HSvr sends the processing mode replied message.
About the QSvr how to HashSvr transmission message, how the HashSvr disappears to GSvr transmission How breath and the RSvr are to the GSvr of this HSvr transmission message, due to being encapsulated in inside a HSvr, to others HSvr access does not generate influence on interface, and therefore, different SP can be according to oneself actual conditions, from existing various maturations In the communication technology, to select different technical embodiments.The present invention is no longer repeated with regard to this.
It can be seen that the present invention is based on the message addressing method of semi-permanent address and the " bases from integrated embodiment above In the message method of semi-permanent address " message method based on semi-permanent address mentioned in patent of invention is the same, Can once and for all solve the long-expected account number of people or number migrates carrying problem.The present invention makes every effort to reduce each service Interface between domain, to simplify the processing of RSvr;And previous patent more focuses on the agility of message transmission, network is more flat Change.
As it is known by the man skilled in the art that in view of the flexibility of deployment, generally, in unified agreement corresponding server or When the respective end slogan of module, Ying Jiang ARSvr, GSvr, RSvr etc. are about set to different port numbers respectively, for example, ARSvr The port numbers that the port numbers that port numbers are 6688, GSvr are 7788, RSvr are 8888.
As it is known by the man skilled in the art that being migrated in the account information table, or accordingly to improve recall precision In sublist, the domain name part of corresponding AccoAddr can be saved, and only retain a username portion.Correspondingly, to such table When being retrieved, only according to a username portion of an AccoAddr.
As it is known by the man skilled in the art that in the present invention, between the server or module that are in communication with each other, IP network can be passed through Network realizes interconnection.When the two is closer, can also be communicated by using RS485 communication modes.Due to simple two Communication between module or server can have corresponding mature technology to realize according to the actual situation, and therefore, the present invention is not This respect is repeated again.
One SPAddr can also be write as an email address format, namely be write as a SPEmailAddr, therefore, this SPAddr of the invention is substituted for SPEmailAddr by field technical staff, can achieve similar technology effect.About More descriptions of SPEmailAddr, referring to " message method based on the semi-permanent address " patent of invention, here no longer Imitative state is carried out with regard to the SPAddr of SPEmailAddr form.
The foregoing is merely a prefered embodiment of the invention, is not intended to limit the scope of the present invention.It is all of the invention Spirit and principle etc, made any modification, improvement, equivalent replacement etc. should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of message addressing method based on semi-permanent address, sender, that is, source user ownership home service of the message Device HSvr is different HSvr from the recipient of the message, that is, purpose user attaching HSvr;
The HSvr includes critical point server GSvr and guard station server RSvr;
Each RSvr is assigned a guard station code RCode, for identifying a RSvr in corresponding HSvr;
Corresponding account information is saved in the RSvr;
The HSvr is assigned the HCode that the HCode of ownership code a HCode, the GSvr are this HSvr;
The account address AccoAddr of user is the permanent address PermAddr of the account, by an address base AddrBase and one A address attribution AddrHome is constituted, and HSvr pointed by the AddrHome of the AccoAddr is AccoAddr ownership HSvr;
The RCode of the RSvr that RSvr where the corresponding account information of the AccoAddr is the AccoAddr, the RSvr are should The RCode of AccoAddr;The RCode of the AccoAddr and AccoAddr forms the semi-permanent address of the AccoAddr SPAddr;
The AddrHome of the AccoAddr of the SPAddr is the HCode or AddrHome of the SPAddr;
The destination address of the message is SPAddr;
It is characterized in that, method includes the following steps:
A, source RSvr determines purpose GSvr according to the HCode of the purpose SPAddr of message, sends the message to the purpose GSvr;
B, after the purpose GSvr receives the message, purpose RSvr is determined according to the RCode of the SPAddr, by the message It is sent to the purpose RSvr, the destination address of message includes the AccoAddr of the SPAddr;
Step c, after the described purpose RSvr receives the message, target account is determined according to the purpose AccoAddr.
2. the method according to claim 1, wherein the HSvr further includes guard station identification server RIDSvr; It includes after identifying that the guard station of target identifies request message, determining the identification target pair that the RIDSvr, which is received from other HSvr, The RCode answered;RCode determined by replying;
The method also includes: the source RSvr receiving the expression replied from the purpose RSvr, " do not deposit by target account " after relevant return information, the new of the AccoAddr of the SPAddr is obtained from the RIDSvr of the HSvr of the destination RCode value;The SPAddr is updated according to the new RCode in source user lateral root, so that next time sends message to the purpose user When, it is carried out according to the updated SPAddr.
3. according to the method described in claim 2, it is characterized in that, described update in source user lateral root according to the new RCode The SPAddr is further: the source RSvr updates the SPAddr according to the new RCode;Alternatively, the source RSvr is by institute It states new RCode and replies to the corresponding client of corresponding source user, corresponding SPAddr is updated by the client.
4. a kind of guard station recognition methods across service-domain, for requesting side to obtain address to be identified in the attribution server of its ownership Guard station information in HSvr, the HSvr and the HSvr of the address attribution to be identified of request side ownership are different HSvr;
The HSvr includes guard station identification server RIDSvr, critical point server GSvr and guard station server RSvr;
Each RSvr is assigned a guard station code RCode, for identifying a RSvr in corresponding HSvr;
Corresponding account information is saved in the RSvr;
The HSvr is assigned the HCode that the HCode of ownership code a HCode, the GSvr are this HSvr;
The account address AccoAddr of user is the permanent address PermAddr of the account, by an address base AddrBase and one A address attribution AddrHome is constituted, and HSvr pointed by the AddrHome of the AccoAddr is AccoAddr ownership HSvr;
The RCode of the RSvr that RSvr where the corresponding account information of the AccoAddr is the AccoAddr, the RSvr are should The RCode of AccoAddr;The RCode of the AccoAddr and AccoAddr forms the semi-permanent address of the AccoAddr SPAddr;
The AddrHome of the AccoAddr of the SPAddr is the HCode or AddrHome of the SPAddr;
The address to be identified is AccoAddr;
It is characterized in that, method includes the following steps:
A, source request lateral root determines that purpose GSvr, Xiang Suoshu purpose GSvr send guard station according to the AddrHome of the AccoAddr Identify request message, the identification target carried in the request message is the AccoAddr;
B, after the purpose GSvr receives the message, which is sent to the RIDSvr of this HSvr;
C, after the RIDSvr receives the request message, according to the AccoAddr, corresponding RCode is obtained;
D, the RIDSvr replys acquired RCode to source request side.
5. a kind of message addressing method based on semi-permanent address, sender, that is, source user ownership home service of the message Device HSvr is different HSvr from the recipient of the message, that is, purpose user attaching HSvr;
The HSvr includes guard station identification server RIDSvr, critical point server GSvr and guard station server RSvr;
Each RSvr is assigned a guard station code RCode, for identifying a RSvr in corresponding HSvr;
Corresponding account information is saved in the RSvr;
The HSvr is assigned the HCode that the HCode of ownership code a HCode, the GSvr are this HSvr;
The account address AccoAddr of user is the permanent address PermAddr of the account, by an address base AddrBase and one A address attribution AddrHome is constituted, and HSvr pointed by the AddrHome of the AccoAddr is AccoAddr ownership HSvr;
The RCode of the RSvr that RSvr where the corresponding account information of the AccoAddr is the AccoAddr, the RSvr are should The RCode of AccoAddr;The RCode of the AccoAddr and AccoAddr forms the semi-permanent address of the AccoAddr SPAddr;
The AddrHome of the AccoAddr of the SPAddr is the HCode or AddrHome of the SPAddr;
The destination address of the message is AccoAddr;
It is characterized in that, method includes the following steps:
A, source RSvr sends guard station to the RIDSvr of the purpose AccoAddr HSvr belonged to and identifies request message, wraps in request message The identification target included is the purpose AccoAddr;Receive the corresponding RCode of the identification target replied;
B, the source RSvr is using SPAddr corresponding to the purpose AccoAddr and the RCode received as the mesh of message Address, purpose GSvr is determined according to the HCode of the purpose SPAddr of message, sends the message to the purpose GSvr;
C, after the purpose GSvr receives the message, purpose RSvr is determined according to the RCode of the SPAddr, by the message It is sent to the purpose RSvr, the destination address of message includes the AccoAddr of the SPAddr;
D, after the purpose RSvr receives the message, target account is determined according to the purpose AccoAddr;
This method further include: after the RCode for receiving the AccoAddr, corresponding SPAddr is also saved in source user side, with Just it when sending message to the purpose user next time, is directly carried out according to the SPAddr.
6. according to the method described in claim 5, it is characterized in that, described save corresponding SPAddr into one in source user side Step is: the source RSvr saves corresponding SPAddr;It is corresponded to alternatively, the RCode is replied to the source user by the source RSvr Client, corresponding SPAddr is saved by the client.
7. a kind of attribution server HSvr, which is characterized in that the HSvr includes critical point server GSvr and guard station server RSvr;
Each RSvr is assigned a guard station code RCode, for identifying a RSvr in corresponding HSvr;
Corresponding account information is saved in the RSvr;
The HSvr is assigned the HCode that the HCode of ownership code a HCode, the GSvr are this HSvr;
The account address AccoAddr of user is the permanent address PermAddr of the account, by an address base AddrBase and one A address attribution AddrHome is constituted, and HSvr pointed by the AddrHome of the AccoAddr is AccoAddr ownership HSvr;
The RCode of the RSvr that RSvr where the corresponding account information of the AccoAddr is the AccoAddr, the RSvr are should The RCode of AccoAddr;The RCode of the AccoAddr and AccoAddr forms the semi-permanent address of the AccoAddr SPAddr;
The AddrHome of the AccoAddr of the SPAddr is the HCode or AddrHome of the SPAddr;
The GSvr is after receiving the message including purpose SPAddr from other HSvr, according to the RCode of the SPAddr It determines corresponding RSvr, sends the message to identified RSvr, the destination address of message includes the SPAddr AccoAddr;
The RSvr is after receiving the message including purpose AccoAddr of the GSvr from this HSvr, according to the purpose AccoAddr determines target account.
8. HSvr according to claim 7, which is characterized in that the RSvr includes purpose receiving from client After the message of SPAddr, judge whether the HCode for possessing the SPAddr, if it is not, then according to the purpose SPAddr of message HCode determine purpose GSvr, send the message to the purpose GSvr.
9. HSvr according to claim 7, which is characterized in that the HSvr further includes guard station identification server RIDSvr, For providing guard station identification service;It includes the guard station identification request for identifying target that the RIDSvr, which is received from other HSvr, After message, the corresponding RCode of the identification target is determined;RCode determined by replying.
10. HSvr according to claim 9, which is characterized in that the RSvr includes purpose receiving from client After the message of AccoAddr, judge whether the purpose AccoAddr belongs to this HSvr, if it is not, then to purpose The RIDSvr of the HSvr of AccoAddr ownership sends guard station and identifies request message, and the identification target for including in request message is described Purpose AccoAddr;Receive the corresponding RCode of the identification target replied;By the purpose AccoAddr and described in receiving Destination address of the SPAddr corresponding to RCode as message determines purpose according to the HCode of the purpose SPAddr of message GSvr sends the message to the purpose GSvr.
CN201410116253.5A 2014-03-26 2014-03-26 Message addressing method based on semi-permanent address Active CN104954500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410116253.5A CN104954500B (en) 2014-03-26 2014-03-26 Message addressing method based on semi-permanent address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410116253.5A CN104954500B (en) 2014-03-26 2014-03-26 Message addressing method based on semi-permanent address

Publications (2)

Publication Number Publication Date
CN104954500A CN104954500A (en) 2015-09-30
CN104954500B true CN104954500B (en) 2019-10-22

Family

ID=54168841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410116253.5A Active CN104954500B (en) 2014-03-26 2014-03-26 Message addressing method based on semi-permanent address

Country Status (1)

Country Link
CN (1) CN104954500B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657425A (en) * 2015-11-03 2017-05-10 王正伟 Automatic finding method of residence code

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946104A (en) * 2006-03-01 2007-04-11 华为技术有限公司 Method for realizing one-card multiple-number service
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010035037A1 (en) * 2008-09-24 2010-04-01 Bloxx Limited Message processing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946104A (en) * 2006-03-01 2007-04-11 华为技术有限公司 Method for realizing one-card multiple-number service
CN102333105A (en) * 2010-07-14 2012-01-25 华为技术有限公司 Business communication method, system, push client terminal and user equipment

Also Published As

Publication number Publication date
CN104954500A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
EP2323350B1 (en) Method, computer program product and electronic device for hyper-local geo-targeting
US8370457B2 (en) Network communication through a virtual domain
CN104052661B (en) Container name server and container name analytic method
CN108737515A (en) Route Selection is asked in networked environment
CN105162900B (en) A kind of domain name mapping of multi-node collaboration and caching method and system
CN108574744A (en) A kind of domain name analytic method, device, electronic equipment and readable storage medium storing program for executing
WO2019028683A1 (en) Method and system for acquiring and collecting client local dns server
US20110252142A1 (en) Updating routing information based on client location
JP6294321B2 (en) Publish information on the website
CN104506510A (en) Method and device for equipment authentication and authentication service system
JP2021051755A (en) Method, apparatus, and computer program for data processing, and hierarchical domain name system zone file
WO2014090081A1 (en) Method for joining group, group establishing method, client, server, and system
CN101217568A (en) A webpage push method, system and device
CN104303489A (en) Method for performing dns resolution in a network, content distribution system and client terminal for deployment in a content distribution system
CN103546593B (en) Wireless sensor network node identifier resolution method based on IP Yu non-IP
CN104702617B (en) A kind of data distributing method and device based on content distributing network
CN104125310B (en) Message method based on semi-permanent address
CN105871698A (en) Management method and system of instant communication service
CN104954500B (en) Message addressing method based on semi-permanent address
CN101567879A (en) Method, server, equipment and system for treating terminal request
Chung et al. RFID object tracking with IP compatibility for the internet of things
CN105025059B (en) Location information service system
CN105933470B (en) Stratification Service Source parses mapping method and system
CN105376342A (en) Device and method for determining user partition in internet and server using device
Dan IP Geolocation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant