Summary of the invention
The technical problem to be solved in the present invention provides a kind of method by routing server realization territory user's route, supports territory user's account number is carried out route, can finish the calling to the territory user.
In order to solve the problems of the technologies described above, the present invention proposes a kind of method that realizes territory user's route by routing server, be applied in the routing architecture of the layered network formed by routing server, bottom routing server wherein links to each other with a Call Agent at least, this method comprise the routing server address deposit method, territory user's routing iinformation update method and when calling out to the querying method of called territory user's routing iinformation, wherein:
The deposit method of described routing server address is:
The bottom routing server is the home domain routing server of user in its Call Agent territory of serving, depositing the routing iinformation of user in the territory, at least comprise territory user's current contact address and current Call Agent address, the routing server of non-bottom has been deposited the address of next stage and upper level routing server;
Described update method may further comprise the steps:
(a1) the territory user terminal obtains the contact address of distribution, to current Call Agent registration;
(a2) current Call Agent is notified described territory user's home domain Call Agent with described territory user's current routing iinformation, and this home domain Call Agent is notified this routing iinformation the routing server in this territory again;
(a3) the home domain routing server upgrades the routing iinformation of this territory user in the routing information base; Described querying method to route information may further comprise the steps:
(b1) other user initiates the call request to the territory user, and called territory user's account number is provided;
(b2) the calling agency is according to described account number, search called territory user's home domain routing server address in this locality, if find, then to the called territory user's of described home domain route server query routing iinformation, and execution in step (b4), otherwise carry out next step;
(b3) the calling agency continues the inquiry of initiation to described home domain routing server address, finds the routing iinformation of back to the called territory user of described home domain route server query, and the called territory user's that will find routing iinformation returns the calling agency;
(b4) calling agency sets up call proceeding called territory user's in the described routing iinformation current Call Agent to call out.
Said method can have following characteristics: comprise called territory user's home domain domain name in the described account, step (b3) may further comprise the steps again:
(c1) calling agency is at first to the called territory user's of bottom route server query in this territory home domain routing server address, and called territory user's account is provided;
(c2) the bottom routing server of receiving inquiry is searched described home domain routing server address according to described account in this locality, if find, and execution in step (c4), otherwise continuation is to the route server query of upper level;
(c3) inquiry is so one by one preferentially initiated inquiry to the routing server in domain name and called home domain domain name same field territory how during inquiry, up to the address of finding described home domain routing server;
(c4) find the routing iinformation of the routing server of described home domain routing server address, and the called territory user's routing iinformation that will find returns the calling agency to the called territory user of this home domain route server query; The routing server of perhaps finding described home domain routing server address turns back to the calling agency with this address, by the routing iinformation of calling agency to the called territory user of described home domain route server query, described home domain routing server returns called territory user's routing iinformation to it.
Said method can have following characteristics: comprise the address of called territory user's home domain Call Agent in the described account, step (b3) may further comprise the steps again:
(d1) the calling agency inquires about called territory user's routing iinformation according to the home domain Call Agent address in the account number to described home domain Call Agent;
(d2) after described home domain Call Agent was received inquiry, to the called territory user's of the route server query in this territory routing iinformation, and the called territory user's routing iinformation that will find returned the calling agency.
Said method can have following characteristics: the address of all carrying the calling agency in the query requests that described calling agency or routing server are initiated, in the described step (c4), the routing server of finding home domain routing server address or called territory user's routing iinformation directly returns Query Result the calling agency.
In order further to accelerate inquiry velocity, can in described Call Agent, deposit routing server address with the big territory of its traffic carrying capacity.
In order further to accelerate inquiry velocity, the address that can in the routing server of described non-bottom, also deposit routing server at the same level.
In order further to accelerate inquiry velocity, the address that can in the routing server of described non-bottom, deposit all bottom routing servers in its service-domain.
As from the foregoing, the invention provides a kind of method that in the routing architecture of layering, realizes the whole network route of territory user, thereby finish calling the territory user.Further, propose a kind of reasonable storage territory user's routing iinformation, routing iinformation is stored according to level, thereby has reduced occupation space, has increased network extensibility.And owing to routing iinformation always is kept in territory user's the routing server, thereby renewal speed is very fast.
Embodiment
The present invention realizes the method for territory user's route, based on the routing server being the routing architecture that node is formed.Except that the node of the superiors, each node has a father node, and except that the node of bottom, each node has a child node at least, has formed the routing architecture storing and resolve the layered network of the whole network routing iinformation jointly.
The routing server of bottom is one or more Call Agent services, territory user's (referring to the contracted user) home domain routing server in the Call Agent territory of serving as it, and in its routing information base, writing down the routing iinformation of all territory users in the service-domain, IncFlds user's current contact address and current Call Agent address also can comprise other necessary routing iinformations.During the user of other customer call territory, find called territory user's home domain routing server earlier, after it inquires about called territory user's routing iinformation, could set up calling again with called territory user.The territory user may register outside home domain, and when the territory user terminal was started shooting or enter the territory of a Call Agent control, it obtained a contact address from the address allocation server of the current field, and to current Call Agent registration.At this moment need the routing server of the updating route information that it is current to its home domain.
First embodiment
Fig. 1 shows the routing architecture of the embodiment of the invention, and the situation registered outside home domain of territory user U1.As shown in the figure, it is three layers that routing architecture among Fig. 1 is divided into, the routing server R1 of the territory com of the superiors is connected with routing server R21, the R22 of the 2nd layer of territory H1.com, H2.com, routing server R21, the R22 in the 2nd layer of territory respectively with bottom territory S1.H1.com, S2.H1.com, routing server R31, the R32, R33, the R34 that reach S3.H2.com, S4.H2.com connect, form network structure, actual system has numerous routing servers.In the present embodiment, the routing server in bottom territory is a functional module of the Call Agent in this territory, but also can be the independently routing server of directly serving for this territory.It should be noted that the layering of routing server connection is virtual connection among the figure.They are at the function higher slice, and link together, and physically might not directly link to each other.
Among the figure, the home domain of user U1 is S1.H1.com, thereby its routing iinformation is kept among the routing server R31 that serves into this territory.When registered in the S2.H1.com territory of U1 outside home domain, its process was as follows:
Step 10, U1 obtains a dynamic IP addressing in S2.H1.com territory registration from address allocation server, and with oneself the Call Agent S2 in information notification S2.H1.com territories such as account number, home domain Call Agent address;
Step 11, the Call Agent S2 in S2.H1.com territory is with the Call Agent S1 in information notification S1.H1.com territories such as the current contact address of U1 and current Call Agent address;
Step 12, the Call Agent S1 in S1.H1.com territory serves routing iinformations such as the current contact address of U1 and current Call Agent address notice for this territory routing server R31;
Step 13, the home domain routing server R31 of U1 upgrades contact address and the Call Agent address of U1 in the routing information base.
Can finish territory user's registration and routing update by above step, make always in store current route in its ownership routing server.
When the user of other customer call territory, at first want inquiry field user's route, inquiry to territory user's route is to carry out according to called territory user's account number, territory user's account number is the form of " user name @ home domain domain name " or " user name @ home domain Call Agent IP address " normally, for example 12345@ss.name.com or 12345@211.12.1.1.Usually adopt the form of domain name.Domain name can remain unchanged, and the domain name corresponding address can change.Present embodiment promptly is to adopt this form.In addition, the domain name in the user account number of territory might not be the domain name of Call Agent, also can be an entrance and mark of home domain.
The address of routing server is left on the routing server of the domain of dependence by certain strategy, in the present embodiment, routing server in each territory is only deposited the address of oneself next stage routing server and upper level routing server, the i.e. address of child node and father node.In addition, the Call Agent of present embodiment has also been preserved the address information of the routing server in the big territory of some traffic carrying capacity in this locality, thereby can directly inquire about to some territory user's routing server.
In addition, Call Agent also may be preserved called subscriber's routing iinformation in this locality.For example this called subscriber was once called out not long ago, and according to certain mechanism, the routing iinformation of knowing this called subscriber is current still effective, for example: an effective life span is set for territory user's current contact address, in the time of Call Agent inquiry field user's routing iinformation, can keep territory user's routing iinformation simultaneously in this locality to the address of home domain routing server registration oneself.In effective life span,, this update notification can be given the Call Agent of registration, the contact address on the updating call agency if this territory user has upgraded current contact address.Surpass effective life span, then Call Agent needs inquiry field user's current contact address again.
As shown in Figure 2, suppose that the user U2 in the S4.H2.com territory calls out territory user U1, territory user's account number adopts the form of " user name @ home domain domain name ", is U1@S1.H1.com.The current Call Agent of U1 is S2, and then the detailed process of Hu Jiaoing is as follows:
Step 20, U2 is to the call request of the Call Agent S4 in S4.H2.com territory initiation to territory user U1@S1.H1.com;
Step 21, the Call Agent S4 in S4.H2.com territory searches called territory user's routing iinformation, if existence and effective, execution in step 28; If there is no, then search the address of called territory user's ownership routing server R31, suppose not dispose on the S4 R31 address, then S4 continues inquiry to the routing server R34 in this territory;
Step 22 after R34 receives query requests, can not find out the address of U1@S1.H1.com territory routing server R31 in this locality, continue the inquiry to the routing server R22 of its higher level territory H2.com;
Step 23 after R22 receives query requests, can not find out the address of U1@S1.H1.com territory routing server R31 in this locality, continue the inquiry to the routing server R1 of higher level territory com;
Step 24 after R1 receives query requests, can not find out the address of U1@S1.H1.com territory routing server R31 in this locality, continue to inquire about to the routing server R21 of the higher level territory H1.com of own subordinate territory and S1.H1.com;
Step 25, after R21 received query requests, can find the subordinate territory in this locality be the routing server R31 address of user U1 home domain S1.H1.com, then to the current contact address of R31 inquiring user U1 and the routing iinformations such as address of current Call Agent S2;
Step 26, R31 returns the routing iinformation of user U1 to R21;
Step 27, R21 turns back to this routing iinformation the Call Agent S4 in S4.H2.com territory more step by step;
Step 28, calling are acted on behalf of S4 with the current Call Agent S2 of call proceeding to called territory user U1, set up the calling between user U2 and the user U1.
In the above step, if to the inquiry of route failure, then call failure.
In the present embodiment, routing server among the com of territory only need be preserved the address information of the routing server of next stage territory H1.com and H2.com, and the routing server of same territory H1.com also only needs to preserve the address information of the routing server among next stage territory S1.H1.com and S2.H1.com and the upper level territory com.In the routing server of bottom territory S1, S2, S3, S4, then preserve territory user's separately routing iinformation.Such layering storage organization has reduced memory space, simultaneously, the routing server address information in next stage territory is only safeguarded by the upper level territory that territory user's routing iinformation is only safeguarded by the routing server of home domain, has strengthened manageability, maintainability and the extensibility of network.
In fact, routing server not necessarily strictness is followed this hierarchy, can increase the speed that certain redundancy is accelerated routing inquiry.The address that for example can keep the routing server in H1.com territory on the routing server in the H2.com territory under the situation of the foregoing description, just can turn to the inquiry of H1.com territory, and need not pass through the com territory like this in the H2.com territory.Routing server is when searching home domain routing server address according to the home domain a fabulous creature, said to be like a turtle and blow poisonous sand in man's face name in the account number, can be earlier than the afterbody com in the domain name, see name again, see ss again, three grades all identical promptly is the routing server of home domain, otherwise all identical the looking into of secondary backward earlier is again to identical the looking into of afterbody.
As another kind of redundant method, can in routing servers at different levels, write down the address of all bottom routing servers in its service-domain, in the case of the above embodiments, when inquiring the routing server in com territory, just can obtain the address of the routing server R31 of user U1 home domain S1.H1.com, thereby accelerate inquiry velocity.
In addition,, can on the Call Agent in S4.H2.com territory and S1.H1.com territory, keep the other side's routing server address respectively so, directly inquire about if the telephone traffic between S4.H2.com and the S1.H1.com territory is very big.In the situation of the foregoing description, the Call Agent in S4.H2.com territory can directly be inquired about the routing iinformation of U1 to the home domain routing server R31 of called territory user U1, thereby accelerates the speed of inquiry greatly.This is equivalent to the direct path in the conventional telecommunication network.The increase of redundant routing iinformation and minimizing are formulated local policy by the network manager according to the actual conditions at local networking and are carried out.
From as can be seen last, the strategy that adopts different routing server addresses to deposit, the process of inquiry is also different.In addition, query script is also relevant with the query strategy that adopts.
For example, in an embodiment, the routing server R21 in H1.com territory can turn back to calling earlier and act on behalf of S4 after finding called territory user's the address of home domain routing server R31, by the routing iinformation of S4 to R31 inquiry U1.
And for example, if in query requests, carry the address of the Call Agent of initiating inquiry, the routing server of finding home domain routing server address or called territory user's routing iinformation just can directly return Query Result the calling agency, thereby accelerates query procedure.
And for example, if have another and com territory route service system arranged side by side, and inquiry may be crossed over two individual system when carrying out, should preserve the address of the superiors routing server arranged side by side in the com territory with it, at this moment, inquiry also can be jumped and be carried out, for example, the routing server in S4.H2.com territory finds that the afterbody of user attaching territory, called territory domain name is not during com, just continues inquiry with the direct routing server to the com territory.Certainly prerequisite is the address of also having deposited the superiors' routing servers in the bottom server.
Embodiment 2
The territory user's of present embodiment account number adopts the form of " user name @ home domain Call Agent IP address ", home domain adopts the form of IP address can directly know the address of user attaching territory Call Agent, accelerate inquiry velocity, but during the change of Call Agent address, influence bigger.
As shown in Figure 3, the account number of supposing U1 is U1@211.12.1.1, and its home domain is the S1.H1.com territory, and promptly the address of the Call Agent in S1.H1.com territory is 211.12.1.1, and its calling procedure is as follows:
Step 30, U2 is to the call request of the Call Agent S4 in S4.H2.com territory initiation to territory user U1@211.12.1.1;
Step 31, the Call Agent S4 in S4.H2.com territory searches the routing iinformation of territory user U1, if existence and effective, execution in step 35; If there is no, then inquire about the routing iinformation of U1 to the home domain Call Agent S1 of territory user U1 (the IP address is 211.12.1.1);
Step 32, the Call Agent S1 in S1.H1.com territory is to routing iinformations such as the current contact address of the routing server R31 in this territory inquiry field user U1 and current Call Agent addresses;
Step 33, the routing server R31 of U1 home domain returns to S1 with the routing iinformation of U1;
Step 34, S1 returns to calling with this routing iinformation again and acts on behalf of S4;
Step 35, calling are acted on behalf of S4 with the current Call Agent S2 of call proceeding to called territory user U1, set up the calling between user U2 and the user U1.
In this embodiment, if in the Call Agent S4 in S4.H2.com territory, be configured the address of the routing server R31 at Call Agent 211.12.1.1 place, then can be directly to the routing iinformation of its inquiry field user U1.
In sum, the inventive method can be carried out route according to territory user's account number, find routing iinformations such as called territory user's current contact address and current Call Agent address, always be kept in the routing server of bottom owing to routing iinformation simultaneously, thereby the memory space that takies seldom, only need upgrade the information of its home domain routing server during renewal, thereby speed is very fast.