Movatterモバイル変換


[0]ホーム

URL:


CN108833606A - A second-layer device configuration method, upper-layer management device, lower-layer device and system - Google Patents

A second-layer device configuration method, upper-layer management device, lower-layer device and system
Download PDF

Info

Publication number
CN108833606A
CN108833606ACN201810551713.5ACN201810551713ACN108833606ACN 108833606 ACN108833606 ACN 108833606ACN 201810551713 ACN201810551713 ACN 201810551713ACN 108833606 ACN108833606 ACN 108833606A
Authority
CN
China
Prior art keywords
lldp
configuration
mac address
information
message
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.)
Pending
Application number
CN201810551713.5A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co LtdfiledCriticalZhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810551713.5ApriorityCriticalpatent/CN108833606A/en
Publication of CN108833606ApublicationCriticalpatent/CN108833606A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种二层设备配置方法,上层管理设备从下层设备处获取出厂即具备且唯一的MAC地址,并为这些MAC地址分配相应的待配置信息以得到成对的配置识别信息,同时在原有LLDP协议报文构成的基础上,将配置识别信息加入自定义字段以生成并广播包含待配置信息的LLDP配置报文,使得各下层设备根据与自身MAC地址对应的待配置信息完成相应的配置。在允许范围内对原有LLDP协议报文进行改造,使其可以携带待配置信息,无需使用其它协议即可完成待配置信息的配置,代码复杂度更低。本申请还同时公开了一种上层管理设备、下层设备、包括上层管理设备和下层设备的二层设备配置系统以及计算机可读存储介质,具有上述有益效果。

This application discloses a two-layer device configuration method. The upper-layer management device obtains the unique MAC address that is available at the factory from the lower-layer device, and assigns corresponding information to be configured for these MAC addresses to obtain paired configuration identification information. Based on the composition of the original LLDP protocol message, the configuration identification information is added to the custom field to generate and broadcast the LLDP configuration message containing the information to be configured, so that each lower-layer device completes the corresponding configuration according to the information to be configured corresponding to its own MAC address. configure. The original LLDP protocol message is modified within the allowable range, so that it can carry the information to be configured, and the configuration of the information to be configured can be completed without using other protocols, and the code complexity is lower. The present application also discloses an upper-layer management device, a lower-layer device, a two-layer device configuration system including the upper-layer management device and the lower-layer device, and a computer-readable storage medium, which have the above-mentioned beneficial effects.

Description

Translated fromChinese
一种二层设备配置方法、上层管理设备、下层设备及系统A second-layer device configuration method, upper-layer management device, lower-layer device and system

技术领域technical field

本申请涉及参数配置技术领域,特别涉及一种二层设备配置方法、上层管理设备、下层设备、包括上层管理设备和下层设备的二层设备配置系统以及计算机可读存储介质。The present application relates to the technical field of parameter configuration, and in particular to a layer-2 device configuration method, an upper-layer management device, a lower-layer device, a layer-2 device configuration system including the upper-layer management device and the lower-layer device, and a computer-readable storage medium.

背景技术Background technique

当前情况下,网络设备在首次出厂后的第一次部署时,还未拥有分配给自己的IP等后续通信所需的配置信息,因此在创建集群和实现正常远程连接前,还需要对其进行必要参数的配置。In the current situation, when the network device is deployed for the first time after leaving the factory for the first time, it does not have the configuration information required for subsequent communication such as the IP assigned to it. Therefore, it needs to be configured before creating a cluster and realizing normal remote connection. Configuration of necessary parameters.

当一次需要配置的设备的数量较多时,面对巨大的工作量,一台台的进行配置的效率无疑是极低的,会耗费较多的时间成本和人力成本,因此寻找一种能够快速完成必要参数配置的方法是当前研究的重点。When the number of devices that need to be configured at one time is large, the efficiency of configuring each device is undoubtedly extremely low in the face of a huge workload, which will consume more time and labor costs. Therefore, it is necessary to find a device that can be quickly completed. The method of necessary parameter configuration is the focus of current research.

LLDP(Link Layer Discovery Protocol,链路层发现协议)是一个定义在802.1ab(当前广泛遵循的网络标准)中已被广泛应用的二层(链路层)协议,LLDP可以使得接入网络的设备可以将其主要的能力、管理地址、设备标识以及接口标识等信息发送给接入同一个局域网络的其它设备。当一个设备从网络中接收到其它设备的这些信息时,它就将这些信息以特定形式存储起来,这些存储起来的信息可用于发现设备的物理拓扑结构以及管理配置信息。LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) is a layer 2 (link layer) protocol defined in 802.1ab (the current widely followed network standard) that has been widely used. LLDP can make devices connected to the network It can send information such as its main capability, management address, device ID, and interface ID to other devices connected to the same local area network. When a device receives the information from other devices in the network, it stores the information in a specific form, and the stored information can be used to discover the physical topology of the device and manage configuration information.

但LLDP仅被设计用于进行信息通告,用于通告一个设备的信息并获得其它设备的信息,进而得到相关的MIB(Management Information Base,管理信息库)信息。它不是一个配置、控制协议,标准LLDP协议无法对远端设备进行配置,只提供了可以用于建立网络拓扑以及后续用于管理和配置的所需信息。LLDP现今广泛应用于发现直连设备的信息,但在完成配置数量众多的下层设备必要的参数信息时,还需要使用其它的协议完成,更加繁琐和复杂。However, LLDP is only designed for information notification, for notifying information of one device and obtaining information of other devices, and then obtaining related MIB (Management Information Base, Management Information Base) information. It is not a configuration or control protocol. The standard LLDP protocol cannot configure remote devices, but only provides the required information for establishing network topology and subsequent management and configuration. LLDP is now widely used to discover the information of directly connected devices, but it needs to use other protocols to complete the configuration of the necessary parameter information for a large number of lower-layer devices, which is more cumbersome and complicated.

因此,如何克服现有LLDP协议无法用于配置二层设备的技术缺陷是本领域技术人员亟待解决的问题。Therefore, how to overcome the technical defect that the existing LLDP protocol cannot be used to configure a layer-2 device is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本申请的目的是提供一种二层设备配置方法,上层管理设备从下层设备处获取出厂即具备且唯一的MAC地址,并为这些MAC地址分配相应的待配置信息以得到成对的配置识别信息,同时在原有LLDP协议报文构成的基础上,将配置识别信息加入自定义字段以生成并广播包含待配置信息的LLDP配置报文,使得各下层设备根据与自身MAC地址对应的待配置信息完成相应的配置。该方法在允许范围内对原有标准LLDP协议报文进行改造,使其可以携带待配置信息,无需使用其它协议即可完成待配置信息的分发和配置,代码复杂度更低。The purpose of this application is to provide a two-layer device configuration method. The upper-layer management device obtains the unique MAC address that is available at the factory from the lower-layer device, and assigns corresponding information to be configured for these MAC addresses to obtain paired configuration identification information. At the same time, on the basis of the original LLDP protocol message composition, the configuration identification information is added to the custom field to generate and broadcast the LLDP configuration message containing the information to be configured, so that each lower-layer device completes the configuration according to the information to be configured corresponding to its own MAC address. corresponding configuration. This method transforms the original standard LLDP protocol message within the allowable range, so that it can carry the information to be configured, and the distribution and configuration of the information to be configured can be completed without using other protocols, and the code complexity is lower.

本申请的另一目的在于提供了一种上层管理设备、下层设备、包括上层管理设备和下层设备的二层设备配置系统以及计算机可读存储介质。Another object of the present application is to provide an upper-layer management device, a lower-layer device, a two-layer device configuration system including the upper-layer management device and the lower-layer device, and a computer-readable storage medium.

为实现上述目的,本申请提供一种二层设备配置方法,应用于上层管理设备,包括:In order to achieve the above purpose, this application provides a layer 2 device configuration method, which is applied to upper layer management devices, including:

向各下层设备广播LLDP搜索发现报文,以使各所述下层设备返回包含自身MAC地址的LLDP搜索响应报文;Broadcasting an LLDP search discovery message to each lower-layer device, so that each of the lower-layer devices returns an LLDP search response message containing its own MAC address;

响应接收到的LLDP搜索响应报文,提取得到各所述下层设备的MAC地址,并为各所述MAC地址分配对应的待配置信息,得到包含MAC地址和对应待配置信息的各配置识别数据;Responding to the received LLDP search response message, extracting the MAC address of each of the lower-layer devices, and assigning corresponding information to be configured for each of the MAC addresses, and obtaining each configuration identification data including the MAC address and the corresponding information to be configured;

将各所述配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,得到LLDP配置报文;Each described configuration identification data is added as a new field into the self-defined field of the LLDP protocol message to obtain the LLDP configuration message;

向各所述下层设备广播所述LLDP配置报文,以使各所述下层设备利用所述LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成配置。broadcasting the LLDP configuration message to each of the lower-layer devices, so that each of the lower-layer devices completes the configuration by using the information to be configured corresponding to its own MAC address included in the LLDP configuration message.

可选的,该应用于上层管理设备的二层设备配置方法还包括:Optionally, the layer-2 device configuration method applied to the upper-layer management device also includes:

将所述LLDP搜索发现报文和所述LLDP配置报文的目的地址设置为可穿透交换机的目的地址。Set the destination address of the LLDP search discovery message and the LLDP configuration message as the destination address of the traversable switch.

可选的,为各所述MAC地址分配对应的待配置信息,包括:Optionally, assign corresponding information to be configured for each of the MAC addresses, including:

为各所述MAC地址分配按预设分配规则排列于待配置信息列表中的待配置信息。The information to be configured arranged in the list of information to be configured according to a preset allocation rule is allocated to each of the MAC addresses.

可选的,为各所述MAC地址分配按预设分配规则排列于待配置信息列表中的待配置信息,包括:Optionally, allocating the information to be configured in the list of information to be configured according to preset allocation rules for each of the MAC addresses includes:

为各所述MAC地址分配按预设分配规则排列于待配置IP地址列表中的待配置IP地址。Allocating IP addresses to be configured in the list of IP addresses to be configured according to preset allocation rules for each of the MAC addresses.

为实现上述目的,本申请还提供了一种上层管理设备,该上层管理设备包括:In order to achieve the above purpose, the present application also provides an upper management device, the upper management device includes:

LLDP搜索发现报文广播单元,用于向各下层设备广播LLDP搜索发现报文,以使各所述下层设备返回包含自身MAC地址的LLDP搜索响应报文;An LLDP search and discovery message broadcast unit is used to broadcast an LLDP search and discovery message to each lower-layer device, so that each of the lower-layer devices returns an LLDP search response message containing its own MAC address;

配置识别数据生成单元,用于响应接收到的LLDP搜索响应报文,提取得到各所述下层设备的MAC地址,并为各所述MAC地址分配对应的待配置信息,得到包含MAC地址和对应待配置信息的各配置识别数据;The configuration identification data generation unit is used to respond to the received LLDP search response message, extract the MAC addresses of each of the lower-layer devices, and allocate corresponding information to be configured for each of the MAC addresses, and obtain the MAC address and the corresponding information to be configured. Each configuration identification data of the configuration information;

LLDP配置报文生成单元,用于将各所述配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,得到LLDP配置报文;The LLDP configuration message generation unit is used to add each of the configuration identification data as a new field into the custom field of the LLDP protocol message to obtain the LLDP configuration message;

LLDP配置报文广播单元,用于向各所述下层设备广播所述LLDP配置报文,以使各所述下层设备利用所述LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成配置。An LLDP configuration message broadcast unit, configured to broadcast the LLDP configuration message to each of the lower-layer devices, so that each of the lower-layer devices uses the information to be configured corresponding to its own MAC address contained in the LLDP configuration message to complete configuration.

可选的,所述上层管理设备广播将目的地址设定为可穿透交换机的LLDP搜索发现报文和LLDP配置报文。Optionally, the upper-layer management device broadcasts an LLDP discovery message and an LLDP configuration message whose destination address is set to a permeable switch.

可选的,所述配置识别数据生成单元包括:Optionally, the configuration identification data generation unit includes:

列表分配子单元,用于为各所述MAC地址分配按预设分配规则排列于待配置信息列表中的待配置信息。The list allocation subunit is configured to allocate, to each of the MAC addresses, the information to be configured arranged in the list of information to be configured according to a preset allocation rule.

可选的,所述列表分配子单元包括:Optionally, the list allocation subunit includes:

IP地址分配模块,用于为各所述MAC地址分配按预设分配规则排列于待配置IP地址列表中的待配置IP地址。The IP address allocation module is configured to allocate, to each of the MAC addresses, an IP address to be configured arranged in the list of IP addresses to be configured according to a preset allocation rule.

为实现上述目的,本申请还提供了一种二层设备配置方法,应用于下层设备,包括:In order to achieve the above purpose, this application also provides a layer 2 device configuration method, which is applied to the lower layer device, including:

响应上层管理设备广播的LLDP搜索发现报文,向所述上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;Responding to the LLDP search discovery message broadcast by the upper-layer management device, returning an LLDP search response message including its own MAC address to the upper-layer management device;

响应所述上层管理设备根据所述MAC地址和为所述MAC地址分配的待配置信息生成的配置识别信息、并将各所述配置识别信息添加进LLDP协议报文中的自定义字段得到且广播的LLDP配置报文,根据所述LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成自身的配置。Responding to the configuration identification information generated by the upper-layer management device according to the MAC address and the information to be configured assigned to the MAC address, and adding each configuration identification information to a custom field in the LLDP protocol message to obtain and broadcast The LLDP configuration message, and completes its own configuration according to the to-be-configured information corresponding to its own MAC address included in the LLDP configuration message.

可选的,根据所述LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成自身的配置,包括:Optionally, according to the to-be-configured information corresponding to the own MAC address included in the LLDP configuration message, the self-configuration is completed, including:

判断接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址;Judging whether the received LLDP configuration message contains the same MAC address as its own MAC address;

若包含有与自身MAC地址相同的MAC地址,确定与自身MAC地址对应的待配置信息,并调用CLI命令配置所述待配置信息;If it contains the same MAC address as its own MAC address, determine the information to be configured corresponding to its own MAC address, and call the CLI command to configure the information to be configured;

若未包含有与自身MAC地址相同的MAC地址,则判断下一个接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址,直至找到与自身MAC地址相同的MAC地址。If it does not contain the same MAC address as its own MAC address, it is judged whether the next received LLDP configuration message contains the same MAC address as its own MAC address until it finds the same MAC address as its own MAC address.

可选的,该应用于下层设备的二层设备配置方法还包括:Optionally, the layer-2 device configuration method applied to the lower-layer device also includes:

当所述下层设备将与自身MAC地址对应的待配置信息配置完成时,生成并向所述上层设备发送包含自身MAC地址的LLDP配置完成响应报文,以使所述上层管理设备根据接收到的LLDP配置完成响应报文将对应的下层设备的信息配置状态标记为已配置。When the configuration of the information to be configured corresponding to its own MAC address is completed by the lower-layer device, it generates and sends an LLDP configuration completion response message containing its own MAC address to the upper-layer device, so that the upper-layer management device according to the received The LLDP configuration completion response message marks the information configuration status of the corresponding lower-layer device as configured.

为实现上述目的,本申请还提供了一种下层设备,该下层设备包括:In order to achieve the above purpose, the present application also provides a lower-level device, which includes:

LLDP搜索响应报文返回单元,用于响应上层管理设备广播的LLDP搜索发现报文,向所述上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;The LLDP search response message return unit is used to respond to the LLDP search discovery message broadcast by the upper-layer management device, and return the LLDP search response message containing its own MAC address to the upper-layer management device;

LLDP配置报文接收及信息配置单元,用于响应所述上层管理设备根据所述MAC地址和为所述MAC地址分配的待配置信息生成的配置识别信息、并将各所述配置识别信息添加进LLDP协议报文中的自定义字段得到且广播的LLDP配置报文,根据所述LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成自身的配置。The LLDP configuration message receiving and information configuration unit is used to respond to the configuration identification information generated by the upper-layer management device according to the MAC address and the information to be configured assigned to the MAC address, and add each configuration identification information into The self-defined field in the LLDP protocol message obtains and broadcasts the LLDP configuration message, and completes its own configuration according to the to-be-configured information corresponding to its own MAC address included in the LLDP configuration message.

可选的,所述LLDP配置报文接收及信息配置单元包括:Optionally, the LLDP configuration message receiving and information configuration unit includes:

相同MAC地址判断子单元,用于判断接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址;The same MAC address judging subunit is used to judge whether the received LLDP configuration message contains the same MAC address as its own MAC address;

CLI命令配置子单元,用于当包含有与自身MAC地址相同的MAC地址时,确定与自身MAC地址对应的待配置信息,并调用CLI命令配置所述待配置信息;The CLI command configuration subunit is used to determine the information to be configured corresponding to the MAC address of the self when the same MAC address as the own MAC address is included, and call the CLI command to configure the information to be configured;

继续寻找子单元,用于当未包含有与自身MAC地址相同的MAC地址时,判断下一个接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址,直至找到与自身MAC地址相同的MAC地址。Continue to search for subunits, which are used to determine whether the next received LLDP configuration message contains the same MAC address as its own MAC address when it does not contain the same MAC address as its own MAC address, until it finds the same MAC address as its own MAC address. same MAC address.

可选的,该下层管理设备还包括:Optionally, the lower-layer management device also includes:

LLDP配置完成响应报文反馈单元,用于当所述下层设备将与自身MAC地址对应的待配置信息配置完成时,生成并向所述上层设备发送包含自身MAC地址的LLDP配置完成响应报文,以使所述上层管理设备根据接收到的LLDP配置完成响应报文将对应的下层设备的信息配置状态标记为已配置。LLDP configuration completion response message feedback unit, used for generating and sending an LLDP configuration completion response message including its own MAC address to the upper layer device when the configuration of the information to be configured corresponding to its own MAC address is completed by the lower layer device, The upper-layer management device marks the information configuration state of the corresponding lower-layer device as configured according to the received LLDP configuration completion response message.

为实现上述目的,本申请还提供了一种二层设备配置系统,包括:To achieve the above purpose, the present application also provides a Layer 2 device configuration system, including:

上层管理设备,用于向各下层设备广播LLDP搜索发现报文;响应接收到的LLDP搜索响应报文,提取得到各所述下层设备的MAC地址,并为各所述MAC地址分配对应的待配置信息,得到包含MAC地址和对应待配置信息的各配置识别数据;将各所述配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,得到LLDP配置报文;向各所述下层设备广播所述LLDP配置报文;The upper-layer management device is used to broadcast the LLDP search and discovery message to each lower-layer device; respond to the received LLDP search response message, extract the MAC address of each of the lower-layer devices, and assign a corresponding MAC address to be configured for each of the MAC addresses. Information, obtain each configuration identification data that comprises MAC address and corresponding information to be configured; Add each described configuration identification data as a new field into the self-defined field of LLDP protocol message, obtain LLDP configuration message; To each described lower layer The device broadcasts the LLDP configuration message;

各所述下层设备,用于响应接收到的LLDP搜索发现报文,向上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;接收所述上层管理设备广播的LLDP配置报文,并根据所述LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成自身的配置。Each of the lower-layer devices is used to respond to the received LLDP search discovery message, and return an LLDP search response message containing its own MAC address to the upper-layer management device; receive the LLDP configuration message broadcast by the upper-layer management device, and The LLDP configuration packet includes the information to be configured corresponding to its own MAC address to complete its own configuration.

为实现上述目的,本申请还提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述内容所描述的二层设备配置方法的步骤。In order to achieve the above object, the present application also provides a computer-readable storage medium, which is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned The steps of the Layer 2 device configuration method.

显然,本申请所提供的二层设备配置方法,上层管理设备从下层设备处获取出厂即具备且唯一的MAC地址,并为这些MAC地址分配相应的待配置信息以得到成对的配置识别信息,同时在原有LLDP协议报文构成的基础上,将配置识别信息加入自定义字段以生成并广播包含待配置信息的LLDP配置报文,使得各下层设备根据与自身MAC地址对应的待配置信息完成相应的配置。该方法在允许范围内对原有标准LLDP协议报文进行改造,使其可以携带待配置信息,无需使用其它协议即可完成待配置信息的分发和配置,代码复杂度更低。本申请同时还提供了一种上层管理设备、下层设备、包括上层管理设备和下层设备的二层设备配置系统以及计算机可读存储介质,均具有上述有益效果,在此不再赘述。Apparently, in the layer-2 device configuration method provided by this application, the upper-layer management device obtains the unique MAC address that is available at the factory from the lower-layer device, and assigns corresponding information to be configured for these MAC addresses to obtain paired configuration identification information. At the same time, based on the composition of the original LLDP protocol message, the configuration identification information is added to the custom field to generate and broadcast the LLDP configuration message containing the information to be configured, so that each lower-layer device completes the corresponding configuration according to the information to be configured corresponding to its own MAC address. Configuration. This method transforms the original standard LLDP protocol message within the allowable range, so that it can carry the information to be configured, and the distribution and configuration of the information to be configured can be completed without using other protocols, and the code complexity is lower. The present application also provides an upper-layer management device, a lower-layer device, a second-layer device configuration system including the upper-layer management device and the lower-layer device, and a computer-readable storage medium, all of which have the above-mentioned beneficial effects and will not be repeated here.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请实施例提供的一种应用于上层管理设备的二层设备配置方法的流程图;FIG. 1 is a flowchart of a layer-2 device configuration method applied to an upper-layer management device provided in an embodiment of the present application;

图2为本申请实施例提供的一种应用于下层设备的二层设备配置方法的流程图;FIG. 2 is a flow chart of a layer-2 device configuration method applied to a lower-layer device provided in an embodiment of the present application;

图3为本申请实施例提供的另一种应用于下层设备的二层设备配置方法的流程图;FIG. 3 is a flow chart of another layer-2 device configuration method applied to lower-layer devices provided by the embodiment of the present application;

图4为本申请实施例提供的一种二层设备配置方法的流程图;FIG. 4 is a flow chart of a layer 2 device configuration method provided in an embodiment of the present application;

图5为本申请实施例提供的一种上层管理设备的结构框图;FIG. 5 is a structural block diagram of an upper-layer management device provided in an embodiment of the present application;

图6为本申请实施例提供的一种下层设备的结构框图;FIG. 6 is a structural block diagram of a lower-layer device provided in an embodiment of the present application;

图7为本申请实施例提供的一种包括上层管理设备和下层设备的二层设备配置系统的结构框图;FIG. 7 is a structural block diagram of a layer-2 device configuration system including an upper-layer management device and a lower-layer device provided by an embodiment of the present application;

图8为LLDP协议报文的一种标准格式;Fig. 8 is a kind of standard format of LLDP protocol message;

图9为常见TLV的类型域的定义及分配示意图。FIG. 9 is a schematic diagram of the definition and allocation of type domains of common TLVs.

具体实施方式Detailed ways

本申请的核心是提供一种配置二层设备的方法、上层管理设备、下层管理设备、包括上层管理设备和下层设备在内的配置二层设备的系统以及计算机可读存储介质,上层管理设备从下层设备处获取出厂即具备且唯一的MAC地址,并为这些MAC地址分配相应的待配置信息以得到成对的配置识别信息,同时在原有LLDP协议报文构成的基础上,将配置识别信息加入自定义字段以生成并广播包含待配置信息的LLDP配置报文,使得各下层设备根据与自身MAC地址对应的待配置信息完成相应的配置。该方法在允许范围内对原有标准LLDP协议报文进行改造,使其可以携带待配置信息,无需使用其它协议即可完成待配置信息的分发和配置,代码复杂度更低。The core of this application is to provide a method for configuring layer 2 equipment, an upper layer management device, a lower layer management device, a system for configuring layer 2 devices including the upper layer management device and the lower layer device, and a computer-readable storage medium. The lower layer device obtains the unique MAC addresses that are available at the factory, and assigns corresponding information to be configured for these MAC addresses to obtain paired configuration identification information. At the same time, the configuration identification information is added to the original LLDP protocol message Customize the field to generate and broadcast the LLDP configuration message containing the information to be configured, so that each lower layer device completes the corresponding configuration according to the information to be configured corresponding to its own MAC address. This method transforms the original standard LLDP protocol message within the allowable range, so that it can carry the information to be configured, and the distribution and configuration of the information to be configured can be completed without using other protocols, and the code complexity is lower.

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

实施例一Embodiment one

以下结合图1,图1为本申请实施例提供的一种应用于上层管理设备的二层设备配置方法的流程图,其具体包括以下步骤:In conjunction with FIG. 1 below, FIG. 1 is a flow chart of a layer-2 device configuration method applied to an upper-layer management device provided by an embodiment of the present application, which specifically includes the following steps:

S101:向各下层设备广播LLDP搜索发现报文,以使各下层设备返回包含自身MAC地址的LLDP搜索响应报文;S101: Broadcast an LLDP search discovery message to each lower-layer device, so that each lower-layer device returns an LLDP search response message containing its own MAC address;

上层管理设备首先将LLDP搜索发现报文广播给所有与其建立了物理连接关系的各下层设备,以期收到各下层设备对接收到的LLDP搜索发现报文做出响应返回的包含自身MAC地址的LLDP搜索响应报文。The upper-layer management device first broadcasts the LLDP discovery message to all lower-layer devices with which it has established a physical connection relationship, in order to receive the LLDP packet containing its own MAC address returned by each lower-layer device in response to the received LLDP search and discovery message. Search response message.

需要说明的是,基于标准LLDP协议的功能设计,搜索发现存在的设备并反馈一些信息是其主要功能,本申请的重点并非为提供一种利用LLDP协议发现下层设备的方法,本步骤的实现过程已被本领域技术人员所熟知,在此不再赘述。It should be noted that based on the functional design of the standard LLDP protocol, the main function is to search for existing devices and feed back some information. The focus of this application is not to provide a method for discovering lower-layer devices using the LLDP protocol. The implementation process of this step It is well known by those skilled in the art and will not be repeated here.

S102:响应于接收到的LLDP搜索响应报文,提取得到各下层设备的MAC地址,并为各MAC地址分配对应的待配置信息,得到包含MAC地址和对应待配置信息的各配置识别数据;S102: In response to the received LLDP search response message, extract the MAC address of each lower-layer device, and allocate corresponding information to be configured for each MAC address, and obtain each configuration identification data including the MAC address and the corresponding information to be configured;

在S101的基础上,本步骤旨在上层管理设备从接收到的LLDP搜索响应报文中提取出各下层设备的MAC地址,以便根据与每个下层设备唯一对应的MAC地址为其分配对应的待配置信息,得到各配置识别数据,即每个配置识别数据中包含一个MAC地址和将要配置在该MAC地址对应的下层设备的配置信息,两者之间存在对应关系,以便各下层设备从众多对配置识别数据中寻找到与自身MAC地址相同的MAC地址,并在确定到相同的MAC地址,也就能够得到成对出现的待配置信息。On the basis of S101, this step aims at the upper layer management device to extract the MAC address of each lower layer device from the received LLDP search response message, so as to allocate corresponding waiting time for each lower layer device according to the MAC address uniquely corresponding to each lower layer device. Configuration information, each configuration identification data is obtained, that is, each configuration identification data contains a MAC address and the configuration information of the lower-layer device to be configured corresponding to the MAC address, and there is a correspondence between the two, so that each lower-layer device can learn from many Finding the same MAC address as its own MAC address in the configuration identification data, and determining the same MAC address, it is possible to obtain the information to be configured in pairs.

如何为各MAC地址分配对应的待配置信息的方式有很多,例如当各下层设备的功能、作用一致时,可随机为各MAC分配作用、功能相同的待配置信息,当然,诸如IP地址等唯一参数还需要按照其它分配规则来进行分配,不应存在将同一IP地址分配给多个下层设备的情况;也可以按照MAC地址的顺序、所属号段等进行分配等等,此处并不做具体限定,本领域技术人员可以根据本步骤的思想结合不同场景的要求灵活选择。There are many ways how to allocate corresponding information to be configured for each MAC address. For example, when the functions and functions of each lower-layer device are the same, the information to be configured with the same role and function can be randomly assigned to each MAC address. Of course, unique information such as IP addresses The parameters also need to be allocated according to other allocation rules. There should be no situation where the same IP address is allocated to multiple lower-level devices; it can also be allocated according to the order of the MAC address, the number segment, etc., etc., which will not be specified here. Those skilled in the art can flexibly choose according to the idea of this step in combination with the requirements of different scenarios.

需要说明的是,本申请各步骤中出现的下层设备均为新接入集群的设备,即空白节点,仅通过物理连接线与上层管理设备,在真正上线使用前还需要对他们进行一些配置,例如为其分配相应的IP地址、上线所需参数、编号等等。由于各空白节点在此种情况下具有的一个有力区别于其它空白节点的特征数据就是MAC地址,虽然其它诸如机器码的特征数据也可以使用,但不如MAC地址更易获取和识别度高。It should be noted that the lower-layer devices appearing in each step of this application are all devices newly connected to the cluster, that is, blank nodes. They are only connected to the upper-layer management devices through physical connection lines. Some configurations need to be performed on them before they are actually used online. For example, assign the corresponding IP address, the parameters required for going online, the serial number, and so on. Because each blank node in this case has a feature data that is powerfully different from other blank nodes is the MAC address. Although other feature data such as machine codes can also be used, it is not as easy to obtain and has a high degree of recognition as the MAC address.

S103:将各配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,得到LLDP配置报文;S103: adding each configuration identification data as a new field into a custom field of the LLDP protocol message to obtain the LLDP configuration message;

在S102的基础上,本步骤旨在将得到的各配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,以得到包含配置识别数据的LLDP配置报文。On the basis of S102, this step aims to add the obtained configuration identification data as new fields into the custom fields of the LLDP protocol message, so as to obtain the LLDP configuration message including the configuration identification data.

受到LLDP协议报文最大长度的限制,有可能无法一次性将所有配置识别数据都放入一个LLDP配置报文,根据配置识别数据的长度可设定合适的数量,即通过多个LLDP配置报文先后将所有配置识别数据全部广播出去。Due to the limitation of the maximum length of the LLDP protocol message, it may not be possible to put all the configuration identification data into one LLDP configuration message at one time, and an appropriate number can be set according to the length of the configuration identification data, that is, through multiple LLDP configuration messages All configuration identification data are broadcast successively.

请结合图8所提供的LLDP协议报文的一种标准格式,首先对最上层的各字段的含义解释如下:Please combine a standard format of the LLDP protocol message provided in Figure 8, and first explain the meaning of each field at the top layer as follows:

DA:目的地址;DA: destination address;

SA:源地址,为源端口地址或源设备地址(如有源端口地址则用原端口地址,否则用源设备地址);SA: source address, which is the source port address or source device address (if there is a source port address, use the original port address, otherwise use the source device address);

Type:帧类型,为0x88CC;Type: frame type, which is 0x88CC;

Data:包含真正想要传输的数据,为LLDPDU,即LLDPPDU是LLDP的有效负载,用于承载要发送的消息;Data: Contains the data you really want to transmit, which is LLDPDU, that is, LLDPPDU is the payload of LLDP, which is used to carry the message to be sent;

FCS:帧检验序列。FCS: Frame Check Sequence.

接着,如中层对LLDPDU的拆分图所示,LLDPDU采用了TLV的格式,即type+length+value的格式,type表示TLV的类型,length是以字节为单位的TLV的长度,value是该TLV的值。其中Chassis ID TLV、Port ID TLV、Time To Live TLV以及End Of LLDPDU TLV是强制的,一个LLDPDU必须包含的部分,除此之外在TLV Time To Live TLV和End Of LLDPDU TLV之间可以包含0个到多个可选的其它TLV(即自定义TLV,也就是本步骤所描述的自定义字段)。Next, as shown in the splitting diagram of the LLDPDU in the middle layer, the LLDPDU adopts the format of TLV, that is, the format of type+length+value, type indicates the type of TLV, length is the length of the TLV in bytes, and value is the The value of the TLV. Among them, Chassis ID TLV, Port ID TLV, Time To Live TLV and End Of LLDPDU TLV are mandatory, a part that must be included in an LLDPDU, in addition, 0 can be included between TLV Time To Live TLV and End Of LLDPDU TLV to multiple optional other TLVs (that is, custom TLVs, that is, the custom fields described in this step).

最后,以Port ID TLV为例,通过最下层拆分图对TLV具体组成进行描述:Finally, taking the Port ID TLV as an example, the specific composition of the TLV is described through the bottom-level split diagram:

TLV是组成LLDPDU的单元,每个TLV都代表一个信息。LLDPDU的TLV可以分为两大类:TLV is the unit that makes up LLDPDU, and each TLV represents a piece of information. The TLV of LLDPDU can be divided into two categories:

其中一类被认为是网络管理的基础的TLV集合,所有的LLDP实现都需要支持;另一类则是组织定义的TLV扩展集和,包括802.1组织定义TLV、802.3组织定义TLV以及其他组织定义的TLV。该类TLV用于增强对网络设备的管理,可根据实际需要选择是否在LLDPDU中发送。One of them is considered to be the basic TLV set of network management, and all LLDP implementations need to support it; the other is the TLV extension set defined by the organization, including 802.1 organization-defined TLV, 802.3 organization-defined TLV and other organization-defined TLV. This type of TLV is used to enhance the management of network devices, and you can choose whether to send it in the LLDPDU according to actual needs.

请参见图9,图9左侧为常见TLV的类型域的定义及分配图,包含了常规TLV的名称和使用类型,右侧则是本申请在预留的自定义区域给出的一种新增TLV字段的实现方式。其中,Mandatory表示对应类型的TLV为强制存在的,Optional则表示可选的,图5右侧则表示本申请在生成包含配置识别数据的LLDP配置报文时将新增的TLV字段设定为Mandatory。Please refer to Figure 9. The left side of Figure 9 shows the definition and allocation of common TLV type domains, including the name and usage type of conventional TLVs, and the right side shows a new TLV in the reserved custom area Add the implementation of the TLV field. Among them, Mandatory indicates that the TLV of the corresponding type is mandatory, and Optional indicates that it is optional. The right side of Figure 5 indicates that the application sets the newly added TLV field as Mandatory when generating the LLDP configuration message containing the configuration identification data .

图8和图9中其余使用英文描述的内容均为LLDP协议中的具体内容,其含义已被本领域技术人员所熟知,亦非本申请的重点描述对象,在此不再赘述。The rest of the contents described in English in Fig. 8 and Fig. 9 are the specific contents in the LLDP protocol, and their meanings are well known by those skilled in the art, and they are not the key description objects of this application, and will not be repeated here.

S104:向各下层设备广播LLDP配置报文,以使各下层设备利用LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成配置。S104: Broadcast the LLDP configuration message to each lower-layer device, so that each lower-layer device completes configuration by using the information to be configured corresponding to its own MAC address contained in the LLDP configuration message.

在S103的基础上,本步骤旨在将包含配置识别数据的LLDP配置报文广播给所有与上层管理设备建立了连接的下层设备,以使各下层设备利用LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成配置。On the basis of S103, this step aims to broadcast the LLDP configuration message containing the configuration identification data to all lower-layer devices that have established a connection with the upper-layer management device, so that each lower-layer device uses the LLDP configuration message contained in the LLDP configuration message and its own MAC The information to be configured corresponding to the address is configured.

当上层管理设备先后发送了多个包含不同对配置识别数据的LLDP配置报文时,各下层设备通常会按照接收到的LLDP配置报文的先后顺序依次寻找那个包含与自身MAC地址相同的MAC地址的配置识别数据,以便根据成对的关系确定分配给自己的待配置信息。When the upper-layer management device sends multiple LLDP configuration packets containing different pairs of configuration identification data, each lower-layer device will usually search for the MAC address that contains the same MAC address as its own according to the order of the received LLDP configuration packets. The configuration identification data, so as to determine the information to be configured assigned to itself according to the paired relationship.

一种包括但不限于的待配置信息的配置方式:调用CLI命令将待配置信息配置于自身。其中,CLI是Command-Line Interface的英文缩写,中文名为命令行界面。A configuration method including but not limited to the information to be configured: call the CLI command to configure the information to be configured on itself. Among them, CLI is the English abbreviation of Command-Line Interface, and the Chinese name is Command Line Interface.

进一步的,如对图8描述中的DA表示的目的地址,在LLDP协议中,目的地址根据穿透能力的不同存在三类,一类无法穿透不直接相连的设备,一类可穿透同一局域网内的路由器和交换机,而最后一类则还可穿透局域网,通常情况下为实现对处于同一局域网内的集群所有设备完成搜索发现和配置,会选择其中一类可穿透交换机的目的地址,具体的,该目的地址为:01-80-C2-00-00-03。Further, as for the destination address represented by DA in the description of Figure 8, in the LLDP protocol, there are three types of destination addresses according to different penetration capabilities, one type cannot penetrate devices that are not directly connected, and the other type can penetrate the same Routers and switches in the local area network, and the last type can also penetrate the local area network. Usually, in order to realize the search, discovery and configuration of all devices in the cluster in the same local area network, one of the destination addresses of the penetrable switches will be selected. , specifically, the destination address is: 01-80-C2-00-00-03.

更进一步的,在下层设备根据接收到的LLDP配置报文完成将匹配的待配置信息配置在自身后,还可以向上层管理设备反馈一个响应信号,以使上层管理设备明确该下层设备的参数配置状态,以便于后续使用。Furthermore, after the lower-layer device configures the matching information to be configured on itself according to the received LLDP configuration message, it can also feed back a response signal to the upper-layer management device, so that the upper-layer management device can clarify the parameter configuration of the lower-layer device state for subsequent use.

基于上述技术方案,本申请实施例提供的一种应用于上层管理设备的二层设备配置方法,上层管理设备从下层设备处获取出厂即具备且唯一的MAC地址,并为这些MAC地址分配相应的待配置信息以得到成对的配置识别信息,同时在原有LLDP协议报文构成的基础上,将配置识别信息加入自定义字段以生成并广播包含待配置信息的LLDP配置报文,使得各下层设备根据与自身MAC地址对应的待配置信息完成相应的配置。该方法在允许范围内对原有标准LLDP协议报文进行改造,使其可以携带待配置信息,无需使用其它协议即可完成待配置信息的分发和配置,代码复杂度更低。Based on the above technical solution, the embodiment of the present application provides a layer-2 device configuration method applied to the upper-layer management device. The upper-layer management device obtains the unique MAC addresses that are available at the factory from the lower-layer device, and assigns corresponding MAC addresses to these MAC addresses. Information to be configured to obtain paired configuration identification information. At the same time, based on the composition of the original LLDP protocol message, the configuration identification information is added to the custom field to generate and broadcast the LLDP configuration message containing the information to be configured, so that each lower layer device Complete the corresponding configuration according to the information to be configured corresponding to its own MAC address. This method transforms the original standard LLDP protocol message within the allowable range, so that it can carry the information to be configured, and the distribution and configuration of the information to be configured can be completed without using other protocols, and the code complexity is lower.

实施例二Embodiment two

以下结合图2,图2为本申请实施例提供的一种应用于下层设备的二层设备配置方法的流程图,具体包括以下步骤:In conjunction with FIG. 2 below, FIG. 2 is a flow chart of a layer-2 device configuration method applied to lower-layer devices provided by the embodiment of the present application, which specifically includes the following steps:

S201:响应上层管理设备广播的LLDP搜索发现报文,向上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;S201: Respond to the LLDP search discovery message broadcast by the upper-layer management device, and return an LLDP search response message including its own MAC address to the upper-layer management device;

S202:响应上层管理设备根据MAC地址和为MAC地址分配的待配置信息生成的配置识别信息、并将各配置识别信息添加进LLDP协议报文中的自定义字段得到且广播的LLDP配置报文,根据LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成自身的配置。S202: Responding to the configuration identification information generated by the upper-layer management device according to the MAC address and the information to be configured assigned to the MAC address, and adding each configuration identification information to a custom field in the LLDP protocol message and broadcasting the LLDP configuration message, Complete its own configuration according to the to-be-configured information corresponding to its own MAC address included in the LLDP configuration message.

本实施例以下层设备为执行主体,描述下层设备在利用LLDP协议完成待配置信息的配置过程中具体执行了哪些操作,这些操作与实施例一中上层管理设备执行的操作相互交叉,一些操作的解释可参见实施例一中的描述。In this embodiment, the lower-layer device is the execution subject, and describes which operations the lower-layer device performs in the process of using the LLDP protocol to complete the configuration of the information to be configured. These operations intersect with the operations performed by the upper-layer management device in Embodiment 1. Some operations For explanation, refer to the description in Embodiment 1.

实施例三Embodiment three

以下结合图3,图3为本申请实施例提供的另一种应用于下层设备的二层设备配置方法的流程图,具体包括以下步骤:In conjunction with FIG. 3 below, FIG. 3 is a flow chart of another layer-2 device configuration method applied to lower-layer devices provided by the embodiment of the present application, which specifically includes the following steps:

S301:响应上层管理设备广播的LLDP搜索发现报文,向上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;S301: Respond to the LLDP search discovery message broadcast by the upper-layer management device, and return an LLDP search response message including its own MAC address to the upper-layer management device;

S302:响应上层管理设备根据MAC地址和为MAC地址分配的待配置信息生成的配置识别信息、并将各配置识别信息添加进LLDP协议报文中的自定义字段得到且广播的LLDP配置报文;S302: Responding to the configuration identification information generated by the upper-layer management device according to the MAC address and the information to be configured assigned to the MAC address, and adding each configuration identification information to a custom field in the LLDP protocol message and broadcasting the LLDP configuration message;

S303:判断接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址;S303: Determine whether the received LLDP configuration message contains the same MAC address as its own MAC address;

S304:确定与自身MAC地址对应的待配置信息,并调用CLI命令将该配置信息配置于自身;S304: Determine the to-be-configured information corresponding to its own MAC address, and call a CLI command to configure the configuration information on itself;

本步骤建立在下层设备从接收到的LLDP配置报文中找到了与自身MAC地址相同的MAC地址的基础上,因此说明该LLDP配置报文中包含了成对出现的MAC地址和相应的待配置信息,可以确定与自身MAC地址对应的待配置信息,并通过调用CLI命令将这些待配置信息配置在自身。This step is based on the fact that the lower-layer device finds the same MAC address as its own MAC address from the received LLDP configuration message, so it shows that the LLDP configuration message contains a pair of MAC addresses and the corresponding MAC addresses to be configured. information, you can determine the information to be configured corresponding to its own MAC address, and configure the information to be configured on itself by calling a CLI command.

S305:判断下一个接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址,直至找到与自身MAC地址相同的MAC地址;S305: Determine whether the next received LLDP configuration message contains the same MAC address as its own MAC address, until the same MAC address as its own MAC address is found;

本步骤建立在下层设备未从接收到的LLDP配置报文中找到了与自身MAC地址相同的MAC地址的基础上,则会接着判断下一个接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址,直至找到与自身MAC地址相同的MAC地址。This step is based on the fact that the lower-layer device has not found the same MAC address as its own MAC address from the received LLDP configuration message, and then judges whether the next received LLDP configuration message contains the same MAC address as its own MAC address. The MAC address with the same address is found until the MAC address with the same MAC address as itself is found.

S306:当下层设备将与自身MAC地址对应的待配置信息配置完成时,生成并向上层设备发送包含自身MAC地址的LLDP配置完成响应报文,以使上层管理设备根据接收到的LLDP配置完成响应报文将对应的下层设备的信息配置状态标记为已配置。S306: When the lower layer device completes the configuration of the information to be configured corresponding to its own MAC address, generate and send to the upper layer device an LLDP configuration completion response message containing its own MAC address, so that the upper layer management device completes the response according to the received LLDP configuration The message marks the information configuration state of the corresponding lower layer device as configured.

本步骤提供了一种下层设备完成待配置信息的配置后如何向上层设备反馈这一信息的方式,即由配置完成的各下层设备向上层设备反馈一个完成响应信息,以使上层设备根据接收到的反馈信息及时在管理系统上修改对应下层设备的信息配置状态。This step provides a way for the lower-layer device to feed back the information to the upper-layer device after completing the configuration of the information to be configured, that is, each lower-layer device that has completed the configuration feeds back a completion response Modify the information configuration status of the corresponding lower-level equipment on the management system in time.

实施例四Embodiment Four

以下结合图4,图4为本申请实施例提供的一种二层设备配置方法的流程图,本实施例以体现所有执行主体(上层管理设备和下层设备)的方式来完整的阐述具体实现过程:In conjunction with Fig. 4 below, Fig. 4 is a flow chart of a two-layer device configuration method provided by the embodiment of the present application. This embodiment fully elaborates the specific implementation process by embodying all execution subjects (upper-layer management device and lower-layer device) :

S401:上层管理设备向各下层设备广播LLDP搜索发现报文,各下层设备响应接收到的LLDP搜索发现报文向该上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;S401: The upper-layer management device broadcasts an LLDP search discovery message to each lower-layer device, and each lower-layer device responds to the received LLDP search discovery message and returns an LLDP search response message including its own MAC address to the upper-layer management device;

S402:上层管理设备从LLDP搜索响应报文中提取得到各下层设备的MAC地址,并为各MAC地址分配按预设分配规则排列于待配置信息列表中的待配置信息,得到包含MAC地址和对应待配置信息的各配置识别数据;S402: The upper-layer management device extracts the MAC addresses of each lower-layer device from the LLDP search response message, and allocates the information to be configured in the list of information to be configured according to the preset allocation rules for each MAC address, and obtains the information including the MAC address and the corresponding Each configuration identification data of the information to be configured;

一种包括但不限于的方式为:One way includes but is not limited to:

为各MAC地址分配按预设分配规则排列于待配置IP地址列表中的待配置IP地址。Allocating IP addresses to be configured in the list of IP addresses to be configured according to preset allocation rules for each MAC address.

S403:上层管理设备将各配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,得到LLDP配置报文,并向各下层设备广播LLDP配置报文;S403: The upper-layer management device adds each configuration identification data as a new field into the custom field of the LLDP protocol message, obtains the LLDP configuration message, and broadcasts the LLDP configuration message to each lower-layer device;

S404:各下层设备判断接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址;S404: Each lower layer device judges whether the received LLDP configuration message contains the same MAC address as its own MAC address;

S405:各下层设备确定与自身MAC地址对应的待配置信息,并调用CLI命令将该配置信息配置于自身;S405: Each lower-layer device determines the information to be configured corresponding to its own MAC address, and invokes a CLI command to configure the configuration information on itself;

S406:各下层设备判断下一个接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址,直至找到与自身MAC地址相同的MAC地址;S406: Each lower layer device judges whether the next received LLDP configuration message contains the same MAC address as its own MAC address, until it finds the same MAC address as its own MAC address;

S407:当下层设备将与自身MAC地址对应的待配置信息配置完成时,生成并向所述上层设备发送包含自身MAC地址的LLDP配置完成响应报文;S407: When the lower layer device completes the configuration of the information to be configured corresponding to its own MAC address, generate and send an LLDP configuration completion response message including its own MAC address to the upper layer device;

S408:上层管理设备根据接收到的LLDP配置完成响应报文将对应的下层设备的信息配置状态标记为已配置。S408: The upper-layer management device marks the information configuration state of the corresponding lower-layer device as configured according to the received LLDP configuration completion response message.

本实施例基于实施例一、二、三的基础上,不仅具有上述各实施例的有益效果,还通过新增配置状态反馈步骤使得上层设备及时确定各下层设备的信息配置状态,以便开展后续工作。若未能成功完成待配置信息的配置,也可以根据异常的反馈信息确定状态,具体的,可设定为等待超过一定时间后还未收到配置状态反馈信息或直接收到异常反馈信息,此处并不做具体限定。Based on the first, second, and third embodiments, this embodiment not only has the beneficial effects of the above-mentioned embodiments, but also enables the upper-layer device to determine the information configuration status of each lower-layer device in time by adding a configuration status feedback step, so as to carry out follow-up work . If the configuration of the information to be configured fails to be successfully completed, the status can also be determined according to the abnormal feedback information. Specifically, it can be set to wait for a certain period of time before receiving the configuration status feedback information or receive the abnormal feedback information directly. is not specifically limited.

因为情况复杂,无法一一列举进行阐述,本领域技术人员应能意识到根据本申请提供的基本方法原理结合实际情况可以存在很多的例子,在不付出足够的创造性劳动下,应均在本申请的保护范围内。Because of the complexity of the situation, it is impossible to list and explain them one by one. Those skilled in the art should be able to realize that there may be many examples based on the basic method principles provided by this application combined with actual situations. within the scope of protection.

下面请参见图5,图5为本申请实施例提供的一种上层管理设备的结构框图,该上层管理设备100可以包括:Please refer to FIG. 5 below. FIG. 5 is a structural block diagram of an upper-layer management device provided in an embodiment of the present application. The upper-layer management device 100 may include:

LLDP搜索发现报文广播单元110,用于向各下层设备广播LLDP搜索发现报文,以使各下层设备返回包含自身MAC地址的LLDP搜索响应报文;An LLDP search discovery message broadcast unit 110 is configured to broadcast an LLDP search discovery message to each lower layer device, so that each lower layer device returns an LLDP search response message including its own MAC address;

配置识别数据生成单元120,用于响应接收到的LLDP搜索响应报文,提取得到各下层设备的MAC地址,并为各MAC地址分配对应的待配置信息,得到包含MAC地址和对应待配置信息的各配置识别数据;The configuration identification data generation unit 120 is used to respond to the received LLDP search response message, extract the MAC addresses of each lower-level device, and assign corresponding information to be configured for each MAC address, and obtain the information that includes the MAC address and the corresponding information to be configured. Each configuration identification data;

LLDP配置报文生成单元130,用于将各配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,得到LLDP配置报文;The LLDP configuration message generation unit 130 is used to add each configuration identification data as a new field into the custom field of the LLDP protocol message to obtain the LLDP configuration message;

LLDP配置报文广播单元140,用于向各下层设备广播LLDP配置报文,以使各下层设备利用LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成配置。The LLDP configuration message broadcast unit 140 is configured to broadcast the LLDP configuration message to each lower-layer device, so that each lower-layer device completes the configuration using the information to be configured corresponding to its own MAC address included in the LLDP configuration message.

可选的,上层管理设备广播将目的地址设定为可穿透交换机的LLDP搜索发现报文和LLDP配置报文。Optionally, the upper-layer management device broadcasts an LLDP discovery message and an LLDP configuration message whose destination address is set to a permeable switch.

其中,配置识别数据生成单元120可以包括:Among them, the configuration identification data generating unit 120 may include:

列表分配子单元,用于为各MAC地址分配按预设分配规则排列于待配置信息列表中的待配置信息。The list allocation subunit is used for allocating the information to be configured arranged in the information list to be configured according to the preset allocation rules for each MAC address.

进一步的,列表分配子单元可以包括:Further, the list assignment subunit may include:

IP地址分配模块,用于为各MAC地址分配按预设分配规则排列于待配置IP地址列表中的待配置IP地址。The IP address allocation module is used to allocate the IP addresses to be configured in the list of IP addresses to be configured according to the preset allocation rules for each MAC address.

下面请参见图6,图6为本申请实施例提供的一种下层设备的结构框图,该下层设备200可以包括:Please refer to FIG. 6 below. FIG. 6 is a structural block diagram of a lower-layer device provided in an embodiment of the present application. The lower-layer device 200 may include:

LLDP搜索响应报文返回单元210,用于响应上层管理设备广播的LLDP搜索发现报文,向上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;The LLDP search response message return unit 210 is used to respond to the LLDP search discovery message broadcast by the upper-level management device, and return the LLDP search response message that includes its own MAC address to the upper-level management device;

LLDP配置报文接收及信息配置单元220,用于响应上层管理设备根据MAC地址和为MAC地址分配的待配置信息生成的配置识别信息、并将各配置识别信息添加进LLDP协议报文中的自定义字段得到且广播的LLDP配置报文,根据LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成自身的配置。The LLDP configuration message receiving and information configuration unit 220 is used to respond to the configuration identification information generated by the upper-layer management device according to the MAC address and the information to be configured for the MAC address distribution, and to add each configuration identification information to the self in the LLDP protocol message. The LLDP configuration message obtained by defining the fields and broadcasted completes its own configuration according to the to-be-configured information corresponding to its own MAC address included in the LLDP configuration message.

其中,LLDP配置报文接收及信息配置单元220可以包括:Wherein, the LLDP configuration message receiving and information configuration unit 220 may include:

相同MAC地址判断子单元,用于判断接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址;The same MAC address judging subunit is used to judge whether the received LLDP configuration message contains the same MAC address as its own MAC address;

CLI命令配置子单元,用于当包含有与自身MAC地址相同的MAC地址时,确定与自身MAC地址对应的待配置信息,并调用CLI命令配置待配置信息;The CLI command configuration subunit is used to determine the information to be configured corresponding to its own MAC address when it contains the same MAC address as its own MAC address, and call the CLI command to configure the information to be configured;

继续寻找子单元,用于当未包含有与自身MAC地址相同的MAC地址时,判断下一个接收到的LLDP配置报文中是否包含有与自身MAC地址相同的MAC地址,直至找到与自身MAC地址相同的MAC地址。Continue to search for subunits, which are used to determine whether the next received LLDP configuration message contains the same MAC address as its own MAC address when it does not contain the same MAC address as its own MAC address, until it finds the same MAC address as its own MAC address. same MAC address.

进一步的,该下层管理设备还可以包括:Further, the lower layer management device may also include:

LLDP配置完成响应报文反馈单元,用于当下层设备将与自身MAC地址对应的待配置信息配置完成时,生成并向上层设备发送包含自身MAC地址的LLDP配置完成响应报文,以使上层管理设备根据接收到的LLDP配置完成响应报文将对应的下层设备的信息配置状态标记为已配置。The LLDP configuration completion response message feedback unit is used to generate and send an LLDP configuration completion response message containing its own MAC address to the upper layer device when the configuration of the information to be configured corresponding to its own MAC address is completed by the lower layer device, so that the upper layer management The device marks the information configuration status of the corresponding lower-layer device as configured according to the received LLDP configuration completion response message.

下面请参见图7,图7为本申请实施例提供的一种包括上层管理设备和下层设备的二层设备配置系统的结构框图,该二层设备配置系统包括:Please refer to FIG. 7 below. FIG. 7 is a structural block diagram of a layer-2 device configuration system including an upper-layer management device and a lower-layer device provided by an embodiment of the present application. The layer-2 device configuration system includes:

上层管理设备,用于向各下层设备广播LLDP搜索发现报文;响应接收到的LLDP搜索响应报文,提取得到各所述下层设备的MAC地址,并为各所述MAC地址分配对应的待配置信息,得到包含MAC地址和对应待配置信息的各配置识别数据;将各所述配置识别数据作为新增字段添加进LLDP协议报文的自定义字段,得到LLDP配置报文;向各所述下层设备广播所述LLDP配置报文;The upper-layer management device is used to broadcast the LLDP search and discovery message to each lower-layer device; respond to the received LLDP search response message, extract the MAC address of each of the lower-layer devices, and assign a corresponding MAC address to be configured for each of the MAC addresses. Information, obtain each configuration identification data that comprises MAC address and corresponding information to be configured; Add each described configuration identification data as a new field into the self-defined field of LLDP protocol message, obtain LLDP configuration message; To each described lower layer The device broadcasts the LLDP configuration message;

各所述下层设备,用于响应接收到的LLDP搜索发现报文,向上层管理设备返回包含自身MAC地址的LLDP搜索响应报文;接收所述上层管理设备广播的LLDP配置报文,并根据所述LLDP配置报文中包含的与自身MAC地址对应的待配置信息完成自身的配置。Each of the lower-layer devices is used to respond to the received LLDP search discovery message, and return an LLDP search response message containing its own MAC address to the upper-layer management device; receive the LLDP configuration message broadcast by the upper-layer management device, and The LLDP configuration packet includes the information to be configured corresponding to its own MAC address to complete its own configuration.

下面结合一个具体实例进行再阐述:Let’s re-elaborate with a specific example:

1、各网络单元部署对应代码处理1. Each network unit deploys corresponding code processing

多设备管理软件部署上层管理端,上层消息触发,收到发现或配置的指令时,组装报文并发送广播消息;存储设备产品内部署下层代理端,数据消息触发,设备初始化后就不停接收消息,如果收到了上层管理端发来的消息,进入对应处理流程,处理结果组装成报文并发送广播消息,并继续进入初始化状态等待下次上层管理端的消息。The multi-device management software is deployed on the upper layer management end, and the upper layer message is triggered. When receiving a discovery or configuration command, it assembles a message and sends a broadcast message; the lower layer agent is deployed in the storage device product, and the data message is triggered, and the device continues to receive after initialization Message, if it receives a message from the upper-level management terminal, it enters the corresponding processing flow, the processing result is assembled into a message and sends a broadcast message, and continues to enter the initialization state to wait for the next message from the upper-level management terminal.

2、上层管理端和下层代理端的处理都基于LLDP协议2. The processing of the upper layer management end and the lower layer agent end is based on the LLDP protocol

上层管理端和下层代理端的处理都是基于LLDP协议的,发送的消息都是链路层的基于MAC地址的广播消息,接收消息时,只处理指定目标MAC地址的数据帧。The processing of the upper layer management end and the lower layer agent end is based on the LLDP protocol. The messages sent are all broadcast messages based on the MAC address of the link layer. When receiving messages, only the data frames with the specified target MAC address are processed.

3、在LLDP协议的基础上,增加个性化内容以实现发现、部署的功能3. On the basis of the LLDP protocol, add personalized content to realize the functions of discovery and deployment

LLDP协议报文,本申请采用的目的地址是01-80-C2-00-00-03,该目的地址可以保证交换机不处理,并正常转发,对端自己设备接收到以后正常处理,防止后续需要对交换机做大量配置,因为有些老旧交换机不支持,减少了操作风险。LLDP protocol message, the destination address used in this application is 01-80-C2-00-00-03, this destination address can ensure that the switch will not process it and forward it normally, and the peer device will process it normally after receiving it to prevent subsequent needs Do a lot of configuration on the switch, because some old switches do not support it, reducing operational risks.

同时在原有固定TLV基础上,新增了定制化的TLV,保证发现功能和部署功能都可以正常获取到需要的信息,并正常返回结果消息。At the same time, on the basis of the original fixed TLV, a customized TLV is added to ensure that both the discovery function and the deployment function can obtain the required information and return the result message normally.

以下为一个具体实例的完整时序流程:The following is a complete timing flow of a specific example:

a.上层管理设备收到多设备管理软件UI界面的设备发现(配置)请求;a. The upper management device receives a device discovery (configuration) request from the multi-device management software UI interface;

b.上层管理设备组装搜索发现报文并发送广播;b. The upper management device assembles the search and discovery message and sends a broadcast;

c.各下层设备收到广播,解析验证为上层管理设备发来的搜索发现报文;c. Each lower-layer device receives the broadcast, parses and verifies that it is a search discovery message sent by the upper-layer management device;

d.各下层设备调用底层CLI命令获取自身的MAC地址;d. Each lower layer device calls the bottom layer CLI command to obtain its own MAC address;

e.各下层设备将获取到的MAC地址组装到各个TLV中,并广播搜索响应报文;e. Each lower layer device assembles the obtained MAC address into each TLV, and broadcasts a search response message;

f.上层管理设备接收广播的报文,解析验证为下层设备的搜索响应报文;f. The upper layer management device receives the broadcast message, parses and verifies it as the search response message of the lower layer device;

g.上层管理设备解析搜索响应报文中的各个TLV,并组装成json格式(便于可视化呈现),上报到管理软件的UI界面;g. The upper management device parses each TLV in the search response message, assembles it into a json format (easy to visualize), and reports it to the UI interface of the management software;

h.上层管理设备收到多设备管理软件UI界面的设备配置请求;h. The upper management device receives a device configuration request from the UI interface of the multi-device management software;

i.上层管理设备根据配置列表组装LLDP配置报文(包含一定对数的配置识别数据,每个配置识别数据包含一个MAC地址和为该MAC地址对应设备分配的待配置信息,并将配置识别数据添加至LLDP协议报文的自定义字段中)并广播;i. The upper layer management device assembles the LLDP configuration message according to the configuration list (contains a certain logarithm of configuration identification data, each configuration identification data contains a MAC address and the information to be configured allocated for the device corresponding to the MAC address, and configures the identification data Add to the custom field of the LLDP protocol message) and broadcast;

j.各下层设备收到广播,解析验证为上层管理设备发送的LLDP配置报文;j. Each lower-layer device receives the broadcast, parses and verifies the LLDP configuration message sent by the upper-layer management device;

k.各下层设备调用底层CLI命令执行配置操作(将待配置信息配置于自身);k. Each lower-layer device calls the bottom-layer CLI command to perform configuration operations (configure the information to be configured on itself);

l.各下层设备将调用CLI命令执行配置操作完毕后返回的响应信息连带自身的MAC地址一并生成LLDP配置完成响应报文,并广播;l. Each lower-layer device will call the CLI command to execute the configuration operation and return the response information together with its own MAC address to generate an LLDP configuration completion response message and broadcast it;

m.上层管理设备收到广播,解析验证为下层设备的LLDP配置完成响应报文;m. The upper layer management device receives the broadcast, parses and verifies the LLDP configuration completion response message of the lower layer device;

n.上层管理设备解析LLDP配置完成响应报文中包含响应信息和MAC地址的TLV,并组装成json格式,上报到多设备管理UI界面,以显示各下层设备的信息配置状态。n. The upper-layer management device parses the LLDP configuration completion response message containing the response information and the TLV of the MAC address, assembles it into a json format, and reports it to the multi-device management UI interface to display the information configuration status of each lower-layer device.

基于上述实施例,本申请还同时提供了一种上层管理设备和下层管理设备,该上层管理设备和下层设备均可以包括存储器和处理器,其中,该存储器中存有计算机程序,该处理器调用该存储器中的计算机程序时,可以实现上述实施例中为实现配置二层设备所提供的步骤。当然,该上层管理设备和下层设备还可以包括各种必要的网络接口、电源以及其它零部件等。Based on the above-mentioned embodiments, the present application also provides an upper-level management device and a lower-level management device. Both the upper-level management device and the lower-level device may include a memory and a processor, wherein a computer program is stored in the memory, and the processor calls When the computer program in the memory is used, the steps provided in the foregoing embodiments for configuring the Layer 2 device can be implemented. Certainly, the upper-layer management device and the lower-layer device may also include various necessary network interfaces, power supplies, and other components.

本申请还提供了一种计算机可读存储介质,其上存有计算机程序,该计算机程序被执行终端或处理器执行时可以实现上述实施例中为实现配置二层设备所提供的步骤。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by an execution terminal or a processor, the steps provided in the above-mentioned embodiments for configuring a Layer 2 device can be implemented. The storage medium may include various media capable of storing program codes such as a U disk, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk.

说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals can further realize that the units and algorithm steps of the examples 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 possible For 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. Those skilled in the art 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 application.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. For those of ordinary skill in the art, without departing from the principle of the application, some improvements and modifications can be made to the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

Claims (11)

CN201810551713.5A2018-05-312018-05-31 A second-layer device configuration method, upper-layer management device, lower-layer device and systemPendingCN108833606A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810551713.5ACN108833606A (en)2018-05-312018-05-31 A second-layer device configuration method, upper-layer management device, lower-layer device and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810551713.5ACN108833606A (en)2018-05-312018-05-31 A second-layer device configuration method, upper-layer management device, lower-layer device and system

Publications (1)

Publication NumberPublication Date
CN108833606Atrue CN108833606A (en)2018-11-16

Family

ID=64146688

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810551713.5APendingCN108833606A (en)2018-05-312018-05-31 A second-layer device configuration method, upper-layer management device, lower-layer device and system

Country Status (1)

CountryLink
CN (1)CN108833606A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109474683A (en)*2018-11-152019-03-15郑州云海信息技术有限公司 A node configuration method and related device
CN109618021A (en)*2018-12-272019-04-12新华三技术有限公司Modify the method and girff of IP address
CN110677479A (en)*2019-09-292020-01-10苏州浪潮智能科技有限公司Equipment management method, system and storage medium of local area network
CN110752940A (en)*2019-08-312020-02-04苏州浪潮智能科技有限公司 A method, system, device and readable storage medium for realizing cluster automatic deployment under a multi-device system
CN111741139A (en)*2020-05-262020-10-02科华恒盛股份有限公司Communication station number distribution method and communication system
CN114158036A (en)*2021-12-062022-03-08成都飞鱼星科技股份有限公司Method, device, system and medium for configuring and managing AP
CN115567400A (en)*2022-09-292023-01-03苏州浪潮智能科技有限公司 A whole cabinet management method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105357127A (en)*2015-12-172016-02-24上海市共进通信技术有限公司System and method for processing LLDP (link layer discovery protocol) messages with announcement and negotiation TLV (type/length/value)
CN105897465A (en)*2016-03-302016-08-24杭州华三通信技术有限公司Equipment configuration method and apparatus
WO2016171682A1 (en)*2015-04-222016-10-27Hewlett Packard Enterprise Development LpConfiguring network devices
CN106453678A (en)*2016-09-292017-02-22北京东土科技股份有限公司IP address allocation method and system
CN104205729B (en)*2013-01-162017-04-19华为技术有限公司Method, device, and system for configuring device in network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104205729B (en)*2013-01-162017-04-19华为技术有限公司Method, device, and system for configuring device in network
WO2016171682A1 (en)*2015-04-222016-10-27Hewlett Packard Enterprise Development LpConfiguring network devices
CN105357127A (en)*2015-12-172016-02-24上海市共进通信技术有限公司System and method for processing LLDP (link layer discovery protocol) messages with announcement and negotiation TLV (type/length/value)
CN105897465A (en)*2016-03-302016-08-24杭州华三通信技术有限公司Equipment configuration method and apparatus
CN106453678A (en)*2016-09-292017-02-22北京东土科技股份有限公司IP address allocation method and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109474683A (en)*2018-11-152019-03-15郑州云海信息技术有限公司 A node configuration method and related device
CN109618021A (en)*2018-12-272019-04-12新华三技术有限公司Modify the method and girff of IP address
CN109618021B (en)*2018-12-272023-02-03新华三技术有限公司Method and tool box for modifying IP address
CN110752940A (en)*2019-08-312020-02-04苏州浪潮智能科技有限公司 A method, system, device and readable storage medium for realizing cluster automatic deployment under a multi-device system
CN110677479A (en)*2019-09-292020-01-10苏州浪潮智能科技有限公司Equipment management method, system and storage medium of local area network
CN110677479B (en)*2019-09-292022-06-07苏州浪潮智能科技有限公司Equipment management method, system and storage medium of local area network
CN111741139A (en)*2020-05-262020-10-02科华恒盛股份有限公司Communication station number distribution method and communication system
CN114158036A (en)*2021-12-062022-03-08成都飞鱼星科技股份有限公司Method, device, system and medium for configuring and managing AP
CN114158036B (en)*2021-12-062024-01-23成都飞鱼星科技股份有限公司Method, equipment, system and medium for configuration management of AP
CN115567400A (en)*2022-09-292023-01-03苏州浪潮智能科技有限公司 A whole cabinet management method, device, equipment and medium

Similar Documents

PublicationPublication DateTitle
CN108833606A (en) A second-layer device configuration method, upper-layer management device, lower-layer device and system
US10958525B2 (en)Network slice management method and apparatus
EP3905598B1 (en)Message processing method and apparatus, control plane device, and computer storage medium
US12267889B2 (en)Service processing method, apparatus, and system
CN106878480B (en)DHCP service process sharing method and device
CN101753635A (en)Method and system of collocating IPV6 (internet protocol version 6) addresses
CN108964940B (en)Message sending method and device and storage medium
JP5424007B2 (en) Method for providing information, home gateway and home network system
CN105814922B (en) Address identification allocation method and related equipment and system
CN103428306B (en)Network element device loading method, equipment and system
CN106357838B (en) Method and device for allocating IP addresses
US10484486B2 (en)Capability opening method and system, and capability opening function entity
CN109194525A (en)A kind of network node configuration method and management node
WO2016086544A1 (en)Network interface configuration method and apparatus for network device and storage medium
CN104935614B (en)Data transmission method and device
EP3503484A1 (en)Message transmission method, device and network system
CN110247778A (en)Installation method of operating system, device, electronic equipment and storage medium
CN108259345B (en)Port generation method and device
CN115426334A (en) Network address generation method, device, routing device and storage medium
CN111315037B (en)Communication link establishing method and device, computer equipment and storage medium
CN115943616B (en)Attribute subscription method, device and equipment for Zigbee equipment
CN115733820A (en)Address prefix allocation method and device, storage medium and electronic device
CN115460040A (en)Service processing method, device, terminal equipment and storage medium
CN110730154B (en)Service processing method and device for video network
CN104580491A (en)End system protocol stack construction method and method for accessing end system to service carrying network

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20181116


[8]ページ先頭

©2009-2025 Movatter.jp