Summary of the invention
The technical problem to be solved in the present invention provides a kind of multiple domain inter-domain routing maintaining method and system, to improve the joint behavior in the overlay network, reduces the inter-domain routing maintenance costs.
In order to address the above problem, the invention provides a kind of multiple domain inter-domain routing maintaining method, comprise: node adds fashionable, in other overseas territory of this newly added node place, find the overseas routing node of its correspondence, set up described node to the inter-domain routing path of described overseas routing node, described overseas routing node is meant between the node identification of node identification and described newly added node in this territory, overseas routing node place and satisfies the node that principle is set up in the inter-domain routing of presetting; Interdependent node in described other territory is set up principle according to inter-domain routing, sets up or adjust to the inter-domain routing path in this territory, newly added node place.
Further, said method also has following characteristics:
Node adds fashionable, and this node is called first node, and the territory of the adding of this node is called first territory, with a territory in other territory, this territory is called second territory, and set up the inter-domain routing path and specifically comprise: first node adds first territory, and the Section Point to second territory sends a request message; Section Point is set up principle according to inter-domain routing and is arrived overseas routing node in second domain lookup, and overseas routing node returns response message and gives described first node; Described first node is established to the inter-domain routing path of described overseas routing node.
Further, said method also has following characteristics:
First node is when adding first node in described first territory, also comprise: after described first node is received described response message, send update notification message to described overseas routing node, described overseas routing node is transmitted the every other node of described update notification message to its territory, place, and other nodes are established to the inter-domain routing path of described first node.
Further, said method also has following characteristics:
First node is when adding non-first node in described first territory, also comprise: described first node sends and updates request to described overseas routing node, after described overseas routing node is received described request, set up principle according to inter-domain routing and carry out reverse searching, in second territory, find more new node, described more new node is set up the inter-domain routing path with described first node, wherein, described first node is that the node identification of node identification and described more new node in first territory satisfies the node that principle is set up in default inter-domain routing.
Further, said method also has following characteristics:
The corresponding responsible node of described node, described responsible node and described node are in same territory, when responsible node detected node and leaves, this node was called and leaves node, and responsible node sends update notification message to the node in other overseas territory of responsible node place; After the node in other territory is received this update notification message, set up principle according to inter-domain routing and carry out reverse searching, in other territory, find more new node; Wherein, the described node that leaves is that the node identification that leaves node identification and described more new node in the territory, node place satisfies the node that principle is set up in default inter-domain routing; Described more new node is set up and the neofield that leaves territory, the node place inter-domain routing path between the route node outward, wherein, the outer route node of described neofield is to leave between the node identification of node identification and described more new node in the territory, node place to satisfy the node that principle is set up in described inter-domain routing.
Further, said method also has following characteristics:
Carry the information of the outer route node of described neofield in the described update notification message, described more new node obtains the information of route node outside the neofield from described update notification message.
Further, said method also has following characteristics:
Two nodes in inter-domain routing path are called first node and tail node, path direction is to tail node from first node, described inter-domain routing is set up principle and is meant, tail node is compared with all nodes in the territory, tail node place, its node identification greater than and the node identification of approaching first node, perhaps its node identification less than and the node identification of approaching first node, perhaps the absolute value minimum of the difference of the node identification of its node identification and first node.
Further, said method also has following characteristics:
Describedly set up principle according to inter-domain routing and carry out reverse searching, finding more, new node specifically is meant: route is set up principle be the tail node node identification greater than and during the node identification of approaching first node, search node identification less than and the most approaching described newly added node or the node that leaves node as new node more; Route is set up principle be the tail node node identification less than and during the node identification of approaching first node, search node identification greater than and the most approaching described node that adds ingress or leave node as new node more; Route set up principle be tail node node identification and first node node identification difference absolute value hour, the node of absolute value minimum of difference of node identification of searching node identification and described newly added node or leaving node is as new node more.
In order to solve the problems of the technologies described above, the present invention also provides a kind of multiple domain inter-domain routing maintenance system, comprise several territories, comprise plurality of nodes in the territory, wherein: described node, be used to add fashionable, in other overseas territory of this node place, find overseas routing node, set up described node to the inter-domain routing path of described overseas routing node, described overseas routing node is meant between the node identification of node identification and described node in this territory, overseas routing node place and satisfies the node that principle is set up in the inter-domain routing of presetting; Also be used for interdependent node and add fashionablely, adjust to the inter-domain routing path in other territory in other territory.
Further, said system also has following characteristics:
Described system comprises first territory and second territory at least, and first node adds described first territory, and described second territory comprises Section Point at least, wherein: described first node, when being used to add first territory, the Section Point to second territory sends a request message; When also being used to receive the response message that overseas routing node returns, be established to the inter-domain routing path of described overseas routing node; Described Section Point, be used to receive this request message after, according to inter-domain routing set up principle in second domain lookup to overseas routing node; Described overseas routing node is used to return response message and gives described first node.
Further, said system also has following characteristics:
Described first node also is used for when first adds described first territory, after receiving the response message that described overseas routing node returns, sends update notification message to described overseas routing node; Described overseas routing node is used for transmitting the every other node of described update notification message to its territory, place; Other nodes are established to the inter-domain routing path of described first node.
Further, said system also has following characteristics:
First node when also being used for non-first and adding described first territory, sends and updates request to described overseas routing node; Described overseas routing node, be used to receive described update request after, set up principle according to inter-domain routing and carry out reverse searching, in second territory, find more new node; Wherein, described first node is that the node identification of node identification and described more new node in first territory satisfies the node that principle is set up in default inter-domain routing; Described more new node is used to set up the inter-domain routing path with described first node.
Further, said system also has following characteristics:
The also corresponding responsible node of described node, described responsible node and described node belong to same territory, wherein: described responsible node, when being used to detect node and leaving, the node to other overseas territories of its place sends update notification message; The node in other territories, be used to receive this update notification message after, set up principle according to inter-domain routing and carry out reverse searching, in other territories, find more new node; Wherein, the described node that leaves is that the node identification that leaves node identification and described more new node in the territory, node place satisfies the node that principle is set up in default inter-domain routing; New node more, be used for setting up and leaving the inter-domain routing path between the route node outside the neofield of territory, node place, wherein, the outer route node of described neofield is to leave between the node identification of node identification and described more new node in the territory, node place to satisfy the node that principle is set up in the inter-domain routing of presetting.
Further, said system also has following characteristics:
Described responsible node also is used for the information of route node outside described update notification message is carried described neofield, and described more new node is used for obtaining from described update notification message the information of route node outside the neofield.
Further, said system also has following characteristics:
Two nodes in inter-domain routing path are called first node and tail node, path direction is to tail node from first node, described inter-domain routing is set up principle and is meant, tail node is compared with all nodes in the territory, tail node place, its node identification greater than and the node identification of approaching first node, perhaps its node identification less than and the node identification of approaching first node, perhaps the absolute value minimum of the difference of the node identification of its node identification and first node.
Further, said system also has following characteristics:
The node in described overseas routing node or other territories is used for searching more new node as follows: route is set up principle be the tail node node identification greater than and during the node identification of approaching first node, search node identification less than and the most approaching described newly added node or the node that leaves node as new node more; Route is set up principle be the tail node node identification less than and during the node identification of approaching first node, search node identification greater than and the most approaching described newly added node or the node that leaves node as new node more; Route set up principle be tail node node identification and first node node identification difference absolute value hour, the node of absolute value minimum of difference of node identification of searching node identification and described newly added node or leaving node is as new node more.
Multiple domain inter-domain routing maintaining method of the present invention can reduce the inter-domain routing maintenance costs.
Embodiment
Below in conjunction with drawings and Examples the present invention is further specified.
Among the present invention, each territory comprises plurality of nodes, and each node all has a node identification information, and it is as the unique identification of each node in the whole network.Node identification information can be made up of territory ID (sign) and node ID, i.e. node identification information=territory ID+ node ID.Node is formed a ring by clockwise order from small to large according to node ID in each territory, to encircling arbitrary node, its node ID is less than thereafter to the node ID of node, node ID greater than its forward direction node, wherein, the forward direction node is meant the clockwise last node of this node, and the back is meant the clockwise next node of this node to node.The invention is not restricted to the clockwise direction loop, node also can be formed a ring by counterclockwise order from small to large by node ID, and the present invention does not limit this.
The back of each node is the responsible node of this node to node, whether responsible node is used for when a node adds or leaves, and is responsible for handling and notifying overseas other node, also be used for detection node and lost efficacy, when node failure, send notice to overseas other node.In the territory first node add fashionable, because of there not being corresponding responsible node, its method for routing foundation specifically see below continue bright.
Multiple domain inter-domain routing maintaining method of the present invention comprises:
Node adds fashionable, in other overseas territories of this newly added node place, find the overseas routing node of its correspondence, set up described node to the inter-domain routing path of this overseas routing node, this overseas routing node is meant between the node identification of node identification and described first node in this territory, overseas routing node place and satisfies the node that principle is set up in the inter-domain routing of presetting; Interdependent node in other territory is set up the inter-domain routing path that principle is adjusted to this territory, newly added node place according to inter-domain routing;
When node left, the interdependent node in other territory was set up principle according to inter-domain routing, adjusted to the inter-domain routing path that this leaves territory, node place.
Wherein, it is that nearest principle of node ID etc. can reverse principle that principle is set up in described inter-domain routing, can reverse principle be meant, can make node in the territory 1 be mapped to specific node in the territory 2 according to inferior principle, and the node in the territory 2 can be known in the territory 1 what which node mapping was come, wherein:
Two nodes in inter-domain routing path are called first node and tail node, path direction is to tail node from first node, described inter-domain routing is set up principle and is meant, tail node is compared with all nodes in the territory, tail node place, its node ID greater than and the node ID of approaching first node, perhaps its node ID less than and the node ID of approaching first node, perhaps the absolute value minimum of the difference of the node ID of its node ID and first node.
Such as, node A in first territory will set up the route with second territory, be that first node is node A, when selecting tail node, select node ID in second territory greater than and near the node of the node ID of node A, such as being node P, node A and node P set up the inter-domain routing path, when node A is routed to second territory, be routed to node P.
1) node adds fashionablely, and this node is called first node, and the territory of the adding of this node is called first territory, and with a territory in other territory, this territory is called second territory, when node when adding first node in first territory, set up the inter-domain routing path and specifically comprise:
Step a1, first node add first territory, and the Section Point to second territory sends a request message;
This Section Point is first node arbitrary node from the Section Point that server obtains;
Step a2, after Section Point is received this request message, set up principle according to inter-domain routing and find overseas routing node, if Section Point is the overseas routing node of first node correspondence, execution in step a3 then, if not, then Section Point is directly transmitted or is transmitted this request message to overseas routing node by other nodes in the territory;
Step a3, overseas routing node return response message and give described first node;
Step a4, described first node are established to the inter-domain routing path of described overseas routing node, preserve the information of overseas routing node in its overseas routing table;
Step a5, described first node sends update notification message to described overseas routing node, described overseas routing node is transmitted the every other node of described update notification message to its territory, place, other nodes are established to the inter-domain routing path of described first node, and other nodes are preserved the information of first node in its overseas routing table.
2) node adds fashionablely, and this node is called first node, and the territory of the adding of this node is called first territory, and with a territory in other territory, this territory is called second territory, when node when adding non-first node in first territory, set up the inter-domain routing path and specifically comprise:
Step b1, first node add first territory, and the Section Point to second territory sends a request message;
Wherein, first node obtains the overseas routing node information of responsible node correspondence from its responsible node, and promptly Section Point information sends a request message to Section Point then;
Step b2, after Section Point is received this request message, set up principle finds the first node correspondence in second territory overseas routing node according to inter-domain routing, if Section Point is the overseas routing node of first node correspondence, then need not transmit this request message, execution in step b3, if not, then Section Point is directly transmitted or is transmitted this request message to overseas routing node by other nodes in the territory;
Step b3, overseas routing node return response message and give described first node;
Step b4, first node are established to the inter-domain routing path of described overseas routing node, preserve the information of overseas routing node in its overseas routing table;
Step b5, first node sends and updates request to described overseas routing node, described overseas routing node is set up principle according to inter-domain routing and is carried out reverse searching, in second territory, find more new node, described more new node is set up the inter-domain routing path with described first node, wherein, described first node is that the node identification of node identification and described more new node in first territory satisfies the node that principle is set up in default inter-domain routing.
When 3) node left, supposing to leave node was first node, specifically comprises:
When step c1, responsible node detected node and leave, this node was called and leaves node, and responsible node sends update notification message to the node in other overseas territory of responsible node place;
Be meant that specifically responsible node sends update notification message to its overseas routing node;
Step c2 after the node in other territory is received this update notification message, sets up principle according to inter-domain routing and carries out reverse searching, and finds more new node in other territory; Wherein, the described node that leaves is that the node identification that leaves node identification and described more new node in the territory, node place satisfies the node that principle is set up in default inter-domain routing;
Step c3, described more new node is set up and the neofield that leaves territory, the node place inter-domain routing path between the route node outward, wherein, the outer route node of described neofield is to leave between the node identification of node identification and described more new node in the territory, node place to satisfy the node that principle is set up in described inter-domain routing.
Wherein, among the step c1, carry the information of the outer route node of described neofield in the described update notification message, among the step c3, described more new node obtains the information of route node outside the neofield from described update notification message.
Above-mentioned steps b5 sets up principle according to inter-domain routing described in the c2 and carries out reverse searching, and finding more, new node specifically is meant:
Route is set up principle be the tail node node ID greater than and during the node ID of approaching first node, search node ID less than and the node of the most approaching described adding or the node that leaves as new node more;
Route is set up principle be the tail node node ID less than and during the node ID of approaching first node, search node ID greater than and the node of the most approaching described adding or the node that leaves as new node more;
Route set up principle be tail node node ID and first node node ID difference absolute value hour, search node ID and described adding or the node of the absolute value minimum of the difference of the node ID of the node that leaves as new node more.
Describe below by setting up route between two territories, still, it is to be noted, the invention is not restricted to two inter-domain routings safeguards, when having a plurality of territory, such as territory 1, territory 2 and territory 3, similar situation that has two territories of method of route set up and safeguarded in each territory between any two.
In conjunction with Fig. 2, four nodes (P, Q, R, S) have been arranged in the territory 2, when first node A in the territory 1 adds overlay network, more new technological process is as shown in Figure 3 in inter-domain routing, in the present embodiment, principle is set up in inter-domain routing be node ID greater than and the most approaching node ID of waiting to set up the node of route, concrete steps are as follows:
Step S301, node A obtains arbitrary node Q information from server, and Q sends out request message to node, comprises the information of node A in the message;
Step S302~S304, node Q according to greater than and near the node of setting up route in the principle decision space 2 of the node ID of node A with node A, this node is called the overseas routing node of node A or is called finish node, if node Q is a finish node, then node Q directly returns response message and gives node A, otherwise node Q comprises the information of finish node to the request message of next node forward node A in this message;
When next node is received this request message, judge whether oneself is finish node, if not, continue to transmit request message, if then return response message and give node A to next node;
In this enforcement, next node is node P, and node P returns response message by node Q and give node A when finding oneself to be finish node, comprises the information of node P in the response message.
Step S305, after node A receives response message, preserve node P information, and send update (renewal) notification message to node P, first node A of notice node P neofield adds overlay network, and requires node P with this forwards other all nodes in the territory, node P place;
Step S306~S308 after the notified message of node P, preserves node A information, utilizes mode all nodes in the territory of grouping broadcasting to transmit this notification message simultaneously; After other node is received message, preserve node A information.
Like this, routing relation foundation mutually between territory 1 and the territory 2, as shown in Figure 4.Node A is overseas in the territory 1 when being routed in the territory 2, selects node P; When all nodes in the territory 2 are routed in the territory 1, select node A.
Introduce non-first node adding in the territory below, inter-domain routing is new technological process more.Fig. 6 adds inter-domain routing connection diagram before for node C.Fig. 6 (a) is the connection diagram that territory 1 all nodes are routed to territory 2; Fig. 6 (b) is the connection diagram that territory 2 all nodes are routed to territory 1.Fig. 7 adds inter-domain routing connection diagram afterwards for node C.Fig. 7 (a) is the connection diagram that territory 1 all nodes are routed to territory 2; Fig. 7 (b) is the connection diagram that territory 2 all nodes are routed to territory 1.
As shown in Figure 5, when node C added overlay network, the concrete steps of overseas routing update comprised:
Step S501, non-first node C sends out request message to its responsible node D in the territory 1;
The node ID of responsible node greater than and near the node ID of node C.
Step S502, node D return its overseas routing table, comprising node Q information;
Step S503, node C sends a request message to node Q;
Step S504~S505, node Q according to greater than and near the principle of the node ID of node C, judge the node of setting up route with node C, this node is the overseas routing node of node C or is called finish node; If node Q is a finish node, then node Q directly returns response message and gives node A; Otherwise node Q comprises the information of finish node to the request message of next node forward node C in this message; When next node is received this request message, judge whether oneself is finish node, if not, continue to transmit request message, if then return response and give node A to next node;
In the present embodiment, it oneself is exactly finish node that node Q finds, returns response message and gives node C, comprises the information of node Q in the response message;
Step S506, node C sends update request to node Q after its overseas routing table is preserved the information of node Q;
Step S507~S508, node Q according to greater than and carry out reverse searching near principle, promptly in territory 2, search node ID less than and near the node of node C, this node is called more new node, transmit update inquiry information and give more new node, this more overseas routing node of new node by changing to node C.
In the present embodiment, the more new node that finds is node P, and then the overseas route of node P changes node C into by node D, and promptly node P with the information deletion of node D, increases the information of node C in its overseas routing table; Node P returns on former again road response message and gives node C.
Like this, before C added, it was to select node D that node P is routed to territory 1, and after the C that adds some points added, it was to have selected node C that node P is routed to territory 1.
Introduce the territory interior nodes below and lost efficacy, inter-domain routing is new technological process more.As shown in Figure 8, concrete steps are as follows:
Step S801, the responsible node D of node C regularly sends out the keep-alive request to node C;
Step S802 if node D receives the keep-alive response that node C returns within a certain period of time, then returns step S801; If node D does not receive the keep-alive response of node C, then execution in step S803 in the regular hour;
Step S803, node D sends out update notification message to node Q, and notice node Q node C lost efficacy;
Can carry in this update notification message node ID in the territory 1 greater than and near the nodal information of the node ID of the overseas routing node (being node P) of node C, in the present embodiment, in the territory 1, the node ID of node D greater than and near the node ID of node P, so, the information of in this update notification message, carrying node D.
Step S804~S8067, node Q according to greater than and immediate principle carry out reverse searching, promptly in territory 2, search less than node C and near the node of node C, this node is called more new node, transmit notification message to new node more; After more new node is received this notification message, with the node C information in its overseas routing table change in the territory 1 node ID greater than and near the node of node P, can from notification message, obtain this information; The more former road of new node is returned response message and is given node D;
In the present embodiment, this more new node be node P, after the notified message of node P, change node C information in the corresponding entry in its overseas routing table into node D; Former road is returned response and is given node D.
Behind the node failure, the inter-domain routing situation in two territories as shown in Figure 6.