CN102255977B - Plug-and-play method and equipment - Google Patents

Plug-and-play method and equipment Download PDF

Info

Publication number
CN102255977B
CN102255977B CN201010179317.8A CN201010179317A CN102255977B CN 102255977 B CN102255977 B CN 102255977B CN 201010179317 A CN201010179317 A CN 201010179317A CN 102255977 B CN102255977 B CN 102255977B
Authority
CN
China
Prior art keywords
equipment
internet protocol
address
node
network management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010179317.8A
Other languages
Chinese (zh)
Other versions
CN102255977A (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 CN201010179317.8A priority Critical patent/CN102255977B/en
Priority to PCT/CN2011/072645 priority patent/WO2011143978A1/en
Publication of CN102255977A publication Critical patent/CN102255977A/en
Application granted granted Critical
Publication of CN102255977B publication Critical patent/CN102255977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a plug-and-play method and corresponding equipment. In the technical scheme provided by the invention, equipment to be configured acquires an Internet protocol (IP) address allocated by network management equipment by an uplink node, and upwards transmits a route addition request to the uplink node of the equipment to be configured, so that the uplink node receives IP route which is configured to the equipment to be configured by a node with the route addition request per se; and the uplink node triggers a new route addition request according to route change, forwards the new route addition request to other uplink nodes until a boundary node receives the route addition request, thereby establishing the IP route from the equipment to be configured to the network management equipment. The equipment to be inserted can be inserted and automatically configured at any position in a tree topology network taking the boundary node as a root node by adopting the method, and the inserted equipment is not required to be limited at the outermost position of the network.

Description

A kind of method and apparatus of plug and play
Technical field
The present invention relates to communication technical field, be specifically related to a kind of method and apparatus of plug and play.
Background technology
In prior art to the network equipment (as, switch, router, packet transmission apparatus etc.) the kind of management application protocol have a lot, for example: Simple Network Management Protocol (SNMP, Simple NetworkManagement Protocol), Telnet (Telnet, Telecommunication network), Qx interface, network data device configuration management agreement (Netconf, network configuration) etc., these management application protocols are all carried on procotol (IP, Internet Protocol).Therefore, to the prerequisite of network management be: each network equipment will have a managing I P, and the network equipment can reach by IP route to the passage of Network Management Equipment.
The IP of the network equipment in prior art, and the network equipment to the passage of webmaster is in the time of beginning, completed by the manual situ configuration of engineer.Along with the continuous increase of IP network equipment, concerning engineer, the workload that one by one network equipment is managed to the configuration of IP address is very huge.
In prior art, also provide another kind of technical scheme to solve the allocation problem to the network equipment, adopted this technical scheme can realize the automatic configuration of the network equipment.The representative network equipment automatically scheme of configuration is to adopt DHCP (DHCP, Dynamic Host Configuration Protocol) automatic allocation plan to the network equipment, the method of automatic configuration that is illustrated in figure 1 the network equipment, comprising:
Step 1:DHCP client (Client) broadcast transmission DHCP finds (DISCOVER) message;
Step 2: the router response DHCP at this broadcast domain with DHCP relay (Relay) ability provides (OFFER) message to dhcp client,
Step 3:DHCP client is therefrom selected a router according to the DHCP OFFER message receiving, and sends DHCP request (REQUEST) message to the relaying of selecting (being called for short " DHCP Relay ");
Wherein, there is no IP address because dhcp client is current, DHCP Relay is equivalent to agency's role, DHCP REQUEST message is processed, concrete processing can be: to receiving the information that increases DHCP Relay in DHCPREQUEST message, the DHCP REQUEST message of the information that has increased DHCP Relay is sent to Dynamic Host Configuration Protocol server.
Step 4:DHCP server (Server) receives after DHCP REQUEST message, and distributing IP address will be divided other IP address to be included in DHCP and reply (ACK) message, send to DHCP Relay; DHCP Relay receives after this DHCPACK message, broadcasts to all dhcp clients.
It should be noted that, DHCP Relay is transparent transmission to the data that send between DHCP Client and Dynamic Host Configuration Protocol server.In DHCP Relay, can comprise multi-hop route, and in fact, dhcp client and Dynamic Host Configuration Protocol server can not need to know concrete route.But the IP address of distributing for DHCP Client in an address pool of Dynamic Host Configuration Protocol server must belong to the same network segment.The IP address of the dhcp client of in other words, communicating by letter with Dynamic Host Configuration Protocol server by appointment DHCP Relay must meet at the same network segment.
Dynamic Host Configuration Protocol server is to hold facilely to the control of the multiple dhcp clients in the same network segment, and the equipment at the edge of network is realized to configuration is automatically easy realization to Dynamic Host Configuration Protocol server, and is convenient to management after configuration.
But, if dhcp client is replaced by two layers, network or three-layer equipment, the IP address of distributing in every one deck between the equipment at the edge of Dynamic Host Configuration Protocol server and network, have with above-mentioned explanation pass through specify the IP address of the dhcp client that DHCP Relay communicates by letter with Dynamic Host Configuration Protocol server must meet the problem at the same network segment.Dynamic Host Configuration Protocol server is very complicated to configuring relevant management.
Above-mentioned combination Fig. 1 has illustrated that available technology adopting DHCP realization configures automatically to the network equipment.Prior art can also adopt BOOT strapping Protocol (BOOTP, Bootstrap Protocol) be host assignment IP address automatically, simplify to a great extent the IP network parameter configuration of main frame, be widely used in local area network (LAN), WLAN (wireless local area network) (Wireless LAN, WLAN) field etc.
In the research and practice process to prior art, the present inventor finds, in prior art, only the equipment to network edge (the normally final jump network equipment) is realized configuration automatically, can not automatically configure three-layer network appliance (as switch, router).
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus of plug and play, can realize three-layer network appliance is configured automatically, has improved the automaticity of equipment.
The embodiment of the present invention provides a kind of method of network equipment plug and play, comprising:
Equipment to be configured is determined self a upstream Interface and a upstream node, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node;
Send a request message to described upstream node by described upstream Interface, in described request message, at least comprise: the mark of equipment to be configured;
The response message that receives the mark that comprises described equipment to be configured of described upstream node broadcast, described response message comprises: the Internet protocol address that the mark of described equipment to be configured and Network Management Equipment are described devices allocation to be configured;
The Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment, described upstream Interface, the Internet protocol address of described upstream node and described Network Management Equipment, configures the Internet protocol route of described equipment to be configured to described Network Management Equipment;
The Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment and the Internet protocol address of described Network Management Equipment, send and add route requests to described upstream node, trigger and set up the Internet protocol route of described Network Management Equipment to described equipment to be configured.
The embodiment of the present invention also provides a kind of method of network equipment plug and play, comprising:
Receive the request message that equipment to be configured sends, in described request message, at least comprise: the mark of equipment to be configured;
Described request message is sent to Network Management Equipment;
Receive the response message that described Network Management Equipment sends, described response message comprises that described Network Management Equipment is the Internet protocol address of described devices allocation to be configured and the mark of described equipment to be configured;
Broadcast described response message;
Receive the interpolation route requests that described equipment to be configured sends, described interpolation route requests comprises that described Network Management Equipment is the Internet protocol address of described devices allocation to be configured;
According to described interpolation route requests, generate the route table items of described Network Management Equipment to described equipment to be configured, Network Management Equipment described in described route table items to the outgoing interface of the Internet protocol route of described equipment to be configured is the interface that receives described interpolation route requests;
Next hop address in described interpolation route requests is revised as to the Internet protocol address of self, sends amended interpolation route requests to the upstream node of self.
The embodiment of the present invention also provides a kind of PnP device, comprising:
Determining unit, for determining a upstream Interface and a upstream node of described PnP device self, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node;
The first transmitting element, for sending a request message to described upstream node by described upstream Interface, at least comprises in described request message: the mark of equipment to be configured;
Receiving element, for receiving the response message of the mark that comprises described equipment to be configured of described upstream node broadcast, described response message comprises: the Internet protocol address that the mark of described equipment to be configured and Network Management Equipment are described devices allocation to be configured;
Routing unit, for the Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment, described upstream Interface, the Internet protocol address of described upstream node and described Network Management Equipment, configures the Internet protocol route of described equipment to be configured to described Network Management Equipment;
The second transmitting element, be used for the Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment and the Internet protocol address of described Network Management Equipment, send and add route requests to described upstream node, trigger and set up the Internet protocol route of described Network Management Equipment to described equipment to be configured.
The embodiment of the present invention also provides a kind of PnP device, comprising:
Uplink receiving Unit one: the request message sending for receiving equipment to be configured, at least comprises in described request message: the mark of equipment to be configured;
Up transmission Unit one, for sending to Network Management Equipment by described request message;
Uplink receiving Unit two, the response message sending for receiving described Network Management Equipment, described response message comprises that described Network Management Equipment is the Internet protocol address of described devices allocation to be configured and the mark of described equipment to be configured;
Up radio unit, for broadcasting described response message;
Uplink receiving Unit three, the interpolation route requests sending for receiving described equipment to be configured, described interpolation route requests comprises that described Network Management Equipment is the Internet protocol address of described devices allocation to be configured;
Up routing unit, be used for according to described interpolation route requests, generate the route table items of described Network Management Equipment to described equipment to be configured, Network Management Equipment described in described route table items to the outgoing interface of the Internet protocol route of described equipment to be configured is the interface that receives described interpolation route requests;
Up transmission Unit two, for the next hop address of described interpolation route requests being revised as to the Internet protocol address of self, send amended interpolation route requests to the upstream node of self.
The embodiment of the present invention gets by upstream node the IP address that Network Management Equipment distributes by equipment to be configured, and upwards sending the upstream node of interpolation route requests to equipment to be configured, the node that makes upstream node receive interpolation route requests self is being added into the IP route of this equipment to be configured; Upstream node is transmitted to its upstream node according to the new interpolation route requests of route change triggers, until pass up to boundary node, thus set up the IP route of Network Management Equipment to equipment to be configured.Need the equipment inserting can adopt any position of said method in the tree-shaped topology network take boundary node as root node to insert and complete automatic configuration, the equipment of insertion needn't be limited to the edge of network.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, 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 the automatic configuration of edge equipment in prior art;
Fig. 2 is a kind of communication system schematic diagram that the embodiment of the present invention provides;
Fig. 3 is that the method flow of a kind of network equipment plug and play of providing of the embodiment of the present invention is overall;
Fig. 4 is the method particular flow sheet of a kind of plug and play of providing of the embodiment of the present invention;
Fig. 5 is the simple and easy schematic diagram of method of a kind of plug and play of providing of the embodiment of the present invention;
Fig. 6 is the schematic diagram that the node that provides of the embodiment of the present invention is selected escape route;
Fig. 7 is the simple and easy schematic diagram of method of a kind of plug and play of providing of the embodiment of the present invention;
Fig. 8 is a kind of PnP device schematic diagram that the embodiment of the present invention provides;
Fig. 9 is the another kind of PnP device schematic diagram that the embodiment of the present invention provides.
Embodiment
The embodiment of the present invention provides a kind of method of network equipment plug and play.The embodiment of the present invention also provides corresponding device and system.Below be elaborated respectively.
A kind of communication system schematic diagram that Fig. 2 provides for the embodiment of the present invention, this communication system comprises: Network Management Equipment 10, boundary node 20, and PnP device 30.It should be noted that, for the ease of explanatory note, PnP device 30 is divided into: the PnP device 301 having configured, and PnP device 302 to be configured.
Network Management Equipment 10, the request message sending for receiving PnP device, is PnP device assigns the Internet protocol address, and the Internet protocol address of distribution is included in and in response message, sends to PnP device;
Boundary node 20, for forwarding the message between Network Management Equipment and PnP device;
PnP device 30, comprising: the PnP device 301 having configured and PnP device 302 to be configured; PnP device 302 to be configured is for determining self a upstream Interface and a upstream node, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of upstream node; Send a request message to upstream node by upstream Interface, in request message, at least comprise: the mark of PnP device 302 to be configured; Wherein, boundary node 20 can be used as the upstream node of PnP device to be configured, and the PnP device having configured also can be used as the upstream node of PnP device to be configured; PnP device 302 to be configured receives the response message of the mark that comprises equipment to be configured of upstream node broadcast, and response message comprises: the Internet protocol address that Network Management Equipment is devices allocation to be configured; According to Internet protocol address, upstream Interface, the Internet protocol address of upstream node and Network Management Equipment, configures the Internet protocol route of equipment to be configured to Network Management Equipment; According to Internet protocol address, the Internet protocol address of upstream node and Network Management Equipment, sends and adds route requests to upstream node, triggers and sets up the Internet protocol route of Network Management Equipment to equipment to be configured.
The PnP device 301 having configured, the request message and the interpolation route requests that also send for receiving PnP device to be configured, receive the response message of the upstream node transmission of this PnP device 301 having configured, wherein, this response message comprises: the Internet protocol address that Network Management Equipment is devices allocation to be configured, sends to PnP device 302 to be configured by this response message; According to adding route requests, be added into the route of descending equipment to be configured in this locality; Request message is sent to upstream node, interpolation route requests is sent to the upstream node of this PnP device 301 having configured.The upstream node of the PnP device 301 that wherein, this has configured can be boundary node 20.
In the time that PnP device at least comprises the PnP device 301 having configured, the PnP device 301 having configured, the route withdraw request also sending for receiving the descending PnP device having configured; According to route withdraw request, cancel downstream routing; Route withdraw request is sent to the upstream node of self.
Optionally, the PnP device 301 having configured, the broadcasting packet also sending for receiving new upstream node; The broadcasting packet sending according to new upstream node, send route append request to new upstream node, in route append request, at least comprise: the Internet protocol address of Network Management Equipment, targeted internet protocol address and down hop Internet protocol address, wherein, down hop Internet protocol address is the Internet protocol address that sends the equipment of route append request, targeted internet protocol address comprises the Internet protocol address of the PnP device 301 having configured, and the Internet protocol address of the node of the down direction of the PnP device 301 having configured.Wherein, above-mentioned new upstream node refers to be different from the node of the original upstream node of this PnP device 301 having configured.
The brief description of the above-mentioned system that the embodiment of the present invention is provided is said system more detailed description below.
Network Management Equipment 10 has been set up passage with boundary node 20, boundary node 20 is positioned at the interface point in plug and play and two regions of Non-Plug and Play, boundary node 20 has completed configuration in advance, wherein, can in the time opening net, configure the configuration of boundary node 20, also can be using the PnP device having configured as boundary node, can also be otherwise pre-configured to boundary node 20, should not be construed herein to the embodiment of the present invention now.
Boundary node 20 or the PnP device 301 having configured send broadcast (or multicast) message to all downstream interfaces, at least comprise: the IP address of the IP address of self and Network Management Equipment in this broadcast (or multicast) message;
When PnP device to be configured 302 receives after broadcast (or multicast) message, if the broadcast receiving (or multicast) message is more than one, select one of them broadcast (or multicast) message, the interface that receives this broadcast (or multicast) message is defined as to upstream Interface, wherein, if employing multicast message, can be at the PnP device to be configured of default setting in agreement regulation in multicast group.And send a request message to upstream Interface, this request message comprises: the mark of PnP device 302 to be configured.PnP device 302 to be configured sends a request message request Network Management Equipment 10 for its distributing IP address to Network Management Equipment 10, first this request message sends to upstream Interface (wherein, upstream Interface connects upstream node, this upstream node can be boundary node 20, also can be the PnP device 301 having configured),, by the route of having set up with Network Management Equipment 10 request message is routed to Network Management Equipment 10 by upstream node.
Network Management Equipment 10 receives after request message, for PnP device to be configured 302 distributing IP addresses, the IP address of distribution is included in response message and sends to corresponding upstream node, is received after this response message by upstream node, broadcasts this response message.
PnP device 302 to be configured is according to receiving after response message, judge that whether the device identification in response message is identical with the mark of self, if, be the IP address that PnP device 302 to be configured distributes according to Network Management Equipment, upstream Interface, the IP address of upstream node and Network Management Equipment, configures the Internet protocol route of equipment to be configured to Network Management Equipment; PnP device 302 to be configured is the IP address distributed of PnP device 302 to be configured and the IP address of Network Management Equipment according to Network Management Equipment, sends and adds route requests to upstream node.The node that receives interpolation route requests self is being added into the IP route of PnP device to be configured 302, and send interpolation route requests to its upstream node, wherein, adding route requests comprises: IP address, target ip address and the next-hop ip address of Network Management Equipment, target ip address is this PnP device to be configured 302, and next-hop ip address is the node self that sends this interpolation route requests.For example, in the time that PnP device to be configured 302 sends interpolation route requests, the next-hop ip address that interpolation route requests comprises is this PnP device to be configured 302; In the time that upstream node sends interpolation route requests, the next-hop ip address that interpolation route requests comprises is this upstream node.Also it should be noted that, the node that sends this new interpolation route requests to up direction is using the interface that receives the interpolation route requests that down direction sends as outgoing interface.
The interpolation route requests that the PnP device to be configured 302 that upstream node is received sends, the interpolation route requests of the upstream node sending from this upstream node has different, owing to adding the transmission main body difference of route requests, two next-hop ip address that add in route requests are different.
Receive the node that adds route requests, to receive the interface that adds route requests as the outgoing interface of the IP route of webmaster PnP device 302 extremely to be configured, and according to receiving the target ip address and the next-hop ip address that add in route requests, and above-mentioned outgoing interface, generate the route table items of webmaster to PnP device 302 to be configured.
After webmaster receives that target ip address is the interpolation route requests of PnP device 302 to be configured, generate the route table items of webmaster to PnP device 302 to be configured according to the interpolation route requests receiving, set up the IP route of webmaster to PnP device 302 to be configured.
Route establishment between boundary node and webmaster can be realized by existing Routing Protocol or manual configuration method, and the present invention does not relate to.
By the above-mentioned explanation to this communication system, realize the automatic configuration to PnP device to be configured 302.PnP device to be configured 302 now just changes into and has configured PnP device, equipment after transformation sends broadcast (or multicast) message, at least comprises: the IP address of the IP address of self and Network Management Equipment in this broadcast (or multicast) message.In the time having new equipment to be configured will insert this network, new equipment to be configured is carried out the operation identical with above-mentioned PnP device 302 to be configured, just can realize and the communicating by letter of Network Management Equipment.
By the above-mentioned explanation to this communication system, PnP device 302 to be configured in this communication system generates self IP route to Network Management Equipment 10, and according to the IP route generating, send and add route requests to upstream node, thereby set up the IP route of Network Management Equipment 10 to PnP device to be configured 302.Make PnP device to be configured can be restricted to the edge device of network, the equipment having been configured by Network Management Equipment 10, can be used as new upstream node, assists Network Management Equipment 10 automatically to configure its downstream plant.
Further, the address of the IP that Network Management Equipment 10 distributes for PnP device 302 to be configured can be not to be subject to network segment restriction (route can not polymerization), also can be subject to network segment restriction (can be aggregated in a network segment).If the address of the IP that Network Management Equipment 10 distributes for PnP device 302 to be configured is not limited by the network segment, for the network take a boundary node 20 as root node, Network Management Equipment 10 to boundary node 20 routes can be many, to lead to different child nodes.If the address of the IP that Network Management Equipment 10 distributes for PnP device 302 to be configured is limited by the network segment, need the equipment of configuration to form a tree-shaped topology network take boundary node 10 as root node, its child node is each equipment that need to configure, the IP address of all child nodes is at the same network segment, be somebody's turn to do in the tree-shaped topology network take boundary node 10 as root node, each child node is carried out route aggregation via boundary node 20, forms a route, is convenient to management.
Further, while having multiple interface in PnP device 302 to be configured, select an interface to be used for sending a request message, select one of them interface as request Network Management Equipment 10 object of configuration automatically.
Select an interface and distribute an IP address by Network Management Equipment 10 due to PnP device to be configured 302, a PnP device only need to configure an IP address, can reduce the administrative burden of network.
Further, when the PnP device 301 having configured finds that (as: netting twine is pulled out, disconnects in down link disconnection, or detect (BFD by two-way converting, Bidirectional Forwarding Detection) etc. detect link failure etc.), the PnP device 301 having configured sends route withdraw request to its upstream node, by the route withdraw of all nodes on the above-mentioned down link of this PnP device 301 having configured.The upstream node of the PnP device 301 that this has configured is received after route withdraw request, cancel the route of all nodes on the above-mentioned down link of this PnP device 301 having configured, route withdraw request is successively sent to each node in up link to the upstream node of the PnP device 301 having configured until boundary node, and the each node in PnP device 301 up links that configured and boundary node are cancelled the route of all nodes on the above-mentioned down link of this PnP device 301 having configured.
Due in the time that the PnP device 301 having configured is found to disconnect with down link, can send route withdraw request to upstream node, in each upstream node making from this PnP device 301 having configured to boundary node, cancel the route of all nodes on the down link of this PnP device 301 having configured, make the Network Management Equipment 10 can more rational managing network device.
Further, in the time that the PnP device 301 having configured is found to disconnect with the link of upstream node, the PnP device 301 that this has configured receives the broadcasting packet that other node sends, and selects one of them node that sends broadcasting packet as new upstream node; Comprise according to the broadcasting packet receiving: the IP address of new upstream node and the IP address of Network Management Equipment, send route append request to new upstream node.Wherein, route append request comprises: the IP address of Network Management Equipment, target ip address and next-hop ip address, next-hop ip address is the IP address of this PnP device 301 having configured, comprise the IP address of the PnP device having configured 301 that sends this route append request with target ip address, with descendants's node of these PnP device 301 down directions that configured (wherein, the child node of PnP device 301 down directions that configured, can be referred to as " descendants's nodes of PnP device 301 down directions that this has configured " with the child node of this child node) IP address.
If the PnP device 301 that this has configured does not have descendants's node, the route append request that the PnP device 301 so having configured sends and interpolation route requests are identical; If there is descendants's node, in route append request, include the IP address of descendants's node of this PnP device 301 having configured, therefore route append request can once be added many routes.
New upstream node receives route append request, the information of carrying the IP address, target ip address and the next-hop ip address that comprise Network Management Equipment in the route append request producing in this locality, then route append request this locality being produced sends to the upstream node of self, by that analogy until send to boundary node, it is identical to the method for the Internet protocol route of this equipment to be configured that the method for adding route and PnP device to be configured are set up Network Management Equipment.Route append request is upwards sent to boundary node by new upstream node, the information of carrying IP address, target ip address and the next-hop ip address of the Network Management Equipment comprising in the route append request that each node of wherein, receiving this route append request produces in this locality.
While finding to disconnect with the link of upstream node due to the PnP device 301 having configured, can set up route with new upstream node, and Network Management Equipment need not distribute new IP address for the PnP device 301 and the descendant node thereof that have configured, make the PnP device having configured also can again set up routing channel with Network Management Equipment fast after disconnection, strengthened the reliability of Network Management Equipment to equipment in network management.
Further, with reference to figure 6, suppose that NE02 is that the upstream node of NE21 is (as shown in the dotted line in figure, suppose that now NE10 is not the upstream node of NE21), NE21 is the upstream node of NE31, after the PnP device NE21 having configured disconnects to the route of the PnP device NE31 having configured (as the cross wires on figure link), after NE21 finds to disconnect to the link of NE31, send the upstream node NE02 of route withdraw request to NE21, in NE02, cancel the route of boundary node to NE31, route withdraw request is sent to boundary node by NE02, boundary node is received after route withdraw request, cancel self route to NE31.NE31 receives the broadcasting packet that NE02 sends, determine that NE02 is the upstream node that NE31 is new, NE31 sends route append request, set up NE31 to NE02 and further to the route of Network Management Equipment, the upstream node that now NE02 is NE31, has formed the escape route of NE31 from NE31 through NE02 to boundary node.
If boundary node is first received route append request, require to set up the escape route of NE31 process NE02 to boundary node, boundary node is searched routing table, finds current self route to NE31 and process NE02 of having set up.Because boundary node can not repeat to set up same route table items, so abandon this route append request, in the time that boundary node receives route withdraw request, boundary node will be deleted this route table items, lead to errors.
For solving Similar Problems, can have multiple solution, for example, boundary node starts timer, judge and in predetermined time, whether receive route withdraw request, wherein, this route withdraw request requires to cancel the route of boundary node to NE31 and process NE02, if receive within the predetermined time route withdraw request, boundary node is according to route withdraw request, carry out route withdraw, then according to route append request, carry out and set up the escape route of NE31 process NE02 to boundary node.If NE02 does not receive route withdraw request within the predetermined time, boundary node abandons this route append request, does not carry out to set up NE31 and formed the escape route of NE31 to boundary node through NE02.
Or NE02 receives route append request, requiring to set up NE31 during to the escape route of boundary node, increases route table items: target ip address is the IP address of NE31 through NE02 in the routing table in NE02, and next-hop ip address is the IP address of NE31; Route append request is sent to boundary node by NE02, in boundary node, append route, make boundary node according to appending route requests, because boundary node has been set up self route to NE31 and process NE02, can not repeat to set up same route table items, so abandon this route append request.After NE02, receive that route withdraw request requirement cancels boundary node to NE31 and through the route of NE21, NE02 receives after this route withdraw request, the route table items of the IP address that the IP address that the next-hop ip address recording in deletion routing table is NE21 and target ip address are NE31; Now, in NE02, only having target ip address is that IP address and the next-hop ip address of NE31 is a route of the IP address of NE31; Route withdraw request is sent to boundary node by NE02, and after boundary node is received, in routing table, deleting next-hop ip address is the route table items of IP address and the IP address that object IP address is NE31 of NE02; Boundary node sends the response of cancelling route to NE02, and response comprises: the IP address that the IP address that in the route table items of cancelling, next-hop ip address is NE02 and object IP address are NE31.NE02 receives after the response of boundary node, in discovery boundary node, delete the route to NE31 through NE02, pass through the route of NE02 to NE31 and also remain with one in NE02 self,, NE02 will send route append request again to boundary node, and request boundary node is established to NE31 and the route through NE02.
Or, also can increase the propagation delay time of route append request, avoid first receiving route append request, after receive that the situation of route withdraw request occurs.
The method flow that is illustrated in figure 3 a kind of network equipment plug and play that the embodiment of the present invention provides is overall, and the method comprises:
Steps A 1: determine a upstream Interface and a upstream node of equipment to be configured self, and obtain the Internet protocol address of Network Management Equipment and the Internet protocol address of upstream node;
Steps A 2: send a request message to upstream node by upstream Interface, at least comprise in request message: the mark of equipment to be configured;
Steps A 3: receive the response message of the mark that comprises this equipment to be configured of upstream node broadcast, response message comprises: the IP address that the mark of equipment to be configured and Network Management Equipment are devices allocation to be configured;
Steps A 4: the Internet protocol address that is devices allocation to be configured according to Network Management Equipment, upstream Interface, the IP address of upstream node and Network Management Equipment, configures the Internet protocol route of equipment to be configured to Network Management Equipment;
Steps A 5: the Internet protocol address that is devices allocation to be configured according to Network Management Equipment and the Internet protocol address of Network Management Equipment, send and add route requests to upstream node, trigger and set up the Internet protocol route of Network Management Equipment to equipment to be configured.
By the above-mentioned explanation to Fig. 3, the method has realized the automatic configuration for the treatment of configuration device, makes this equipment can plug and play.The method is because equipment to be configured is getting behind the IP address of Network Management Equipment distribution, upwards send and add route requests to upstream node, make the node that receives interpolation route requests self be added into the IP route of this equipment to be configured, then, interpolation route requests is forwarded to boundary node, thereby has set up the IP route of Network Management Equipment to equipment to be configured.Need the equipment inserting can adopt any position of said method in the network take boundary node as root node to insert and complete automatic configuration, the equipment of insertion needn't be limited to the edge of network.
Further, above-mentioned steps A1 specifically can comprise:
Receive broadcasting packet or multicast message, broadcasting packet or multicast message comprise: the Internet protocol address of node and the Internet protocol address of Network Management Equipment that send this broadcasting packet or multicast message; Upstream node using node as equipment to be configured.Node can comprise devices to be configured or boundary node.
Or further, above-mentioned steps A1 specifically can comprise:
Send the second broadcasting packet or the second multicast message, trigger node and receiving after the second broadcasting packet or the second multicast message, send the second response message;
Receive the second response message,
To send the node of the second response message as the upstream node of equipment to be configured.
The method particular flow sheet of a kind of plug and play providing for the embodiment of the present invention as Fig. 4, the method comprises:
Step S1: receive broadcasting packet or multicast message, wherein, broadcasting packet or multicast message comprise: the IP address of node and the IP address of Network Management Equipment;
Step S2: according to the broadcasting packet receiving or multicast message, determine a upstream Interface and the upstream node of self, obtain the IP address of this upstream node and the IP address of Network Management Equipment from broadcasting packet or multicast message;
Wherein, equipment to be configured receives after the broadcasting packet or multicast message of upstream node transmission, and the upstream Interface that sends this broadcasting packet is considered as to upstream Interface, the upstream node that node at this upstream Interface place is equipment to be configured.
Also it should be noted that, the form of broadcasting packet is mainly described for convenience in the present embodiment, multicast message can be replaced broadcasting packet and carry out the operation of determining upstream node.
Step S3: send a request message to upstream node by upstream Interface, wherein, at least comprise in this request message: the mark of equipment to be configured;
Wherein, equipment to be configured sends a request message request Network Management Equipment for its distributing IP address, first this request message sends to the upstream node of this equipment to be configured, by the route of having set up with Network Management Equipment, request message is sent to Network Management Equipment by upstream node.Wherein, the route that upstream node and Network Management Equipment have been set up is through boundary node, in other words, needing the PnP device of configuration is automatically all the descendant node of boundary node, and the network that PnP device after configuration forms is a tree-shaped topology network take boundary node as root node.Network Management Equipment configures PnP device automatically via boundary node.
Step S4: receive the response message of the mark that comprises equipment to be configured of upstream node broadcast, wherein, response message comprises: the IP address that the mark of equipment to be configured and Network Management Equipment are devices allocation to be configured;
It will be appreciated that, Network Management Equipment receives after request message, for this devices allocation IP to be configured address, the IP address of distribution is included in to the upstream node that sends to this equipment to be configured in response message, is transmitted to equipment to be configured by upstream node.
Step S5: according to the IP address in the response message receiving, and upstream Interface, upstream node IP address, and the IP address of Network Management Equipment, configure the IP route of equipment to be configured to Network Management Equipment;
Step S6: the IP address that is devices allocation to be configured according to Network Management Equipment in response message, the IP address of Network Management Equipment, sends and add route requests to upstream node, triggers and sets up the Internet protocol route of Network Management Equipment to equipment to be configured.
Upstream node is receiving after this interpolation route requests, the Internet protocol route of Network Management Equipment to equipment to be configured set up in triggering, be added into the route of equipment to be configured in this locality, and forward to the upstream node level of himself adding route requests, until send to boundary node.
If being boundary node, the broadcasting packet that this equipment to be configured receives sends, this equipment to be configured sends a request message to its upstream node (being boundary node), request Network Management Equipment be its distributing IP address, and request message is sent to Network Management Equipment by the route that boundary node basis and Network Management Equipment have been set up.When equipment to be configured receives behind the IP address of Network Management Equipment distribution, send and add route requests to boundary node, in boundary node, be increased to the route of this equipment to be configured.
Send if the broadcasting packet that this equipment to be configured receives is not boundary node, as shown in Figure 5, suppose that equipment NE10 is the equipment having configured, NE20 is the current needs equipment of configuration automatically.In step B1, NE20 receives the broadcast that NE10 sends; NE20 sends a request message to NE10 at step B2; In step B3, this request message sends to boundary node to route to Network Management Equipment by NE10 again.In step B4, Network Management Equipment sends response message to NE10, and wherein, in figure, B3 and B4 dotted line represent to ignore the concrete route of explanation Network Management Equipment to NE10, and in fact, Network Management Equipment to the route of NE10 is necessarily passed through boundary node.In step B5, NE20 receives the response message that NE10 forwards; In step B6 when NE20 receives after the response message that sends the IP address that comprises promising its distribution via boundary node, NE10, send and add route requests to NE10, NE10 receives and adds after route requests, be added into the route of NE20 in this locality, interpolation route requests is sent to boundary node; Boundary node receives and adds after route requests, is also added into the route of NE20 in this locality.Wherein, each PnP device to the route of boundary node only has one, and therefore, the network that PnP device forms is a network take boundary node as root node, is convenient to the management of the network equipment.
Also it should be noted that, after in Fig. 5, NE20 has been configured, as the PnP device having configured, if there is new PnP device to be configured as upstream node using NE 20, the Principle of Process that its layoutprocedure is configured with NE20 is identical, the down direction of the PnP device having configured can be spread, as NE21 in Fig. 5, can configure take NE21 as upstream node NE30 and NE31.
By the explanation of above-mentioned steps 201 to 205, realize the automatic configuration for the treatment of configuration device, make this equipment can plug and play.The method is because equipment to be configured is getting behind the IP address of Network Management Equipment distribution, upwards send and add route requests to upstream node, make the node that receives interpolation route requests self be added into the IP route of this equipment to be configured, then, interpolation route requests is forwarded to boundary node, thereby has set up the IP route of equipment to be configured to Network Management Equipment.Need the equipment inserting can adopt any position of said method in the network take boundary node as root node to insert and complete automatic configuration, the equipment of insertion needn't be limited to the edge of network.
Further, when the broadcasting packet receiving in step S1 is while being more than one, the method can also comprise:
Step S10: select a broadcasting packet or multicast message, using the node that sends selecteed broadcasting packet or multicast message as upstream node, using the interface that receives selecteed broadcasting packet or multicast message as upstream Interface.
By selecting a broadcasting packet, make this equipment to be configured can determine that the equipment of this broadcasting packet of transmission is upstream node.
Using the interface that receives selecteed broadcasting packet or multicast message as upstream Interface, select one of them interface as the request Network Management Equipment object of configuration automatically, thereby making Network Management Equipment is management ip address of each devices allocation to be configured, and needn't be each interface distributing IP address, reduce the administrative burden of network.
Further, after step S6, the method also comprises:
Step S60: in the time completing the equipment to be configured of automatic configuration and the disconnection of the link of its descendant node, send route withdraw request to upstream node.
By increasing step S60, object is the descending route withdraw of equipment that completes automatic configuration to this by all.This upstream node that completes the equipment of automatic configuration is received after route withdraw request, cancel the descending route of equipment that completes automatic configuration to this, successively upwards date back to boundary node, in each node of recalling, cancel the descending route withdraw of equipment that completes automatic configuration to this, make network management more reasonable.
Further, in the time completing the equipment of automatic configuration and the disconnection of the link of upstream node,, after step S6, the method also comprises:
Step S70: receive new broadcasting packet, using the node that sends new broadcasting packet as new upstream node, using the interface that receives new broadcasting packet as new upstream Interface;
Step S71: by new upstream Interface, send route append request to new upstream node, wherein, in route append request, at least comprise: IP address, target ip address and the next-hop ip address of Network Management Equipment, next-hop ip address is the IP address of this devices to be configured, comprise the IP address of the devices to be configured that sends this route append request and the IP address of the node of this devices to be configured down direction with target ip address;
New upstream node receives route append request, add route append request comprises in this locality: the IP address of Network Management Equipment, target ip address and next-hop ip address, wherein, down hop Internet protocol address is the IP address that sends the equipment of route append request, target ip address has comprised the IP address of the equipment to be configured of automatic configuration, and completes the IP address of the node of the down direction of the equipment to be configured of automatic configuration.Route append request is upwards sent to boundary node by new upstream node, the information of carrying the IP address, target ip address and the next-hop ip address that comprise Network Management Equipment in the route append request that each node of wherein, receiving this route append request produces in this locality.As shown in Figure 6, after equipment NE21 disconnects to the route of equipment NE31 (as figure link 3), NE31 receives the broadcasting packet that NE02 sends, determine that NE02 is the upstream node that NE31 is new, set up the route of NE31 to NE02, the upstream node that now NE02 is NE31, has formed the escape route of NE31 from NE31 through NE02 to boundary node.
By increasing step S70, S71, when the device discovery completing when configuration and the link of upstream node disconnect, can set up route with new upstream node, and Network Management Equipment need not distribute new IP address for equipment and descendant node thereof that this configuration completes, make the equipment that this configuration completes also can again set up routing channel with Network Management Equipment fast after disconnection, simplified Network Management Equipment equipment in network is managed.
Fig. 7 is the method for the another kind of network equipment plug and play that provides of the embodiment of the present invention, the method be by upstream node as executive agent, the method comprises:
Step F 1: receive the request message that equipment to be configured sends, at least comprise in request message: the mark of equipment to be configured;
Step F 2: request message is sent to Network Management Equipment;
Step F 3: receive the response message that Network Management Equipment sends, response message comprises that Network Management Equipment is the IP address of devices allocation to be configured and the mark of equipment to be configured;
Step F 4: broadcast response message;
Step F 5: receive the interpolation route requests that equipment to be configured sends, add the Internet protocol IP address that routing request packet purse rope tube apparatus is devices allocation to be configured;
Step F 6: according to adding route requests, generate the route table items of Network Management Equipment to equipment to be configured, in route table items, Network Management Equipment to the outgoing interface of the IP route of equipment to be configured is to receive the interface that adds route requests;
Step F 7: the next hop address in interpolation route requests is revised as to the IP address of self, sends amended interpolation route requests to the upstream node of self.
The illustrated method of Fig. 7 is because the IP address that upstream node distributes Network Management Equipment sends to equipment to be configured, receive equipment to be configured and send interpolation route requests, self adding the IP route of Network Management Equipment to this equipment to be configured and process self, then, interpolation route requests is forwarded to boundary node, thereby has set up the IP route of Network Management Equipment to equipment to be configured.The method makes to need the equipment (being equipment to be configured) inserting to insert and to complete automatic configuration in any position in the network take boundary node as root node, and the equipment of insertion needn't be limited to the edge of network.
The schematic diagram that Figure 8 shows that a kind of PnP device that the embodiment of the present invention provides, this PnP device comprises: determining unit 600, receiving element 601, the first transmitting elements 602, routing unit 603 and transmitting element 604.
Wherein, determining unit 600, for determining a upstream Interface and a upstream node of PnP device self, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of upstream node;
Receiving element 601, for receiving the response message of the mark that comprises equipment to be configured of upstream node broadcast, response message comprises: the Internet protocol address that the mark of equipment to be configured and Network Management Equipment are devices allocation to be configured;
The first transmitting element 602, for sending a request message to upstream node by upstream Interface, at least comprises in request message: the mark of equipment to be configured;
Routing unit 603, for the Internet protocol address that is devices allocation to be configured according to Network Management Equipment, upstream Interface, the Internet protocol address of upstream node and Network Management Equipment, configures the Internet protocol route of equipment to be configured to Network Management Equipment;
The second transmitting element 604, be used for the Internet protocol address that is devices allocation to be configured according to Network Management Equipment and the Internet protocol address of Network Management Equipment, send and add route requests to upstream node, trigger and set up the Internet protocol route of Network Management Equipment to equipment to be configured.
By the above-mentioned explanation to this PnP device, because this PnP device is getting behind the IP address of Network Management Equipment distribution, upwards send and add route requests to upstream node, make the node that receives interpolation route requests self be added into the IP route of this equipment to be configured, then, just add route requests and be forwarded to boundary node, thereby set up the IP route of Network Management Equipment to this PnP device.Need the equipment inserting can adopt any position of said method in the network take boundary node as root node to insert and complete automatic configuration, the equipment of insertion needn't be limited to the edge of network.The multiple equipment and the boundary node that insert have formed the tree topology take boundary node as root node.
Further, determining unit 600, can specifically comprise: first receives message unit 6001 and the first acquiring unit 6002;
Wherein, first receives message unit 6001, and for receiving broadcasting packet or multicast message, broadcasting packet or multicast message comprise: the Internet protocol address of node and the Internet protocol address of Network Management Equipment that send broadcasting packet or multicast message;
The first acquiring unit 6002, for the upstream node using node as equipment to be configured, using the interface that receives broadcasting packet or multicast message as upstream Interface, from broadcasting packet or multicast message, get the Internet protocol address of Network Management Equipment and the Internet protocol address of upstream node; .
Or determining unit 600, can specifically comprise (not showing in Fig. 8): the second TMU transmission message unit, second receives message unit, and second acquisition unit;
The second TMU transmission message unit, for sending the second broadcasting packet or the second multicast message, triggers node and sends the second response message;
Second receives message unit, and for receiving the second response message, wherein, the second response message comprises: the Internet protocol address of the node of the Internet protocol address of Network Management Equipment and transmission the second response message;
Second acquisition unit, for sending the node of the second response message as the upstream node of equipment to be configured; The second response message be will receive as upstream Interface, the Internet protocol address of Network Management Equipment and the Internet protocol address of upstream node from the second response message, got.
Further, in the PnP device that the embodiment of the present invention provides, when the broadcasting packet receiving or multicast message are when more than one, the first acquiring unit 6002, specifically for selecting a broadcasting packet or multicast message, using the node that sends selecteed broadcasting packet or multicast message as upstream node, using the interface that receives selecteed broadcasting packet or multicast message as upstream Interface, from broadcasting packet or multicast message, get the Internet protocol address of Network Management Equipment and the Internet protocol address of upstream node.
Further, the PnP device that the embodiment of the present invention provides can also comprise: the 3rd transmitting element 606, in the time completing the equipment to be configured of automatic configuration and the disconnection of the link of its descendant node, sends route withdraw request to upstream node.
The object that increases by the 3rd transmitting element 606 is the descending route withdraw of PnP device that completes automatic configuration to this by all.This upstream node that completes the PnP device of automatic configuration is received after route withdraw request, cancel the descending route withdraw of PnP device that completes automatic configuration to this, successively upwards date back to boundary node, in each node of recalling, cancel the descending route withdraw of PnP device that completes automatic configuration to this, make network management more reasonable.
Further, the PnP device that the embodiment of the present invention provides can also comprise: the second receiving element 607, the second determining units 608, and the 4th transmitting element 609.
Wherein, the second receiving element 607, in the time completing the equipment to be configured of automatic configuration and the disconnection of the link of its upstream node, receives new broadcasting packet;
The second determining unit 608, for using the node that sends new broadcasting packet as new upstream node, using the interface that receives new broadcasting packet as new upstream Interface;
The 4th transmitting element 609, for passing through new upstream Interface, send route append request to new upstream node, in route append request, at least comprise: the Internet protocol address of Network Management Equipment, targeted internet protocol address and down hop Internet protocol address, wherein, down hop Internet protocol address is the Internet protocol address that sends the equipment of route append request, comprise the Internet protocol address of the equipment that sends route append request with targeted internet protocol address, with the Internet protocol address of node of down direction of equipment that sends route append request.
By increasing by the second receiving element, the second determining unit and the 4th transmitting element, when the PnP device completing when configuration is found to disconnect with the link of upstream node (as up link interrupts causing interface Down, or BFD detects both link failures etc.), can set up route with new upstream node, and Network Management Equipment need not distribute new IP address for PnP device and descendant node thereof that this configuration completes, make the equipment that this configuration completes also can again set up routing channel with Network Management Equipment fast after disconnection, having simplified Network Management Equipment manages equipment in network.
The invention process also provides a kind of PnP device, and this PnP device can be the upstream node illustrating in said method embodiment, and as shown in Figure 9, this PnP device comprises:
Uplink receiving one unit 701: the request message sending for receiving equipment to be configured, at least comprises in request message: the mark of equipment to be configured;
Up transmission one unit 702, for sending to Network Management Equipment by request message;
Uplink receiving two unit 703, the response message sending for receiving Network Management Equipment, response message comprises that Network Management Equipment is the IP address of devices allocation to be configured and the mark of equipment to be configured;
Up radio unit 704, for broadcasting response message;
Uplink receiving three unit 705, the interpolation route requests sending for receiving equipment to be configured, adds the IP address that routing request packet purse rope tube apparatus is devices allocation to be configured;
Up routing unit 706, for according to adding route requests, generates the route table items of Network Management Equipment to equipment to be configured, and in route table items, Network Management Equipment to the outgoing interface of the IP route of equipment to be configured is to receive the interface that adds route requests;
Up transmission two unit 707, for the next hop address of adding route requests being revised as to the IP address of self, send amended interpolation route requests to the upstream node of self.
Also it should be noted that, the PnP device that the invention process provides can realize the function of equipment to be configured, also can be after configuration complete, realize the function of upstream node, can be with reference to the explanation to Fig. 2 to Fig. 7 to the detailed description of this PnP device.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
The method and apparatus of a kind of the plug and play above embodiment of the present invention being provided is described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (13)

1. a method for network equipment plug and play, is characterized in that, comprising:
Equipment to be configured is determined self a upstream Interface and a upstream node, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node;
Send a request message to described upstream node by described upstream Interface, in described request message, at least comprise: the mark of equipment to be configured;
The response message that receives the mark that comprises described equipment to be configured of described upstream node broadcast, described response message comprises: the Internet protocol address that the mark of described equipment to be configured and Network Management Equipment are described devices allocation to be configured;
The Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment, described upstream Interface, the Internet protocol address of described upstream node and the Internet protocol address of described Network Management Equipment, configure the Internet protocol route of described equipment to be configured to described Network Management Equipment;
The Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment and the Internet protocol address of described Network Management Equipment, send and add route requests to described upstream node, trigger and set up the Internet protocol route of described Network Management Equipment to described equipment to be configured; Described interpolation route requests comprises: IP address, target ip address and the next-hop ip address of Network Management Equipment, and the IP address that target ip address is described equipment to be configured, next-hop ip address is the IP address that sends the node of described interpolation route requests.
2. method according to claim 1, is characterized in that, described equipment to be configured is determined self a upstream Interface and a upstream node, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node, specifically comprises:
Equipment to be configured receives broadcasting packet or multicast message, and described broadcasting packet or multicast message comprise: the Internet protocol address of node and the Internet protocol address of Network Management Equipment that send described broadcasting packet or multicast message;
Upstream node using described node as equipment to be configured, using the interface that receives described broadcasting packet or multicast message as upstream Interface, from described broadcasting packet or multicast message, get the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node.
3. method according to claim 2, is characterized in that, when the broadcasting packet receiving or multicast message are when more than one, described method also comprises:
Select a broadcasting packet or multicast message, using the node that sends described selecteed broadcasting packet or multicast message as upstream node, using the interface that receives described selecteed broadcasting packet or multicast message as upstream Interface.
4. method according to claim 1, is characterized in that, described equipment to be configured is determined self a upstream Interface and a upstream node, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node, specifically comprises:
Send the second broadcasting packet or the second multicast message, trigger node and send the second response message;
Receive described the second response message, wherein, described the second response message comprises: the Internet protocol address of the node of the Internet protocol address of Network Management Equipment and transmission the second response message;
To send the node of described the second response message as the upstream node of equipment to be configured; Using the interface that receives described the second response message as upstream Interface, from the second response message, get the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node.
5. method according to claim 1, is characterized in that, described transmission is added route requests to after described upstream node, and described method also comprises:
In the time completing the equipment to be configured of automatic configuration and the disconnection of the link of its descendant node, send route withdraw request to described upstream node.
6. method according to claim 1, is characterized in that, described transmission is added route requests to after described upstream node, and described method also comprises:
In the time completing the equipment to be configured of automatic configuration and the disconnection of the link of its upstream node, receive new broadcasting packet, using the node that sends described new broadcasting packet as new upstream node, using the interface that receives described new broadcasting packet as new upstream Interface;
By described new upstream Interface, send route append request to described new upstream node, in described route append request, at least comprise: the Internet protocol address of described Network Management Equipment, targeted internet protocol address and down hop Internet protocol address, wherein, described down hop Internet protocol address is the Internet protocol address that sends the equipment of described route append request, described in comprising, described targeted internet protocol address completes the Internet protocol address of the equipment to be configured of automatic configuration, Internet protocol address with the node of the down direction of the described equipment to be configured that completes automatic configuration.
7. a method for network equipment plug and play, is characterized in that, comprising:
Receive the request message that equipment to be configured sends, in described request message, at least comprise: the mark of equipment to be configured;
Described request message is sent to Network Management Equipment;
Receive the response message that described Network Management Equipment sends, described response message comprises that described Network Management Equipment is the Internet protocol address of described devices allocation to be configured and the mark of described equipment to be configured;
Broadcast described response message;
Receive the interpolation route requests that described equipment to be configured sends, described interpolation route requests comprises: IP address, target ip address and the next-hop ip address of Network Management Equipment, target ip address is that described Network Management Equipment is the IP address of described devices allocation to be configured, and next-hop ip address is the IP address that sends the node of described interpolation route requests;
According to described interpolation route requests, generate the route table items of described Network Management Equipment to described equipment to be configured, Network Management Equipment described in described route table items to the outgoing interface of the Internet protocol route of described equipment to be configured is the interface that receives described interpolation route requests;
Next hop address in described interpolation route requests is revised as to the Internet protocol address of self, sends amended interpolation route requests to the upstream node of self.
8. a PnP device, is characterized in that, comprising:
Determining unit, for determining a upstream Interface and a upstream node of described PnP device self, and obtains the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node;
The first transmitting element, for sending a request message to described upstream node by described upstream Interface, at least comprises in described request message: the mark of equipment to be configured;
Receiving element, for receiving the response message of the mark that comprises described equipment to be configured of described upstream node broadcast, described response message comprises: the Internet protocol address that the mark of described equipment to be configured and Network Management Equipment are described devices allocation to be configured;
Routing unit, for the Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment, described upstream Interface, the Internet protocol address of described upstream node and the Internet protocol address of described Network Management Equipment, configure the Internet protocol route of described equipment to be configured to described Network Management Equipment;
The second transmitting element, be used for the Internet protocol address that is described devices allocation to be configured according to described Network Management Equipment and the Internet protocol address of described Network Management Equipment, send and add route requests to described upstream node, trigger and set up the Internet protocol route of described Network Management Equipment to described equipment to be configured; Described interpolation route requests comprises: IP address, target ip address and the next-hop ip address of Network Management Equipment, and the IP address that target ip address is described equipment to be configured, next-hop ip address is the IP address that sends the node of described interpolation route requests.
9. equipment according to claim 8, is characterized in that,
Described determining unit, comprising: first receives message unit and the first acquiring unit,
Described first receives message unit, and for receiving broadcasting packet or multicast message, described broadcasting packet or multicast message comprise: the Internet protocol address of node and the Internet protocol address of Network Management Equipment that send described broadcasting packet or multicast message;
Described the first acquiring unit, for the upstream node using described node as equipment to be configured, using the interface that receives described broadcasting packet or multicast message as upstream Interface, from described broadcasting packet or multicast message, get the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node;
Or described determining unit, comprising: the second TMU transmission message unit, second receives message unit, and second acquisition unit,
Described the second TMU transmission message unit, for sending the second broadcasting packet or the second multicast message, triggers node and sends the second response message;
Described second receives message unit, and for receiving described the second response message, wherein, described the second response message comprises: the Internet protocol address of the node of the Internet protocol address of Network Management Equipment and transmission the second response message;
Described second acquisition unit, for sending the node of described the second response message as the upstream node of equipment to be configured; Using the interface that receives described the second response message as upstream Interface, from the second response message, get the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node.
10. equipment according to claim 9, it is characterized in that, when the broadcasting packet receiving or multicast message are when more than one, described the first acquiring unit, specifically for selecting a broadcasting packet or multicast message, using the node that sends described selecteed broadcasting packet or multicast message as upstream node, using the interface that receives described selecteed broadcasting packet or multicast message as upstream Interface, from described broadcasting packet or multicast message, get the Internet protocol address of Network Management Equipment and the Internet protocol address of described upstream node.
11. equipment according to claim 8, is characterized in that, described equipment also comprises: the 3rd transmitting element, in the time completing the equipment to be configured of automatic configuration and the disconnection of the link of its descendant node, sends route withdraw request to described upstream node.
12. equipment according to claim 8, is characterized in that, described equipment also comprises:
The second receiving element, in the time completing the equipment to be configured of automatic configuration and the disconnection of the link of its upstream node, receives new broadcasting packet;
The second determining unit, for sending the node of described new broadcasting packet as new upstream node, using the interface that receives described new broadcasting packet as new upstream Interface;
The 4th transmitting element, for passing through described new upstream Interface, send route append request to described new upstream node, in described route append request, at least comprise: the Internet protocol address of described Network Management Equipment, targeted internet protocol address and down hop Internet protocol address, wherein, described down hop Internet protocol address is the Internet protocol address that sends the equipment of described route append request, described in comprising, described targeted internet protocol address completes the Internet protocol address of the equipment to be configured of automatic configuration, Internet protocol address with the node of the down direction of the described equipment to be configured that completes automatic configuration.
13. 1 kinds of PnP devices, is characterized in that, comprising:
Uplink receiving Unit one: the request message sending for receiving equipment to be configured, at least comprises in described request message: the mark of equipment to be configured;
Up transmission Unit one, for sending to Network Management Equipment by described request message;
Uplink receiving Unit two, the response message sending for receiving described Network Management Equipment, described response message comprises that described Network Management Equipment is the Internet protocol address of described devices allocation to be configured and the mark of described equipment to be configured;
Up radio unit, for broadcasting described response message;
Uplink receiving Unit three, the interpolation route requests sending for receiving described equipment to be configured, described interpolation route requests comprises: IP address, target ip address and the next-hop ip address of Network Management Equipment, target ip address is that described Network Management Equipment is the IP address of described devices allocation to be configured, and next-hop ip address is the IP address that sends the node of described interpolation route requests;
Up routing unit, be used for according to described interpolation route requests, generate the route table items of described Network Management Equipment to described equipment to be configured, Network Management Equipment described in described route table items to the outgoing interface of the Internet protocol route of described equipment to be configured is the interface that receives described interpolation route requests;
Up transmission Unit two, for the next hop address of described interpolation route requests being revised as to the Internet protocol address of self, send amended interpolation route requests to the upstream node of self.
CN201010179317.8A 2010-05-19 2010-05-19 Plug-and-play method and equipment Active CN102255977B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010179317.8A CN102255977B (en) 2010-05-19 2010-05-19 Plug-and-play method and equipment
PCT/CN2011/072645 WO2011143978A1 (en) 2010-05-19 2011-04-12 Plug and play method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010179317.8A CN102255977B (en) 2010-05-19 2010-05-19 Plug-and-play method and equipment

Publications (2)

Publication Number Publication Date
CN102255977A CN102255977A (en) 2011-11-23
CN102255977B true CN102255977B (en) 2014-05-21

Family

ID=44982967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010179317.8A Active CN102255977B (en) 2010-05-19 2010-05-19 Plug-and-play method and equipment

Country Status (2)

Country Link
CN (1) CN102255977B (en)
WO (1) WO2011143978A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428306B (en) * 2013-08-02 2016-09-07 北京华为数字技术有限公司 Network element device loading method, equipment and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357187A (en) * 1999-06-18 2002-07-03 艾利森电话股份有限公司 Method and system for communication
CN1620070A (en) * 2003-11-20 2005-05-25 海信集团有限公司 Network telephone based on universal instant insertion instant use protocol and its use method
CN1655528A (en) * 2005-02-07 2005-08-17 港湾网络有限公司 Method for realizing plug-and-play of IP voice access devices

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674563A (en) * 2004-03-26 2005-09-28 北京葳网通科技有限公司 Immediate plug and instant use proxy gateway and method thereof
US7836150B2 (en) * 2006-12-30 2010-11-16 Arcsoft (Shanghai) Technology Company, Ltd Point-to-point communication using UPnP protocol
CN101026589A (en) * 2007-04-05 2007-08-29 杭州华为三康技术有限公司 Route selecting method and router
CN101904148B (en) * 2007-12-20 2013-11-20 艾利森电话股份有限公司 Method and arrangement for network roaming of corporate extension identities

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357187A (en) * 1999-06-18 2002-07-03 艾利森电话股份有限公司 Method and system for communication
CN1620070A (en) * 2003-11-20 2005-05-25 海信集团有限公司 Network telephone based on universal instant insertion instant use protocol and its use method
CN1655528A (en) * 2005-02-07 2005-08-17 港湾网络有限公司 Method for realizing plug-and-play of IP voice access devices

Also Published As

Publication number Publication date
WO2011143978A1 (en) 2011-11-24
CN102255977A (en) 2011-11-23

Similar Documents

Publication Publication Date Title
US9622276B2 (en) Method and device for determining to establish multi-protocol label switching traffic engineering tunnel
US11050657B2 (en) Method, device and node for message transmission, and computer storage medium
CN110324165B (en) Network equipment management method, device and system
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
CN109660441B (en) Method and device for multicast replication in Overlay network
CN103428306B (en) Network element device loading method, equipment and system
CN104579728A (en) Network element equipment configuration and management method and device as well as network element equipment
CN104113459A (en) Method for smoothly migrating virtual machine in Ethernet virtual interconnection (EVI) network, and device for smoothly migrating virtual machine in EVI network
CN104753713A (en) SDN (Self-Defending Network) service deployment method and SDN controller
CN102958197B (en) Method for establishing X2 service signaling connection, base station and CSG (cell site gateway)
CN111294236A (en) Communication method and device based on Service Function Chain (SFC)
CN104980355A (en) Source controllable multicast data transmission method and system thereof under SDN Environment
WO2018171396A1 (en) Data transmission method, device and system
US10225091B2 (en) Method for implementing point-to-multipoint multicast, network node, and system
CN106357542B (en) The method and software defined network controller of multicast service are provided
CN106357541A (en) Information transmission method and device
JP2007221285A (en) Ethernet network topology validation method
CN102255977B (en) Plug-and-play method and equipment
CN105723687A (en) Methods for configuring and managing an IP network, corresponding devices and computer programs
CN103685029A (en) Method and equipment for forwarding messages in rapid ring protection protocol networking
WO2012068841A1 (en) Digital microware device, network and network management data transmission method
CN104009857A (en) Network configuration configuring system based on device position and configuring method thereof
CN107959985B (en) Hybrid mesh network construction method, data transmission method and device
CN105991447A (en) Segmented routing identification SID processing method and apparatus thereof
CN103414646B (en) A kind of multicast service negotiation method and device

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