The content of the invention
The invention provides the equipment configuration method, equipment and system in a kind of network, needs in solving prior art
The network equipment and Dynamic Host Configuration Protocol server are configured, while the problem of IP address is configured to PnP device, using extension
LLDP agreements, reduce the operation complexity of remote management, and realize and need not obtain IP address and also can be carried out far by OSS
Thread management.
In a first aspect, the invention provides a kind of equipment configuration method in network, the network includes operation support
System OSS, Link Layer Discovery Protocol LLDP main equipments and one or more LLDP target devices, one or more of LLDP
Target device connects the OSS by the LLDP main equipments, and methods described includes:
The LLDP main equipments receive the IP messages of the OSS, from the IP messages extract Simple Network Management Protocol
SNMP messages, carry the identification information of LLDP target devices to be configured and described to be configured in the SNMP messages
Configuration information needed for LLDP target devices;
Identification information-enquiry LLDP target device of the LLDP main equipments according to the LLDP target devices to be configured
Identification information and LLDP target devices forwarding information corresponding relation, so as to obtain the LLDP target devices to be configured
Forwarding information;
The SNMP messages are packaged into LLDP messages by the LLDP main equipments, will be described according to the forwarding information for obtaining
LLDP messages are sent to the LLDP target devices to be configured, so that the LLDP target devices utilize the configuration file
Configured.
Wherein, the forwarding information of the acquisition includes that connecting the LLDP targets to be configured on the LLDP main equipments sets
Standby outgoing interface.
Further, the SNMP messages are packaged into LLDP messages and are specifically included by the LLDP main equipments:
The SNMP messages are encapsulated into the LLDP messages in the form of type lengths values TLV by the LLDP main equipments
In.The LLDP messages are also carried for identifying the TLV of the LLDP target devices to be configured, described to wait to match somebody with somebody for identifying
The TLV of the LLDP target devices put carries the identification information of the LLDP target devices to be configured.
In the first possible implementation, also include before the IP messages that the LLDP main equipments receive the OSS:
The topological structure of one or more of LLDP target devices is obtained, the topological structure of acquisition is reported into the OSS, and at this
Ground generates neighbours-topology list item, and the list item includes neighbor device mark, neighbours SNMP version numbers and SNMP marks, and reaches
The network topological information of neighbours.
In second possible implementation, one or more of LLDP target devices and the LLDP main equipments group
Into ring network structure, then the topological structure for obtaining one or more of LLDP target devices is specifically included:The LLDP main equipments
Neighbor advertisement message is sent to one or more of LLDP target devices, so that receiving the LLDP mesh of neighbor advertisement message
Marking device by the identification information of itself and receive neighbor advertisement message interface message be added in neighbor advertisement message to
Next-hop LLDP target device sends;The LLDP main equipments receive neighbor advertisement message, from the neighbor advertisement message for receiving
Obtain the topological structure of one or more of LLDP target devices.
With reference to second possible implementation of first aspect, in the third possible implementation, the LLDP
Main equipment connects a LLDP target devices in side, connects the 2nd LLDP target devices, the LLDP main equipments in opposite side
Neighbor advertisement message is sent to one or more of LLDP target devices to specifically include:The LLDP main equipments are to described first
LLDP target devices send the first neighbor advertisement message, so that receiving the LLDP target devices of the first neighbor advertisement message
The identification information of itself and the interface message for receiving the first neighbor advertisement message are added in the first neighbor advertisement message,
And the forwarding of down hop LLDP target device;The LLDP main equipments send the second neighbours to the 2nd LLDP target devices and lead to
Accuse message so that receive the second neighbor advertisement message LLDP target devices are by the identification information of itself and receive
The interface message of the second neighbor advertisement message is added in the second neighbor advertisement message, and down hop LLDP target device turns
Send out;The LLDP main equipments receive the first neighbor advertisement message and the second neighbor advertisement message, are led to according to the first neighbours for receiving
Accuse the topological structure of message and the one or more of LLDP target devices of the second neighbor advertisement Receive message.
Further, before the SNMP messages are encapsulated into LLDP messages by the LLDP main equipments, methods described is also wrapped
Include:
The LLDP main equipments are additionally operable to treat according to the identification information of the LLDP target devices to be configured is obtained
The SNMP version informations that the LLDP target devices of configuration can be recognized, according to the SNMP version informations to described to be configured
Configuration information needed for LLDP target devices is changed.
In second aspect, the invention provides a kind of Link Layer Discovery Protocol LLDP equipment, the equipment includes:
First interface, for connecting OSS OSS;
Second interface, for connecting one or more LLDP target devices;
Data sink, for receiving the IP messages of the OSS, extracts Simple Network Management Protocol from the IP messages
SNMP messages, carry the identification information of LLDP target devices to be configured and described to be configured in the SNMP messages
Configuration information needed for LLDP target devices;
Processor, for the mark of the identification information-enquiry LLDP target devices according to the LLDP target devices to be configured
The corresponding relation of the forwarding information of knowledge information and LLDP target devices, so as to obtain the forwarding of the LLDP target devices to be configured
Information;And the SNMP messages are encapsulated in LLDP messages;
Data transmitter, it is described to be configured for being sent to the LLDP messages according to the forwarding information of the acquisition
LLDP target devices, so that the LLDP target devices are configured using the configuration file.
In the first possible implementation, the processor is additionally operable to obtain one or more of LLDP targets and sets
Standby topological structure;The data transmitter is additionally operable to for the topological structure of acquisition to report the OSS.
It is with reference to the first possible implementation of second aspect, in second possible implementation, one
Or multiple LLDP target devices and LLDP main equipments composition ring network structure, the then data transmitter, it is additionally operable to described
One or more LLDP target devices send neighbor advertisement message, so that receiving the LLDP target devices of neighbor advertisement message
The identification information of itself and the interface message for receiving neighbor advertisement message are added to into down hop in neighbor advertisement message
LLDP target devices send;The data sink, is additionally operable to receive neighbor advertisement message;The processor, is additionally operable to from connecing
The topological structure of one or more of LLDP target devices is obtained in the neighbor advertisement message of receipts.
In the third aspect, the invention provides a kind of equipment configuration system, the system includes Link Layer Discovery Protocol
LLDP main equipments and one or more LLDP target devices, one or more of LLDP target devices pass through the LLDP master
Equipment connects the OSS,
The LLDP main equipments, for receiving the IP messages of OSS OSS, extract simple from the IP messages
Network Management Protocols SNMP message, carries identification information and the institute of LLDP target devices to be configured in the SNMP messages
State the configuration information needed for LLDP target devices to be configured;Looked into according to the identification information of the LLDP target devices to be configured
The corresponding relation of the identification information of LLDP target devices and the forwarding information of LLDP target devices is ask, it is described to be configured so as to obtain
The forwarding information of LLDP target devices;And the SNMP messages are encapsulated in LLDP messages, according to the forwarding of the acquisition
The LLDP messages are sent to the LLDP target devices to be configured by information, so that the LLDP target devices utilize institute
State configuration file to be configured.
In the first possible implementation, the LLDP main equipments are additionally operable to obtain one or more of LLDP mesh
The topological structure of acquisition is reported the OSS by the topological structure of marking device.
It is with reference to the first possible implementation of the third aspect, in second possible implementation, one
Or multiple LLDP target devices constitute ring network structure with the LLDP main equipments, then the LLDP main equipments are specifically for institute
State one or more LLDP target devices and send neighbor advertisement message;Neighbor advertisement message is received, from the neighbor advertisement report for receiving
The topological structure of one or more of LLDP target devices is obtained in text;The LLDP target devices are used for, and receive neighbours and lead to
Accuse message, by the identification information of itself and receive neighbor advertisement message interface message be added in neighbor advertisement message to
Next-hop LLDP target device sends.
By the equipment configuration method using above-mentioned offer, equipment and system, LLDP main equipments receive the IP messages of OSS,
Simple Network Management Protocol SNMP message is extracted from IP messages, LLDP target devices to be configured in SNMP messages, are carried
Configuration file needed for identification information and LLDP target devices to be configured;LLDP main equipments are according to LLDP targets to be configured
The local neighbor table of the identification information-enquiry of equipment, obtains reaching the forwarding information and SNMP information of target device, and the forwarding is believed
The outgoing interface up to target device is covered in breath, SNMP information then includes the information such as the SNMP versions and mark of target;LLDP master
Equipment completes the conversion of SNMP message formats and LLDP encapsulation according to SNMP information, is transmitted to characteristic LLDP mesh from the outgoing interface for obtaining
Marking device, so that LLDP target devices are configured using configuration file, realizes the LLDP agreements using extension, in LLDP
The form that LLDP messages are encapsulated into by SNMP messages between main equipment and LLDP target devices is communicated, so as to reduce
OSS carries out the operation complexity of remote management, and need not obtain the remote management that IP address can also realize OSS.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
One embodiment of the invention provides a kind of equipment configuration method, as shown in figure 3, the method for being provided includes:
Step 300, LLDP main equipments receive the IP messages of OSS, and Simple Network Management Protocol SNMP is extracted from IP messages
Message, carries the identification information of LLDP target devices to be configured and LLDP target devices institute to be configured in SNMP messages
The configuration information for needing;
Wherein, the identification information of LLDP target devices to be configured can be the MAC of LLDP target devices to be configured
(Meidia Access Control, media access control) address, the device identification of LLDP target devices to be configured or
Other can identify identification information of LLDP target devices to be configured etc..
Configuration information can be the parameter for needing configuration, and the value of relevant parameter etc..
The identification information-enquiry LLDP target devices of step 310, LLDP main equipments according to LLDP target devices to be configured
Identification information and LLDP target devices forwarding information corresponding relation, so as to obtain the LLDP target devices to be configured
Forwarding information;
Specifically, forwarding information can connect outgoing interface of LLDP target devices to be configured etc. on LLDP main equipments,
Be stored with the neighbor table of LLDP main equipments LLDP target devices identification information it is right with the forwarding information of LLDP target devices
Should be related to, LLDP main equipments can utilize the identification information-enquiry neighbor table of LLDP target devices to be configured, so as to obtain phase
The outgoing interface answered.
SNMP messages are packaged into LLDP messages by step 320, LLDP main equipments, are transmitted to treating according to the forwarding information
The LLDP target devices of configuration, so that LLDP target devices to be configured are configured using configuration information.
Specifically, LLDP main equipments can be by configuration information with TLV's (Type-Length-Valve, type lengths values)
Form is encapsulated in LLDP messages, LLDP main equipments can with the identification information of LLDP target devices to be configured with TLV's
Form is encapsulated in LLDP messages, and the LLDP target devices for so receiving LLDP messages may determine that the identification information in TLV is
It is no consistent with oneself, the message is processed if consistent, if it is inconsistent, refreshing local neighbor table, obtain from neighbor table
Corresponding outgoing interface is taken, so as to forward.
The method that the present embodiment is provided, realizes the LLDP agreements using extension, sets in LLDP main equipments and LLDP targets
The form that LLDP messages are encapsulated into by SNMP messages between standby is communicated, and the behaviour of remote management is carried out so as to reduce OSS
Make complexity, and IP address need not be obtained also realize remote managements of the OSS to LLDP target devices.
Specifically, Fig. 4 is the structural representation of management system provided in an embodiment of the present invention.As shown in figure 4, the system bag
Include OSS41, LLDP main equipment 42 and one or more LLDP target devices.Wherein one or more LLDP target devices pass through
LLDP main equipments connect OSS41.Such as, LLDP main equipments 42 have multiple for connecting LLDP PnP device interfaces, such as:
Interface 1, interface 2 ..., interface m.Each interface of LLDP main equipments 42 can connect one or more LLDP target devices, than
Such as:Interface 1 connection multiple LLDP PnP devices be respectively LLDP target devices 1, LLDP target devices 2 ..., LLDP
Target device n-1 and LLDP target device n.
In addition, the self-defining message name being related in elaborating all embodiments of the invention and form
Form.
First, TLV full name is Type-Length-Value.Wherein, Type is label, and Length is length, and Value is
Value.T, the length of L field are often fixed, and modal T is 8 bits, and L is also 8 bits, and V field lengths are variable.As its name suggests, T
Field represents type of message, and L field represents message length, V fields often for depositing the content of message.
(1) agent identification TLV (LLDP proxy TLV):Type in message is not specific, it is possible to use 32, i.e.,
Type is equal to 32, and the inside record acts on behalf of priority.Priority is mainly used in choosing home agent apparatus, different agent equipments from equipment
Redundancy backup can be realized, the ability that the TLV shows that equipment possesses proxy management, typically all LLDP main equipments is carried.Lattice
Formula is as shown in table 1.
Table 1
7 bits |
9 bits |
8 bits |
Type 32 |
Length |
Priority |
(2) target device TLV (LLDP Destination TLV):Type in message is not specific, it is possible to use
33, i.e. Type are equal to 33, and the inside record specifies target device mark.It is mainly used in specifying target when request or response to set
It is standby.Form is as shown in table 2.
Table 2
7 bits |
9 bits |
48 bits |
Type 33 |
Length |
Target device is identified |
(3) Query of Topological TLV (LLDP topo query TLV):Type in message is not specific, it is possible to use
34, i.e. Type are equal to 34, and the TLV is used for showing that the message is the request of equipment Query of Topological.Message format is as shown in table 3.
Table 3
7 bits |
9 bits |
Type 34 |
Length=0 |
(4) topological response TLV (LLDP topo answer TLV):Type in message is not specific, it is possible to use
35, i.e. Type are equal to 35, and the TLV is used for showing that the message is equipment Query of Topological response.Message format is as shown in table 4.
Table 4
7 bits |
9 bits |
Type 35 |
Length=0 |
(5) link topology TLV (LLDP topo TLV):Type in message is not specific, it is possible to use 36, i.e.,
Type is equal to 36.In equipment topology response message, link topology information is carried using this TLV, the information is typically by equipment mark
Know and interface identifier composition, the device identification TLV and interface identifier TLV is defined in LLDP standard agreements.Message format
As shown in table 5.
Table 5
(6) Simple Network Management Protocol message TLV (SNMP TLV):Which is a self-defining function noun, is meant that
SNMP messages are encapsulated in LLDP messages.LLDP main equipments or target device are referred specifically in embodiments of the present invention by institute
There is original Simple Network Management Protocol (Simple Network Management Protocol, SNMP) message to be all encapsulated into
LLDP messages, including OSS downward messages, LLDP target device response messages, and LLDP target devices break down or change
When the proactive notification message that sends.This TLV is not specific to Type, it is possible to use 37, i.e. Type are equal to 37.Message format is such as
Shown in table 6.
Table 6
7 bits |
9 bits |
N*8 bits |
Type 37 |
Length (n bytes) |
SNMP message informations |
(7) Simple Network Management Protocol mark TLV (SNMP Identification TLV):Using in LLDP standards
Self-defined TLV types Type, are not specific to Type here, it is possible to use 38, i.e. Type are equal to 38.Distinguish LLDP equipment
SNMP is identified, for recognizing that OSS issues the target device of configuration.Wherein, V can include version number and the identifier of SNMP
(SNMP V1/V2 versions can use group's name, V3 versions use USM USER and key information), as shown in table 7.
Table 7
7 bits |
9 bits |
8 bits |
N-bit |
Type 38 |
Length (n+8 bits) |
SNMP versions |
SNMP is identified |
Second, forward table definition.
(1) neighbor table of LLDP main equipments:For finding the information of maintenance of neighbor, neighbours include direct-connected and indirectly connected
, and outgoing interface can be found when E-Packeting, necessary information is only listed here, can also add description etc.
Information.LLDP neighbor tables are as shown in table 8.
Table 8
Neighbours identify |
Jumping figure |
Interface |
SNMP versions |
SNMP is identified |
|
|
|
|
|
(2) neighbor table of LLDP target devices:After LLDP equipment receives LLDP messages, the table will be recorded or refresh.Mainly
Forwarding outlet is found for networking intermediate equipment, and target device active reporting information is selected according to Proxy priority to during OSS
Main equipment is taken, if neighbours do not possess Proxy abilities, can be represented using Proxy priority 0.LLDP neighbor tables such as table 9
It is shown.
Table 9
Neighbours identify |
Jumping figure |
Interface |
Proxy priority |
|
|
|
|
According to above-mentioned message and forwarding-table item, below elaborating the work(of LLDP main equipments and LLDP target devices
Energy.
(1) LLDP master device functionalities:Act on behalf of
LLDP messages and the mutual phase transformation of SNMP over IP messages, then forward the packet to corresponding equipment and OSS, need including original
The information such as the neighbours is reported to by OSS);LLDP main equipments information is notified into regularly or manually other LLDP target devices;Learn
Practise neighbours' topology and report OSS systems, including directly-connected neighbor and indirectly connected neighbours.
Specifically, after LLDP main equipments receive the SNMP configurations or inquiry request that OSS issues, according in SNMP messages
Mark judge whether be configure this equipment, if it is, on give SNMP Agent complete configuration;If it is not, then root
Neighbor entry is inquired about according to the mark, after completing SNMP messages version and mark conversion, LLDP messages is packaged into, is added target device
Outgoing interface after the specified target devices of TLV from neighbor entry is sent to next hop neighbor, is finally transmitted to the target specified and sets
It is standby.
If LLDP main equipments receive target device respond or the SNMP over LLDP messages that report after, complete SNMP
After version and mark conversion, OSS systems are sent in the way of IP messages.
When the study of LLDP main equipments is to neighbours, the request of target device Query of Topological is sent by equipment Query of Topological TLV,
Specified by target device TLV and be sent to the target device;After the target device receives the request, equipment topology response is responded
Message, the equipment TLV and receiving interface TLV of each intermediate equipment addition from the message of LLDP main equipments, and link topology TLV
In, the link topology information complete with target device is obtained, the SNMP information of the information and neighbor advertisement is reported into OSS together
System, facilitates OSS systems to issue configuration.
(2) LLDP target devices function:Forwarding LLDP messages and process LLDP Query of Topological requests, process SNMP
Over LLDP are configured or inquiry request, and give OSS systems using SNMP over LLDP active reporting informations.
Specifically, after LLDP target devices receive LLDP messages, if target device TLV is not carried in message,
This equipment TLV and receiving interface TLV is inserted, the directly-connected neighbor of all non-reception interfaces is sent to;If target is carried in message
Equipment TLV, then judge whether it is this equipment according to the TLV, if it is not, then inquiry neighbor entry is transmitted to next-hop device.
If judging it is this equipment according to target device TLV, according to whether judging whether comprising link topology inquiry TLV
It is Query of Topological request, if it is, link topology information is obtained from the message, after being encapsulated in the way of link topology TLV,
Addition equipment topology response TLV and specified target device TLV, it is intended that response to the source device for initiating neighbor queries.
If judging it is this equipment according to target device TLV, also need to whether simple network management is carried according to message
Protocol massages TLV come judge whether SNMP over LLDP configuration or inquiry request, if it is, on give at SNMP agent
The request is managed, SNMP response messages are constructed according to result, the response message is also with Simple Network Management Protocol message TLV side
Formula is encapsulated, and is specified by way of target device TLV response to source request equipment, usually LLDP main equipments.
When target device needs active reporting information to OSS, also encapsulated in the way of SNMP over LLDP, according to neighbour
The Proxy priority in residence chooses LLDP main equipments, is then sent to LLDP main equipments in the way of specifying target device TLV.
Based on Fig. 4, one embodiment of the invention provides the equipment configuration method in a kind of network, as shown in figure 5, being provided
Method can specifically include:
Step 510, LLDP main equipments receive the IP messages of OSS, and Simple Network Management Protocol SNMP is extracted from IP messages
Message, carries the identification information of LLDP target devices to be configured and LLDP target devices institute to be configured in SNMP messages
The configuration information for needing.
Specifically, OSS is the service operation and management platform of a synthesis, can manage LLDP main equipments.LLDP master sets
The standby SNMP abilities for receiving LLDP target devices, the SNMP version informations such as supported etc..LLDP main equipments can be by LLDP
SNMP abilities report OSS after being changed.The transformation process mainly consider the SNMP versions that LLDP main equipments support and
The SNMP versions that LLDP target devices are supported may be inconsistent, the SNMP marks that typically can be carried according to LLDP target devices, will
The SNMP versions that the SNMP version conversions that LLDP target devices are supported are supported into LLDP main equipments and OSS.Different SNMP versions marks
The mode of knowledge equipment is different, and such as some versions are that some versions are with user's identifier with group's name mark LLDP target devices
Know LLDP target devices, then specific converted contents can be changed between group's name and user name.LLDP master sets
It is standby can also receive that OSS issues carry LLDP target devices mark management solicited message, such as:Inquiry request information is matched somebody with somebody
Put solicited message.The management solicited message is to need the LLDP target device corresponding with LLDP target devices mark to receive.And
The LLDP main equipments for serving as proxy role are responsible for the management solicited message being sent to LLDP target devices.
Configuration information can include that LLDP target devices to be configured need parameter and correlation of configuration etc..
Device management method provided in an embodiment of the present invention, before step 510, also includes:Step 500, LLDP master set
The topological structure of LLDP target devices is reported OSS by the standby topological structure for also needing to obtain LLDP target devices.
If the LLDP target devices composition ring network structure of LLDP main equipments connection, obtains the topology of LLDP target devices
Structure can be specifically:
LLDP main equipments send neighbor advertisement message to LLDP target devices.
LLDP target devices are by the identification information of itself and receive the interface message of neighbor advertisement message and be added to neighbour
In occupying notification packet, down hop LLDP target device sends.LLDP target devices can be with device identification TLV and interface identifier
The mode of TLV is by the identification information of itself and receives the interface message of neighbor advertisement message and is added to neighbor advertisement message
In, LLDP target devices can also be added to the SNMP version numbers of itself support and mark in neighbor advertisement message, LLDP mesh
The SNMP version numbers and SNMP marks that marking device is supported can be added in neighbor advertisement message in the form of the TLV shown in table 7.
Due to being ring network structure, the neighbor advertisement message sent by LLDP main equipments is eventually returned on LLDP main equipments,
The neighbor advertisement message that LLDP main equipments are received can carry the device identification TLV of the LLDP target devices on a direction and connect
Mouth mark TLV, so, LLDP main equipments are known that the topological structure on a direction.
In order to be able to obtain two-way topological structure, LLDP main equipments can send a neighbours respectively to two different directions
Notification packet, so, LLDP main equipments can receive two neighbor advertisement messages, from the two neighbor advertisement messages obtain two
Topological structure on direction.
Assume that LLDP main equipments connect a LLDP target devices in side, connect the 2nd LLDP targets in opposite side and set
Standby, then LLDP main equipments obtain the process of the topological structure of both direction can specifically include:
(1) LLDP main equipments send the first neighbor advertisement message to a LLDP target devices.Receive the first neighbor advertisement
The LLDP target devices of message are by the identification information of itself and receive the interface message of the first neighbor advertisement message and be added to
In first neighbor advertisement message, and the forwarding of down hop LLDP target device;Jump can also be carried in first neighbor advertisement message
Number information, the LLDP target devices for receiving the first neighbor advertisement message can be changed the hop count information, such as plus 1.
(2) LLDP main equipments send the second neighbor advertisement message to the 2nd LLDP target devices.Receive second neighbours
The LLDP target devices of notification packet are by the identification information of itself and receive the interface message of the second neighbor advertisement message and add
It is added in the second neighbor advertisement message, and the forwarding of down hop LLDP target device;Can also take in second neighbor advertisement message
Jumping figure can be added 1 by band hop count information, the LLDP target devices for receiving the second neighbor advertisement message.
(3) LLDP main equipments receive the first neighbor advertisement message and the second neighbor advertisement message, adjacent according to first for receiving
Occupy the topological structure of notification packet and the one or more of LLDP target devices of the second neighbor advertisement Receive message.
LLDP targets are carried in the first neighbor advertisement message and the second neighbor advertisement message of the reception of LLDP main equipments to set
Standby device identification TLV and interface identifier TLV, can obtain whole looped network from these device identifications TLV and interface identifier TLV
Topological structure in both direction.
In order to be able to allow LLDP target devices to recognize LLDP main equipments, LLDP main equipments can be with the neighbor advertisement report for sending
Proxy marks are carried in text, such LLDP target devices can be identified according to this Proxy can be with OSS communications
LLDP main equipments.
After LLDP main equipments obtain the topological structure of both direction, neighbor entry, neighbor entry can also be locally generated
The identification information of neighbor device can be included, the network topological information of neighbours is reached, such as outgoing interface etc. can be with neighbor entry
SNMP version numbers and SNMP mark including neighbours etc..Can also set to each LLDP target including LLDP main equipments in neighbor table
Standby jumping figure etc..
If the LLDP target devices of LLDP main equipments connection constitute non-ring network structure, opening up for LLDP target devices is obtained
Flutterring structure can be specifically:
(1) LLDP main equipments receive neighbor advertisement message, carry device identification TLV and interface in the neighbor advertisement message
Mark TLV, LLDP main equipments identify the LLDP mesh in link end from these device identifications TLV and interface identifier TLV
Marking device, obtain LLDP target devices in link end identification information and from the LLDP target devices of link end to
The network topology structure of LLDP main equipments;
(2) LLDP main equipments send Query of Topological request, the Query of Topological to the LLDP target devices in link end
The TLV shown in table 3 is carried in request, the LLDP target devices for receiving the Query of Topological request can be known according to this TLV
It is not Query of Topological request.
(3), after LLDP target devices receive Query of Topological request, identify after being Query of Topological request, by the mark of itself
Information and receive Query of Topological request interface message be added to Query of Topological request in, down hop LLDP target device
Forwarding.LLDP target devices can be in the form of device identification TLV and interface identifier TLV by the identification information of itself and reception
Interface message to Query of Topological request is added in Query of Topological request.
Hop count information can be carried in Query of Topological request, after middle LLDP target devices receive Query of Topological request,
Jumping figure can be subtracted 1, the LLDP target devices after subtracting 1 for 0 can be exactly the LLDP target devices of link end, certainly, LLDP
According to the identification information of the LLDP target devices in Query of Topological request, target device can also recognize whether oneself is link
The LLDP target devices of meter Duan.
(4) the LLDP target devices of link end receive Query of Topological request after, carry during Query of Topological is asked its
The topology information of his LLDP target devices is encapsulated in the way of link topology TLV (referring to table 5), with reference to LLDP main equipments
, response to LLDP main equipments, the identification information of LLDP main equipments can be in the form of targets option TLV shown in table 2 for identification information
Carry in response message;In response message repeating process, other target devices continue addition link topology information.So,
The topological structure from LLDP main equipments to link end LLDP target devices is carried in the response message that LLDP main equipments are received
And from link end LLDP target devices to the topological structure of LLDP main equipments, LLDP main equipments can be from the response message
It was found that the two-way link topology between LLDP main equipments and LLDP target devices to be configured.
In order to be able to allow LLDP target devices to recognize LLDP main equipments, LLDP main equipments can be with the neighbor advertisement report for sending
Proxy marks are carried in text, such LLDP target devices can be identified according to this Proxy can be with OSS communications
LLDP main equipments.
After LLDP main equipments obtain the topological structure of LLDP target devices, neighbor entry, neighbours can also be locally generated
List item can include the identification information of neighbor device, and the network topological information of arrival neighbours, such as outgoing interface etc. are gone back in neighbor entry
SNMP version numbers and SNMP marks of neighbours etc. can be included.LLDP main equipments can also be included to each LLDP mesh in neighbor table
Jumping figure of marking device etc..
Step 520, identification information-enquiry LLDP target device of the LLDP main equipments according to LLDP target devices to be configured
Identification information and LLDP target devices forwarding information corresponding relation, so as to obtain the LLDP target devices to be configured
Forwarding information.
Specifically, the forwarding information that LLDP main equipments are obtained can connect LLDP targets to be configured on LLDP main equipments
The outgoing interface information of equipment, the process for obtaining forwarding information are to inquire about neighbor table by LLDP main equipments, are stored with neighbor table
The corresponding relation of the identification information of LLDP target devices and the forwarding information of LLDP target devices.
It is after LLDP main equipments receive the management solicited message for carrying LLDP target devices mark, adjacent in LLDP main equipments
The forwarding information corresponding with LLDP target devices mark is inquired about in occupying table.Wherein, LLDP main equipments neighbor table is as shown in table 8.
In addition, LLDP host device interfaces are changed into closing down from up is opened, then the neighbor entry through the end interface is deleted.
When the state for having neighbor device changes, LLDP target devices are packaged into the neighbor information that oneself is safeguarded on LLDP messages
LLDP main equipments are offered, IP is packaged into by LLDP main equipments is wrapped and offer OSS.
SNMP messages are packaged into LLDP messages by step 530, LLDP main equipments, are reported LLDP according to the forwarding information for obtaining
Text is transmitted to LLDP target devices to be configured, so that LLDP target devices to be configured are configured using configuration information.
SNMP messages can be encapsulated in LLDP messages, before encapsulation in the form of TLV by LLDP main equipments, LLDP master
Equipment can be with according to the identification information of the LLDP target devices to be configured acquisition LLDP target devices to be configured
Can identification SNMP version informations, according to the SNMP version informations to the LLDP target devices to be configured needed for match somebody with somebody
Confidence breath is changed.
Configuration information is carried in SNMP messages, LLDP target devices to be configured can be according to the parameter in configuration information
And corresponding value is configured.
Therefore, the equipment configuration method in network provided in an embodiment of the present invention, LLDP main equipments receive OSS and pass through SNMP
What message form sent carries the management solicited message of LLDP target devices mark, is obtained according to LLDP target devices mark
The forwarding information of LLDP target devices, is sealed solicited message is managed by SNMP messages according to the forwarding information of LLDP target devices
The form for being attached to LLDP messages is sent to LLDP target devices, is encapsulated into LLDP by SNMP messages when LLDP target devices are received
After the management request response message that message form sends, SNMP messages are dressed up in management request response message deblocking, and is sent out to OSS
Send, remote managements of the OSS to LLDP target devices can be also realized so as to IP address need not be obtained.
Fig. 6 is the flow chart of the equipment configuration method in network provided in an embodiment of the present invention.As illustrated, the present invention is real
Apply example to specifically include:
Step 610, LLDP target devices are received LLDP main equipments and are sent out by the form that SNMP messages are encapsulated into LLDP messages
That what is sent carries the management solicited message of LLDP target devices mark.Wherein, manage solicited message include inquiry request information or
Configuring request information.
Step 620, when LLDP target devices mark is identical with LLDP target device marks, then will management solicited message solution
SNMP messages are packaged into, and carry out the process corresponding with management solicited message, so as to obtain management request response message.
Further, step 620 also includes:When in message, target device mark is different from LLDP target devices mark,
The forwarding information corresponding with target device mark in message is inquired about in LLDP target device forward tables;And according to forwarding information,
By the SNMP over LLDP message down hop LLDP target devices or LLDP main equipments after insertion equipment TLV and interface TLV
Forwarding.
Further, also included before step 620:LLDP target devices actively send neighbor advertisement, facilitate intermediate objective
Equipment and LLDP main equipments study neighbor entry.Except the standard capability of LLDP protocol definitions in the advertised information, also include
SNMP version numbers, SNMP marks.
LLDP target devices set up LLDP target device neighbor tables, and neighbours' forward table result is as shown in table 9.When LLDP targets
Equipment receives the LLDP messages of neighbours' transmission, then study or neighbor table refreshing item, and the list item also learns in addition to neighbours' mark
The Proxy priority of jumping figure, receiving interface and neighbours to neighbours, the interface is typically exactly the outgoing interface for E-Packeting, and is somebody's turn to do
Priority is used for recognizing the priority whether neighbours have proxy management ability and proxy management.In general, with agency
Operating capability is exactly LLDP main equipments, when network size is larger or it is higher to reliability requirement when, can arrange two or
Plural LLDP main equipments, different LLDP main equipments should show the priority of proxy management with Proxy.
When LLDP target device interfaces are changed into closing down from up is opened, the neighbor entry learnt by the interface is deleted, wrapped
Include directly-connected neighbor and indirectly connected neighbours.And when there is neighbor state to change, the neighbours for oneself safeguarding are believed by LLDP target devices
Breath is packaged into LLDP messages and reports LLDP main equipments, is packaged into IP by LLDP main equipments and wraps and offers OSS.
Management request response message is sent LLDP master by the form that SNMP messages are encapsulated into LLDP messages by step 630
Equipment, will manage request response message to LLDP main equipments and is forwarded to OSS OSS by SNMP message forms.
Further, step 630 also includes:When being sent response to LLDP main equipments using SNMP over LLDP, using mesh
Specifying LLDP main equipments, the LLDP main equipments can be with recognizing according to the source MAC in management request message, and not for marking device TLV
Consider the Proxy priority of LLDP main equipments.Before the message is forwarded, LLDP target devices are also required to study arrival LLDP master and set
Standby forwarding information, the forwarding information can learn or refresh when SNMP over LLDP management requests are received.
Therefore, the equipment configuration method in network provided in an embodiment of the present invention, LLDP target devices receive LLDP master
The management request letter for carrying LLDP target devices mark that equipment is sent by the form that SNMP messages are encapsulated into LLDP messages
Management solicited message deblocking when the target device mark in message is identical with LLDP target device marks, is then dressed up by breath
SNMP messages, and the process corresponding with management solicited message is carried out, so as to obtain management request response message, by management request
Response message is sent to LLDP main equipments by the form that SNMP messages are encapsulated into LLDP messages, will manage to LLDP main equipments
Request response message is forwarded to OSS OSS by SNMP message forms, can also realize so as to obtain IP address
Remote managements of the OSS to LLDP target devices.
Fig. 7 is the information exchange figure of the equipment configuration method in this network provided in an embodiment of the present invention.As illustrated, this
Inventive embodiments are specifically included:
Step 701, OSS send the pipe for carrying LLDP target devices mark to LLDP main equipments by SNMP messages form
Reason solicited message.Wherein, managing solicited message includes inquiry request information or configuring request information.
Step 702, after LLDP main equipments receive the management solicited message for carrying LLDP target devices mark, judges to need
Target device to be configured.If the goal setting is consistent with LLDP main equipments, the configuration or inquiry request are directly processed;
If other LLDP target devices then inquire about neighbor table, and execution step 703 as proxy configurations.
Step 703, LLDP main equipments complete SNMP versions according to the SNMP versions and SNMP mark inquired in neighbor table
With mark conversion, and add LLDP encapsulation, used in encapsulation target device TLV specifying target device to be configured, use
Encapsulating original SNMP messages, the message does not include IP and UDP heads to SNMP TLV.
Step 704, after LLDP target devices 1 receive the SNMP over LLDP messages of LLDP main equipments transmission, study
Or neighbor table refreshing item, and be compared with the device identification of itself according to the LLDP target devices mark of message carrying, when
Target device mark in message identifies identical, then execution step 707 with LLDP target devices 1;When the target device in message
Mark identifies different, then execution step 705 from LLDP target devices 1.
Step 705, the inquiry neighbor table of LLDP target devices 1, according to the outgoing interface forwarding management configuration request in neighbor table;
Before forwarding, equipment TLV can be inserted and the interface TLV of the message is received, learnt or neighbor table refreshing item.
Step 706, after LLDP target devices 2 receive the management configuration request message of the forwarding of LLDP target devices 1, study
Or neighbor table refreshing item, and the target device mark that the equipment query message is carried can be compared with the device identification of itself
Compared with when target device mark identifies identical, then execution step 707 with LLDP target devices 1;When target device mark and LLDP mesh
Marking device 1 identifies difference, then inquire about neighbor entry and be transmitted to next-hop LLDP target according to the outgoing interface in neighbor entry setting
It is standby, equipment TLV can be inserted before forwarding and the interface TLV of the message is received.
Step 707, LLDP target devices 2 will manage solicited message deblocking and dress up SNMP messages, and carry out and management request
The corresponding process of information, so as to obtain management request response message.Then execution step 708.
Step 708, LLDP target devices 2 will manage form of the request response message by SNMP over LLDP messages,
By SNMP response messages with SNMP TLV encapsulating, specified by target device TLV and be sent to LLDP main equipments, can be looked into before transmission
Ask outgoing interface of the neighbor table from neighbor table to send.
Step 709, after LLDP target devices 1 receive the management request response message of SNMP over LLDP encapsulation,
Study or neighbor table refreshing, and outgoing interface is obtained by target device TLV inquiries neighbor table.Then execution step 710.
Step 710, LLDP target devices 1 forward the LLDP messages, meeting before forwarding according to the outgoing interface that neighbor table is inquired
The insertion equipment TLV and interface TLV for receiving the message.
Step 711, after the management request response message that LLDP main equipments are received, being identified by target device TLV should
The message is processed, original SNMP messages are taken out from SNMP TLV, after completing SNMP forms and mark conversion, reported with standard SNMP
Literary form is step 712 response to OSS OSS, and the SNMP messages of the standard are encapsulated with IP message formats.
Therefore, the equipment configuration method in network provided in an embodiment of the present invention, LLDP main equipments receive OSS and pass through SNMP
What message form sent carries the management solicited message of LLDP target devices mark, is obtained according to the target device mark in message
Take the forwarding information of LLDP target devices, according to the forwarding information will manage solicited message be forwarded to LLDP target devices 1 or
LLDP target devices 2, LLDP target devices 1 or LLDP target devices 2 receive management solicited message, when the target in message sets
During for identifying identical with LLDP target device marks, then SNMP messages are dressed up in management solicited message deblocking, and carry out and management
Management request response message, so as to obtain management request response message, is passed through SNMP messages by the corresponding process of solicited message
The form for being encapsulated into LLDP messages is sent to LLDP main equipments, when LLDP main equipments receive LLDP target devices 1 or LLDP mesh
Marking device 2 asks response message by the management that SNMP messages are encapsulated into the transmission of LLDP messages form, by management request response letter
SNMP messages are dressed up in breath deblocking, and are sent to OSS with standard SNMP message format after changing SNMP versions and mark, so as to nothing
IP address need to be obtained and can also realize remote managements of the OSS to LLDP target devices.
Fig. 8 is the structural representation of Link Layer Discovery Protocol LLDP equipment provided in an embodiment of the present invention.The LLDP equipment
For perform Fig. 3 to and Fig. 7 offer network in equipment configuration method.As illustrated, the embodiment of the present invention is specifically included:The
Single port 81, second port 82, data sink 83, processor 84 and data transmitter 85.
First port 81 is used to connect OSS OSS;
Second port 82 is used to connect one or more LLDP target devices;
Data sink 83 is used for the IP messages for receiving OSS, and Simple Network Management Protocol SNMP report is extracted from IP messages
Text, carries in SNMP messages needed for the identification information and LLDP target devices to be configured of LLDP target devices to be configured
Configuration information;
Mark of the processor 84 for the identification information-enquiry LLDP target devices according to LLDP target devices to be configured
The corresponding relation of the forwarding information of information and LLDP target devices, so as to obtain the forwarding information of LLDP target devices to be configured;
And SNMP messages are encapsulated in LLDP messages;
Data transmitter 85 is set for LLDP messages are sent to LLDP targets to be configured according to the forwarding information for obtaining
It is standby, so that LLDP target devices are configured using configuration information.
In one embodiment, processor 84 is additionally operable to the topological structure for obtaining one or more LLDP target devices;Number
It is additionally operable to for the topological structure of acquisition to report OSS according to transmitter.
In another embodiment, one or more LLDP target devices constitute ring network structure with LLDP main equipments, then data
Transmitter 85, is additionally operable to send neighbor advertisement message to one or more LLDP target devices, so that receiving neighbor advertisement
The LLDP target devices of message are by the identification information of itself and receive the interface message of neighbor advertisement message and be added to neighbours
In notification packet, down hop LLDP target device sends;Data sink 83, is additionally operable to receive neighbor advertisement message;Processor
84, it is additionally operable to from the neighbor advertisement message for receiving obtain the topological structure of one or more LLDP target devices.
Therefore, LLDP equipment provided in an embodiment of the present invention, receives OSS by carrying that SNMP messages form sends
The management solicited message of LLDP target devices mark, identifies the forwarding letter for obtaining LLDP target devices according to LLDP target devices
Breath, is sent out solicited message is managed by the form that SNMP messages are encapsulated into LLDP messages according to the forwarding information of LLDP target devices
LLDP target devices are delivered to, please by the management that SNMP messages are encapsulated into the transmission of LLDP messages form when LLDP target devices are received
After seeking response message, SNMP messages are dressed up in management request response message deblocking, and is sent to OSS, so as to IP ground need not be obtained
Remote managements of the OSS to LLDP target devices can also be realized in location.
Fig. 9 is the structural representation of equipment configuration system provided in an embodiment of the present invention.As illustrated, the device configuration system
System Link Layer Discovery Protocol LLDP main equipments 91 and one or more LLDP target devices 92, one or more LLDP targets set
Standby 92 connect OSS by LLDP main equipments 91.
LLDP main equipments 91, for receiving the IP messages of OSS OSS, extract simple network pipe from IP messages
Reason agreement SNMP message, carries the identification information and LLDP to be configured of LLDP target devices to be configured in SNMP messages
Configuration information needed for target device;According to the mark of the identification information-enquiry LLDP target devices of LLDP target devices to be configured
The corresponding relation of the forwarding information of knowledge information and LLDP target devices, so as to the forwarding for obtaining LLDP target devices to be configured is believed
Breath;And SNMP messages are encapsulated in LLDP messages, LLDP messages are sent to according to the forwarding information for obtaining to be configured
LLDP target devices, so that LLDP target devices are configured using configuration information.
In one embodiment, LLDP main equipments 91 are additionally operable to the topology knot for obtaining one or more LLDP target devices
The topological structure of acquisition is reported OSS by structure.
In another embodiment, one or more LLDP target devices 92 constitute ring network structure with LLDP main equipments 91, then
LLDP main equipments 91 are specifically for sending neighbor advertisement message to one or more LLDP target devices;Receive neighbor advertisement report
Text, obtains the topological structure of one or more LLDP target devices from the neighbor advertisement message for receiving;LLDP target devices are used
In the identification information of itself and the interface message for receiving neighbor advertisement message are added to neighbour by reception neighbor advertisement message
In occupying notification packet, down hop LLDP target device sends.
Professional should further appreciate that, with reference to each example of the embodiments described herein description
Unit and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, it is hard in order to clearly demonstrate
The interchangeability of part and software, generally describes the composition and step of each example in the above description according to function.
These functions actually with hardware or software mode performing, depending on the application-specific and design constraint of technical scheme.
Professional and technical personnel can use different methods to realize to each specific application described function, but this realization
It is not considered that beyond the scope of this invention.
Hardware, computing device can be used with reference to the method for the embodiments described herein description or the step of algorithm
Software module, or the combination of the two is implementing.Software module can be placed in random access memory (RAM), internal memory, read only memory
(ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described specific embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, the be should be understood that specific embodiment that the foregoing is only the present invention is not intended to limit the present invention
Protection domain, all any modification, equivalent substitution and improvements within the spirit and principles in the present invention, done etc. all should include
Within protection scope of the present invention.