CN118713992A - Zero configuration deployment method, control device and network device - Google Patents
Zero configuration deployment method, control device and network device Download PDFInfo
- Publication number
- CN118713992A CN118713992A CN202310358523.2A CN202310358523A CN118713992A CN 118713992 A CN118713992 A CN 118713992A CN 202310358523 A CN202310358523 A CN 202310358523A CN 118713992 A CN118713992 A CN 118713992A
- Authority
- CN
- China
- Prior art keywords
- network device
- site
- network
- information
- control device
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0883—Semiautomatic configuration, e.g. proposals from system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种零配置部署方法、控制设备和网络设备,应用于零配置开局部署场景。第一网络设备从第二网络设备获取控制设备的地址信息和第一站点的站点标识,并向控制设备发送第一站点的站点标识和第一网络设备的设备类型信息,以使得控制设备基于第一站点的站点标识和第一网络设备的设备类型信息向第一网络设备发送用于执行开局部署的配置信息。由于,第一网络设备向控制设备提供第一站点的站点标识和第一网络设备的类型信息便可进行注册而获得配置信息,即控制设备中的配置信息不与第一网络设备的设备标识绑定,不需要在控制设备提前录入第一网络设备的设备标识,因此,有利于提高网络设备的部署效率。
The present application discloses a zero-configuration deployment method, a control device, and a network device, which are applied to a zero-configuration deployment scenario. The first network device obtains the address information of the control device and the site identifier of the first site from the second network device, and sends the site identifier of the first site and the device type information of the first network device to the control device, so that the control device sends the configuration information for executing the deployment to the first network device based on the site identifier of the first site and the device type information of the first network device. Since the first network device can register and obtain the configuration information by providing the site identifier of the first site and the type information of the first network device to the control device, that is, the configuration information in the control device is not bound to the device identifier of the first network device, and there is no need to enter the device identifier of the first network device in advance in the control device, which is conducive to improving the deployment efficiency of the network device.
Description
技术领域Technical Field
本申请实施例涉及通信领域,尤其涉及零配置部署方法、控制设备和网络设备。The embodiments of the present application relate to the field of communications, and in particular to a zero-configuration deployment method, a control device, and a network device.
背景技术Background Art
零配置部署(zero touch provisioning,ZTP)(也称为零配置开局),指新出厂或空配置的网络设备在上电启动时自动获取配置信息并执行配置部署(也称为开局部署)的技术。Zero touch provisioning (ZTP) (also known as zero touch deployment) refers to the technology that allows new or empty network devices to automatically obtain configuration information and perform configuration deployment (also known as deployment deployment) when they are powered on.
在传统的零配置部署方案中,管理员能够将待发往某一站点的各个网络设备的设备标识导入控制设备,并基于每个网络设备的设备标识创建配置信息,然后将每个网络设备的配置信息与该网络设备的设备标识对应存储至控制设备。当某个网络设备在该站点上电之后,该控制设备能够收到该网络设备的设备标识,然后,该控制设备能够基于该网络设备的设备标识查找该网络设备的配置信息,进而将该网络设备的配置信息发送给该网络设备,以使得该网络设备基于该配置信息执行开局部署。In the traditional zero-configuration deployment solution, the administrator can import the device identification of each network device to be sent to a certain site into the control device, create configuration information based on the device identification of each network device, and then store the configuration information of each network device in correspondence with the device identification of the network device in the control device. When a network device is powered on at the site, the control device can receive the device identification of the network device, and then the control device can search for the configuration information of the network device based on the device identification of the network device, and then send the configuration information of the network device to the network device, so that the network device performs the deployment based on the configuration information.
然而,由于控制设备中的配置信息是与网络设备的设备标识绑定的,网络设备发往站点之前,管理员需要将各个网络设备的设备标识提前导入到控制设备,并且,网络设备到达站点之后,开局人员需要基于设备标识查找对应的网络设备进行安装,因此,导致网络设备部署效率较低。However, since the configuration information in the control device is bound to the device ID of the network device, before the network device is sent to the site, the administrator needs to import the device ID of each network device into the control device in advance. Moreover, after the network device arrives at the site, the start-up personnel need to find the corresponding network device based on the device ID for installation, which results in low efficiency in network device deployment.
发明内容Summary of the invention
本申请提供了一种零配置部署方法、控制设备和网络设备,用于提高网络设备的部署效率。The present application provides a zero-configuration deployment method, a control device, and a network device, which are used to improve the deployment efficiency of network devices.
第一方面,本申请提供了一种零配置部署方法,该零配置部署方法可以应用于零配置布局场景,该零配置部署方法可以由需要零配置布局的网络设备(例如,后文介绍的第一网络设备)执行,也可以由需要零配置布局的网络设备的部件(例如,处理器、芯片或芯片系统等部件)执行。以需要零配置布局的网络设备为第一网络设备为例,第一网络设备通过第二网络设备接入第一站点,并从第二网络设备获取控制设备的地址信息和第一站点的站点标识;第一网络设备基于控制设备的地址信息向控制设备发送第一消息,第一消息包括第一站点的站点标识和第一网络设备的设备类型信息,第一网络设备的设备类型信息用于指示第一网络设备的设备类型;当第一网络设备接收来自控制设备的配置信息之后,第一网络设备基于配置信息执行开局部署。In the first aspect, the present application provides a zero-configuration deployment method, which can be applied to a zero-configuration layout scenario, and can be executed by a network device that requires zero-configuration layout (for example, the first network device described later), or by a component of a network device that requires zero-configuration layout (for example, a processor, a chip, or a chip system, etc.). Taking the network device that requires zero-configuration layout as the first network device as an example, the first network device accesses the first site through the second network device, and obtains the address information of the control device and the site identifier of the first site from the second network device; the first network device sends a first message to the control device based on the address information of the control device, the first message includes the site identifier of the first site and the device type information of the first network device, and the device type information of the first network device is used to indicate the device type of the first network device; after the first network device receives the configuration information from the control device, the first network device performs the start-up deployment based on the configuration information.
其中,第二网络设备为第一站点中已在控制设备注册开局的网络设备,而第一网络设备是通过该第二网络设备接入该第一站点的待开局部署的网络设备。可选的,该第一网络设备可以通过物理连线与第二网络设备连接,或者,该第一网络设备也可以通过物理连线和至少一个网络设备与第二网络设备连接,以实现通过第二网络设备接入第一站点。The second network device is a network device in the first site that has been registered and deployed in the control device, and the first network device is a network device to be deployed and accessed to the first site through the second network device. Optionally, the first network device can be connected to the second network device through a physical connection, or the first network device can also be connected to the second network device through a physical connection and at least one network device, so as to access the first site through the second network device.
在一种可能的示例中,第一网络设备与第二网络设备属于同一设备类型。例如,第一网络设备与第二网络设备均为路由设备(例如,路由器)。又例如,第一网络设备与第二网络设备均为防火墙设备。In a possible example, the first network device and the second network device are of the same device type. For example, the first network device and the second network device are both routing devices (eg, routers). For another example, the first network device and the second network device are both firewall devices.
在另一种可能的示例中,第一网络设备与第二网络设备属于不同的设备类型。例如,第一网络设备为交换设备(例如,交换机)或接入设备(例如,无线接入点),第二网络设备为路由设备(例如,路由器)或防火墙设备。In another possible example, the first network device and the second network device are of different device types. For example, the first network device is a switching device (e.g., a switch) or an access device (e.g., a wireless access point), and the second network device is a routing device (e.g., a router) or a firewall device.
本申请中,第一网络设备在通过第二网络设备接入第一站点之后,能够从第二网络设获取控制设备的地址信息和第一站点的站点标识,然后,该第一网络设备能够基于控制设备的地址信息向控制设备发送第一站点的站点标识和第一网络设备的设备类型信息,以使得控制设备能够基于第一站点的站点标识和第一网络设备的设备类型信息向第一网络设备发送用于执行开局部署的配置信息。由于,第一网络设备向控制设备提供第一站点的站点标识和第一网络设备的类型信息便可进行注册而获得配置信息,即控制设备中的配置信息可以不与第一网络设备的设备标识绑定,因此,不需要控制设备提前录入第一网络设备的设备标识,也不需要开局人员在第一网络设备上线时基于第一网络设备的设备标识查找第一网络设备,因此,有利于提高网络设备的部署效率。In the present application, after the first network device accesses the first site through the second network device, it can obtain the address information of the control device and the site identifier of the first site from the second network device. Then, the first network device can send the site identifier of the first site and the device type information of the first network device to the control device based on the address information of the control device, so that the control device can send the configuration information for executing the initial deployment to the first network device based on the site identifier of the first site and the device type information of the first network device. Since the first network device can register and obtain the configuration information by providing the site identifier of the first site and the type information of the first network device to the control device, that is, the configuration information in the control device may not be bound to the device identifier of the first network device, therefore, the control device does not need to enter the device identifier of the first network device in advance, nor does the initialization personnel need to search for the first network device based on the device identifier of the first network device when the first network device is online, thus, it is beneficial to improve the deployment efficiency of network devices.
在一种可能的实施方式中,配置信息与第一网络设备的设备类型相关。也可以理解为,该配置信息是基于第一网络设备的设备类型信息确定的。例如,控制设备在获取到第一网络设备的设备类型信息之后,能够在第一网络设备所在的第一站点对应的多个网络设备的配置信息中基于第一网络设备的设备类型信息确定待发送给第一网络设备的配置信息。In a possible implementation, the configuration information is related to the device type of the first network device. It can also be understood that the configuration information is determined based on the device type information of the first network device. For example, after obtaining the device type information of the first network device, the control device can determine the configuration information to be sent to the first network device based on the device type information of the first network device from the configuration information of multiple network devices corresponding to the first site where the first network device is located.
本实施方式中,控制设备中的配置信息与第一网络设备的设备类型相关,而不与第一网络设备的设备标识绑定,因此,管理员仅在控制设备输入按设备类型设置的配置信息,而不需要在控制设备提前录入第一网络设备的设备标识,并且,开局人员仅基于设备类型查找一个该设备类型的网络设备作为第一网络设备,而不需要基于第一网络设备的设备标识查找第一网络设备,因此,有利于提高网络设备的部署效率。In this implementation, the configuration information in the control device is related to the device type of the first network device, but is not bound to the device identifier of the first network device. Therefore, the administrator only needs to input the configuration information set according to the device type in the control device, and does not need to enter the device identifier of the first network device in advance in the control device. In addition, the start-up personnel only need to search for a network device of the device type as the first network device based on the device type, and do not need to search for the first network device based on the device identifier of the first network device. Therefore, it is beneficial to improve the deployment efficiency of network devices.
在一种可能的实施方式中,第一网络设备的设备类型信息包括第一网络设备的设备标识,第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备。In a possible implementation manner, the device type information of the first network device includes a device identifier of the first network device, where the device identifier of the first network device is used to indicate the device type of the first network device and uniquely identifies the first network device.
本实施方式中,若第一网络设备的设备标识不仅能够唯一标识第一网络设备,还能够反映出第一网络设备的设备类型,则第一网络设备的设备类型信息可以是第一网络设备的设备标识。例如,第一网络设备的设备标识由多个字符组成,该多个字符中在一个或多个字符能够反映出第一网络设备的设备类型。例如,第一网络设备的设备标识为第一网络设备的设备序列号(equipment serial number,ESN),该ESN能够反映出第一网络设备的设备类型,在这种情况下,第一网络设备的设备类型信息可以是第一网络设备的ESN。在一种示例中,前述第一消息包括第一站点的站点标识和第一网络设备的设备标识(例如,第一网络设备的ESN),第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备。由于,第一消息携带的第一网络设备的设备标识不仅能够唯一标识第一网络设备,还能够反映出第一网络设备的设备类型,因此,有利于节省第一消息的载荷,节省第一网络设备的注册开销。In this embodiment, if the device identifier of the first network device can not only uniquely identify the first network device, but also reflect the device type of the first network device, then the device type information of the first network device can be the device identifier of the first network device. For example, the device identifier of the first network device is composed of multiple characters, and one or more characters of the multiple characters can reflect the device type of the first network device. For example, the device identifier of the first network device is the equipment serial number (equipment serial number, ESN) of the first network device, and the ESN can reflect the device type of the first network device. In this case, the device type information of the first network device can be the ESN of the first network device. In one example, the aforementioned first message includes the site identifier of the first site and the device identifier of the first network device (for example, the ESN of the first network device), and the device identifier of the first network device is used to indicate the device type of the first network device and uniquely identify the first network device. Since the device identifier of the first network device carried by the first message can not only uniquely identify the first network device, but also reflect the device type of the first network device, it is beneficial to save the payload of the first message and save the registration overhead of the first network device.
在一种可能的实施方式中,第一消息还包括第一网络设备的设备标识,第一网络设备的设备标识用于唯一标识第一网络设备。In a possible implementation manner, the first message further includes a device identifier of the first network device, where the device identifier of the first network device is used to uniquely identify the first network device.
本实施方式中,第一网络设备的设备类型信息不包括第一网络设备的设备标识,第一网络设备的设备标识仅用于唯一标识第一网络设备。示例性的,第一网络设备的设备标识为第一网络设备的媒体接入控制地址(media access control address,MAC)地址,该第一网络设备的MAC地址仅用于唯一标识第一网络设备,而无法反映出第一网络设备的设备类型。In this implementation manner, the device type information of the first network device does not include the device identification of the first network device, and the device identification of the first network device is only used to uniquely identify the first network device. Exemplarily, the device identification of the first network device is the media access control address (MAC) address of the first network device, and the MAC address of the first network device is only used to uniquely identify the first network device, and cannot reflect the device type of the first network device.
可选的,第一网络设备的设备类型信息为第一网络设备的设备名称,该第一网络设备的设备名称能够反映第一网络设备的设备类型。同一设备类型的网络设备的设备名称可以相同。例如,第一网络设备的设备名称由多个字符组成,该多个字符中在一个或多个字符能够反映出第一网络设备的设备类型。Optionally, the device type information of the first network device is a device name of the first network device, and the device name of the first network device can reflect the device type of the first network device. The device names of network devices of the same device type can be the same. For example, the device name of the first network device is composed of multiple characters, and one or more characters of the multiple characters can reflect the device type of the first network device.
在一种可能的实施方式中,第一消息还包括第一网络设备的邻接信息,第一网络设备的邻接信息用于指示第一网络设备在第一站点中的连接位置。也可以理解为,第一网络设备的邻接信息用于指示第一网络设备与第一站点中的其他网络设备的连接关系。In a possible implementation, the first message further includes adjacency information of the first network device, and the adjacency information of the first network device is used to indicate the connection position of the first network device in the first site. It can also be understood that the adjacency information of the first network device is used to indicate the connection relationship between the first network device and other network devices in the first site.
示例性的,第一网络设备的邻接信息包括与第一网络设备连接的网络设备的物理地址信息和物理接口信息。其中,物理地址信息可以是MAC地址;物理接口信息可以是设备的物理接口的编号。Exemplarily, the adjacency information of the first network device includes physical address information and physical interface information of the network device connected to the first network device, wherein the physical address information may be a MAC address; and the physical interface information may be a number of a physical interface of the device.
可选的,配置信息与第一网络设备的设备类型和第一网络设备在第一站点中的连接位置相关。也可以理解为,配置信息是基于第一网络设备的设备类型信息和第一网络设备的邻接信息确定的。可选的,第一站点中包括多个网络设备,不同网络设备的邻接信息不同,即不同的网络设备在第一站点中的连接位置不同。也就是说,每个网络设备的邻接信息能够在第一站点中唯一标识一个网络设备。Optionally, the configuration information is related to the device type of the first network device and the connection position of the first network device in the first site. It can also be understood that the configuration information is determined based on the device type information of the first network device and the adjacency information of the first network device. Optionally, the first site includes multiple network devices, and the adjacency information of different network devices is different, that is, the connection positions of different network devices in the first site are different. In other words, the adjacency information of each network device can uniquely identify a network device in the first site.
本实施方式中,控制设备中的配置信息与第一网络设备的设备类型和第一网络设备在第一站点中的连接位置相关相关,而不与第一网络设备的设备标识绑定,因此,管理员仅在控制设备输入按设备类型设置的配置信息,而不需要在控制设备提前录入第一网络设备的设备标识,并且,开局人员仅基于设备类型查找一个该设备类型的网络设备作为第一网络设备,而不需要基于第一网络设备的设备标识查找第一网络设备,因此,有利于提高网络设备的部署效率。此外,第一站点中不同网络设备的邻接信息不同,因此,每个网络设备的邻接信息能够在第一站点中唯一标识一个网络设备。有利于管理员基于邻接信息对第一站点中的各个网络设备设置差异化配置。In this embodiment, the configuration information in the control device is related to the device type of the first network device and the connection position of the first network device in the first site, but is not bound to the device identification of the first network device. Therefore, the administrator only needs to input the configuration information set according to the device type in the control device, and does not need to enter the device identification of the first network device in advance in the control device. In addition, the start-up personnel only need to find a network device of the device type as the first network device based on the device type, and do not need to find the first network device based on the device identification of the first network device. Therefore, it is beneficial to improve the deployment efficiency of the network device. In addition, the adjacency information of different network devices in the first site is different. Therefore, the adjacency information of each network device can uniquely identify a network device in the first site. It is beneficial for the administrator to set differentiated configurations for each network device in the first site based on the adjacency information.
在一种可能的实施方式中,第一网络设备通过第二网络设备接入第一站点之后,方法还包括:第一网络设备基于第一协议获取邻接信息,第一协议包括链路层发现协议(link layer discovery protocol,LLDP)或邻居发现协议(neighbor discoveryprotocol,NDP)。In a possible implementation, after the first network device accesses the first site through the second network device, the method further includes: the first network device obtains adjacency information based on a first protocol, and the first protocol includes a link layer discovery protocol (LLDP) or a neighbor discovery protocol (NDP).
本实施方式中,第一网络设备能够基于在接入第一站点后基于第一协议获取邻接信息,而不需要其他设备的指示或控制而触发获取邻接信息,有利于第一网设备上线后快速获取邻接信息,提高第一网络设备获取邻接信息的效率。In this embodiment, the first network device can obtain adjacency information based on the first protocol after accessing the first site, without the need for instructions or control from other devices to trigger the acquisition of adjacency information. This is beneficial for the first network device to quickly obtain adjacency information after going online, thereby improving the efficiency of the first network device in obtaining adjacency information.
在一种可能的实施方式中,第一网络设备的配置信息包括第一路由配置,第一路由配置用于配置第一网络设备通过广域网(wide area network,WAN)接口接入控制设备的第一路由,第一路由的优先级高于第二路由的优先级,第二路由为第二网络设备通过移动接口接入控制设备的路由。该第一路由配置用于促使第一网络设备在开局部署之后通过第一网络设备的WAN接口与控制设备进行通信,进而该第一网络设备通过第一网络设备的WAN接口与控制设备交互该第一网络设备的管理信令。有利于第一网络设备在开局部署之后,将管理流量(即控制设备与网络设备设备交互的多个管理信令)从第二网络设备切换至第一网络设备,而第二网络设备不再消耗移动接口的流量,能够节省第二网络设备的移动接口的流量。In a possible implementation, the configuration information of the first network device includes a first routing configuration, and the first routing configuration is used to configure a first route for the first network device to access the control device through a wide area network (WAN) interface. The priority of the first route is higher than the priority of the second route, and the second route is the route for the second network device to access the control device through a mobile interface. The first routing configuration is used to enable the first network device to communicate with the control device through the WAN interface of the first network device after initial deployment, and then the first network device exchanges management signaling of the first network device with the control device through the WAN interface of the first network device. It is beneficial for the first network device to switch management traffic (i.e., multiple management signalings exchanged between the control device and the network device) from the second network device to the first network device after initial deployment, and the second network device no longer consumes traffic of the mobile interface, which can save traffic of the mobile interface of the second network device.
第二方面,本申请提供了一种零配置部署方法,该零配置部署方法可以应用于零配置布局场景,该零配置部署方法可以控制设备执行,也可以由控制设备的部件(例如,处理器、芯片或芯片系统等部件)执行。以控制设备为例,控制设备接收来自第一网络设备的第一消息,第一消息包括第一网络设备通过第二网络设备接入的第一站点的站点标识和第一网络设的设备类型信息;然后,控制设备基于第一站点的站点标识和第一网络设备的设备类型信息确定配置信息,并且,控制设备向第一网络设备发送配置信息,配置信息用于第一网络设备执行开局部署。In the second aspect, the present application provides a zero-configuration deployment method, which can be applied to a zero-configuration layout scenario, and the zero-configuration deployment method can be executed by a control device, or can be executed by a component of the control device (for example, a processor, a chip, or a chip system, etc.). Taking a control device as an example, the control device receives a first message from a first network device, and the first message includes a site identifier of a first site accessed by the first network device through a second network device and device type information of the first network device; then, the control device determines configuration information based on the site identifier of the first site and the device type information of the first network device, and the control device sends the configuration information to the first network device, and the configuration information is used by the first network device to perform the initial deployment.
其中,第二网络设备为第一站点中已在控制设备注册开局的网络设备,而第一网络设备是通过该第二网络设备接入该第一站点的待开局部署的网络设备。可选的,该第一网络设备可以通过物理连线与第二网络设备连接,或者,该第一网络设备也可以通过物理连线和至少一个网络设备与第二网络设备连接,以实现通过第二网络设备接入第一站点。The second network device is a network device in the first site that has been registered and deployed in the control device, and the first network device is a network device to be deployed and accessed to the first site through the second network device. Optionally, the first network device can be connected to the second network device through a physical connection, or the first network device can also be connected to the second network device through a physical connection and at least one network device, so as to access the first site through the second network device.
在一种可能的示例中,第一网络设备与第二网络设备属于同一设备类型。例如,第一网络设备与第二网络设备均为路由设备(例如,路由器)。又例如,第一网络设备与第二网络设备均为防火墙设备。In a possible example, the first network device and the second network device are of the same device type. For example, the first network device and the second network device are both routing devices (eg, routers). For another example, the first network device and the second network device are both firewall devices.
在另一种可能的示例中,第一网络设备与第二网络设备属于不同的设备类型。例如,第一网络设备为交换设备(例如,交换机)或接入设备(例如,无线接入点),第二网络设备为路由设备(例如,路由器)或防火墙设备。In another possible example, the first network device and the second network device are of different device types. For example, the first network device is a switching device (e.g., a switch) or an access device (e.g., a wireless access point), and the second network device is a routing device (e.g., a router) or a firewall device.
本申请中,控制设备能够从第一网络设备接收第一网络设备所在的第一站点的站点标识和第一网络设备的设备类型信息,并基于第一站点的站点标识和第一网络设备的设备类型信息为该第一网络设备确定配置信息,然后,向该第一网络设备发送配置信息,以使得第一网络设备基于该配置信息执行开局部署。由于,控制设备是基于站点标识和设备类型信息确定待发送给第一网络设备的配置信息,因此,不需要控制设备将网络设备的配置信息与网络设备的设备标识绑定,能够避免管理员向控制设备导入设备标识和开局人员按设备标识查找网络设备,因此,能够提高网络设备的部署效率。In the present application, the control device can receive the site identifier of the first site where the first network device is located and the device type information of the first network device from the first network device, and determine the configuration information for the first network device based on the site identifier of the first site and the device type information of the first network device, and then send the configuration information to the first network device so that the first network device performs the deployment based on the configuration information. Since the control device determines the configuration information to be sent to the first network device based on the site identifier and the device type information, the control device does not need to bind the configuration information of the network device with the device identifier of the network device, which can avoid the administrator from importing the device identifier to the control device and the deployment personnel from searching for the network device according to the device identifier, thereby improving the deployment efficiency of the network device.
在一种可能的实施方式中,第一网络设备的设备类型信息包括第一网络设备的设备标识,第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备。In a possible implementation manner, the device type information of the first network device includes a device identifier of the first network device, where the device identifier of the first network device is used to indicate the device type of the first network device and uniquely identifies the first network device.
在一种可能的实施方式中,第一消息还包括第一网络设备的设备标识,第一网络设备的设备标识用于唯一标识第一网络设备。In a possible implementation manner, the first message further includes a device identifier of the first network device, where the device identifier of the first network device is used to uniquely identify the first network device.
在一种可能的实施方式中,第一消息还包括第一网络设备的邻接信息,第一网络设备的邻接信息用于指示第一网络设备在第一站点中的连接位置。控制设备基于第一站点的站点标识和第一网络设备的设备类型信息确定配置信息,包括:控制设备基于第一站点的站点标识、第一网络设备的设备类型信息和第一网络设备的邻接信息确定第一网络设备的配置信息。In a possible implementation, the first message further includes adjacency information of the first network device, and the adjacency information of the first network device is used to indicate a connection position of the first network device in the first site. The control device determines the configuration information based on the site identifier of the first site and the device type information of the first network device, including: the control device determines the configuration information of the first network device based on the site identifier of the first site, the device type information of the first network device, and the adjacency information of the first network device.
本实施方式中,由于,第一网络设备除了向控制设备提供第一站点的站点标识和设备类型信息之外,还能够提供指示该第一网络设备在第一站点中的连接位置的邻接信息,控制设备能够通过各个网络设备的邻接信息区分同一设备类型的不同网络设备,进而能够针对该第一网络设备下发该第一网络设备的配置信息。因此,能够在免绑定设备标识的情况下实现同一设备类型的不同网络设备的差异化配置,有利于进一步提高网络设备部署的效率。In this implementation, since the first network device can provide the control device with the site identifier and device type information of the first site and can also provide the adjacency information indicating the connection position of the first network device in the first site, the control device can distinguish different network devices of the same device type through the adjacency information of each network device, and then can issue the configuration information of the first network device to the first network device. Therefore, it is possible to achieve differentiated configuration of different network devices of the same device type without binding the device identifier, which is conducive to further improving the efficiency of network device deployment.
在一种可能的实施方式中,控制设备包括预配置的多个网络设备的配置信息,预配置的多个网络设备的配置信息包括第一站点中的多个网络设备的配置信息,第一站点中的多个网络设备的配置信息中存在至少两个具有相同设备类型的网络设备的配置信息不同,即第一站点中具有相同设备类型的不同网络设备的配置信息不完全相同。In one possible implementation, the control device includes configuration information of multiple preconfigured network devices, the configuration information of the multiple preconfigured network devices includes configuration information of multiple network devices in the first site, and among the configuration information of the multiple network devices in the first site, the configuration information of at least two network devices with the same device type is different, that is, the configuration information of different network devices with the same device type in the first site is not completely the same.
本实施方式中,提出控制设备可以存储第一站点中多个网络设备的配置信息,并且,第一站点中的多个网络设备的配置信息中存在至少两个具有相同设备类型的网络设备的配置信息不同,即第一站点中具有相同设备类型的不同网络设备的配置信息不完全相同。因此,有利于针对同一设备类型的网络设备实现差异化配置。In this implementation, it is proposed that the control device can store configuration information of multiple network devices in the first site, and among the configuration information of the multiple network devices in the first site, there are at least two network devices with the same device type whose configuration information is different, that is, the configuration information of different network devices with the same device type in the first site is not completely the same. Therefore, it is conducive to realizing differentiated configuration for network devices of the same device type.
在一种可能的实施方式中,控制设备包括第一站点对应的第一对应关系,第一对应关系用于指示第一站点中的多个网络设备的邻接信息与第一站点中的多个网络设备的配置信息之间的对应关系,每个网络设备的邻接信息用于指示网络设备在第一站点中的连接位置,不同的网络设备在第一站点中的连接位置不同。In a possible implementation, the control device includes a first correspondence relationship corresponding to the first site, and the first correspondence relationship is used to indicate the correspondence between adjacency information of multiple network devices in the first site and configuration information of multiple network devices in the first site. The adjacency information of each network device is used to indicate the connection position of the network device in the first site, and different network devices have different connection positions in the first site.
本实施方式中,提出控制设备将第一站点中的各个网络设备的配置信息与各个网络设备的邻接信息对应存储,由于不同的网络设备在第一站点中的连接位置不同,因此,控制设备能够基于邻接信息区分不同的网络设备的配置信息,有利于控制设备基于网络设备的邻接信息确定该网络设备的配置信息。In this embodiment, it is proposed that the control device stores the configuration information of each network device in the first site in correspondence with the adjacency information of each network device. Since different network devices have different connection positions in the first site, the control device can distinguish the configuration information of different network devices based on the adjacency information, which is beneficial for the control device to determine the configuration information of the network device based on the adjacency information of the network device.
在一种可能的实施方式中,控制设备基于第一站点的站点标识、第一网络设备的设备类型信息和第一网络设备的邻接信息确定第一网络设备的配置信息,包括:控制设备基于第一站点的站点标识确定第一站点对应的第一对应关系;控制设备基于第一网络设备的邻接信息和第一对应关系确定与邻接信息对应的配置信息为第一网络设备的配置信息。In a possible implementation, the control device determines the configuration information of the first network device based on the site identifier of the first site, the device type information of the first network device, and the adjacency information of the first network device, including: the control device determines the first correspondence corresponding to the first site based on the site identifier of the first site; the control device determines that the configuration information corresponding to the adjacency information is the configuration information of the first network device based on the adjacency information of the first network device and the first correspondence.
本实施方式中,由于控制设备中存储有第一对应关系,即第一站点中的各个网络设备的配置信息与各个网络设备的邻接信息之间的对应关系,当控制设备获取到第一网络设备的邻接信息时,该控制设备能够基于该邻接信息确定该第一网络设备的配置信息,有利于控制设备快速且准确查找管理员为第一网络设备预配置的配置信息,进而有利于控制设备快速且准确地为第一网络设备分配配置信息,进而提高为第一网络设备注册的效率。In this embodiment, since the control device stores a first corresponding relationship, that is, the corresponding relationship between the configuration information of each network device in the first site and the adjacency information of each network device, when the control device obtains the adjacency information of the first network device, the control device can determine the configuration information of the first network device based on the adjacency information, which is beneficial for the control device to quickly and accurately find the configuration information pre-configured by the administrator for the first network device, and further helps the control device to quickly and accurately allocate configuration information to the first network device, thereby improving the efficiency of registering the first network device.
在一种可能的实施方式中,控制设备包括预配置的站点拓扑,预配置的站点拓扑包括第一站点的站点标识指示的第一站点拓扑,预配置的站点拓扑中的多个网络设备的配置信息包括第一站点拓扑中的多个网络设备的配置信息,第一站点拓扑包含的多个网络设备中存在至少两个具有相同设备类型的网络设备的配置信息不同。In one possible implementation, the control device includes a preconfigured site topology, the preconfigured site topology includes a first site topology indicated by a site identifier of a first site, configuration information of multiple network devices in the preconfigured site topology includes configuration information of multiple network devices in the first site topology, and among the multiple network devices included in the first site topology, there are at least two network devices with the same device type whose configuration information is different.
可选的,控制设备可以基于收到的来自第一站点的多个网络设备的邻接信息生成第一站点的站点拓扑,并通过第一站点的站点拓扑向管理员展示第一站点中各个网络设备的邻接关系,有利于管理员在第一站点中的网络设备上线后对第一站点中各个网络设备进行管理维护。Optionally, the control device can generate a site topology of the first site based on the adjacency information received from multiple network devices in the first site, and display the adjacency relationship of each network device in the first site to the administrator through the site topology of the first site, which is beneficial for the administrator to manage and maintain each network device in the first site after the network devices in the first site are online.
在一种可能的实施方式中,该方法还包括:控制设备将第一网络设备的配置信息和第一网络设备的设备标识对应存储。In a possible implementation, the method further includes: the control device stores the configuration information of the first network device and the device identification of the first network device in correspondence with each other.
本实施方式中,若第一消息包括第一网络设备的设备标识,则控制设备将第一消息中的第一网络设备的标识信息与第一网络设备的配置信息对应存储。有利于控制设备在后期维护管理第一网络设备时,能够基于第一网络设备的设备标识快速准确地查找到第一网络设备,有利于提高控制设备管理第一网络设备的效率。In this implementation, if the first message includes the device identification of the first network device, the control device stores the identification information of the first network device in the first message in correspondence with the configuration information of the first network device. This is beneficial for the control device to quickly and accurately find the first network device based on the device identification of the first network device when maintaining and managing the first network device in the later stage, which is beneficial for improving the efficiency of the control device in managing the first network device.
在一种可能的实施方式中,控制设备接收来自第一网络设备的第一消息之前,方法还包括:控制设备从第二网络设备接收第二网络设备的设备标识;控制设备向第二网络设备发送第二网络设备的配置信息,第二网络设备的配置信息包括控制设备的地址信息和第一站点的站点标识。In a possible implementation, before the control device receives the first message from the first network device, the method also includes: the control device receives a device identifier of the second network device from the second network device; the control device sends configuration information of the second network device to the second network device, and the configuration information of the second network device includes address information of the control device and a site identifier of the first site.
本实施方式中,提出控制设备发送给第二网络设备的配置信息包括控制设备的地址信息和第一站点的站点标识,以使得第一网络设备通过第二网络设备接入第一站点之后能够从第二网络设备获取到控制设备的地址信息和第一站点的站点标识。由于,第一网络设备不需要与其他的服务器或数据中心建立连接而获取控制设备的地址信息和第一站点的站点标识,有利于第一网络设备快速获取控制设备的地址信息和第一站点的站点标识,提高第一网络设备获取控制设备的地址信息和第一站点的站点标识的效率。In this embodiment, it is proposed that the configuration information sent by the control device to the second network device includes the address information of the control device and the site identifier of the first site, so that the first network device can obtain the address information of the control device and the site identifier of the first site from the second network device after accessing the first site through the second network device. Since the first network device does not need to establish a connection with other servers or data centers to obtain the address information of the control device and the site identifier of the first site, it is beneficial for the first network device to quickly obtain the address information of the control device and the site identifier of the first site, thereby improving the efficiency of the first network device in obtaining the address information of the control device and the site identifier of the first site.
在一种可能的实施方式中,第二网络设备的配置信息包括动态主机配置协议(dynamic host configuration protocol,DHCP)配置,该DHCP配置用于指示第二网络设备为DHCP服务器,其他接入该第二网络设备的网络设备为DHCP客户端。其中,该DHCP配置包括DHCP Option配置,该DHCP Option配置包括控制设备的地址信息和第一站点的站点标识。该DHCP Option配置用于在DHCP流程向所述第一网络设备提供控制设备的地址信息和第一站点的站点标识。In a possible implementation, the configuration information of the second network device includes a dynamic host configuration protocol (DHCP) configuration, and the DHCP configuration is used to indicate that the second network device is a DHCP server, and other network devices connected to the second network device are DHCP clients. The DHCP configuration includes a DHCP Option configuration, and the DHCP Option configuration includes the address information of the control device and the site identifier of the first site. The DHCP Option configuration is used to provide the first network device with the address information of the control device and the site identifier of the first site in the DHCP process.
本实施方式中,控制设备通过DHCP配置的方式将控制设备的地址信息和第一站点的站点标识配置给第二网络设备,并配置第二网络设备作为DHCP服务器,以使得接入第二网络设备的第一网络设备作为DHCP客户端,进而第一网络设备通过DHCP流程即可获取到控制设备的地址信息和第一站点的站点标识。因此,有利于第一网络设备快速获取控制设备的地址信息和第一站点的站点标识,提高第一网络设备获取控制设备的地址信息和第一站点的站点标识的效率。In this embodiment, the control device configures the address information of the control device and the site identifier of the first site to the second network device through DHCP configuration, and configures the second network device as a DHCP server, so that the first network device connected to the second network device acts as a DHCP client, and then the first network device can obtain the address information of the control device and the site identifier of the first site through the DHCP process. Therefore, it is beneficial for the first network device to quickly obtain the address information of the control device and the site identifier of the first site, and improves the efficiency of the first network device in obtaining the address information of the control device and the site identifier of the first site.
在一种可能的实施方式中,第二网络设备包括移动接口。示例性的,该移动接口为Cellular接口。例如,该Cellular接口可以是3G Cellular接口,也可以是长期演进(longterm evolution,LTE)Cellular接口。随着通信技术的发展,前述移动接口还可以是基于5G技术的移动接口或基于6G技术的移动接口等,此处不做限定。In a possible implementation, the second network device includes a mobile interface. Exemplarily, the mobile interface is a cellular interface. For example, the cellular interface may be a 3G cellular interface or a long term evolution (LTE) cellular interface. With the development of communication technology, the mobile interface may also be a mobile interface based on 5G technology or a mobile interface based on 6G technology, etc., which is not limited here.
在一种可能的实施方式中,第二网络设备的配置信息还包括第二路由配置,第二路由配置用于配置第二网络设备通过移动接口接入控制设备的第二路由,以使得第二网络设备执行配置布局之后通过第二网络设备的移动接口与控制设备进行通信,进而该第二网络设备通过第二网络设备的移动接口与控制设备交互该第二网络设备的管理信令。也就是说,第二网络设备在注册开局过程中可以不使用WAN接口(或者第二网络设备没有WAN接口),有利于降低第二网络设备的注册开局流程对WAN接口的依赖。In a possible implementation, the configuration information of the second network device also includes a second routing configuration, and the second routing configuration is used to configure the second network device to access the second route of the control device through the mobile interface, so that the second network device communicates with the control device through the mobile interface of the second network device after executing the configuration layout, and then the second network device exchanges the management signaling of the second network device with the control device through the mobile interface of the second network device. In other words, the second network device may not use the WAN interface during the registration and deployment process (or the second network device does not have a WAN interface), which is conducive to reducing the dependence of the registration and deployment process of the second network device on the WAN interface.
在一种可能的实施方式中,第一网络设备的配置信息包括第一路由配置,第一路由配置用于配置第一网络设备通过WAN接口接入控制设备的第一路由,第一路由的优先级高于第二路由的优先级,第二路由为第二网络设备通过移动接口接入控制设备的路由。In a possible implementation, the configuration information of the first network device includes a first routing configuration, which is used to configure a first route for the first network device to access the control device through a WAN interface. The priority of the first route is higher than the priority of the second route, and the second route is the route for the second network device to access the control device through a mobile interface.
本实施方式中,虽然,控制设备已向第二网络设备发送了第二路由配置(即配置第二网络设备通过移动接口接入控制设备的第二路由),但是,控制设备为后上线的第一网络设备发送了第一路由配置(即配置第一网络设备通过WAN接口接入控制设备的第一路由,并且,第一路由的优先级高于第二路由的优先级),并且,第一网络设备与第二网络设备之间能够进行路由学习,因此,第二网络设备切换为通过第一网络设备的WAN口与控制设备交互管理信令。例如,第二网络设备发送给控制设备的管理信令经过第一网络设备的WAN接口向控制设备转发;控制设备发送给第二网络设备的管理信令经过第一网络设备的WAN接口向第二网络设备转发。由于,第一网络设备和第二网络设备都不再经过移动接口转发管理信令,因此,第二网络设备不再消耗流量。In this embodiment, although the control device has sent the second routing configuration to the second network device (i.e., configuring the second network device to access the second route of the control device through the mobile interface), the control device sends the first routing configuration to the first network device that comes online later (i.e., configuring the first network device to access the first route of the control device through the WAN interface, and the priority of the first route is higher than the priority of the second route), and the first network device and the second network device can perform routing learning, so the second network device switches to interacting with the control device through the WAN port of the first network device. For example, the management signaling sent by the second network device to the control device is forwarded to the control device via the WAN interface of the first network device; the management signaling sent by the control device to the second network device is forwarded to the second network device via the WAN interface of the first network device. Since both the first network device and the second network device no longer forward management signaling through the mobile interface, the second network device no longer consumes traffic.
需要说明的是,本方面的具体实施方式和有益效果与前文第一方面中的部分实施方式类似,具体可参见第一方面的具体实施方式和其有益效果,在此不再赘述。It should be noted that the specific implementation methods and beneficial effects of this aspect are similar to some implementation methods in the first aspect above. Please refer to the specific implementation methods and beneficial effects of the first aspect for details, and no further details will be given here.
第三方面,本申请提供了一种网络设备,该网络设备为待开局部署的网络设备。该网络设备可以是路由设备(例如,路由器)、交换设备(例如,交换机)、接入设备(例如,接入点)或防火墙设备。该网络设备包括接口模块和处理模块。In a third aspect, the present application provides a network device, which is a network device to be deployed. The network device can be a routing device (e.g., a router), a switching device (e.g., a switch), an access device (e.g., an access point), or a firewall device. The network device includes an interface module and a processing module.
其中,接口模块,用于通过第二网络设备接入第一站点,并从第二网络设备获取控制设备的地址信息和第一站点的站点标识,第二网络设备为第一站点中已在控制设备注册开局的网络设备;该接口模块,还用于基于控制设备的地址信息向控制设备发送第一消息,第一消息包括第一站点的站点标识和第一网络设备的设备类型信息,第一网络设备的设备类型信息用于指示第一网络设备的设备类型;该接口模块,还用于接收来自控制设备的配置信息;处理模块,用于基于配置信息执行开局部署。Among them, the interface module is used to access the first site through the second network device, and obtain the address information of the control device and the site identifier of the first site from the second network device, the second network device is a network device in the first site that has been registered and started in the control device; the interface module is also used to send a first message to the control device based on the address information of the control device, the first message includes the site identifier of the first site and the device type information of the first network device, the device type information of the first network device is used to indicate the device type of the first network device; the interface module is also used to receive configuration information from the control device; the processing module is used to perform startup deployment based on the configuration information.
在一种可能的实施方式中,配置信息与第一网络设备的设备类型相关。In a possible implementation manner, the configuration information is related to a device type of the first network device.
在一种可能的实施方式中,第一网络设备的设备类型信息包括第一网络设备的设备标识,第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备;或者,第一消息还包括第一网络设备的设备标识,第一网络设备的设备标识用于唯一标识第一网络设备。In a possible implementation, the device type information of the first network device includes a device identifier of the first network device, which is used to indicate the device type of the first network device and uniquely identify the first network device; or, the first message also includes a device identifier of the first network device, which is used to uniquely identify the first network device.
在一种可能的实施方式中,第一消息还包括第一网络设备的邻接信息,第一网络设备的邻接信息用于指示第一网络设备在第一站点中的连接位置,配置信息与第一网络设备的设备类型和第一网络设备在第一站点中的连接位置相关。In a possible implementation, the first message also includes adjacency information of the first network device, the adjacency information of the first network device is used to indicate a connection position of the first network device in the first site, and the configuration information is related to a device type of the first network device and a connection position of the first network device in the first site.
在一种可能的实施方式中,处理模块,还用于基于第一协议获取邻接信息,第一协议包括链路层发现协议LLDP或邻居发现协议NDP。In a possible implementation, the processing module is further configured to obtain adjacency information based on a first protocol, where the first protocol includes a Link Layer Discovery Protocol LLDP or a Neighbor Discovery Protocol NDP.
在一种可能的实施方式中,第一网络设备的配置信息包括第一路由配置,第一路由配置用于配置第一网络设备通过广域网WAN接口接入控制设备的第一路由,第一路由的优先级高于第二路由的优先级,第二路由为第二网络设备通过移动接口接入控制设备的路由。In a possible implementation, the configuration information of the first network device includes a first routing configuration, and the first routing configuration is used to configure a first route for the first network device to access the control device through a wide area network (WAN) interface. The priority of the first route is higher than the priority of the second route, and the second route is the route for the second network device to access the control device through a mobile interface.
需要说明的是,本方面的具体实施方式和有益效果与前文第一方面中的部分实施方式类似,具体可参见第一方面的具体实施方式和其有益效果,在此不再赘述。It should be noted that the specific implementation methods and beneficial effects of this aspect are similar to some implementation methods in the first aspect above. Please refer to the specific implementation methods and beneficial effects of the first aspect for details, and no further details will be given here.
第四方面,本申请提供了一种控制设备,该控制设备是为待开局部署的网络设备分发配置信息的设备、装置或服务器。该控制设备包括收发模块和处理模块。In a fourth aspect, the present application provides a control device, which is a device, apparatus or server for distributing configuration information to network devices to be deployed. The control device includes a transceiver module and a processing module.
其中,收发模块,用于接收来自第一网络设备的第一消息,第一消息包括第一网络设备通过第二网络设备接入的第一站点的站点标识和第一网络设的设备类型信息,第二网络设备为第一站点中已在控制设备注册开局的网络设备;处理模块,用于基于第一站点的站点标识和第一网络设备的设备类型信息确定配置信息;该收发模块,还用于向第一网络设备发送配置信息,配置信息用于第一网络设备执行开局部署。Among them, the transceiver module is used to receive a first message from the first network device, the first message includes the site identifier of the first site accessed by the first network device through the second network device and the device type information of the first network device, and the second network device is a network device in the first site that has been registered and started in the control device; the processing module is used to determine the configuration information based on the site identifier of the first site and the device type information of the first network device; the transceiver module is also used to send the configuration information to the first network device, and the configuration information is used for the first network device to perform the start-up deployment.
在一种可能的实施方式中,第一网络设备的设备类型信息包括第一网络设备的设备标识,第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备;或者,第一消息还包括第一网络设备的设备标识,第一网络设备的设备标识用于唯一标识第一网络设备。In a possible implementation, the device type information of the first network device includes a device identifier of the first network device, which is used to indicate the device type of the first network device and uniquely identify the first network device; or, the first message also includes a device identifier of the first network device, which is used to uniquely identify the first network device.
在一种可能的实施方式中,第一消息还包括第一网络设备的邻接信息,第一网络设备的邻接信息用于指示第一网络设备在第一站点中的连接位置。In a possible implementation manner, the first message further includes adjacency information of the first network device, where the adjacency information of the first network device is used to indicate a connection position of the first network device in the first site.
该处理模块,具体用于基于第一站点的站点标识、第一网络设备的设备类型信息和第一网络设备的邻接信息确定第一网络设备的配置信息。The processing module is specifically configured to determine configuration information of the first network device based on the site identifier of the first site, device type information of the first network device, and adjacency information of the first network device.
在一种可能的实施方式中,控制设备包括存储模块。该存储模块,用于存储预配置的多个网络设备的配置信息,预配置的多个网络设备的配置信息包括第一站点中的多个网络设备的配置信息,第一站点中的多个网络设备的配置信息中存在至少两个具有相同设备类型的网络设备的配置信息不同。In a possible implementation, the control device includes a storage module. The storage module is used to store configuration information of multiple preconfigured network devices, the configuration information of the multiple preconfigured network devices includes configuration information of multiple network devices in the first site, and the configuration information of at least two network devices with the same device type in the multiple network devices in the first site has different configuration information.
在一种可能的实施方式中,该存储模块,还用于存储第一站点对应的第一对应关系,第一对应关系用于指示第一站点中的多个网络设备的邻接信息与第一站点中的多个网络设备的配置信息之间的对应关系,每个网络设备的邻接信息用于指示网络设备在第一站点中的连接位置,不同的网络设备在第一站点中的连接位置不同。In a possible implementation, the storage module is also used to store a first correspondence relationship corresponding to the first site, where the first correspondence relationship is used to indicate the correspondence between adjacency information of multiple network devices in the first site and configuration information of multiple network devices in the first site, and the adjacency information of each network device is used to indicate the connection position of the network device in the first site, and different network devices have different connection positions in the first site.
在一种可能的实施方式中,该处理模块,具体用于:In a possible implementation manner, the processing module is specifically configured to:
基于第一站点的站点标识确定第一站点对应的第一对应关系;Determine a first corresponding relationship corresponding to the first site based on the site identifier of the first site;
基于第一网络设备的邻接信息和第一对应关系确定与邻接信息对应的配置信息为第一网络设备的配置信息。Based on the adjacency information of the first network device and the first corresponding relationship, it is determined that the configuration information corresponding to the adjacency information is the configuration information of the first network device.
在一种可能的实施方式中,该存储模块,还用于将第一网络设备的配置信息和第一网络设备的设备标识对应存储。In a possible implementation manner, the storage module is further configured to store the configuration information of the first network device and the device identification of the first network device in correspondence with each other.
在一种可能的实施方式中,该收发模块,还用于:In a possible implementation manner, the transceiver module is further used for:
从第二网络设备接收第二网络设备的设备标识;receiving a device identification of the second network device from the second network device;
向第二网络设备发送第二网络设备的配置信息,第二网络设备的配置信息包括控制设备的地址信息和第一站点的站点标识。The configuration information of the second network device is sent to the second network device, where the configuration information of the second network device includes the address information of the control device and the site identifier of the first site.
在一种可能的实施方式中,第二网络设备的配置信息还包括第二路由配置,第二路由配置用于配置第二网络设备通过移动接口接入控制设备的第二路由。In a possible implementation manner, the configuration information of the second network device further includes a second routing configuration, where the second routing configuration is used to configure a second route for the second network device to access the control device through the mobile interface.
在一种可能的实施方式中,第一网络设备的配置信息包括第一路由配置,第一路由配置用于配置第一网络设备通过WAN接口接入控制设备的第一路由,第一路由的优先级高于第二路由的优先级,第二路由为第二网络设备通过移动接口接入控制设备的路由。In a possible implementation, the configuration information of the first network device includes a first routing configuration, which is used to configure a first route for the first network device to access the control device through a WAN interface. The priority of the first route is higher than the priority of the second route, and the second route is the route for the second network device to access the control device through a mobile interface.
在一种可能的实施方式中,第一网络设备与第二网络设备属于同一设备类型;第一网络设备与第二网络设备均为路由设备;或者,第一网络设备与第二网络设备均为防火墙设备。In a possible implementation manner, the first network device and the second network device are of the same device type; the first network device and the second network device are both routing devices; or the first network device and the second network device are both firewall devices.
在一种可能的实施方式中,第一网络设备与第二网络设备属于不同的设备类型;第一网络设备为交换设备或接入设备,第二网络设备为路由设备或防火墙设备。In a possible implementation manner, the first network device and the second network device are of different device types; the first network device is a switching device or an access device, and the second network device is a routing device or a firewall device.
需要说明的是,本方面的具体实施方式和有益效果与前文第一方面中的部分实施方式或第二方面的部分实施方式类似,具体可参见第一方面或第二方面的具体实施方式和其有益效果,在此不再赘述。It should be noted that the specific implementation methods and beneficial effects of this aspect are similar to some implementation methods of the first aspect or some implementation methods of the second aspect mentioned above. Please refer to the specific implementation methods and beneficial effects of the first aspect or the second aspect for details, and no further details will be given here.
第五方面,本申请提供了一种装置,该装置可以是集成电路芯片。该集成电路芯片包括处理器。该处理器可以调用程序或指令以使得该装置执行如前述各个方面的中的任一种实施方式所介绍的方法。In a fifth aspect, the present application provides a device, which may be an integrated circuit chip. The integrated circuit chip includes a processor. The processor may call a program or instruction to enable the device to execute a method as described in any one of the embodiments of the aforementioned various aspects.
可选的,该装置还包括存储器,该处理器与存储器耦合,该存储器用于存储前述程序或指令,以使得处理器从前述存储器调用程序或指令。Optionally, the device further includes a memory, the processor is coupled to the memory, and the memory is used to store the aforementioned program or instruction, so that the processor calls the program or instruction from the aforementioned memory.
第六方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当该指令在计算机上运行时,以使得计算机执行如前各个方面中的任一种实施方式所介绍的方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute a method as described in any one of the embodiments in the foregoing aspects.
第七方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得该计算机执行如前述各个方面中的任一种实施方式所介绍的方法。In a seventh aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a method as described in any one of the aforementioned aspects.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1A为本申请提供的零配置部署方法适用的一个系统架构图;FIG1A is a system architecture diagram applicable to the zero-configuration deployment method provided in this application;
图1B为本申请提供的零配置部署方法适用的系统架构的一个示例图;FIG1B is an example diagram of a system architecture applicable to the zero-configuration deployment method provided in this application;
图2A为传统技术中的零配置部署方案的一个示例图;FIG. 2A is an example diagram of a zero-configuration deployment solution in conventional technology;
图2B为传统技术中的零配置部署方案的另一个示例图;FIG. 2B is another example diagram of a zero-configuration deployment solution in conventional technology;
图2C为传统技术中的零配置部署方案的另一个示例图;FIG2C is another example diagram of a zero-configuration deployment solution in conventional technology;
图3为本申请提供的零配置部署方法的一个流程图;FIG3 is a flow chart of the zero-configuration deployment method provided by the present application;
图4为本申请提供的零配置部署方法的一种实施例的一个示例图;FIG4 is an exemplary diagram of an embodiment of a zero-configuration deployment method provided by the present application;
图5为本申请提供的零配置部署方法的另一个流程图;FIG5 is another flow chart of the zero-configuration deployment method provided by the present application;
图6为本申请提供的零配置部署方法的另一种实施例的一个示例图;FIG6 is an exemplary diagram of another embodiment of the zero-configuration deployment method provided by the present application;
图7为本申请提供的零配置部署方法的另一个流程图;FIG7 is another flow chart of the zero-configuration deployment method provided by the present application;
图8为本申请提供的零配置部署方法的另一种实施例的一个示例图;FIG8 is an exemplary diagram of another embodiment of the zero-configuration deployment method provided by the present application;
图9为本申请提供的控制设备的一个实施例示意图;FIG9 is a schematic diagram of an embodiment of a control device provided by the present application;
图10为本申请提供的网络设备的一个实施例示意图。FIG. 10 is a schematic diagram of an embodiment of a network device provided in the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。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 are only part of the embodiments of the present application, rather than all the embodiments.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this article generally indicates that the associated objects before and after are in an "or" relationship.
本申请提供的零配置部署方法可以应用于存在多个网络设备需要执行零配置布局的场景。下面先结合图1A对该场景下的网络系统进行简单介绍:The zero configuration deployment method provided in this application can be applied to a scenario where multiple network devices need to perform zero configuration deployment. The following is a brief introduction to the network system in this scenario in conjunction with Figure 1A:
如图1A所示,该网络系统包括控制设备和多个待配置布局的网络设备。其中,控制设备中存储有管理员为各个网络设备配置的配置信息,控制设备用于向待配置布局的网络设备提供配置信息,待配置布局的网络设备用于基于配置信息执行开局部署。示例性的,前述控制设备可以是控制器、具有控制管理功能的服务器或管理平台等;前述网络设备可以是路由设备(例如,路由器)、交换设备(例如,交换机)、接入设备(例如,无线接入点)和防火墙等设备,本申请不限制。前述多个网络系统可以包含路由设备、交换设备、接入设备和防火墙中至少一种网络设备,每种网络设备可以有一个或多个,此处不做限定。示例性的,前述网络系统可以是软件定义广域网络(Software-defined network in a wide areanetwork,SD-WAN),也可以是软件定义分支(Software-defined branch,SD-branch)的分支网络,本申请不限制。As shown in FIG1A , the network system includes a control device and a plurality of network devices to be configured. Among them, the control device stores configuration information configured by the administrator for each network device, and the control device is used to provide configuration information to the network device to be configured, and the network device to be configured is used to perform deployment based on the configuration information. Exemplarily, the aforementioned control device may be a controller, a server or management platform with control and management functions, etc.; the aforementioned network device may be a routing device (e.g., a router), a switching device (e.g., a switch), an access device (e.g., a wireless access point), a firewall and other devices, which are not limited in this application. The aforementioned multiple network systems may include at least one network device among routing devices, switching devices, access devices and firewalls, and each network device may have one or more, which is not limited here. Exemplarily, the aforementioned network system may be a software-defined wide area network (Software-defined network in a wide area network, SD-WAN), or a branch network of a software-defined branch (Software-defined branch, SD-branch), which is not limited in this application.
以一种常见的分支网络为例,如图1B所示,该网络系统包括控制设备、客户端以及构成分支站点的多个网络设备,该分支站点包括至少一个路由设备(例如,路由器1和路由器2)、至少一个交换设备(例如,与路由器1连接的交换机1和交换机2)和至少一个接入设备(例如,与交换机1连接的接入点1和接入点2,与交换机2连接的接入点3和接入点4等)。需要说明的是,图1B所示示例中的路由器1可以与路由器2连接,路由器2还可以与至少一个交换机连接(图未示),与路由器2连接的交换机还可以与至少一个接入节点连接(图未示),此处不做限定。在实际应用中,可以根据组网需求选择多个网络设备组建分支站点,本申请不限制。一般地,系统中靠近网络的网络设备先执行开局部署,远离网络的网络设备基于已开局部署的网络设备接入网络再执行开局部署。以图1B为例,靠近网络的路由器1相比于远离网络的交换机1先执行开局部署,路由器1执行开局部署之后交换机1执行开局部署。Taking a common branch network as an example, as shown in FIG1B, the network system includes a control device, a client, and multiple network devices constituting a branch site, and the branch site includes at least one routing device (for example, router 1 and router 2), at least one switching device (for example, switch 1 and switch 2 connected to router 1) and at least one access device (for example, access point 1 and access point 2 connected to switch 1, access point 3 and access point 4 connected to switch 2, etc.). It should be noted that the router 1 in the example shown in FIG1B can be connected to the router 2, and the router 2 can also be connected to at least one switch (not shown in the figure), and the switch connected to the router 2 can also be connected to at least one access node (not shown in the figure), which is not limited here. In practical applications, multiple network devices can be selected to form a branch site according to networking requirements, and this application is not limited. Generally, the network devices close to the network in the system first perform the deployment, and the network devices far away from the network access the network based on the deployed network devices and then perform the deployment. Taking FIG1B as an example, the router 1 close to the network performs the deployment before the switch 1 far away from the network, and the switch 1 performs the deployment after the router 1 performs the deployment.
图2A和图2B为传统技术中的两种零配置部署方案,分支站点中靠近网络的网络设备可以基于图2A或图2B所示的方式执行开局部署。如图2A或图2B所示,管理员通过客户端能够将待发往某一站点的各个网络设备(包括图2A和图2B所示示例中的网络设备1和图2C所示示例中的网络设备2)的设备标识导入控制设备,并为每个网络设备的设备标识创建配置信息,然后将每个网络设备的配置信息与该网络设备的设备标识对应存储至控制设备。以配置网络设备1为例进行表述。开局人员到达站点之后基于设备标识1查找网络设备1。待该网络设备1在该站点上电之后,网络设备1从动态主机配置协议(dynamic hostconfiguration protocol,DHCP)服务器获取DHCP服务器为该网络设备1分配的IP地址,并且,该网络设备1还将获取控制设备的地址信息(例如,控制设备的IP地址和端口号)。在图2A所示示例中,控制设备的地址信息存储于注册查询中心中。网络设备1基于注册查询中心的域名通过DNS服务器获取注册查询中心的地址信息,再基于注册查询中心的地址信息向注册查询中心发送查询申请,以获取控制设备的地址信息。在图2B所示示例中,控制设备的地址信息存储于DHCP服务器中。网络设备1从DHCP服务器获取网络设备1的IP地址的过程中,也能够从DHCP服务器获取控制设备的地址信息。网络设备1获取到控制设备的地址信息之后,该网络设备1向控制设备发送网络设备1的设备标识(即设备标识1)。控制设备基于收到的设备标识1查找网络设备1的配置信息,并向网络设备1发送网络设备1的配置信息。网络设备1基于收到的配置信息执行开局部署。FIG. 2A and FIG. 2B are two zero-configuration deployment solutions in traditional technology. The network devices close to the network in the branch site can perform the deployment based on the method shown in FIG. 2A or FIG. 2B. As shown in FIG. 2A or FIG. 2B, the administrator can import the device identification of each network device to be sent to a certain site (including the network device 1 in the example shown in FIG. 2A and FIG. 2B and the network device 2 in the example shown in FIG. 2C) into the control device through the client, and create configuration information for the device identification of each network device, and then store the configuration information of each network device in correspondence with the device identification of the network device to the control device. Take the configuration of network device 1 as an example. After the start-up personnel arrive at the site, they search for network device 1 based on device identification 1. After the network device 1 is powered on at the site, the network device 1 obtains the IP address assigned by the DHCP server to the network device 1 from the dynamic host configuration protocol (DHCP) server, and the network device 1 will also obtain the address information of the control device (for example, the IP address and port number of the control device). In the example shown in FIG. 2A, the address information of the control device is stored in the registration query center. Network device 1 obtains the address information of the registration query center through the DNS server based on the domain name of the registration query center, and then sends a query application to the registration query center based on the address information of the registration query center to obtain the address information of the control device. In the example shown in Figure 2B, the address information of the control device is stored in the DHCP server. In the process of network device 1 obtaining the IP address of network device 1 from the DHCP server, the address information of the control device can also be obtained from the DHCP server. After network device 1 obtains the address information of the control device, the network device 1 sends the device identification of network device 1 (i.e., device identification 1) to the control device. The control device searches for the configuration information of network device 1 based on the received device identification 1, and sends the configuration information of network device 1 to network device 1. Network device 1 performs the start-up deployment based on the received configuration information.
进一步地,如图2C所示,待靠近网络的网络设备1执行开局部署之后,远离网络的网络设备2可以基于已开局部署的网络设备1接入网络再执行开局部署。具体地,开局人员到达站点之后基于设备标识2查找网络设备2。待该网络设备2在该站点上电之后,网络设备2从DHCP服务器获取DHCP服务器为该网络设备2分配的IP地址,并且,该网络设备2还将从网络设备1获取控制设备的地址信息(例如,控制设备的IP地址和端口号)。然后,该网络设备2向控制设备发送网络设备2的设备标识(即设备标识2)。控制设备基于收到的设备标识2查找网络设备2的配置信息,并向网络设备2发送网络设备2的配置信息。网络设备2基于收到的配置信息执行开局部署。需要说明的是,网络设备1的配置信息能够配置网络设备1为DHCP服务器,而接入该网络设备1的网络设备(例如,网络设备2)为DHCP客户端,以使得网络设备2执行DHCP流程从网络设备1中获取控制设备的地址信息。Further, as shown in FIG2C , after the network device 1 close to the network performs the deployment, the network device 2 far away from the network can access the network based on the deployed network device 1 and then perform the deployment. Specifically, after the deployment personnel arrive at the site, they search for the network device 2 based on the device identification 2. After the network device 2 is powered on at the site, the network device 2 obtains the IP address assigned by the DHCP server to the network device 2 from the DHCP server, and the network device 2 will also obtain the address information of the control device (for example, the IP address and port number of the control device) from the network device 1. Then, the network device 2 sends the device identification of the network device 2 (i.e., the device identification 2) to the control device. The control device searches for the configuration information of the network device 2 based on the received device identification 2, and sends the configuration information of the network device 2 to the network device 2. The network device 2 performs the deployment based on the received configuration information. It should be noted that the configuration information of the network device 1 can configure the network device 1 as a DHCP server, and the network device (for example, the network device 2) connected to the network device 1 is a DHCP client, so that the network device 2 executes the DHCP process to obtain the address information of the control device from the network device 1.
由此可见,传统技术方案中,控制设备中的配置信息是与网络设备的设备标识绑定的,网络设备发往站点之前,管理员需要将各个网络设备的设备标识提前导入到控制设备,并且,网络设备到达站点之后,开局人员需要基于设备标识查找对应的网络设备进行安装,因此,导致网络设备部署效率较低。It can be seen that in the traditional technical solution, the configuration information in the control device is bound to the device identification of the network device. Before the network device is sent to the site, the administrator needs to import the device identification of each network device into the control device in advance. Moreover, after the network device arrives at the site, the start-up personnel need to find the corresponding network device based on the device identification for installation. Therefore, the efficiency of network device deployment is low.
对此,本申请提供了一种零配置部署方法、控制设备和网络设备,能够在控制设备不提前录入设备标识的情况下实现网络设备的零配置部署,有利于提高网络设备的部署效率。In this regard, the present application provides a zero-configuration deployment method, a control device, and a network device, which can implement zero-configuration deployment of network devices without entering device identifiers in advance on the control device, thereby improving the deployment efficiency of network devices.
下面将结合图3对本申请提供的零配置部署方法的主要流程进行介绍。在该零配置部署方法中,控制设备和第一网络设备主要执行如下步骤:The main process of the zero configuration deployment method provided by the present application will be introduced below in conjunction with Figure 3. In the zero configuration deployment method, the control device and the first network device mainly perform the following steps:
步骤301,第一网络设备获取控制设备的地址信息和第一站点的站点标识。Step 301: A first network device obtains address information of a control device and a site identifier of a first site.
具体地,第一网络设备通过第二网络设备接入第一站点,并从第二网络设备获取控制设备的地址信息和第一站点的站点标识。Specifically, the first network device accesses the first site through the second network device, and obtains the address information of the control device and the site identifier of the first site from the second network device.
其中,第二网络设备为第一站点中已在控制设备注册开局的网络设备,而第一网络设备是通过该第二网络设备接入该第一站点的待开局部署的网络设备。该第二网络设备可以采用任意一种开局部署方式,本申请不限制。The second network device is a network device in the first site that has been registered and deployed in the control device, and the first network device is a network device to be deployed and connected to the first site through the second network device. The second network device can adopt any deployment mode, which is not limited by this application.
在一种可能的示例中,第一网络设备与第二网络设备属于同一设备类型。例如,第一网络设备与第二网络设备均为路由设备(例如,路由器)。又例如,第一网络设备与第二网络设备均为防火墙设备。以第一网络设备和第二网络设备均为路由器为例,在图1B所示示例中,若第二网络设备可以是已注册开局的路由器1,则第一网络设备可以是通过路由器1接入该站点的路由器2;若第二网络设备可以是已注册开局的路由器2,则第一网络设备可以是通过路由器2接入该站点的路由器1。In one possible example, the first network device and the second network device are of the same device type. For example, the first network device and the second network device are both routing devices (e.g., routers). For another example, the first network device and the second network device are both firewall devices. Taking the example that the first network device and the second network device are both routers, in the example shown in FIG1B , if the second network device may be a registered and deployed router 1, the first network device may be a router 2 that accesses the site through router 1; if the second network device may be a registered and deployed router 2, the first network device may be a router 1 that accesses the site through router 2.
在另一种可能的示例中,第一网络设备与第二网络设备属于不同的设备类型。例如,第一网络设备为交换设备(例如,交换机)或接入设备(例如,无线接入点),第二网络设备为路由设备(例如,路由器)。又例如,第一网络设备为交换设备(例如,交换机)、接入设备(例如,无线接入点)或路由设备(例如,路由器),第二网络设备为防火墙设备。以第一网络设备为交换设备且第二网络设备为路由设备为例,在图1B所示示例中,若第二网设备可以是已注册开局的路由器1,则第一网络设备可以是通过该路由器1接入该站点的交换机1或交换机2。以第一网络设备为接入设备且第二网络设备为路由设备为例,在图1B所示示例中,若第二网设备可以是已注册开局的路由器1,则第一网络设备可以是通过该路由器1和交换机1接入该站点的接入点1或接入点2,该交换机1用于在接入点1(或接入点2)与路由器1之间转发报文的作用。In another possible example, the first network device and the second network device belong to different device types. For example, the first network device is a switching device (e.g., a switch) or an access device (e.g., a wireless access point), and the second network device is a routing device (e.g., a router). For another example, the first network device is a switching device (e.g., a switch), an access device (e.g., a wireless access point) or a routing device (e.g., a router), and the second network device is a firewall device. Taking the first network device as a switching device and the second network device as a routing device as an example, in the example shown in FIG1B , if the second network device can be a registered and deployed router 1, the first network device can be a switch 1 or a switch 2 that accesses the site through the router 1. Taking the first network device as an access device and the second network device as a routing device as an example, in the example shown in FIG1B , if the second network device can be a registered and deployed router 1, the first network device can be an access point 1 or an access point 2 that accesses the site through the router 1 and the switch 1, and the switch 1 is used to forward messages between the access point 1 (or the access point 2) and the router 1.
本步骤中,该第一网络设备可以通过物理连线与第二网络设备连接,或者,该第一网络设备也可以通过物理连线和至少一个网络设备与第二网络设备连接,以实现通过第二网络设备接入第一站点。第一网络设备通过第二网络设备接入第一站点之后,第一网络设备能够从第二网络设备获取控制设备的地址信息和第一站点的站点标识。In this step, the first network device can be connected to the second network device through a physical connection, or the first network device can be connected to the second network device through a physical connection and at least one network device, so as to access the first site through the second network device. After the first network device accesses the first site through the second network device, the first network device can obtain the address information of the control device and the site identifier of the first site from the second network device.
由于,第二网络设备是第一站点中已在该控制设备注册开局的网络设备,则该第二网络设备在控制设备中注册之前已获取到控制设备的地址信息。该第二网络设备中的控制设备的地址信息可以是从其他服务器或数据中心获取的。例如,在图2A所示示例中,第二网络设备中的控制设备的地址信息是从注册查询中心获取的。又例如,在图2B所示示例中,第二网络设备中的控制设备的地址信息是从DHCP服务器获取的。本申请不限制第二网络设备获取控制设备的地址信息的途径。示例性的,控制设备的地址信息包括控制设备的IP地址和端口号。Since the second network device is a network device in the first site that has been registered and started with the control device, the second network device has obtained the address information of the control device before registering in the control device. The address information of the control device in the second network device can be obtained from other servers or data centers. For example, in the example shown in FIG2A, the address information of the control device in the second network device is obtained from the registration query center. For another example, in the example shown in FIG2B, the address information of the control device in the second network device is obtained from a DHCP server. The present application does not limit the way in which the second network device obtains the address information of the control device. Exemplarily, the address information of the control device includes the IP address and port number of the control device.
此外,该第二网络设备在注册到控制设备的过程中能够与控制设备交互与注册相关的信息,因此,第二网络设备中的第一站点的站点标识可以是第二网络设备与控制设备交互过程中,控制设备下发给第二网络设备的站点标识。示例性的,该站点标识可以是站点标号(Site Code)或站点身份标识(Site ID)等能够唯一标识一个站点的信息。本申请不对站点标识的具体实现方式进行限定。In addition, the second network device can interact with the control device in the process of registering to the control device and information related to the registration. Therefore, the site identifier of the first site in the second network device can be the site identifier sent by the control device to the second network device during the interaction between the second network device and the control device. Exemplarily, the site identifier can be information that can uniquely identify a site, such as a site code or a site identity (Site ID). This application does not limit the specific implementation method of the site identifier.
关于第二网络设备获取控制设备的地址信息和第一站点的站点标识的具体过程请参阅后文步骤501至步骤504中的相关描述,此处不予赘述。For the specific process of the second network device acquiring the address information of the control device and the site identifier of the first site, please refer to the relevant description in steps 501 to 504 below, which will not be repeated here.
步骤302,第一网络设备向控制设备发送第一消息;相应地,控制设备从第一网络设备接收第一消息。Step 302: The first network device sends a first message to the control device; correspondingly, the control device receives the first message from the first network device.
由于,第一网络设备能够从第二网络设备获取到控制设备的地址信息,因此,该第一网络设备能够基于控制设备的地址信息向该控制设备发送与该第一网络设备注册相关的信息。由于,第一网络设备是通过第二网络设备接入该第一站点,则第一网络设备发送给控制设备的信息或消息可以经过第二网络设备转发到控制设备。Since the first network device can obtain the address information of the control device from the second network device, the first network device can send information related to the registration of the first network device to the control device based on the address information of the control device. Since the first network device accesses the first site through the second network device, the information or message sent by the first network device to the control device can be forwarded to the control device through the second network device.
其中,第一消息包括第一站点的站点标识和第一网络设备的设备类型信息。第一网络设备的设备类型信息用于指示第一网络设备的设备类型。其中,设备类型指路由设备、交换设备、接入设备以及防火墙设备等类型。示例性的,若第一网络设备是交换设备,则该第一网络设备的设备类型信息用于指示该第一网络设备的设备类型为交换设备,而不是路由设备或其他设备。The first message includes a site identifier of the first site and device type information of the first network device. The device type information of the first network device is used to indicate the device type of the first network device. The device type refers to types such as routing devices, switching devices, access devices, and firewall devices. Exemplarily, if the first network device is a switching device, the device type information of the first network device is used to indicate that the device type of the first network device is a switching device, rather than a routing device or other device.
可选的,第一消息包括第一网络设备的设备标识,该第一网络设备的设备标识能够唯一标识一个网络设备。也就是说,设备标识具有唯一性,任意两个网络设备的设备标识是不同的。示例性的,第一网络设备的设备标识可以是第一网络设备的设备序列号(equipment serial number,ESN),也可以是第一网络设备的MAC地址,还可以是其他能够唯一标识第一网络设备的信息,此处不做限定。Optionally, the first message includes a device identifier of the first network device, and the device identifier of the first network device can uniquely identify a network device. In other words, the device identifier is unique, and the device identifiers of any two network devices are different. Exemplarily, the device identifier of the first network device can be an equipment serial number (equipment serial number, ESN) of the first network device, or a MAC address of the first network device, or other information that can uniquely identify the first network device, which is not limited here.
应注意,第一网络设备的设备类型信息可以有多种实现方式,下面分别进行介绍:It should be noted that the device type information of the first network device may be implemented in a variety of ways, which are described below respectively:
在一种可能的实现方式中,若第一网络设备的设备标识不仅能够唯一标识第一网络设备,还能够反映出第一网络设备的设备类型,则第一网络设备的设备类型信息可以是第一网络设备的设备标识。例如,第一网络设备的设备标识由多个字符组成,该多个字符中在一个或多个字符能够反映出第一网络设备的设备类型。例如,第一网络设备的设备标识为第一网络设备的ESN,该ESN能够反映出第一网络设备的设备类型,在这种情况下,第一网络设备的设备类型信息可以是第一网络设备的ESN。In a possible implementation, if the device identifier of the first network device can not only uniquely identify the first network device, but also reflect the device type of the first network device, then the device type information of the first network device can be the device identifier of the first network device. For example, the device identifier of the first network device is composed of multiple characters, and one or more characters of the multiple characters can reflect the device type of the first network device. For example, the device identifier of the first network device is the ESN of the first network device, and the ESN can reflect the device type of the first network device. In this case, the device type information of the first network device can be the ESN of the first network device.
在本实现方式的一种示例中,前述第一消息包括第一站点的站点标识和第一网络设备的设备标识(例如,第一网络设备的ESN),第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备。In an example of this implementation, the aforementioned first message includes a site identifier of the first site and a device identifier of the first network device (for example, the ESN of the first network device), and the device identifier of the first network device is used to indicate a device type of the first network device and uniquely identify the first network device.
在另一种可能的实现方式中,第一网络设备的设备类型信息不包括第一网络设备的设备标识,第一网络设备的设备标识仅用于唯一标识第一网络设备。示例性的,第一网络设备的设备标识为第一网络设备的MAC地址,该第一网络设备的MAC地址仅用于唯一标识第一网络设备,而无法反映出第一网络设备的设备类型。In another possible implementation, the device type information of the first network device does not include the device identification of the first network device, and the device identification of the first network device is only used to uniquely identify the first network device. Exemplarily, the device identification of the first network device is the MAC address of the first network device, and the MAC address of the first network device is only used to uniquely identify the first network device, but cannot reflect the device type of the first network device.
可选的,第一网络设备的设备类型信息为第一网络设备的设备名称,该第一网络设备的设备名称能够反映第一网络设备的设备类型。同一设备类型的网络设备的设备名称可以相同。例如,第一网络设备的设备名称由多个字符组成,该多个字符中在一个或多个字符能够反映出第一网络设备的设备类型。例如,若第一网络设备的设备名称为“S1720X-XXXX”,其中,“S”表示第一网络设备的设备类型为交换机。又例如,若第一网络设备的设备名称为“AR120-XXXX”,其中,“R”表示第一网络设备的设备类型为路由器。在实际应用中,第一网络设备的设备名称可以有多种不同的实现方式,此处不再一一列举。Optionally, the device type information of the first network device is the device name of the first network device, and the device name of the first network device can reflect the device type of the first network device. The device names of network devices of the same device type can be the same. For example, the device name of the first network device is composed of multiple characters, and one or more of the multiple characters can reflect the device type of the first network device. For example, if the device name of the first network device is "S1720X-XXXX", "S" indicates that the device type of the first network device is a switch. For another example, if the device name of the first network device is "AR120-XXXX", "R" indicates that the device type of the first network device is a router. In actual applications, the device name of the first network device can be implemented in a variety of different ways, which are not listed here one by one.
在本实现方式的一种示例中,第一消息包括第一站点的站点标识和第一网络设备的设备名称,该第一网络设备的设备名称用于指示第一网络设备的设备类型。可选的,该第一消息还包括第一网络设备的设备标识(例如,第一网络设备的MAC地址),该第一网络设备的设备标识用于唯一标识第一网络设备。In an example of this implementation, the first message includes a site identifier of the first site and a device name of the first network device, where the device name of the first network device is used to indicate a device type of the first network device. Optionally, the first message also includes a device identifier of the first network device (e.g., a MAC address of the first network device), where the device identifier of the first network device is used to uniquely identify the first network device.
步骤303,控制设备基于第一消息中的第一站点的站点标识和第一网络设备的设备类型信息确定配置信息。Step 303: The control device determines configuration information based on the site identifier of the first site and the device type information of the first network device in the first message.
其中,配置信息是控制设备基于第一网络设备的设备类型信息确定的,可以理解为,配置信息与第一网络设备的设备类型相关。该第一站点中具有不同设备类型的网络设备的配置信息不同,即控制设备中存储的第一站点中的各个网络设备的配置信息中,不同设备类型的网络设备的配置信息不同。例如,路由设备的配置信息与交换设备的配置信息不同,交换设备的配置信息与接入设备的配置信息不同,此处不予赘述。The configuration information is determined by the control device based on the device type information of the first network device, which can be understood as being related to the device type of the first network device. The configuration information of network devices with different device types in the first site is different, that is, the configuration information of network devices of different device types in the configuration information of each network device in the first site stored in the control device is different. For example, the configuration information of the routing device is different from the configuration information of the switching device, and the configuration information of the switching device is different from the configuration information of the access device, which will not be elaborated here.
具体地,该控制设备基于第一站点的站点标识确定该第一网络设备接入的是第一站点,并且,该控制设备基于第一网络设备的设备类型信息确定该第一网络设备的设备类型。然后,该控制设备将第一站点中该第一网络设备的设备类型对应的配置信息确定为待发送给第一网络设备的配置信息。Specifically, the control device determines that the first network device is connected to the first site based on the site identifier of the first site, and the control device determines the device type of the first network device based on the device type information of the first network device. Then, the control device determines the configuration information corresponding to the device type of the first network device in the first site as the configuration information to be sent to the first network device.
在一种可能的实施方式中,控制设备存储有第一站点中每个设备类型的网络设备的配置信息。可选的,同一站点中,同一设备类型的网络设备对应同一配置信息,不同设备类型的网络设备对应不同的配置信息。可选的,不同站点中同一设备类型的网络设备对应的配置信息不一定相同。In a possible implementation, the control device stores configuration information of each device type of network device in the first site. Optionally, in the same site, network devices of the same device type correspond to the same configuration information, and network devices of different device types correspond to different configuration information. Optionally, the configuration information corresponding to network devices of the same device type in different sites is not necessarily the same.
示例性的,若控制设备中存储了站点1和站点2共两个站点的配置,并且,每个站点至少包含路由器、交换机和接入点这三种类型的网络设备,则该控制设备中存储的配置信息可以如下表1-1所示:For example, if the control device stores configurations of two sites, site 1 and site 2, and each site includes at least three types of network devices, namely, a router, a switch, and an access point, the configuration information stored in the control device may be as shown in the following Table 1-1:
表1-1Table 1-1
在表1-1所示示例中,若第一网络设备所在的站点的站点标识为“ID-站点1”,第一网络设备的设备类型信息指示第一网络设备为交换机,则控制设备确定待发送给第一网络设备的配置信息为“配置信息-S1”。In the example shown in Table 1-1, if the site identifier of the site where the first network device is located is "ID-Site 1", and the device type information of the first network device indicates that the first network device is a switch, the control device determines that the configuration information to be sent to the first network device is "Configuration Information-S1".
需要说明的是,该配置信息包括接口配置(例如,广域网(wide area network,WAN)接口配置和局域网(local area network,LAN)接口配置)、路由配置(例如,静态路由配置和/或动态路由配置)、虚拟局域网(virtual local area network,VLAN)配置(例如,管理VLAN配置和/或即插即用虚拟局域网(Plug and Play VLAN,PnP VLAN)配置)、系统配置以及其他与第一网络设备的业务相关的配置,此处不再一一列举。It should be noted that the configuration information includes interface configuration (for example, wide area network (WAN) interface configuration and local area network (LAN) interface configuration), routing configuration (for example, static routing configuration and/or dynamic routing configuration), virtual local area network (VLAN) configuration (for example, management VLAN configuration and/or plug and play VLAN (PnP VLAN) configuration), system configuration and other configurations related to the business of the first network device, which are not listed here one by one.
还需要说明的是,在一些应用场景中,前述配置信息也称开局文件,该开局文件或版本文件,该开局文件包括系统软件、补丁文件、配置文件等。本申请不限制网络设备用于开局部署的文件或信息的称谓。It should also be noted that in some application scenarios, the aforementioned configuration information is also called a deployment file, which may be a deployment file or a version file, and may include system software, patch files, configuration files, etc. This application does not limit the name of the file or information used for deployment of network devices.
可选的,若第一消息包括第一网络设备的设备标识,则该控制设备将存储第一网络设备的设备标识。需要说明的是,该第一网络设备的设备标识可以是作为第一网络设备的设备类型信息携带在第一消息中,也可以是用于唯一标识第一网络设备而携带在第一消息中,此处不做限定。可选的,控制设备将待发送给第一网络设备的配置信息和第一网络设备的设备标识对应存储。有利于控制设备在后期维护管理第一网络设备时,能够基于第一网络设备的设备标识快速准确地查找到第一网络设备,有利于提高控制设备管理第一网络设备的效率。Optionally, if the first message includes the device identification of the first network device, the control device will store the device identification of the first network device. It should be noted that the device identification of the first network device can be carried in the first message as the device type information of the first network device, or it can be carried in the first message for uniquely identifying the first network device, which is not limited here. Optionally, the control device stores the configuration information to be sent to the first network device and the device identification of the first network device in correspondence. This is beneficial for the control device to quickly and accurately find the first network device based on the device identification of the first network device when it maintains and manages the first network device in the later stage, which is beneficial to improving the efficiency of the control device in managing the first network device.
可选的,该控制设备还将第一消息中的部分或全部内容(例如,第一网络设备的设备类型信息、第一网络设备的设备名称等)与第一网络设备的配置信息对应存储,有利于控制设备在第一网络设备注册之后对第一网络设备进行管理维护。Optionally, the control device also stores part or all of the content in the first message (for example, device type information of the first network device, device name of the first network device, etc.) in correspondence with the configuration information of the first network device, which facilitates the control device to manage and maintain the first network device after the first network device is registered.
步骤304,控制设备向第一网络设备发送配置信息;相应地,第一网络设备接收来自控制设备的配置信息。Step 304: The control device sends configuration information to the first network device; correspondingly, the first network device receives the configuration information from the control device.
其中,配置信息用于第一网络设备执行开局部署。The configuration information is used by the first network device to perform deployment.
步骤305,第一网络设备基于配置信息执行开局部署。Step 305: The first network device performs deployment based on the configuration information.
具体地,第一网络设备加载配置信息中的各种配置对接口、路由、VLAN等进行配置,以使得第一网络设备在配置完成后能够与控制设备交互该第一网络设备的业务信息。Specifically, the first network device loads various configurations in the configuration information to configure interfaces, routes, VLANs, etc., so that the first network device can exchange service information of the first network device with the control device after the configuration is completed.
为便于理解,下面结合图4所示的具体示例进行介绍:For ease of understanding, the following is an introduction with reference to the specific example shown in FIG4 :
如图4所示,管理员通过客户端在控制设备上做预配置,即在控制设备中写入规划的各个站点的站点标识、每个站点中包含的各个设备类型的网络设备以及每个设备类型的网络设备对应的配置信息。该过程中,管理员无需向控制设备导入需要发往站点的网络设备的设备标识。待管理员执行完预配置操作之后,开局人员基于设备类型从库房查找并装车需要在某个站点(例如,站点1)注册开局的网络设备(例如,至少一个路由器、至少一个交换机、至少一个接入点等)。待开局人员到达站点1之后,开局人员基于设备类型查找网络设备并将网络设备接入指定位置上电。例如,若站点1的某个位置需要连接一个交换机,则开局人员仅需要从货车上拿出一个交换机作为第一网络设备连接到该位置即可,而不需要选择某个ESN对应的交换机作为第一网络设备。例如,若站点1的某个位置需要连接一个路由器,则开局人员仅需要从货车上拿出一个路由器作为第一网络设备连接到该位置即可,而不需要选择某个ESN对应的路由器作为第一网络设备。待该网络设备上电之后,该第一网络设备将按照前述步骤301至步骤305所介绍的方法获取配置信息并执行开局部署。无需开局人员对该第一网络设备进行额外的配置。As shown in FIG4 , the administrator performs pre-configuration on the control device through the client, that is, writes the site identifiers of each planned site, the network devices of each device type contained in each site, and the configuration information corresponding to the network devices of each device type into the control device. In this process, the administrator does not need to import the device identifiers of the network devices that need to be sent to the site to the control device. After the administrator completes the pre-configuration operation, the start-up personnel search and load the network devices (for example, at least one router, at least one switch, at least one access point, etc.) that need to be registered for the start-up at a certain site (for example, site 1) from the warehouse based on the device type. After the start-up personnel arrive at site 1, the start-up personnel search for network devices based on the device type and connect the network devices to the designated location and power on. For example, if a switch needs to be connected to a certain location at site 1, the start-up personnel only need to take out a switch from the truck as the first network device and connect it to the location, without selecting a switch corresponding to a certain ESN as the first network device. For example, if a router needs to be connected to a certain location at site 1, the start-up personnel only need to take out a router from the truck as the first network device and connect it to the location, without selecting a router corresponding to a certain ESN as the first network device. After the network device is powered on, the first network device will obtain configuration information and perform deployment according to the method described in the above steps 301 to 305. There is no need for deployment personnel to perform additional configuration on the first network device.
本实施例中,由于,控制设备是基于站点标识和设备类型信息确定待发送给第一网络设备的配置信息,因此,不需要管理员提前导入第一网络设备的设备标识,控制设备也无需在网络设备上线之前将各个网络设备的设备标识与每个网络设备的配置信息对应存储,管理员仅基于设备类型配置配置信息即可,开局人员也仅基于设备类型查找同一类型的设备即可,因此,有利于提高零配置部署的效率。In this embodiment, since the control device determines the configuration information to be sent to the first network device based on the site identifier and the device type information, the administrator does not need to import the device identifier of the first network device in advance, and the control device does not need to store the device identifier of each network device and the configuration information of each network device in correspondence before the network device goes online. The administrator only needs to configure the configuration information based on the device type, and the start-up personnel only need to search for devices of the same type based on the device type. Therefore, it is beneficial to improve the efficiency of zero-configuration deployment.
需要说明的是,本申请提供的零配置部署方法可以有多种实施例,下面将结合图5对本申请提供的零配置部署方法的一种实施例进行介绍。在该零配置部署方法中,控制设备、第一网络设备和第二网络设备主要执行如下步骤:It should be noted that the zero configuration deployment method provided by the present application may have multiple embodiments, and an embodiment of the zero configuration deployment method provided by the present application will be introduced below in conjunction with FIG5. In the zero configuration deployment method, the control device, the first network device and the second network device mainly perform the following steps:
步骤501,第二网络设备获取控制设备的地址信息。Step 501: The second network device obtains address information of a control device.
其中,第二网络设备为待接入第一站点的第一个网络设备。该第二网络设备用于作为接入第一站点的其他网络设备的锚点。可选的,该第二网络设备为路由设备(例如,路由器)。The second network device is the first network device to be accessed to the first site. The second network device is used as an anchor point for other network devices accessing the first site. Optionally, the second network device is a routing device (eg, a router).
具体地,第二网络设备从其他服务器或数据中心获取控制设备的地址信息。示例性的,控制设备的地址信息包括控制设备的IP地址和端口号。Specifically, the second network device obtains the address information of the control device from other servers or data centers. Exemplarily, the address information of the control device includes the IP address and port number of the control device.
在一种可能的示例中,如图2A所示,控制设备能够与注册查询中心连接并进行通信,该控制设备的地址信息可以同步至注册查询中心,即该控制设备的地址信息存储于注册查询中心中。本示例中,第二网络设备中的控制设备的地址信息是从注册查询中心获取的。具体地,第二网络设备基于注册查询中心的域名通过DNS服务器获取注册查询中心的地址信息(例如,注册查询中心的IP地址和端口号),然后,第二网络设备基于注册查询中心的地址信息向注册查询中心发送查询申请,注册查询中心向第二网络设备发送控制设备的地址信息。In one possible example, as shown in FIG2A , the control device can connect to and communicate with the registration query center, and the address information of the control device can be synchronized to the registration query center, that is, the address information of the control device is stored in the registration query center. In this example, the address information of the control device in the second network device is obtained from the registration query center. Specifically, the second network device obtains the address information of the registration query center (for example, the IP address and port number of the registration query center) through the DNS server based on the domain name of the registration query center, and then the second network device sends a query application to the registration query center based on the address information of the registration query center, and the registration query center sends the address information of the control device to the second network device.
在另一种可能的示例中,如图2B所示,该控制设备的地址信息由管理员提前配置在DHCP服务器中,本示例中,第二网络设备中的控制设备的地址信息是通过DHCP流程从DHCP服务器获取的。具体地,第二网络设备依次通过管理网口、以太接口上广播DHCP请求报文(例如,接口请求顺序依次为:管理网口->高带宽以太接口->低带宽以太接口)。然后,DHCP服务器向第二网络设备发送DHCP应答报文,该DHCP应答报文中的Option选项携带了第二网络设备需要从DHCP服务器获得的信息。例如,该Option选项包括第二网络设备的IP地址(即DHCP服务器为第二网络设备分配的临时IP地址)和控制设备的地址信息。In another possible example, as shown in FIG2B , the address information of the control device is configured in advance in the DHCP server by the administrator. In this example, the address information of the control device in the second network device is obtained from the DHCP server through the DHCP process. Specifically, the second network device broadcasts the DHCP request message through the management network port and the Ethernet interface in sequence (for example, the interface request sequence is: management network port->high-bandwidth Ethernet interface->low-bandwidth Ethernet interface). Then, the DHCP server sends a DHCP response message to the second network device. The Option option in the DHCP response message carries the information that the second network device needs to obtain from the DHCP server. For example, the Option option includes the IP address of the second network device (that is, the temporary IP address assigned by the DHCP server to the second network device) and the address information of the control device.
需要说明的是,当控制设备的地址信息存储于其他服务器、网元、计算机或数据中心时,第二网络设备获取控制设备的地址信息的方式不完全相同,此处不再一一列举。It should be noted that when the address information of the control device is stored in other servers, network elements, computers or data centers, the manner in which the second network device obtains the address information of the control device is not exactly the same, and will not be listed one by one here.
步骤502,第二网络设备向控制设备发送第二网络设备的设备标识;相应地,控制设备从第二网络设备接收第二网络设备的设备标识。Step 502: The second network device sends the device identification of the second network device to the control device; correspondingly, the control device receives the device identification of the second network device from the second network device.
其中,第二网络设备的设备标识用于唯一标识第二网络设备。示例性的,该设备标识可以是设备序列号(equipment serial number,ESN),也可以是其他能够唯一标识第二网络设备的信息,此处不做限定。The device identification of the second network device is used to uniquely identify the second network device. Exemplarily, the device identification may be an equipment serial number (ESN) or other information that can uniquely identify the second network device, which is not limited here.
步骤503,控制设备基于第二网络设备的设备标识确定第二网络设备的配置信息。Step 503: The control device determines configuration information of the second network device based on the device identification of the second network device.
由于,第二网络设备为待接入第一站点的第一个网络设备,即该第二网络设备用于作为接入第一站点的其他网络设备的锚点,因此,管理员在规划第一站点时,导入了第二网络设备的设备标识,并将为第二网络设备配置的配置信息与第二网络设备的设备标识对应存储至控制设备中。因此,控制设备能够基于第二网络设备的设备标识查找到第二网络设备的配置信息。Since the second network device is the first network device to be connected to the first site, that is, the second network device is used as an anchor point for other network devices connected to the first site, the administrator imports the device identification of the second network device when planning the first site, and stores the configuration information configured for the second network device in the control device in correspondence with the device identification of the second network device. Therefore, the control device can find the configuration information of the second network device based on the device identification of the second network device.
步骤504,控制设备向第二网络设备发送第二网络设备的配置信息;相应地,第二网络设备从控制设备接收第二网络设备的配置信息。Step 504: The control device sends the configuration information of the second network device to the second network device; correspondingly, the second network device receives the configuration information of the second network device from the control device.
其中,第二网络设备的配置信息包括控制设备的地址信息和第一站点的站点标识。The configuration information of the second network device includes the address information of the control device and the site identifier of the first site.
在一种可能的实施方式中,第二网络设备的配置信息包括DHCP配置,该DHCP配置用于指示第二网络设备为DHCP服务器,其他接入该第二网络设备的网络设备为DHCP客户端。其中,该DHCP配置包括DHCP Option配置,该DHCP Option配置包括控制设备的地址信息和第一站点的站点标识。该DHCP Option配置用于在DHCP流程向所述第一网络设备提供控制设备的地址信息和第一站点的站点标识。具体请参阅后文步骤506中的相关描述,此处不予赘述。In a possible implementation, the configuration information of the second network device includes a DHCP configuration, and the DHCP configuration is used to indicate that the second network device is a DHCP server, and other network devices connected to the second network device are DHCP clients. The DHCP configuration includes a DHCP Option configuration, and the DHCP Option configuration includes the address information of the control device and the site identifier of the first site. The DHCP Option configuration is used to provide the first network device with the address information of the control device and the site identifier of the first site in the DHCP process. For details, please refer to the relevant description in step 506 below, which will not be repeated here.
此外,该第二网络设备的配置信息还包括接口配置(例如,WAN接口配置、LAN接口配置或移动接口配置)、路由配置(例如,静态路由配置和/或动态路由配置)、VLAN配置(例如,管理VLAN配置和/或PnP VLAN配置)、系统配置以及其他与第二网络设备的业务相关的配置等。In addition, the configuration information of the second network device also includes interface configuration (for example, WAN interface configuration, LAN interface configuration or mobile interface configuration), routing configuration (for example, static routing configuration and/or dynamic routing configuration), VLAN configuration (for example, management VLAN configuration and/or PnP VLAN configuration), system configuration and other configurations related to the business of the second network device.
在一种可能的实施方式中,第二网络设备包括移动接口。示例性的,该移动接口为Cellular接口。例如,该Cellular接口可以是3G Cellular接口,也可以是LTE Cellular接口。随着通信技术的发展,前述移动接口还可以是基于5G技术的移动接口或基于6G技术的移动接口等,此处不做限定。In a possible implementation, the second network device includes a mobile interface. Exemplarily, the mobile interface is a Cellular interface. For example, the Cellular interface may be a 3G Cellular interface or an LTE Cellular interface. With the development of communication technology, the mobile interface may also be a mobile interface based on 5G technology or a mobile interface based on 6G technology, etc., which is not limited here.
当该第二网络设备包括移动接口时,该第二网络设备的路由配置包括第二路由配置,该第二路由配置用于配置第二网络设备通过移动接口接入控制设备的第二路由,以使得第二网络设备执行配置部署之后通过第二网络设备的移动接口与控制设备进行通信,进而该第二网络设备通过第二网络设备的移动接口与控制设备交互该第二网络设备的管理信令。示例性的,该管理信令包括第二网络设备向控制设备上报性能数据的信令、控制设备下发的变更/新增的配置信息、远程登录设备请求等与管理相关的信令。需要说明的是,控制设备与网络设备设备交互的多个管理信令也称为管理流量。也就是说,第二网络设备在注册开局过程中可以不使用WAN接口(或者第二网络设备没有WAN接口),有利于降低第二网络设备的注册开局流程对WAN接口的依赖。When the second network device includes a mobile interface, the routing configuration of the second network device includes a second routing configuration, and the second routing configuration is used to configure the second network device to access the second route of the control device through the mobile interface, so that the second network device communicates with the control device through the mobile interface of the second network device after executing the configuration deployment, and then the second network device exchanges the management signaling of the second network device with the control device through the mobile interface of the second network device. Exemplarily, the management signaling includes the signaling of the second network device reporting performance data to the control device, the changed/newly added configuration information issued by the control device, the remote login device request and other management-related signaling. It should be noted that the multiple management signalings interacting between the control device and the network device are also called management traffic. In other words, the second network device may not use the WAN interface during the registration and startup process (or the second network device does not have a WAN interface), which is conducive to reducing the dependence of the registration and startup process of the second network device on the WAN interface.
步骤505,第二网络设备基于第二网络设备的配置信息执行开局部署。Step 505: The second network device performs deployment based on the configuration information of the second network device.
具体地,第二网络设备加载配置信息中的各种配置对接口、路由、VLAN等进行配置,以使得第二网络设备在配置完成后能够与控制设备交互管理信令。Specifically, the second network device loads various configurations in the configuration information to configure interfaces, routes, VLANs, etc., so that the second network device can interact with the control device to exchange management signaling after the configuration is completed.
此外,若第二网络设备包括移动接口,并且,该第二网络设备的路由配置包括第二路由配置,则第二网络设备配置第二路由之后,通过移动接口与控制设备进行通信。例如,第二网络设备通过移动接口与控制设备交互该第二网络设备的管理信令。In addition, if the second network device includes a mobile interface, and the routing configuration of the second network device includes a second routing configuration, the second network device communicates with the control device through the mobile interface after configuring the second routing. For example, the second network device exchanges management signaling of the second network device with the control device through the mobile interface.
步骤506,第一网络设备通过DHCP流程从第二网络设备获取控制设备的地址信息和第一站点的站点标识。Step 506: The first network device obtains the address information of the control device and the site identifier of the first site from the second network device through the DHCP process.
本实施例中,第一网络设备通过第二网络设备接入第一站点,即该第二网络设备可以理解为待接入第一站点的第一网络设备的锚点。该第一网络设备与第二网络设备之间存在物理连接。例如,第一网络设备通过物理网线与第二网络设备连接。例如,第一网络设备通过PnP VLAN接入到第二网络设备。In this embodiment, the first network device accesses the first site through the second network device, that is, the second network device can be understood as an anchor point of the first network device to be accessed to the first site. There is a physical connection between the first network device and the second network device. For example, the first network device is connected to the second network device through a physical network cable. For example, the first network device is connected to the second network device through a PnP VLAN.
具体地,由于,该第二网络设备的配置信息中包含DHCP配置,并且,该DHCP Option配置包括控制设备的地址信息和第一站点的站点标识。因此,第一网络设备与第二网络设备连接后广播DHCP请求报文能够到达第二网络设备,即第一网络设备作为DHCP客户端广播DHCP请求报文,而第二网络设备作为DHCP服务器向第一网络设备回复DHCP应答报文,该DHCP应答报文中的Option选项携带了第一网络设备需要从第二网络设备获得的信息。例如,该Option选项包括第一网络设备的IP地址(即DHCP服务器为第一网络设备分配的临时IP地址)、控制设备的地址信息以及第一站点的站点标识。Specifically, since the configuration information of the second network device includes DHCP configuration, and the DHCP Option configuration includes the address information of the control device and the site identifier of the first site. Therefore, after the first network device is connected to the second network device, the broadcast DHCP request message can reach the second network device, that is, the first network device broadcasts the DHCP request message as a DHCP client, and the second network device replies to the first network device as a DHCP server with a DHCP response message. The Option option in the DHCP response message carries the information that the first network device needs to obtain from the second network device. For example, the Option option includes the IP address of the first network device (that is, the temporary IP address assigned by the DHCP server to the first network device), the address information of the control device, and the site identifier of the first site.
步骤507,第一网络设备向控制设备发送第一消息;相应地,控制设备从第一网络设备接收第一消息。Step 507: The first network device sends a first message to the control device; correspondingly, the control device receives the first message from the first network device.
其中,第一消息包括第一站点的站点标识和第一网络设备的设备类型信息。The first message includes a site identifier of the first site and device type information of the first network device.
可选的,第一消息包括第一网络设备的设备标识。Optionally, the first message includes a device identifier of the first network device.
关于第一消息、第一网络设备的类型信息以及第一网络设备的设备标识的解释请参阅前文步骤301中的相关描述,此处不予赘述。For explanations about the first message, the type information of the first network device, and the device identification of the first network device, please refer to the relevant description in the above step 301, which will not be repeated here.
在一种可能的实施方式中,若第二网络设备包括移动接口,并且,控制设备向第二网络设备配置了通过移动接口接入控制设备的第二路由,则第一网络设备发送给控制设备的第一消息经过第二网络设备的移动接口向控制设备转发。In a possible implementation, if the second network device includes a mobile interface, and the control device configures a second route for accessing the control device through the mobile interface to the second network device, the first message sent by the first network device to the control device is forwarded to the control device via the mobile interface of the second network device.
步骤508,控制设备基于第一消息中的第一站点的站点标识和第一网络设备的设备类型信息确定第一网络设备的配置信息。Step 508: The control device determines configuration information of the first network device based on the site identifier of the first site in the first message and the device type information of the first network device.
其中,第一网络设备的配置信息可以理解为控制设备确定的待发送给第一网络设备的配置信息。The configuration information of the first network device may be understood as the configuration information determined by the control device to be sent to the first network device.
步骤509,控制设备向第一网络设备发送第一网络设备的配置信息;相应地,第一网络设备接收来自控制设备的配置信息。Step 509: The control device sends the configuration information of the first network device to the first network device; correspondingly, the first network device receives the configuration information from the control device.
在一种可能的实施方式中,若第二网络设备包括移动接口,并且,控制设备向第二网络设备配置了通过移动接口接入控制设备的第二路由,则控制设备发送给第一网络设备的配置信息经过第二网络设备的移动接口向第一网络设备转发。In a possible implementation, if the second network device includes a mobile interface, and the control device configures a second route for accessing the control device through the mobile interface to the second network device, the configuration information sent by the control device to the first network device is forwarded to the first network device via the mobile interface of the second network device.
步骤510,第一网络设备基于配置信息执行开局部署。Step 510: The first network device performs deployment based on the configuration information.
本实施例中,步骤507至步骤510与前文步骤302至步骤305类似,具体请参阅前文步骤302至步骤305中的相关描述。关于第一网络设备的配置信息也请参阅前文步骤303至步骤305中的相关描述,相比于步骤303至步骤305中的第一网络设备的配置信息,该第一网络设备的路由配置可能包括第一路由配置。In this embodiment, steps 507 to 510 are similar to steps 302 to 305, and for details, please refer to the relevant descriptions in steps 302 to 305. For the configuration information of the first network device, please refer to the relevant descriptions in steps 303 to 305. Compared with the configuration information of the first network device in steps 303 to 305, the routing configuration of the first network device may include a first routing configuration.
在一种可能的实施方式中,第一网络设备的通过物理网线与第二网络设备连接,该第一网络设备的路由配置包括第一路由配置,该第一路由配置用于配置第一网络设备通过WAN接口接入控制设备的第一路由,第一路由的优先级高于第二路由的优先级,第二路由为第二网络设备通过移动接口接入控制设备的路由。该第一路由配置用于促使第一网络设备在开局部署之后通过第一网络设备的WAN接口与控制设备进行通信,进而该第一网络设备通过第一网络设备的WAN接口与控制设备交互该第一网络设备的管理信令。In a possible implementation, the first network device is connected to the second network device via a physical network cable, and the routing configuration of the first network device includes a first routing configuration, and the first routing configuration is used to configure a first route for the first network device to access the control device via a WAN interface, the priority of the first route is higher than the priority of the second route, and the second route is the route for the second network device to access the control device via a mobile interface. The first routing configuration is used to enable the first network device to communicate with the control device via the WAN interface of the first network device after deployment, and then the first network device exchanges management signaling of the first network device with the control device via the WAN interface of the first network device.
需要说明的是,虽然,控制设备已向第二网络设备发送了第二路由配置(即配置第二网络设备通过移动接口接入控制设备的第二路由),但是,控制设备为后上线的第一网络设备发送了第一路由配置(即配置第一网络设备通过WAN接口接入控制设备的第一路由,并且,第一路由的优先级高于第二路由的优先级),并且,第一网络设备与第二网络设备之间能够进行路由学习,因此,第二网络设备切换为通过第一网络设备的WAN口与控制设备交互管理信令。例如,第二网络设备发送给控制设备的管理信令经过第一网络设备的WAN接口向控制设备转发;控制设备发送给第二网络设备的管理信令经过第一网络设备的WAN接口向第二网络设备转发。由于,第一网络设备和第二网络设备都不再经过移动接口转发管理信令,因此,第二网络设备不再因转发管理信令而消耗移动接口的流量。It should be noted that, although the control device has sent the second routing configuration to the second network device (i.e., configuring the second network device to access the second routing of the control device through the mobile interface), the control device has sent the first routing configuration to the first network device that came online later (i.e., configuring the first network device to access the first routing of the control device through the WAN interface, and the priority of the first routing is higher than the priority of the second routing), and the first network device and the second network device can perform routing learning, so the second network device switches to interacting with the control device through the WAN port of the first network device. For example, the management signaling sent by the second network device to the control device is forwarded to the control device via the WAN interface of the first network device; the management signaling sent by the control device to the second network device is forwarded to the second network device via the WAN interface of the first network device. Since neither the first network device nor the second network device forwards management signaling through the mobile interface, the second network device no longer consumes traffic on the mobile interface due to forwarding management signaling.
为便于理解,下面以第一网络设备和第二网络设备均为路由器为例,结合图6所示的具体示例进行介绍:For ease of understanding, the following takes the example that both the first network device and the second network device are routers, and describes the specific example shown in FIG6 :
在图6所示示例中,路由器1为第一网络设备的一种示例,路由器2为第二网络设备的一种示例。路由器2上电后通过移动网络接入网络,进而通过移动网络从存储有控制设备的地址信息的服务器或数据中心(例如,注册查询中心)获取控制设备的地址信息,进而通过移动网络在控制设备注册并从控制设备获取路由器2的配置信息。当路由器1通过物理网线与路由器2连接之后,在路由器1注册的过程中,路由器1发送给控制设备的消息或报文(例如,前文介绍的第一消息)经路由器2的移动接口转发给控制设备,并且,控制设备发送给路由器1的配置信息(包括第一路由配置)也经路由器2的移动接口转发给路由器1。待路由器1基于第一路由配置对WAN接口进行配置,并且,第一路由的优先级高于第二路由的优先级时,路由器1与控制设备之间的通信(例如,交互路由器1的管理信令)走路由器1的WAN接口,而不经过路由器2的移动接口。此后,路由器2与控制设备之间通信(例如,交互路由器2的管理信令)也走路由器1的WAN口而不走路由器2的移动接口。因此,管理流量(例如,控制设备与路由器交互的多个管理信令)从路由器2切换至路由器1,而路由器2不再消耗移动接口的流量,有利于节省路由器2的移动接口的流量。In the example shown in FIG6 , router 1 is an example of a first network device, and router 2 is an example of a second network device. After being powered on, router 2 accesses the network through a mobile network, and then obtains the address information of the control device from a server or data center (e.g., a registration query center) storing the address information of the control device through the mobile network, and then registers with the control device through the mobile network and obtains the configuration information of router 2 from the control device. After router 1 is connected to router 2 through a physical network cable, during the registration process of router 1, the message or message (e.g., the first message described above) sent by router 1 to the control device is forwarded to the control device via the mobile interface of router 2, and the configuration information (including the first routing configuration) sent by the control device to router 1 is also forwarded to router 1 via the mobile interface of router 2. When router 1 configures the WAN interface based on the first routing configuration, and the priority of the first route is higher than the priority of the second route, the communication between router 1 and the control device (e.g., the management signaling of the interactive router 1) goes through the WAN interface of router 1, and does not pass through the mobile interface of router 2. After that, the communication between router 2 and the control device (for example, the management signaling of the interaction between router 2) also goes through the WAN port of router 1 instead of the mobile interface of router 2. Therefore, the management traffic (for example, multiple management signalings of the interaction between the control device and the router) is switched from router 2 to router 1, and router 2 no longer consumes the traffic of the mobile interface, which is conducive to saving the traffic of the mobile interface of router 2.
本实施方式中,第二网络设备通过移动接口接入网络获取控制设备的地址信息,并且,通过移动接口从控制设备获取第二网络设备的配置信息,因此,第二网络设备的注册开局过程不需要WAN口,能够减少注册开局过程中网络设备对WAN口类型的依赖。此外,第一网络设备开局上线之后,第一网络设备能够通过物理网线(例如,Interlink)走第一网络设备与控制设备之间建立的管理通道作为主链路承载管理流量,而第二网络设备与控制设备通过移动接口进行通信的链路作为备链路不承载管理流量而不耗移动接口的流量。In this embodiment, the second network device accesses the network through the mobile interface to obtain the address information of the control device, and obtains the configuration information of the second network device from the control device through the mobile interface. Therefore, the registration and startup process of the second network device does not require a WAN port, which can reduce the dependence of the network device on the WAN port type during the registration and startup process. In addition, after the first network device is started and put online, the first network device can use the management channel established between the first network device and the control device through a physical network cable (for example, Interlink) as the main link to carry management traffic, while the link through which the second network device and the control device communicate through the mobile interface is used as a backup link that does not carry management traffic and does not consume the traffic of the mobile interface.
需要说明的是,第一网络设备为通过第二网络设备接入该第一站点的多个网络设备中的一个网络设备。该第一站点中可能还存在其他的网络设备通过第二网络设备接入该第一站点,前述其他网络设备可能与第一网络设备属于同一设备类型,此时,控制设备仅基于设备类型信息和第一站点的站点标识无法对第一网络设备与其他的网络设备进行差异化配置。也就是说,由于管理员在提前录入配置信息时无法区分同一设备类型的不同网络设备,因此,控制设备中可能仅存储了第一网络设备所属设备类型的网络设备的配置信息,而没有基于同一设备类型不同的网络设备配置不同的配置信息。It should be noted that the first network device is one of the multiple network devices that access the first site through the second network device. There may be other network devices in the first site that access the first site through the second network device. The aforementioned other network devices may belong to the same device type as the first network device. At this time, the control device cannot perform differentiated configurations for the first network device and other network devices based only on the device type information and the site identifier of the first site. In other words, since the administrator cannot distinguish between different network devices of the same device type when entering the configuration information in advance, the control device may only store the configuration information of the network devices of the device type to which the first network device belongs, and does not configure different configuration information based on different network devices of the same device type.
对此,本申请还提供了零配置部署方法的另一种实施例以解决前述问题。下面将结合图7对本申请提供的零配置部署方法的另一种实施例进行介绍。在该零配置部署方法中,控制设备和第一网络设备主要执行如下步骤:In this regard, the present application also provides another embodiment of a zero configuration deployment method to solve the aforementioned problem. Another embodiment of the zero configuration deployment method provided by the present application will be introduced below in conjunction with FIG. 7. In the zero configuration deployment method, the control device and the first network device mainly perform the following steps:
步骤701,第一网络设备基于第一协议获取邻接信息。Step 701: A first network device obtains adjacency information based on a first protocol.
具体地,第一网络设备通过第二网络设备接入第一站点之后,第一网络设备基于第一协议获取邻接信息。Specifically, after the first network device accesses the first site through the second network device, the first network device obtains adjacency information based on the first protocol.
其中,第二网络设备为第一站点中已在控制设备注册开局的网络设备,而第一网络设备是通过该第二网络设备接入该第一站点的待开局部署的网络设备。关于第一网络设备与第二网络设备的介绍请参阅前文步骤301中的相关描述,此处不予赘述。The second network device is a network device in the first site that has been registered and deployed in the control device, and the first network device is a network device to be deployed and connected to the first site through the second network device. For the introduction of the first network device and the second network device, please refer to the relevant description in step 301 above, which will not be repeated here.
其中,第一网络设备的邻接信息(Adjacency)用于指示第一网络设备在第一站点中的连接位置;也可以理解为,第一网络设备的邻接信息用于指示第一网络设备与第一站点中的其他网络设备的连接关系。Among them, the adjacency information (Adjacency) of the first network device is used to indicate the connection position of the first network device in the first site; it can also be understood that the adjacency information of the first network device is used to indicate the connection relationship between the first network device and other network devices in the first site.
在一种可能的实施方式中,第一网络设备的邻接信息包括与第一网络设备连接的网络设备的物理地址信息和物理接口信息。其中,物理地址信息可以是MAC地址;物理接口信息可以是设备的物理接口的编号。示例性的,物理接口信息可以表示为单板/槽位/端口。例如,与第一网络设备连接的某一个网络设备的物理接口信息为GE0/0/0,即该第一网络设备通过GE0/0/0与该网络设备连接。In a possible implementation, the adjacency information of the first network device includes physical address information and physical interface information of the network device connected to the first network device. The physical address information may be a MAC address; the physical interface information may be the number of the physical interface of the device. Exemplarily, the physical interface information may be represented as a board/slot/port. For example, the physical interface information of a network device connected to the first network device is GE0/0/0, that is, the first network device is connected to the network device via GE0/0/0.
需要说明的是,第一站点中与第一网络设备连接的网络设备可能不止一个,即第一网络设备获取的邻接信息包括多个与第一网络设备连接的网络设备的信息。示例性的,若第一站点中与第一网络设备连接的网络设备包括网络设备A、网络设备B和网络设备C共3个网络设备,则第一网络设备的邻接信息可以如下表2-1所示:It should be noted that there may be more than one network device connected to the first network device in the first site, that is, the adjacency information obtained by the first network device includes information of multiple network devices connected to the first network device. For example, if the network devices connected to the first network device in the first site include three network devices, namely, network device A, network device B, and network device C, the adjacency information of the first network device may be as shown in the following Table 2-1:
表2-1Table 2-1
可选的,第一网络设备的邻接信息还可以包括物理接口描述、接口连接关系等信息,此处不再一一列举。Optionally, the adjacency information of the first network device may also include information such as a physical interface description and an interface connection relationship, which are not listed here one by one.
还需要说明的是,第一站点中包括多个网络设备,不同网络设备的邻接信息不同,即不同的网络设备在第一站点中的连接位置不同。也就是说,每个网络设备的邻接信息能够在第一站点中唯一标识一个网络设备。It should also be noted that the first site includes multiple network devices, and the adjacency information of different network devices is different, that is, the connection positions of different network devices in the first site are different. In other words, the adjacency information of each network device can uniquely identify a network device in the first site.
此外,前述第一协议可以是链路层发现协议(link layer discovery protocol,LLDP),也可以是邻居发现协议(neighbor discovery protocol,NDP),还可以是其他能够发现邻接关系的协议。可选的,前述第一协议可以是一种协议,也可以是多种协议的组合,此处不做限定。In addition, the first protocol may be a link layer discovery protocol (LLDP), a neighbor discovery protocol (NDP), or other protocols capable of discovering adjacency relationships. Optionally, the first protocol may be a single protocol or a combination of multiple protocols, which is not limited here.
步骤702,第一网络设备获取控制设备的地址信息和第一站点的站点标识。Step 702: The first network device obtains address information of the control device and a site identifier of the first site.
具体地,第一网络设备通过第二网络设备接入第一站点之后,第一网络设备从第二网络设备获取控制设备的地址信息和第一站点的站点标识。Specifically, after the first network device accesses the first site through the second network device, the first network device obtains the address information of the control device and the site identifier of the first site from the second network device.
本实施例中,步骤702与前文步骤301类似,具体请参阅前文步骤301中的相关描述,此处不予赘述。In this embodiment, step 702 is similar to the above step 301. Please refer to the relevant description in the above step 301 for details, which will not be repeated here.
步骤703,第一网络设备向控制设备发送第一消息;相应地,控制设备从第一网络设备接收第一消息。Step 703: The first network device sends a first message to the control device; correspondingly, the control device receives the first message from the first network device.
其中,第一消息包括第一站点的站点标识和第一网络设备的设备类型信息。关于设备类型信息和第一站点的站点标识的介绍请参阅前文步骤302中的相关介绍,此处不予赘述。The first message includes the site identifier of the first site and the device type information of the first network device. For the introduction of the device type information and the site identifier of the first site, please refer to the relevant introduction in the above step 302, which will not be repeated here.
此外,第一消息还包括第一网络设备的邻接信息,第一网络设备的邻接信息用于指示第一网络设备在第一站点中的连接位置。关于邻接信息的介绍请参阅前文步骤702中的相关描述,此处不予赘述。In addition, the first message also includes the adjacency information of the first network device, and the adjacency information of the first network device is used to indicate the connection position of the first network device in the first site. For the introduction of the adjacency information, please refer to the relevant description in the above step 702, which will not be repeated here.
步骤704,控制设备基于第一消息中的第一站点的站点标识、第一网络设备的设备类型信息和第一网络设备的邻接信息确定第一网络设备的配置信息。Step 704: The control device determines configuration information of the first network device based on the site identifier of the first site in the first message, the device type information of the first network device, and the adjacency information of the first network device.
其中,控制设备包括预配置的多个网络设备的配置信息,预配置的多个网络设备的配置信息是多个站点中的网络设备的配置信息。该预配置的多个网络设备的配置信息包括第一站点中的多个网络设备的配置信息。可选的,第一站点中的多个网络设备的配置信息中存在至少两个具有相同设备类型的网络设备的配置信息不同,即第一站点中具有相同设备类型的不同网络设备的配置信息不完全相同。例如,第一站点中包含3个交换机,控制设备存储有第一站点中的3个交换机的配置信息,前述3个交换机的配置信息不完全相同。The control device includes configuration information of multiple preconfigured network devices, and the configuration information of multiple preconfigured network devices is configuration information of network devices in multiple sites. The configuration information of multiple preconfigured network devices includes configuration information of multiple network devices in the first site. Optionally, among the configuration information of multiple network devices in the first site, the configuration information of at least two network devices with the same device type is different, that is, the configuration information of different network devices with the same device type in the first site is not completely the same. For example, the first site includes 3 switches, and the control device stores the configuration information of the 3 switches in the first site, and the configuration information of the aforementioned 3 switches is not completely the same.
在一种可能的实施方式中,控制设备包括第一站点对应的第一对应关系,第一对应关系用于指示第一站点中的多个网络设备的邻接信息与第一站点中的多个网络设备的配置信息之间的对应关系。控制设备基于第一站点的站点标识确定第一站点的第一对应关系;控制设备基于第一网络设备的邻接信息和第一对应关系确定与邻接信息对应的配置信息为第一网络设备的配置信息。In a possible implementation, the control device includes a first correspondence corresponding to the first site, and the first correspondence is used to indicate the correspondence between the adjacency information of multiple network devices in the first site and the configuration information of multiple network devices in the first site. The control device determines the first correspondence of the first site based on the site identifier of the first site; the control device determines that the configuration information corresponding to the adjacency information is the configuration information of the first network device based on the adjacency information of the first network device and the first correspondence.
可选的,该第一对应关系中每个网络设备的配置信息是该网络设备的全量配置信息。其中,全量配置信息包括接口配置(例如,WAN接口配置、LAN接口配置或移动接口配置)、路由配置(例如,静态路由配置和/或动态路由配置)、VLAN配置(例如,管理VLAN配置和/或PnP VLAN配置)、系统配置、软件配置以及其他与该网络设备的业务相关的配置,此处不再一一列举。Optionally, the configuration information of each network device in the first corresponding relationship is the full configuration information of the network device. The full configuration information includes interface configuration (e.g., WAN interface configuration, LAN interface configuration, or mobile interface configuration), routing configuration (e.g., static routing configuration and/or dynamic routing configuration), VLAN configuration (e.g., management VLAN configuration and/or PnP VLAN configuration), system configuration, software configuration, and other configurations related to the business of the network device, which are not listed here one by one.
在一种可能的实施方式中,该第一对应关系中每个网络设备的邻接信息可以直接对应该网络设备的全量配置信息。示例性的,以第一站点包括2个路由器、3个交换机和4个接入点为例,该第一站点对应的第一对应关系可以如下表3-1所示:In a possible implementation, the adjacency information of each network device in the first correspondence may directly correspond to the full configuration information of the network device. For example, taking the first site including 2 routers, 3 switches and 4 access points as an example, the first correspondence corresponding to the first site may be as shown in the following Table 3-1:
表3-1Table 3-1
在表3-1所示示例中,若第一站点的站点标识为“ID-站点1”,第一网络设备的设备类型信息指示该第一网络设备的设备类型为“交换机”,并且,第一网络设备的邻接信息为“邻接信息3”,则该控制设备能够确定该第一网络设备的配置信息为“全量配置信息-S1-1”。In the example shown in Table 3-1, if the site identifier of the first site is "ID-Site 1", the device type information of the first network device indicates that the device type of the first network device is "switch", and the adjacency information of the first network device is "adjacency information 3", then the control device can determine that the configuration information of the first network device is "full configuration information-S1-1".
在另一种可能的实施方式中,该第一对应关系中的设备类型对应基础配置信息,而邻接信息对应该网络设备的差异化配置信息。前述基础配置信息和差异化配置信息构成了一个网络设备的全量配置信息。其中,基础配置信息指同一站点中同一设备类型的网络设备均相同的配置信息,该基础配置信息能够维持该网络设备的运行,但缺失部分个性化的功能或业务。例如,第一站点中的3个交换机均需要配置接口配置、路由配置和VLAN配置。差异化配置信息指该网络设备区别于其他网络设备而独有的个性化配置。例如,第一站点中的3个交换机中交换机1需要配置不同于交换机2和交换机3的软件系统,交换机1的软件配置为差异化配置。又例如,路由器1仅有WAN接口,而路由器2有WAN接口和移动接口,则配置给路由器1和路由器2的接口配置中的WAN接口配置是基础配置信息,而路由器2的移动接口配置为差异化配置。在实际应用中,管理员可以基于组网需求为每个网络设备设置基础配置信息和差异化配置信息,此处不再一一列举。In another possible implementation, the device type in the first correspondence corresponds to basic configuration information, and the adjacency information corresponds to the differentiated configuration information of the network device. The aforementioned basic configuration information and differentiated configuration information constitute the full configuration information of a network device. Among them, the basic configuration information refers to the same configuration information for network devices of the same device type in the same site, and the basic configuration information can maintain the operation of the network device, but lacks some personalized functions or services. For example, the three switches in the first site all need to be configured with interface configuration, routing configuration and VLAN configuration. Differentiated configuration information refers to the personalized configuration that is unique to the network device and different from other network devices. For example, among the three switches in the first site, switch 1 needs to be configured with a software system different from switch 2 and switch 3, and the software configuration of switch 1 is a differentiated configuration. For another example, router 1 has only a WAN interface, while router 2 has a WAN interface and a mobile interface. The WAN interface configuration in the interface configuration configured for router 1 and router 2 is the basic configuration information, and the mobile interface configuration of router 2 is a differentiated configuration. In actual applications, the administrator can set basic configuration information and differentiated configuration information for each network device based on networking requirements, which will not be listed one by one here.
示例性的,以第一站点包括2个路由器、3个交换机和4个接入点为例,该第一站点对应的第一对应关系可以如下表3-2所示:Exemplarily, taking the case where the first site includes 2 routers, 3 switches and 4 access points, the first corresponding relationship corresponding to the first site may be as shown in the following Table 3-2:
表3-2Table 3-2
在表3-2所示示例中,若第一站点的站点标识为“ID-站点1”,第一网络设备的设备类型信息指示该第一网络设备的设备类型为“交换机”,则该控制设备能够确定第一网络设备的基础配置信息为配置信息-S1。此外,若第一网络设备的邻接信息为“邻接信息3”,则该控制设备能够确定该第一网络设备的差异化配置信息为“VLAN配置1”,即该交换机VLAN需要个性化配置。In the example shown in Table 3-2, if the site identifier of the first site is "ID-site 1", and the device type information of the first network device indicates that the device type of the first network device is "switch", the control device can determine that the basic configuration information of the first network device is configuration information-S1. In addition, if the adjacency information of the first network device is "adjacency information 3", the control device can determine that the differentiated configuration information of the first network device is "VLAN configuration 1", that is, the switch VLAN requires personalized configuration.
可选的,该网络设备也可以仅有基础配置信息而没有差异化配置信息。例如,在表3-2所示示例中,第一站点中邻接信息为“邻接信息1”的路由器可以仅用基础配置信息而无需配置差异化配置信息。又例如,在表3-2所示示例中,第一站点中邻接信息为“邻接信息8”的接入点可以仅用基础配置信息而无需配置差异化配置信息。Optionally, the network device may also have only basic configuration information without differentiated configuration information. For example, in the example shown in Table 3-2, the router whose adjacency information is "adjacency information 1" in the first site may use only basic configuration information without configuring differentiated configuration information. For another example, in the example shown in Table 3-2, the access point whose adjacency information is "adjacency information 8" in the first site may use only basic configuration information without configuring differentiated configuration information.
需要说明的是,若该第一对应关系中每个网络设备的邻接信息可以直接对应该网络设备的全量配置信息,即控制设备采用表3-1所示示例对应的实施方式,则控制设备需要存储9份全量配置信息;若该第一对应关系中的设备类型对应基础配置信息,而邻接信息对应该网络设备的差异化配置信息,即控制设备采用表3-2所示示例对应的实施方式,则控制设备仅需要存储3份基础配置信息和若干份差异化配置信息。当基础配置信息的大小远大于差异化配置信息的大小时,采用表3-2所示示例对应的实施方式有利于节省控制设备的存储空间。It should be noted that if the adjacency information of each network device in the first correspondence can directly correspond to the full configuration information of the network device, that is, the control device adopts the implementation method corresponding to the example shown in Table 3-1, then the control device needs to store 9 copies of the full configuration information; if the device type in the first correspondence corresponds to the basic configuration information, and the adjacency information corresponds to the differentiated configuration information of the network device, that is, the control device adopts the implementation method corresponding to the example shown in Table 3-2, then the control device only needs to store 3 copies of the basic configuration information and several copies of the differentiated configuration information. When the size of the basic configuration information is much larger than the size of the differentiated configuration information, adopting the implementation method corresponding to the example shown in Table 3-2 is conducive to saving the storage space of the control device.
还需要说明的是,控制设备中包含多个站点的配置信息,可以是每个站点中的网络设备的配置信息都与该网络设备的邻接信息存在对应关系,也可以是仅第一站点中的网络设备的配置信息与该网络设备的邻接信息存在第一对应关系,而其他的站点中的网络设备的配置信息仅与该网络设备的设备类型信息存在对应关系。本申请不限制。It should also be noted that the control device contains configuration information of multiple sites, and the configuration information of the network device in each site may have a corresponding relationship with the adjacency information of the network device, or only the configuration information of the network device in the first site has a first corresponding relationship with the adjacency information of the network device, while the configuration information of the network devices in other sites only has a corresponding relationship with the device type information of the network device. This application is not limited.
此外,在一种可能的实施方式中,控制设备能够获取管理员规划站点时输入的预配置的站点拓扑,该预配置的站点拓扑包括至少一个站点拓扑。例如,该预配置的站点拓扑包括第一站点的站点标识指示的第一站点拓扑。In addition, in a possible implementation, the control device can obtain a preconfigured site topology input by an administrator when planning a site, and the preconfigured site topology includes at least one site topology. For example, the preconfigured site topology includes a first site topology indicated by a site identifier of a first site.
可选的,预配置的站点拓扑中的多个虚拟网络设备,每个虚拟网络设备在站点拓扑中的连接位置指示了该开局人员需要在该站点中安装实体网络设备的连接位置。每个虚拟网络设备在站点拓扑中的连接位置以邻接信息的形式存储于控制设备中。例如,管理员在第一站点拓扑中配置了2个虚拟交换机,则2个虚拟交换机中每个虚拟交换机在第一站点拓扑中的连接位置即为开局人员到达第一站点后需要安装交换机的连接位置,该虚拟交换机在第一站点拓扑中的连接位置以该交换机的邻接信息的形式存储于控制设备中。此外,每个虚拟网络设备的邻接信息与该虚拟网络设备的配置信息对应存储,例如,前述第一站点对应的第一对应关系。可选的,第一站点拓扑包含的多个虚拟网络设备中存在至少两个具有相同设备类型的虚拟网络设备的配置信息不同。Optionally, for multiple virtual network devices in a preconfigured site topology, the connection position of each virtual network device in the site topology indicates the connection position where the start-up personnel need to install the physical network device in the site. The connection position of each virtual network device in the site topology is stored in the control device in the form of adjacency information. For example, the administrator configures two virtual switches in the first site topology, then the connection position of each of the two virtual switches in the first site topology is the connection position where the start-up personnel need to install the switch after arriving at the first site, and the connection position of the virtual switch in the first site topology is stored in the control device in the form of adjacency information of the switch. In addition, the adjacency information of each virtual network device is stored corresponding to the configuration information of the virtual network device, for example, the first corresponding relationship corresponding to the aforementioned first site. Optionally, among the multiple virtual network devices included in the first site topology, there are at least two virtual network devices with the same device type whose configuration information is different.
可选的,该第一站点拓扑中每个虚拟网络设备对应一个虚拟设备编号,不同虚拟网络设备的虚拟设备编号不同,每个虚拟设备编号与邻接信息对应存储,每个虚拟设备编号与配置信息对应存储。例如,以表3-1为例,存储第一对应关系的列表可以如下表3-3所示:Optionally, each virtual network device in the first site topology corresponds to a virtual device number, different virtual network devices have different virtual device numbers, each virtual device number is stored in correspondence with adjacency information, and each virtual device number is stored in correspondence with configuration information. For example, taking Table 3-1 as an example, the list storing the first correspondence relationship may be as shown in Table 3-3 below:
表3-3Table 3-3
示例性的,以表3-2为例,存储第一对应关系的列表可以如下表3-4所示:Exemplarily, taking Table 3-2 as an example, the list storing the first correspondence relationship may be as shown in Table 3-4 below:
表3-4Table 3-4
需要说明的是,前述虚拟设备编号仅为了便于管理员在配置操作(例如,创建配置信息或修改配置信息)时,区分不同的网络设备。由于一个网络设备的邻接信息往往包含多个网络设备的物理地址信息和多个网络设备的接口信息,相比于管理员仔细阅读邻接信息的内容来区分不同的网络设备来说,管理员随机设置的虚拟设备编号能够简单明了地反映出不同的网络设备。有利于提高管理员的配置效率,降低管理员在控制设备上操作的复杂度。It should be noted that the aforementioned virtual device number is only for the convenience of the administrator to distinguish different network devices during configuration operations (for example, creating configuration information or modifying configuration information). Since the adjacency information of a network device often contains the physical address information of multiple network devices and the interface information of multiple network devices, compared with the administrator carefully reading the content of the adjacency information to distinguish different network devices, the virtual device number randomly set by the administrator can simply and clearly reflect the different network devices. This is conducive to improving the configuration efficiency of the administrator and reducing the complexity of the administrator's operation on the control device.
还需要说明的是,虚拟设备编号与前文介绍的设备标识不是同一事物。其中,虚拟设备标号是管理员设置的用于区分虚拟网络设备的简易标识,可以改变,只要管理员能够区分不同的虚拟网络设备即可。而设备标识是该网络设备在出厂时便携带在该网络设备上的唯一身份标识,不可改变。It should also be noted that the virtual device number is not the same as the device identifier mentioned above. The virtual device number is a simple identifier set by the administrator to distinguish virtual network devices, which can be changed as long as the administrator can distinguish different virtual network devices. The device identifier is the unique identity identifier carried on the network device when it leaves the factory and cannot be changed.
可选的,控制设备可以基于收到的来自第一站点的多个网络设备的邻接信息生成第一站点的站点拓扑,并通过第一站点的站点拓扑向管理员展示第一站点中各个网络设备的邻接关系,有利于管理员在第一站点中的网络设备上线后对第一站点中各个网络设备进行管理维护。Optionally, the control device can generate a site topology of the first site based on the adjacency information received from multiple network devices in the first site, and display the adjacency relationship of each network device in the first site to the administrator through the site topology of the first site, which is beneficial for the administrator to manage and maintain each network device in the first site after the network devices in the first site are online.
可选的,控制设备将第一网络设备的配置信息和第一网络设备的设备标识对应存储。示例性的,第一站点中的网络设备注册开局之后,控制设备可以将虚拟设备编号替换为设备标识,以使得管理员在后续管理维护操作中通过设备标识区分不同的网络设备。Optionally, the control device stores the configuration information of the first network device and the device identification of the first network device in correspondence. Exemplarily, after the network device in the first site is registered and started, the control device can replace the virtual device number with the device identification so that the administrator can distinguish different network devices by the device identification in subsequent management and maintenance operations.
此外,关于第一网络设备的配置信息的具体内容请参阅前文步骤303和步骤510中的相关介绍,此处不予赘述。In addition, for the specific content of the configuration information of the first network device, please refer to the relevant introduction in the above step 303 and step 510, which will not be repeated here.
步骤705,控制设备向第一网络设备发送第一网络设备的配置信息;相应地,第一网络设备接收来自控制设备的第一网络设备的配置信息。Step 705: The control device sends the configuration information of the first network device to the first network device; correspondingly, the first network device receives the configuration information of the first network device from the control device.
步骤706,第一网络设备基于第一网络设备的配置信息执行开局部署。Step 706: The first network device performs deployment based on the configuration information of the first network device.
为便于理解,下面结合图8所示的具体示例进行介绍:For ease of understanding, the following is an introduction with reference to the specific example shown in FIG8 :
如图8所示,管理员通过客户端在控制设备上做预配置,即在控制设备中写入规划的各个站点的站点标识、每个站点中包含的各个设备类型的网络设备以及、每个设备类型的网络设备对应的配置信息以及每个网络设备在站点中的连接位置(即每个网络设备的邻接信息)。该过程中,管理员无需向控制设备导入需要发往站点的网络设备的设备标识。待管理员执行完预配置操作之后,开局人员基于设备类型从库房查找并装车需要在某个站点(例如,站点1)注册开局的网络设备(例如,至少一个路由器、至少一个交换机、至少一个接入点等)。待开局人员到达站点1之后,开局人员基于设备类型查找网络设备并将网络设备接入指定位置上电。例如,若站点1的某个位置需要连接一个交换机,则开局人员仅需要从货车上拿出一个交换机作为第一网络设备连接到该位置即可,而不需要选择某个ESN对应的交换机作为第一网络设备。例如,若站点1的某个位置需要连接一个路由器,则开局人员仅需要从货车上拿出一个路由器作为第一网络设备连接到该位置即可,而不需要选择某个ESN对应的路由器作为第一网络设备。待该网络设备上电之后,该第一网络设备将从第二网络设备获取控制设备的地址信息和站点1的站点标识,向控制设备发送第一网络设备的设备类型信息、站点1的站点标识和邻接信息等。然后,控制设备基于站点1的站点标识、设备类型信息和邻接信息确定该第一网络设备的配置信息,并向该第一网络设备发送该配置信息,以使得该第一网络设备基于该配置信息执行开局部署。无需开局人员对该第一网络设备进行额外的配置。具体细节请参阅前述步骤701至步骤706对应的相关描述。As shown in FIG8 , the administrator performs pre-configuration on the control device through the client, that is, writes the site identifiers of each planned site, the network devices of each device type contained in each site, and the configuration information corresponding to the network devices of each device type and the connection position of each network device in the site (that is, the adjacency information of each network device) into the control device. In this process, the administrator does not need to import the device identifiers of the network devices that need to be sent to the site to the control device. After the administrator completes the pre-configuration operation, the start-up personnel search and load the network devices (for example, at least one router, at least one switch, at least one access point, etc.) that need to be registered for the start-up at a certain site (for example, site 1) from the warehouse based on the device type. After the start-up personnel arrive at site 1, the start-up personnel search for network devices based on the device type and connect the network devices to the designated location and power them on. For example, if a switch needs to be connected to a certain location at site 1, the start-up personnel only need to take out a switch from the truck as the first network device and connect it to the location, without selecting a switch corresponding to a certain ESN as the first network device. For example, if a router needs to be connected to a certain location of site 1, the start-up personnel only need to take out a router from the truck as the first network device and connect it to the location, without having to select a router corresponding to a certain ESN as the first network device. After the network device is powered on, the first network device will obtain the address information of the control device and the site identifier of site 1 from the second network device, and send the device type information of the first network device, the site identifier and adjacency information of site 1, etc. to the control device. Then, the control device determines the configuration information of the first network device based on the site identifier, device type information and adjacency information of site 1, and sends the configuration information to the first network device, so that the first network device performs the start-up deployment based on the configuration information. There is no need for the start-up personnel to perform additional configuration on the first network device. For specific details, please refer to the relevant descriptions corresponding to the aforementioned steps 701 to 706.
本实施例中,由于,第一网络设备除了向控制设备提供第一站点的站点标识和设备类型信息之外,还能够提供指示该第一网络设备在第一站点中的连接位置的邻接信息,控制设备能够通过各个网络设备的邻接信息区分同一设备类型的不同网络设备,进而能够针对该第一网络设备下发该第一网络设备的配置信息。因此,能够在免绑定设备标识的情况下实现同一设备类型的不同网络设备的差异化配置,有利于进一步提高网络设备部署的效率。In this embodiment, since the first network device can provide the control device with the site identifier and device type information of the first site and can also provide the adjacency information indicating the connection position of the first network device in the first site, the control device can distinguish different network devices of the same device type through the adjacency information of each network device, and then can issue the configuration information of the first network device to the first network device. Therefore, it is possible to achieve differentiated configuration of different network devices of the same device type without binding the device identifier, which is conducive to further improving the efficiency of network device deployment.
此外,如图9所示,本申请还提供了一种控制设备90,图9为本申请提供的控制设备90的结构示意图。该控制设备90可以是服务器或管理平台。该控制设备90可以仅包括一个服务器,也可以包括多个服务器,此处不做限定。前述图3、图5或图7对应的方法实施例中的控制设备均可以基于本实施例中图9所示的控制设备90的结构。In addition, as shown in FIG9 , the present application further provides a control device 90, and FIG9 is a schematic diagram of the structure of the control device 90 provided by the present application. The control device 90 may be a server or a management platform. The control device 90 may include only one server or multiple servers, which is not limited here. The control devices in the method embodiments corresponding to the aforementioned FIG3 , FIG5 or FIG7 may all be based on the structure of the control device 90 shown in FIG9 in the present embodiment.
如图9所示,控制设备90可以包括处理器901和收发器902。其中,该处理器901与该收发器902耦合连接。As shown in Fig. 9, the control device 90 may include a processor 901 and a transceiver 902. The processor 901 is coupled to the transceiver 902.
其中,处理器901可以是中央处理器(central processing unit,CPU)、专用集成电路(application-specific integrated circuit,ASIC)、可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。处理器901可以是指一个处理器,也可以包括多个处理器,具体此处不做限定。The processor 901 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processor 901 may refer to one processor or may include multiple processors, which is not specifically limited here.
其中,收发器902也可以称为收发单元、收发机、收发装置等。可选的,可以将收发单元中用于实现接收功能的器件视为接收单元,将收发单元中用于实现发送功能的器件视为发送单元,即收发单元包括接收单元和发送单元,接收单元也可以称为接收机、输入口、接收电路等,发送单元可以称为发射机、发射器或者发射电路等。The transceiver 902 may also be referred to as a transceiver unit, a transceiver, a transceiver device, etc. Optionally, a device in the transceiver unit for implementing a receiving function may be regarded as a receiving unit, and a device in the transceiver unit for implementing a sending function may be regarded as a sending unit, that is, the transceiver unit includes a receiving unit and a sending unit, the receiving unit may also be referred to as a receiver, an input port, a receiving circuit, etc., and the sending unit may be referred to as a transmitter, a transmitter, or a transmitting circuit, etc.
可选的,该控制设备还包括存储器903,该处理器901与该存储器903耦合连接。该存储器903主要用于存储软件程序和数据。存储器903可以是独立存在,与处理器901相连。可选的,该存储器903可以和该处理器901集成于一体,例如集成于一个或多个芯片之内。其中,该存储器903能够存储执行本申请实施例的技术方案的程序代码,并由处理器901来控制执行,被执行的各类计算机程序代码也可被视为是处理器901的驱动程序。存储器903可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器903还可以包括上述种类的存储器的组合。存储器903可以是指一个存储器,也可以包括多个存储器。Optionally, the control device further includes a memory 903, and the processor 901 is coupled to the memory 903. The memory 903 is mainly used to store software programs and data. The memory 903 may exist independently and be connected to the processor 901. Optionally, the memory 903 may be integrated with the processor 901, for example, integrated into one or more chips. Among them, the memory 903 can store program codes for executing the technical solutions of the embodiments of the present application, and is controlled and executed by the processor 901, and the various types of computer program codes executed can also be regarded as drivers of the processor 901. The memory 903 may include volatile memory, such as random-access memory (RAM); the memory may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 903 may also include a combination of the above-mentioned types of memory. The memory 903 may refer to one memory or may include multiple memories.
示例性的,存储器903用于存储预配置的多个网络设备的配置信息,预配置的多个网络设备的配置信息是多个站点中的网络设备的配置信息。该预配置的多个网络设备的配置信息包括第一站点中的多个网络设备的配置信息。可选的,第一站点中的多个网络设备的配置信息中存在至少两个具有相同设备类型的网络设备的配置信息不同,即第一站点中具有相同设备类型的不同网络设备的配置信息不完全相同。Exemplarily, the memory 903 is used to store configuration information of multiple preconfigured network devices, where the configuration information of multiple preconfigured network devices is configuration information of network devices in multiple sites. The configuration information of multiple preconfigured network devices includes configuration information of multiple network devices in the first site. Optionally, among the configuration information of multiple network devices in the first site, there are at least two network devices with the same device type whose configuration information is different, that is, the configuration information of different network devices with the same device type in the first site is not completely the same.
示例性的,存储器903还用于存储第一站点对应的第一对应关系,第一对应关系用于指示第一站点中的多个网络设备的邻接信息与第一站点中的多个网络设备的配置信息之间的对应关系。可选的,该第一对应关系中每个网络设备的配置信息是该网络设备的全量配置信息。其中,全量配置信息包括接口配置(例如,WAN接口配置、LAN接口配置或移动接口配置)、路由配置(例如,静态路由配置和/或动态路由配置)、VLAN配置(例如,管理VLAN配置和/或PnP VLAN配置)、系统配置、软件配置以及其他与该网络设备的业务相关的配置,此处不再一一列举。Exemplarily, the memory 903 is also used to store a first corresponding relationship corresponding to the first site, and the first corresponding relationship is used to indicate the corresponding relationship between the adjacency information of multiple network devices in the first site and the configuration information of multiple network devices in the first site. Optionally, the configuration information of each network device in the first corresponding relationship is the full configuration information of the network device. Among them, the full configuration information includes interface configuration (for example, WAN interface configuration, LAN interface configuration or mobile interface configuration), routing configuration (for example, static routing configuration and/or dynamic routing configuration), VLAN configuration (for example, management VLAN configuration and/or PnP VLAN configuration), system configuration, software configuration and other configurations related to the business of the network device, which are not listed here one by one.
示例性的,存储器903还用于管理员规划站点时输入的预配置的站点拓扑,该预配置的站点拓扑包括至少一个站点拓扑。例如,该预配置的站点拓扑包括第一站点的站点标识指示的第一站点拓扑。Exemplarily, the memory 903 is also used for pre-configured site topology input by the administrator when planning a site, and the pre-configured site topology includes at least one site topology. For example, the pre-configured site topology includes a first site topology indicated by a site identifier of a first site.
示例性的,存储器903还用于存储来自第一站点的多个网络设备的邻接信息,以及,处理器901基于多个网络设备的邻接信息生成第一站点的站点拓扑,以使得管理员能够随时查看第一站点中各个网络设备的邻接关系。Exemplarily, the memory 903 is also used to store adjacency information of multiple network devices from the first site, and the processor 901 generates a site topology of the first site based on the adjacency information of the multiple network devices, so that the administrator can view the adjacency relationship of each network device in the first site at any time.
在一个实现方式中,存储器903中存储有计算机可读指令,处理器901调用前述计算机可读指令执行以实现如下功能:In one implementation, the memory 903 stores computer-readable instructions, and the processor 901 calls the aforementioned computer-readable instructions to execute to implement the following functions:
其中,收发器902,用于接收来自第一网络设备的第一消息,第一消息包括第一网络设备通过第二网络设备接入的第一站点的站点标识和第一网络设的设备类型信息,第二网络设备为第一站点中已在控制设备注册开局的网络设备;处理器901,用于基于第一站点的站点标识和第一网络设备的设备类型信息确定配置信息;该收发器902,还用于向第一网络设备发送配置信息,配置信息用于第一网络设备执行开局部署。Among them, the transceiver 902 is used to receive a first message from the first network device, the first message includes the site identifier of the first site accessed by the first network device through the second network device and the device type information of the first network device, and the second network device is a network device in the first site that has been registered and started in the control device; the processor 901 is used to determine configuration information based on the site identifier of the first site and the device type information of the first network device; the transceiver 902 is also used to send configuration information to the first network device, and the configuration information is used for the first network device to perform startup deployment.
可选的,第一网络设备的设备类型信息包括第一网络设备的设备标识,第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备;或者,第一消息还包括第一网络设备的设备标识,第一网络设备的设备标识用于唯一标识第一网络设备。Optionally, the device type information of the first network device includes a device identifier of the first network device, which is used to indicate the device type of the first network device and uniquely identify the first network device; or, the first message also includes a device identifier of the first network device, which is used to uniquely identify the first network device.
在一种可能的实施方式中,第一消息还包括第一网络设备的邻接信息,第一网络设备的邻接信息用于指示第一网络设备在第一站点中的连接位置。该处理器901,具体用于基于第一站点的站点标识、第一网络设备的设备类型信息和第一网络设备的邻接信息确定第一网络设备的配置信息。In a possible implementation, the first message further includes adjacency information of the first network device, where the adjacency information of the first network device is used to indicate a connection position of the first network device in the first site. The processor 901 is specifically configured to determine configuration information of the first network device based on a site identifier of the first site, device type information of the first network device, and adjacency information of the first network device.
在一种可能的实施方式中,该处理器901,具体用于:基于第一站点的站点标识确定第一站点对应的第一对应关系;以及,基于第一网络设备的邻接信息和第一对应关系确定与邻接信息对应的配置信息为第一网络设备的配置信息。In a possible implementation, the processor 901 is specifically used to: determine a first correspondence corresponding to the first site based on the site identifier of the first site; and determine that the configuration information corresponding to the adjacency information is the configuration information of the first network device based on the adjacency information of the first network device and the first correspondence.
在一种可能的实施方式中,该收发器902,还用于:从第二网络设备接收第二网络设备的设备标识;以及,向第二网络设备发送第二网络设备的配置信息,第二网络设备的配置信息包括控制设备的地址信息和第一站点的站点标识。In a possible implementation, the transceiver 902 is further used to: receive a device identifier of the second network device from the second network device; and send configuration information of the second network device to the second network device, wherein the configuration information of the second network device includes address information of the control device and a site identifier of the first site.
其余可以参考图3、图5或图7对应实施例中控制设备相关的方法,此处不再赘述。For the rest, please refer to the methods related to the control device in the corresponding embodiments of FIG. 3 , FIG. 5 or FIG. 7 , which will not be described in detail here.
此外,如图10所示,本申请还提供了一种网络设备100,图10为本申请提供的网络设备100的结构示意图。该设备100可以用于实现前文介绍的第一网络设备的功能,也可以用于实现前文介绍的第二网络设备的功能。示例性的,若设备100执行前文第一网络设备的功能,则该设备100可以是路由器、交换机、接入点或防火墙。若设备100执行前文第二网络设备的功能,则该设备100可以是路由器或防火墙。前述图3、图5或图7对应的方法实施例中的第一网络设备或第二网络设备均可以基于本实施例中图10所示的设备100的结构。In addition, as shown in Figure 10, the present application also provides a network device 100, and Figure 10 is a schematic diagram of the structure of the network device 100 provided by the present application. The device 100 can be used to implement the function of the first network device introduced in the above text, and can also be used to implement the function of the second network device introduced in the above text. Exemplarily, if the device 100 performs the function of the first network device in the above text, the device 100 can be a router, a switch, an access point or a firewall. If the device 100 performs the function of the second network device in the above text, the device 100 can be a router or a firewall. The first network device or the second network device in the method embodiment corresponding to the aforementioned Figures 3, 5 or 7 can be based on the structure of the device 100 shown in Figure 10 in this embodiment.
如图10所示,网络设备100可以包括处理器1001和通信接口1002。其中,该处理器1001与该通信接口1002耦合连接。As shown in FIG10 , the network device 100 may include a processor 1001 and a communication interface 1002 . The processor 1001 is coupled to the communication interface 1002 .
其中,处理器1001可以是中央处理器(central processing unit,CPU)、网络处理器(network processor,NP)、专用集成电路(application-specific integratedcircuit,ASIC)、可编程逻辑器件(programmable logic device,PLD)或其组合。处理器1001可以是指一个处理器,也可以包括多个处理器,具体此处不做限定。The processor 1001 may be a central processing unit (CPU), a network processor (NP), an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The processor 1001 may refer to one processor or may include multiple processors, which is not specifically limited here.
其中,处理器1001用于实现报文或消息的转发处理。例如,处理器1001基于转发表项存储器保存的转发表转发接收到的报文,如果报文的目的地址为网络设备100的地址,则将该报文上送至CPU(如中央处理器)处理;如果报文的目的地址不是网络设备100的地址,则根据该目的地址从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。其中,上行报文的处理可以包括:报文入接口的处理,转发表查找;下行报文的处理可以包括:转发表查找等等。Wherein, the processor 1001 is used to implement the forwarding processing of the message or message. For example, the processor 1001 forwards the received message based on the forwarding table stored in the forwarding table entry memory. If the destination address of the message is the address of the network device 100, the message is sent to the CPU (such as the central processing unit) for processing; if the destination address of the message is not the address of the network device 100, the next hop and the output interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to the output interface corresponding to the destination address. Wherein, the processing of the uplink message may include: processing of the message input interface, forwarding table search; the processing of the downlink message may include: forwarding table search, etc.
其中,通信接口1002可以是接口板(也称为线路接口单元卡(line processingunit,LPU))、线卡(line card)或业务板。该通信接口1002用于提供各种业务接口并实现数据包的转发。业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(flexible ethernet clients,FlexE Clients)。The communication interface 1002 may be an interface board (also called a line processing unit (LPU)), a line card or a service board. The communication interface 1002 is used to provide various service interfaces and implement data packet forwarding. Service interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc., and Ethernet interfaces are, for example, flexible Ethernet service interfaces (FlexE Clients).
此外,该通信接口1002还包括物理接口卡,该物理接口卡用于实现物理层的对接功能,原始的流量由此进入接口板,以及处理后的报文从该物理接口卡发出。物理接口卡也称为子卡,可安装在接口板上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器处理。可选的,该通信接口1002包括WAN接口、LAN接口或移动接口。In addition, the communication interface 1002 also includes a physical interface card, which is used to implement the docking function of the physical layer, and the original traffic enters the interface board from this, and the processed message is sent from the physical interface card. The physical interface card is also called a daughter card, which can be installed on the interface board and is responsible for converting the optical signal into a message and forwarding the message to the network processor for processing after checking the legitimacy of the message. Optionally, the communication interface 1002 includes a WAN interface, a LAN interface or a mobile interface.
可选的,该网络设备还包括存储器1003,该处理器1001与该存储器1003耦合连接。该存储器1003主要用于存储软件程序和数据。存储器1003可以是独立存在,与处理器1001相连。可选的,该存储器1003可以和该处理器1001集成于一体,例如集成于一个或多个芯片之内。其中,该存储器1003能够存储执行本申请实施例的技术方案的程序代码,并由处理器1001来控制执行,被执行的各类计算机程序代码也可被视为是处理器1001的驱动程序。存储器1003可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1003还可以包括上述种类的存储器的组合。存储器1003可以是指一个存储器,也可以包括多个存储器。Optionally, the network device further includes a memory 1003, and the processor 1001 is coupled to the memory 1003. The memory 1003 is mainly used to store software programs and data. The memory 1003 may exist independently and be connected to the processor 1001. Optionally, the memory 1003 may be integrated with the processor 1001, for example, integrated into one or more chips. Among them, the memory 1003 can store program codes for executing the technical solutions of the embodiments of the present application, and is controlled and executed by the processor 1001, and the various types of computer program codes executed can also be regarded as drivers of the processor 1001. The memory 1003 may include volatile memory (volatile memory), such as random-access memory (random-access memory, RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk drive (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); the memory 1003 may also include a combination of the above-mentioned types of memory. The memory 1003 may refer to one memory or may include multiple memories.
示例性的,存储器1003用于存储获取的控制设备的地址信息、站点标识(例如,第一站点的站点标识)。该存储器1003还用于存储网络设备的设备类型信息(例如,第一网络设备的设备类型信息)。该存储器1003还用于存储网络设备的邻接信息(例如,第一网络设备的邻接信息)。该存储器1003还用于存储网络设备的设备标识(例如,第一网络设备的ESN)。该存储器1003还用于存储从控制设备获取的网络设备的配置信息(例如,第一网络设备的配置信息或第二网络设备的配置信息)。Exemplarily, the memory 1003 is used to store the acquired address information and site identifier of the control device (for example, the site identifier of the first site). The memory 1003 is also used to store the device type information of the network device (for example, the device type information of the first network device). The memory 1003 is also used to store the adjacency information of the network device (for example, the adjacency information of the first network device). The memory 1003 is also used to store the device identifier of the network device (for example, the ESN of the first network device). The memory 1003 is also used to store the configuration information of the network device acquired from the control device (for example, the configuration information of the first network device or the configuration information of the second network device).
在一个实现方式中,当网络设备100用于实现第一网络设备的功能时,处理器1001和通信接口1002实现如下功能:In one implementation, when the network device 100 is used to implement the function of the first network device, the processor 1001 and the communication interface 1002 implement the following functions:
其中,通信接口1002,用于通过第二网络设备接入第一站点,并从第二网络设备获取控制设备的地址信息和第一站点的站点标识,第二网络设备为第一站点中已在控制设备注册开局的网络设备;该通信接口1002,还用于基于控制设备的地址信息向控制设备发送第一消息,第一消息包括第一站点的站点标识和第一网络设备的设备类型信息,第一网络设备的设备类型信息用于指示第一网络设备的设备类型;该通信接口1002,还用于接收来自控制设备的配置信息;处理器1001,用于基于配置信息执行开局部署。Among them, the communication interface 1002 is used to access the first site through the second network device, and obtain the address information of the control device and the site identifier of the first site from the second network device, and the second network device is a network device in the first site that has been registered and started in the control device; the communication interface 1002 is also used to send a first message to the control device based on the address information of the control device, the first message includes the site identifier of the first site and the device type information of the first network device, and the device type information of the first network device is used to indicate the device type of the first network device; the communication interface 1002 is also used to receive configuration information from the control device; the processor 1001 is used to perform startup deployment based on the configuration information.
可选的,配置信息与第一网络设备的设备类型相关。Optionally, the configuration information is related to a device type of the first network device.
可选的,第一网络设备的设备类型信息包括第一网络设备的设备标识,第一网络设备的设备标识用于指示第一网络设备的设备类型并且唯一标识第一网络设备;或者,第一消息还包括第一网络设备的设备标识,第一网络设备的设备标识用于唯一标识第一网络设备。Optionally, the device type information of the first network device includes a device identifier of the first network device, which is used to indicate the device type of the first network device and uniquely identify the first network device; or, the first message also includes a device identifier of the first network device, which is used to uniquely identify the first network device.
可选的,第一消息还包括第一网络设备的邻接信息,第一网络设备的邻接信息用于指示第一网络设备在第一站点中的连接位置,配置信息与第一网络设备的设备类型和第一网络设备在第一站点中的连接位置相关。Optionally, the first message also includes adjacency information of the first network device, the adjacency information of the first network device is used to indicate the connection position of the first network device in the first site, and the configuration information is related to the device type of the first network device and the connection position of the first network device in the first site.
在一种可能的实施方式中,该处理器1001基于第一协议获取邻接信息,第一协议包括链路层发现协议LLDP或邻居发现协议NDP。In a possible implementation, the processor 1001 obtains adjacency information based on a first protocol, where the first protocol includes a Link Layer Discovery Protocol LLDP or a Neighbor Discovery Protocol NDP.
在一种可能的实施方式中,第一网络设备的配置信息包括第一路由配置,第一路由配置用于配置第一网络设备通过广域网WAN接口接入控制设备的第一路由,第一路由的优先级高于第二路由的优先级,第二路由为第二网络设备通过移动接口接入控制设备的路由。In a possible implementation, the configuration information of the first network device includes a first routing configuration, and the first routing configuration is used to configure a first route for the first network device to access the control device through a wide area network (WAN) interface. The priority of the first route is higher than the priority of the second route, and the second route is the route for the second network device to access the control device through a mobile interface.
其余可以参考图3、图5或图7对应实施例中第一网络设备相关的方法,此处不再赘述。For the rest, please refer to the method related to the first network device in the corresponding embodiment of FIG. 3 , FIG. 5 or FIG. 7 , which will not be described in detail here.
在一个实现方式中,当网络设备100用于实现第二网络设备的功能时,处理器1001和通信接口1002实现如下功能:In one implementation, when the network device 100 is used to implement the function of the second network device, the processor 1001 and the communication interface 1002 implement the following functions:
通信接口1002,用于从其他服务器或数据中心获取控制设备的地址信息;以及,向控制设备发送第二网络设备的设备标识;以及,从控制设备接收第二网络设备的配置信息。处理器1001,用于基于第二网络设备的配置信息执行开局部署。The communication interface 1002 is used to obtain the address information of the control device from other servers or data centers; and send the device identification of the second network device to the control device; and receive the configuration information of the second network device from the control device. The processor 1001 is used to perform deployment based on the configuration information of the second network device.
其中,第二网络设备的配置信息包括控制设备的地址信息和第一站点的站点标识。The configuration information of the second network device includes the address information of the control device and the site identifier of the first site.
在一种可能的实施方式中,第二网络设备的配置信息包括DHCP配置,该DHCP配置用于指示第二网络设备为DHCP服务器,其他接入该第二网络设备的网络设备为DHCP客户端。其中,该DHCP配置包括DHCP Option配置,该DHCP Option配置包括控制设备的地址信息和第一站点的站点标识。该DHCP Option配置用于在DHCP流程向所述第一网络设备提供控制设备的地址信息和第一站点的站点标识。具体请参阅后文步骤506中的相关描述,此处不予赘述。In a possible implementation, the configuration information of the second network device includes a DHCP configuration, and the DHCP configuration is used to indicate that the second network device is a DHCP server, and other network devices connected to the second network device are DHCP clients. The DHCP configuration includes a DHCP Option configuration, and the DHCP Option configuration includes the address information of the control device and the site identifier of the first site. The DHCP Option configuration is used to provide the first network device with the address information of the control device and the site identifier of the first site in the DHCP process. For details, please refer to the relevant description in step 506 below, which will not be repeated here.
此外,该第二网络设备的配置信息还包括接口配置(例如,WAN接口配置、LAN接口配置或移动接口配置)、路由配置(例如,静态路由配置和/或动态路由配置)、VLAN配置(例如,管理VLAN配置和/或PnP VLAN配置)、系统配置以及其他与第二网络设备的业务相关的配置等。In addition, the configuration information of the second network device also includes interface configuration (for example, WAN interface configuration, LAN interface configuration or mobile interface configuration), routing configuration (for example, static routing configuration and/or dynamic routing configuration), VLAN configuration (for example, management VLAN configuration and/or PnP VLAN configuration), system configuration and other configurations related to the business of the second network device.
其余可以参考图3、图5或图7对应实施例中第二网络设备相关的方法,此处不再赘述。For the rest, please refer to the method related to the second network device in the corresponding embodiment of FIG. 3 , FIG. 5 or FIG. 7 , which will not be described in detail here.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
此外,本申请提供了一种计算机程序产品,该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例该的流程或功能。例如,实现如前述图3、图5或图7中的控制设备相关的方法。又例如,实现如前述图3、图5或图7中的网络设备(例如,第一网络设备)相关的方法。该计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如,同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如,红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In addition, the present application provides a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. For example, the method related to the control device in Figure 3, Figure 5 or Figure 7 is implemented. For another example, the method related to the network device (for example, the first network device) in Figure 3, Figure 5 or Figure 7 is implemented. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (for example, coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
此外,本申请还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序被处理器执行以实现如前述图3、图5或图7中的控制设备相关的方法。In addition, the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement a method related to the control device as shown in Figure 3, Figure 5 or Figure 7 above.
此外,本申请还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序被处理器执行以实现如前述图3、图5或图7中的网络设备(例如,第一网络设备)相关的方法。In addition, the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement a method related to the network device (e.g., the first network device) as described above in Figures 3, 5 or 7.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310358523.2A CN118713992A (en) | 2023-03-27 | 2023-03-27 | Zero configuration deployment method, control device and network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310358523.2A CN118713992A (en) | 2023-03-27 | 2023-03-27 | Zero configuration deployment method, control device and network device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118713992A true CN118713992A (en) | 2024-09-27 |
Family
ID=92813978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310358523.2A Pending CN118713992A (en) | 2023-03-27 | 2023-03-27 | Zero configuration deployment method, control device and network device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118713992A (en) |
-
2023
- 2023-03-27 CN CN202310358523.2A patent/CN118713992A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11563602B2 (en) | Method and apparatus for providing a point-to-point connection over a network | |
EP2947907B1 (en) | Startup configuration method in base station, base station and server | |
US7380025B1 (en) | Method and apparatus providing role-based configuration of a port of a network element | |
CN107733670B (en) | A forwarding strategy configuration method and device | |
US9485147B2 (en) | Method and device thereof for automatically finding and configuring virtual network | |
US9344333B2 (en) | Automating network build-out in self building networks | |
CN102263704B (en) | Topology construction method and device supporting layer 2 interconnection of data centers | |
US11863438B2 (en) | Method and apparatus for sending routing information for network nodes | |
CN104753697A (en) | Method, equipment and system for controlling provisioning of network equipment | |
EP2584742B1 (en) | Method and switch for sending packet | |
CN114760165B (en) | Message transmission method, device and system | |
US20180167282A1 (en) | Address Assignment by Port Enumeration in a Software-Defined Network | |
CN101242370B (en) | Method for realizing Ethernet and frame-relay Internet and protocol conversion device | |
US11929851B2 (en) | Gateway selection method, device, and system | |
CN107786441B (en) | Communication method, OpenFlow switch and communication system | |
JP2021191004A (en) | Methods and systems for determining network slice topologies and devices | |
CN118713992A (en) | Zero configuration deployment method, control device and network device | |
US11902166B2 (en) | Policy based routing in extranet networks | |
US11277307B2 (en) | Configuring managed devices when a network management system (NMS) is not reachable | |
CN112203302A (en) | Access device configuration method and network management system | |
CN106804054B (en) | Method and device for sharing transmission resources by access network of virtualized base station | |
WO2023083103A1 (en) | Data processing method and related apparatus | |
US11729280B2 (en) | Zero day zero touch providing of services with policy control | |
WO2025051027A1 (en) | Traffic policy determination method, electronic device, and storage medium | |
CN118802509A (en) | Device online method, device and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |