CN102316605B - Method and device for building communication connection - Google Patents

Method and device for building communication connection Download PDF

Info

Publication number
CN102316605B
CN102316605B CN201110337507.2A CN201110337507A CN102316605B CN 102316605 B CN102316605 B CN 102316605B CN 201110337507 A CN201110337507 A CN 201110337507A CN 102316605 B CN102316605 B CN 102316605B
Authority
CN
China
Prior art keywords
branch node
node
subnet
information
branch
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.)
Expired - Fee Related
Application number
CN201110337507.2A
Other languages
Chinese (zh)
Other versions
CN102316605A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110337507.2A priority Critical patent/CN102316605B/en
Publication of CN102316605A publication Critical patent/CN102316605A/en
Application granted granted Critical
Publication of CN102316605B publication Critical patent/CN102316605B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for building the communication connection. The method comprises the following steps of: receiving a first register request message sent by a first branch node, wherein the first register request message includes first information, and the first information is used for indicating the corresponding relationship between the public network address and a next hop of a sub network node of the first branch node; sending a synchronous message to a registered second branch node according to the first register request message, wherein the synchronous message includes the first information; and sending a first register answer message to the first branch node according to the first register request message, wherein the first register answer message comprises second information, and the second information is used for indicating the corresponding relationship between the public network address and the next hop of the sub network node of the second branch node so that the first branch node and the second branch node build the communication connection. The method and the device provided by the embodiment of the invention have the advantages that the flow process for building the communication connection can be simplified, the message types can be reduced, and the load of a center node is reduced.

Description

The method and apparatus establishing a communications link
Technical field
The embodiment of the present invention relates to the communications field, and more specifically, relates to the method and apparatus establishing a communications link.
Background technology
Next Hop Resolution Protocol (English: Next Hop Resolution Protocol, be called for short: NHRP) for solving non-broadcast multipath access network (English: Non-Broadcast Multiple Access, be called for short: how the source node NBMA) obtains the problem of the public network address that arrives destination node down hop, if the node of NBMA down hop and NBMA Subnetwork connection, this node is exactly Target Station; Otherwise the node of NBMA down hop is from NBMA subnet to the nearest egress router of Target Station.NHRP is designed in the multiple agreement internetwork layer environment under NBMA subnet.
At present, in existing NHRP message interaction flow process, while establishing a communications link, first, each branch node is registered to Centroid by NHRP, and Centroid, according to NHRP agreement, records the down hop of each branch node and the corresponding relation of branch tunnel public network address; When the subnet of each branch node communicates, while having the flow of mutual exchange between each branch node, source branch node first carries out VPN route to be searched, and obtains the down hop of VPN route; If source branch node does not still have the public network address of down hop, need to initiate analysis request flow process and reply flow process, that is, source branch node sends NHRP address resolution request to Centroid; Centroid receives NHRP analysis request, and forwards NHRP analysis request to target branch node; Target breakout receives NHRP analysis request, and sends NHRP resolution response to source branch node.
Therefore, this existing message interaction flow process is complicated, when source branch node will obtain the down hop of target branch node and the corresponding relation of tunnel public network address, and the flow process such as need to initiate analysis request and reply.And mutual message kind is more.And when branch node is more, the load of Centroid is larger, and, if source branch node does not still have the public network address of down hop, in analysis request and reply etc. in flow process, Centroid need to encapsulate and decapsulation analysis request message, has further increased the weight of the load of Centroid.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus establishing a communications link, and can simplify the flow process establishing a communications link, and reduces type of message, and alleviates the load of Centroid.
On the one hand, a kind of method establishing a communications link is provided, the method comprises: receive the first registration request message that the first branch node sends, this the first registration request message comprises the first information, and this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this first branch node; According to this first registration request message, to registered the second branch node, send sync message, this sync message comprises this first information; According to this first registration request message, to this first branch node, send the first registration reply message, this registration reply message comprises the second information, this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node, so that this first branch node and this second branch node establish a communications link.
On the other hand, a kind of method establishing a communications link is provided, the method comprises: to Centroid, send registration request message, this registration request message comprises the first information, this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this first branch node, so that this Centroid, according to this registration request message, sends to registered the second branch node the sync message that comprises this first information; Receive the registration reply message that this Centroid sends, this registration reply message comprises the second information, and this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node; According to this second information, establish a communications link with this second branch node.
Again on the one hand, a kind of device establishing a communications link is provided, this device comprises: receiver, the the first registration request message sending for receiving the first branch node, this the first registration request message comprises the first information, and this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this first branch node, transmitter, for this first registration request message receiving according to this receiver, to registered the second branch node, send sync message, this sync message comprises this first information, and this first registration request message for receiving according to this receiver, to this first branch node, send the first registration reply message, this the first registration reply message comprises the second information, this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node, so that this first branch node and this second branch node establish a communications link.
Again on the one hand, a kind of device establishing a communications link is provided, this device comprises: transmitter, for sending registration request message to Centroid, this registration request message comprises the first information, this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this device, so that this Centroid, according to this registration request message, sends to registered the second branch node the sync message that comprises this first information; Receiver, the registration reply message sending for receiving this Centroid, this registration reply message comprises the second information, this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node, so that this device and this second branch node establish a communications link.
Based on above technical scheme, the method and apparatus establishing a communications link of the embodiment of the present invention, by Centroid, to the first branch node and registered the second branch node, send the indication down hop of subnet node of branch node and the information of the corresponding relation of public network address respectively, so that set up communication tunnel between each branch node and between each branch node and Centroid, thereby can simplify the flow process establishing a communications link, reduce type of message, and alleviate the load of Centroid.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is according to the indicative flowchart of the method establishing a communications link of the embodiment of the present invention.
Fig. 2 is according to the Organization Chart of the method establishing a communications link of the embodiment of the present invention.
Fig. 3 is according to another indicative flowchart of the method establishing a communications link of the embodiment of the present invention.
Fig. 4 is according to another indicative flowchart of the method establishing a communications link of the embodiment of the present invention.
Fig. 5 is the indicative flowchart of the method that establishes a communications link according to another embodiment of the present invention.
Fig. 6 is the indicative flowchart of the method establishing a communications link according to yet another embodiment of the invention.
Fig. 7 is the indicative flowchart of the method establishing a communications link according to yet another embodiment of the invention.
Fig. 8 is the indicative flowchart of the method establishing a communications link according to yet another embodiment of the invention.
Fig. 9 is the indicative flowchart of the method establishing a communications link according to yet another embodiment of the invention.
Figure 10 is the indicative flowchart of the method establishing a communications link according to yet another embodiment of the invention.
Figure 11 is according to the schematic block diagram of the device establishing a communications link of the embodiment of the present invention.
Figure 12 is according to another schematic block diagram of the device establishing a communications link of the embodiment of the present invention.
Figure 13 is the schematic block diagram of the device that establishes a communications link according to another embodiment of the present invention.
Figure 14 is the schematic block diagram of the device establishing a communications link according to yet another embodiment of the invention.
Figure 15 is the schematic block diagram of the device establishing a communications link according to yet another embodiment of the invention.
Figure 16 is the schematic block diagram of the device establishing a communications link according to yet another embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Technical scheme of the present invention, can be applied to various communication systems, for example: GSM, code division multiple access (CDMA, Code Division Multiple Access) system, Wideband Code Division Multiple Access (WCDMA) (WCDMA, Wideband Code Division Multiple Access Wireless), GPRS (GPRS, General Packet Radio Service), Long Term Evolution (LTE, Long Term Evolution) etc.
In embodiments of the present invention, the device establishing a communications link comprises Centroid and branch node, in the following description, the hub HUB of take describes Centroid as example, and the router SPOKE of take describes branch node as example, should understand, the Centroid of the embodiment of the present invention is not limited to HUB, can also comprise other equipment, same, branch node is not limited to SPOKE, also can comprise other equipment.
Fig. 1 shows and describes from the angle of Centroid, for example HUB, according to the indicative flowchart of the method establishing a communications link 100 of the embodiment of the present invention.As shown in Figure 1, the method 100 comprises:
S110, receives the first registration request message that the first branch node sends, and this first registration request message comprises the first information, and this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this first branch node;
S120, according to this first registration request message, sends sync message to registered the second branch node, and this sync message comprises this first information;
S130, according to this first registration request message, to this first branch node, send the first registration reply message, this the first registration reply message comprises the second information, this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node, so that this first branch node and this second branch node establish a communications link.
Particularly, as shown in Figure 2, Centroid (for example HUB) for example, after receiving the first registration request message of the first branch node (SPOKE1) transmission, for example, to the second branch node (SPOKE2 and SPOKE3), send sync message, this sync message comprises indicates the down hop of subnet node of SPOKE1 and the information of the corresponding relation of public network address, makes SPOKE2 and SPOKE3 can obtain according to NHRP agreement the down hop of subnet node and the corresponding relation of public network address of SPOKE1.When the subnet node of SPOKE2 or SPOKE3 and the subnet node of SPOKE1 communicate, SPOKE2 or SPOKE3 can, according to the down hop of subnet node of SPOKE1 and the corresponding relation of public network address, obtain down hop and the public network address of the subnet node of SPOKE1.And, HUB is after receiving the first registration request message of SPOKE1 transmission, to SPOKE1, send the first registration reply message, this the first registration reply message comprises indication SPOKE2 and the down hop of subnet node of SPOKE3 and the information of the corresponding relation of public network address, make SPOKE1 according to NHRP agreement, to obtain the down hop of subnet node and the corresponding relation of public network address of SPOKE2 and SPOKE3.When the subnet node of SPOKE1 and the subnet node of SPOKE2 or SPOKE3 communicate, SPOKE1 can, according to the down hop of subnet node of SPOKE2 or SPOKE3 and the corresponding relation of public network address, obtain down hop and the public network address of the subnet node of SPOKE2 or SPOKE3.Like this, between each SPOKE and between each SPOKE and HUB, set up communication tunnel.
Therefore, according to the method establishing a communications link 100 of the embodiment of the present invention, by Centroid, to the first branch node and registered the second branch node, send the indication down hop of subnet node of branch node and the information of the corresponding relation of public network address respectively, so that set up communication tunnel between each branch node and between each branch node and Centroid, thereby can simplify the flow process establishing a communications link, reduce type of message, and alleviate the load of Centroid.
Should understand, SPOKE to HUB registration includes, but are not limited to SPOKE2 and SPOKE3, can also comprise one or more SPOKE, and, the first branch includes, but are not limited to SPOKE1, can also comprise one or more SPOKE, the second branch includes, but are not limited to SPOKE2 and SPOKE3, can also comprise one or more SPOKE.Equally, SPOKE2 or SPOKE3 can represent all to one or more SPOKE of HUB registration, below omit the explanation to kindred circumstances.
In embodiments of the present invention, HUB can also generate according to this first registration request message the NHRP PEER of SPOKE1.Therefore, as shown in Figure 3, according to the method establishing a communications link 100 of the embodiment of the present invention, can further include:
S140, according to this first information, obtains the down hop of subnet node and the corresponding relation of public network address of this first branch node;
S150, according to the down hop of subnet node of this first branch node and the corresponding relation of public network address, generates the Next Hop Resolution Protocol NHRP list item PEER of this first branch node.
That is, HUB can be according to the NHRP PEER of NHRP protocol generation SPOKE1, the down hop of subnet node and the corresponding relation of public network address of the NHRP PEER of this SPOKE1 indication SPOKE1.
Should be understood that HUB can generate and safeguard the NHRP PEER of all registered SPOKE.
And, SPOK1 is according to the down hop of subnet node of SPOKE2 and the corresponding relation of public network address and obtain after the down hop and public network address of subnet node of SPOKE2, can also be according to the NHRP PEER of the NHRP protocol generation indication down hop of subnet node of SPOKE2 and the SPOKE2 of the corresponding relation of public network address, after the NHRP of SPOKE2 PEER is aging, when the subnet of SPOKE1 and the subnet of SPOKE2 communicate, SPOKE1 need to obtain the down hop of subnet node and the corresponding relation of public network address of SPOKE2, now, SPOKE1 can send registration request message (being the second logon message in the embodiment of the present invention) to HUB again, therefore, as shown in Figure 4, according to the method establishing a communications link 100 of the embodiment of the present invention, can further include:
S160, receives the second registration request message that this first branch node sends;
S170, according to the NHRP PEER of this first branch node, determines that this first branch node is registered;
S180, according to this second registration request message, only to this first branch node, send the second registration reply message, this second registration reply message comprises the second information, and this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node.
; HUB receives after registration request message; can be first according to the NHRP PEER of each SPOKE having generated; whether the SPOKE1 of this registration request message of judgement transmission is registered; if there is the NHRP PEER corresponding with this SPOKE1 in HUB; can determine that SPOKE1 is registered, therefore, HUB can only send to SPOKE1 by the indication down hop of subnet node of other branch nodes, for example SPOKE2 and SPOKE3 and the information of the corresponding relation of public network address.Here, " only " be interpreted as, only will indicate SPOKE2 and the down hop of subnet node of SPOKE3 and the information of the corresponding relation of public network address to send to SPOKE1, and will not indicate the down hop of subnet node of SPOKE1 and the information of the corresponding relation of public network address to send to SPOKE2 and SPOKE3.
Like this, owing to the indication down hop of subnet node of registered SPOKE1 and the information of the corresponding relation of public network address not being sent to SPOKE2 and SPOKE3, therefore further alleviate the load of HUB, improved communication efficiency, also avoided the reprocessing of SPOKE to Given information.
Should understand, the second registration request message and the first registration request message are for the message to Centroid registration, and, the first registration reply message and the second registration reply message are for sending the message of the indication down hop of subnet node of the second branch node and the information of the corresponding relation of public network address, adopt different titles to be described for the ease of understanding.
Fig. 5 shows and describes from the angle of the first branch node, for example SPOKE1, according to the indicative flowchart of the method establishing a communications link 300 of the embodiment of the present invention.As shown in Figure 5, the method 300 comprises:
S310, to Centroid, send registration request message, this registration request message comprises the first information, this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this first branch node, so that this Centroid, according to this registration request message, sends to registered the second branch node the sync message that comprises this first information;
S320, receive the registration reply message that this Centroid sends, this registration reply message comprises the second information, and this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node, so that establish a communications link with this second branch node.
Particularly, as shown in Figure 2, for example, for example, when the subnet node of the subnet node of the first branch node (SPOKE1) and the second branch node (SPOKE2 or SPOKE3) communicates, SPOKE1 for example, sends registration request message to Centroid (HUB).HUB is after receiving the registration request message of SPOKE1 transmission, can pass through sync message to SPOKE2 and SPOKE3, this sync message comprises the down hop of subnet node of SPOKE1 and the information of the corresponding relation of public network address of indicating, make SPOKE2 and SPOKE3 according to NHRP agreement, to obtain the down hop of subnet node and the corresponding relation of public network address of SPOKE1.When the subnet node of SPOKE2 or SPOKE3 and the subnet node of SPOKE1 communicate, SPOKE2 or SPOKE3 can, according to the down hop of subnet node of SPOKE1 and the corresponding relation of public network address, obtain down hop and the public network address of the subnet node of SPOKE1.And, HUB is after receiving the registration request message of SPOKE1 transmission, can send registration reply message to SPOKE1, this registration reply message comprises indication SPOKE2 and the down hop of subnet node of SPOKE3 and the information of the corresponding relation of public network address, make SPOKE1 can obtain according to NHRP agreement the down hop of subnet node and the corresponding relation of public network address of SPOKE2 and SPOKE3, when the subnet node of SPOKE1 and the subnet node of SPOKE2 or SPOKE3 communicate, SPOKE1 can be according to the down hop of subnet node of SPOKE2 or SPOKE3 and the corresponding relation of public network address, obtain down hop and the public network address of the subnet node of SPOKE2 or SPOKE3.Like this, between each SPOKE and between each SPOKE and HUB, set up communication tunnel.
Therefore, according to the method establishing a communications link 300 of the embodiment of the present invention, by Centroid, to the first branch node and registered the second branch node, send the indication down hop of subnet node of branch node and the information of the corresponding relation of public network address respectively, so that set up communication tunnel between each branch node and between each branch node and Centroid, thereby can simplify the flow process establishing a communications link, reduce type of message, and alleviate the load of Centroid.
In embodiments of the present invention, SPOKE1 can also generate according to registration reply message registration request message the NHRP PEER of SPOKE2.Therefore, as shown in Figure 6, according to the method establishing a communications link 300 of the embodiment of the present invention, can further include:
S330, according to this second information, obtains the down hop of subnet node and the corresponding relation of public network address of this second branch node;
S340, according to the down hop of subnet node of this second branch node and the corresponding relation of public network address, generates the Next Hop Resolution Protocol NHRP list item PEER of the second branch node.
That is, SPOKE1 can be according to the NHRP PEER of the NHRP protocol generation indication down hop of subnet node of SPOKE2 and the SPOKE2 of the corresponding relation of public network address.
Should be understood that SPOKE1 can generate and safeguard the NHRPPEER of all SPOKE that registered to HUB.
In embodiments of the present invention, SPOKE1 can also determine the down hop of subnet node of each SPOKE and the priority of the corresponding relation of public network address, and generates and safeguard NHRPPEER according to priority.Therefore, as shown in Figure 7, according to the method establishing a communications link 300 of the embodiment of the present invention, can further include:
S341, according to the communication flows of the subnet of the subnet of this first branch node and this second branch node, determines the down hop of subnet node of this second branch node and the priority of the corresponding relation of public network address;
S342, according to this priority, generates the NHRP PEER of this second branch node, makes this priority higher, the NHRP PEER of this second branch node to search cis-position more forward.
, SPOKE1 is after obtaining the down hop of subnet node and the corresponding relation of public network address of SPOKE2 and SPOKE3, can be according to the communication flows of the subnet of the subnet of SPOKE1 and SPOKE2 and SPOKE3, determine the priority of SPOKE2 and SPOKE3, the larger priority of flow is higher, for example, if the communication flows of the subnet of the subnet of SPOKE1 and SPOKE2 is greater than the communication flows of the subnet of SPOKE1 and the subnet of SPOKE3, can determine that the priority of SPOKE2 is higher than the priority of SPOKE3, therefore the priority of the NHRP PEER of the SPOKE2 generating is also higher than the priority of the NHRP PEER of SPOKE3, SPOKE1 is when searching each NHRP PEER, can be according to priority, search successively from high in the end, the NHRP PEER that first searches SPOKE2 searches the NHRP PEER of SPOKE3 again, and, SPOKE1 also can be undertaken by this priority the maintenance of the NHRP PEER of each SPOKE, make the higher aging speed of priority of NHRP PEER slower.Thus, improved inquiry velocity.
Here, communication flows can be determined according to call duration time, be that call duration time is longer, communication flows is larger, but the embodiment of the present invention is not limited thereto, and also can determine communication flows according to other modes, equally, priority also can be determined according to other modes, for example, directly according to call duration time, determines.
Flow process during the communicating by letter of the subnet that Fig. 8 shows SPOKE1 and SPOKE2 subnet, as shown in Figure 8, can further include according to the method establishing a communications link 300 of the embodiment of the present invention:
S350, according to the NHRP PEER of this second branch node, obtains down hop and the public network address of the subnet node of this second branch node;
S355, according to down hop and the public network address of the subnet node of this second branch node, encapsulation Generic Routing Encapsulation GRE message;
S360, sends this GRE message to the subnet node of this second branch node.
That is, SPOKE1 generates after the NHRP PEER of SPOKE2, when the subnet of SPOKE1 and the subnetwork communicating of SPOKE2, SPOKE1 can be according to the NHRP PEER of SPOKE2, inquiry down hop and public network address corresponding to down hop, then carry out the encapsulation of GRE message, sends message.
Like this, when the subnet of SPOKE1 and SPOKE2 subnet communicate, without again to HUB initiate to be redirected, analysis request and reply flow process, and the kind of service message also reduced be redirected, analysis request and response message, thereby, can simplify the flow process and the type of message that establish a communications link, and, HUB, without analysis request message is carried out to decapsulation, encapsulation operation, therefore, can alleviate the load of HUB.
And, SPOKE1 generates after the NHRP PEER of SPOKE2, can safeguard voluntarily the NHRP PEER of this SPOKE2, Fig. 9 and Figure 10 show the flow process that SPOKE1 deletes the NHRPPEER of SPOKE2, as shown in Figure 9, according to the method establishing a communications link 300 of the embodiment of the present invention, can further include:
S370, determines that the subnet of this first branch route and the subnet of this second branch route do not communicate at the appointed time;
S375, removes the NHRP PEER of this second branch node.
That is, can, according to flow, make the NHRP PEER of each SPOKE aging.For example, if SPOKE1 exceeds schedule time, do not communicate by letter with SPOKE2, side makes the NHRP PEER of SPOKE2 aging.
And, as shown in figure 10, according to the method establishing a communications link 300 of the embodiment of the present invention, can further include:
S380, receives the list item removing request message that this second branch node sends;
S385, removes request message according to this list item, removes the NHRP PEER of this second branch node;
S390, sends list item to this second branch node and removes request response message.
That is, when the subnet of SPOKE2 need to be cut off the communication connection with the subnet of SPOKE1, SPOKE2 can send list item to SPOKE1 and remove request message, and SPOKE1 is removed after request message receiving this list item, removes the NHRP PEER of SPOKE2.Like this, saved memory space, improved inquiry velocity, be easy to safeguard.
Above, in conjunction with Fig. 1 to Figure 10, describe the method establishing a communications link according to the embodiment of the present invention in detail, below, in connection with Figure 11 to Figure 16, describe in detail according to the device establishing a communications link of the embodiment of the present invention.
Figure 11 shows according to the schematic block diagram of the device establishing a communications link 400 of the embodiment of the present invention.As shown in figure 11, this device 400 comprises:
Receiver 410, the first registration request message sending for receiving the first branch node, this first registration request message comprises the first information, this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this first branch node;
Transmitter 450, for connect this first registration request message of 410 receipts according to this receiver, sends sync message to registered the second branch node, and this sync message comprises this first information, and
For this first registration request message receiving according to this receiver 410, to this first branch node, send the first registration reply message, this the first registration reply message comprises the second information, this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node, so that this first branch node and this second branch node establish a communications link.
Therefore, according to the device establishing a communications link 400 of the embodiment of the present invention, by Centroid, to the first branch node and registered the second branch node, send the indication down hop of subnet node of branch node and the information of the corresponding relation of public network address respectively, so that set up communication tunnel between each branch node and between each branch node and Centroid, thereby can simplify the flow process establishing a communications link, reduce type of message, and alleviate the load of Centroid.
In embodiments of the present invention, alternatively, as shown in figure 12, this device 400 can further include:
Acquiring unit 420, for this first information comprising according to this first registration request message of these receiver 410 receptions, obtains the down hop of subnet node and the corresponding relation of public network address of this first branch node;
Generation unit 430, for the down hop of subnet node and the corresponding relation of public network address of this first branch node of obtaining according to this acquiring unit 420, generates the Next Hop Resolution Protocol NHRP list item PEER of this first branch node.
In embodiments of the present invention, alternatively, as shown in figure 12,
The second registration request message that this receiver 410 also sends for receiving this first branch node;
This device 400 also comprises: determining unit 440, for according to the NHRP PEER of this first branch node of these generation unit 430 generations, determine that this first branch node is registered;
This transmitter 450 is also for determining in the registered situation of this first branch node in this determining unit 440, this the second registration request message receiving according to this receiver 410, only to this first branch node, send the second registration reply message, this the second registration reply message comprises the second information, and this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node.
Like this, owing to no longer the indication down hop of subnet node of registered SPOKE and the information of the corresponding relation of public network address being sent to other SPOKE, therefore further alleviate the load of HUB, improved communication efficiency, also avoided the reprocessing of SPOKE to Given information.
Can for example, corresponding to the Centroid in the method for the embodiment of the present invention (HUB) according to the device establishing a communications link 400 of the embodiment of the present invention, and, each unit in this device establishing a communications link 400 is that module and above-mentioned other operations and/or function are respectively in order to realize the corresponding flow process of the method 100 in Fig. 1, Fig. 3 and Fig. 4, for simplicity, do not repeat them here.
Figure 13 shows according to the schematic block diagram of the device establishing a communications link 500 of the embodiment of the present invention.As shown in figure 13, this device 500 comprises:
Transmitter 510, for sending registration request message to Centroid, this registration request message comprises the first information, this first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this device, so that this Centroid, according to this registration request message, sends to registered the second branch node the sync message that comprises this first information;
Receiver 520, the registration reply message sending for receiving this Centroid, this registration reply message comprises the second information, this second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of this second branch node, so that this device 500 establishes a communications link with this second branch node.
Therefore, according to the device establishing a communications link 500 of the embodiment of the present invention, by Centroid, to the first branch node and registered the second branch node, send the indication down hop of subnet node of branch node and the information of the corresponding relation of public network address respectively, so that set up communication tunnel between each branch node and between each branch node and Centroid, thereby can simplify the flow process establishing a communications link, reduce type of message, and alleviate the load of Centroid.
In embodiments of the present invention, alternatively, as shown in figure 14, this device 500 can further include:
The first acquiring unit 530, for this second information comprising according to this registration reply message of these receiver 520 receptions, obtains the down hop of subnet node and the corresponding relation of public network address of this second branch node;
Generation unit 540, for the down hop of subnet node and the corresponding relation of public network address of this second branch node of obtaining according to this first acquiring unit 530, generates the Next Hop Resolution Protocol NHRP list item PEER of the second branch node.
In embodiments of the present invention, alternatively, as shown in figure 14, this generation unit 540 comprises:
Determination module 544, for according to the communication flows of the subnet of the subnet of this device 500 and this second branch node, determines the down hop of subnet node of this second branch node and the priority of the corresponding relation of public network address;
Generation module 548, for this priority of determining according to this determination module 544, generates the Next Hop Resolution Protocol NHRP list item PEER of the second branch node, makes this priority higher, the NHRP PEER of this second branch node to search cis-position more forward.
Thus, improved inquiry velocity.
In the embodiment of the present invention, alternatively, as shown in figure 14, this device 500 can further include:
Second acquisition unit 550, for according to the NHRP PEER of this second branch node of these generation unit 540 generations, obtains down hop and the public network address of the subnet node of this second branch node;
Encapsulation unit 560, for down hop and the public network address of the subnet node of this second branch node of obtaining according to this second acquisition unit 550, encapsulation Generic Routing Encapsulation GRE message;
This transmitter 510 also sends this GRE message of this encapsulation unit encapsulation for the subnet node to this second branch node.
Like this, when the subnet of SPOKE1 and SPOKE2 subnet communicate, without again to HUB initiate to be redirected, analysis request and reply flow process, and the kind of service message also reduced be redirected, analysis request and response message, thereby, can simplify the flow process and the type of message that establish a communications link, and, HUB, without analysis request message is carried out to decapsulation, encapsulation operation, therefore, can alleviate the load of HUB.
In the embodiment of the present invention, alternatively, as shown in figure 15, this device 500 can also comprise:
Determining unit 570, for determining that the subnet of this first branch route and the subnet of this second branch route do not communicate at the appointed time;
The first clearing cell 580, in the situation that the definite subnet of this first branch route of this determining unit 570 and the subnet of this second branch route do not communicate at the appointed time, removes the NHRP PEER of this second branch node.
In the embodiment of the present invention, alternatively, as shown in figure 15,
The list item removing request message that this receiver 520 also sends for receiving this second branch node;
This device 500 also comprises: the second clearing cell 590, for this list item receiving according to this receiver 520, remove request message, and remove the NHRP PEER of this second branch node;
This transmitter 510 is also removed request response message for sending list item to this second branch node.
Like this, saved memory space, improved inquiry velocity, be easy to safeguard.
Can for example, corresponding to the first branch node in the method for the embodiment of the present invention (SPOKE1) according to the device establishing a communications link 500 of the embodiment of the present invention, and, each unit in this device establishing a communications link 500 is that module and above-mentioned other operations and/or function are respectively in order to realize the corresponding flow process of the method 300 in Fig. 5 to Figure 10, for simplicity, do not repeat them here.
Should understand, in the above description, when the subnet of SPOKE1 need to communicate with the subnet of SPOKE2, the first branch node SPOKE1 of take is source node, take SPOKE2 as destination node, otherwise, when the subnet of SPOKE2 need to communicate with the subnet of SPOKE1, the first branch node SPOKE2 of take is source node, take SPOKE1 as destination node.
And, in various embodiment of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should determine with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be appreciated that the system disclosing, apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.
If described function usings that the form of SFU software functional unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.

Claims (18)

1. the method establishing a communications link, is characterized in that, described method comprises:
Receive the first registration request message that the first branch node sends, described the first registration request message comprises the first information, and the described first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the first branch node;
According to described the first registration request message, to registered the second branch node, send sync message, described sync message comprises the described first information;
According to described the first registration request message, to described the first branch node, send the first registration reply message, described the first registration reply message comprises the second information, described the second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the second branch node, so that described the first branch node and described the second branch node establish a communications link.
2. method according to claim 1, is characterized in that, described method also comprises:
According to the described first information, obtain the down hop of subnet node and the corresponding relation of public network address of described the first branch node;
According to the down hop of subnet node of described the first branch node and the corresponding relation of public network address, generate the Next Hop Resolution Protocol NHRP list item PEER of described the first branch node.
3. method according to claim 2, is characterized in that, described method also comprises:
Receive the second registration request message that described the first branch node sends;
According to the NHRP PEER of described the first branch node, determine that described the first branch node is registered;
According to described the second registration request message, only to described the first branch node, send the second registration reply message, described registration reply message comprises the second information, and described the second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the second branch node.
4. the method establishing a communications link, is characterized in that, described method comprises:
To Centroid, send registration request message, described registration request message comprises the first information, the described first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the first branch node, so that described Centroid, according to described registration request message, sends to registered the second branch node the sync message that comprises the described first information;
Receive the registration reply message that described Centroid sends, described registration reply message comprises the second information, described the second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the second branch node, so that establish a communications link with described the second branch node.
5. method according to claim 4, is characterized in that, described method also comprises:
According to described the second information, obtain the down hop of subnet node and the corresponding relation of public network address of described the second branch node;
According to the down hop of subnet node of described the second branch node and the corresponding relation of public network address, generate the Next Hop Resolution Protocol NHRP list item PEER of the second branch node.
6. method according to claim 5, is characterized in that, the NHRP PEER of described generation the second branch node also comprises:
According to the communication flows of the subnet of the subnet of described the first branch node and described the second branch node, determine the down hop of subnet node of described the second branch node and the priority of the corresponding relation of public network address;
According to described priority, generate the NHRP PEER of described the second branch node, make described priority higher, the NHRP PEER of described the second branch node to search cis-position more forward.
7. according to the method described in claim 5 or 6, it is characterized in that, described method also comprises:
According to the NHRP PEER of described the second branch node, obtain down hop and the public network address of the subnet node of described the second branch node;
According to down hop and the public network address of the subnet node of described the second branch node, encapsulation Generic Routing Encapsulation GRE message;
Subnet node to described the second branch node sends described GRE message.
8. according to the method described in claim 5 or 6, it is characterized in that, described method also comprises:
Determine that the subnet of described first branch's route and the subnet of described second branch's route do not communicate at the appointed time;
Remove the NHRP PEER of described the second branch node.
9. according to the method described in claim 5 or 6, it is characterized in that, described method also comprises:
Receive the list item removing request message that described the second branch node sends;
According to described list item, remove request message, remove the NHRP PEER of described the second branch node;
To described the second branch node, send list item and remove request response message.
10. the device establishing a communications link, is characterized in that, described device comprises:
Receiver, the first registration request message sending for receiving the first branch node, described the first registration request message comprises the first information, the described first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the first branch node;
Transmitter, for described the first registration request message receiving according to described receiver, sends sync message to registered the second branch node, and described sync message comprises the described first information, and
For described the first registration request message receiving according to described receiver, to described the first branch node, send the first registration reply message, described the first registration reply message comprises the second information, described the second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the second branch node, so that described the first branch node and described the second branch node establish a communications link.
11. devices according to claim 10, is characterized in that, described device also comprises:
Acquiring unit, for the described first information comprising according to the described first registration request message of described receiver reception, obtains the down hop of subnet node and the corresponding relation of public network address of described the first branch node;
Generation unit, for the down hop of subnet node and the corresponding relation of public network address of described the first branch node of obtaining according to described acquiring unit, generates the Next Hop Resolution Protocol NHRP list item PEER of described the first branch node.
12. devices according to claim 11, is characterized in that,
The second registration request message that described receiver also sends for receiving described the first branch node;
Described device also comprises: determining unit, for according to the NHRP PEER of described first branch node of described generation unit generation, determine that described the first branch node is registered;
Described transmitter is also for determining in described determining unit in the registered situation of described the first branch node, described the second registration request message receiving according to described receiver, only to described the first branch node, send the second registration reply message, described the second registration reply message comprises the second information, and described the second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the second branch node.
13. 1 kinds of devices that establish a communications link, is characterized in that, described device comprises:
Transmitter, for sending registration request message to Centroid, described registration request message comprises the first information, the described first information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described device, so that described Centroid, according to described registration request message, sends to registered the second branch node the sync message that comprises the described first information;
Receiver, the registration reply message sending for receiving described Centroid, described registration reply message comprises the second information, described the second information is used to indicate the down hop of subnet node and the corresponding relation of public network address of described the second branch node, so that described device and described the second branch node establish a communications link.
14. devices according to claim 13, is characterized in that, described device also comprises:
The first acquiring unit, for described the second information comprising according to the described registration reply message of described receiver reception, obtains the down hop of subnet node and the corresponding relation of public network address of described the second branch node;
Generation unit, for the down hop of subnet node and the corresponding relation of public network address of described the second branch node of obtaining according to described the first acquiring unit, generates the Next Hop Resolution Protocol NHRP list item PEER of the second branch node.
15. devices according to claim 14, is characterized in that, described generation unit also comprises:
Determination module, for according to the communication flows of the subnet of the subnet of described device and described the second branch node, determines the down hop of subnet node of described the second branch node and the priority of the corresponding relation of public network address;
Generation module, for the described priority of determining according to described determination module, generates the Next Hop Resolution Protocol NHRP list item PEER of the second branch node, makes described priority higher, the NHRP PEER of described the second branch node to search cis-position more forward.
16. according to the device described in claims 14 or 15, it is characterized in that, described device also comprises:
Second acquisition unit, for according to the NHRP PEER of described second branch node of described generation unit generation, obtains down hop and the public network address of the subnet node of described the second branch node;
Encapsulation unit, for down hop and the public network address of the subnet node of described the second branch node of obtaining according to described second acquisition unit, encapsulation Generic Routing Encapsulation GRE message;
Described transmitter also sends the described GRE message of described encapsulation unit encapsulation for the subnet node to described the second branch node.
17. according to the device described in claims 14 or 15, it is characterized in that, described device also comprises:
Determining unit, for determining that the subnet of described first branch's route and the subnet of described second branch's route do not communicate at the appointed time;
The first clearing cell, in the situation that described determining unit determines that the subnet of described first branch's route and the subnet of described second branch's route do not communicate at the appointed time, remove the NHRP PEER of described the second branch node.
18. according to the device described in claims 14 or 15, it is characterized in that,
The list item removing request message that described receiver also sends for receiving described the second branch node;
Described device also comprises: the second clearing cell, for the described list item receiving according to described receiver, remove request message, and remove the NHRP PEER of described the second branch node;
Described transmitter is also removed request response message for sending list item to described the second branch node.
CN201110337507.2A 2011-10-31 2011-10-31 Method and device for building communication connection Expired - Fee Related CN102316605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110337507.2A CN102316605B (en) 2011-10-31 2011-10-31 Method and device for building communication connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110337507.2A CN102316605B (en) 2011-10-31 2011-10-31 Method and device for building communication connection

Publications (2)

Publication Number Publication Date
CN102316605A CN102316605A (en) 2012-01-11
CN102316605B true CN102316605B (en) 2014-02-19

Family

ID=45429320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110337507.2A Expired - Fee Related CN102316605B (en) 2011-10-31 2011-10-31 Method and device for building communication connection

Country Status (1)

Country Link
CN (1) CN102316605B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594678B (en) * 2012-02-15 2015-01-14 杭州华三通信技术有限公司 Method for large-scale networking of dynamic virtual private network (DVPN) and client
CN103209108B (en) * 2013-04-10 2016-03-02 杭州华三通信技术有限公司 A kind of route generating method based on DVPN and equipment
CN109981534B (en) 2017-12-27 2021-03-05 华为技术有限公司 Authentication method, equipment and system
CN109660439B (en) * 2018-12-14 2021-08-13 深圳市信锐网科技术有限公司 Terminal mutual access management system and method
CN113489811B (en) * 2021-07-30 2023-05-23 迈普通信技术股份有限公司 IPv6 flow processing method and device, electronic equipment and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130826A (en) * 2010-11-25 2011-07-20 华为技术有限公司 Message transmitting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI20010297A0 (en) * 2001-02-16 2001-02-16 Vesa Juhani Hukkanen Procedure and apparatus system for carrying out communication

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130826A (en) * 2010-11-25 2011-07-20 华为技术有限公司 Message transmitting method and device

Also Published As

Publication number Publication date
CN102316605A (en) 2012-01-11

Similar Documents

Publication Publication Date Title
CN102316605B (en) Method and device for building communication connection
US7885294B2 (en) Signaling compression information using routing protocols
US9197721B2 (en) Learning a MAC address
CN107612743B (en) Network topology information collection method and route restoration method
US10070299B2 (en) Local area network meshing
CN105072038A (en) Method and device for forwarding data message
CN104662995B (en) A kind of method, apparatus and system of connection network
EP2067319B1 (en) Loop-detection in moving networks
US20240121220A1 (en) Media access control security (macsec) enabled links of a link aggregation group (lag)
CN101771604B (en) Routing detection method, system and intermediate routing device
EP3869329A1 (en) Automatic formation of a virtual chassis using zero touch provisioning
CN101772193A (en) Method, system and mobile access gateway for optimizing local routing
EP3544244B1 (en) Proxy advertisements in multihomed networks
KR101033665B1 (en) A head node election method for clustering in wireless sensor network and thereof wireless sensor network
US11811649B2 (en) Automatic discovery of route reflection peering end-points
CN105282813B (en) Method for routing, apparatus and system under a kind of In-vehicle networking environment
JP6333120B2 (en) Method of message confirmation and / or data collection from communication devices by packet message transmission in wireless mesh network, and method of confirmation and data collection that can be used for creation of general-purpose platform
CN105516002B (en) Data transmission method and device
EP3562260B1 (en) Automatically determining mesh network role of network device
CN106788921A (en) Many CPE redundant links system and methods
CN104412548A (en) Method and device for keeping user device IP address fixed
CN102891758B (en) Multicast data transmission method and equipment
CN103023783B (en) A kind of data transmission method and equipment based on DVPN
CN105827743B (en) A kind of implementation method of cloud
CN103428018B (en) The method of virtual machine position, location and equipment thereof

Legal Events

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

Granted publication date: 20140219

Termination date: 20181031