WO2014110737A1 - Method, device, and system for configuring device in network - Google Patents

Method, device, and system for configuring device in network Download PDF

Info

Publication number
WO2014110737A1
WO2014110737A1 PCT/CN2013/070547 CN2013070547W WO2014110737A1 WO 2014110737 A1 WO2014110737 A1 WO 2014110737A1 CN 2013070547 W CN2013070547 W CN 2013070547W WO 2014110737 A1 WO2014110737 A1 WO 2014110737A1
Authority
WO
WIPO (PCT)
Prior art keywords
lldp
target device
target
information
message
Prior art date
Application number
PCT/CN2013/070547
Other languages
French (fr)
Chinese (zh)
Inventor
王玉容
胡仲怀
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380000237.3A priority Critical patent/CN104205729B/en
Priority to PCT/CN2013/070547 priority patent/WO2014110737A1/en
Publication of WO2014110737A1 publication Critical patent/WO2014110737A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Definitions

  • the present invention relates to the field of communications, and in particular, to a device configuration method, device, and system in a network. Background technique
  • IP Internet Protocol
  • VLAN Virtual Office Area
  • FIG. 1 is a schematic structural diagram of a remote management system in the prior art.
  • the network device and the Dynamic Host Configuration Protocol (DHCP) server need to be configured.
  • the configuration of the network device includes traffic and DHCP configuration.
  • the purpose of configuring the DHCP server is to assign an IP address to the plug-and-play device.
  • the network device records the acquired IP address, and the Operation Support System (OSS) configures the plug-and-play device according to the obtained IP address.
  • OSS Operation Support System
  • FIG. 2 is a schematic structural diagram of another remote management system in the prior art. As shown in FIG. 2, in the remote management system, it is also necessary to configure the network device and the DHCP server. After the plug-and-play device is inserted into the configuration system, the network device records the IP address obtained by the plug-and-play device, that is, The plug-and-play device 2 and the network device mutually sense each other through the Link Layer Discovery Protocol (LLDP), and send the device information of the Plug and Play device 2 to the 0SS in the manner of LLDP neighbor information. . The OSS senses the location of the plug-and-play device according to the neighbor information, and delivers the configuration information according to the location information of the plug-and-play device.
  • LLDP Link Layer Discovery Protocol
  • the present invention provides a device configuration method, device, and system in a network, which solves the problem that the network device and the DHCP server need to be configured in the prior art, and the IP address is configured for the plug and play device, and the extended LLDP is utilized.
  • the protocol reduces the operational complexity of remote management and enables remote management via 0SS without obtaining an IP address.
  • the present invention provides a device configuration method in a network, where the network includes an operation support system OSS, a link layer discovery protocol LLDP master device, and one or more LLDP target devices, the one or more The LLDP target device connects to the 0SS by using the LLDP master device, and the method includes:
  • the LLDP master device receives the IP packet of the 0SS, and extracts a simple network management protocol, the awake P packet, from the IP packet, where the awake P packet carries the identifier information of the LLDP target device to be configured. And configuration information required by the LLDP target device to be configured;
  • the LLDP master device is configured to query the correspondence between the identifier information of the LLDP target device and the forwarding information of the LLDP target device according to the identifier information of the LLDP target device to be configured, so as to obtain the forwarding information of the LLDP target device to be configured.
  • the LLDP master device encapsulates the S ⁇ P packet into an LLDP packet, and sends the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device uses the The configuration file is configured.
  • the obtained forwarding information includes an outbound interface that is connected to the LLDP target device to be configured on the LLDP master device.
  • the LLDP master device encapsulates the S-uppertext into an LLDP file, and the LLDP master device encapsulates the SNMP packet into the LLDP packet in the form of a type length value TLV. .
  • the LLDP packet further carries a TLV for identifying the LLDP target device to be configured, and the TLV for identifying the LLDP target device to be configured carries the identifier information of the LLDP target device to be configured.
  • the method before the receiving, by the LLDP master device, the IP packet of the 0SS, the method further includes: acquiring a topology structure of the one or more LLDP target devices, and reporting the obtained topology structure to The neighboring-topology entry is generated locally, and the entry includes a neighbor device identifier, a neighboring awake P version number, and an awake P identifier, and network topology information of the neighboring neighbor.
  • the one or more LLDP target devices and the LLDP master device form a ring network structure, and acquiring the topology structure of the one or more LLDP target devices specifically includes:
  • the LLDP master device sends the neighbor advertisement message to the one or more LLDP target devices, so that the LLDP target device that receives the neighbor advertisement message adds its own identity information and interface information of the received neighbor advertisement message to the neighbor.
  • the advertisement packet is sent to the LLDP target device to the next hop.
  • the LLDP master device receives the neighbor advertisement packet, and obtains the topology structure of the one or more LLDP target devices from the received neighbor advertisement packet.
  • the LLDP master device connects the first LLDP target device on one side and the second LLDP target device on the other side.
  • the sending, by the LLDP master device, the neighbor advertisement message to the one or more LLDP target devices includes: sending, by the LLDP master device, the first neighbor advertisement message to the first LLDP target device, so that the first The LLDP target device of the neighbor advertisement packet adds its own identity information and the interface information of the first neighbor advertisement packet to the first neighbor advertisement packet, and forwards it to the LLDP target device to the next hop; the LLDP master device Sending a second neighbor advertisement message to the second LLDP target device, so that the LLDP target device that receives the second neighbor advertisement message is self- The identification information of the body and the interface information of the second neighbor advertisement message are added to the second neighbor advertisement message, and are forwarded to the LLDP target device to the next hop; the LLDP master device receives the first neighbor advertisement message and the first And obtaining
  • the LLDP master device encapsulates the S awake P ⁇ ⁇ text into the LLDP ⁇ text, and the method further includes:
  • the LLDP master device is further configured to acquire, according to the identifier information of the LLDP target device to be configured, the W-up P version information that can be identified by the LLDP target device to be configured, according to the S-up P version information.
  • the configuration information required for the LLDP target device to be configured is translated.
  • the present invention provides a link layer discovery protocol LLDP device, where the device includes:
  • the first interface is used to connect the operation support system 0SS;
  • a second interface configured to connect to one or more LLDP target devices
  • a data receiver configured to receive the IP packet of the 0SS, and extract a simple network management protocol, the awake P packet, from the IP packet, where the awake P packet carries the identifier of the LLDP target device to be configured.
  • a processor configured to query, according to the identifier information of the LLDP target device to be configured, a correspondence between the identifier information of the LLDP target device and the forwarding information of the LLDP target device, to obtain the forwarding information of the LLDP target device to be configured;
  • the awake P packet is encapsulated into the LLDP packet, and the data transmitter is configured to send the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target is obtained.
  • the device is configured with the configuration file.
  • the processor is further configured to acquire a topology of the one or more LLDP target devices, where the data transmitter is further configured to report the acquired topology to the 0SS.
  • the one or more LLDP target devices and the LLDP master device form a ring network structure
  • the data transmitter is further configured to send a neighbor advertisement message to the one or more LLDP target devices, so as to receive the
  • the LLDP target device of the neighbor advertisement packet adds its own identification information and the interface information of the neighbor advertisement packet to the next hop LLDP target device in the neighbor advertisement packet.
  • the data receiver is also used to receive the neighbor.
  • the processor is configured to obtain the topology of the one or more LLDP target devices from the received neighbor advertisement message.
  • the present invention provides a device configuration system, where the system includes a link layer discovery protocol LLDP master device and one or more LLDP target devices, and the one or more LLDP target devices pass the LLDP master The device connects to the 0SS,
  • the LLDP master device is configured to receive an IP packet of the operation support system 0SS, and extract a simple network management protocol S wakeup P packet from the IP packet, where the S wakeup P packet carries the LLDP target to be configured.
  • a device such that the LLDP target device is configured with the configuration file.
  • the LLDP master device is further configured to obtain a topology structure of the one or more LLDP target devices, and report the obtained topology structure to the 0SS.
  • the one or more LLDP target devices and the LLDP master device form a ring network structure, and the LLDP master device is specific And sending, to the one or more LLDP target devices, a neighbor advertisement message, receiving a neighbor advertisement message, and acquiring a topological structure of the one or more LLDP target devices from the received neighbor advertisement message;
  • the LLDP target device is configured to receive the neighbor advertisement packet, and add the identity information and the interface information of the neighbor advertisement packet to the next hop LLDP target device in the neighbor advertisement packet.
  • the LLDP master device receives the IP packet of the 0SS, and extracts the simple network management protocol S awake P packet from the IP packet.
  • the S ping P packet carries the LLDP to be configured.
  • the forwarding information includes the outbound interface to the target device, and the SNMP information includes the SNMP version and the identifier of the target.
  • the LLDP master device completes the wakeup P packet format conversion and LLDP encapsulation based on the S awake P information.
  • the LLDP target device is forwarded to the LLDP target device, so that the LLDP target device is configured with the configuration file, and the extended LLDP protocol is used to encapsulate the LLDP packet with the LLDP device.
  • Communication which reduces the operational complexity of remote management of 0SS, and can realize remote remote 0SS without obtaining an IP address. Management.
  • FIG. 1 is a schematic structural diagram of a remote management system in the prior art
  • FIG. 2 is a schematic structural diagram of another remote management system in the prior art
  • FIG. 3 is a flowchart of a device configuration method in a network according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a management system according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a device configuration method in a network according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a device configuration method in a network according to an embodiment of the present invention.
  • Figure ⁇ is an information interaction diagram of a device configuration method according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a link layer discovery protocol LLDP master device according to an embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of a device configuration system according to an embodiment of the present invention. detailed description
  • An embodiment of the present invention provides a device configuration method. As shown in FIG. 3, the method provided includes:
  • the LLDP master device receives the IP packet of the 0SS, and extracts the simple network management protocol, the awake P packet, from the IP packet, and the awake P packet carries the identifier information of the LLDP target device to be configured and the LLDP to be configured. Configuration information required by the target device;
  • the identifier information of the LLDP target device to be configured may be the MAC address of the LLDP target device to be configured, the media access control address, the device identifier of the LLDP target device to be configured, or other identifiers. ID information of the LLDP target device to be configured.
  • the configuration information may be a parameter that needs to be configured, a value of a related parameter, and the like.
  • Step 310 The LLDP master device searches the mapping between the identifier information of the LLDP target device and the forwarding information of the LLDP target device according to the identifier information of the LLDP target device to be configured, so as to obtain the forwarding information of the LLDP target device to be configured.
  • the forwarding information may be an outgoing interface of the LLDP target device connected to the LLDP target device
  • the LLDP master device's neighbor table stores the mapping between the LLDP target device's identification information and the LLDP target device's forwarding information.
  • the master device can query the neighbor table by using the identification information of the LLDP target device to be configured to obtain the corresponding outbound interface.
  • Step 320 The LLDP master device encapsulates the SNMP packet into an LLDP packet, and forwards the packet to the LLDP target device to be configured, so that the LLDP target device to be configured uses the configuration information to configure.
  • the LLDP master device can encapsulate the configuration information into the LLDP packet in the form of a TLV (Type-Length-Va lve, type length value), and the LLDP master device can also set the identifier information of the LLDP target device to be configured.
  • the form of the TLV is encapsulated in the LLDP packet, so that the LLDP target device that receives the LLDP packet can determine whether the identifier information in the TLV is consistent with its own. If the packet is inconsistent, the local neighbor table is refreshed, and the corresponding outbound interface is obtained from the neighbor table, and then forwarded.
  • the method provided in this embodiment implements the use of the extended LLDP protocol, and communicates between the LLDP master device and the LLDP target device through the W P P ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ , , ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ The operation complexity, and the remote management of the LLDP target device by the 0SS can be realized without obtaining an IP address.
  • FIG. 4 is a schematic structural diagram of a management system according to an embodiment of the present invention.
  • the system includes an OSS 41, an LLDP master device 42, and one or more LLDP target devices.
  • One or more LLDP target devices are connected to the LLDP master device.
  • the LLDP master device 42 has multiple interfaces for connecting LLDP plug-and-play devices, such as interface 1, interface 1 interface m.
  • Each LLDP master device 42 can be connected to one or more LLDP target devices.
  • multiple LLDP plug-and-play devices connected to interface 1 are LLDP target device 1, LLDP target device 2, LLDP target device n-1, and LLDP target device n.
  • Type-Leng th - Va lue is the label, Leng th ⁇ 7 length, and Va lue is the value.
  • the lengths of the T and L fields are often fixed.
  • the most common ⁇ is 8 bits, L is also 8 bits, and the V field is variable in length.
  • the ⁇ field indicates the packet type, the L field indicates the packet length, and the V field is used to store the contents of the packet.
  • LLDP TLV proxy TLV
  • the Type in the packet is not specific. You can use 32, that is, Type is equal to 32, and the proxy priority is recorded. The priority is mainly used to select the primary proxy device from the device. Different proxy devices can implement redundant backup.
  • the TLV indicates that the device has the capability of agent management. Generally, it is an LLDP master device. The format is shown in Table 1.
  • TLV LLDP topo query TLV
  • the Type in the packet is not specific. You can use 34, that is, Type is equal to 34.
  • the TLV is used to indicate that the packet is a device topology query request.
  • the format of the message is shown in Table 3.
  • TLV LLDP topo answer TLV
  • Link topology TLV (LLDP topo TLV): The Type in the packet is not specific. You can use 36, that is, Type is equal to 36.
  • the TLV carries the link topology information, which is generally composed of the device identifier and the interface identifier.
  • the device identifier TLV and the interface identifier TLV are defined in the LLDP standard protocol. The format of the message is shown in Table 5.
  • Type 36 Length (mbytes) Device Identification 1 (TLV), Device Identification n (TLV), Interface Identification 1 (TLV) Interface Identification n (TLV)
  • TLV Simple Network Management Protocol packet
  • S awake P TLV It is a custom function name, which means that the S-Weep packet is encapsulated into an LLDP packet.
  • the LLDP master device or the target device encapsulates all the original Simple Network Management Protocol (SCDMA) packets into the LLDP packets, including the messages sent by the OSS and the LLDP.
  • SCDMA Simple Network Management Protocol
  • This TLV is not specific to Type, you can use 37, that is, Type is equal to 37.
  • the message format is shown in Table 6.
  • TLV Simple Network Management Protocol
  • the Type is not specific. You can use 38, that is, Type is equal to 38.
  • the S-up P identifier of the LLDP device is used to identify the target device that is configured by the 0SS.
  • V can contain the version number and identifier of the wakeup P (S wake up P V1/V2 version can use the group name, V3 version can use USM USER and key information), as shown in Table 7.
  • Neighbor table of the LLDP master device used to find information about maintaining neighbors. Neighbors include direct connections. And the indirect connection, and can find the interface when forwarding the message, only the necessary information is listed here, and the description and other information can also be added.
  • the LLDP neighbor table is shown in Table 8.
  • the LLDP device After receiving the LLDP packet, the LLDP device records or refreshes the table. It is mainly used for the intermediate device in the networking to find the forwarding exit, and the target device actively reports the information to the 0SS. The primary device is selected according to the proxy priority. If the neighbor does not have the proxy capability, the proxy priority 0 can be used.
  • the LLDP neighbor table is shown in Table 9.
  • the proxy LLDP target device communicates with the 0SS (mainly, the S-up P-LLDP packet and the S-awake P-over IP packet are mutually converted, and then the packet is forwarded to the corresponding device and 0SS.
  • the information about the neighbors that need to be reported to the 0SS is included.
  • the LLDP master device information is periodically or manually notified to other LLDP target devices.
  • the neighbor topology is learned and sent to the 0SS system, including the directly connected neighbors and the non-directly connected neighbors.
  • the LLDP master device determines whether the device is configured according to the identifier in the wakeup P packet, and if yes, hands it over to the W agent. If the configuration is not complete, the neighboring entry is queried according to the identifier. After the version of the pinged P-type packet and the identifier are translated, the packet is encapsulated into an LLDP packet. After the target device is added to the destination device, the destination device is sent from the outbound interface. Give the next hop neighbor, and finally forward it to the specified target device. After receiving the P-over P-LLDP packet from the target device, the LLDP master device sends the IP packet to the 0SS system.
  • the device topology query is sent by the device topology query TLV, and is sent to the target device by the target device TLV.
  • the target device After receiving the request, the target device responds to the device topology response message.
  • the LLDP master device obtains the complete link topology information of the target device from the device TLV and the receiving interface TLV added by the intermediate devices in the packet, and the link topology TLV, and the information and the neighbor notification S ⁇ The P information is reported to the 0SS system, which facilitates the configuration of the 0SS system.
  • (2) LLDP target device function Forward LLDP packets and process LLDP topology query requests, process SNMP over LLDP configuration or query requests, and use SNMP over LLDP to actively send information to the 0SS system.
  • the TLV and the receiving interface TLV are inserted into the device and sent to all the directly connected neighbors of the non-receiving interface.
  • the target device TLV determines whether it is the local device according to the TLV. If not, the neighboring entry is forwarded to the next hop device.
  • the device determines whether the topology query request is based on whether the link topology query TLV is included. If yes, the link topology information is obtained from the packet, and the link topology TLV is obtained. After the method is encapsulated, the device topology response TLV and the specified target device TLV are added, and the source device that responds to the originating neighbor query is specified.
  • the target device TLV If it is determined by the target device TLV that the device is the device, it is also required to determine whether to wake up the P over LLDP configuration or the query request according to whether the packet carries a simple network management protocol >3 ⁇ 4 text TLV, and if yes, hand it over to the S-up P agent.
  • the request is processed, and the wakeup P response message is constructed according to the processing result, and the response message is also encapsulated in a simple network management protocol and a TLV manner, and the response is specified by the target device TLV to the source requesting device, generally LLDP. Master device.
  • the target device When the target device needs to report the information to the 0SS, it is also encapsulated in the P-over LLDP mode.
  • the LLDP master device is selected according to the neighbor's proxy priority. Then, the target device TLV is specified. The mode is sent to the LLDP master device.
  • an embodiment of the present invention provides a device configuration method in a network. As shown in FIG. 5, the method provided may specifically include:
  • Step 51 0 The LLDP master device receives the IP packet of the 0SS, and extracts the Simple Network Management Protocol (SWP) packet from the IP packet.
  • SWP Simple Network Management Protocol
  • the S-Weep packet carries the identifier information of the LLDP target device to be configured and the to-be-configured Configuration information required by the LLDP target device.
  • 0SS is a comprehensive business operation and management platform that can manage LLDP master devices.
  • the LLDP master device receives the S-up P capability of the LLDP target device, such as the supported S-up P version information.
  • the LLDP master device converts the S-up ability of the LLDP to the 0SS.
  • the conversion process is mainly based on the fact that the S-up P version supported by the LLDP master device and the S-wake P version supported by the LLDP target device may be inconsistent.
  • the S-up P flag carried by the LLDP target device may be used to wake up the S-supported by the LLDP target device.
  • the version is converted to the LLDP master device and the WSS P version supported by the 0SS.
  • Different S wakeup P versions identify devices in different ways. For example, some versions identify LLDP target devices by community name. Some versions identify LLDP target devices by user name. The specific conversion content can be converted between community name and user name. .
  • the LLDP master device also receives the LLDP target device identification management request information delivered by the 0SS, such as query request information or configuration request information. The management request information is received by the LLDP target device corresponding to the LLDP target device identifier. The LLDP master device acting as a proxy is responsible for sending the management request information to the LLDP target device.
  • the configuration information can include the parameters to be configured and related values of the LLDP target device to be configured.
  • the device management method provided by the embodiment of the present invention before the step 510, further includes: Step 500, the LLDP master device also needs to obtain the topology structure of the LLDP target device, and report the topology structure of the LLDP target device to the 0SS.
  • the topology of the LLDP device can be:
  • the LLDP master sends neighbor advertisement packets to the LLDP target device.
  • the LLDP target device adds its own identification information and interface information of the neighbor advertisement packet to the next hop LLDP target device in the neighbor advertisement packet.
  • the LLDP target device can add its own identification information and the interface information of the received neighbor advertisement message to the neighbor advertisement message in the manner of the device identifier TLV and the interface identifier TLV.
  • the LLDP target device can also support the SNMP version number supported by itself.
  • the identifier is added to the neighbor advertisement, and the wakeup P version number and the wakeup P identifier supported by the LLDP target device can be added to the neighbor advertisement in the form of the TLV shown in Table 7.
  • the neighbor advertisements sent by the LLDP master device will eventually return to the LLDP master device.
  • the neighbor advertisement packets received by the LLDP master device will carry the device identifier TLV of the LLDP target device in one direction. And the interface identifies the TLV, so that the LLDP master can know the topology in one direction.
  • the LLDP master device can send a neighbor advertisement packet in two different directions.
  • the LLDP master device receives two neighbor advertisement packets from the two neighbor advertisement packets. Get the topology in both directions.
  • the process of obtaining the topology structure of the LLDP master device in two directions may include:
  • the LLDP master sends a first neighbor advertisement packet to the first LLDP target device.
  • the LLDP target device that receives the first neighbor advertisement message adds its own identity information and the interface information of the first neighbor advertisement message to the first neighbor advertisement message, and forwards the LLDP target device to the next hop;
  • the neighbor advertisement packet may also carry the hop count information.
  • the LLDP target device that receives the first neighbor advertisement packet may modify the hop count information, for example, adding 1 or the like.
  • the LLDP master sends a second neighbor advertisement message to the second LLDP target device.
  • the LLDP target device that receives the second neighbor advertisement and the suffix adds its own identification information and the interface information of the second neighbor advertisement message to the second neighbor advertisement message, and forwards the LLDP target device to the next hop.
  • the second neighbor advertisement message may also carry the hop count information, and the LLDP target device that receives the second neighbor advertisement message may increase the hop count by one.
  • the LLDP master device receives the first neighbor advertisement message and the second neighbor advertisement message according to the reception.
  • the first neighbor advertisement and the second neighbor advertisement obtain the topology of the one or more LLDP target devices.
  • the first neighbor advertisement and the second neighbor advertisement received by the LLDP master device carry the device identifier TLV and the interface identifier TLV of the LLDP target device.
  • the two ring directions of the entire ring network can be obtained from the device identifier TLV and the interface identifier TLV.
  • the LLDP master device can also carry the proxy identifier in the sent neighbor advertisement packet, so that the LLDP target device can identify the LLDP master device that can communicate with the 0SS according to the proxy identifier.
  • the neighboring entry can be generated locally.
  • the neighboring entry can include the neighboring device identification information, and the network topology information of the neighbor, such as the outbound interface. It may also include the neighbor's wake-up P version number and the wake-up P identifier.
  • the neighbor table can also include the hop count of the LLDP master device to each LLDP target device.
  • the topology of the LLDP target device can be:
  • the LLDP master device receives the neighbor advertisement packet, and the neighbor advertisement packet carries the device identifier.
  • the TLV and the interface identifier TLV The TLV and the interface identifier TLV.
  • the LLDP master device identifies the LLDP target device at the end of the link from the device identification TLV and the interface identifier TLV, and obtains the LLDP target device identification information at the end of the link and the LLDP target from the end of the link. Network topology of the device to the LLDP master device;
  • the LLDP master device sends a topology query request to the LLDP target device at the end of the link.
  • the topology query request carries the TLV shown in Table 3.
  • the LLDP target device that receives the topology query request can TLV recognition is a topology query request.
  • the LLDP target device After receiving the topology query request, the LLDP target device identifies the topology query request and adds its own identity information and the interface information received by the topology query request to the topology query request, and the next hop LLDP target device forwarding.
  • the LLDP target device may add its own identification information and interface information received by the topology query request to the topology query request in the form of the device identification TLV and the interface identification TLV.
  • the topology query request may carry the hop count information.
  • the LLDP target device in the middle may reduce the hop count by one, and the LLDP target device that is 0 after the link may be the LLDP target device at the end of the link.
  • the LLDP target device can also identify whether it is an LLDP target device of the link meter based on the identifier information of the LLDP target device in the topology query request.
  • the LLDP target device at the end of the link encapsulates the topology information of other LLDP target devices carried in the topology query request by the link topology TLV (see Table 5).
  • the information of the LLDP master device is forwarded to the LLDP master device.
  • the identifier information of the LLDP master device can be carried in the response packet in the form of the target option TLV shown in Table 2. During the response packet forwarding process, other target devices continue. Add link topology information.
  • the response packet received by the LLDP master device carries the topology structure from the LLDP master device to the LLDP target device at the end of the link and the topology structure from the LLDP target device at the end of the link to the LLDP master device.
  • the LLDP master device can A bidirectional link topology between the LLDP master device and the LLDP target device to be configured is found in the response packet.
  • the LLDP master device can also carry the proxy identifier in the sent neighbor advertisement packet, so that the LLDP target device can identify the LLDP master device that can communicate with the 0SS according to the proxy identifier.
  • the LLDP master device can also generate a neighbor entry locally.
  • the neighbor entry can include the identifier information of the neighbor device and the network topology information of the neighbor, such as the outbound interface. It may also include the neighbor's wake-up P version number and the wake-up P identifier.
  • the neighbor table can also include the hop count of the LLDP master device to each LLDP target device.
  • Step 520 The LLDP master device searches the mapping between the LLDP target device identification information and the LLDP target device forwarding information according to the LLDP target device identification information to obtain the forwarding information of the LLDP target device to be configured.
  • the forwarding information obtained by the LLDP master device may be the outbound interface information of the LLDP target device to be configured on the LLDP master device.
  • the process of obtaining the forwarding information is performed by the LLDP master device to query the neighbor table, and the LLDP target device is stored in the neighbor table. Identification information and forwarding information of the LLDP target device Correspondence.
  • the LLDP master device After receiving the management request information carrying the LLDP target device identifier, the LLDP master device queries the LLDP master device neighbor table for the forwarding information corresponding to the LLDP target device identifier.
  • the LLDP master neighbor table is shown in Table 8.
  • the LLDP master interface changes from open up to down, and the neighbor entry that passes the interface is deleted.
  • the LLDP target device encapsulates the neighbor information that is maintained by the LLDP device into an LLDP master device.
  • the LLDP master device encapsulates the packet into an IP packet and reports it to the 0SS.
  • Step 53 G The LLDP master device encapsulates the awake P-type packet into an LLDP packet, and forwards the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device to be configured is configured by using the configuration information. .
  • the LLDP master device may encapsulate the S-uppertext into the LLDP file in the form of a TLV. Before the encapsulation, the LLDP master device may obtain the LLDP to be configured according to the identifier information of the LLDP target device to be configured. And the configuration information required by the LLDP target device to be configured is converted according to the SNMP version information.
  • the SNMP packet carries the configuration information.
  • the LLDP target device to be configured can be configured according to the parameters and corresponding values in the configuration information.
  • the LLDP master device receives the management request information of the LLDP target device identifier that is sent by the WSS in the form of the wakeup P packet, and obtains the LLDP target device according to the LLDP target device identifier. Forwarding information, according to the forwarding information of the LLDP target device, the management request information is sent to the LLDP target device in the form of an LLDP >3 ⁇ 4 message, and the LLDP target device is encapsulated into the LLDP packet by using the wakeup P packet. After the management request response information is sent in the form, the management request response information is decapsulated into the wakeup P message and sent to the 0SS, so that the remote management of the LLDP target device by the 0SS can be realized without obtaining the IP address.
  • FIG. 6 is a flowchart of a device configuration method in a network according to an embodiment of the present invention.
  • the embodiment of the present invention specifically includes: Step 610:
  • the LLDP target device receives the management request information that is sent by the LLDP master device and is sent in the form of the LLDP target device, and is sent by the LLDP master device.
  • the management request information includes query request information or configuration request information.
  • Step 620 When the LLDP target device identifier is the same as the LLDP target device identifier, the management request information is decapsulated into a wakeup P packet, and processing corresponding to the management request information is performed, thereby obtaining management request response information.
  • the step 620 further includes: when the target device identifier is different from the LLDP target device identifier, querying, in the LLDP target device forwarding table, the forwarding information corresponding to the target device identifier in the packet; and inserting the device according to the forwarding information.
  • the S wake-up P over LLDP packet is forwarded to the LLDP target device or the LLDP master device.
  • the LLDP target device actively sends the neighbor advertisement, so that the intermediate target device and the LLDP master device learn the neighbor entry.
  • the notification information includes the S-up P version number and the S-wake P flag.
  • the LLDP target device establishes the LLDP target device neighbor table.
  • the neighbor forwarding table results are shown in Table 9.
  • the LLDP target device receives the LLDP packet sent by the neighbor, it learns or refreshes the neighbor entry.
  • the LLDP learns the hop count of the neighbor, the receiving interface, and the proxy priority of the neighbor.
  • the interface is usually The outbound interface of the packet is forwarded, and the priority is used to identify whether the neighbor has the agent management capability and the priority of the agent management.
  • the LLDP master device is capable of proxy management. When the network size is large or the reliability requirements are high, two or more LLDP master devices can be configured. Different LLDP master devices should be indicated by Proxy. The priority of agent management.
  • the LLDP target device interface When the LLDP target device interface is changed from open up to down, the neighbor entries learned by the interface are deleted, including direct neighbors and indirect neighbors.
  • the LLDP target device encapsulates the neighbor information that is maintained by the LLDP device into an LLDP master device, and the LLDP master device encapsulates the packet into an IP packet and reports it to the 0SS.
  • step 630 the management request response information is encapsulated into an LLDP packet by using the wakeup P packet.
  • the LLDP master device is sent to the LLDP master device to forward the management request response information to the operation support system 0SS through the wakeup P.
  • the step 630 further includes: when using the S-up P over LLDP to send the response to the LLDP master device, using the target device TLV to specify the LLDP master device, where the LLDP master device can be identified according to the source MAC in the management request message.
  • the proxy priority of the LLDP master device is not considered.
  • the LLDP target device Before forwarding the packet, the LLDP target device also needs to learn the forwarding information to the LLDP master device. The forwarding information can be learned or refreshed when receiving the S-up P L LLDP management request.
  • the LLDP target device receives the management request information that the LLDP master device carries the LLDP target device identifier and is sent in the form of the LLDP ⁇ ⁇ ⁇
  • the management request information is decapsulated into an SNMP message, and processing corresponding to the management request information is performed, thereby obtaining management request response information, and the management request is obtained.
  • the response information is sent to the LLDP master device through the S-up packet, and is sent to the LLDP master device.
  • the LLDP master device forwards the management request response message to the operation support system 0SS through the wake-up P packet, so that the IP address does not need to be obtained. It can also realize remote management of LLDP target devices by 0SS.
  • FIG. 7 is an information interaction diagram of a device configuration method in a network according to an embodiment of the present invention. As shown in the figure, the embodiment of the present invention specifically includes:
  • Step 701 The 0SS sends the management request information carrying the LLDP target device identifier to the LLDP master device through the S-up P4 message.
  • the management request information includes query request information or configuration request information.
  • Step 702 After receiving the management request information carrying the LLDP target device identifier, the LLDP master device determines the target device to be configured. If the target setting is consistent with the LLDP master device, the configuration or the query request is directly processed; if the other LLDP target device is configured as a proxy, the neighbor table is queried, and step 703 is performed.
  • Step 703 The LLDP master device completes the wakeup P version and the identifier conversion according to the wakeup P version and the S wakeup P identifier that are queried in the neighbor table, and adds the LLDP encapsulation, and the target device TLV is used in the encapsulation. Specifies the target device to be configured, and uses the wake-up P TLV to encapsulate the original S-P-P message.
  • the packet does not contain IP and UDP headers.
  • Step 704 After receiving the awake P over LLDP packet sent by the LLDP master device, the LLDP target device 1 learns or refreshes the neighbor entry, and compares the LLDP target device identifier carried in the packet with the device identifier of the device. If the target device identifier is the same as the LLDP target device 1 identifier, step 707 is performed. If the target device identifier in the packet is different from the LLDP target device 1 identifier, step 705 is performed.
  • Step 705 The LLDP target device 1 queries the neighbor table and forwards the management configuration request according to the outbound interface in the neighbor table. Before the forwarding, the TLV and the interface TLV that receives the packet are inserted to learn or refresh the neighbor entry.
  • Step 706 After receiving the management configuration request packet forwarded by the LLDP target device 1, the LLDP target device 2 learns or refreshes the neighbor entry, and compares the target device identifier carried by the device query packet with its own device identifier.
  • step 707 is performed; when the target device identifier is different from the LLDP target device 1 identifier, the neighbor entry is queried and forwarded to the next hop LLDP target according to the outbound interface in the neighbor entry.
  • the device inserts the device TLV and the interface TLV that receives the packet before forwarding.
  • Step 707 The LLDP target device 2 decapsulates the management request information into a wakeup P message, and performs processing corresponding to the management request information, thereby obtaining management request response information. Then step 708 is performed.
  • Step 708 The LLDP target device 2 encapsulates the management request response information in the form of a wake-up P-over LLDP packet, and encapsulates the wake-up P-request and the ⁇ -text with the wake-up P TLV, and sends the information to the LLDP master device through the target device TLV.
  • the neighbor table is queried before being sent from the outbound interface in the neighbor table.
  • Step 709 After receiving the management request response information of the P-over LLDP encapsulation, the LLDP target device 1 learns or refreshes the neighbor table, and queries the neighbor table through the target device TLV to obtain an interface. Then step 710 is performed.
  • Step 710 The LLDP target device 1 forwards the LLDP packet according to the outbound interface queried by the neighbor table.
  • the device TLV and the interface TLV that receives the message are inserted before forwarding.
  • Step 711 After the management request response information received by the LLDP master device, the target device TLV identifies that the message should be processed, and the original S wakeup P message is taken out from the wakeup P TLV, and the wakeup P format and the identifier are completed. After the conversion, the standard S is awake to the operation support system 0SS, that is, step 712, and the standard S is awake.
  • the LLDP master device receives the management request information of the LLDP target device identifier that is sent by the SSS in the form of the wake-up P packet, and obtains the LLDP according to the target device identifier in the packet.
  • the management request information is decapsulated into a wakeup P packet, and processing corresponding to the management request information is performed, thereby obtaining management request response information, and the management request response information is awake through P ⁇ .
  • the encapsulation is sent to the LLDP master device in the form of an LLDP packet, and the LLDP master device receives the management request response information sent by the LLDP target device 1 or the LLDP target device 2 in the form of an LLDP packet.
  • FIG. 8 is a schematic structural diagram of a link layer discovery protocol LLDP device according to an embodiment of the present invention.
  • the LLDP device is used to perform the device configuration method in the networks provided in Figures 3 through 7.
  • the embodiment of the present invention specifically includes: a first interface 81, a second interface 82, a data receiver 83, a processor 84, and a data transmitter 85.
  • the first interface 81 is used to connect the operational support system 0SS;
  • the second interface 82 is configured to connect to one or more LLDP target devices.
  • the data receiver 83 is configured to receive the IP packet of the 0SS, and extract the simple network management protocol, the awake P packet, from the IP packet, and the awake P packet carries the identifier information of the LLDP target device to be configured and the LLDP to be configured. Configuration information required by the target device;
  • the processor 84 is configured to query the correspondence between the identifier information of the LLDP target device and the forwarding information of the LLDP target device according to the identifier information of the LLDP target device to be configured, so as to obtain the forwarding information of the LLDP target device to be configured;
  • the packet is encapsulated into an LLDP packet.
  • the data transmitter 85 is configured to send the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device uses the configuration information to configure.
  • the processor 84 is further configured to acquire a topology of one or more LLDP target devices; the data transmitter is further configured to report the acquired topology to the 0SS.
  • the one or more LLDP target devices and the LLDP master device form a ring network structure
  • the data transmitter 85 is further configured to send a neighbor advertisement message to one or more LLDP target devices, so that the neighbor is received.
  • the LLDP target device of the advertisement packet adds its own identification information and the interface information of the received neighbor advertisement message to the next hop LLDP target device in the neighbor advertisement message.
  • the data receiver 83 is also used to receive the neighbor advertisement report.
  • the processor 84 is further configured to obtain a topology of one or more LLDP target devices from the received neighbor advertisement message.
  • the LLDP device receives the management request information of the LLDP target device identifier that is sent by the SSS in the form of the wakeup P packet, and obtains the forwarding information of the LLDP target device according to the LLDP target device identifier, according to the LLDP target device.
  • the forwarding information is sent to the LLDP target device in the form of the LLDP packet, and is sent to the LLDP target device through the S-up packet, and the management request response is sent in the form of the LLDP packet.
  • the management request response information is decapsulated into a wakeup P message and sent to the 0SS, so that the remote management of the LLDP target device by the 0SS can be realized without obtaining the IP address.
  • FIG. 9 is a schematic structural diagram of a device configuration system according to an embodiment of the present invention. As shown, the device configures the system link layer discovery protocol LLDP master device 91 and one or more LLDP target devices 92, and one or more LLDP target devices 92 connect to the 0SS through the LLDP master device 91.
  • the LLDP master device 91 is configured to receive an IP packet of the OSS of the operation support system, and extract a simple network management protocol, the awake P packet, from the IP packet, and the S-wrap packet carries the identifier information of the LLDP target device to be configured and Configuration information required for the LLDP target device to be configured; according to the LLDP to be configured
  • the identifier information of the target device is used to query the mapping between the LLDP target device and the forwarding information of the LLDP target device, so as to obtain the forwarding information of the LLDP target device to be configured, and encapsulate the W ping P-packet into the LLDP packet.
  • the forwarding information is sent to the LLDP target device to be configured, so that the LLDP target device uses the configuration information for configuration.
  • the LLDP master device 91 is further configured to acquire the topology of the one or more LLDP target devices, and report the acquired topology to the oss.
  • the one or more LLDP target devices 92 and the LLDP master device 91 form a ring network structure, and the LLDP master device 91 is specifically configured to send neighbor advertisement packets to one or more LLDP target devices;
  • the packet obtains the topology of one or more LLDP target devices from the received neighbor advertisement message.
  • the LLDP target device is configured to receive the neighbor advertisement message, and set its own identity information and the interface that receives the neighbor advertisement message.
  • the information is added to the neighbor advertisement packet and sent to the next hop LLDP target device.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or technical field Any other form of storage medium known.

Landscapes

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

Abstract

The present invention relates to a method, a device, and a system for configuring a device in a network. The method comprises: an LLDP main device receiving an IP packet of an OSS, and extracting a Simple Network Management Protocol (SNMP) packet in the IP packet; the LLDP main device querying a local neighbor list according to identification information of an LLDP target device to be configured, to obtain forwarding information to the target device and SNMP information; and the LLDP main device completing SNMP packet format conversion and LLDP encapsulation according to the SNMP information, and forwarding the information from an obtained outbound interface to a specific LLDP target device, so that the LLDP target device is enabled to perform configuration by using the configuration information. Therefore, in the present invention, communication is performed in a manner of encapsulating an SNMP packet into an LLDP packet, which reduces the operation complexity of remote management by an OSS, and enables remote management of the OSS without acquiring an IP address.

Description

网络中的设备配置方法、 设备和系统 技术领域  Device configuration method, device and system in network
本发明涉及通信领域, 尤其涉及一种网络中的设备配置方法、 设备和系 统。 背景技术  The present invention relates to the field of communications, and in particular, to a device configuration method, device, and system in a network. Background technique
随着通信技术的发展, 网络设备的种类日益繁多且各自的配置错综复杂。 网络设备的即插即用技术可以使得用户非常容易的在系统中增加新的网络设 备, 该技术可以应用于各种领域当中, 并带来了极大的方便。  With the development of communication technologies, the types of network devices are increasingly numerous and their respective configurations are complicated. The plug-and-play technology of network devices makes it very easy for users to add new network devices to the system. This technology can be applied to various fields and brings great convenience.
目前,网络设备的即插即用技术都是通过网络之间互连的协议( Internet Protocol, IP)来进行设备配置。 其中, 当设备使用 IP进行配置时, 需要配 置 IP才艮文转发通路, 包括虚拟局 i或网( Virtual Local Area Network, VLAN )、 IP地址、 路由等。  Currently, the plug-and-play technology of network devices performs device configuration through a protocol (Internet Protocol, IP) interconnected between networks. When the device is configured with IP, you need to configure the IP forwarding path, including the Virtual Office Area (VLAN), IP address, and routing.
图 1为现有技术中一种远程管理系统的结构示意图。 如图 1所示, 在该 远程管理系统中, 需要对网络设备和动态主机配置协议 ( Dynamic Host Configuration Protocol, DHCP )服务器进行配置。 其中, 网络设备的配置 内容包括业务量和 DHCP配置; 配置 DHCP服务器目的是为即插即用设备分配 IP地址。当配置系统中插入即插即用设备时,网络设备记录获取到的 IP地址, 运营支撑系统(Operation Support System, OSS )才艮据获取到的 IP地址对 即插即用设备进行配置。  FIG. 1 is a schematic structural diagram of a remote management system in the prior art. As shown in Figure 1, in the remote management system, the network device and the Dynamic Host Configuration Protocol (DHCP) server need to be configured. The configuration of the network device includes traffic and DHCP configuration. The purpose of configuring the DHCP server is to assign an IP address to the plug-and-play device. When a plug-and-play device is inserted into the configuration system, the network device records the acquired IP address, and the Operation Support System (OSS) configures the plug-and-play device according to the obtained IP address.
图 2为现有技术中另一种远程管理系统的结构示意图。 如图 2所示, 在 该远程管理系统中, 同样需要对网络设备和 DHCP服务器进行配置。 当配置系 统中插入即插即用设备后, 网络设备记录即插即用设备获取到的 IP地址, 即 插即用设备 2 和网络设备通过链路层发现协议 (L ink Layer Di s covery Protoco l , LLDP )互相感知对方, 并以 LLDP邻居信息的方式将即插即用设备 2的设备信息发送到 0SS。 OSS根据邻居信息感知即插即用设备的位置, 并根 据该即插即用设备的位置信息下发配置信息。 2 is a schematic structural diagram of another remote management system in the prior art. As shown in FIG. 2, in the remote management system, it is also necessary to configure the network device and the DHCP server. After the plug-and-play device is inserted into the configuration system, the network device records the IP address obtained by the plug-and-play device, that is, The plug-and-play device 2 and the network device mutually sense each other through the Link Layer Discovery Protocol (LLDP), and send the device information of the Plug and Play device 2 to the 0SS in the manner of LLDP neighbor information. . The OSS senses the location of the plug-and-play device according to the neighbor information, and delivers the configuration information according to the location information of the plug-and-play device.
但是,上述两种远程管理系统中都需要对网络设备和 DHCP服务器进行配 置; 另外, 无论是否使用 LLDP协议, 皆需要对即插即用设备配置 IP地址, 配置过程很复杂。 发明内容  However, in the above two types of remote management systems, the network device and the DHCP server need to be configured. In addition, whether the LLDP protocol is used or not, the IP address needs to be configured for the plug-and-play device. The configuration process is complicated. Summary of the invention
本发明提供了一种网络中的设备配置方法、 设备和系统, 解决了现有技 术中需要对网络设备和 DHCP服务器进行配置, 同时对即插即用设备配置 IP 地址的问题, 利用扩展的 LLDP协议, 降低了远程管理的操作复杂度, 并且实 现了无需获取 IP地址也能通过 0SS进行远程管理。  The present invention provides a device configuration method, device, and system in a network, which solves the problem that the network device and the DHCP server need to be configured in the prior art, and the IP address is configured for the plug and play device, and the extended LLDP is utilized. The protocol reduces the operational complexity of remote management and enables remote management via 0SS without obtaining an IP address.
在第一方面, 本发明提供了一种网络中的设备配置方法, 所述网络包括 运营支撑系统 0SS、链路层发现协议 LLDP主设备以及一个或多个 LLDP目标设 备, 所述一个或多个 LLDP目标设备通过所述 LLDP主设备连接所述 0SS , 所述 方法包括:  In a first aspect, the present invention provides a device configuration method in a network, where the network includes an operation support system OSS, a link layer discovery protocol LLDP master device, and one or more LLDP target devices, the one or more The LLDP target device connects to the 0SS by using the LLDP master device, and the method includes:
所述 LLDP主设备接收所述 0SS的 IP报文, 从所述 IP报文中提取简单网 络管理协议 S醒 P报文, 所述 S醒 P报文中携带有待配置的 LLDP目标设备的标 识信息以及所述待配置的 LLDP目标设备所需的配置信息;  The LLDP master device receives the IP packet of the 0SS, and extracts a simple network management protocol, the awake P packet, from the IP packet, where the awake P packet carries the identifier information of the LLDP target device to be configured. And configuration information required by the LLDP target device to be configured;
所述 LLDP主设备根据所述待配置的 LLDP目标设备的标识信息查询 LLDP 目标设备的标识信息与 LLDP目标设备的转发信息的对应关系, 从而获取所述 待配置 LLDP目标设备的转发信息;  And the LLDP master device is configured to query the correspondence between the identifier information of the LLDP target device and the forwarding information of the LLDP target device according to the identifier information of the LLDP target device to be configured, so as to obtain the forwarding information of the LLDP target device to be configured.
所述 LLDP主设备将所述 S匪 P报文封装成 LLDP报文, 根据获取的转发信 息将所述 LLDP报文发送给所述待配置的 LLDP目标设备, 以使得所述 LLDP目 标设备利用所述配置文件进行配置。 其中, 所述获取的转发信息包括所述 LLDP 主设备上连接所述待配置的 LLDP目标设备的出接口。 The LLDP master device encapsulates the S匪P packet into an LLDP packet, and sends the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device uses the The configuration file is configured. The obtained forwarding information includes an outbound interface that is connected to the LLDP target device to be configured on the LLDP master device.
进一步的 ,所述 LLDP主设备将所述 S醒 P ^艮文封装成 LLDP 文具体包括: 所述 LLDP主设备将所述 SNMP报文以类型长度值 TLV的形式封装到所述 LLDP报文中。 所述 LLDP报文还携带有用于标识所述待配置的 LLDP目标设备 的 TLV,所述用于标识待配置的 LLDP目标设备的 TLV携带有所述待配置的 LLDP 目标设备的标识信息。  Further, the LLDP master device encapsulates the S-uppertext into an LLDP file, and the LLDP master device encapsulates the SNMP packet into the LLDP packet in the form of a type length value TLV. . The LLDP packet further carries a TLV for identifying the LLDP target device to be configured, and the TLV for identifying the LLDP target device to be configured carries the identifier information of the LLDP target device to be configured.
在第一种可能的实现方式中, 所述 LLDP主设备接收所述 0SS的 IP报文 之前还包括: 获取所述一个或多个 LLDP目标设备的拓朴结构, 将获取的拓朴 结构上报给所述 0SS , 并在本地生成邻居 -拓朴表项, 该表项包括邻居设备标 识、 邻居 S醒 P版本号和 S醒 P标识, 以及到达邻居的网络拓朴信息。  In a first possible implementation manner, before the receiving, by the LLDP master device, the IP packet of the 0SS, the method further includes: acquiring a topology structure of the one or more LLDP target devices, and reporting the obtained topology structure to The neighboring-topology entry is generated locally, and the entry includes a neighbor device identifier, a neighboring awake P version number, and an awake P identifier, and network topology information of the neighboring neighbor.
在第二种可能的实现方式中,所述一个或多个 LLDP目标设备与所述 LLDP 主设备组成环网结构, 则获取所述一个或多个 LLDP目标设备的拓朴结构具体 包括: 所述 LLDP主设备向所述一个或多个 LLDP目标设备发送邻居通告 ^艮文, 以使得接收到邻居通告报文的 LLDP目标设备将自身的标识信息以及接收到邻 居通告报文的接口信息添加到邻居通告报文中向下一跳 LLDP目标设备发送; 所述 LLDP主设备接收邻居通告报文, 从接收的邻居通告报文中获取所述一个 或多个 LLDP目标设备的拓朴结构。  In a second possible implementation manner, the one or more LLDP target devices and the LLDP master device form a ring network structure, and acquiring the topology structure of the one or more LLDP target devices specifically includes: The LLDP master device sends the neighbor advertisement message to the one or more LLDP target devices, so that the LLDP target device that receives the neighbor advertisement message adds its own identity information and interface information of the received neighbor advertisement message to the neighbor. The advertisement packet is sent to the LLDP target device to the next hop. The LLDP master device receives the neighbor advertisement packet, and obtains the topology structure of the one or more LLDP target devices from the received neighbor advertisement packet.
结合第一方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述 LLDP主设备在一侧连接第一 LLDP目标设备, 在另一侧连接第二 LLDP目 标设备, 所述 LLDP主设备向所述一个或多个 LLDP 目标设备发送邻居通告报 文具体包括: 所述 LLDP主设备向所述第一 LLDP 目标设备发送第一邻居通告 报文, 以使得接收所述第一邻居通告报文的 LLDP目标设备将自身的标识信息 以及接收到第一邻居通告报文的接口信息添加到第一邻居通告报文中, 并向 下一跳 LLDP目标设备转发; 所述 LLDP主设备向所述第二 LLDP目标设备发送 第二邻居通告报文, 以使得接收所述第二邻居通告报文的 LLDP目标设备将自 身的标识信息以及接收到第二邻居通告报文的接口信息添加到第二邻居通告 报文中, 并向下一跳 LLDP 目标设备转发; 所述 LLDP主设备接收第一邻居通 告报文和第二邻居通告报文, 根据接收的第一邻居通告报文和第二邻居通告 报文获取所述一个或多个 LLDP目标设备的拓朴结构。 With the second possible implementation of the first aspect, in a third possible implementation, the LLDP master device connects the first LLDP target device on one side and the second LLDP target device on the other side. The sending, by the LLDP master device, the neighbor advertisement message to the one or more LLDP target devices includes: sending, by the LLDP master device, the first neighbor advertisement message to the first LLDP target device, so that the first The LLDP target device of the neighbor advertisement packet adds its own identity information and the interface information of the first neighbor advertisement packet to the first neighbor advertisement packet, and forwards it to the LLDP target device to the next hop; the LLDP master device Sending a second neighbor advertisement message to the second LLDP target device, so that the LLDP target device that receives the second neighbor advertisement message is self- The identification information of the body and the interface information of the second neighbor advertisement message are added to the second neighbor advertisement message, and are forwarded to the LLDP target device to the next hop; the LLDP master device receives the first neighbor advertisement message and the first And obtaining, by the second neighbor advertisement message, the topology structure of the one or more LLDP target devices according to the received first neighbor advertisement message and the second neighbor advertisement message.
进一步的, 所述 LLDP主设备将所述 S醒 P ^艮文封装到 LLDP ^艮文之前, 所 述方法还包括:  Further, the LLDP master device encapsulates the S awake P ^ 艮 text into the LLDP 艮 text, and the method further includes:
所述 LLDP主设备还用于根据所述待配置的 LLDP 目标设备的标识信息获 取所述待配置的 LLDP 目标设备所能识别的 S醒 P版本信息, 按照所述 S醒 P版 本信息对所述待配置的 LLDP目标设备所需的配置信息进行转换。  The LLDP master device is further configured to acquire, according to the identifier information of the LLDP target device to be configured, the W-up P version information that can be identified by the LLDP target device to be configured, according to the S-up P version information. The configuration information required for the LLDP target device to be configured is translated.
在第二方面, 本发明提供了一种链路层发现协议 LLDP设备, 所述设备包 括:  In a second aspect, the present invention provides a link layer discovery protocol LLDP device, where the device includes:
第一接口, 用于连接运营支撑系统 0SS;  The first interface is used to connect the operation support system 0SS;
第二接口, 用于连接连接一个或多个 LLDP目标设备;  a second interface, configured to connect to one or more LLDP target devices;
数据接收器, 用于接收所述 0SS的 IP报文, 从所述 IP报文中提取简单 网络管理协议 S醒 P报文, 所述 S醒 P报文中携带有待配置的 LLDP目标设备的 标识信息以及所述待配置的 LLDP目标设备所需的配置信息;  a data receiver, configured to receive the IP packet of the 0SS, and extract a simple network management protocol, the awake P packet, from the IP packet, where the awake P packet carries the identifier of the LLDP target device to be configured. Information and configuration information required by the LLDP target device to be configured;
处理器, 用于根据所述待配置的 LLDP目标设备的标识信息查询 LLDP目 标设备的标识信息与 LLDP目标设备的转发信息的对应关系, 从而获取所述待 配置 LLDP目标设备的转发信息; 以及将所述 S醒 P报文封装到 LLDP报文中; 数据发送器, 用于根据所述获取的转发信息将所述 LLDP报文发送给所述 待配置的 LLDP目标设备, 以使得所述 LLDP目标设备利用所述配置文件进行 配置。  a processor, configured to query, according to the identifier information of the LLDP target device to be configured, a correspondence between the identifier information of the LLDP target device and the forwarding information of the LLDP target device, to obtain the forwarding information of the LLDP target device to be configured; The awake P packet is encapsulated into the LLDP packet, and the data transmitter is configured to send the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target is obtained. The device is configured with the configuration file.
在第一种可能的实现方式中, 所述处理器还用于获取所述一个或多个 LLDP 目标设备的拓朴结构; 所述数据发送器还用于将获取的拓朴结构上报给 所述 0SS。  In a first possible implementation, the processor is further configured to acquire a topology of the one or more LLDP target devices, where the data transmitter is further configured to report the acquired topology to the 0SS.
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述一个或多个 LLDP目标设备与所述 LLDP主设备组成环网结构, 则所述数 据发送器, 还用于向所述一个或多个 LLDP目标设备发送邻居通告报文, 以使 得接收到邻居通告报文的 LLDP目标设备将自身的标识信息以及接收到邻居通 告报文的接口信息添加到邻居通告报文中向下一跳 LLDP目标设备发送; 所述 数据接收器, 还用于接收邻居通告报文; 所述处理器, 还用于从接收的邻居 通告报文中获取所述一个或多个 LLDP目标设备的拓朴结构。 In conjunction with the first possible implementation of the second aspect, in a second possible implementation, The one or more LLDP target devices and the LLDP master device form a ring network structure, and the data transmitter is further configured to send a neighbor advertisement message to the one or more LLDP target devices, so as to receive the The LLDP target device of the neighbor advertisement packet adds its own identification information and the interface information of the neighbor advertisement packet to the next hop LLDP target device in the neighbor advertisement packet. The data receiver is also used to receive the neighbor. And the processor is configured to obtain the topology of the one or more LLDP target devices from the received neighbor advertisement message.
在第三方面, 本发明提供了一种设备配置系统, 所述系统包括链路层发 现协议 LLDP主设备以及一个或多个 LLDP目标设备, 所述一个或多个 LLDP目 标设备通过所述 LLDP主设备连接所述 0SS ,  In a third aspect, the present invention provides a device configuration system, where the system includes a link layer discovery protocol LLDP master device and one or more LLDP target devices, and the one or more LLDP target devices pass the LLDP master The device connects to the 0SS,
所述 LLDP主设备, 用于接收运营支撑系统 0SS的 IP报文, 从所述 IP报 文中提取简单网络管理协议 S醒 P报文 ,所述 S醒 P报文中携带有待配置的 LLDP 目标设备的标识信息以及所述待配置的 LLDP目标设备所需的配置信息; 根据 所述待配置的 LLDP 目标设备的标识信息查询 LLDP 目标设备的标识信息与 LLDP目标设备的转发信息的对应关系,从而获取所述待配置 LLDP目标设备的 转发信息; 以及将所述 S醒 P报文封装到 LLDP报文中, 根据所述获取的转发 信息将所述 LLDP报文发送给所述待配置的 LLDP目标设备, 以使得所述 LLDP 目标设备利用所述配置文件进行配置。  The LLDP master device is configured to receive an IP packet of the operation support system 0SS, and extract a simple network management protocol S wakeup P packet from the IP packet, where the S wakeup P packet carries the LLDP target to be configured. The identifier information of the device and the configuration information required by the LLDP target device to be configured; the corresponding relationship between the identifier information of the LLDP target device and the forwarding information of the LLDP target device is queried according to the identifier information of the LLDP target device to be configured, thereby Acquiring the forwarding information of the LLDP target device to be configured; and the SWT packet is encapsulated into the LLDP packet, and the LLDP packet is sent to the LLDP target to be configured according to the obtained forwarding information. a device, such that the LLDP target device is configured with the configuration file.
在第一种可能的实现方式中, 所述 LLDP主设备还用于获取所述一个或多 个 LLDP目标设备的拓朴结构, 将获取的拓朴结构上报给所述 0SS。  In a first possible implementation manner, the LLDP master device is further configured to obtain a topology structure of the one or more LLDP target devices, and report the obtained topology structure to the 0SS.
结合第三方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述一个或多个 LLDP目标设备与所述 LLDP主设备组成环网结构 ,则所述 LLDP 主设备具体用于, 向所述一个或多个 LLDP目标设备发送邻居通告报文; 接收 邻居通告报文, 从接收的邻居通告报文中获取所述一个或多个 LLDP目标设备 的拓朴结构; 所述 LLDP目标设备用于, 接收邻居通告报文, 将自身的标识信 息以及接收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳 LLDP 目标设备发送。 通过应用上述提供的设备配置方法、 设备和系统, LLDP主设备接收 0SS 的 IP报文,从 IP报文中提取简单网络管理协议 S醒 P报文, S醒 P报文中携带 有待配置的 LLDP 目标设备的标识信息以及待配置的 LLDP 目标设备所需的配 置文件; LLDP主设备根据待配置的 LLDP 目标设备的标识信息查询本地的邻 居表,得到到达目标设备的转发信息和 S醒 P信息, 该转发信息中包含到达 目标设备的出接口, SNMP信息则包括目标的 SNMP版本和标识等信息; LLDP 主设备根据 S醒 P信息完成 S醒 P报文格式转换和 LLDP封装, 从得到的出接口 转发给特性 LLDP 目标设备, 以使得 LLDP 目标设备利用配置文件进行配置, 实现了利用扩展的 LLDP协议,在 LLDP主设备和 LLDP目标设备之间通过 S醒 P 报文封装到 LLDP报文的形式进行通信, 从而降低了 0SS进行远程管理的操作 复杂度, 并且无需获取 IP地址也能实现 0SS的远程管理。 附图说明 With reference to the first possible implementation manner of the third aspect, in the second possible implementation manner, the one or more LLDP target devices and the LLDP master device form a ring network structure, and the LLDP master device is specific And sending, to the one or more LLDP target devices, a neighbor advertisement message, receiving a neighbor advertisement message, and acquiring a topological structure of the one or more LLDP target devices from the received neighbor advertisement message; The LLDP target device is configured to receive the neighbor advertisement packet, and add the identity information and the interface information of the neighbor advertisement packet to the next hop LLDP target device in the neighbor advertisement packet. By applying the device configuration method, device, and system provided above, the LLDP master device receives the IP packet of the 0SS, and extracts the simple network management protocol S awake P packet from the IP packet. The S ping P packet carries the LLDP to be configured. The identification information of the target device and the configuration file required by the LLDP target device to be configured; the LLDP master device queries the local neighbor table according to the identification information of the LLDP target device to be configured, and obtains the forwarding information and the wake-up P information of the target device. The forwarding information includes the outbound interface to the target device, and the SNMP information includes the SNMP version and the identifier of the target. The LLDP master device completes the wakeup P packet format conversion and LLDP encapsulation based on the S awake P information. The LLDP target device is forwarded to the LLDP target device, so that the LLDP target device is configured with the configuration file, and the extended LLDP protocol is used to encapsulate the LLDP packet with the LLDP device. Communication, which reduces the operational complexity of remote management of 0SS, and can realize remote remote 0SS without obtaining an IP address. Management. DRAWINGS
图 1为现有技术中一种远程管理系统的结构示意图;  1 is a schematic structural diagram of a remote management system in the prior art;
图 2为现有技术中另一种远程管理系统的结构示意图;  2 is a schematic structural diagram of another remote management system in the prior art;
图 3为本发明实施例提供的网络中的设备配置方法的流程图;  3 is a flowchart of a device configuration method in a network according to an embodiment of the present invention;
图 4为本发明实施例提供的管理系统的结构示意图;  4 is a schematic structural diagram of a management system according to an embodiment of the present invention;
图 5为本发明实施例提供的网络中的设备配置方法的流程图;  FIG. 5 is a flowchart of a device configuration method in a network according to an embodiment of the present invention;
图 6为本发明实施例提供的网络中的设备配置方法的流程图;  FIG. 6 is a flowchart of a device configuration method in a network according to an embodiment of the present invention;
图 Ί为本本发明实施例提供的设备配置方法的信息交互图;  Figure Ί is an information interaction diagram of a device configuration method according to an embodiment of the present invention;
图 8为本发明实施例提供的链路层发现协议 LLDP主设备的结构示意图; 图 9为本发明实施例提供的设备配置系统的结构示意图。 具体实施方式  FIG. 8 is a schematic structural diagram of a link layer discovery protocol LLDP master device according to an embodiment of the present invention; FIG. 9 is a schematic structural diagram of a device configuration system according to an embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。 In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. It is to be understood that the described embodiments are a part of the embodiments of the invention, rather than all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明一个实施例提供一种设备配置方法,如图 3所示,所提供的方法包 括:  An embodiment of the present invention provides a device configuration method. As shown in FIG. 3, the method provided includes:
步骤 300、 LLDP主设备接收 0SS的 IP报文, 从 IP报文中提取简单网络 管理协议 S醒 P报文, S醒 P报文中携带有待配置的 LLDP目标设备的标识信息 以及待配置的 LLDP目标设备所需的配置信息;  In the step S300, the LLDP master device receives the IP packet of the 0SS, and extracts the simple network management protocol, the awake P packet, from the IP packet, and the awake P packet carries the identifier information of the LLDP target device to be configured and the LLDP to be configured. Configuration information required by the target device;
其中, 待配置的 LLDP 目标设备的标识信息可以是待配置的 LLDP 目标设 备的 MAC ( Me idia Acces s Cont ro l , 媒体访问控制)地址、 待配置的 LLDP目 标设备的设备标识、或者其他可以标识待配置的 LLDP目标设备的标识信息等。  The identifier information of the LLDP target device to be configured may be the MAC address of the LLDP target device to be configured, the media access control address, the device identifier of the LLDP target device to be configured, or other identifiers. ID information of the LLDP target device to be configured.
配置信息可以是需要配置的参数, 以及相关参数的值等。  The configuration information may be a parameter that needs to be configured, a value of a related parameter, and the like.
步骤 310、 LLDP主设备根据待配置的 LLDP目标设备的标识信息查询 LLDP 目标设备的标识信息与 LLDP目标设备的转发信息的对应关系, 从而获取所述 待配置 LLDP目标设备的转发信息;  Step 310: The LLDP master device searches the mapping between the identifier information of the LLDP target device and the forwarding information of the LLDP target device according to the identifier information of the LLDP target device to be configured, so as to obtain the forwarding information of the LLDP target device to be configured.
具体的, 转发信息可以是 LLDP主设备上连接待配置的 LLDP目标设备 的出接口等, LLDP 主设备的邻居表中存储有 LLDP 目标设备的标识信息与 LLDP 目标设备的转发信息的对应关系, LLDP 主设备可以利用待配置的 LLDP 目标设备的标识信息查询邻居表, 从而获取相应的出接口。  Specifically, the forwarding information may be an outgoing interface of the LLDP target device connected to the LLDP target device, and the LLDP master device's neighbor table stores the mapping between the LLDP target device's identification information and the LLDP target device's forwarding information. The master device can query the neighbor table by using the identification information of the LLDP target device to be configured to obtain the corresponding outbound interface.
步骤 320、 LLDP主设备将 SNMP报文封装成 LLDP报文, 根据所述转发信 息转发给给待配置的 LLDP 目标设备, 以使得待配置的 LLDP 目标设备利用配 置信息进行配置。  Step 320: The LLDP master device encapsulates the SNMP packet into an LLDP packet, and forwards the packet to the LLDP target device to be configured, so that the LLDP target device to be configured uses the configuration information to configure.
具体的, LLDP主设备可以将配置信息以 TLV ( Type-Leng th-Va lve , 类型 长度值) 的形式封装到 LLDP报文中, LLDP主设备还可以把待配置的 LLDP目 标设备的标识信息以 TLV的形式封装到 LLDP ·艮文中, 这样收到 LLDP ·艮文的 LLDP 目标设备可以判断 TLV中的标识信息是否和自己的一致, 如果一致则处 理该报文, 如果不一致, 则刷新本地邻居表, 从邻居表里获取对应的出接口, 从而转发。 Specifically, the LLDP master device can encapsulate the configuration information into the LLDP packet in the form of a TLV (Type-Length-Va lve, type length value), and the LLDP master device can also set the identifier information of the LLDP target device to be configured. The form of the TLV is encapsulated in the LLDP packet, so that the LLDP target device that receives the LLDP packet can determine whether the identifier information in the TLV is consistent with its own. If the packet is inconsistent, the local neighbor table is refreshed, and the corresponding outbound interface is obtained from the neighbor table, and then forwarded.
本实施例提供的方法, 实现了利用扩展的 LLDP协议, 在 LLDP主设备和 LLDP目标设备之间通过 S醒 P ^艮文封装到 LLDP ^艮文的形式进行通信, 从而降 低了 0SS进行远程管理的操作复杂度, 并且无需获取 IP地址也能实现 0SS对 LLDP目标设备的远程管理。  The method provided in this embodiment implements the use of the extended LLDP protocol, and communicates between the LLDP master device and the LLDP target device through the W P P ^ 封装 封装 到 到 到 到 到 到 到 封装 , , 降低 降低 降低 降低 降低 降低The operation complexity, and the remote management of the LLDP target device by the 0SS can be realized without obtaining an IP address.
具体的, 图 4为本发明实施例提供的管理系统的结构示意图。 如图 4所 示, 该系统包括 0SS41、 LLDP主设备 42 以及一个或多个 LLDP 目标设备。 其 中一个或多个 LLDP 目标设备通过 LLDP主设备连接 0SS4 L 比如, LLDP主设 备 42有多个用于连接 LLDP即插即用设备接口, 比如: 接口 1、 接口 1 接口 m。 LLDP主设备 42的每一接口可以连接一个或多个 LLDP 目标设备, 比 如: 接口 1连接的多个 LLDP即插即用设备分别为 LLDP目标设备 1、 LLDP 目 标设备 2 LLDP目标设备 n-1和 LLDP目标设备 n。  Specifically, FIG. 4 is a schematic structural diagram of a management system according to an embodiment of the present invention. As shown in Figure 4, the system includes an OSS 41, an LLDP master device 42, and one or more LLDP target devices. One or more LLDP target devices are connected to the LLDP master device. For example, the LLDP master device 42 has multiple interfaces for connecting LLDP plug-and-play devices, such as interface 1, interface 1 interface m. Each LLDP master device 42 can be connected to one or more LLDP target devices. For example, multiple LLDP plug-and-play devices connected to interface 1 are LLDP target device 1, LLDP target device 2, LLDP target device n-1, and LLDP target device n.
另外, 详细说明一下本发明所有实施例中涉及到的自定义的报文名称、 以及表格的格式。  In addition, the names of the customized messages and the format of the tables involved in all embodiments of the present invention are described in detail.
第一, 全称为 Type-Leng th - Va lue。 其中, Type为标签, Leng th ^7 长度, Va lue为值。 T、 L字段的长度往往固定, 最常见的 Τ为 8比特, L也为 8比特, V字段长度可变。 顾名思义, Τ字段表示报文类型, L字段表示报文 长度、 V字段往往用来存放报文的内容。  First, the full name is Type-Leng th - Va lue. Where Type is the label, Leng th ^7 length, and Va lue is the value. The lengths of the T and L fields are often fixed. The most common Τ is 8 bits, L is also 8 bits, and the V field is variable in length. As the name suggests, the Τ field indicates the packet type, the L field indicates the packet length, and the V field is used to store the contents of the packet.
( 1 )代理标识 TLV (LLDP proxy TLV): 报文中的 Type并不是特定, 可以 使用 32 , 即 Type等于 32 , 里面记录代理优先级。 优先级主要用于从设备选 取主代理设备, 不同代理设备可以实现冗余备份, 携带所述 TLV表明设备具 备代理管理的能力, 一般都是 LLDP主设备。 格式如表 1所示。  (1) LLDP (TLDP proxy TLV): The Type in the packet is not specific. You can use 32, that is, Type is equal to 32, and the proxy priority is recorded. The priority is mainly used to select the primary proxy device from the device. Different proxy devices can implement redundant backup. The TLV indicates that the device has the capability of agent management. Generally, it is an LLDP master device. The format is shown in Table 1.
表 1  Table 1
7比特 9比特 8比特  7 bits 9 bits 8 bits
类型 32 长度 优先级 (2)目标设备 TLV(LLDP Destination TLV):报文中的 Type并不是特定, 可以使用 33, 即 Type等于 33, 里面记录指定目标设备标识。 主要用于指定 请求或者应答时的目标设备。 格式如表 2所示。 Type 32 length priority (2) Target device TLV (LLDP Destination TLV): The Type in the packet is not specific. You can use 33, that is, Type is equal to 33, and record the specified target device identifier. It is mainly used to specify the target device when requesting or responding. The format is shown in Table 2.
表 2 Table 2
Figure imgf000011_0001
Figure imgf000011_0001
( 3 )拓朴查询 TLV (LLDP topo query TLV): 报文中的 Type并不是特定, 可以使用 34, 即 Type等于 34, 该 TLV用来表明该报文是设备拓朴查询请求。 报文格式如表 3所示。  (3) TLV (LLDP topo query TLV): The Type in the packet is not specific. You can use 34, that is, Type is equal to 34. The TLV is used to indicate that the packet is a device topology query request. The format of the message is shown in Table 3.
表 3 table 3
Figure imgf000011_0002
Figure imgf000011_0002
( 4 )拓朴应答 TLV (LLDP topo answer TLV): 报文中的 Type并不是特定, 可以使用 35, 即 Type等于 35, 该 TLV用来表明该报文是设备拓朴查询应答。 报文格式如表 4所示。  (4) TLV (LLDP topo answer TLV): The Type in the packet is not specific. You can use 35, that is, Type is equal to 35. The TLV is used to indicate that the packet is a device topology query response. The format of the message is shown in Table 4.
表 4 Table 4
Figure imgf000011_0003
Figure imgf000011_0003
( 5 )链路拓朴 TLV (LLDP topo TLV): 报文中的 Type并不是特定, 可以 使用 36, 即 Type等于 36。 在设备拓朴应答报文中, 使用本 TLV携带链路拓 朴信息, 该信息一般由设备标识和接口标识组成, 所述设备标识 TLV和接口 标识 TLV在 LLDP标准协议中已定义。 报文格式如表 5所示。  (5) Link topology TLV (LLDP topo TLV): The Type in the packet is not specific. You can use 36, that is, Type is equal to 36. In the device topology response packet, the TLV carries the link topology information, which is generally composed of the device identifier and the interface identifier. The device identifier TLV and the interface identifier TLV are defined in the LLDP standard protocol. The format of the message is shown in Table 5.
表 5 7比特 9比特 m*8比特 table 5 7-bit 9-bit m*8-bit
类型 36 长度 (m字节) 设备标识 1 (TLV) , 设备标识 n (TLV) , 接口标识 1 (TLV) 接口标识 n (TLV)  Type 36 Length (mbytes) Device Identification 1 (TLV), Device Identification n (TLV), Interface Identification 1 (TLV) Interface Identification n (TLV)
(6) 简单网络管理协议报文 TLV (S醒 P TLV): 其是一个自定义的功能名 词, 含义是将 S醒 P报文封装到 LLDP报文中。 在本发明实施例中具体指的是 LLDP 主设备或目标设备将所有原来简单网络管理协议 (Simple Network Management Protocol, S醒 P )报文都封装到 LLDP报文, 包括 OSS下发报文、 LLDP目标设备应答报文,以及 LLDP目标设备发生故障或变更时发送的主动通 知报文。 本 TLV对 Type并不是特定, 可以使用 37, 即 Type等于 37。 报文格 式如表 6所示。 (6) Simple Network Management Protocol packet TLV (S awake P TLV): It is a custom function name, which means that the S-Weep packet is encapsulated into an LLDP packet. In the embodiment of the present invention, the LLDP master device or the target device encapsulates all the original Simple Network Management Protocol (SCDMA) packets into the LLDP packets, including the messages sent by the OSS and the LLDP. The target device response packet and the active notification packet sent when the LLDP target device fails or changes. This TLV is not specific to Type, you can use 37, that is, Type is equal to 37. The message format is shown in Table 6.
表 6
Figure imgf000012_0001
Table 6
Figure imgf000012_0001
( 7 )简单网络管理协议标识 TLV(SNMP Identification TLV): 使用 LLDP 标准中的自定义 TLV类型 Type, 这里对 Type并不是特定, 可以使用 38, 即 Type等于 38。 区分 LLDP设备的 S醒 P标识, 用来识别 0SS下发配置的目标设 备。 其中, V可以包含 S醒 P的版本号和标识符(S醒 P V1/V2版本可以使用团 体名, V3版本可以使用 USM USER和密钥信息), 如表 7所示。 (7) Simple Network Management Protocol (TLV): Use the custom TLV type Type in the LLDP standard. Here, the Type is not specific. You can use 38, that is, Type is equal to 38. The S-up P identifier of the LLDP device is used to identify the target device that is configured by the 0SS. V can contain the version number and identifier of the wakeup P (S wake up P V1/V2 version can use the group name, V3 version can use USM USER and key information), as shown in Table 7.
表 7
Figure imgf000012_0002
第二, 转发表定义。
Table 7
Figure imgf000012_0002
Second, the forwarding table definition.
( 1 ) LLDP主设备的邻居表: 用于找到维护邻居的信息, 邻居包括直连的 和非直连的, 并在转发报文的时候能够找到出接口, 在这里只列出了必要的 信息, 还可以加入描述等信息。 LLDP邻居表如表 8所示。 (1) Neighbor table of the LLDP master device: used to find information about maintaining neighbors. Neighbors include direct connections. And the indirect connection, and can find the interface when forwarding the message, only the necessary information is listed here, and the description and other information can also be added. The LLDP neighbor table is shown in Table 8.
表 8
Figure imgf000013_0001
Table 8
Figure imgf000013_0001
( 2 ) LLDP目标设备的邻居表: LLDP设备收到 LLDP报文后, 要记录或刷 新该表。 主要用于组网中间设备找到转发出口, 以及目标设备主动上报信息 给 0SS时根据 Proxy优先级选取主设备, 如果邻居不具备 Proxy能力, 则可 以使用 Proxy优先级 0来表示。 LLDP邻居表如表 9所示。 (2) Neighbor table of the LLDP target device: After receiving the LLDP packet, the LLDP device records or refreshes the table. It is mainly used for the intermediate device in the networking to find the forwarding exit, and the target device actively reports the information to the 0SS. The primary device is selected according to the proxy priority. If the neighbor does not have the proxy capability, the proxy priority 0 can be used. The LLDP neighbor table is shown in Table 9.
表 9
Figure imgf000013_0002
根据上述报文和转发表项, 下面来详细说明一下 LLDP主设备和 LLDP 目 标设备的功能。
Table 9
Figure imgf000013_0002
Based on the above-mentioned packets and forwarding entries, the following describes the functions of the LLDP master and LLDP target devices in detail.
( 1 ) LLDP主设备功能: 代理 LLDP目标设备和 0SS之间通信(主要是将 S醒 P over LLDP报文和 S醒 P over IP报文互相转换, 然后将报文转发到对应 的设备和 0SS , 包括原来需要上报到 0SS的邻居等信息) ; 将 LLDP主设备信 息定时或者手动通知其他 LLDP目标设备; 学习邻居拓朴并上 4艮给 0SS系统, 包括直连邻居和非直连邻居。  (1) LLDP master function: The proxy LLDP target device communicates with the 0SS (mainly, the S-up P-LLDP packet and the S-awake P-over IP packet are mutually converted, and then the packet is forwarded to the corresponding device and 0SS. The information about the neighbors that need to be reported to the 0SS is included. The LLDP master device information is periodically or manually notified to other LLDP target devices. The neighbor topology is learned and sent to the 0SS system, including the directly connected neighbors and the non-directly connected neighbors.
具体来说, LLDP主设备接收到 0SS下发的 S醒 P配置或查询请求后,根据 S醒 P报文中的标识判断是否是配置本设备, 如果是, 则上交给 S醒 P Agent来 完成配置; 如果不是, 则根据该标识查询邻居表项, 完成 S醒 P报文版本和标 识转换后, 封装成 LLDP报文, 添加目标设备 TLV指定目标设备后从邻居表项 中的出接口发送给下一跳邻居, 最终转发给指定的目标设备。 LLDP主设备如果接收到目标设备回应或上报的 S醒 P over LLDP报文后, 完成 S醒 P版本和标识转换后, 以 IP报文的方式发送给 0SS系统。 Specifically, after receiving the configuration of the wakeup P configuration or the query sent by the 0SS, the LLDP master device determines whether the device is configured according to the identifier in the wakeup P packet, and if yes, hands it over to the W agent. If the configuration is not complete, the neighboring entry is queried according to the identifier. After the version of the pinged P-type packet and the identifier are translated, the packet is encapsulated into an LLDP packet. After the target device is added to the destination device, the destination device is sent from the outbound interface. Give the next hop neighbor, and finally forward it to the specified target device. After receiving the P-over P-LLDP packet from the target device, the LLDP master device sends the IP packet to the 0SS system.
当 LLDP主设备学习到邻居时,通过设备拓朴查询 TLV发送目标设备拓朴 查询请求, 通过目标设备 TLV指定发送给该目标设备; 该目标设备接收到该 请求后, 回应设备拓 卜应答报文, LLDP主设备从该报文中各中间设备添加的 设备 TLV和接收接口 TLV, 以及链路拓朴 TLV中,得到和目标设备完整的链路 拓朴信息, 将该信息和邻居通告的 S匪 P信息一起上报给 0SS系统, 方便 0SS 系统下发配置。  When the LLDP master learns the neighbor, the device topology query is sent by the device topology query TLV, and is sent to the target device by the target device TLV. After receiving the request, the target device responds to the device topology response message. The LLDP master device obtains the complete link topology information of the target device from the device TLV and the receiving interface TLV added by the intermediate devices in the packet, and the link topology TLV, and the information and the neighbor notification S匪The P information is reported to the 0SS system, which facilitates the configuration of the 0SS system.
( 2 ) LLDP目标设备功能: 转发 LLDP报文以及处理 LLDP拓朴查询请求, 处理 SNMP over LLDP配置或查询请求, 以及使用 SNMP over LLDP主动上才艮 信息给 0SS系统。  (2) LLDP target device function: Forward LLDP packets and process LLDP topology query requests, process SNMP over LLDP configuration or query requests, and use SNMP over LLDP to actively send information to the 0SS system.
具体来说, LLDP 目标设备接收到 LLDP报文后, 如果报文中不携带目标 设备 TLV, 则插入本设备 TLV和接收接口 TLV, 发送给所有非接收接口的直连 邻居; 如果报文中携带目标设备 TLV, 则根据该 TLV判断是否是本设备, 如果 不是, 则查询邻居表项转发给下一跳设备。  Specifically, after the LLDP target device receives the LLDP packet, if the packet does not carry the TLV, the TLV and the receiving interface TLV are inserted into the device and sent to all the directly connected neighbors of the non-receiving interface. The target device TLV determines whether it is the local device according to the TLV. If not, the neighboring entry is forwarded to the next hop device.
如果根据目标设备 TLV判断是本设备,则根据是否包含链路拓朴查询 TLV 判断是否是拓朴查询请求, 如果是, 则从该报文中得到链路拓朴信息, 以链 路拓朴 TLV的方式封装后, 添加设备拓朴应答 TLV和指定目标设备 TLV , 指定 回应给发起邻居查询的源设备。  If it is determined by the target device TLV, the device determines whether the topology query request is based on whether the link topology query TLV is included. If yes, the link topology information is obtained from the packet, and the link topology TLV is obtained. After the method is encapsulated, the device topology response TLV and the specified target device TLV are added, and the source device that responds to the originating neighbor query is specified.
如果根据目标设备 TLV判断是本设备, 则还需要根据报文是否携带简单 网络管理协议 >¾文 TLV来判断是否 S醒 P over LLDP配置或查询请求, 如果是, 则上交给 S醒 P agent处理该请求, 根据处理结果构造 S醒 P应答报文, 该应 答 ·艮文也以简单网络管理协议 ·艮文 TLV方式封装, 并通过目标设备 TLV的方 式指定回应给源请求设备, 一般是 LLDP主设备。  If it is determined by the target device TLV that the device is the device, it is also required to determine whether to wake up the P over LLDP configuration or the query request according to whether the packet carries a simple network management protocol >3⁄4 text TLV, and if yes, hand it over to the S-up P agent. The request is processed, and the wakeup P response message is constructed according to the processing result, and the response message is also encapsulated in a simple network management protocol and a TLV manner, and the response is specified by the target device TLV to the source requesting device, generally LLDP. Master device.
当目标设备需要主动上报信息给 0SS时, 也以 S醒 P over LLDP的方式封 装, 根据邻居的 Proxy优先级选取 LLDP主设备, 然后以指定目标设备 TLV的 方式发送给 LLDP主设备。 When the target device needs to report the information to the 0SS, it is also encapsulated in the P-over LLDP mode. The LLDP master device is selected according to the neighbor's proxy priority. Then, the target device TLV is specified. The mode is sent to the LLDP master device.
基于图 4 , 本发明一个实施例提供一种网络中的设备配置方法, 如图 5 所示, 所提供的方法可以具体包括:  Based on FIG. 4, an embodiment of the present invention provides a device configuration method in a network. As shown in FIG. 5, the method provided may specifically include:
步骤 51 0 , LLDP主设备接收 0SS的 IP报文, 从 IP报文中提取简单网络 管理协议 S醒 P报文, S醒 P报文中携带有待配置的 LLDP目标设备的标识信息 以及待配置的 LLDP目标设备所需的配置信息。  Step 51 0: The LLDP master device receives the IP packet of the 0SS, and extracts the Simple Network Management Protocol (SWP) packet from the IP packet. The S-Weep packet carries the identifier information of the LLDP target device to be configured and the to-be-configured Configuration information required by the LLDP target device.
具体地, 0SS是一个综合的业务运营和管理平台, 能够管理 LLDP主设备。 LLDP主设备接收 LLDP目标设备的 S醒 P能力,比如所支持的 S醒 P版本信息等。 LLDP主设备会将 LLDP的 S醒 P能力进行转换后上报给 0SS。 该转换过程主要 是考虑 LLDP主设备支持的 S醒 P版本和 LLDP目标设备支持的 S醒 P版本可能 不一致, 一般可根据 LLDP目标设备携带的 S醒 P标识, 将 LLDP目标设备支持 的 S醒 P版本转换成 LLDP主设备和 0SS支持的 S醒 P版本。 不同 S醒 P版本标 识设备的方式不同, 比如有些版本是以团体名标识 LLDP目标设备, 有些版本 是以用户名标识 LLDP目标设备, 那么具体的转换内容可以是在团体名和用户 名之间进行转换。 LLDP主设备也会接收到 0SS下发的携带有 LLDP目标设备标 识管理请求信息, 比如: 查询请求信息或配置请求信息。 该管理请求信息是 需要与 LLDP 目标设备标识相对应的 LLDP 目标设备接收。 而充当代理角色的 LLDP主设备是负责将该管理请求信息发送至 LLDP目标设备。  Specifically, 0SS is a comprehensive business operation and management platform that can manage LLDP master devices. The LLDP master device receives the S-up P capability of the LLDP target device, such as the supported S-up P version information. The LLDP master device converts the S-up ability of the LLDP to the 0SS. The conversion process is mainly based on the fact that the S-up P version supported by the LLDP master device and the S-wake P version supported by the LLDP target device may be inconsistent. Generally, the S-up P flag carried by the LLDP target device may be used to wake up the S-supported by the LLDP target device. The version is converted to the LLDP master device and the WSS P version supported by the 0SS. Different S wakeup P versions identify devices in different ways. For example, some versions identify LLDP target devices by community name. Some versions identify LLDP target devices by user name. The specific conversion content can be converted between community name and user name. . The LLDP master device also receives the LLDP target device identification management request information delivered by the 0SS, such as query request information or configuration request information. The management request information is received by the LLDP target device corresponding to the LLDP target device identifier. The LLDP master device acting as a proxy is responsible for sending the management request information to the LLDP target device.
配置信息可以包括待配置的 LLDP 目标设备需要配置的参数以及相关值 等。  The configuration information can include the parameters to be configured and related values of the LLDP target device to be configured.
本发明实施例提供的设备管理方法,在步骤 51 0之前,还包括:步骤 500 , LLDP主设备还需要获取 LLDP目标设备的拓朴结构, 将 LLDP目标设备的拓朴 结构上报给 0SS。  The device management method provided by the embodiment of the present invention, before the step 510, further includes: Step 500, the LLDP master device also needs to obtain the topology structure of the LLDP target device, and report the topology structure of the LLDP target device to the 0SS.
如果 LLDP主设备连接的 LLDP目标设备组成环网结构,则获取 LLDP目标 设备的拓朴结构具体可以是:  If the LLDP target device connected to the LLDP device is a ring network, the topology of the LLDP device can be:
LLDP主设备向 LLDP目标设备发送邻居通告报文。 LLDP目标设备将自身的标识信息以及接收到邻居通告报文的接口信息添 加到邻居通告报文中向下一跳 LLDP目标设备发送。 LLDP目标设备可以以设备 标识 TLV和接口标识 TLV的方式将自身的标识信息以及接收到邻居通告报文 的接口信息添加到邻居通告报文中, LLDP目标设备还可以将自身支持的 SNMP 版本号和标识添加到邻居通告^艮文中, LLDP 目标设备支持的 S醒 P版本号和 S醒 P标识可以以表 7所示的 TLV的形式添加到邻居通告^艮文中。 The LLDP master sends neighbor advertisement packets to the LLDP target device. The LLDP target device adds its own identification information and interface information of the neighbor advertisement packet to the next hop LLDP target device in the neighbor advertisement packet. The LLDP target device can add its own identification information and the interface information of the received neighbor advertisement message to the neighbor advertisement message in the manner of the device identifier TLV and the interface identifier TLV. The LLDP target device can also support the SNMP version number supported by itself. The identifier is added to the neighbor advertisement, and the wakeup P version number and the wakeup P identifier supported by the LLDP target device can be added to the neighbor advertisement in the form of the TLV shown in Table 7.
由于是环网结构, LLDP 主设备所发送的邻居通告 ^艮文最终会回到 LLDP 主设备上, LLDP主设备收到的邻居通告报文会携带有一个方向上的 LLDP目标 设备的设备标识 TLV和接口标识 TLV, 这样, LLDP主设备可以知道一个方向 上的拓朴结构。  As a ring network structure, the neighbor advertisements sent by the LLDP master device will eventually return to the LLDP master device. The neighbor advertisement packets received by the LLDP master device will carry the device identifier TLV of the LLDP target device in one direction. And the interface identifies the TLV, so that the LLDP master can know the topology in one direction.
为了能得到双向的拓朴结构, LLDP主设备可以向两个不同方向分别发送 一个邻居通告报文, 这样, LLDP主设备会收到两个邻居通告报文, 从这两个 邻居通告报文中得到两个方向上的拓朴结构。  In order to obtain a two-way topology, the LLDP master device can send a neighbor advertisement packet in two different directions. The LLDP master device receives two neighbor advertisement packets from the two neighbor advertisement packets. Get the topology in both directions.
假设 LLDP主设备在一侧连接第一 LLDP目标设备,在另一侧连接第二 LLDP 目标设备, 则 LLDP主设备得到两个方向的拓朴结构的过程具体可以包括: Assume that the LLDP master device is connected to the first LLDP target device on one side and the second LLDP target device on the other side. The process of obtaining the topology structure of the LLDP master device in two directions may include:
( 1 ) LLDP主设备向第一 LLDP目标设备发送第一邻居通告报文。 接收第 一邻居通告报文的 LLDP目标设备将自身的标识信息以及接收到第一邻居通告 报文的接口信息添加到第一邻居通告报文中 ,并向下一跳 LLDP目标设备转发; 第一邻居通告报文中还可以携带跳数信息, 收到第一邻居通告报文的 LLDP目 标设备可以修改该跳数信息, 比如加 1等。 (1) The LLDP master sends a first neighbor advertisement packet to the first LLDP target device. The LLDP target device that receives the first neighbor advertisement message adds its own identity information and the interface information of the first neighbor advertisement message to the first neighbor advertisement message, and forwards the LLDP target device to the next hop; The neighbor advertisement packet may also carry the hop count information. The LLDP target device that receives the first neighbor advertisement packet may modify the hop count information, for example, adding 1 or the like.
( 2 ) LLDP主设备向第二 LLDP目标设备发送第二邻居通告报文。 接收所 述第二邻居通告 ·艮文的 LLDP目标设备将自身的标识信息以及接收到第二邻居 通告报文的接口信息添加到第二邻居通告报文中, 并向下一跳 LLDP目标设备 转发; 第二邻居通告报文中也可以携带跳数信息, 收到第二邻居通告报文的 LLDP目标设备可以将跳数加 1。  (2) The LLDP master sends a second neighbor advertisement message to the second LLDP target device. The LLDP target device that receives the second neighbor advertisement and the suffix adds its own identification information and the interface information of the second neighbor advertisement message to the second neighbor advertisement message, and forwards the LLDP target device to the next hop. The second neighbor advertisement message may also carry the hop count information, and the LLDP target device that receives the second neighbor advertisement message may increase the hop count by one.
( 3 ) LLDP主设备接收第一邻居通告报文和第二邻居通告报文,根据接收 的第一邻居通告 ·艮文和第二邻居通告 文获取所述一个或多个 LLDP目标设备 的拓朴结构。 (3) The LLDP master device receives the first neighbor advertisement message and the second neighbor advertisement message according to the reception. The first neighbor advertisement and the second neighbor advertisement obtain the topology of the one or more LLDP target devices.
LLDP主设备接收的第一邻居通告 文和第二邻居通告 >¾文中携带有 LLDP 目标设备的设备标识 TLV和接口标识 TLV, 从这些设备标识 TLV和接口标识 TLV中可以得到整个环网两个方向上的拓朴结构。  The first neighbor advertisement and the second neighbor advertisement received by the LLDP master device carry the device identifier TLV and the interface identifier TLV of the LLDP target device. The two ring directions of the entire ring network can be obtained from the device identifier TLV and the interface identifier TLV. The topological structure on it.
为了能让 LLDP目标设备识别 LLDP主设备, LLDP主设备还可以在发送的 邻居通告报文中携带 Proxy标识, 这样 LLDP目标设备可以根据这个 Proxy标 识识别出能和 0SS通信的 LLDP主设备。  In order to enable the LLDP target device to identify the LLDP master device, the LLDP master device can also carry the proxy identifier in the sent neighbor advertisement packet, so that the LLDP target device can identify the LLDP master device that can communicate with the 0SS according to the proxy identifier.
LLDP主设备获取两个方向的拓朴结构后, 还可以在本地生成邻居表项, 邻居表项可以包括邻居设备的标识信息, 到达邻居的网络拓朴信息, 如出接 口等, 邻居表项中还可以包括邻居的 S醒 P版本号和 S醒 P标识等。 邻居表中 还可以包括 LLDP主设备到每个 LLDP目标设备的跳数等。  After the LLDP master device obtains the topology of the two directions, the neighboring entry can be generated locally. The neighboring entry can include the neighboring device identification information, and the network topology information of the neighbor, such as the outbound interface. It may also include the neighbor's wake-up P version number and the wake-up P identifier. The neighbor table can also include the hop count of the LLDP master device to each LLDP target device.
如果 LLDP主设备连接的 LLDP目标设备组成非环网结构,则获取 LLDP目 标设备的拓朴结构具体可以是:  If the LLDP target device connected to the LLDP device is configured as an acyclic network, the topology of the LLDP target device can be:
( 1 ) LLDP主设备接收邻居通告报文,该邻居通告报文中携带有设备标识 (1) The LLDP master device receives the neighbor advertisement packet, and the neighbor advertisement packet carries the device identifier.
TLV和接口标识 TLV, LLDP主设备从这些设备标识 TLV和接口标识 TLV中识别 出处于链路末端的 LLDP 目标设备, 获取处于链路末端的 LLDP 目标设备的标 识信息以及从链路末端的 LLDP目标设备到 LLDP主设备的网络拓朴结构;The TLV and the interface identifier TLV. The LLDP master device identifies the LLDP target device at the end of the link from the device identification TLV and the interface identifier TLV, and obtains the LLDP target device identification information at the end of the link and the LLDP target from the end of the link. Network topology of the device to the LLDP master device;
( 2 ) LLDP主设备向处于链路末端的 LLDP目标设备发送拓朴查询请求, 该拓朴查询请求中携带有表 3所示的 TLV, 接收到该拓朴查询请求的 LLDP目 标设备可以根据这个 TLV识别是拓朴查询请求。 (2) The LLDP master device sends a topology query request to the LLDP target device at the end of the link. The topology query request carries the TLV shown in Table 3. The LLDP target device that receives the topology query request can TLV recognition is a topology query request.
( 3 ) LLDP目标设备收到拓朴查询请求后, 识别出是拓朴查询请求后, 将 自身的标识信息以及接收到拓朴查询请求的接口信息添加到拓朴查询请求 中, 向下一跳 LLDP目标设备转发。 LLDP目标设备可以以设备标识 TLV和接口 标识 TLV 的形式将自身的标识信息以及接收到拓朴查询请求的接口信息添加 到拓朴查询请求中。 拓朴查询请求中可以携带跳数信息, 中间的 LLDP目标设备收到拓朴查询 请求后, 可以将跳数减 1 , 减 1后为 0的 LLDP目标设备可以就是链路末端的 LLDP 目标设备, 当然, LLDP 目标设备也可以根据拓朴查询请求中的 LLDP 目 标设备的标识信息来识别自己是否是链路米端的 LLDP目标设备。 (3) After receiving the topology query request, the LLDP target device identifies the topology query request and adds its own identity information and the interface information received by the topology query request to the topology query request, and the next hop LLDP target device forwarding. The LLDP target device may add its own identification information and interface information received by the topology query request to the topology query request in the form of the device identification TLV and the interface identification TLV. The topology query request may carry the hop count information. After receiving the topology query request, the LLDP target device in the middle may reduce the hop count by one, and the LLDP target device that is 0 after the link may be the LLDP target device at the end of the link. Of course, the LLDP target device can also identify whether it is an LLDP target device of the link meter based on the identifier information of the LLDP target device in the topology query request.
( 4 )链路末端的 LLDP 目标设备收到拓朴查询请求后, 将拓朴查询请求 中携带的其他 LLDP 目标设备的拓朴信息以链路拓朴 TLV (参见表 5 ) 的方式 封装起来, 结合 LLDP主设备的标识信息回应给 LLDP主设备, LLDP主设备的 标识信息可以以表 2所示的目标选项 TLV的形式携带在应答报文中; 在应答 报文转发过程中, 其他目标设备继续添加链路拓朴信息。 这样, LLDP主设备 收到的应答报文中携带有从 LLDP主设备到链路末端 LLDP 目标设备的拓朴结 构以及从链路末端 LLDP目标设备到 LLDP主设备的拓朴结构, LLDP主设备可 以从该应答报文中发现 LLDP主设备和待配置的 LLDP 目标设备之间的双向链 路拓朴。  (4) After receiving the topology query request, the LLDP target device at the end of the link encapsulates the topology information of other LLDP target devices carried in the topology query request by the link topology TLV (see Table 5). The information of the LLDP master device is forwarded to the LLDP master device. The identifier information of the LLDP master device can be carried in the response packet in the form of the target option TLV shown in Table 2. During the response packet forwarding process, other target devices continue. Add link topology information. In this way, the response packet received by the LLDP master device carries the topology structure from the LLDP master device to the LLDP target device at the end of the link and the topology structure from the LLDP target device at the end of the link to the LLDP master device. The LLDP master device can A bidirectional link topology between the LLDP master device and the LLDP target device to be configured is found in the response packet.
为了能让 LLDP目标设备识别 LLDP主设备, LLDP主设备还可以在发送的 邻居通告报文中携带 Proxy标识, 这样 LLDP目标设备可以根据这个 Proxy标 识识别出能和 0SS通信的 LLDP主设备。  In order to enable the LLDP target device to identify the LLDP master device, the LLDP master device can also carry the proxy identifier in the sent neighbor advertisement packet, so that the LLDP target device can identify the LLDP master device that can communicate with the 0SS according to the proxy identifier.
LLDP主设备获取 LLDP目标设备的拓朴结构后,还可以在本地生成邻居表 项, 邻居表项可以包括邻居设备的标识信息, 到达邻居的网络拓朴信息, 如 出接口等, 邻居表项中还可以包括邻居的 S醒 P版本号和 S醒 P标识等。 邻居 表中还可以包括 LLDP主设备到每个 LLDP目标设备的跳数等。  After obtaining the topology of the LLDP target device, the LLDP master device can also generate a neighbor entry locally. The neighbor entry can include the identifier information of the neighbor device and the network topology information of the neighbor, such as the outbound interface. It may also include the neighbor's wake-up P version number and the wake-up P identifier. The neighbor table can also include the hop count of the LLDP master device to each LLDP target device.
步骤 520 , LLDP主设备根据待配置的 LLDP目标设备的标识信息查询 LLDP 目标设备的标识信息与 LLDP目标设备的转发信息的对应关系, 从而获取所述 待配置 LLDP目标设备的转发信息。  Step 520: The LLDP master device searches the mapping between the LLDP target device identification information and the LLDP target device forwarding information according to the LLDP target device identification information to obtain the forwarding information of the LLDP target device to be configured.
具体地, LLDP主设备获取的转发信息可以是 LLDP主设备上连接待配置的 LLDP目标设备的出接口信息,获取转发信息的过程是由 LLDP主设备查询邻居 表, 邻居表中存储有 LLDP 目标设备的标识信息与 LLDP 目标设备的转发信息 的对应关系。 Specifically, the forwarding information obtained by the LLDP master device may be the outbound interface information of the LLDP target device to be configured on the LLDP master device. The process of obtaining the forwarding information is performed by the LLDP master device to query the neighbor table, and the LLDP target device is stored in the neighbor table. Identification information and forwarding information of the LLDP target device Correspondence.
LLDP主设备接收到携带有 LLDP目标设备标识的管理请求信息后,在 LLDP 主设备邻居表中查询与 LLDP目标设备标识相对应的转发信息。 其中, LLDP主 设备邻居表如表 8所示。  After receiving the management request information carrying the LLDP target device identifier, the LLDP master device queries the LLDP master device neighbor table for the forwarding information corresponding to the LLDP target device identifier. The LLDP master neighbor table is shown in Table 8.
另夕卜, LLDP主设备接口由打开 up变为关闭 down, 则删除经过该端接口 的邻居表项。 当有邻居设备的状态发生变化时, LLDP 目标设备将自己维护的 邻居信息封装成 LLDP报文上报给 LLDP主设备, 由 LLDP主设备封装成 IP包 上报给 0SS。  In addition, the LLDP master interface changes from open up to down, and the neighbor entry that passes the interface is deleted. When the status of a neighboring device changes, the LLDP target device encapsulates the neighbor information that is maintained by the LLDP device into an LLDP master device. The LLDP master device encapsulates the packet into an IP packet and reports it to the 0SS.
步骤 53 G , LLDP主设备将 S醒 P报文封装成 LLDP报文, 根据获取的转发 信息将 LLDP报文转发给待配置的 LLDP目标设备, 以使得待配置的 LLDP目标 设备利用配置信息进行配置。  Step 53 G: The LLDP master device encapsulates the awake P-type packet into an LLDP packet, and forwards the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device to be configured is configured by using the configuration information. .
LLDP主设备可以以 TLV的形式将 S醒 P ^艮文封装到 LLDP ^艮文中, 在封装 之前, LLDP主设备还可以根据所述待配置的 LLDP目标设备的标识信息获取所 述待配置的 LLDP目标设备所能识别的 S醒 P版本信息, 按照所述 SNMP版本信 息对所述待配置的 LLDP目标设备所需的配置信息进行转换。  The LLDP master device may encapsulate the S-uppertext into the LLDP file in the form of a TLV. Before the encapsulation, the LLDP master device may obtain the LLDP to be configured according to the identifier information of the LLDP target device to be configured. And the configuration information required by the LLDP target device to be configured is converted according to the SNMP version information.
SNMP报文中携带有配置信息,待配置的 LLDP目标设备可以根据配置信息 中的参数以及对应的值进行配置。  The SNMP packet carries the configuration information. The LLDP target device to be configured can be configured according to the parameters and corresponding values in the configuration information.
因此,本发明实施例提供的网络中的设备配置方法, LLDP主设备接收 0SS 通过 S醒 P报文形式发送的携带有 LLDP 目标设备标识的管理请求信息, 根据 LLDP目标设备标识获取 LLDP目标设备的转发信息, 根据 LLDP目标设备的转 发信息将管理请求信息通过 S醒 P >¾文封装到 LLDP >¾文的形式发送至 LLDP目 标设备, 当接收 LLDP目标设备通过 S醒 P报文封装到 LLDP报文形式发送的管 理请求响应信息后,将管理请求响应信息解封装成 S醒 P报文,并向 0SS发送, 从而无需获取 IP地址也能实现 0SS对 LLDP目标设备的远程管理。  Therefore, the device configuration method in the network provided by the embodiment of the present invention, the LLDP master device receives the management request information of the LLDP target device identifier that is sent by the WSS in the form of the wakeup P packet, and obtains the LLDP target device according to the LLDP target device identifier. Forwarding information, according to the forwarding information of the LLDP target device, the management request information is sent to the LLDP target device in the form of an LLDP >3⁄4 message, and the LLDP target device is encapsulated into the LLDP packet by using the wakeup P packet. After the management request response information is sent in the form, the management request response information is decapsulated into the wakeup P message and sent to the 0SS, so that the remote management of the LLDP target device by the 0SS can be realized without obtaining the IP address.
图 6为本发明实施例提供的网络中的设备配置方法的流程图。如图所示, 本发明实施例具体包括: 步骤 610 , LLDP目标设备接收 LLDP主设备通过 S醒 P ^艮文封装到 LLDP才艮 文的形式发送的携带有 LLDP目标设备标识的管理请求信息。 其中, 管理请求 信息包括查询请求信息或配置请求信息。 FIG. 6 is a flowchart of a device configuration method in a network according to an embodiment of the present invention. As shown in the figure, the embodiment of the present invention specifically includes: Step 610: The LLDP target device receives the management request information that is sent by the LLDP master device and is sent in the form of the LLDP target device, and is sent by the LLDP master device. The management request information includes query request information or configuration request information.
步骤 620 , 当 LLDP目标设备标识与 LLDP目标设备标识相同时, 则将管理 请求信息解封装成 S醒 P报文, 并进行与管理请求信息相对应的处理, 从而获 得管理请求响应信息。  Step 620: When the LLDP target device identifier is the same as the LLDP target device identifier, the management request information is decapsulated into a wakeup P packet, and processing corresponding to the management request information is performed, thereby obtaining management request response information.
进一步, 步骤 620还包括: 当 ·艮文中目标设备标识与 LLDP目标设备标识 不同时, 在 LLDP目标设备转发表中查询与报文中目标设备标识相对应的转发 信息; 并根据转发信息, 插入设备 TLV和接口 TLV后将该 S醒 P over LLDP报 文向下一跳 LLDP目标设备或 LLDP主设备转发。  Further, the step 620 further includes: when the target device identifier is different from the LLDP target device identifier, querying, in the LLDP target device forwarding table, the forwarding information corresponding to the target device identifier in the packet; and inserting the device according to the forwarding information. After the TLV and the interface TLV, the S wake-up P over LLDP packet is forwarded to the LLDP target device or the LLDP master device.
进一步, 在步骤 62 G之前还包括: LLDP 目标设备主动发送邻居通告, 方 便中间目标设备和 LLDP主设备学习邻居表项。 该通告信息中除了 LLDP协议 定义的标准能力, 还包含 S醒 P版本号、 S醒 P标识。  Further, before the step 62 G, the LLDP target device actively sends the neighbor advertisement, so that the intermediate target device and the LLDP master device learn the neighbor entry. In addition to the standard capabilities defined by the LLDP protocol, the notification information includes the S-up P version number and the S-wake P flag.
LLDP目标设备建立 LLDP目标设备邻居表, 邻居转发表结果如表 9所示。 当 LLDP 目标设备接收到邻居发送的 LLDP报文, 则学习或者刷新邻居表项, 该表项除邻居标识外, 还学习到邻居的跳数、 接收接口和邻居的 Proxy优先 级, 该接口一般就是转发报文的出接口, 而该优先级用来识别邻居是否具有 代理管理能力以及代理管理的优先级。 一般来说, 具有代理管理能力的就是 LLDP主设备, 当网络规模较大或者对可靠性要求较高时, 可以设置两个或两 个以上的 LLDP主设备, 不同的 LLDP主设备应该用 Proxy表明代理管理的优 先级。  The LLDP target device establishes the LLDP target device neighbor table. The neighbor forwarding table results are shown in Table 9. When the LLDP target device receives the LLDP packet sent by the neighbor, it learns or refreshes the neighbor entry. In addition to the neighbor identifier, the LLDP learns the hop count of the neighbor, the receiving interface, and the proxy priority of the neighbor. The interface is usually The outbound interface of the packet is forwarded, and the priority is used to identify whether the neighbor has the agent management capability and the priority of the agent management. In general, the LLDP master device is capable of proxy management. When the network size is large or the reliability requirements are high, two or more LLDP master devices can be configured. Different LLDP master devices should be indicated by Proxy. The priority of agent management.
当 LLDP目标设备接口由打开 up变为关闭 down, 删除该接口所学习的邻 居表项, 包括直连邻居和非直连邻居。 并且在有邻居状态变化时, LLDP 目标 设备将自己维护的邻居信息封装成 LLDP报文上报给 LLDP主设备, 由 LLDP主 设备封装成 IP包上报给 0SS。  When the LLDP target device interface is changed from open up to down, the neighbor entries learned by the interface are deleted, including direct neighbors and indirect neighbors. When the neighboring state changes, the LLDP target device encapsulates the neighbor information that is maintained by the LLDP device into an LLDP master device, and the LLDP master device encapsulates the packet into an IP packet and reports it to the 0SS.
步骤 630 ,将管理请求响应信息通过 S醒 P报文封装到 LLDP报文的形式发 送 LLDP主设备, 用以 LLDP主设备将管理请求响应信息通过 S醒 P ·艮文形式转 发至运营支撑系统 0SS。 In step 630, the management request response information is encapsulated into an LLDP packet by using the wakeup P packet. The LLDP master device is sent to the LLDP master device to forward the management request response information to the operation support system 0SS through the wakeup P.
进一步, 步骤 630还包括: 使用 S醒 P over LLDP发送回应给 LLDP主设 备时, 使用目标设备 TLV来指定 LLDP主设备, 该 LLDP主设备可跟据管理请 求 ·艮文中的源 MAC来识别, 而不考虑 LLDP主设备的 Proxy优先级。 在转发该 报文前, LLDP目标设备也需要学习到达 LLDP主设备的转发信息, 该转发信息 可以在接收到 S醒 P over LLDP管理请求时学习或者刷新。  Further, the step 630 further includes: when using the S-up P over LLDP to send the response to the LLDP master device, using the target device TLV to specify the LLDP master device, where the LLDP master device can be identified according to the source MAC in the management request message. The proxy priority of the LLDP master device is not considered. Before forwarding the packet, the LLDP target device also needs to learn the forwarding information to the LLDP master device. The forwarding information can be learned or refreshed when receiving the S-up P L LLDP management request.
因此, 本发明实施例提供的网络中的设备配置方法, LLDP目标设备接收 到 LLDP主设备通过 S醒 P ^艮文封装到 LLDP ^艮文的形式发送的携带有 LLDP 目 标设备标识的管理请求信息, 当 4艮文中的目标设备标识与 LLDP目标设备标识 相同时, 则将管理请求信息解封装成 SNMP报文, 并进行与管理请求信息相对 应的处理, 从而获得管理请求响应信息, 将管理请求响应信息通过 S醒 P报文 封装到 LLDP报文的形式发送给 LLDP主设备, 用以 LLDP主设备将管理请求响 应信息通过 S醒 P报文形式转发至运营支撑系统 0SS ,从而无需获取 IP地址也 能实现 0SS对 LLDP目标设备的远程管理。  Therefore, the device configuration method in the network provided by the embodiment of the present invention, the LLDP target device receives the management request information that the LLDP master device carries the LLDP target device identifier and is sent in the form of the LLDP 艮 封装 封装When the target device identifier in the file is the same as the LLDP target device identifier, the management request information is decapsulated into an SNMP message, and processing corresponding to the management request information is performed, thereby obtaining management request response information, and the management request is obtained. The response information is sent to the LLDP master device through the S-up packet, and is sent to the LLDP master device. The LLDP master device forwards the management request response message to the operation support system 0SS through the wake-up P packet, so that the IP address does not need to be obtained. It can also realize remote management of LLDP target devices by 0SS.
图 7为本本发明实施例提供的网络中的设备配置方法的信息交互图。 如 图所示, 本发明实施例具体包括:  FIG. 7 is an information interaction diagram of a device configuration method in a network according to an embodiment of the present invention. As shown in the figure, the embodiment of the present invention specifically includes:
步骤 701 , 0SS向 LLDP主设备通过 S醒 P 4艮文形式发送携带有 LLDP目标 设备标识的管理请求信息。 其中, 管理请求信息包括查询请求信息或配置请 求信息。  Step 701: The 0SS sends the management request information carrying the LLDP target device identifier to the LLDP master device through the S-up P4 message. The management request information includes query request information or configuration request information.
步骤 702 , LLDP主设备接收到携带有 LLDP目标设备标识的管理请求信息 后, 判断需要配置的目标设备。 如果该目标设置和 LLDP主设备一致, 则直接 处理该配置或者查询请求; 如果是作为代理配置其他 LLDP目标设备则查询邻 居表, 并执行步骤 703。  Step 702: After receiving the management request information carrying the LLDP target device identifier, the LLDP master device determines the target device to be configured. If the target setting is consistent with the LLDP master device, the configuration or the query request is directly processed; if the other LLDP target device is configured as a proxy, the neighbor table is queried, and step 703 is performed.
步骤 703 , LLDP主设备根据邻居表中查询出的 S醒 P版本和 S醒 P标识, 完成 S醒 P版本和标识转换, 并添加 LLDP封装, 封装中使用目标设备 TLV来 指定要配置的目标设备, 使用 S醒 P TLV来封装原始 S醒 P报文, 所述报文不 包含 IP和 UDP头。 Step 703: The LLDP master device completes the wakeup P version and the identifier conversion according to the wakeup P version and the S wakeup P identifier that are queried in the neighbor table, and adds the LLDP encapsulation, and the target device TLV is used in the encapsulation. Specifies the target device to be configured, and uses the wake-up P TLV to encapsulate the original S-P-P message. The packet does not contain IP and UDP headers.
步骤 704 , LLDP 目标设备 1接收到 LLDP主设备发送的 S醒 P over LLDP 报文后, 学习或者刷新邻居表项, 并根据报文携带的 LLDP目标设备标识与自 身的设备标识进行比较, 当报文中的目标设备标识与 LLDP目标设备 1标识相 同, 则执行步骤 707 ; 当报文中的目标设备标识与 LLDP目标设备 1标识不同, 则执行步骤 705。  Step 704: After receiving the awake P over LLDP packet sent by the LLDP master device, the LLDP target device 1 learns or refreshes the neighbor entry, and compares the LLDP target device identifier carried in the packet with the device identifier of the device. If the target device identifier is the same as the LLDP target device 1 identifier, step 707 is performed. If the target device identifier in the packet is different from the LLDP target device 1 identifier, step 705 is performed.
步骤 705 , LLDP 目标设备 1查询邻居表, 根据邻居表中的出接口转发管 理配置请求; 转发前, 会插入设备 TLV和接收该报文的接口 TLV, 学习或刷新 邻居表项。  Step 705: The LLDP target device 1 queries the neighbor table and forwards the management configuration request according to the outbound interface in the neighbor table. Before the forwarding, the TLV and the interface TLV that receives the packet are inserted to learn or refresh the neighbor entry.
步骤 706 , LLDP目标设备 2接收到 LLDP目标设备 1转发的管理配置请求 报文后, 学习或刷新邻居表项, 并会对该设备查询报文携带的目标设备标识 与自身的设备标识进行比较, 当目标设备标识与 LLDP目标设备 1标识相同, 则执行步骤 707 ; 当目标设备标识与 LLDP目标设备 1标识不同, 则查询邻居 表项并按照邻居表项中的出接口转发给下一跳 LLDP目标设备, 转发前会插入 设备 TLV和接收该报文的接口 TLV。  Step 706: After receiving the management configuration request packet forwarded by the LLDP target device 1, the LLDP target device 2 learns or refreshes the neighbor entry, and compares the target device identifier carried by the device query packet with its own device identifier. When the target device identifier is the same as the LLDP target device 1 identifier, step 707 is performed; when the target device identifier is different from the LLDP target device 1 identifier, the neighbor entry is queried and forwarded to the next hop LLDP target according to the outbound interface in the neighbor entry. The device inserts the device TLV and the interface TLV that receives the packet before forwarding.
步骤 707 , LLDP目标设备 2将管理请求信息解封装成 S醒 P报文, 并进行 与管理请求信息相对应的处理, 从而获得管理请求响应信息。 接着执行步骤 708。  Step 707: The LLDP target device 2 decapsulates the management request information into a wakeup P message, and performs processing corresponding to the management request information, thereby obtaining management request response information. Then step 708 is performed.
步骤 708 , LLDP目标设备 2将管理请求响应信息通过 S醒 P over LLDP报 文的形式, 将 S醒 P应答 ·艮文以 S醒 P TLV来封装, 通过目标设备 TLV指定发 送给 LLDP主设备, 发送前会查询邻居表从邻居表中的出接口发送。  Step 708: The LLDP target device 2 encapsulates the management request response information in the form of a wake-up P-over LLDP packet, and encapsulates the wake-up P-request and the 艮-text with the wake-up P TLV, and sends the information to the LLDP master device through the target device TLV. The neighbor table is queried before being sent from the outbound interface in the neighbor table.
步骤 709 , LLDP目标设备 1接收到 S醒 P over LLDP封装的该管理请求响 应信息后, 学习或者刷新邻居表, 并通过目标设备 TLV查询邻居表得到出接 口。 然后执行步骤 710。  Step 709: After receiving the management request response information of the P-over LLDP encapsulation, the LLDP target device 1 learns or refreshes the neighbor table, and queries the neighbor table through the target device TLV to obtain an interface. Then step 710 is performed.
步骤 710 , LLDP目标设备 1根据邻居表查询出的出接口转发该 LLDP报文, 转发前会插入设备 TLV和接收该报文的接口 TLV。 Step 710: The LLDP target device 1 forwards the LLDP packet according to the outbound interface queried by the neighbor table. The device TLV and the interface TLV that receives the message are inserted before forwarding.
步骤 711 , LLDP主设备接收到的管理请求响应信息后,通过目标设备 TLV 识别出应处理该才艮文, 从 S醒 P TLV中取出原始 S醒 P才艮文, 完成 S醒 P格式和 标识转换后, 以标准 S醒 P ·艮文形式回应给运营支撑系统 0SS即步骤 712 , 所 述标准的 S醒 Ρ ^艮文以 IP ^艮文格式封装。  Step 711: After the management request response information received by the LLDP master device, the target device TLV identifies that the message should be processed, and the original S wakeup P message is taken out from the wakeup P TLV, and the wakeup P format and the identifier are completed. After the conversion, the standard S is awake to the operation support system 0SS, that is, step 712, and the standard S is awake.
因此,本发明实施例提供的网络中的设备配置方法, LLDP主设备接收 0SS 通过 S醒 P报文形式发送的携带有 LLDP 目标设备标识的管理请求信息, 根据 报文中的目标设备标识获取 LLDP目标设备的转发信息, 根据所述转发信息将 管理请求信息转发至 LLDP 目标设备 1或 LLDP 目标设备 2 , LLDP 目标设备 1 或 LLDP 目标设备 1接收到管理请求信息, 当报文中的目标设备标识与 LLDP 目标设备标识相同时, 则将管理请求信息解封装成 S醒 P报文, 并进行与管理 请求信息相对应的处理, 从而获得管理请求响应信息, 将管理请求响应信息 通过 S醒 P ^艮文封装到 LLDP ^艮文的形式发送给 LLDP主设备, 当 LLDP主设备 接收到 LLDP目标设备 1或 LLDP目标设备 2通过 S醒 P报文封装到 LLDP报文 形式发送的管理请求响应信息, 将管理请求响应信息解封装成 S醒 P报文, 并 转换 S醒 P版本和标识之后以标准 S醒 P报文格式向 0SS发送, 从而无需获取 IP地址也能实现 0SS对 LLDP目标设备的远程管理。  Therefore, the device configuration method in the network provided by the embodiment of the present invention, the LLDP master device receives the management request information of the LLDP target device identifier that is sent by the SSS in the form of the wake-up P packet, and obtains the LLDP according to the target device identifier in the packet. Forwarding information of the target device, and forwarding the management request information to the LLDP target device 1 or the LLDP target device 2 according to the forwarding information, and the LLDP target device 1 or the LLDP target device 1 receives the management request information, and the target device identifier in the packet When the LLDP target device identifier is the same, the management request information is decapsulated into a wakeup P packet, and processing corresponding to the management request information is performed, thereby obtaining management request response information, and the management request response information is awake through P^. The encapsulation is sent to the LLDP master device in the form of an LLDP packet, and the LLDP master device receives the management request response information sent by the LLDP target device 1 or the LLDP target device 2 in the form of an LLDP packet. Decapsulating the management request response information into a wakeup P message, and converting the wakeup P version and After identifying the standard S P wake packet format is transmitted to 0SS, eliminating the need to obtain an IP address can be realized 0SS LLDP remote management target device.
图 8为本发明实施例提供的链路层发现协议 LLDP设备的结构示意图。该 LLDP设备用于执行图 3至和图 7提供的网络中的设备配置方法。 如图所示, 本发明实施例具体包括: 第一接口 81、 第二接口 82、 数据接收器 83、 处理器 84和数据发送器 85。  FIG. 8 is a schematic structural diagram of a link layer discovery protocol LLDP device according to an embodiment of the present invention. The LLDP device is used to perform the device configuration method in the networks provided in Figures 3 through 7. As shown in the figure, the embodiment of the present invention specifically includes: a first interface 81, a second interface 82, a data receiver 83, a processor 84, and a data transmitter 85.
第一接口 81用于连接运营支撑系统 0SS;  The first interface 81 is used to connect the operational support system 0SS;
第二接口 82用于连接一个或多个 LLDP目标设备;  The second interface 82 is configured to connect to one or more LLDP target devices.
数据接收器 83用于接收 0SS的 IP报文, 从 IP报文中提取简单网络管理 协议 S醒 P报文, S醒 P报文中携带有待配置的 LLDP目标设备的标识信息以及 待配置的 LLDP目标设备所需的配置信息; 处理器 84用于根据待配置的 LLDP目标设备的标识信息查询 LLDP目标设 备的标识信息与 LLDP目标设备的转发信息的对应关系,从而获取待配置 LLDP 目标设备的转发信息; 以及将 S醒 P报文封装到 LLDP报文中; The data receiver 83 is configured to receive the IP packet of the 0SS, and extract the simple network management protocol, the awake P packet, from the IP packet, and the awake P packet carries the identifier information of the LLDP target device to be configured and the LLDP to be configured. Configuration information required by the target device; The processor 84 is configured to query the correspondence between the identifier information of the LLDP target device and the forwarding information of the LLDP target device according to the identifier information of the LLDP target device to be configured, so as to obtain the forwarding information of the LLDP target device to be configured; The packet is encapsulated into an LLDP packet.
数据发送器 85 用于根据获取的转发信息将 LLDP 报文发送给待配置的 LLDP目标设备, 以使得 LLDP目标设备利用配置信息进行配置。  The data transmitter 85 is configured to send the LLDP packet to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device uses the configuration information to configure.
在一个实施例中, 处理器 84还用于获取一个或多个 LLDP 目标设备的拓 朴结构; 数据发送器还用于将获取的拓朴结构上报给 0SS。  In one embodiment, the processor 84 is further configured to acquire a topology of one or more LLDP target devices; the data transmitter is further configured to report the acquired topology to the 0SS.
另一个实施例中, 一个或多个 LLDP目标设备与 LLDP主设备组成环网结 构 ,则数据发送器 85 ,还用于向一个或多个 LLDP目标设备发送邻居通告报文 , 以使得接收到邻居通告报文的 LLDP目标设备将自身的标识信息以及接收到邻 居通告报文的接口信息添加到邻居通告报文中向下一跳 LLDP目标设备发送; 数据接收器 83 , 还用于接收邻居通告报文; 处理器 84 , 还用于从接收的邻居 通告报文中获取一个或多个 LLDP目标设备的拓朴结构。  In another embodiment, the one or more LLDP target devices and the LLDP master device form a ring network structure, and the data transmitter 85 is further configured to send a neighbor advertisement message to one or more LLDP target devices, so that the neighbor is received. The LLDP target device of the advertisement packet adds its own identification information and the interface information of the received neighbor advertisement message to the next hop LLDP target device in the neighbor advertisement message. The data receiver 83 is also used to receive the neighbor advertisement report. The processor 84 is further configured to obtain a topology of one or more LLDP target devices from the received neighbor advertisement message.
因此, 本发明实施例提供的 LLDP设备, 接收 0SS通过 S醒 P报文形式发 送的携带有 LLDP 目标设备标识的管理请求信息, 根据 LLDP 目标设备标识获 取 LLDP 目标设备的转发信息, 根据 LLDP 目标设备的转发信息将管理请求信 息通过 S醒 P ^艮文封装到 LLDP ^艮文的形式发送至 LLDP目标设备,当接收 LLDP 目标设备通过 S醒 P报文封装到 LLDP报文形式发送的管理请求响应信息后, 将管理请求响应信息解封装成 S醒 P报文, 并向 0SS发送, 从而无需获取 IP 地址也能实现 0SS对 LLDP目标设备的远程管理。  Therefore, the LLDP device provided by the embodiment of the present invention receives the management request information of the LLDP target device identifier that is sent by the SSS in the form of the wakeup P packet, and obtains the forwarding information of the LLDP target device according to the LLDP target device identifier, according to the LLDP target device. The forwarding information is sent to the LLDP target device in the form of the LLDP packet, and is sent to the LLDP target device through the S-up packet, and the management request response is sent in the form of the LLDP packet. After the information is obtained, the management request response information is decapsulated into a wakeup P message and sent to the 0SS, so that the remote management of the LLDP target device by the 0SS can be realized without obtaining the IP address.
图 9为本发明实施例提供的设备配置系统的结构示意图。 如图所示, 该 设备配置系统链路层发现协议 LLDP主设备 91以及一个或多个 LLDP目标设备 92 , 一个或多个 LLDP目标设备 92通过 LLDP主设备 91连接 0SS。  FIG. 9 is a schematic structural diagram of a device configuration system according to an embodiment of the present invention. As shown, the device configures the system link layer discovery protocol LLDP master device 91 and one or more LLDP target devices 92, and one or more LLDP target devices 92 connect to the 0SS through the LLDP master device 91.
LLDP主设备 91 , 用于接收运营支撑系统 OSS的 IP报文, 从 IP报文中提 取简单网络管理协议 S醒 P报文, S醒 P报文中携带有待配置的 LLDP 目标设备 的标识信息以及待配置的 LLDP目标设备所需的配置信息;根据待配置的 LLDP 目标设备的标识信息查询 LLDP 目标设备的标识信息与 LLDP 目标设备的转发 信息的对应关系, 从而获取待配置 LLDP 目标设备的转发信息; 以及将 S醒 P 报文封装到 LLDP报文中, 根据获取的转发信息将 LLDP报文发送给待配置的 LLDP目标设备, 以使得 LLDP目标设备利用配置信息进行配置。 The LLDP master device 91 is configured to receive an IP packet of the OSS of the operation support system, and extract a simple network management protocol, the awake P packet, from the IP packet, and the S-wrap packet carries the identifier information of the LLDP target device to be configured and Configuration information required for the LLDP target device to be configured; according to the LLDP to be configured The identifier information of the target device is used to query the mapping between the LLDP target device and the forwarding information of the LLDP target device, so as to obtain the forwarding information of the LLDP target device to be configured, and encapsulate the W ping P-packet into the LLDP packet. The forwarding information is sent to the LLDP target device to be configured, so that the LLDP target device uses the configuration information for configuration.
在一个实施例中, LLDP主设备 91还用于获取一个或多个 LLDP目标设备 的拓朴结构, 将获取的拓朴结构上报给 oss。  In an embodiment, the LLDP master device 91 is further configured to acquire the topology of the one or more LLDP target devices, and report the acquired topology to the oss.
另一个实施例中, 一个或多个 LLDP目标设备 92与 LLDP主设备 91组成 环网结构, 则 LLDP主设备 91具体用于, 向一个或多个 LLDP目标设备发送邻 居通告报文; 接收邻居通告报文, 从接收的邻居通告报文中获取一个或多个 LLDP目标设备的拓朴结构; LLDP目标设备用于, 接收邻居通告报文, 将自身 的标识信息以及接收到邻居通告报文的接口信息添加到邻居通告报文中向下 一跳 LLDP目标设备发送。 专业人员应该还可以进一步意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来 实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能 一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每 个特定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为 超出本发明的范围。  In another embodiment, the one or more LLDP target devices 92 and the LLDP master device 91 form a ring network structure, and the LLDP master device 91 is specifically configured to send neighbor advertisement packets to one or more LLDP target devices; The packet obtains the topology of one or more LLDP target devices from the received neighbor advertisement message. The LLDP target device is configured to receive the neighbor advertisement message, and set its own identity information and the interface that receives the neighbor advertisement message. The information is added to the neighbor advertisement packet and sent to the next hop LLDP target device. A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、 处理 器执行的软件模块, 或者二者的结合来实施。 软件模块可以置于随机存储器 ( RAM ) 、 内存、 只读存储器(ROM ) 、 电可编程 R0M、 电可擦除可编程 R0M、 寄存器、 硬盘、 可移动磁盘、 CD-R0M、 或技术领域内所公知的任意其它形式 的存储介质中。  The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field Any other form of storage medium known.
以上所述的具体实施方式, 对本发明的目的、 技术方案和有益效果进行 了进一步详细说明, 所应理解的是, 以上所述仅为本发明的具体实施方式而 已, 并不用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所做 的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The specific embodiments described above carry out the objects, technical solutions and beneficial effects of the present invention. It is to be understood that the foregoing description is only illustrative of the embodiments of the invention, and is not intended to limit the scope of the invention And equivalent replacements, improvements, etc., are all included in the scope of the present invention.

Claims

1、 一种网络中的设备配置方法, 所述网络包括运营支撑系统 0SS、 链路 层发现协议 LLDP主设备以及一个或多个 LLDP目标设备,所述一个或多个 LLDP 目标设备通过所述 LLDP主设备连接所述 OSS , 所述方法包括: 1. A device configuration method in a network. The network includes an operation support system OSS, a link layer discovery protocol LLDP master device, and one or more LLDP target devices. The one or more LLDP target devices pass the LLDP The main device connects to the OSS, and the methods include:
所述 LLDP主设备接收所述 0SS的 IP报文, 从所述 IP报文中提取简单网 络管理协议 S醒 P报文, 所述 S醒 P报文中携带有待配置的 LLDP目标设备的标 识信息以及所述待配置的 LLDP目标设备所需的配置信息; The LLDP master device receives the IP message of the OSS and extracts the Simple Network Management Protocol Wake-up message from the IP message. The Wake-up message carries the identification information of the LLDP target device to be configured. and the configuration information required by the LLDP target device to be configured;
所述 LLDP主设备根据所述待配置的 LLDP目标设备的标识信息查询 LLDP 目标设备的标识信息与 LLDP目标设备的转发信息的对应关系, 从而获取所述 待配置 LLDP目标设备的转发信息; The LLDP master device queries the corresponding relationship between the identification information of the LLDP target device and the forwarding information of the LLDP target device according to the identification information of the LLDP target device to be configured, thereby obtaining the forwarding information of the LLDP target device to be configured;
所述 LLDP主设备将所述 S匪 P报文封装成 LLDP报文, 根据获取的转发信 息将所述 LLDP报文发送给所述待配置的 LLDP目标设备, 以使得所述 LLDP目 标设备利用所述配置信息进行配置。 The LLDP master device encapsulates the SNMP message into an LLDP message, and sends the LLDP message to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device uses all Configure the configuration information described above.
2、 根据权利要求 1所述的网络中的设备配置方法, 其特征在于, 所述获 取的转发信息包括所述 LLDP主设备上连接所述待配置的 LLDP目标设备的出 接口。 2. The device configuration method in the network according to claim 1, wherein the obtained forwarding information includes an outbound interface on the LLDP master device connected to the LLDP target device to be configured.
3、根据权利要求 1所述的网络中的设备配置方法,其特征在于,所述 LLDP 主设备将所述 S醒 P报文封装成 LLDP报文具体包括: 3. The device configuration method in the network according to claim 1, characterized in that the LLDP master device encapsulates the Wakeup message into an LLDP message, which specifically includes:
所述 LLDP主设备将所述 SNMP报文以类型长度值 TLV的形式封装到所述 The LLDP master device encapsulates the SNMP message into the
LLDP报文中。 in LLDP packets.
4、根据权利要求 3所述的网络中的设备配置方法 ,其特征在于,所述 LLDP 报文还携带有用于标识所述待配置的 LLDP目标设备的 TLV, 所述用于标识待 配置的 LLDP目标设备的 TLV携带有所述待配置的 LLDP目标设备的标识信息。 4. The device configuration method in the network according to claim 3, wherein the LLDP message also carries a TLV used to identify the LLDP target device to be configured, and the TLV is used to identify the LLDP target device to be configured. The TLV of the target device carries identification information of the LLDP target device to be configured.
5、根据权利要求 1所述的网络中的设备配置方法,其特征在于,所述 LLDP 主设备接收所述 OSS的 IP报文之前还包括: 获取所述一个或多个 LLDP目标设备的拓朴结构, 将获取的拓朴结构上报 给所述 0SS。 5. The device configuration method in the network according to claim 1, characterized in that before the LLDP master device receives the IP message of the OSS, it further includes: Obtain the topology structure of the one or more LLDP target devices, and report the obtained topology structure to the OSS.
6、 根据权利要求 5所述的网络中的设备配置方法, 其特征在于, 所述一 个或多个 LLDP目标设备与所述 LLDP主设备组成环网结构, 则获取所述一个 或多个 LLDP目标设备的拓朴结构具体包括: 6. The device configuration method in the network according to claim 5, wherein the one or more LLDP target devices and the LLDP master device form a ring network structure, then the one or more LLDP targets are obtained The topology structure of the device specifically includes:
所述 LLDP主设备向所述一个或多个 LLDP目标设备发送邻居通告报文, 以使得接收到邻居通告报文的 LLDP目标设备将自身的标识信息以及接收到邻 居通告报文的接口信息添加到邻居通告报文中向下一跳 LLDP目标设备发送; 所述 LLDP主设备接收邻居通告报文, 从接收的邻居通告报文中获取所述 一个或多个 LLDP目标设备的拓朴结构。 The LLDP master device sends a neighbor advertisement message to the one or more LLDP target devices, so that the LLDP target device that receives the neighbor advertisement message adds its own identification information and the interface information that received the neighbor advertisement message to The neighbor advertisement message is sent to the next-hop LLDP target device; the LLDP master device receives the neighbor advertisement message, and obtains the topology structure of the one or more LLDP target devices from the received neighbor advertisement message.
7、根据权利要求 6所述的网络中的设备配置方法 ,其特征在于,所述 LLDP 主设备在一侧连接第一 LLDP目标设备, 在另一侧连接第二 LLDP目标设备, 所述 LLDP主设备向所述一个或多个 LLDP目标设备发送邻居通告 ·艮文具体包 括: 7. The device configuration method in the network according to claim 6, wherein the LLDP master device is connected to a first LLDP target device on one side and a second LLDP target device on the other side. The device sends a neighbor advertisement message to the one or more LLDP target devices, which specifically includes:
所述 LLDP主设备向所述第一 LLDP目标设备发送第一邻居通告 ·艮文, 以 使得接收所述第一邻居通告报文的 LLDP目标设备将自身的标识信息以及接收 到第一邻居通告报文的接口信息添加到第一邻居通告报文中, 并向下一跳 LLDP目标设备转发; The LLDP master device sends a first neighbor advertisement message to the first LLDP target device, so that the LLDP target device that receives the first neighbor advertisement message sends its own identification information and the first neighbor advertisement report to the first neighbor advertisement message. The interface information of the message is added to the first neighbor advertisement message and forwarded to the next-hop LLDP target device;
所述 LLDP主设备向所述第二 LLDP目标设备发送第二邻居通告报文, 以 使得接收所述第二邻居通告报文的 LLDP目标设备将自身的标识信息以及接收 到第二邻居通告报文的接口信息添加到第二邻居通告报文中, 并向下一跳 LLDP目标设备转发; The LLDP master device sends a second neighbor advertisement message to the second LLDP target device, so that the LLDP target device that receives the second neighbor advertisement message combines its own identification information with the received second neighbor advertisement message. The interface information is added to the second neighbor advertisement message and forwarded to the next-hop LLDP target device;
所述 LLDP主设备接收第一邻居通告报文和第二邻居通告报文, 根据接收 的第一邻居通告 ·艮文和第二邻居通告 文获取所述一个或多个 LLDP目标设备 的拓朴结构。 The LLDP master device receives the first neighbor advertisement message and the second neighbor advertisement message, and obtains the topology structure of the one or more LLDP target devices according to the received first neighbor advertisement message and the second neighbor advertisement message. .
8、 根据权利要求 7所述的网络中的设备配置方法, 其特征在于, 所述第 一邻居通告报文和所述第二邻居通告报文中还携带有代理 Proxy标识, 以使 得接收所述第一邻居通告报文、 或所述第二邻居通告报文的 LLDP目标设备学 习所述 LLDP主设备的标识信息。 8. The device configuration method in the network according to claim 7, characterized in that: the first A neighbor advertisement message and the second neighbor advertisement message also carry a proxy Proxy identifier, so that the LLDP target device that receives the first neighbor advertisement message or the second neighbor advertisement message learns the Identification information of the LLDP master device.
9、 根据权利要求 5所述的网络中的设备配置方法, 其特征在于, 所述一 个或多个 LLDP目标设备与所述 LLDP主设备组成非环网结构, 则获取所述一 个或多个 LLDP目标设备的拓朴结构具体包括: 9. The device configuration method in the network according to claim 5, wherein the one or more LLDP target devices and the LLDP master device form a non-ring network structure, then the one or more LLDP devices are obtained. The topology structure of the target device specifically includes:
所述 LLDP主设备接收 LLDP目标设备的邻居通告报文, 从所述邻居通告 报文中获取处于链路末端的 LLDP目标设备的标识信息以及到达所述处于链路 末端的 LLDP目标设备的拓朴信息; The LLDP master device receives the neighbor advertisement message of the LLDP target device, and obtains the identification information of the LLDP target device at the end of the link and the topology to reach the LLDP target device at the end of the link from the neighbor advertisement message. information;
所述 LLDP主设备根据到达所述链路末端的 LLDP目标设备的拓朴信息向 所述链路末端的 LLDP目标设备发送拓朴查询请求, 以使得接收所述拓朴查询 请求的 LLDP目标设备将自身的标识信息以及接收到拓朴查询请求的接口信息 添加到拓朴查询请求中, 并向下一跳 LLDP目标设备转发; The LLDP master device sends a topology query request to the LLDP target device at the link end according to the topology information of the LLDP target device arriving at the link end, so that the LLDP target device receiving the topology query request will Its own identification information and the interface information that received the topology query request are added to the topology query request, and forwarded to the next-hop LLDP target device;
接收来自链路末端的 LLDP目标设备的针对所述拓朴查询请求的应答报 文, 该应答报文中携带有从所述 LLDP主设备到所述链路末端 LLDP目标设备 的拓朴结构以及从所述链路末端 LLDP目标设备到所述 LLDP主设备的拓朴结 构; Receive a response message for the topology query request from the LLDP target device at the end of the link. The response message carries the topology structure from the LLDP master device to the LLDP target device at the end of the link and the slave The topology structure from the LLDP target device at the end of the link to the LLDP master device;
所述 LLDP主设备根据链路末端设备的应答报文携带的从所述 LLDP主设 备到所述链路末端 LLDP目标设备的拓朴结构、 以及从所述链路末端 LLDP目 标设备到所述 LLDP主设备的拓朴结构计算出完整链路拓朴。 The LLDP master device carries the topology structure from the LLDP master device to the LLDP target device at the link end, and from the LLDP target device at the link end to the LLDP The complete link topology is calculated from the master's topology.
10、 根据权利要求 9所述的网络中的设备配置方法, 其特征在于, 所述 拓朴查询请求中还携带有 Proxy标识, 以使得接收所述拓朴查询请求的 LLDP 目标设备学习所述 LLDP主设备的标识信息。 10. The device configuration method in the network according to claim 9, characterized in that the topology query request also carries a Proxy identifier, so that the LLDP target device receiving the topology query request learns the LLDP Identification information of the main device.
11、 根据权利要求 1-1 0任意一项所述的网络中的设备配置方法, 其特征 在于, 所述 LLDP主设备将所述 S醒 P报文封装到 LLDP报文之前, 所述方法还 包括: 所述 LLDP主设备还用于根据所述待配置的 LLDP目标设备的标识信息获 取所述待配置的 LLDP目标设备所能识别的 S醒 P版本信息, 按照所述 S醒 P版 本信息对所述待配置的 LLDP目标设备所需的配置信息进行转换。 11. The device configuration method in the network according to any one of claims 1-10, characterized in that, before the LLDP master device encapsulates the wake-up message into an LLDP message, the method further include: The LLDP master device is also configured to obtain the Spark version information that can be recognized by the LLDP target device to be configured according to the identification information of the LLDP target device to be configured, and configure the Spark version information according to the Spark version information. Convert the configuration information required by the LLDP target device to be configured.
12、 一种链路层发现协议 LLDP设备, 其特征在于, 所述设备包括: 第一接口, 用于连接运营支撑系统 0SS; 12. A link layer discovery protocol LLDP device, characterized in that the device includes: a first interface used to connect to the operation support system OSS;
第二接口, 用于连接一个或多个 LLDP目标设备; The second interface is used to connect one or more LLDP target devices;
数据接收器, 用于接收所述 0SS的 IP报文, 从所述 IP报文中提取简单 网络管理协议 S醒 P报文, 所述 S醒 P报文中携带有待配置的 LLDP目标设备的 标识信息以及所述待配置的 LLDP目标设备所需的配置信息; A data receiver, configured to receive the IP message of the OSS, and extract the Simple Network Management Protocol Wake-up message from the IP message. The Wake-up message carries the identification of the LLDP target device to be configured. information and the configuration information required by the LLDP target device to be configured;
处理器, 用于才艮据所述待配置的 LLDP目标设备的标识信息查询 LLDP目 标设备的标识信息与 LLDP目标设备的转发信息的对应关系, 从而获取所述待 配置 LLDP目标设备的转发信息; 以及将所述 S醒 P报文封装到 LLDP报文中; 数据发送器, 用于根据所述获取的转发信息将所述 LLDP报文发送给所述 待配置的 LLDP目标设备, 以使得所述 LLDP目标设备利用所述配置信息进行 配置。 A processor configured to query the corresponding relationship between the identification information of the LLDP target device and the forwarding information of the LLDP target device based on the identification information of the LLDP target device to be configured, thereby obtaining the forwarding information of the LLDP target device to be configured; and encapsulating the STEP message into an LLDP message; a data sender, configured to send the LLDP message to the LLDP target device to be configured according to the obtained forwarding information, so that the The LLDP target device uses the configuration information to perform configuration.
1 3、 根据权利要求 12所述的 LLDP设备, 其特征在于, 13. The LLDP device according to claim 12, characterized in that,
所述处理器还用于获取所述一个或多个 LLDP目标设备的拓朴结构; 所述数据发送器还用于将获取的拓朴结构上报给所述 0SS。 The processor is also used to obtain the topology structure of the one or more LLDP target devices; the data sender is also used to report the obtained topology structure to the OSS.
14、 根据权利要求 1 3所述的 LLDP设备, 其特征在于, 所述一个或多个 LLDP目标设备与所述 LLDP主设备组成环网结构, 则 14. The LLDP device according to claim 13, wherein the one or more LLDP target devices and the LLDP master device form a ring network structure, then
所述数据发送器, 还用于向所述一个或多个 LLDP目标设备发送邻居通告 报文, 以使得接收到邻居通告报文的 LLDP目标设备将自身的标识信息以及接 收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳 LLDP目标设备 发送; The data sender is also configured to send a neighbor advertisement message to the one or more LLDP target devices, so that the LLDP target device that receives the neighbor advertisement message sends its own identification information and the name of the neighbor advertisement message that it received. The interface information is added to the neighbor advertisement message and sent to the next-hop LLDP target device;
所述数据接收器, 还用于接收邻居通告报文; The data receiver is also used to receive neighbor advertisement messages;
所述处理器, 还用于从接收的邻居通告 ·艮文中获取所述一个或多个 LLDP 目标设备的拓朴结构。 The processor is also configured to obtain the one or more LLDP messages from the received neighbor advertisement. The topology of the target device.
15、一种设备配置系统,其特征在于,所述系统包括链路层发现协议 LLDP 主设备以及一个或多个 LLDP目标设备, 所述一个或多个 LLDP目标设备通过 所述 LLDP主设备连接所述 0SS , 15. A device configuration system, characterized in that the system includes a link layer discovery protocol LLDP master device and one or more LLDP target devices, and the one or more LLDP target devices are connected to all the devices through the LLDP master device. Said0SS,
所述 LLDP主设备, 用于接收运营支撑系统 0SS的 IP报文, 从所述 IP报 文中提取简单网络管理协议 S醒 P报文 ,所述 S醒 P报文中携带有待配置的 LLDP 目标设备的标识信息以及所述待配置的 LLDP目标设备所需的配置信息; 根据 所述待配置的 LLDP目标设备的标识信息查询 LLDP目标设备的标识信息与 LLDP目标设备的转发信息的对应关系,从而获取所述待配置 LLDP目标设备的 转发信息; 以及将所述 S醒 P报文封装到 LLDP报文中, 根据所述获取的转发 信息将所述 LLDP报文发送给所述待配置的 LLDP目标设备, 以使得所述 LLDP 目标设备利用所述配置信息进行配置。 The LLDP master device is used to receive IP packets from the operation support system OSS, and extract Simple Network Management Protocol Wake-up messages from the IP packets. The Wake-up packets carry LLDP targets to be configured. The identification information of the device and the configuration information required by the LLDP target device to be configured; Query the corresponding relationship between the identification information of the LLDP target device and the forwarding information of the LLDP target device according to the identification information of the LLDP target device to be configured, thereby Obtain the forwarding information of the LLDP target device to be configured; and encapsulate the Wake-up message into an LLDP message, and send the LLDP message to the LLDP target to be configured according to the obtained forwarding information. device, so that the LLDP target device uses the configuration information to configure.
16、 根据权利要求 15所述的设备配置系统, 其特征在于, 所述 LLDP主 设备还用于获取所述一个或多个 LLDP目标设备的拓朴结构, 将获取的拓朴结 构上报给所述 0SS。 16. The device configuration system according to claim 15, characterized in that, the LLDP master device is also used to obtain the topology structure of the one or more LLDP target devices, and report the obtained topology structure to the 0SS.
17、 根据权利要求 16所述的设备配置系统, 其特征在于, 所述一个或多 个 LLDP目标设备与所述 LLDP主设备组成环网结构, 则 17. The device configuration system according to claim 16, wherein the one or more LLDP target devices and the LLDP master device form a ring network structure, then
所述 LLDP主设备具体用于, 向所述一个或多个 LLDP目标设备发送邻居 通告报文; 接收邻居通告报文, 从接收的邻居通告报文中获取所述一个或多 个 LLDP目标设备的拓朴结构; The LLDP master device is specifically configured to: send a neighbor advertisement message to the one or more LLDP target devices; receive the neighbor advertisement message, and obtain the information of the one or more LLDP target devices from the received neighbor advertisement message. topological structure;
所述 LLDP目标设备用于, 接收邻居通告报文, 将自身的标识信息以及接 收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳 LLDP目标设备 发送。 The LLDP target device is configured to receive the neighbor advertisement message, add its own identification information and the interface information that received the neighbor advertisement message to the neighbor advertisement message and send it to the next hop LLDP target device.
PCT/CN2013/070547 2013-01-16 2013-01-16 Method, device, and system for configuring device in network WO2014110737A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380000237.3A CN104205729B (en) 2013-01-16 2013-01-16 Method, device, and system for configuring device in network
PCT/CN2013/070547 WO2014110737A1 (en) 2013-01-16 2013-01-16 Method, device, and system for configuring device in network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/070547 WO2014110737A1 (en) 2013-01-16 2013-01-16 Method, device, and system for configuring device in network

Publications (1)

Publication Number Publication Date
WO2014110737A1 true WO2014110737A1 (en) 2014-07-24

Family

ID=51208933

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/070547 WO2014110737A1 (en) 2013-01-16 2013-01-16 Method, device, and system for configuring device in network

Country Status (2)

Country Link
CN (1) CN104205729B (en)
WO (1) WO2014110737A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113972995A (en) * 2020-07-24 2022-01-25 华为技术有限公司 Network configuration method and device
CN115277401A (en) * 2022-07-20 2022-11-01 浪潮思科网络科技有限公司 Equipment capacity expansion method, device, equipment and medium for established networking

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011820B (en) * 2018-01-04 2022-03-18 中兴通讯股份有限公司 Method and device for connecting systems and computer storage medium
CN108833606A (en) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 A kind of two-layer equipment configuration method, tension management equipment, infrastructure devices and system
CN110808847B (en) * 2019-09-23 2021-10-15 三维通信股份有限公司 Method and device for managing DAS (data-based system), electronic device and storage medium
CN114095374B (en) * 2021-11-11 2024-06-14 北京金山云网络技术有限公司 Network topology determination method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080291922A1 (en) * 2007-05-25 2008-11-27 Futurewei Technologies, Inc. Method of Preventing Transport Leaks in Hybrid Switching Networks by Extension of the Link Layer Discovery Protocol (LLDP)
CN101459536A (en) * 2008-12-29 2009-06-17 杭州华三通信技术有限公司 Port configuration method and switching device
CN101826981A (en) * 2010-03-18 2010-09-08 华为技术有限公司 Method for processing event message, north interface and operation support system
CN102318274A (en) * 2011-07-29 2012-01-11 华为技术有限公司 Utilize LLDP to obtain the method and system of network connection information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8140654B2 (en) * 2007-04-27 2012-03-20 Futurewei Technologies, Inc. Verifying management virtual local area network identifier provisioning consistency
DE102010063437A1 (en) * 2010-12-17 2012-06-21 Siemens Aktiengesellschaft Method for configuring one or more devices in an Ethernet-based communication network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080291922A1 (en) * 2007-05-25 2008-11-27 Futurewei Technologies, Inc. Method of Preventing Transport Leaks in Hybrid Switching Networks by Extension of the Link Layer Discovery Protocol (LLDP)
CN101459536A (en) * 2008-12-29 2009-06-17 杭州华三通信技术有限公司 Port configuration method and switching device
CN101826981A (en) * 2010-03-18 2010-09-08 华为技术有限公司 Method for processing event message, north interface and operation support system
CN102318274A (en) * 2011-07-29 2012-01-11 华为技术有限公司 Utilize LLDP to obtain the method and system of network connection information

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113972995A (en) * 2020-07-24 2022-01-25 华为技术有限公司 Network configuration method and device
CN113972995B (en) * 2020-07-24 2023-04-28 华为技术有限公司 Network configuration method and device
CN115277401A (en) * 2022-07-20 2022-11-01 浪潮思科网络科技有限公司 Equipment capacity expansion method, device, equipment and medium for established networking
CN115277401B (en) * 2022-07-20 2024-05-14 浪潮思科网络科技有限公司 Equipment capacity expansion method, device, equipment and medium for established networking

Also Published As

Publication number Publication date
CN104205729B (en) 2017-04-19
CN104205729A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
EP3320671B1 (en) Wide area service discovery for internet of things
US8743879B2 (en) Label switched routing to connect low power network domains
EP3228123B1 (en) Efficient hybrid resource and schedule management in time slotted channel hopping networks
JP2021100271A (en) Packet processing method and device
EP2600573B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
US9178818B2 (en) Communication apparatus
US20110246663A1 (en) Broadband network access
WO2015003566A1 (en) Method, device and system for transmitting packet in multicast domain name system
WO2014110737A1 (en) Method, device, and system for configuring device in network
WO2018214809A1 (en) Message transmission method and device, and storage medium
CN104935516A (en) Communication system based on software defined network and communication method
EP2922321A1 (en) 6lowpan network-based service discovery method and apparatus
EP2680507B1 (en) Packet forwarding method and system, and relay agent device
CN107147580B (en) Tunnel establishment method and communication system
WO2011119019A1 (en) Method of communicating signals in 6lowpan network to ipv6 network
WO2012106935A1 (en) Data communication network configuration method, gateway element and data communication system
WO2017031947A1 (en) Method and apparatus for sending target data to and acquiring target data from network
JP2012015997A (en) Topology detection system and relay device
WO2012109864A1 (en) Message forwarding method and device
WO2011041970A1 (en) Implementation method and system supporting data message active push capability
CN103490968B (en) Method and device for interconnecting across data centers in FCoE network
CN113794615B (en) Message forwarding method and device
WO2011041969A1 (en) Method and system for realizing the capability of supporting initiative push of data message
EP3866421B1 (en) Profinet protocol-based access method in industrial sdn
CN102957755B (en) A kind of address resolution method, device and information transferring method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13871348

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13871348

Country of ref document: EP

Kind code of ref document: A1