[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104205729B - 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
CN104205729B
CN104205729B CN201380000237.3A CN201380000237A CN104205729B CN 104205729 B CN104205729 B CN 104205729B CN 201380000237 A CN201380000237 A CN 201380000237A CN 104205729 B CN104205729 B CN 104205729B
Authority
CN
China
Prior art keywords
lldp
target devices
message
information
neighbor advertisement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201380000237.3A
Other languages
Chinese (zh)
Other versions
CN104205729A (en
Inventor
王玉容
胡仲怀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHONGQING HANYUAN MACHINERY Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104205729A publication Critical patent/CN104205729A/en
Application granted granted Critical
Publication of CN104205729B publication Critical patent/CN104205729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

本发明涉及的网络中的设备配置方法、设备和系统,该方法包括:LLDP主设备接收OSS的IP报文,从IP报文中提取SNMP报文;LLDP主设备根据待配置的LLDP目标设备的标识信息查询本地的邻居表,得到到达目标设备的转发信息和SNMP信息;LLDP主设备根据SNMP信息完成SNMP报文格式转换和LLDP封装,从得到的出接口转发给特定LLDP目标设备,以使得LLDP目标设备利用配置信息进行配置。因此,本发明通过SNMP报文封装到LLDP报文的形式进行通信,从而降低了OSS进行远程管理的操作复杂度,并且无需获取IP地址也能实现OSS的远程管理。

The device configuration method, device and system in the network involved in the present invention, the method includes: the LLDP master device receives the IP message of the OSS, and extracts the SNMP message from the IP message; the LLDP master device according to the LLDP target device to be configured The identification information queries the local neighbor table to obtain forwarding information and SNMP information to the target device; the LLDP master device completes SNMP message format conversion and LLDP encapsulation according to the SNMP information, and forwards the obtained outbound interface to a specific LLDP target device, so that LLDP The target device is configured with the configuration information. Therefore, the present invention communicates by encapsulating SNMP messages into LLDP messages, thereby reducing the operational complexity of remote management of the OSS, and realizing remote management of the OSS without obtaining an IP address.

Description

网络中的设备配置方法、设备和系统Device configuration method, device and system in network

技术领域technical field

本发明涉及通信领域,尤其涉及一种网络中的设备配置方法、设备和系统。The present invention relates to the communication field, in particular to a device configuration method, device and system in a network.

背景技术Background technique

随着通信技术的发展,网络设备的种类日益繁多且各自的配置错综复杂。网络设备的即插即用技术可以使得用户非常容易的在系统中增加新的网络设备,该技术可以应用于各种领域当中,并带来了极大的方便。With the development of communication technology, there are increasingly various types of network devices and their respective configurations are intricate. The plug-and-play technology of network equipment can make it very easy for users to add new network equipment to the system. This technology can be applied in various fields and brings great convenience.

目前,网络设备的即插即用技术都是通过网络之间互连的协议(InternetProtocol,IP)来进行设备配置。其中,当设备使用IP进行配置时,需要配置IP报文转发通路,包括虚拟局域网(Virtual Local Area Network,VLAN)、IP地址、路由等。Currently, the plug-and-play technology of network devices is configured through a protocol (Internet Protocol, IP) for interconnection between networks. Wherein, when the device uses IP for configuration, it is necessary to configure an IP packet forwarding path, including a virtual local area network (Virtual Local Area Network, VLAN), an IP address, a route, and the like.

图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 FIG. 1 , in the remote management system, network devices and a Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol, DHCP) server need to be configured. Wherein, the configuration content of the network equipment includes traffic volume and DHCP configuration; the purpose of configuring the DHCP server is to assign IP addresses to plug-and-play devices. When the plug-and-play device is inserted into the configuration system, the network device records the obtained IP address, and the operation support system (Operation Support System, OSS) configures the plug-and-play device according to the obtained IP address.

图2为现有技术中另一种远程管理系统的结构示意图。如图2所示,在该远程管理系统中,同样需要对网络设备和DHCP服务器进行配置。当配置系统中插入即插即用设备后,网络设备记录即插即用设备获取到的IP地址,即插即用设备2和网络设备通过链路层发现协议(Link Layer Discovery Protocol,LLDP)互相感知对方,并以LLDP邻居信息的方式将即插即用设备2的设备信息发送到OSS。OSS根据邻居信息感知即插即用设备的位置,并根据该即插即用设备的位置信息下发配置信息。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, the network device and the DHCP server also need to be configured. 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, and the plug-and-play device 2 and the network device communicate with each other through Link Layer Discovery Protocol (LLDP). Perceive the other party, and send the device information of the plug-and-play device 2 to the OSS in the form of LLDP neighbor information. The OSS perceives the location of the plug-and-play device based on neighbor information, and delivers configuration information based on the location information of the plug-and-play device.

但是,上述两种远程管理系统中都需要对网络设备和DHCP服务器进行配置;另外,无论是否使用LLDP协议,皆需要对即插即用设备配置IP地址,配置过程很复杂。However, the above two remote management systems all need to configure the network equipment and the DHCP server; in addition, no matter whether the LLDP protocol is used or not, it is necessary to configure the IP address of the plug-and-play device, and the configuration process is very complicated.

发明内容Contents of the invention

本发明提供了一种网络中的设备配置方法、设备和系统,解决了现有技术中需要对网络设备和DHCP服务器进行配置,同时对即插即用设备配置IP地址的问题,利用扩展的LLDP协议,降低了远程管理的操作复杂度,并且实现了无需获取IP地址也能通过OSS进行远程管理。The invention provides a device configuration method, device and system in a network, which solves the problem of configuring network devices and DHCP servers in the prior art, and configuring IP addresses for plug-and-play devices at the same time, using extended LLDP protocol, which reduces the operational complexity of remote management and enables remote management through OSS without obtaining an IP address.

在第一方面,本发明提供了一种网络中的设备配置方法,所述网络包括运营支撑系统OSS、链路层发现协议LLDP主设备以及一个或多个LLDP目标设备,所述一个或多个LLDP目标设备通过所述LLDP主设备连接所述OSS,所述方法包括:In a first aspect, the present invention provides 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, and the one or more The LLDP target device connects to the OSS through the LLDP master device, and the method includes:

所述LLDP主设备接收所述OSS的IP报文,从所述IP报文中提取简单网络管理协议SNMP报文,所述SNMP报文中携带有待配置的LLDP目标设备的标识信息以及所述待配置的LLDP目标设备所需的配置信息;The LLDP main device receives the IP message of the OSS, and extracts a Simple Network Management Protocol SNMP message from the IP message, and the SNMP message carries the identification information of the LLDP target device to be configured and the to-be-configured Configuration information required by the configured LLDP target device;

所述LLDP主设备根据所述待配置的LLDP目标设备的标识信息查询LLDP目标设备的标识信息与LLDP目标设备的转发信息的对应关系,从而获取所述待配置LLDP目标设备的转发信息;The LLDP master device queries the correspondence 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主设备将所述SNMP报文封装成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 the configuration file to configure.

其中,所述获取的转发信息包括所述LLDP主设备上连接所述待配置的LLDP目标设备的出接口。Wherein, the obtained forwarding information includes an outgoing interface on the LLDP master device connected to the LLDP target device to be configured.

进一步的,所述LLDP主设备将所述SNMP报文封装成LLDP报文具体包括:Further, the LLDP master device encapsulates the SNMP message into an LLDP message specifically including:

所述LLDP主设备将所述SNMP报文以类型长度值TLV的形式封装到所述LLDP报文中。所述LLDP报文还携带有用于标识所述待配置的LLDP目标设备的TLV,所述用于标识待配置的LLDP目标设备的TLV携带有所述待配置的LLDP目标设备的标识信息。The LLDP master device encapsulates the SNMP message into the LLDP message in the form of type length value TLV. The LLDP packet also 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 identification information of the LLDP target device to be configured.

在第一种可能的实现方式中,所述LLDP主设备接收所述OSS的IP报文之前还包括:获取所述一个或多个LLDP目标设备的拓扑结构,将获取的拓扑结构上报给所述OSS,并在本地生成邻居-拓扑表项,该表项包括邻居设备标识、邻居SNMP版本号和SNMP标识,以及到达邻居的网络拓扑信息。In a first possible implementation manner, before receiving the IP packet of the OSS, the LLDP master device further includes: obtaining the topology structure of the one or more LLDP target devices, and reporting the obtained topology structure to the The OSS generates a neighbor-topology entry locally, which includes the neighbor device ID, the neighbor SNMP version number and SNMP ID, and the network topology information reaching the 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, then obtaining the topology structure of the one or more LLDP target devices specifically includes: the LLDP The 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 receives the Neighbor Advertisement message to the Neighbor Advertisement message. The text 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.

结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述LLDP主设备在一侧连接第一LLDP目标设备,在另一侧连接第二LLDP目标设备,所述LLDP主设备向所述一个或多个LLDP目标设备发送邻居通告报文具体包括:所述LLDP主设备向所述第一LLDP目标设备发送第一邻居通告报文,以使得接收所述第一邻居通告报文的LLDP目标设备将自身的标识信息以及接收到第一邻居通告报文的接口信息添加到第一邻居通告报文中,并向下一跳LLDP目标设备转发;所述LLDP主设备向所述第二LLDP目标设备发送第二邻居通告报文,以使得接收所述第二邻居通告报文的LLDP目标设备将自身的标识信息以及接收到第二邻居通告报文的接口信息添加到第二邻居通告报文中,并向下一跳LLDP目标设备转发;所述LLDP主设备接收第一邻居通告报文和第二邻居通告报文,根据接收的第一邻居通告报文和第二邻居通告报文获取所述一个或多个LLDP目标设备的拓扑结构。With reference to the second possible implementation of the first aspect, in a third possible implementation, the LLDP master device is connected to the first LLDP target device on one side, and connected to the second LLDP target device on the other side, so The LLDP master device sending a Neighbor Advertisement message to the one or more LLDP target devices specifically includes: the LLDP master device sending a first Neighbor Advertisement message to the first LLDP target device, so that receiving the first The LLDP target device of the Neighbor Advertisement message adds its own identification information and the interface information that received the first Neighbor Advertisement message to the first Neighbor Advertisement message, and forwards it to the next-hop LLDP target device; the LLDP master device sending a second Neighbor Advertisement message to the second LLDP target device, so that the LLDP target device receiving the second Neighbor Advertisement message adds its own identification information and the interface information that received the second Neighbor Advertisement message to the The second NA packet is forwarded to the next-hop LLDP target device; the LLDP master device receives the first NA packet and the second NA packet, and according to the received first NA packet and the second NA packet, The neighbor advertisement message obtains the topology structure of the one or more LLDP target devices.

进一步的,所述LLDP主设备将所述SNMP报文封装到LLDP报文之前,所述方法还包括:Further, before the LLDP master device encapsulates the SNMP message into the LLDP message, the method also includes:

所述LLDP主设备还用于根据所述待配置的LLDP目标设备的标识信息获取所述待配置的LLDP目标设备所能识别的SNMP版本信息,按照所述SNMP版本信息对所述待配置的LLDP目标设备所需的配置信息进行转换。The LLDP master device is further configured to obtain SNMP version information that the LLDP target device to be configured can recognize according to the identification information of the LLDP target device to be configured, and perform the LLDP to be configured according to the SNMP version information. The configuration information required by the target device for conversion.

在第二方面,本发明提供了一种链路层发现协议LLDP设备,所述设备包括:In a second aspect, the present invention provides a Link Layer Discovery Protocol LLDP device, the device comprising:

第一接口,用于连接运营支撑系统OSS;The first interface is used to connect to the operation support system OSS;

第二接口,用于连接连接一个或多个LLDP目标设备;The second interface is used to connect one or more LLDP target devices;

数据接收器,用于接收所述OSS的IP报文,从所述IP报文中提取简单网络管理协议SNMP报文,所述SNMP报文中携带有待配置的LLDP目标设备的标识信息以及所述待配置的LLDP目标设备所需的配置信息;A data receiver, configured to receive the IP message of the OSS, and extract a Simple Network Management Protocol SNMP message from the IP message, wherein the SNMP 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目标设备的转发信息;以及将所述SNMP报文封装到LLDP报文中;A processor, configured to query the correspondence 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, so as to obtain the forwarding information of the LLDP target device to be configured; and The SNMP message is encapsulated into the LLDP message;

数据发送器,用于根据所述获取的转发信息将所述LLDP报文发送给所述待配置的LLDP目标设备,以使得所述LLDP目标设备利用所述配置文件进行配置。A data transmitter, 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 file for configuration.

在第一种可能的实现方式中,所述处理器还用于获取所述一个或多个LLDP目标设备的拓扑结构;所述数据发送器还用于将获取的拓扑结构上报给所述OSS。In a first possible implementation manner, the processor is further configured to acquire the topology of the one or more LLDP target devices; the data transmitter is further configured to report the acquired topology to the OSS.

结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述一个或多个LLDP目标设备与所述LLDP主设备组成环网结构,则所述数据发送器,还用于向所述一个或多个LLDP目标设备发送邻居通告报文,以使得接收到邻居通告报文的LLDP目标设备将自身的标识信息以及接收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳LLDP目标设备发送;所述数据接收器,还用于接收邻居通告报文;所述处理器,还用于从接收的邻居通告报文中获取所述一个或多个LLDP目标设备的拓扑结构。With reference to the first possible implementation of the second aspect, in the second possible implementation, the one or more LLDP target devices and the LLDP master device form a ring network structure, then the data transmitter, It is also used 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 adds its own identification information and the interface information that receives the Neighbor Advertisement message to the Neighbor Advertisement The message is sent to the next-hop LLDP target device; the data receiver is also used to receive a neighbor notification message; the processor is also used to obtain the one or more from the received neighbor notification message The topology of the LLDP target device.

在第三方面,本发明提供了一种设备配置系统,所述系统包括链路层发现协议LLDP主设备以及一个或多个LLDP目标设备,所述一个或多个LLDP目标设备通过所述LLDP主设备连接所述OSS,In a third aspect, the present invention provides a device configuration system, 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 through the LLDP master The device is connected to the OSS,

所述LLDP主设备,用于接收运营支撑系统OSS的IP报文,从所述IP报文中提取简单网络管理协议SNMP报文,所述SNMP报文中携带有待配置的LLDP目标设备的标识信息以及所述待配置的LLDP目标设备所需的配置信息;根据所述待配置的LLDP目标设备的标识信息查询LLDP目标设备的标识信息与LLDP目标设备的转发信息的对应关系,从而获取所述待配置LLDP目标设备的转发信息;以及将所述SNMP报文封装到LLDP报文中,根据所述获取的转发信息将所述LLDP报文发送给所述待配置的LLDP目标设备,以使得所述LLDP目标设备利用所述配置文件进行配置。The LLDP master device is used to receive the IP message of the operation support system OSS, extract the Simple Network Management Protocol SNMP message from the IP message, and carry the identification information of the LLDP target device to be configured in the SNMP message And the configuration information required by the LLDP target device to be configured; according to the identification information of the LLDP target device to be configured, query the correspondence between the identification information of the LLDP target device and the forwarding information of the LLDP target device, so as to obtain the to-be-configured Configure the forwarding information of the LLDP target device; and encapsulate the SNMP message into an LLDP message, and send the LLDP message to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target devices are configured using the configuration file.

在第一种可能的实现方式中,所述LLDP主设备还用于获取所述一个或多个LLDP目标设备的拓扑结构,将获取的拓扑结构上报给所述OSS。In a first possible implementation manner, the LLDP master device is further configured to obtain the topology structure of the one or more LLDP target devices, and report the obtained topology structure to the OSS.

结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述一个或多个LLDP目标设备与所述LLDP主设备组成环网结构,则所述LLDP主设备具体用于,向所述一个或多个LLDP目标设备发送邻居通告报文;接收邻居通告报文,从接收的邻居通告报文中获取所述一个或多个LLDP目标设备的拓扑结构;所述LLDP目标设备用于,接收邻居通告报文,将自身的标识信息以及接收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳LLDP目标设备发送。With reference to the first possible implementation of the third aspect, in the second possible implementation, the one or more LLDP target devices and the LLDP master device form a ring network structure, and the LLDP master device specifically It is used to send a neighbor notification message to the one or more LLDP target devices; receive the neighbor notification message, and obtain the topology structure of the one or more LLDP target devices from the received neighbor notification message; the LLDP The target device is configured to receive the Neighbor Advertisement message, add its own identification information and the interface information of the received Neighbor Advertisement message to the Neighbor Advertisement message and send it to the next-hop LLDP target device.

通过应用上述提供的设备配置方法、设备和系统,LLDP主设备接收OSS的IP报文,从IP报文中提取简单网络管理协议SNMP报文,SNMP报文中携带有待配置的LLDP目标设备的标识信息以及待配置的LLDP目标设备所需的配置文件;LLDP主设备根据待配置的LLDP目标设备的标识信息查询本地的邻居表,得到到达目标设备的转发信息和SNMP信息,该转发信息中包含到达目标设备的出接口,SNMP信息则包括目标的SNMP版本和标识等信息;LLDP主设备根据SNMP信息完成SNMP报文格式转换和LLDP封装,从得到的出接口转发给特性LLDP目标设备,以使得LLDP目标设备利用配置文件进行配置,实现了利用扩展的LLDP协议,在LLDP主设备和LLDP目标设备之间通过SNMP报文封装到LLDP报文的形式进行通信,从而降低了OSS进行远程管理的操作复杂度,并且无需获取IP地址也能实现OSS的远程管理。By applying the device configuration method, device and system provided above, the LLDP master device receives the IP message of the OSS, and extracts the Simple Network Management Protocol SNMP message from the IP message, and the SNMP message carries the identification of the LLDP target device to be configured information and the configuration files 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 SNMP information of the target device. The outbound interface of the target device, and the SNMP information includes information such as the SNMP version and identification of the target; the LLDP master device completes SNMP message format conversion and LLDP encapsulation according to the SNMP information, and forwards the obtained outbound interface to the characteristic LLDP target device, so that LLDP The target device is configured using the configuration file, and the extended LLDP protocol is used to communicate between the LLDP master device and the LLDP target device by encapsulating SNMP messages into LLDP messages, thereby reducing the complexity of OSS remote management operations It can achieve remote management of OSS without obtaining an IP address.

附图说明Description of drawings

图1为现有技术中一种远程管理系统的结构示意图;Fig. 1 is a schematic structural diagram of a remote management system in the prior art;

图2为现有技术中另一种远程管理系统的结构示意图;FIG. 2 is a schematic structural diagram of another remote management system in the prior art;

图3为本发明实施例提供的网络中的设备配置方法的流程图;FIG. 3 is a flowchart of a device configuration method in a network provided by an embodiment of the present invention;

图4为本发明实施例提供的管理系统的结构示意图;FIG. 4 is a schematic structural diagram of a management system provided by an embodiment of the present invention;

图5为本发明实施例提供的网络中的设备配置方法的流程图;FIG. 5 is a flowchart of a device configuration method in a network provided by an embodiment of the present invention;

图6为本发明实施例提供的网络中的设备配置方法的流程图;FIG. 6 is a flowchart of a device configuration method in a network provided by an embodiment of the present invention;

图7为本本发明实施例提供的设备配置方法的信息交互图;FIG. 7 is an information interaction diagram of a device configuration method provided by an embodiment of the present invention;

图8为本发明实施例提供的链路层发现协议LLDP主设备的结构示意图;FIG. 8 is a schematic structural diagram of a link layer discovery protocol LLDP master device provided by an embodiment of the present invention;

图9为本发明实施例提供的设备配置系统的结构示意图。FIG. 9 is a schematic structural diagram of a device configuration system provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, 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. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明一个实施例提供一种设备配置方法,如图3所示,所提供的方法包括:An embodiment of the present invention provides a device configuration method, as shown in Figure 3, the provided method includes:

步骤300、LLDP主设备接收OSS的IP报文,从IP报文中提取简单网络管理协议SNMP报文,SNMP报文中携带有待配置的LLDP目标设备的标识信息以及待配置的LLDP目标设备所需的配置信息;Step 300, the LLDP master device receives the IP message of the OSS, extracts the Simple Network Management Protocol SNMP message from the IP message, and the SNMP message carries the identification information of the LLDP target device to be configured and the LLDP target device to be configured. configuration information;

其中,待配置的LLDP目标设备的标识信息可以是待配置的LLDP目标设备的MAC(Meidia Access Control,媒体访问控制)地址、待配置的LLDP目标设备的设备标识、或者其他可以标识待配置的LLDP目标设备的标识信息等。Wherein, the identification information of the LLDP target device to be configured may be the MAC (Meidia Access Control, Media Access Control) address of the LLDP target device to be configured, the device identifier of the LLDP target device to be configured, or other LLDP devices that can identify the LLDP target device to be configured Identification information of the target device, etc.

配置信息可以是需要配置的参数,以及相关参数的值等。The configuration information may be parameters that need to be configured, values of related parameters, and the like.

步骤310、LLDP主设备根据待配置的LLDP目标设备的标识信息查询LLDP目标设备的标识信息与LLDP目标设备的转发信息的对应关系,从而获取所述待配置LLDP目标设备的转发信息;Step 310, the LLDP master device queries the correspondence 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, 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 the outbound interface of the LLDP master device connected to the LLDP target device to be configured, etc. The neighbor table of the LLDP master device stores the correspondence between the identification information of the LLDP target device and the forwarding information of the LLDP target device. The master device can use the identification information of the LLDP target device to be configured to query the neighbor table, so as to obtain the corresponding outbound interface.

步骤320、LLDP主设备将SNMP报文封装成LLDP报文,根据所述转发信息转发给给待配置的LLDP目标设备,以使得待配置的LLDP目标设备利用配置信息进行配置。Step 320, the LLDP master device encapsulates the SNMP message into an LLDP message, and forwards it to the LLDP target device to be configured according to the forwarding information, so that the LLDP target device to be configured uses the configuration information for configuration.

具体的,LLDP主设备可以将配置信息以TLV(Type-Length-Valve,类型长度值)的形式封装到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 TLV (Type-Length-Valve, type length value), and the LLDP master device can also use the identification information of the LLDP target device to be configured in the form of TLV In this way, the LLDP target device receiving the LLDP message can judge whether the identification information in the TLV is consistent with its own, and if it is consistent, it will process the message; Obtain the corresponding outgoing interface in the table and forward it.

本实施例提供的方法,实现了利用扩展的LLDP协议,在LLDP主设备和LLDP目标设备之间通过SNMP报文封装到LLDP报文的形式进行通信,从而降低了OSS进行远程管理的操作复杂度,并且无需获取IP地址也能实现OSS对LLDP目标设备的远程管理。The method provided in this embodiment realizes the use of the extended LLDP protocol to communicate between the LLDP master device and the LLDP target device by encapsulating SNMP messages into LLDP messages, thereby reducing the operational complexity of OSS remote management , and the OSS can remotely manage the LLDP target device without obtaining an IP address.

具体的,图4为本发明实施例提供的管理系统的结构示意图。如图4所示,该系统包括OSS41、LLDP主设备42以及一个或多个LLDP目标设备。其中一个或多个LLDP目标设备通过LLDP主设备连接OSS41。比如,LLDP主设备42有多个用于连接LLDP即插即用设备接口,比如:接口1、接口2、...、接口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 provided by an embodiment of the present invention. As shown in FIG. 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 OSS41 through the LLDP master device. For example, the LLDP master device 42 has multiple interfaces for connecting to LLDP plug-and-play devices, such as: interface 1, interface 2, . . . , interface m. Each interface of the LLDP master device 42 can be connected to one or more LLDP target devices, for example: the multiple LLDP plug-and-play devices connected to the interface 1 are respectively LLDP target device 1, LLDP target device 2, ..., LLDP target Device n-1 and LLDP target device n.

另外,详细说明一下本发明所有实施例中涉及到的自定义的报文名称、以及表格的格式。In addition, describe in detail the self-defined message names and table formats involved in all embodiments of the present invention.

第一,TLV全称为Type-Length-Value。其中,Type为标签,Length为长度,Value为值。T、L字段的长度往往固定,最常见的T为8比特,L也为8比特,V字段长度可变。顾名思义,T字段表示报文类型,L字段表示报文长度、V字段往往用来存放报文的内容。First, the full name of TLV is Type-Length-Value. Among them, Type is the label, Length is the length, and Value is the value. The lengths of the T and L fields are often fixed, the most common T is 8 bits, the L is also 8 bits, and the length of the V field is variable. As the name implies, the T field indicates the message type, the L field indicates the message length, and the V field is often used to store the content of the message.

(1)代理标识TLV(LLDP proxy TLV):报文中的Type并不是特定,可以使用32,即Type等于32,里面记录代理优先级。优先级主要用于从设备选取主代理设备,不同代理设备可以实现冗余备份,携带所述TLV表明设备具备代理管理的能力,一般都是LLDP主设备。格式如表1所示。(1) Proxy ID TLV (LLDP proxy TLV): The Type in the message is not specific, and 32 can be used, that is, the Type is equal to 32, and the proxy priority is recorded in it. The priority is mainly used to select the main proxy device from the device. Different proxy devices can realize redundant backup. Carrying the TLV indicates that the device has the capability of proxy management, and is generally the LLDP master device. The format is shown in Table 1.

表1Table 1

7比特7 bits 9比特9 bits 8比特8 bits 类型32Type 32 长度length 优先级priority

(2)目标设备TLV(LLDP Destination TLV):报文中的Type并不是特定,可以使用33,即Type等于33,里面记录指定目标设备标识。主要用于指定请求或者应答时的目标设备。格式如表2所示。(2) Target device TLV (LLDP Destination TLV): The Type in the message is not specific, and 33 can be used, that is, the Type is equal to 33, and the specified target device identifier is recorded in it. It is mainly used to specify the target device when requesting or responding. The format is shown in Table 2.

表2Table 2

7比特7 bits 9比特9 bits 48比特48 bits 类型33Type 33 长度length 目标设备标识target device identification

(3)拓扑查询TLV(LLDP topo query TLV):报文中的Type并不是特定,可以使用34,即Type等于34,该TLV用来表明该报文是设备拓扑查询请求。报文格式如表3所示。(3) Topology query TLV (LLDP topo query TLV): The Type in the message is not specific, and 34 can be used, that is, the Type is equal to 34. This TLV is used to indicate that the message is a device topology query request. The message format is shown in Table 3.

表3table 3

7比特7 bits 9比特9 bits 类型34Type 34 长度=0length = 0

(4)拓扑应答TLV(LLDP topo answer TLV):报文中的Type并不是特定,可以使用35,即Type等于35,该TLV用来表明该报文是设备拓扑查询应答。报文格式如表4所示。(4) Topology answer TLV (LLDP topo answer TLV): The Type in the message is not specific, and 35 can be used, that is, Type is equal to 35. This TLV is used to indicate that the message is a device topology query response. The message format is shown in Table 4.

表4Table 4

7比特7 bits 9比特9 bits 类型35Type 35 长度=0length = 0

(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 message is not specific, and 36 can be used, that is, the Type is equal to 36. In the device topology response message, this TLV is used to carry link topology information, which generally consists of a device identifier and an interface identifier, and the device identifier TLV and interface identifier TLV have been defined in the LLDP standard protocol. The message format is shown in Table 5.

表5table 5

(6)简单网络管理协议报文TLV(SNMP TLV):其是一个自定义的功能名词,含义是将SNMP报文封装到LLDP报文中。在本发明实施例中具体指的是LLDP主设备或目标设备将所有原来简单网络管理协议(Simple Network Management Protocol,SNMP)报文都封装到LLDP报文,包括OSS下发报文、LLDP目标设备应答报文,以及LLDP目标设备发生故障或变更时发送的主动通知报文。本TLV对Type并不是特定,可以使用37,即Type等于37。报文格式如表6所示。(6) Simple Network Management Protocol message TLV (SNMP TLV): it is a self-defined functional term, which means to encapsulate SNMP messages into LLDP messages. In the embodiment of the present invention, it specifically refers to that the LLDP master device or the target device encapsulates all original Simple Network Management Protocol (Simple Network Management Protocol, SNMP) messages into LLDP messages, including OSS issued messages, LLDP target device Reply message, and active notification message sent when the LLDP target device fails or changes. This TLV is not specific to Type, and 37 can be used, that is, Type is equal to 37. The message format is shown in Table 6.

表6Table 6

7比特7 bits 9比特9 bits n*8比特n*8 bits 类型37Type 37 长度(n字节)length (n bytes) SNMP报文信息SNMP message information

(7)简单网络管理协议标识TLV(SNMP Identification TLV):使用LLDP标准中的自定义TLV类型Type,这里对Type并不是特定,可以使用38,即Type等于38。区分LLDP设备的SNMP标识,用来识别OSS下发配置的目标设备。其中,V可以包含SNMP的版本号和标识符(SNMP V1/V2版本可以使用团体名,V3版本可以使用USM USER和密钥信息),如表7所示。(7) Simple Network Management Protocol Identification TLV (SNMP Identification TLV): Use the custom TLV type Type in the LLDP standard. The Type is not specific here, and 38 can be used, that is, Type is equal to 38. Distinguishes the SNMP identifier of the LLDP device, which is used to identify the target device to which the OSS delivers the configuration. Among them, V can contain SNMP version number and identifier (SNMP V1/V2 version can use community name, V3 version can use USM USER and key information), as shown in Table 7.

表7Table 7

7比特7 bits 9比特9 bits 8比特8 bits n比特n bits 类型38Type 38 长度(n+8比特)Length (n+8 bits) SNMP版本SNMP version SNMP标识SNMP ID

第二,转发表定义。Second, forwarding table definition.

(1)LLDP主设备的邻居表:用于找到维护邻居的信息,邻居包括直连的和非直连的,并在转发报文的时候能够找到出接口,在这里只列出了必要的信息,还可以加入描述等信息。LLDP邻居表如表8所示。(1) Neighbor table of the LLDP master device: used to find and maintain neighbor information. Neighbors include directly connected and non-directly connected, and can find outbound interfaces when forwarding packets. Only the necessary information is listed here. , you can also add description and other information. The LLDP neighbor table is shown in Table 8.

表8Table 8

邻居标识Neighbor ID 跳数hop count 接口interface SNMP版本SNMP version SNMP标识SNMP ID

(2)LLDP目标设备的邻居表:LLDP设备收到LLDP报文后,要记录或刷新该表。主要用于组网中间设备找到转发出口,以及目标设备主动上报信息给OSS时根据Proxy优先级选取主设备,如果邻居不具备Proxy能力,则可以使用Proxy优先级0来表示。LLDP邻居表如表9所示。(2) Neighbor table of the LLDP target device: After the LLDP device receives the LLDP message, it needs to record or refresh the table. It is mainly used for network intermediate devices to find the forwarding egress, and when the target device actively reports information to OSS to select the master device according to the proxy priority. If the neighbor does not have the proxy capability, the proxy priority 0 can be used to indicate. The LLDP neighbor table is shown in Table 9.

表9Table 9

邻居标识Neighbor ID 跳数hop count 接口interface Proxy优先级Proxy priority

根据上述报文和转发表项,下面来详细说明一下LLDP主设备和LLDP目标设备的功能。Based on the foregoing packets and forwarding table entries, the functions of the LLDP master device and the LLDP target device will be described in detail below.

(1)LLDP主设备功能:代理LLDP目标设备和OSS之间通信(主要是将SNMP overLLDP报文和SNMP over IP报文互相转换,然后将报文转发到对应的设备和OSS,包括原来需要上报到OSS的邻居等信息);将LLDP主设备信息定时或者手动通知其他LLDP目标设备;学习邻居拓扑并上报给OSS系统,包括直连邻居和非直连邻居。(1) LLDP master device function: agent communication between LLDP target device and OSS (mainly convert SNMP overLLDP message and SNMP over IP message to each other, and then forward the message to the corresponding device and OSS, including the original need to report Neighbor information to OSS); regularly or manually notify other LLDP target devices of LLDP master device information; learn neighbor topology and report to OSS system, including directly connected neighbors and non-directly connected neighbors.

具体来说,LLDP主设备接收到OSS下发的SNMP配置或查询请求后,根据SNMP报文中的标识判断是否是配置本设备,如果是,则上交给SNMP Agent来完成配置;如果不是,则根据该标识查询邻居表项,完成SNMP报文版本和标识转换后,封装成LLDP报文,添加目标设备TLV指定目标设备后从邻居表项中的出接口发送给下一跳邻居,最终转发给指定的目标设备。Specifically, after receiving the SNMP configuration or query request sent by the OSS, the LLDP master device judges whether the device is configured according to the identifier in the SNMP message. If yes, it hands over to the SNMP Agent to complete the configuration; Then query the neighbor entry according to the identifier. After the SNMP message version and identifier conversion are completed, it is encapsulated into an LLDP packet. After adding the target device TLV to specify the target device, send it to the next-hop neighbor from the outgoing interface in the neighbor entry, and finally forward it. to the specified target device.

LLDP主设备如果接收到目标设备回应或上报的SNMP over LLDP报文后,完成SNMP版本和标识转换后,以IP报文的方式发送给OSS系统。After the LLDP master device receives the SNMP over LLDP message responded or reported by the target device, it completes the SNMP version and identifier conversion and sends it to the OSS system in the form of an IP message.

当LLDP主设备学习到邻居时,通过设备拓扑查询TLV发送目标设备拓扑查询请求,通过目标设备TLV指定发送给该目标设备;该目标设备接收到该请求后,回应设备拓扑应答报文,LLDP主设备从该报文中各中间设备添加的设备TLV和接收接口TLV,以及链路拓扑TLV中,得到和目标设备完整的链路拓扑信息,将该信息和邻居通告的SNMP信息一起上报给OSS系统,方便OSS系统下发配置。When the LLDP master device learns neighbors, it sends a target device topology query request through the device topology query TLV, and sends it to the target device through the target device TLV; after receiving the request, the target device responds with a device topology reply message, and the LLDP master The device obtains the complete link topology information of the target device from the device TLV, receiving interface TLV, and link topology TLV added by each intermediate device in the message, and reports this information together with the SNMP information notified by the neighbor to the OSS system , which is convenient for the OSS system to deliver configurations.

(2)LLDP目标设备功能:转发LLDP报文以及处理LLDP拓扑查询请求,处理SNMPover LLDP配置或查询请求,以及使用SNMP over LLDP主动上报信息给OSS系统。(2) LLDP target device functions: forward LLDP packets, process LLDP topology query requests, process SNMPover LLDP configuration or query requests, and use SNMP over LLDP to proactively report information to the OSS 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 of the target device, it inserts the TLV of the local device and the receiving interface TLV, and sends it to all directly connected neighbors that are not the receiving interface; TLV of the target device, judge whether it is the device according to the TLV, if not, query the neighbor entry and forward it to the next-hop device.

如果根据目标设备TLV判断是本设备,则根据是否包含链路拓扑查询TLV判断是否是拓扑查询请求,如果是,则从该报文中得到链路拓扑信息,以链路拓扑TLV的方式封装后,添加设备拓扑应答TLV和指定目标设备TLV,指定回应给发起邻居查询的源设备。If it is determined according to the target device TLV that it is the device, then it is judged whether it is a topology query request based on whether the link topology query TLV is included. If so, the link topology information is obtained from the message and encapsulated in the form of the link topology TLV , add the device topology response TLV and specify the target device TLV, and specify the response to the source device that initiated the neighbor query.

如果根据目标设备TLV判断是本设备,则还需要根据报文是否携带简单网络管理协议报文TLV来判断是否SNMP over LLDP配置或查询请求,如果是,则上交给SNMP agent处理该请求,根据处理结果构造SNMP应答报文,该应答报文也以简单网络管理协议报文TLV方式封装,并通过目标设备TLV的方式指定回应给源请求设备,一般是LLDP主设备。If it is judged according to the TLV of the target device that it is the device, it is also necessary to judge whether the SNMP over LLDP configuration or query request is based on whether the message carries the Simple Network Management Protocol message TLV. If so, it will be handed over to the SNMP agent to process the request. The processing result constructs an SNMP response message, which is also encapsulated in the TLV mode of the simple network management protocol message, and is specified to respond to the source requesting device through the TLV mode of the target device, usually the LLDP master device.

当目标设备需要主动上报信息给OSS时,也以SNMP over LLDP的方式封装,根据邻居的Proxy优先级选取LLDP主设备,然后以指定目标设备TLV的方式发送给LLDP主设备。When the target device needs to actively report information to the OSS, it is also encapsulated in the form of SNMP over LLDP, and the LLDP master device is selected according to the proxy priority of the neighbor, and then sent to the LLDP master device by specifying the TLV of the target 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 provided method may specifically include:

步骤510,LLDP主设备接收OSS的IP报文,从IP报文中提取简单网络管理协议SNMP报文,SNMP报文中携带有待配置的LLDP目标设备的标识信息以及待配置的LLDP目标设备所需的配置信息。Step 510, the LLDP master device receives the IP message of the OSS, extracts the Simple Network Management Protocol SNMP message from the IP message, and the SNMP message carries the identification information of the LLDP target device to be configured and the LLDP target device to be configured. configuration information.

具体地,OSS是一个综合的业务运营和管理平台,能够管理LLDP主设备。LLDP主设备接收LLDP目标设备的SNMP能力,比如所支持的SNMP版本信息等。LLDP主设备会将LLDP的SNMP能力进行转换后上报给OSS。该转换过程主要是考虑LLDP主设备支持的SNMP版本和LLDP目标设备支持的SNMP版本可能不一致,一般可根据LLDP目标设备携带的SNMP标识,将LLDP目标设备支持的SNMP版本转换成LLDP主设备和OSS支持的SNMP版本。不同SNMP版本标识设备的方式不同,比如有些版本是以团体名标识LLDP目标设备,有些版本是以用户名标识LLDP目标设备,那么具体的转换内容可以是在团体名和用户名之间进行转换。LLDP主设备也会接收到OSS下发的携带有LLDP目标设备标识管理请求信息,比如:查询请求信息或配置请求信息。该管理请求信息是需要与LLDP目标设备标识相对应的LLDP目标设备接收。而充当代理角色的LLDP主设备是负责将该管理请求信息发送至LLDP目标设备。Specifically, the OSS is a comprehensive service operation and management platform capable of managing LLDP master devices. The LLDP master device receives the SNMP capability of the LLDP target device, such as the supported SNMP version information. The LLDP master device will convert the SNMP capability of LLDP and report it to OSS. This conversion process is mainly to consider that the SNMP version supported by the LLDP master device may be inconsistent with the SNMP version supported by the LLDP target device. Generally, the SNMP version supported by the LLDP target device can be converted to the LLDP master device and OSS according to the SNMP identifier carried by the LLDP target device. Supported SNMP versions. Different SNMP versions identify devices in different ways. For example, some versions identify LLDP target devices by community names, and some versions identify LLDP target devices by user names. The specific conversion content can be converted between community names and user names. The LLDP master device will also receive management request information carrying the LLDP target device ID sent by the OSS, such as query request information or configuration request information. The management request information needs to be 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 may include parameters and related values that need to be configured for the LLDP target device to be configured.

本发明实施例提供的设备管理方法,在步骤510之前,还包括:步骤500,LLDP主设备还需要获取LLDP目标设备的拓扑结构,将LLDP目标设备的拓扑结构上报给OSS。The device management method provided by the embodiment of the present invention, before 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 OSS.

如果LLDP主设备连接的LLDP目标设备组成环网结构,则获取LLDP目标设备的拓扑结构具体可以是:If the LLDP target device connected to the LLDP master device forms a ring network structure, the specific topology structure of the LLDP target device can be obtained as follows:

LLDP主设备向LLDP目标设备发送邻居通告报文。The LLDP master device sends Neighbor Advertisement packets to the LLDP target device.

LLDP目标设备将自身的标识信息以及接收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳LLDP目标设备发送。LLDP目标设备可以以设备标识TLV和接口标识TLV的方式将自身的标识信息以及接收到邻居通告报文的接口信息添加到邻居通告报文中,LLDP目标设备还可以将自身支持的SNMP版本号和标识添加到邻居通告报文中,LLDP目标设备支持的SNMP版本号和SNMP标识可以以表7所示的TLV的形式添加到邻居通告报文中。The LLDP target device adds its own identification information and the interface information of the received neighbor advertisement message to the neighbor advertisement message and sends it to the next-hop LLDP target device. 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 form of the device identification TLV and interface identification TLV. The LLDP target device can also add the SNMP version number and The identifier is added to the neighbor advertisement message, and the SNMP version number and SNMP identifier supported by the LLDP target device can be added to the neighbor advertisement message in the form of the TLV shown in Table 7.

由于是环网结构,LLDP主设备所发送的邻居通告报文最终会回到LLDP主设备上,LLDP主设备收到的邻居通告报文会携带有一个方向上的LLDP目标设备的设备标识TLV和接口标识TLV,这样,LLDP主设备可以知道一个方向上的拓扑结构。Due to the ring network structure, the Neighbor Advertisement packets 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 identification TLV 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 bidirectional topology structure, the LLDP master device can send a Neighbor Advertisement packet in two different directions, so that the LLDP master device will receive two Neighbor Advertisement packets, and obtain from the two Neighbor Advertisement packets topology in both directions.

假设LLDP主设备在一侧连接第一LLDP目标设备,在另一侧连接第二LLDP目标设备,则LLDP主设备得到两个方向的拓扑结构的过程具体可以包括:Assuming 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 for the LLDP master device to obtain the topology structure in two directions may specifically include:

(1)LLDP主设备向第一LLDP目标设备发送第一邻居通告报文。接收第一邻居通告报文的LLDP目标设备将自身的标识信息以及接收到第一邻居通告报文的接口信息添加到第一邻居通告报文中,并向下一跳LLDP目标设备转发;第一邻居通告报文中还可以携带跳数信息,收到第一邻居通告报文的LLDP目标设备可以修改该跳数信息,比如加1等。(1) The LLDP master device sends a first neighbor advertisement message to the first LLDP target device. The LLDP target device that receives the first neighbor advertisement message adds its own identification information and the interface information that received the first neighbor advertisement message to the first neighbor advertisement message, and forwards it to the next-hop LLDP target device; The hop count information may also be carried in the neighbor advertisement message, and the LLDP target device receiving the first neighbor advertisement message may modify the hop count information, for example, add 1 and so on.

(2)LLDP主设备向第二LLDP目标设备发送第二邻居通告报文。接收所述第二邻居通告报文的LLDP目标设备将自身的标识信息以及接收到第二邻居通告报文的接口信息添加到第二邻居通告报文中,并向下一跳LLDP目标设备转发;第二邻居通告报文中也可以携带跳数信息,收到第二邻居通告报文的LLDP目标设备可以将跳数加1。(2) The LLDP master device sends a second neighbor advertisement message to the second LLDP target device. The LLDP target device receiving the second Neighbor Advertisement message adds its own identification information and the interface information receiving the second Neighbor Advertisement message to the second Neighbor Advertisement message, and forwards it to the next-hop LLDP target device; The hop count information may also be carried in the second neighbor advertisement message, and the LLDP target device receiving the second neighbor advertisement message may add 1 to the hop count.

(3)LLDP主设备接收第一邻居通告报文和第二邻居通告报文,根据接收的第一邻居通告报文和第二邻居通告报文获取所述一个或多个LLDP目标设备的拓扑结构。(3) 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 .

LLDP主设备接收的第一邻居通告报文和第二邻居通告报文中携带有LLDP目标设备的设备标识TLV和接口标识TLV,从这些设备标识TLV和接口标识TLV中可以得到整个环网两个方向上的拓扑结构。The first and second NA packets received by the LLDP master device carry the device ID TLV and interface ID TLV of the LLDP target device. From these device ID TLVs and interface ID TLVs, two direction topology.

为了能让LLDP目标设备识别LLDP主设备,LLDP主设备还可以在发送的邻居通告报文中携带Proxy标识,这样LLDP目标设备可以根据这个Proxy标识识别出能和OSS通信的LLDP主设备。In order for the LLDP target device to identify the LLDP master device, the LLDP master device can also carry the Proxy ID in the neighbor notification message sent, so that the LLDP target device can identify the LLDP master device that can communicate with the OSS based on the Proxy ID.

LLDP主设备获取两个方向的拓扑结构后,还可以在本地生成邻居表项,邻居表项可以包括邻居设备的标识信息,到达邻居的网络拓扑信息,如出接口等,邻居表项中还可以包括邻居的SNMP版本号和SNMP标识等。邻居表中还可以包括LLDP主设备到每个LLDP目标设备的跳数等。After the LLDP master device obtains the topology structure in both directions, it can also generate neighbor entries locally. The neighbor entries can include the identification information of the neighbor device and the network topology information reaching the neighbor, such as the outgoing interface. The neighbor entry can also include Including the SNMP version number and SNMP ID of the neighbor. The neighbor table may also include the number of hops from the LLDP master device to each LLDP target device, and the like.

如果LLDP主设备连接的LLDP目标设备组成非环网结构,则获取LLDP目标设备的拓扑结构具体可以是:If the LLDP target device connected to the LLDP master device forms a non-ring network structure, the specific topology structure of the LLDP target device can be obtained as follows:

(1)LLDP主设备接收邻居通告报文,该邻居通告报文中携带有设备标识TLV和接口标识TLV,LLDP主设备从这些设备标识TLV和接口标识TLV中识别出处于链路末端的LLDP目标设备,获取处于链路末端的LLDP目标设备的标识信息以及从链路末端的LLDP目标设备到LLDP主设备的网络拓扑结构;(1) The LLDP master device receives the neighbor advertisement message, which carries the device identification TLV and the interface identification TLV, and the LLDP master device identifies the LLDP target at the end of the link from the device identification TLV and the interface identification TLV The device obtains the identification information of the LLDP target device at the end of the link and the network topology from the LLDP target device at the end of the link 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 identify the Topology query request.

(3)LLDP目标设备收到拓扑查询请求后,识别出是拓扑查询请求后,将自身的标识信息以及接收到拓扑查询请求的接口信息添加到拓扑查询请求中,向下一跳LLDP目标设备转发。LLDP目标设备可以以设备标识TLV和接口标识TLV的形式将自身的标识信息以及接收到拓扑查询请求的接口信息添加到拓扑查询请求中。(3) After receiving the topology query request, the LLDP target device recognizes that it is a topology query request, adds its own identification information and the interface information that received the topology query request to the topology query request, and forwards it to the next-hop LLDP target device . The LLDP target device may add its own identification information and interface information that receives the topology query request to the topology query request in the form of a device identifier TLV and an interface identifier TLV.

拓扑查询请求中可以携带跳数信息,中间的LLDP目标设备收到拓扑查询请求后,可以将跳数减1,减1后为0的LLDP目标设备可以就是链路末端的LLDP目标设备,当然,LLDP目标设备也可以根据拓扑查询请求中的LLDP目标设备的标识信息来识别自己是否是链路米端的LLDP目标设备。The topology query request can carry hop count information. After receiving the topology query request, the LLDP target device in the middle can reduce the hop count by 1, and the LLDP target device that is 0 after the deduction can be the LLDP target device at the end of the link. Of course, The LLDP target device can also identify whether it is the LLDP target device at the end of the link according to the identification 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 the LLDP target device at the end of the link receives the topology query request, it encapsulates the topology information of other LLDP target devices carried in the topology query request in the form of link topology TLV (see Table 5), and combines it with the LLDP master device The identification information of the LLDP master device can be carried in the response message in the form of the target option TLV shown in Table 2; during the forwarding process of the response message, other target devices continue to 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 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标识识别出能和OSS通信的LLDP主设备。In order for the LLDP target device to identify the LLDP master device, the LLDP master device can also carry the Proxy ID in the neighbor notification message sent, so that the LLDP target device can identify the LLDP master device that can communicate with the OSS based on the Proxy ID.

LLDP主设备获取LLDP目标设备的拓扑结构后,还可以在本地生成邻居表项,邻居表项可以包括邻居设备的标识信息,到达邻居的网络拓扑信息,如出接口等,邻居表项中还可以包括邻居的SNMP版本号和SNMP标识等。邻居表中还可以包括LLDP主设备到每个LLDP目标设备的跳数等。After the LLDP master device obtains the topology structure of the LLDP target device, it can also generate a neighbor entry locally. The neighbor entry can include the identification information of the neighbor device, the network topology information of the neighbor, such as the outgoing interface, etc. The neighbor entry can also include Including the SNMP version number and SNMP ID of the neighbor. The neighbor table may also include the number of hops from the LLDP master device to each LLDP target device, and the like.

步骤520,LLDP主设备根据待配置的LLDP目标设备的标识信息查询LLDP目标设备的标识信息与LLDP目标设备的转发信息的对应关系,从而获取所述待配置LLDP目标设备的转发信息。Step 520, the LLDP master device queries the correspondence 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, so as 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 on the LLDP master device connected to the LLDP target device to be configured. The process of obtaining the forwarding information is that the LLDP master device queries the neighbor table, which stores the LLDP target device The correspondence between the identification information of the LLDP target device and the forwarding information of the LLDP target device.

LLDP主设备接收到携带有LLDP目标设备标识的管理请求信息后,在LLDP主设备邻居表中查询与LLDP目标设备标识相对应的转发信息。其中,LLDP主设备邻居表如表8所示。After receiving the management request information carrying the LLDP target device ID, the LLDP master device queries the forwarding information corresponding to the LLDP target device ID in the neighbor table of the LLDP master device. Wherein, the neighbor table of the LLDP master device is shown in Table 8.

另外,LLDP主设备接口由打开up变为关闭down,则删除经过该端接口的邻居表项。当有邻居设备的状态发生变化时,LLDP目标设备将自己维护的邻居信息封装成LLDP报文上报给LLDP主设备,由LLDP主设备封装成IP包上报给OSS。In addition, if the interface of the LLDP master device is turned from up to down, the neighbor entries passing through the interface of this end are deleted. When the state of a neighbor device changes, the LLDP target device encapsulates the neighbor information it maintains into an LLDP packet and reports it to the LLDP master device, and the LLDP master device encapsulates it into an IP packet and reports it to the OSS.

步骤530,LLDP主设备将SNMP报文封装成LLDP报文,根据获取的转发信息将LLDP报文转发给待配置的LLDP目标设备,以使得待配置的LLDP目标设备利用配置信息进行配置。Step 530, the LLDP master device encapsulates the SNMP message into an LLDP message, and forwards the LLDP message 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 using the configuration information.

LLDP主设备可以以TLV的形式将SNMP报文封装到LLDP报文中,在封装之前,LLDP主设备还可以根据所述待配置的LLDP目标设备的标识信息获取所述待配置的LLDP目标设备所能识别的SNMP版本信息,按照所述SNMP版本信息对所述待配置的LLDP目标设备所需的配置信息进行转换。The LLDP master device can encapsulate the SNMP message into the LLDP message in the form of TLV. Before the encapsulation, the LLDP master device can also obtain the information of the LLDP target device to be configured according to the identification information of the LLDP target device to be configured. The identifiable SNMP version information is used to convert the configuration information required by the LLDP target device to be configured according to the SNMP version information.

SNMP报文中携带有配置信息,待配置的LLDP目标设备可以根据配置信息中的参数以及对应的值进行配置。The SNMP message carries configuration information, and the LLDP target device to be configured can be configured according to the parameters and corresponding values in the configuration information.

因此,本发明实施例提供的网络中的设备配置方法,LLDP主设备接收OSS通过SNMP报文形式发送的携带有LLDP目标设备标识的管理请求信息,根据LLDP目标设备标识获取LLDP目标设备的转发信息,根据LLDP目标设备的转发信息将管理请求信息通过SNMP报文封装到LLDP报文的形式发送至LLDP目标设备,当接收LLDP目标设备通过SNMP报文封装到LLDP报文形式发送的管理请求响应信息后,将管理请求响应信息解封装成SNMP报文,并向OSS发送,从而无需获取IP地址也能实现OSS对LLDP目标设备的远程管理。Therefore, in the device configuration method in the network provided by the embodiment of the present invention, the LLDP master device receives the management request information carrying the LLDP target device identifier sent by the OSS in the form of an SNMP message, and obtains the forwarding information of the LLDP target device according to the LLDP target device identifier According to the forwarding information of the LLDP target device, the management request information is encapsulated into the LLDP message through the SNMP message and sent to the LLDP target device. Finally, the management request response information is decapsulated into an SNMP message and sent to the OSS, so that the OSS can remotely manage the LLDP target device without obtaining an IP address.

图6为本发明实施例提供的网络中的设备配置方法的流程图。如图所示,本发明实施例具体包括:Fig. 6 is a flowchart of a device configuration method in a network provided by an embodiment of the present invention. As shown in the figure, the embodiment of the present invention specifically includes:

步骤610,LLDP目标设备接收LLDP主设备通过SNMP报文封装到LLDP报文的形式发送的携带有LLDP目标设备标识的管理请求信息。其中,管理请求信息包括查询请求信息或配置请求信息。Step 610, the LLDP target device receives the management request information carrying the LLDP target device identifier sent by the LLDP master device in the form of encapsulating the SNMP message into an LLDP message. Wherein, the management request information includes query request information or configuration request information.

步骤620,当LLDP目标设备标识与LLDP目标设备标识相同时,则将管理请求信息解封装成SNMP报文,并进行与管理请求信息相对应的处理,从而获得管理请求响应信息。Step 620, when the LLDP target device ID is the same as the LLDP target device ID, decapsulate the management request information into an SNMP message, and perform processing corresponding to the management request information, so as to obtain management request response information.

进一步,步骤620还包括:当报文中目标设备标识与LLDP目标设备标识不同时,在LLDP目标设备转发表中查询与报文中目标设备标识相对应的转发信息;并根据转发信息,插入设备TLV和接口TLV后将该SNMP over LLDP报文向下一跳LLDP目标设备或LLDP主设备转发。Further, step 620 also includes: when the target device identifier in the message is different from the LLDP target device identifier, query the forwarding information corresponding to the target device identifier in the message in the LLDP target device forwarding table; and insert the device according to the forwarding information After the TLV and interface TLV, the SNMP over LLDP packet is forwarded to the next-hop LLDP target device or LLDP master device.

进一步,在步骤620之前还包括:LLDP目标设备主动发送邻居通告,方便中间目标设备和LLDP主设备学习邻居表项。该通告信息中除了LLDP协议定义的标准能力,还包含SNMP版本号、SNMP标识。Further, before step 620, the method further includes: the LLDP target device actively sends a neighbor advertisement, so as to facilitate the intermediate target device and the LLDP master device to learn neighbor entries. In addition to the standard capabilities defined by the LLDP protocol, the notification information also includes an SNMP version number and an SNMP identifier.

LLDP目标设备建立LLDP目标设备邻居表,邻居转发表结果如表9所示。当LLDP目标设备接收到邻居发送的LLDP报文,则学习或者刷新邻居表项,该表项除邻居标识外,还学习到邻居的跳数、接收接口和邻居的Proxy优先级,该接口一般就是转发报文的出接口,而该优先级用来识别邻居是否具有代理管理能力以及代理管理的优先级。一般来说,具有代理管理能力的就是LLDP主设备,当网络规模较大或者对可靠性要求较高时,可以设置两个或两个以上的LLDP主设备,不同的LLDP主设备应该用Proxy表明代理管理的优先级。The LLDP target device establishes the neighbor table of the LLDP target device, and the result of the neighbor forwarding table is shown in Table 9. When the LLDP target device receives the LLDP packet sent by the neighbor, it learns or refreshes the neighbor table entry. In addition to the neighbor ID, the table entry also learns the neighbor’s hop count, the receiving interface, and the neighbor’s proxy priority. The interface is generally The outgoing interface for forwarding packets, and the priority is used to identify whether the neighbor has the proxy management capability and the priority of proxy management. Generally speaking, the LLDP master device is capable of proxy management. When the network scale is large or requires high reliability, two or more LLDP master devices can be set up. Different LLDP master devices should use Proxy to indicate The priority of agent management.

当LLDP目标设备接口由打开up变为关闭down,删除该接口所学习的邻居表项,包括直连邻居和非直连邻居。并且在有邻居状态变化时,LLDP目标设备将自己维护的邻居信息封装成LLDP报文上报给LLDP主设备,由LLDP主设备封装成IP包上报给OSS。When the interface of the LLDP target device changes from up to down, delete the neighbor entries learned by the interface, including directly connected neighbors and non-directly connected neighbors. And when there is a neighbor state change, the LLDP target device encapsulates the neighbor information maintained by itself into an LLDP packet and reports it to the LLDP master device, and the LLDP master device encapsulates it into an IP packet and reports it to the OSS.

步骤630,将管理请求响应信息通过SNMP报文封装到LLDP报文的形式发送LLDP主设备,用以LLDP主设备将管理请求响应信息通过SNMP报文形式转发至运营支撑系统OSS。Step 630: Encapsulate the management request response information into an LLDP message through the SNMP message and send it to the LLDP master device, so that the LLDP master device forwards the management request response information to the operation support system OSS through the SNMP message.

进一步,步骤630还包括:使用SNMP over LLDP发送回应给LLDP主设备时,使用目标设备TLV来指定LLDP主设备,该LLDP主设备可跟据管理请求报文中的源MAC来识别,而不考虑LLDP主设备的Proxy优先级。在转发该报文前,LLDP目标设备也需要学习到达LLDP主设备的转发信息,该转发信息可以在接收到SNMP over LLDP管理请求时学习或者刷新。Further, step 630 also includes: when using SNMP over LLDP to send a response to the LLDP master device, use the target device TLV to specify the LLDP master device, and the LLDP master device can be identified according to the source MAC in the management request message, regardless of Proxy priority of the LLDP master device. Before forwarding the message, the LLDP target device also needs to learn the forwarding information to the LLDP master device, and the forwarding information can be learned or refreshed when receiving an SNMP over LLDP management request.

因此,本发明实施例提供的网络中的设备配置方法,LLDP目标设备接收到LLDP主设备通过SNMP报文封装到LLDP报文的形式发送的携带有LLDP目标设备标识的管理请求信息,当报文中的目标设备标识与LLDP目标设备标识相同时,则将管理请求信息解封装成SNMP报文,并进行与管理请求信息相对应的处理,从而获得管理请求响应信息,将管理请求响应信息通过SNMP报文封装到LLDP报文的形式发送给LLDP主设备,用以LLDP主设备将管理请求响应信息通过SNMP报文形式转发至运营支撑系统OSS,从而无需获取IP地址也能实现OSS对LLDP目标设备的远程管理。Therefore, in the device configuration method in the network provided by the embodiment of the present invention, the LLDP target device receives the management request information carrying the LLDP target device identifier sent by the LLDP master device by encapsulating the LLDP message into an LLDP message. When the target device ID in LLDP is the same as the LLDP target device ID, the management request information will be decapsulated into an SNMP message, and the corresponding processing will be performed to obtain the management request response information, and the management request response information will be passed through SNMP The message is encapsulated into an LLDP message and sent to the LLDP master device, so that the LLDP master device forwards the management request response information to the operation support system OSS in the form of an SNMP message, so that the OSS can communicate with the LLDP target device without obtaining an IP address. remote management.

图7为本本发明实施例提供的网络中的设备配置方法的信息交互图。如图所示,本发明实施例具体包括:FIG. 7 is an information interaction diagram of a device configuration method in a network provided by an embodiment of the present invention. As shown in the figure, the embodiment of the present invention specifically includes:

步骤701,OSS向LLDP主设备通过SNMP报文形式发送携带有LLDP目标设备标识的管理请求信息。其中,管理请求信息包括查询请求信息或配置请求信息。In step 701, the OSS sends management request information carrying the identifier of the LLDP target device to the LLDP master device in the form of an SNMP message. Wherein, the management request information includes query request information or configuration request information.

步骤702,LLDP主设备接收到携带有LLDP目标设备标识的管理请求信息后,判断需要配置的目标设备。如果该目标设置和LLDP主设备一致,则直接处理该配置或者查询请求;如果是作为代理配置其他LLDP目标设备则查询邻居表,并执行步骤703。In step 702, the LLDP master device determines the target device to be configured after receiving the management request information carrying the LLDP target device identifier. If the target setting is consistent with the LLDP master device, the configuration or query request is directly processed; if other LLDP target devices are configured as a proxy, the neighbor table is queried, and step 703 is executed.

步骤703,LLDP主设备根据邻居表中查询出的SNMP版本和SNMP标识,完成SNMP版本和标识转换,并添加LLDP封装,封装中使用目标设备TLV来指定要配置的目标设备,使用SNMP TLV来封装原始SNMP报文,所述报文不包含IP和UDP头。Step 703, the LLDP master device completes the SNMP version and identifier conversion according to the SNMP version and SNMP identifier queried in the neighbor table, and adds LLDP encapsulation, uses the target device TLV in the encapsulation to specify the target device to be configured, and uses the SNMP TLV to encapsulate Original SNMP message, which does not contain IP and UDP headers.

步骤704,LLDP目标设备1接收到LLDP主设备发送的SNMP over LLDP报文后,学习或者刷新邻居表项,并根据报文携带的LLDP目标设备标识与自身的设备标识进行比较,当报文中的目标设备标识与LLDP目标设备1标识相同,则执行步骤707;当报文中的目标设备标识与LLDP目标设备1标识不同,则执行步骤705。Step 704, after the LLDP target device 1 receives the SNMP over LLDP message sent by the LLDP master device, it learns or refreshes the neighbor table entry, and compares the LLDP target device ID carried in the message with its own device ID. If the ID of the target device is the same as the ID of the LLDP target device 1, execute step 707; when the ID of the target device in the packet is different from the ID of the LLDP target device 1, execute step 705.

步骤705,LLDP目标设备1查询邻居表,根据邻居表中的出接口转发管理配置请求;转发前,会插入设备TLV和接收该报文的接口TLV,学习或刷新邻居表项。Step 705, LLDP target device 1 queries the neighbor table, and forwards the management configuration request according to the outgoing interface in the neighbor table; before forwarding, it will insert the device TLV and the interface TLV that receives the message, and learn or refresh the neighbor table entry.

步骤706,LLDP目标设备2接收到LLDP目标设备1转发的管理配置请求报文后,学习或刷新邻居表项,并会对该设备查询报文携带的目标设备标识与自身的设备标识进行比较,当目标设备标识与LLDP目标设备1标识相同,则执行步骤707;当目标设备标识与LLDP目标设备1标识不同,则查询邻居表项并按照邻居表项中的出接口转发给下一跳LLDP目标设备,转发前会插入设备TLV和接收该报文的接口TLV。Step 706, after the LLDP target device 2 receives the management configuration request message forwarded by the LLDP target device 1, it learns or refreshes the neighbor entry, and compares the target device identifier carried in the device query message with its own device identifier, When the target device ID is the same as the LLDP target device 1 ID, execute step 707; when the target device ID is different from the LLDP target device 1 ID, query the neighbor entry and forward it to the next-hop LLDP target according to the outgoing interface in the neighbor entry The device will insert the device TLV and the interface TLV that receives the packet before forwarding.

步骤707,LLDP目标设备2将管理请求信息解封装成SNMP报文,并进行与管理请求信息相对应的处理,从而获得管理请求响应信息。接着执行步骤708。In step 707, the LLDP target device 2 decapsulates the management request information into an SNMP message, and performs processing corresponding to the management request information, thereby obtaining management request response information. Then execute step 708 .

步骤708,LLDP目标设备2将管理请求响应信息通过SNMP over LLDP报文的形式,将SNMP应答报文以SNMP TLV来封装,通过目标设备TLV指定发送给LLDP主设备,发送前会查询邻居表从邻居表中的出接口发送。In step 708, the LLDP target device 2 encapsulates the management request response information in the form of an SNMP over LLDP message, encapsulates the SNMP response message with the SNMP TLV, and sends it to the LLDP master device through the target device TLV. Before sending, it will query the neighbor table from the The outgoing interface in the neighbor table sends.

步骤709,LLDP目标设备1接收到SNMP over LLDP封装的该管理请求响应信息后,学习或者刷新邻居表,并通过目标设备TLV查询邻居表得到出接口。然后执行步骤710。Step 709, after receiving the management request response information encapsulated by SNMP over LLDP, the LLDP target device 1 learns or refreshes the neighbor table, and queries the neighbor table through the target device TLV to obtain the outbound interface. Then step 710 is executed.

步骤710,LLDP目标设备1根据邻居表查询出的出接口转发该LLDP报文,转发前会插入设备TLV和接收该报文的接口TLV。Step 710, the LLDP target device 1 forwards the LLDP message according to the outgoing interface found in the neighbor table, and inserts the device TLV and the interface TLV that receives the message before forwarding.

步骤711,LLDP主设备接收到的管理请求响应信息后,通过目标设备TLV识别出应处理该报文,从SNMP TLV中取出原始SNMP报文,完成SNMP格式和标识转换后,以标准SNMP报文形式回应给运营支撑系统OSS即步骤712,所述标准的SNMP报文以IP报文格式封装。Step 711, after the LLDP master device receives the management request response information, it recognizes that the message should be processed through the target device TLV, takes out the original SNMP message from the SNMP TLV, completes the SNMP format and identification conversion, and uses the standard SNMP message Formal response to the operation support system OSS (step 712), the standard SNMP message is encapsulated in IP message format.

因此,本发明实施例提供的网络中的设备配置方法,LLDP主设备接收OSS通过SNMP报文形式发送的携带有LLDP目标设备标识的管理请求信息,根据报文中的目标设备标识获取LLDP目标设备的转发信息,根据所述转发信息将管理请求信息转发至LLDP目标设备1或LLDP目标设备2,LLDP目标设备1或LLDP目标设备2接收到管理请求信息,当报文中的目标设备标识与LLDP目标设备标识相同时,则将管理请求信息解封装成SNMP报文,并进行与管理请求信息相对应的处理,从而获得管理请求响应信息,将管理请求响应信息通过SNMP报文封装到LLDP报文的形式发送给LLDP主设备,当LLDP主设备接收到LLDP目标设备1或LLDP目标设备2通过SNMP报文封装到LLDP报文形式发送的管理请求响应信息,将管理请求响应信息解封装成SNMP报文,并转换SNMP版本和标识之后以标准SNMP报文格式向OSS发送,从而无需获取IP地址也能实现OSS对LLDP目标设备的远程管理。Therefore, in the device configuration method in the network provided by the embodiment of the present invention, the LLDP master device receives the management request information carrying the LLDP target device identifier sent by the OSS in the form of an SNMP message, and obtains the LLDP target device according to the target device identifier in the message. forwarding information, forward the management request information to LLDP target device 1 or LLDP target device 2 according to the forwarding information, and LLDP target device 1 or LLDP target device 2 receives the management request information, when the target device identifier in the packet is consistent with the LLDP When the target device IDs are the same, the management request information is decapsulated into an SNMP message, and the corresponding processing is performed to obtain the management request response information, and the management request response information is encapsulated into an LLDP message through the SNMP message When the LLDP master device receives the management request response information sent by LLDP target device 1 or LLDP target device 2 by encapsulating SNMP packets into LLDP packets, it decapsulates the management request response information into SNMP packets. After converting the SNMP version and identifier, it sends it to the OSS in a standard SNMP message format, so that the OSS can remotely manage the LLDP target device without obtaining an IP address.

图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 provided by an embodiment of the present invention. The LLDP device is used to execute the device configuration method in the network provided in FIG. 3 to FIG. 7 . As shown in the figure, the embodiment of the present invention specifically includes: a first port 81 , a second port 82 , a data receiver 83 , a processor 84 and a data transmitter 85 .

第一端口81用于连接运营支撑系统OSS;The first port 81 is used to connect to the operation support system OSS;

第二端口82用于连接一个或多个LLDP目标设备;The second port 82 is used to connect one or more LLDP target devices;

数据接收器83用于接收OSS的IP报文,从IP报文中提取简单网络管理协议SNMP报文,SNMP报文中携带有待配置的LLDP目标设备的标识信息以及待配置的LLDP目标设备所需的配置信息;The data receiver 83 is used to receive the IP message of the OSS, extract the Simple Network Management Protocol SNMP message from the IP message, and carry the identification information of the LLDP target device to be configured and the required information of the LLDP target device to be configured in the SNMP message. configuration information;

处理器84用于根据待配置的LLDP目标设备的标识信息查询LLDP目标设备的标识信息与LLDP目标设备的转发信息的对应关系,从而获取待配置LLDP目标设备的转发信息;以及将SNMP报文封装到LLDP报文中;The processor 84 is used to query the correspondence 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; and encapsulating the SNMP message into the LLDP packet;

数据发送器85用于根据获取的转发信息将LLDP报文发送给待配置的LLDP目标设备,以使得LLDP目标设备利用配置信息进行配置。The data transmitter 85 is configured to send the LLDP message to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device uses configuration information for configuration.

在一个实施例中,处理器84还用于获取一个或多个LLDP目标设备的拓扑结构;数据发送器还用于将获取的拓扑结构上报给OSS。In one embodiment, the processor 84 is further configured to acquire the topology of one or more LLDP target devices; the data transmitter is also configured to report the acquired topology to the OSS.

另一个实施例中,一个或多个LLDP目标设备与LLDP主设备组成环网结构,则数据发送器85,还用于向一个或多个LLDP目标设备发送邻居通告报文,以使得接收到邻居通告报文的LLDP目标设备将自身的标识信息以及接收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳LLDP目标设备发送;数据接收器83,还用于接收邻居通告报文;处理器84,还用于从接收的邻居通告报文中获取一个或多个LLDP目标设备的拓扑结构。In another embodiment, one or more LLDP target devices and the LLDP master device form a ring network structure, then the data transmitter 85 is also used to send a neighbor notification message to one or more LLDP target devices, so that the neighbors can be received The LLDP target device of the notification message adds its own identification information and the interface information that receives the Neighbor Advertisement message to the Neighbor Advertisement message and sends it to the next-hop LLDP target device; the data receiver 83 is also used to receive the Neighbor Advertisement report The processor 84 is also configured to obtain the topology structure of one or more LLDP target devices from the received Neighbor Advertisement message.

因此,本发明实施例提供的LLDP设备,接收OSS通过SNMP报文形式发送的携带有LLDP目标设备标识的管理请求信息,根据LLDP目标设备标识获取LLDP目标设备的转发信息,根据LLDP目标设备的转发信息将管理请求信息通过SNMP报文封装到LLDP报文的形式发送至LLDP目标设备,当接收LLDP目标设备通过SNMP报文封装到LLDP报文形式发送的管理请求响应信息后,将管理请求响应信息解封装成SNMP报文,并向OSS发送,从而无需获取IP地址也能实现OSS对LLDP目标设备的远程管理。Therefore, the LLDP device provided by the embodiment of the present invention receives the management request information carrying the LLDP target device identifier sent by the OSS in the form of an SNMP message, obtains the forwarding information of the LLDP target device according to the LLDP target device identifier, and obtains the forwarding information of the LLDP target device according to the forwarding information of the LLDP target device. The information sends the management request information to the LLDP target device in the form of SNMP packets encapsulated into LLDP packets. After receiving the management request response information sent by the LLDP target device in the form of LLDP packets encapsulated in SNMP packets, the management request response information Decapsulate it into an SNMP message and send it to the OSS, so that the OSS can remotely manage the LLDP target device without obtaining an IP address.

图9为本发明实施例提供的设备配置系统的结构示意图。如图所示,该设备配置系统链路层发现协议LLDP主设备91以及一个或多个LLDP目标设备92,一个或多个LLDP目标设备92通过LLDP主设备91连接OSS。FIG. 9 is a schematic structural diagram of a device configuration system provided by an embodiment of the present invention. As shown in the figure, the device is configured with a 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 are connected to the OSS through the LLDP master device 91 .

LLDP主设备91,用于接收运营支撑系统OSS的IP报文,从IP报文中提取简单网络管理协议SNMP报文,SNMP报文中携带有待配置的LLDP目标设备的标识信息以及待配置的LLDP目标设备所需的配置信息;根据待配置的LLDP目标设备的标识信息查询LLDP目标设备的标识信息与LLDP目标设备的转发信息的对应关系,从而获取待配置LLDP目标设备的转发信息;以及将SNMP报文封装到LLDP报文中,根据获取的转发信息将LLDP报文发送给待配置的LLDP目标设备,以使得LLDP目标设备利用配置信息进行配置。The LLDP main device 91 is used to receive the IP message of the operation support system OSS, extract the Simple Network Management Protocol SNMP message from the IP message, and carry the identification information of the LLDP target device to be configured and the LLDP message to be configured in the SNMP message The configuration information required by the target device; according to the identification information of 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, thereby obtaining the forwarding information of the LLDP target device to be configured; and the SNMP The message is encapsulated into the LLDP message, and the LLDP message is sent to the LLDP target device to be configured according to the obtained forwarding information, so that the LLDP target device uses the configuration information for configuration.

在一个实施例中,LLDP主设备91还用于获取一个或多个LLDP目标设备的拓扑结构,将获取的拓扑结构上报给OSS。In one embodiment, the LLDP master device 91 is further configured to obtain the topology structure of one or more LLDP target devices, and report the obtained topology structure to the OSS.

另一个实施例中,一个或多个LLDP目标设备92与LLDP主设备91组成环网结构,则LLDP主设备91具体用于,向一个或多个LLDP目标设备发送邻居通告报文;接收邻居通告报文,从接收的邻居通告报文中获取一个或多个LLDP目标设备的拓扑结构;LLDP目标设备用于,接收邻居通告报文,将自身的标识信息以及接收到邻居通告报文的接口信息添加到邻居通告报文中向下一跳LLDP目标设备发送。In another embodiment, one or more LLDP target devices 92 and LLDP master device 91 form a ring network structure, then the LLDP master device 91 is specifically used to send a neighbor notification message to one or more LLDP target devices; receive a neighbor notification message, obtain the topology structure of one or more LLDP target devices from the received Neighbor Advertisement message; the LLDP target device is used to receive the Neighbor Advertisement message, and send its own identification information and the interface information that received the Neighbor Advertisement message Added to the Neighbor Advertisement message and sent to the next-hop LLDP target device.

专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (17)

1. the equipment configuration method in a kind of network, the network include OSS OSS, Link Layer Discovery Protocol LLDP Main equipment and one or more LLDP target devices, one or more of LLDP target devices pass through the LLDP main equipments Connect the OSS, methods described includes:
The LLDP main equipments receive the IP messages of the OSS, and Simple Network Management Protocol SNMP is extracted from the IP messages Message, carries the identification information and the LLDP mesh to be configured of LLDP target devices to be configured in the SNMP messages Configuration information needed for marking device;
Mark of the LLDP main equipments according to the identification information-enquiry LLDP target devices of the LLDP target devices to be configured The corresponding relation of the forwarding information of knowledge information and LLDP target devices, so as to obtain the forwarding of the LLDP target devices to be configured Information;
The SNMP messages are packaged into LLDP messages by the LLDP main equipments, are reported the LLDP according to the forwarding information for obtaining Text is sent to the LLDP target devices to be configured, so that the LLDP target devices are matched somebody with somebody using the configuration information Put.
2. the equipment configuration method in network according to claim 1, it is characterised in that the forward packets of the acquisition Include the outgoing interface for connecting the LLDP target devices to be configured on the LLDP main equipments.
3. the equipment configuration method in network according to claim 1, it is characterised in that the LLDP main equipments will be described SNMP messages are packaged into LLDP messages and specifically include:
The LLDP main equipments are encapsulated into the SNMP messages in the LLDP messages in the form of type lengths values TLV.
4. the equipment configuration method in network according to claim 3, it is characterised in that the LLDP messages are also carried For identifying the TLV of the LLDP target devices to be configured, the TLV for identifying LLDP target devices to be configured takes Identification information with the LLDP target devices to be configured.
5. the equipment configuration method in network according to claim 1, it is characterised in that the LLDP main equipments receive institute Also include before the IP messages for stating OSS:
The topological structure of one or more of LLDP target devices is obtained, the topological structure of acquisition is reported into the OSS.
6. the equipment configuration method in network according to claim 5, it is characterised in that one or more of LLDP mesh Marking device constitutes ring network structure with the LLDP main equipments, then obtain the topological structure of one or more of LLDP target devices Specifically include:
The LLDP main equipments send neighbor advertisement message to one or more of LLDP target devices, so that receiving neighbour The LLDP target devices of notification packet are occupied by the identification information of itself and the interface message addition of neighbor advertisement message is received To in neighbor advertisement message, down hop LLDP target device sends;
The LLDP main equipments receive neighbor advertisement message, from the neighbor advertisement message for receiving obtain one or more of The topological structure of LLDP target devices.
7. the equipment configuration method in network according to claim 6, it is characterised in that the LLDP main equipments are in side Connect a LLDP target devices, connect the 2nd LLDP target devices in opposite side, the LLDP main equipments to one or Multiple LLDP target devices send neighbor advertisement message and specifically include:
The LLDP main equipments send the first neighbor advertisement message to a LLDP target devices, so that receiving described the The LLDP target devices of one neighbor advertisement message are by the identification information of itself and receive the interface of the first neighbor advertisement message Information is added in the first neighbor advertisement message, and the forwarding of down hop LLDP target device;
The LLDP main equipments send the second neighbor advertisement message to the 2nd LLDP target devices, so that receiving described the The LLDP target devices of two neighbor advertisement messages are by the identification information of itself and receive the interface of the second neighbor advertisement message Information is added in the second neighbor advertisement message, and the forwarding of down hop LLDP target device;
The LLDP main equipments receive the first neighbor advertisement message and the second neighbor advertisement message, are led to according to the first neighbours for receiving Accuse the topological structure of message and the one or more of LLDP target devices of the second neighbor advertisement Receive message.
8. the equipment configuration method in network according to claim 7, it is characterised in that the first neighbor advertisement message Proxy marks are acted on behalf of with also carrying in the second neighbor advertisement message, so that reception the first neighbor advertisement message, Or the LLDP target devices of the second neighbor advertisement message learn the identification information of the LLDP main equipments.
9. the equipment configuration method in network according to claim 5, it is characterised in that one or more of LLDP mesh Marking device constitutes non-ring network structure with the LLDP main equipments, then obtain the topology knot of one or more of LLDP target devices Structure is specifically included:
The LLDP main equipments receive the neighbor advertisement message of LLDP target devices, obtain and be in from the neighbor advertisement message The topology of the identification information of the LLDP target devices of link end and the arrival LLDP target devices in link end Information;
The LLDP main equipments are according to the topology information of the LLDP target devices for reaching the link end to the link end LLDP target devices send Query of Topological request so that receive the LLDP target devices of Query of Topological request by itself Identification information and receive the interface message of Query of Topological request and be added in Query of Topological request, and down hop LLDP Target device is forwarded;
Receive the response message for Query of Topological request of the LLDP target devices from link end, the response message In carry from the LLDP main equipments to the topological structure of the link end LLDP target devices and from the link end Topological structure of the end LLDP target devices to the LLDP main equipments;
The LLDP main equipments according to the response message of link end equipment carry from the LLDP main equipments to the link The topological structure of end LLDP target devices and from link end LLDP target devices the opening up to the LLDP main equipments Flutter Structure Calculation and go out full link topology.
10. the equipment configuration method in network according to claim 9, it is characterised in that in the Query of Topological request Proxy marks are carried also, so that the LLDP target devices for receiving the Query of Topological request learn the LLDP main equipments Identification information.
Equipment configuration method in 11. networks according to claim 1-10 any one, it is characterised in that the LLDP Before the SNMP messages are encapsulated into LLDP messages by main equipment, methods described also includes:
The LLDP main equipments are additionally operable to obtain described to be configured according to the identification information of the LLDP target devices to be configured The SNMP version informations that can recognize of LLDP target devices, according to the SNMP version informations to the LLDP mesh to be configured Configuration information needed for marking device is changed.
12. a kind of Link Layer Discovery Protocol LLDP equipment, it is characterised in that the equipment includes:
First interface, for connecting OSS OSS;
Second interface, for connecting one or more LLDP target devices;
Data sink, for receiving the IP messages of the OSS, extracts Simple Network Management Protocol SNMP from the IP messages Message, carries the identification information and the LLDP mesh to be configured of LLDP target devices to be configured in the SNMP messages Configuration information needed for marking device;
Processor, the mark for the identification information-enquiry LLDP target devices according to the LLDP target devices to be configured are believed The corresponding relation of the forwarding information of breath and LLDP target devices, so as to the forwarding for obtaining the LLDP target devices to be configured is believed Breath;And the SNMP messages are encapsulated in LLDP messages;
Data transmitter, for the LLDP messages are sent to the LLDP to be configured according to the forwarding information of the acquisition Target device, so that the LLDP target devices are configured using the configuration information.
13. LLDP equipment according to claim 12, it is characterised in that
The processor is additionally operable to the topological structure for obtaining one or more of LLDP target devices;
The data transmitter is additionally operable to for the topological structure of acquisition to report the OSS.
14. LLDP equipment according to claim 13, it is characterised in that one or more of LLDP target devices and institute LLDP main equipments composition ring network structure is stated, then
The data transmitter, is additionally operable to send neighbor advertisement message to one or more of LLDP target devices, so that The LLDP target devices of neighbor advertisement message are received by the identification information of itself and the interface of neighbor advertisement message is received During information is added to neighbor advertisement message, down hop LLDP target device sends;
The data sink, is additionally operable to receive neighbor advertisement message;
The processor, is additionally operable to obtain opening up for one or more of LLDP target devices from the neighbor advertisement message for receiving Flutter structure.
15. a kind of equipment configuration systems, it is characterised in that the system includes Link Layer Discovery Protocol LLDP main equipments and one Individual or multiple LLDP target devices, one or more of LLDP target devices connect OSS by the LLDP main equipments,
The LLDP main equipments, for receiving the IP messages of OSS OSS, extract simple network from the IP messages Management agreement SNMP messages, carry the identification information of LLDP target devices to be configured and described treat in the SNMP messages Configuration information needed for the LLDP target devices of configuration;According to the identification information-enquiry of the LLDP target devices to be configured The corresponding relation of the identification information of LLDP target devices and the forwarding information of LLDP target devices, it is described to be configured so as to obtain The forwarding information of LLDP target devices;And the SNMP messages are encapsulated in LLDP messages, according to the forwarding of the acquisition The LLDP messages are sent to the LLDP target devices to be configured by information, so that the LLDP target devices utilize institute State configuration information to be configured.
16. equipment configuration systems according to claim 15, it is characterised in that the LLDP main equipments are additionally operable to obtain institute The topological structure of one or more LLDP target devices is stated, the topological structure of acquisition is reported into the OSS.
17. equipment configuration systems according to claim 16, it is characterised in that one or more of LLDP target devices Ring network structure is constituted with the LLDP main equipments, then
The LLDP main equipments are specifically for sending neighbor advertisement message to one or more of LLDP target devices;Receive Neighbor advertisement message, obtains the topological structure of one or more of LLDP target devices from the neighbor advertisement message for receiving;
The LLDP target devices are used for, and receive neighbor advertisement message, by the identification information of itself and receive neighbor advertisement During the interface message of message is added to neighbor advertisement message, down hop LLDP target device sends.
CN201380000237.3A 2013-01-16 2013-01-16 Method, device, and system for configuring device in network Active CN104205729B (en)

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 (2)

Publication Number Publication Date
CN104205729A CN104205729A (en) 2014-12-10
CN104205729B true CN104205729B (en) 2017-04-19

Family

ID=51208933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380000237.3A Active CN104205729B (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
CN108833606A (en) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 A kind of two-layer equipment configuration method, tension management equipment, infrastructure devices and system
CN115277401B (en) * 2022-07-20 2024-05-14 浪潮思科网络科技有限公司 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
CN110808847B (en) * 2019-09-23 2021-10-15 三维通信股份有限公司 Method and device for managing DAS system, electronic device, storage medium
CN113972995B (en) * 2020-07-24 2023-04-28 华为技术有限公司 Network configuration method and device
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
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
WO2012080251A1 (en) * 2010-12-17 2012-06-21 Siemens Aktiengesellschaft Method for configuring one or more devices in an ethernet-based communication network

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
US8442072B2 (en) * 2007-05-25 2013-05-14 Futurewei Technologies, Inc. Method of preventing transport leaks in hybrid switching networks by extension of the link layer discovery protocol (LLDP)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
WO2012080251A1 (en) * 2010-12-17 2012-06-21 Siemens Aktiengesellschaft Method for configuring one or more devices in an ethernet-based communication network
CN102318274A (en) * 2011-07-29 2012-01-11 华为技术有限公司 Utilize LLDP to obtain the method and system of network connection information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833606A (en) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 A kind of two-layer equipment configuration method, tension management equipment, infrastructure devices and system
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
CN104205729A (en) 2014-12-10
WO2014110737A1 (en) 2014-07-24

Similar Documents

Publication Publication Date Title
EP2600573B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
CN104935516B (en) Communication system and method based on software defined network
US8743879B2 (en) Label switched routing to connect low power network domains
CN107070691B (en) Cross-host communication method and system of Docker container
CN104205729B (en) Method, device, and system for configuring device in network
US20150188723A1 (en) Interoperability of data plane based overlays and control plane based overlays in a network environment
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
US20160330167A1 (en) Arp Implementation Method, Switch Device, and Control Device
CN113170005B (en) Method and device for supporting selective forwarding of messages in a network of communicatively coupled communication devices
WO2018214809A1 (en) Message transmission method and device, and storage medium
CN107147580B (en) Tunnel establishment method and communication system
CN103944867A (en) Dynamic host configuration protocol (DHCP) message processing method, device and system
CN112532756B (en) Interface expansion method, device and system
WO2020220459A1 (en) Vxlan and openflow-based method and system for sharing virtual home network
WO2016107269A1 (en) Device and method for data transmission in virtual extensible local area network
CN104348728B (en) Generate the method and apparatus of forwarding information
US9503272B2 (en) Fast convergence with multicast source mobility
CN103490968A (en) Method and device for interconnecting across data centers in FCoE network
CN105897542B (en) Tunnel establishment method and video monitoring system
CN104378302B (en) Address corresponding relation sending method and route bridge device
CN108696370A (en) A kind of server and business-binding reconciliation binding method, apparatus and system
WO2018045949A1 (en) Message transmission method, device and network system
CN107547691B (en) Address resolution protocol message proxy method and device
CN103780468B (en) Method, intelligent terminal and the route-bridge of intelligent terminal access TRILL network
WO2022267500A1 (en) Method and apparatus for processing multicast message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171213

Address after: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee after: Guangdong Gaohang Intellectual Property Operation Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171220

Address after: 402260 Chongqing city Jiangjin Luohuang Industrial Park B District

Patentee after: Chongqing Hanyuan Machinery Co., Ltd.

Address before: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee before: Guangdong Gaohang Intellectual Property Operation Co., Ltd.

TR01 Transfer of patent right