CN111769960B - Configuration method and device - Google Patents
Configuration method and device Download PDFInfo
- Publication number
- CN111769960B CN111769960B CN201910253812.XA CN201910253812A CN111769960B CN 111769960 B CN111769960 B CN 111769960B CN 201910253812 A CN201910253812 A CN 201910253812A CN 111769960 B CN111769960 B CN 111769960B
- Authority
- CN
- China
- Prior art keywords
- management information
- layer
- network
- information
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
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/0803—Configuration setting
-
- 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/0886—Fully automatic configuration
-
- 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/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请提供一种配置方法及装置,涉及通信技术领域,能够实现三层及三层以上网络设备的自动配置,减少人工部署的步骤。该方法包括:第一设备接收第二设备发送的第一配置请求消息;第一设备确定第二设备所在层级,并根据第二设备所在层级生成第一配置信息,第一配置信息包括第一管理信息和第二管理信息,第一管理信息用于配置该第二设备,第二管理信息为第二设备所在层级以下的各个层的管理信息,其中,第二管理信息用于第二设备为第二设备的下一层网络设备中被第二设备管理的网络设备分配管理信息;第一设备向第二设备发送第一配置信息。
The present application provides a configuration method and device, which relate to the field of communication technologies, and can realize automatic configuration of network equipment of three layers and above, and reduce the steps of manual deployment. The method includes: the first device receives a first configuration request message sent by the second device; the first device determines the level where the second device is located, and generates first configuration information according to the level where the second device is located, where the first configuration information includes the first management information and second management information, the first management information is used to configure the second device, the second management information is the management information of each layer below the level where the second device is located, wherein the second management information is used for the second device to be the first The network device managed by the second device among the network devices at the next layer of the second device allocates management information; the first device sends the first configuration information to the second device.
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种配置方法及装置。The present application relates to the field of communication technologies, and in particular, to a configuration method and apparatus.
背景技术Background technique
随着软件定义网络(software defined networking,SDN)技术的发展,网络设备将会被分层部署,且部署层级往往为两层以上。在多层网络设备的网络架构中,每拓展一个网络设备,就需要为该网络设备配置地址,用户名密码等配置信息才能进行管理。With the development of software defined networking (SDN) technology, network devices will be deployed in layers, and the deployment layer is often more than two layers. In the network architecture of multi-layer network devices, each time a network device is expanded, it is necessary to configure the address, user name and password and other configuration information for the network device to manage.
目前,网络设备的配置都是基于双层网络设备实现的。即需要通过人工预先在上一层网络设备中配置好下一层网络设备所需的配置信息,然后在完成下一层网络设备的部署后,由下一层网络设备向上一层网络设备申请配置信息,进而完成下一层网络设备的配置。在这一过程中,当网络设备的部署超过两层时,每增加部署一层,就需要通过人工在新增的这一层的上一层网络设备中配置相关的配置信息。因此,目前网络设备的配置方案,针对三层及三层以上网络设备的网络架构,人工步骤繁杂,无法实现自动配置。Currently, the configuration of network devices is implemented based on two-layer network devices. That is, it is necessary to manually configure the configuration information required by the network device of the next layer in the network device of the upper layer in advance. information, and then complete the configuration of the next layer of network equipment. In this process, when more than two layers of network devices are deployed, each additional layer is deployed, and related configuration information needs to be manually configured in the network device on the upper layer of the newly added layer. Therefore, the current configuration scheme of network devices, aiming at the network architecture of the three-layer and above network devices, has complicated manual steps and cannot realize automatic configuration.
发明内容SUMMARY OF THE INVENTION
本申请提供的一种配置方法及装置,能够实现三层及三层以上网络设备的自动配置,减少人工部署的步骤,提高网络部署自动配置的效率。The configuration method and device provided by the present application can realize the automatic configuration of three-layer and above network equipment, reduce the steps of manual deployment, and improve the efficiency of automatic configuration of network deployment.
第一方面,本申请提供一种配置方法,该方法包括:第一设备接收第二设备发送的第一配置请求消息,第一设备和第二设备均为N层网络设备中的网络设备,且第一设备为第二设备的上一层网络设备中管理第二设备的网络设备,N为大于1的整数;第一设备确定第二设备所在层级;第一设备根据第二设备所在层级生成第一配置信息,第一配置信息包括第一管理信息和第二管理信息,第一管理信息用于配置该第二设备,第二管理信息为第二设备所在层级以下的各个层的管理信息,其中,第二管理信息用于第二设备为第二设备的下一层网络设备中被第二设备管理的网络设备分配管理信息;第一设备向第二设备发送第一配置信息。In a first aspect, the present application provides a configuration method, the method comprising: a first device receiving a first configuration request message sent by a second device, the first device and the second device are both network devices in an N-layer network device, and The first device is the network device that manages the second device among the network devices on the upper layer of the second device, and N is an integer greater than 1; the first device determines the level of the second device; the first device generates the first device according to the level of the second device. Configuration information, the first configuration information includes first management information and second management information, the first management information is used to configure the second device, and the second management information is the management information of each layer below the layer where the second device is located, wherein , the second management information is used by the second device to allocate management information to the network devices managed by the second device among the network devices at the next layer of the second device; the first device sends the first configuration information to the second device.
采用本申请提供的配置方法,第一设备在向下一层网络设备中的第二设备分配管理信息时,会同时下发第二设备所在层级以下的各个层的管理信息,以便于第二设备后续为第二设备的下一层网络设备中被第二设备管理的网络设备分配管理信息,也使得第二设备所在层级以下的各个层的网络设备可以基于该第二设备所在层级以下的各个层的管理信息实现自动配置,减少人工部署的步骤,提高网络部署自动配置的效率。With the configuration method provided in this application, when the first device allocates management information to the second device in the next-layer network device, it will simultaneously deliver the management information of each layer below the layer where the second device is located, so as to facilitate the second device Subsequently, management information is allocated to the network devices managed by the second device among the network devices of the next layer of the second device, so that the network devices of each layer below the layer where the second device is located can be based on the layers below the layer where the second device is located. The management information is automatically configured, reducing the steps of manual deployment and improving the efficiency of automatic configuration of network deployment.
可选的,第一设备为该N层网络设备中的顶层网络设备,第一设备中预配置有该N层网络设备的管理信息,第一设备根据第二设备所在层级生成第一配置信息,包括:第一设备根据该N层网络设备的管理信息中第二设备所在层级的管理信息,为第二设备分配第一管理信息;第一设备根据第二设备所在层级确定该N层网络设备的管理信息中的第二管理信息;第一设备根据第一管理信息和第二管理信息生成第一配置信息。Optionally, the first device is a top-level network device in the N-layer network device, the first device is pre-configured with management information of the N-layer network device, and the first device generates the first configuration information according to the level where the second device is located, Including: the first device allocates first management information to the second device according to the management information of the level of the second device in the management information of the N-layer network device; the first device determines the level of the N-layer network device according to the level of the second device. The second management information in the management information; the first device generates the first configuration information according to the first management information and the second management information.
基于该可选方式,通过在顶层网络设备中预配置N层网络设备的管理信息,使得N层网络设备可以基于该N层网络设备的管理信息自动完成配置,减少人工部署的步骤,提高网络部署自动配置的效率。Based on this optional method, by pre-configuring the management information of the N-layer network device in the top-level network device, the N-layer network device can automatically complete the configuration based on the management information of the N-layer network device, reducing manual deployment steps and improving network deployment. Efficiency of automatic configuration.
可选的,第一设备为该N层网络设备中的中间层网络设备,第一设备接收第二设备发送的配置请求消息之前,该方法还包括:第一设备向第三设备发送第二配置请求消息,第三设备为该N层网络设备中的网络设备,且第三设备为第一设备的上一层网络设备中管理第一设备的网络设备;第一设备接收第三设备发送的第二配置信息,该第二配置信息中包括第三管理信息和第四管理信息,第三管理信息用于配置该第一设备,第四管理信息为第一设备所在层级以下的各个层的管理信息,第四管理信息用于第一设备为第一设备的下一层网络设备中被第一设备管理的网络设备分配管理信息。Optionally, the first device is an intermediate layer network device in the N-layer network device, and before the first device receives the configuration request message sent by the second device, the method further includes: the first device sends the second configuration to the third device. request message, the third device is a network device in the N-layer network device, and the third device is a network device that manages the first device in the network device on the upper layer of the first device; the first device receives the first device sent by the third device. Second configuration information, the second configuration information includes third management information and fourth management information, the third management information is used to configure the first device, and the fourth management information is the management information of each layer below the layer where the first device is located , and the fourth management information is used by the first device to allocate management information to the network devices managed by the first device among the network devices of the next layer of the first device.
可选的,第一设备根据第二设备所在层级生成第一配置信息,包括:第一设备根据第二设备所在层级和第四管理信息确定第一管理信息和第二管理信息;第一设备根据第一管理信息和第二管理信息生成该第一配置信息。Optionally, the first device generates the first configuration information according to the level where the second device is located, including: the first device determines the first management information and the second management information according to the level where the second device is located and the fourth management information; The first management information and the second management information generate the first configuration information.
基于上述两种可选的方式,当第一设备为N层网络设备的中间层网络设备时,第一设备能够在申请自己的管理信息的同时,会获得第一设备所在层级以下的各个层的管理信息,即第四管理信息。第一设备通过将第四管理信息预配置在第一设备中,以使得第二设备在申请配置时,能够直接根据预配置的第四管理信息为第二设备分配管理信息,而无需人工配置,从而减少了人工部署的步骤,提供网络部署自动配置的效率。Based on the above two optional methods, when the first device is a middle-layer network device of an N-layer network device, the first device can obtain the information of each layer below the layer where the first device is located while applying for its own management information. The management information is the fourth management information. The first device preconfigures the fourth management information in the first device, so that when the second device applies for configuration, it can directly allocate management information to the second device according to the preconfigured fourth management information without manual configuration, Thus, the steps of manual deployment are reduced, and the efficiency of automatic configuration of network deployment is provided.
可选的,该方法还包括:第一设备接收第四设备发送的第三配置请求消息,第四设备为该N层网络设备中的网络设备,且第一设备为第四设备的上一层网络设备中管理第二设备的网络设备;第一设备确定第四设备所在层级;当预配置的第四设备所在层级的管理信息均被使用时,第一设备向第三设备发送第四配置请求消息,第四配置请求消息中携带第一指示信息,第一指示信息用于指示第四设备所在层级需要增加的管理信息;第一设备接收第三设备发送的第三配置信息,第三配置信息中携带该增加的管理信息;第一设备从该增加的管理信息中为第四设备分配第五管理信息,第五管理信息用于配置第四设备;第一设备向第四设备发送该第五管理信息。Optionally, the method further includes: the first device receives a third configuration request message sent by a fourth device, where the fourth device is a network device in the N-layer network device, and the first device is a layer above the fourth device The network device that manages the second device in the network device; the first device determines the level where the fourth device is located; when the pre-configured management information of the level where the fourth device is located is used, the first device sends a fourth configuration request to the third device message, the fourth configuration request message carries the first indication information, and the first indication information is used to indicate the management information that needs to be added at the level where the fourth device is located; the first device receives the third configuration information sent by the third device, and the third configuration information The added management information is carried in the device; the first device allocates fifth management information to the fourth device from the added management information, and the fifth management information is used to configure the fourth device; the first device sends the fifth management information to the fourth device management information.
基于该可选方式,在扩展N层网络设备时,通过在顶层网络设备中预设置N层网络设备的扩展管理信息,即可实现对扩展的网络设备的自动配置,而无需每扩展一个网络设备就进行一次手动配置,减少人工部署的步骤,提高网络部署自动配置的效率。Based on this optional method, when expanding the N-layer network device, by presetting the extended management information of the N-layer network device in the top-level network device, the automatic configuration of the expanded network device can be realized, without needing to expand each network device. Only one manual configuration is performed, which reduces the steps of manual deployment and improves the efficiency of automatic configuration of network deployment.
可选的,第一设备确定第二设备所在层级,包括:第一设备根据第一配置请求消息中携带的第二设备所在层级的第二指示信息,确定第二设备所在层级。Optionally, determining the level of the second device by the first device includes: the first device determining the level of the second device according to the second indication information of the level of the second device carried in the first configuration request message.
可选的,第一设备确定第二设备所在层级,包括:第一设备确定第二设备为第一设备的下一层网络设备。Optionally, the first device determining the layer where the second device is located includes: the first device determining that the second device is a network device at a lower layer of the first device.
第二方面,本申请实施例提供了一种装置,该装置可以是网络设备或者网络设备内的芯片。该装置可以用作属于N层网络设备的第一设备,具有实现上述第一方面的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。该装置包括处理单元、接收单元和发送单元,可选的,该装置还可以包括存储单元。该处理单元可以通过该接收单元完成信息的接收,通过发送单元完成信息的发送,该处理单元可以对信息进行处理,使得该装置实现上述第一方面所述的方法。In a second aspect, an embodiment of the present application provides an apparatus, where the apparatus may be a network device or a chip in the network device. The apparatus can be used as a first device belonging to an N-layer network device, and has the function of implementing the method of the first aspect above. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. The apparatus includes a processing unit, a receiving unit and a sending unit, and optionally, the apparatus may further include a storage unit. The processing unit can complete the reception of information through the receiving unit, and complete the transmission of information through the transmitting unit, and the processing unit can process the information, so that the apparatus implements the method described in the first aspect.
其中,接收单元,用于接收第二设备发送的第一配置请求消息,第二设备属于该N层网络设备,且第一设备为第二设备的上一层网络设备中管理第二设备的网络设备,N为大于1的整数;该处理单元,用于确定第二设备所在层级;该处理单元,还用于根据第二设备所在层级生成第一配置信息,第一配置信息包括第一管理信息和第二管理信息,第一管理信息用于配置第二设备,第二管理信息为第二设备所在层级以下的各个层的管理信息,其中,第二管理信息用于第二设备为第二设备的下一层网络设备中被第二设备管理的网络设备分配管理信息;该发送单元,用于向第二设备发送第一配置信息。The receiving unit is configured to receive the first configuration request message sent by the second device, the second device belongs to the N-layer network device, and the first device is the network that manages the second device in the network device at the upper layer of the second device device, where N is an integer greater than 1; the processing unit is used to determine the level where the second device is located; the processing unit is also used to generate first configuration information according to the level where the second device is located, where the first configuration information includes the first management information and second management information, the first management information is used to configure the second device, the second management information is the management information of each layer below the level where the second device is located, wherein the second management information is used for the second device to be the second device The network device managed by the second device in the next-layer network device allocates management information; the sending unit is configured to send the first configuration information to the second device.
可选的,第一设备为N层网络设备中的顶层网络设备,第一设备中预配置有N层网络设备的管理信息,该处理单元根据第二设备所在层级生成第一配置信息,包括:根据该N层网络设备的管理信息中第二设备所在层级的管理信息,为第二设备分配第一管理信息;根据第二设备所在层级确定该N层网络设备的管理信息中的第二管理信息;根据第一管理信息和第二管理信息生成第一配置信息。Optionally, the first device is a top-level network device in an N-layer network device, the first device is pre-configured with management information of the N-layer network device, and the processing unit generates the first configuration information according to the level where the second device is located, including: According to the management information of the layer where the second device is located in the management information of the N-layer network device, assign the first management information to the second device; determine the second management information in the management information of the N-layer network device according to the layer where the second device is located ; Generate first configuration information according to the first management information and the second management information.
可选的,第一设备为该N层网络设备中的中间层网络设备,该发送单元,还用于在接收单元接收第二设备发送的配置请求消息之前,向第三设备发送第二配置请求消息,第三设备属于N层网络设备,且第三设备为第一设备的上一层网络设备中管理第一设备的网络设备;该接收单元,还用于接收第三设备发送的第二配置信息,第二配置信息中包括第三管理信息和第四管理信息,第三管理信息用于配置第一设备,第四管理信息为第一设备所在层级以下的各个层的管理信息,第四管理信息用于该处理单元为第一设备的下一层网络设备中被第一设备管理的网络设备分配管理信息。Optionally, the first device is an intermediate layer network device in the N-layer network device, and the sending unit is further configured to send a second configuration request to the third device before the receiving unit receives the configuration request message sent by the second device message, the third device belongs to the N-layer network device, and the third device is the network device that manages the first device among the network devices at the upper layer of the first device; the receiving unit is further configured to receive the second configuration sent by the third device. information, the second configuration information includes third management information and fourth management information, the third management information is used to configure the first device, the fourth management information is the management information of each layer below the layer where the first device is located, and the fourth management information The information is used by the processing unit to allocate management information to the network devices managed by the first device among the network devices of the next layer of the first device.
可选的,处理单元根据第二设备所在层级生成第一配置信息,包括:根据第二设备所在层级和第四管理信息确定第一管理信息和第二管理信息;根据第一管理信息和第二管理信息生成第一配置信息。Optionally, the processing unit generates the first configuration information according to the level where the second device is located, including: determining the first management information and the second management information according to the level where the second device is located and the fourth management information; The management information generates first configuration information.
可选的,接收单元,还用于接收第四设备发送的第三配置请求消息,第四设备属于该N层网络设备,且第一设备为第四设备的上一层网络设备中管理第二设备的网络设备;处理单元,还用于确定第四设备所在层级;发送单元,还用于当预配置的第四设备所在层级的管理信息均被使用时,向第三设备发送第四配置请求消息,第四配置请求消息中携带指第一示信息,第一指示信息用于指示第四设备所在层级需要增加的管理信息;接收单元,还用于接收第三设备发送的第三配置信息,第三配置信息中携带增加的管理信息;处理单元,还用于从增加的管理信息中为第四设备分配第五管理信息,第五管理信息用于配置第四设备;发送单元,还用于向第四设备发送第五管理信息。Optionally, the receiving unit is further configured to receive a third configuration request message sent by a fourth device, where the fourth device belongs to the N-layer network device, and the first device is an upper-layer network device that manages the second device. The network device of the device; the processing unit is further configured to determine the level where the fourth device is located; the sending unit is further configured to send a fourth configuration request to the third device when the pre-configured management information of the level where the fourth device is located is used message, the fourth configuration request message carries the first indication information, and the first indication information is used to indicate the management information that needs to be added at the level where the fourth device is located; the receiving unit is further configured to receive the third configuration information sent by the third device, The third configuration information carries the added management information; the processing unit is further configured to allocate fifth management information to the fourth device from the added management information, and the fifth management information is used to configure the fourth device; the sending unit is further configured to The fifth management information is sent to the fourth device.
可选的,处理单元确定第二设备所在层级,包括:根据第一配置请求消息中携带的第二设备所在层级的第二指示信息,确定第二设备所在层级。Optionally, the processing unit determining the level where the second device is located includes: determining the level where the second device is located according to the second indication information of the level where the second device is located carried in the first configuration request message.
可选的,处理单元确定第二设备所在层级,包括:确定第二设备为第一设备的下一层网络设备。Optionally, the processing unit determining the layer at which the second device is located includes: determining that the second device is a network device at the next layer of the first device.
作为一种可选的设计,当该装置为网络设备时,该处理单元例如可以是处理器,该接收单元和发送单元可以包括收发器和通信接口。可选地,该网络设备还包括存储单元,该存储单元例如可以是存储器。当该网络设备包括存储单元时,该存储单元用于存储计算机执行指令,该处理单元与该存储单元连接,该处理单元执行该存储单元存储的计算机执行指令,以使该网络设备用作第一设备执行上述第一方面的方法。As an optional design, when the apparatus is a network device, the processing unit may be, for example, a processor, and the receiving unit and the transmitting unit may include a transceiver and a communication interface. Optionally, the network device further includes a storage unit, and the storage unit may be, for example, a memory. When the network device includes a storage unit, the storage unit is used to store computer-executed instructions, the processing unit is connected to the storage unit, and the processing unit executes the computer-executed instructions stored in the storage unit, so that the network device functions as a first The device performs the method of the first aspect above.
在另一种可能的设计中,当该装置为网络设备内的芯片时,该处理单元例如可以是处理器,该接收单元和发送单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行存储单元存储的计算机执行指令,以使该网络设备内芯片的执行上述第一方面的方法。可选地,该存储单元为该芯片内的存储单元,如寄存器、缓存等,该存储单元还可以是该网络设备内的位于该芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。In another possible design, when the device is a chip in a network device, the processing unit may be, for example, a processor, and the receiving unit and the transmitting unit may be, for example, input/output interfaces, pins, or circuits. The processing unit can execute the computer-executed instructions stored in the storage unit, so that the chip in the network device executes the method of the first aspect. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit can also be a storage unit located outside the chip in the network device, such as a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), and the like.
本申请提供的装置的技术效果可以参见上述第一方面或第一方面的各个实现方式的技术效果,此处不再赘述。For the technical effect of the device provided by the present application, reference may be made to the above-mentioned first aspect or the technical effect of each implementation manner of the first aspect, which will not be repeated here.
其中,上述任一处提到的处理器,可以是一个通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制上述第二方面的方法的程序执行的集成电路。Wherein, the processor mentioned in any of the above may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more of the above An integrated circuit executing the program of the method of the second aspect.
第三方面,本申请实施例提供了一种计算机存储介质,存储有用于实现上述第一方面方法的程序。当所述程序在装置中运行时,使得该装置执行上述第一方面的方法。In a third aspect, an embodiment of the present application provides a computer storage medium storing a program for implementing the method of the first aspect. When the program is executed in the apparatus, the apparatus is caused to perform the method of the above-mentioned first aspect.
第四方面,本申请实施例提供了一种计算机程序产品,该程序产品包括程序,当该程序被运行时,使得上述第一方面的方法被执行。In a fourth aspect, an embodiment of the present application provides a computer program product, where the program product includes a program, when the program is executed, the method of the first aspect above is executed.
附图说明Description of drawings
图1为本申请提供的一种3层网络设备的网络架构示意图;1 is a schematic diagram of a network architecture of a layer 3 network device provided by the present application;
图2为本申请提供的一种网络设备的结构示意图;2 is a schematic structural diagram of a network device provided by the present application;
图3为本申请提供的一种配置方法的实施例的流程图一;FIG. 3 is a flowchart 1 of an embodiment of a configuration method provided by the present application;
图4为本申请提供的一种配置方法的实施例的流程图二;FIG. 4 is a second flowchart of an embodiment of a configuration method provided by the present application;
图5为本申请提供的一种N层网络设备的局部结构示意图;FIG. 5 is a schematic partial structure diagram of an N-layer network device provided by the present application;
图6为本申请提供的一种配置方法的实施例的流程图三;FIG. 6 is a third flowchart of an embodiment of a configuration method provided by the present application;
图7为本申请提供的一种配置方法的实施例的流程图四;FIG. 7 is a fourth flowchart of an embodiment of a configuration method provided by the present application;
图8为本申请提供的一种装置的结构示意图。FIG. 8 is a schematic structural diagram of a device provided by the present application.
具体实施方式Detailed ways
本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请的描述中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的热河实施例或设计方案不应被解释为比其他实施或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the description of this application, the words "exemplary" or "such as" are used to mean serving as an example, illustration, or illustration. Jehol embodiments or designs described in the embodiments of the present application as "exemplary" or "for example" should not be construed as preferred or advantageous over other implementations or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
除非另有说明,本文中“/”一般表示前后关联对象是一种“或”的关系,例如,A/B可以表示A或B。术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请的描述中,“多个”是指两个或两个以上。Unless otherwise specified, "/" herein generally means that the contextual object is an "or" relationship, for example, A/B can mean A or B. The term "and/or" is only an association relationship to describe related objects, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist simultaneously, and B exists alone. a situation. In addition, in the description of the present application, "plurality" means two or more.
本申请提供的配置方法适用于采用N(N为大于1的整数)层网络设备的网络架构,即网络设备分层部署,相邻的上下两层的网络设备中,上一层网络设备中包括下一层网络设备的管理设备。示例性的,以数据中心机房云化项目(cloud central office,CloudCO)标准,或者数据中心重构项目(central office re-architected as a datacenter,CORD)架构中的3层网络设备的网络架构为例。第1层网络设备包括SDN控制器(controller),第2层网络设备包括宽带接入抽象层(broadband access abstraction,BAA)和/或虚拟光线路中断硬件抽象层(virtual optical line termination hardware abstraction,vOLTHA)。第3层网络设备包括虚拟网络功能(virtual network function,VNF)和/或物理网络功能(physical network function,PNF)。示例性的,如图2所示,第一层网络设备包括SDN控制器,第二层网络设备包括BAA1,BAA2以及vOLTHA1,SDN控制器为BAA1,BAA2以及vOLTHA1的管理设备。第三层包括PNF1、PNF2、PNF3、VNF4、VNF5、PNF6、VNF7、PNF8、VNF9。其中,BAA1时PNF1、PNF2和VNF4的管理设备,BBA2是PNF3、VNF5、VNF7和PNF8的管理设备,vOLTHA1是PNF6和VNF9的管理设备。The configuration method provided by the present application is suitable for a network architecture using N (N is an integer greater than 1) layer of network devices, that is, network devices are deployed in layers. The management device of the next layer of network devices. Illustratively, take the network architecture of the 3-layer network device in the cloud central office (CloudCO) standard of the data center or the central office re-architected as a datacenter (CORD) architecture as an example. . Layer 1 network devices include SDN controllers, and layer 2 network devices include broadband access abstraction (BAA) and/or virtual optical line termination hardware abstraction (vOLTHA) ). Layer 3 network devices include virtual network functions (VNFs) and/or physical network functions (PNFs). Exemplarily, as shown in FIG. 2 , the first layer network device includes an SDN controller, the second layer network device includes BAA1, BAA2 and vOLTHA1, and the SDN controller is a management device of BAA1, BAA2 and vOLTHA1. The third layer includes PNF1, PNF2, PNF3, VNF4, VNF5, PNF6, VNF7, PNF8, VNF9. Among them, BAA1 is the management device of PNF1, PNF2 and VNF4, BBA2 is the management device of PNF3, VNF5, VNF7 and PNF8, and vOLTHA1 is the management device of PNF6 and VNF9.
需要说明的是,在本申请中,N层网络设备中的第一层网络设备可以称为顶层设备,例如,图1中的SDN控制器为顶层网络设备。第N层网络设备可以称为底层网络设备,例如,图1中的PNF1为底层网络设备。当N大于2时,第2至N-1层网络设备可以称为中间层网络设备,例如图1中的BAA1,BAA2以及vOLTHA1为中间层网络设备。It should be noted that, in this application, the first-layer network device in the N-layer network device may be referred to as a top-level device, for example, the SDN controller in FIG. 1 is a top-level network device. The Nth layer network device may be referred to as a bottom layer network device, for example, PNF1 in FIG. 1 is a bottom layer network device. When N is greater than 2, the layer 2 to N-1 network devices may be referred to as middle layer network devices, for example, BAA1, BAA2 and vOLTHA1 in FIG. 1 are middle layer network devices.
在本申请中,N层网络设备的网络架构可以是支持第三代(3rd-Generation,3G)移动通信技术的通信系统,或者支持第四代(fourth generation,4G)接入技术的通信系统,例如长期演进(long term evolution,LTE)接入技术;或者支持第五代(fifthgeneration,5G)接入技术通信系统,例如新无线(new radio,NR)接入技术;还可以是支持多种无线技术的通信系统,例如面向未来的通信技术。In this application, the network architecture of the N-layer network device may be a communication system supporting the third generation (3rd-Generation, 3G) mobile communication technology, or a communication system supporting the fourth generation (4th generation, 4G) access technology, For example, long term evolution (LTE) access technology; or a communication system that supports fifth generation (5G) access technology, such as new radio (NR) access technology; it can also support multiple wireless technical communication systems, such as future-oriented communication technologies.
参见图2,本申请中涉及的网络设备可以包括至少一个处理器201、至少一个存储器202、至少一个通信接口203。处理器201、存储器202和通信接口203相连,例如通过总线相连。本申请实施例中的处理器201,可以包括如下至少一种类型:通用中央处理器(centralprocessing unit,CPU)、数字信号处理器(digital signal processor,DSP)、微处理器、特定应用集成电路专用集成电路(application-specific integrated circuit,ASIC)、微控制器(microcontroller unit,MCU)、现场可编程门阵列(field programmable gatearray,FPGA)、或者用于实现逻辑运算的集成电路。例如,处理器201可以是一个单核(single-CPU)处理器或多核(multi-CPU)处理器。至少一个处理器201可以是集成在一个芯片中或位于多个不同的芯片上。Referring to FIG. 2 , the network device involved in this application may include at least one processor 201 , at least one memory 202 , and at least one communication interface 203 . The processor 201, the memory 202 and the communication interface 203 are connected, for example, through a bus. The processor 201 in this embodiment of the present application may include at least one of the following types: a general-purpose central processing unit (CPU), a digital signal processor (DSP), a microprocessor, and a dedicated application-specific integrated circuit. An integrated circuit (application-specific integrated circuit, ASIC), a microcontroller (microcontroller unit, MCU), a field programmable gate array (field programmable gate array, FPGA), or an integrated circuit for implementing logic operations. For example, the processor 201 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. At least one processor 201 may be integrated in one chip or located on multiple different chips.
本申请实施例中的存储器202,可以包括如下至少一种类型:只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmabler-only memory,EEPROM)。在某些场景下,存储器还可以是只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 202 in this embodiment of the present application may include at least one of the following types: read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory) memory, RAM) or other types of dynamic storage devices that can store information and instructions, and can also be electrically erasable programmable read-only memory (electrically erasable programmabler-only memory, EEPROM). In some scenarios, the memory may also be compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.) , a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, without limitation.
存储器202可以是独立存在,与处理器201相连。可选的,存储器202也可以和处理器201集成在一起,例如集成在一个芯片之内。其中,存储器202能够存储执行本申请实施例的技术方案的程序,并由处理器201来控制执行,被执行的各类计算机程序代码也可被视为是处理器201的驱动程序。例如,处理器201用于执行存储器202中存储的计算机程序代码,从而实现本申请实施例中的技术方案。The memory 202 may exist independently and be connected to the processor 201 . Optionally, the memory 202 can also be integrated with the processor 201, for example, in one chip. The memory 202 can store programs for executing the technical solutions of the embodiments of the present application, and is controlled and executed by the processor 201 . For example, the processor 201 is configured to execute the computer program codes stored in the memory 202, thereby implementing the technical solutions in the embodiments of the present application.
如图3所示,为本申请提供的一种配置方法的实施例的流程图,该方法包括:As shown in FIG. 3, it is a flowchart of an embodiment of a configuration method provided by the present application, and the method includes:
步骤301,第一设备接收第二设备发送的第一配置请求消息。Step 301: The first device receives a first configuration request message sent by the second device.
其中,第一设备和第二设备均为N层网络设备中的网络设备,且第一设备为第二设备的上一层网络设备中管理第二设备的网络设备。第一设备可以是N层网络设备中的顶层网络设备,第二设备可以是第2层中的一个网络设备。例如,第一设备为图1中的SDN控制器,第二设备为图1中的BAA1。或者,第一设备也可以是中间层网络设备,而第二设备为第一设备的下一层网络设备中,被第一设备管理的网络设备。例如,第一设备为图1中的BAA1,第二设备为图1中的PNF1。The first device and the second device are both network devices in an N-layer network device, and the first device is a network device that manages the second device in a network device at an upper layer of the second device. The first device may be a top-level network device in an N-tier network device, and the second device may be a layer-2 network device. For example, the first device is the SDN controller in FIG. 1 , and the second device is the BAA1 in FIG. 1 . Alternatively, the first device may also be a middle-layer network device, and the second device is a network device managed by the first device among the next-layer network devices of the first device. For example, the first device is BAA1 in FIG. 1 , and the second device is PNF1 in FIG. 1 .
步骤302,第一设备确定第二设备所在层级。Step 302, the first device determines the level where the second device is located.
在一种可能的实现方式中,第二设备可以在第一配置请求消息中携带第二设备所在层级的第二指示信息,从而使得第一设备可以根据该第二指示信息确定第二设备所在层级。In a possible implementation manner, the second device may carry the second indication information of the level where the second device is located in the first configuration request message, so that the first device may determine the level where the second device is located according to the second indication information .
或者,在另一种可能的实现方式中,可以设置N层网络设备中的任一个网络设备接收到的配置请求消息,均为该网络设备的下一层网络设备发送的。因此,第一设备在接收到第二设备发送的第一配置请求消息后,即可确定第二设备是第一设备的下一层网络设备,从而基于第一设备所在层级,确定第二设备所在层级。Or, in another possible implementation manner, the configuration request message received by any one of the N-layer network devices may be set to be sent by the next-layer network device of the network device. Therefore, after receiving the first configuration request message sent by the second device, the first device can determine that the second device is the next-layer network device of the first device, so as to determine the location of the second device based on the level of the first device. level.
步骤303,第一设备根据第二设备所在层级生成第一配置信息,第一配置信息包括第一管理信息和第二管理信息,第一管理信息用于配置第一设备,第二管理信息为第二设备所在层级以下的各个层的管理信息,其中,第二管理信息用于第二设备为第二设备的下一层网络设备中被第二设备管理的网络设备分配管理信息。Step 303, the first device generates first configuration information according to the level where the second device is located, the first configuration information includes first management information and second management information, the first management information is used to configure the first device, and the second management information is the first management information. Management information of each layer below the level where the second device is located, wherein the second management information is used by the second device to allocate management information to the network devices managed by the second device among the network devices of the next layer of the second device.
在本申请中,第一设备中预先配置有第二设备所在层级以及第二设备所在层级以下的各个层的管理信息。第一设备可以从第二设备所在层级的管理信息中为第二设备分配第一管理信息,并确定第二设备所在层级以下的所有层的管理信息为第二管理信息。In the present application, the first device is pre-configured with management information of the level where the second device is located and the management information of each level below the level where the second device is located. The first device may allocate the first management information to the second device from the management information of the layer where the second device is located, and determine the management information of all layers below the layer where the second device is located as the second management information.
步骤304,第一设备向第二设备发送第一配置信息。Step 304, the first device sends the first configuration information to the second device.
第二设备接收到第一配置信息后,即可根据第一配置信息中的第一管理信息完成第一设备的配置,并将第二管理信息预配置在第一设备中,以便于后续为第二设备的下一层网络设备中被第二设备管理的网络设备分配管理信息。After the second device receives the first configuration information, it can complete the configuration of the first device according to the first management information in the first configuration information, and preconfigure the second management information in the first device, so as to facilitate the subsequent configuration of the first device. The network device managed by the second device among the network devices at the next layer of the second device allocates management information.
在本申请中,N层网络设备中的顶层网络设备中,配置有N层网络设备的管理信息。该N层网络设备的管理信息包括顶层网络设备自己的管理信息(即第1层的管理信息)和剩余各层(即第2层,第3层,……,第N层)的管理信息。In this application, the top-level network device in the N-layer network device is configured with management information of the N-layer network device. The management information of the N-layer network device includes the management information of the top-level network device (ie, the management information of the first layer) and the management information of the remaining layers (ie, the second layer, the third layer, ..., the Nth layer).
那么,当第一设备为顶层网络设备时,基于图3,如图4所示,上述步骤303,具体可以为:Then, when the first device is a top-level network device, based on FIG. 3 , as shown in FIG. 4 , the above step 303 may specifically be:
步骤303a,第一设备根据该N层网络设备的管理信息中第二设备所在层级的管理信息,为第二设备分配第一管理信息。Step 303a, the first device allocates the first management information to the second device according to the management information of the level where the second device is located in the management information of the N-layer network device.
即第二设备在第2层,那么第一设备可以从预配置在第一设备中的第2层的管理信息中,为第二设备分配用于配置第二设备的管理信息,即第一管理信息。That is, the second device is at layer 2, then the first device can allocate management information for configuring the second device to the second device from the layer 2 management information pre-configured in the first device, that is, the first management information.
步骤303b,第一设备根据第二设备所在层级确定该N层网络设备的管理信息中的第二管理信息。Step 303b, the first device determines the second management information in the management information of the N-layer network device according to the layer where the second device is located.
第一设备根据第二设备所在层级确定第3层,……,第N层的管理信息为第二管理信息。The first device determines, according to the layer where the second device is located, the management information of the third layer, ..., the Nth layer as the second management information.
步骤303c,第一设备根据第一管理信息和第二管理信息生成第一配置信息。Step 303c, the first device generates first configuration information according to the first management information and the second management information.
在一种可能的实现方式中,N层网络设备通过动态主机配置协议(dynamic hostconfiguration protocol,DHCP)实现网络设备的配置。基于该实现方式,上述第一配置请求消息具体可以是DHCP请求(DHCP Request)消息,用于请求管理IP(management IP)、认证信息等管理信息的配置。第一配置信息具体可以为DHCP中的option(选项)信息。In a possible implementation manner, the N-layer network device implements the configuration of the network device through a dynamic host configuration protocol (dynamic host configuration protocol, DHCP). Based on this implementation manner, the above-mentioned first configuration request message may specifically be a DHCP request (DHCP Request) message, which is used to request the configuration of management information such as management IP (management IP) and authentication information. The first configuration information may specifically be option (option) information in DHCP.
下面结合DHCP以及图5所示的N层网络设备的局部架构示意图,对第2层的网络设备向顶层网络设备请求配置的过程,进行示例性的说明书。The following is an exemplary description of the process of the layer 2 network device requesting configuration from the top-level network device with reference to DHCP and the schematic diagram of the local architecture of the N-layer network device shown in FIG. 5 .
如图5所示,第1层的网络设备1是第2层的网络设备2的管理设备,第2层的网络设备2是第3层的网络设备3的管理设备,依次类推,第N-1层的网络设备N-1是第N层的网络设备N的管理设备。网络设备1为顶层网络设备,网络设备2至网络设备N-1为中间层网络设备,网络设备N为底层网络设备。As shown in Figure 5, the network device 1 of the first layer is the management device of the network device 2 of the second layer, the network device 2 of the second layer is the management device of the network device 3 of the third layer, and so on. The network device N-1 of the 1st layer is a management device of the network device N of the Nth layer. Network device 1 is a top-level network device, network device 2 to network device N-1 are middle-layer network devices, and network device N is a bottom-layer network device.
网络设备1中配置有N层网络设备的管理信息,包括网络设备1的管理信息和剩余各层(即第2层,第3层,……,第N层)的管理信息。The network device 1 is configured with management information of the N-layer network device, including the management information of the network device 1 and the management information of the remaining layers (ie, the second layer, the third layer, ..., the Nth layer).
假设,网络设备1中预配置的第2层,第3层,……,第N层的管理信息为:Suppose, the management information of the pre-configured layer 2, layer 3, ..., layer N in the network device 1 is:
Network Layers(网络层数):N-1Network Layers: N-1
Management Info Layer(管理信息层)2:subnet(子网)192.168.0.0netmask(子网掩码)255.255.0.0{range(范围)192.168.2.1 192.168.2.111;}Management Info Layer 2: subnet (subnet) 192.168.0.0 netmask (subnet mask) 255.255.0.0 {range (range) 192.168.2.1 192.168.2.111;}
Management Info Layer 3:subnet 192.168.0.0netmask 255.255.0.0{Management Info Layer 3: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.3.1 192.168.3.111;}range 192.168.3.1 192.168.3.111; }
Management Info Layer 4:subnet 192.168.0.0netmask 255.255.0.0{Management Info Layer 4: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.4.1 192.168.4.111;}range 192.168.4.1 192.168.4.111; }
……
Management Info Layer N:subnet 192.168.0.0netmask 255.255.0.0{Management Info Layer N: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.N.1 192.168.N.111;}range 192.168.N.1 192.168.N.111; }
其中,网络层数表示网络设备1所在层级以下的网络层数,即在第1层以下还有N-1层。The number of network layers represents the number of network layers below the layer where the network device 1 is located, that is, there are N-1 layers below the first layer.
当网络设备2向网络设备1请求配置时,网络设备2向网络设备1发送DHCP请求消息1。网络设备1确定网络设备2为第2层的网络设备,并从预配置第2层的管理信息(即管理信息层2记录的管理信息)中为网络设备2分配管理信息。即网络设备1根据第2层的管理信息允许分配的地址范围(即192.168.2.1至192.168.2.111之间)为网络设备2分配管理IP(Management IP)。假设网络设备1为网络设备2分配的管理IP为192.168.2.2,因此,网络设备1为网络设备2分配的管理信息1为192.168.2.2。When network device 2 requests configuration from network device 1 , network device 2 sends DHCP request message 1 to network device 1 . The network device 1 determines that the network device 2 is a layer 2 network device, and allocates management information to the network device 2 from preconfigured layer 2 management information (ie, management information recorded in the management information layer 2). That is, the network device 1 allocates a management IP (Management IP) to the network device 2 according to the address range allowed by the layer 2 management information (ie, between 192.168.2.1 and 192.168.2.111). It is assumed that the management IP assigned by the network device 1 to the network device 2 is 192.168.2.2. Therefore, the management information 1 assigned by the network device 1 to the network device 2 is 192.168.2.2.
网络设备1确定管理信息层3至管理信息层N记录的管理信息为管理信息2。网络设备1根据管理信息1和管理信息2生成option信息1。The network device 1 determines that the management information recorded in the management information layer 3 to the management information layer N is the management information 2 . The network device 1 generates option information 1 according to the management information 1 and the management information 2 .
在该示例中,网络设备1生成的option信息可以为:In this example, the option information generated by network device 1 may be:
Option:(XX)Management Info(管理信息)Option: (XX) Management Info (management information)
Length(长度):XXXLength: XXX
Management IP:192.168.2.2Management IP: 192.168.2.2
Sub Network Layers(子网络层数):N-2Sub Network Layers: N-2
Sub Management Info Layer(子管理信息层)3:subnet 192.168.0.0netmask255.255.0.0{Sub Management Info Layer 3: subnet 192.168.0.0netmask255.255.0.0{
range 192.168.3.1192.168.3.111;}range 192.168.3.1192.168.3.111; }
Sub Management Info Layer 4:subnet 192.168.0.0netmask 255.255.0.0{Sub Management Info Layer 4: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.4.1192.168.4.111;}range 192.168.4.1192.168.4.111; }
……
Sub Management Info Layer N:subnet 192.168.0.0netmask 255.255.0.0{Sub Management Info Layer N: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.N.1192.168.N.111;}range 192.168.N.1192.168.N.111; }
在option信息1中,通过子网络层数指示网络设备2所在层级以下的网络层数,通过子管理信息层表示该管理信息层为网络设备2所在层级以下的一层的管理信息。In option information 1, the number of network layers below the layer where the network device 2 is located is indicated by the number of sub-network layers, and the management information layer is indicated by the sub-management information layer as management information of a layer below the layer where the network device 2 is located.
网络设备2接收到配置信息1后,即可根据管理信息1对自身进行配置,即将网络设备2的管理IP设置为192.168.1.2。并根据管理信息2获知第3层,……,第N层的管理信息,以便于后续为网络设备2所管理的第3层的网络设备提供配置。After the network device 2 receives the configuration information 1, it can configure itself according to the management information 1, that is, set the management IP of the network device 2 to 192.168.1.2. And according to the management information 2, the management information of the third layer, .
可以理解的是,基于图5所示的示例,当第一设备为网络设备1,第二设备为网络设备2时,步骤301中的第一配置请求消息即为上述DHCP请求消息1,步骤303中的第一配置信息为上述配置信息1,第一管理信息为上述管理信息1以及第二管理信息为上述管理信息2。It can be understood that, based on the example shown in FIG. 5 , when the first device is network device 1 and the second device is network device 2, the first configuration request message in step 301 is the above-mentioned DHCP request message 1, and step 303 The first configuration information in is the above-mentioned configuration information 1, the first management information is the above-mentioned management information 1, and the second management information is the above-mentioned management information 2.
当第一设备为中间层网络设备时,第一设备需要向第一设备的管理设备请求用于配置第一设备的管理信息,以及第二设备所在层级以及第二设备所在层级以下的各个层的管理信息。即结合图3如图6所示,在上述步骤301之前,该方法还包括:When the first device is a middle-layer network device, the first device needs to request the management device of the first device for management information for configuring the first device, as well as the management information of the layer where the second device is located and the layers below the layer where the second device is located. management information. That is, as shown in FIG. 6 with reference to FIG. 3 , before the above step 301, the method further includes:
步骤300a,第一设备向第三设备发送第二配置请求消息。Step 300a, the first device sends a second configuration request message to the third device.
其中,第三设备为N层网络设备中的网络设备,且第三设备为第一设备的上一层网络设备中管理第一设备的网络设备。The third device is a network device in an N-layer network device, and the third device is a network device that manages the first device in a network device at an upper layer of the first device.
步骤300b,第一设备接收第三设备发送的第二配置信息,第二配置信息中包括第三管理信息和第四管理信息,第三管理信息用于配置第一设备,第四管理信息为第一设备所在层级以下的各个层的管理信息,第四管理信息用于第一设备为第一设备的下一层网络设备中被第一设备管理的网络设备分配管理信息。Step 300b, the first device receives the second configuration information sent by the third device, the second configuration information includes third management information and fourth management information, the third management information is used to configure the first device, and the fourth management information is the third management information. The management information of each layer below the layer where a device is located, and the fourth management information is used by the first device to allocate management information to the network devices managed by the first device among the network devices of the next layer of the first device.
第一设备向第三设备申请到第二配置信息后,即可根据第三管理信息完成第一设备的配置,并获知第一设备所在层级以下的各个层的管理信息。例如,假设第一设备为第2层的网络设备,那么第一设备向第三设备申请到的第四管理信息即包括第3至N层的管理信息。第一设备可以将第四管理信息预配置在第一设备中,从而当第一设备的下一层网络设备中被第一设备管理的网络设备第一设备能够根据第四管理信息为该网络设备分配管理信息。After the first device applies for the second configuration information from the third device, it can complete the configuration of the first device according to the third management information, and learn the management information of each layer below the layer where the first device is located. For example, assuming that the first device is a layer 2 network device, the fourth management information applied by the first device to the third device includes management information of layers 3 to N. The first device may pre-configure the fourth management information in the first device, so that when a network device managed by the first device among the network devices in the next layer of the first device, the first device can provide the network device according to the fourth management information. Assign management information.
如图6所示,当第一设备为中间层网络设备时,上述步骤303具体可以为:As shown in FIG. 6 , when the first device is a middle-layer network device, the foregoing step 303 may specifically be:
步骤303d,第一设备根据所述第二设备所在层级和第四管理信息确定第一管理信息和第二管理信息。Step 303d, the first device determines the first management information and the second management information according to the level where the second device is located and the fourth management information.
第四管理信息中包括第二设备所在层级的管理信息和第二设备所在层级以下的各个层的管理信息。第一设备从第二设备所在层级的管理信息中为第二设备分配第一管理新,并确定第二设备所在层级以下的所有层的管理信息为第二管理信息。The fourth management information includes management information of the layer where the second device is located and management information of each layer below the layer where the second device is located. The first device allocates the first management information to the second device from the management information of the layer where the second device is located, and determines the management information of all layers below the layer where the second device is located as the second management information.
步骤303e,第一设备根据第一管理信息和第二管理信息生成第一配置信息。Step 303e, the first device generates first configuration information according to the first management information and the second management information.
示例性的,假设第一设备为第2层的网络设备,那么第三设备即为顶层网络设备,第二设备即为第3层中被第一设备管理的网络设备。例如,结合图4所示示例,当第一设备为网络设备2,第三设备为网络设备1时,步骤300a中的第一配置请求消息即为上述DHCP请求消息1,步骤300b中的第二配置信息为上述配置信息1,第三管理信息为上述管理信息1以及第四管理信息为上述管理信息2。Exemplarily, assuming that the first device is a layer 2 network device, the third device is a top-level network device, and the second device is a layer 3 network device managed by the first device. For example, with reference to the example shown in FIG. 4 , when the first device is network device 2 and the third device is network device 1, the first configuration request message in step 300a is the above DHCP request message 1, and the second configuration request message in step 300b The configuration information is the above-mentioned configuration information 1, the third management information is the above-mentioned management information 1, and the fourth management information is the above-mentioned management information 2.
网络设备2完成申请配置后,根据option信息中的配置信息1将网络设备2的管理IP设置为192.168.2.2。然后将配置信息1预配置在网络设备2中。After the network device 2 completes the application for configuration, the management IP of the network device 2 is set to 192.168.2.2 according to the configuration information 1 in the option information. The configuration information 1 is then preconfigured in the network device 2 .
完成预配置后,网络设备2中预配置的第3层,……,第N层的管理信息为:After the pre-configuration is completed, the management information of the pre-configured layer 3, ..., layer N in the network device 2 is:
Network Layers:N-2Network Layers: N-2
Management Info Layer 3:subnet 192.168.0.0netmask 255.255.0.0{Management Info Layer 3: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.3.1 192.168.3.111;}range 192.168.3.1 192.168.3.111; }
Management Info Layer 4:subnet 192.168.0.0netmask 255.255.0.0{Management Info Layer 4: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.4.1 192.168.4.111;}range 192.168.4.1 192.168.4.111; }
……
Management Info Layer N:subnet 192.168.0.0netmask 255.255.0.0{Management Info Layer N: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.N.1 192.168.N.111;}range 192.168.N.1 192.168.N.111; }
当网络设备3向网络设备2请求配置时,网络设备3向网络设备2发送DHCP请求消息2。网络设备2确定网络设备3为第3层的网络设备,并从预配置第3层的管理信息(即管理信息层3记录的管理信息)中为网络设备3分配管理信息。即网络设备2根据第3层的管理信息允许分配的地址范围(即192.168.3.1至192.168.3.111之间)为网络设备3分配管理IP。假设网络设备1为网络设备2分配的管理IP为192.168.3.13,因此,网络设备2为网络设备3分配的管理信息3为192.168.3.13。When the network device 3 requests the network device 2 for configuration, the network device 3 sends the DHCP request message 2 to the network device 2 . The network device 2 determines that the network device 3 is a layer 3 network device, and allocates management information to the network device 3 from preconfigured layer 3 management information (ie, management information recorded in the management information layer 3). That is, the network device 2 allocates a management IP to the network device 3 according to the address range (ie, between 192.168.3.1 and 192.168.3.111) that is allowed to be allocated by the layer 3 management information. It is assumed that the management IP assigned by the network device 1 to the network device 2 is 192.168.3.13. Therefore, the management information 3 assigned by the network device 2 to the network device 3 is 192.168.3.13.
然后网络设备3确定管理信息层4至管理信息层N记录的管理信息(即网络设备2中预配置的第4层至第N层的网络信息)为管理信息4。网络设备2根据管理信息3和管理信息4生成option信息2。Then, the network device 3 determines the management information recorded in the management information layers 4 to N (ie, the network information from the fourth to the Nth layers preconfigured in the network device 2 ) as the management information 4 . The network device 2 generates option information 2 according to the management information 3 and the management information 4 .
在该示例中,网络设备2生成的option信息可以为:In this example, the option information generated by the network device 2 may be:
Option:(XX)Management InfoOption: (XX) Management Info
Length(长度):XXXLength: XXX
Management IP:192.168.3.13Management IP: 192.168.3.13
Sub Network Layers:N-3Sub Network Layers: N-3
Sub Management Info Layer 4:subnet 192.168.0.0netmask 255.255.0.0{Sub Management Info Layer 4: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.4.1192.168.4.111;}range 192.168.4.1192.168.4.111; }
……
Sub Management Info Layer N:subnet 192.168.0.0netmask 255.255.0.0{Sub Management Info Layer N: subnet 192.168.0.0netmask 255.255.0.0{
range 192.168.N.1192.168.N.111;}range 192.168.N.1192.168.N.111; }
网络设备3接收到配置信息2后,即可根据管理信息2对自身进行配置,即将网络设备3的管理IP设置为192.168.3.13。并根据管理信息4获知第4层,……,第N层的管理信息,以便于后续为网络设备3所管理的第4层的网络设备提供配置。After the network device 3 receives the configuration information 2, it can configure itself according to the management information 2, that is, set the management IP of the network device 3 to 192.168.3.13. And according to the management information 4, the management information of the fourth layer, .
那么,基于图5所示的示例,当第一设备为网络设备2,第二设备为网络设备3时,步骤301中的第一配置请求消息即为上述DHCP请求消息2,步骤303中的第一配置信息为上述配置信息2,第一管理信息为上述管理信息3以及第二管理信息为上述管理信息4。Then, based on the example shown in FIG. 5 , when the first device is network device 2 and the second device is network device 3, the first configuration request message in step 301 is the above DHCP request message 2, and the first configuration request message in step 303 is the above DHCP request message 2. One configuration information is the above-mentioned configuration information 2 , the first management information is the above-mentioned management information 3 and the second management information is the above-mentioned management information 4 .
可以理解的是,本申请提供的配置方法,通过在顶层网络设备中预配置N层网络设备的管理信息,在第2层的网络设备向顶层申请配置时,顶层网络设备除了为第2层的网络设备分配管理信息外,还会同时下发第3层,……,第N层的管理信息,以预配置在第2层的网络设备中。第3层的网络设备向第2层的网络设备申请配置时,第2层的网络设备除了为第3层的网络设备分配管理信息外,还会同时下发第4层,……,第N层的管理信息,以预配置在第3层的网络设备中。以此类推,直至第N层的网络设备完成申请配置。从而实现了通过一次性的人工配置,使得N层网络设备自动完成配置,减少人工部署的步骤,提高网络部署自动配置的效率。It can be understood that, in the configuration method provided by this application, by pre-configuring the management information of the N-layer network device in the top-level network device, when the second-layer network device applies to the top-level for configuration, the top-level network device is not only a layer-2 network device. In addition to the management information allocated by the network device, the management information of the third layer, ..., and the Nth layer will also be delivered at the same time, so as to be pre-configured in the network device of the second layer. When layer 3 network devices apply for configuration to layer 2 network devices, in addition to allocating management information to layer 3 network devices, layer 2 network devices will also deliver layer 4, ..., Nth Layer management information to be preconfigured in Layer 3 network devices. And so on, until the network device of the Nth layer completes the application configuration. Thus, the configuration of the N-layer network equipment is automatically completed through one-time manual configuration, the steps of manual deployment are reduced, and the efficiency of automatic configuration of network deployment is improved.
在一个示例中,N层网络设备会随着用户需求随机进行扩展,例如,在如图1所示的网络架构中,需要在第3层增加一个VNF,或者在第2层增加一个BBA等。随着N层网络设备的扩展,最初预配置的管理信息可能存在不足的现象。例如,BAA1最初从SDN控制器申请了100个管理IP,用于分配给第3层中100个被BBA1管理的VNF和/或PNF。但是当BAA1之下扩展到第101个VNF或PNF,则会到导致BAA1中没有剩余的管理IP可以分配给该VNF或者PNF。In an example, the N-layer network equipment will be randomly expanded according to user needs. For example, in the network architecture shown in Figure 1, it is necessary to add a VNF at layer 3, or add a BBA at layer 2, etc. With the expansion of N-layer network devices, the initially pre-configured management information may be insufficient. For example, BAA1 initially requested 100 management IPs from the SDN controller for allocation to 100 VNFs and/or PNFs in Layer 3 that are managed by BBA1. But when BAA1 expands to the 101st VNF or PNF, there will be no remaining management IP in BAA1 that can be assigned to this VNF or PNF.
如图7所示,当第一设备为中间层网络设备时,该方法还包括:As shown in FIG. 7 , when the first device is an intermediate layer network device, the method further includes:
步骤701,第四设备向第一设备发送第三配置请求消息。Step 701, the fourth device sends a third configuration request message to the first device.
其中,第四设备可以是在N层网络设备中扩展的一个网络设备,且第一设备为第四设备的上一层网络设备中管理所述第二设备的网络设备。Wherein, the fourth device may be a network device extended in the N-layer network device, and the first device is a network device that manages the second device in the upper-layer network device of the fourth device.
第四设备向第一设备发送第三配置请求消息,以请求第一设备分配管理信息。The fourth device sends a third configuration request message to the first device to request the first device to allocate management information.
步骤702,第一设备确定第四设备所在层级。Step 702, the first device determines the level where the fourth device is located.
步骤703,当预配置第四设备所在层级的管理信息均被使用时,第一设备向第三设备发送第四配置请求消息,第四配置请求消息中携带第一指示信息,该第一指示信息用于指示第四设备所在层级需要增加的管理信息。Step 703, when the management information of the level where the pre-configured fourth device is located is used, the first device sends a fourth configuration request message to the third device, and the fourth configuration request message carries first indication information, the first indication information It is used to indicate the management information that needs to be added at the level where the fourth device is located.
第一设备接收到第三配置请求消息后,即可在预配置第四设备所在层级的管理信息中查找未被分配的管理信息。若预配置第四设备所在层级的管理信息均被使用,那么第一设备即可确定需要申请增加第四设备所在层级(即第一设备所在层级的下一层)的管理信息。第一设备可以向第三设备发送配置请求消息,以请求第三设备分配增加的管理信息。After receiving the third configuration request message, the first device may search for unallocated management information in the management information of the level where the pre-configured fourth device is located. If all the management information of the level where the pre-configured fourth device is located is used, the first device may determine that it needs to apply for adding management information of the level where the fourth device is located (ie, the layer below the level where the first device is located). The first device may send a configuration request message to the third device to request the third device to allocate the added management information.
其中,第四配置请求消息可以是第一设备对第三配置请求消息进行修改后得到的配置请求消息,例如为第三配置请求消息封装第一设备的管理IP,增加第一指示信息等。The fourth configuration request message may be a configuration request message obtained after the first device modifies the third configuration request message, such as encapsulating the management IP of the first device for the third configuration request message, adding first indication information, and the like.
第一设备申请增加的管理信息可以是预设数量的管理信息。例如,当前存在一个第四设备向第一设备申请管理IP,那么第一设备可以向第三设备申请为第四设备所在层级增加100个管理IP。一个可以分配给第四设备,剩余的可以预配置在第一设备中,以供后续扩展所需。The management information applied for by the first device to be added may be a preset amount of management information. For example, if a fourth device currently applies to the first device for a management IP, the first device may apply to the third device to add 100 management IPs to the level where the fourth device is located. One can be allocated to the fourth device, and the rest can be pre-configured in the first device for subsequent expansion.
步骤704,第一设备接收第三设备发送的第三配置信息,第三配置信息中携带增加的管理信息。Step 704: The first device receives third configuration information sent by the third device, where the third configuration information carries the added management information.
第三设备可以是顶层网络设备也可以是中间层网络设备。The third device may be a top-level network device or a middle-level network device.
若第三设备是顶层网络设备,那么第一设备为第2层的网络设备,第四设备为第3层的网络设备。第三设备中预配置有N层网络设备的扩展管理信息,包括每一层允许扩展的管理信息。第三设备可以根据第一指示信息确定需要为第3层增加管理信息。第三设备确定为第3层增加的管理信息,然后将该增加的管理信息携带在第三配置信息中发送给第一设备。If the third device is a top-level network device, then the first device is a layer-2 network device, and the fourth device is a layer-3 network device. The third device is pre-configured with extended management information of the N-layer network device, including management information that allows expansion of each layer. The third device may determine, according to the first indication information, that management information needs to be added to Layer 3. The third device determines the added management information for the third layer, and then carries the added management information in the third configuration information and sends it to the first device.
其中,第三设备为第3层增加的管理信息可以是预配置的所有第3层的扩展管理信息。例如,第三设备中预配置有200个第3层的扩展管理信息,即扩展的管理IP的地址范围192.168.3.112至192.168.3.312。第三设备可以将这200个管理IP都携带在第三配置信息中发送给第一设备。The management information added by the third device for layer 3 may be all preconfigured extended management information of layer 3. For example, the third device is pre-configured with 200 pieces of extended management information of layer 3, that is, the address range of the extended management IP from 192.168.3.112 to 192.168.3.312. The third device may carry all the 200 management IPs in the third configuration information and send it to the first device.
若第一指示信息中指示了需要增加的管理信息的个数,那么第三设备可以根据第一指示信息指示的个数进行分配扩展管理信息。例如,第一指示信息中指示需要增加100个管理IP,那么第三设备可以将192.168.3.112至192.168.3.312中的192.168.3.112至192.168.3.212携带在第三配置信息中发送给第一设备。If the number of management information to be added is indicated in the first indication information, the third device may allocate extended management information according to the number indicated by the first indication information. For example, if the first indication information indicates that 100 management IPs need to be added, the third device may carry 192.168.3.112 to 192.168.3.212 in the third configuration information and send it to the first device.
若第三设备是中间层网络设备,例如,第三设备是第2层的网络设备,那么第一设备为第3层的网络设备,第四设备为第4层的网络设备。第三设备接收到第一设备发送的第四配置请求消息后,确定第三设备请求为第4层增加管理信息。第三设备可以为第四配置请求消息封装第三设备的管理IP后,发送至顶层网络设备,由顶层网络设备分第3层的扩展管理信息。第三设备接收到顶层网络设备发送的第三配置信息后,将第三配置信息转发给第一设备。If the third device is an intermediate layer network device, for example, the third device is a layer 2 network device, the first device is a layer 3 network device, and the fourth device is a layer 4 network device. After receiving the fourth configuration request message sent by the first device, the third device determines that the third device requests to add management information for layer 4. The third device may encapsulate the management IP of the third device in the fourth configuration request message, and send it to the top-level network device, and the top-level network device divides the extended management information of the third layer. After receiving the third configuration information sent by the top-level network device, the third device forwards the third configuration information to the first device.
步骤705,第一设备从增加的管理信息中为第四设备分配第五管理信息。Step 705, the first device allocates fifth management information to the fourth device from the added management information.
第一设备从增加的管理信息中为第四设备分配第五管理信息。例如,第三配置信息中携带的增加的地址范围为192.168.3.112至192.168.3.312,那么第一设备可以从增加的地址范围中为第四设备分配一个,例如,分配了地址192.168.3.112。即第一设备为第四设备分配的第五管理信息为管理IP192.168.3.112。The first device assigns fifth management information to the fourth device from the added management information. For example, the increased address range carried in the third configuration information is 192.168.3.112 to 192.168.3.312, then the first device may allocate one from the increased address range to the fourth device, for example, the address 192.168.3.112 is allocated. That is, the fifth management information allocated by the first device to the fourth device is management IP 192.168.3.112.
第一设备将剩余的管理信息,例如地址范围为192.168.3.113至192.168.3.312,预配置在第一设备中,以便于后续为扩展的其他管理设备分管理信息。The first device preconfigures the remaining management information, for example, the address range is 192.168.3.113 to 192.168.3.312, in the first device, so that the management information can be divided into other extended management devices subsequently.
步骤706,第一设备向第四设备发送第五管理信息。Step 706, the first device sends fifth management information to the fourth device.
第四设备接收到第五管理信息后,采用第五管理信息完成第四设备的配置。After receiving the fifth management information, the fourth device uses the fifth management information to complete the configuration of the fourth device.
值得说明的是,在扩展N层网络设备时,采用本申请提供的配置方法,通过在顶层网络设备中预设置N层网络设备的扩展管理信息,即可实现对扩展的网络设备的自动配置,而无需每扩展一个网络设备就进行一次手动配置,减少人工部署的步骤,提高网络部署自动配置的效率。It is worth noting that, when expanding the N-layer network device, the configuration method provided by this application is adopted, and the extended management information of the N-layer network device is preset in the top-level network device, so that the automatic configuration of the expanded network device can be realized. There is no need to perform manual configuration every time a network device is expanded, which reduces the steps of manual deployment and improves the efficiency of automatic configuration of network deployment.
下面介绍本申请实施例提供的一种装置。如图8所示:A device provided by an embodiment of the present application is described below. As shown in Figure 8:
该装置800包括处理单元801、接收单元802和发送单元803。可选的,该装置还包括存储单元802。处理单元801、接收单元802、发送单元803和存储单元804通过通信总线805相连。The apparatus 800 includes a
接收单元802可以是具有接收功能的装置、发送单元803可以是具有发送功能的装置,接收单元802和发送单元803用于与其他网络设备或者通信网络进行通信。The receiving
存储单元804可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。The
存储单元804可以独立存在,通过通信总线805与处理单元801相连。存储单元804也可以与处理单元801集成在一起。The
装置800可以用于网络设备、电路、硬件组件或者芯片中。The apparatus 800 may be used in a network device, circuit, hardware component or chip.
装置800可以是本申请实施例中的网络设备,用作第一设备,执行上述方法实施例中的第一设备所执行的步骤。例如网络设备1、网络设备2、网络设备3、网络设备4、……、网络设备N。网络设备的示意图可以如图2所示。可选的,装置800的接收单元802、发送单元803可以包括网络设备的通信接口,例如图2中的通信接口203。The apparatus 800 may be a network device in this embodiment of the present application, and is used as a first device to perform the steps performed by the first device in the foregoing method embodiments. For example, network device 1, network device 2, network device 3, network device 4, . . . , network device N. A schematic diagram of a network device may be shown in FIG. 2 . Optionally, the receiving
装置800可以是本申请实施例中的网络设备中的芯片,例如网络设备1中的芯片、网络设备2中的芯片、网络设备3中的芯片等。接收单元802和发送单元803可以是输入或者输出接口、管脚或者电路等。可选的,存储单元804可以存储计算机执行指令,以使处理单元801执行上述实施例中第一设备执行的方法。例如,接收单元802,用于接收第二设备发送的第一配置请求消息,第二设备属于该N层网络设备,且第一设备为第二设备的上一层网络设备中管理第二设备的网络设备,N为大于1的整数;该处理单元801,用于确定第二设备所在层级;该处理单元801,还用于根据第二设备所在层级生成第一配置信息,第一配置信息包括第一管理信息和第二管理信息,第一管理信息用于配置第二设备,第二管理信息为第二设备所在层级以下的各个层的管理信息,其中,第二管理信息用于第二设备为第二设备的下一层网络设备中被第二设备管理的网络设备分配管理信息;该发送单元803,用于向第二设备发送第一配置信息。The apparatus 800 may be a chip in the network device in the embodiment of the present application, for example, a chip in the network device 1, a chip in the network device 2, a chip in the network device 3, and the like. The receiving
可选的,第一设备为N层网络设备中的顶层网络设备,第一设备中预配置有N层网络设备的管理信息,该处理单元801根据第二设备所在层级生成第一配置信息,包括:根据该N层网络设备的管理信息中第二设备所在层级的管理信息,为第二设备分配第一管理信息;根据第二设备所在层级确定该N层网络设备的管理信息中的第二管理信息;根据第一管理信息和第二管理信息生成第一配置信息。Optionally, the first device is a top-level network device in the N-layer network device, the first device is pre-configured with management information of the N-layer network device, and the
可选的,第一设备为该N层网络设备中的中间层网络设备,该发送单元803,还用于在接收单元802接收第二设备发送的配置请求消息之前,向第三设备发送第二配置请求消息,第三设备属于N层网络设备,且第三设备为第一设备的上一层网络设备中管理第一设备的网络设备;该接收单元802,还用于接收第三设备发送的第二配置信息,第二配置信息中包括第三管理信息和第四管理信息,第三管理信息用于配置第一设备,第四管理信息为第一设备所在层级以下的各个层的管理信息,第四管理信息用于该处理单元801为第一设备的下一层网络设备中被第一设备管理的网络设备分配管理信息。Optionally, the first device is a middle-layer network device in the N-layer network device, and the sending
可选的,处理单元801根据第二设备所在层级生成第一配置信息,包括:根据第二设备所在层级和第四管理信息确定第一管理信息和第二管理信息;根据第一管理信息和第二管理信息生成第一配置信息。Optionally, the
可选的,接收单元802,还用于接收第四设备发送的第三配置请求消息,第四设备属于该N层网络设备,且第一设备为第四设备的上一层网络设备中管理第二设备的网络设备;处理单元801,还用于确定第四设备所在层级;发送单元803,还用于当预配置的第四设备所在层级的管理信息均被使用时,向第三设备发送第四配置请求消息,第四配置请求消息中携带第一指示信息,第一指示信息用于指示第四设备所在层级需要增加的管理信息;接收单元802,还用于接收第三设备发送的第三配置信息,第三配置信息中携带增加的管理信息;处理单元801,还用于从增加的管理信息中为第四设备分配第五管理信息,第五管理信息用于配置第四设备;发送单元803,还用于向第四设备发送第五管理信息。Optionally, the receiving
可选的,处理单元801确定第二设备所在层级,包括:根据第一配置请求消息中携带的第二设备所在层级的第二指示信息,确定第二设备所在层级。Optionally, the
可选的,处理单元801确定第二设备所在层级,包括:确定第二设备为第一设备的下一层网络设备。Optionally, the
存储单元804可以是寄存器、缓存或者RAM等,存储单元804可以和处理单元801集成在一起;存储单元804可以是ROM或者可存储静态信息和指令的其他类型的静态存储设备,存储单元804可以与处理单元801相独立。The
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何可用介质。Embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media can include both computer storage media and communication media and also include any medium that can transfer a computer program from one place to another. A storage medium can be any available medium that can be accessed by a computer.
作为一种可选的设计,计算机可读介质可以包括RAM,ROM,EEPROM,CD-ROM或其它光盘存储器,磁盘存储器或其它磁存储设备,或可用于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。As an alternative design, the computer readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that may be used to carry or carry instructions or data structures The required program code is stored in the form and can be accessed by the computer. Also, any connection is properly termed a computer-readable medium. For example, if you use coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies (such as infrared, radio, and microwave) to transmit software from a website, server, or other remote source, coaxial cable, fiber optic cable , twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
本申请实施例还提供了一种计算机程序产品。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,可以全部或者部分得通过计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行上述计算机程序指令时,全部或部分地产生按照上述方法实施例中描述的流程或功能。上述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。The embodiments of the present application also provide a computer program product. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. If implemented in software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the above-mentioned computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the above-mentioned method embodiments are generated. The aforementioned computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable devices.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The specific embodiments described above further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included within the protection scope of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910253812.XA CN111769960B (en) | 2019-03-30 | 2019-03-30 | Configuration method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910253812.XA CN111769960B (en) | 2019-03-30 | 2019-03-30 | Configuration method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111769960A CN111769960A (en) | 2020-10-13 |
CN111769960B true CN111769960B (en) | 2022-04-12 |
Family
ID=72717968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910253812.XA Active CN111769960B (en) | 2019-03-30 | 2019-03-30 | Configuration method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111769960B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452832A (en) * | 2016-08-26 | 2017-02-22 | 广西广播电视信息网络股份有限公司 | C-CMTS equipment method for precisely acquiring configuration parameters |
CN106685734A (en) * | 2017-01-25 | 2017-05-17 | 上海易杵行智能科技有限公司 | Intelligent configuration method and system based on Ethernet |
CN107332695A (en) * | 2017-06-15 | 2017-11-07 | 迈普通信技术股份有限公司 | A kind of method and device for disposing double layer network |
CN107682202A (en) * | 2017-10-26 | 2018-02-09 | 新华三技术有限公司 | The management method and device of the network equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1643679B1 (en) * | 2004-09-29 | 2007-11-07 | Siemens Aktiengesellschaft | Configuration of modules in automation systems |
US8130677B2 (en) * | 2008-03-14 | 2012-03-06 | Aastra Technologies Limited | Method and system for configuring a network communications device |
-
2019
- 2019-03-30 CN CN201910253812.XA patent/CN111769960B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106452832A (en) * | 2016-08-26 | 2017-02-22 | 广西广播电视信息网络股份有限公司 | C-CMTS equipment method for precisely acquiring configuration parameters |
CN106685734A (en) * | 2017-01-25 | 2017-05-17 | 上海易杵行智能科技有限公司 | Intelligent configuration method and system based on Ethernet |
CN107332695A (en) * | 2017-06-15 | 2017-11-07 | 迈普通信技术股份有限公司 | A kind of method and device for disposing double layer network |
CN107682202A (en) * | 2017-10-26 | 2018-02-09 | 新华三技术有限公司 | The management method and device of the network equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111769960A (en) | 2020-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11895577B2 (en) | Network slice selection method and apparatus | |
EP4149084B1 (en) | Address management method and system, and device | |
CN109688235B (en) | Virtual network service processing method, device and system, controller, storage medium | |
CN108924268B (en) | A container cloud service system and pod creation method and device | |
CN109889586B (en) | Communication processing method and device, computer readable medium and electronic equipment | |
US11240198B2 (en) | Session management method and apparatus | |
CN110784557B (en) | Detecting hardware address conflicts in a computer network | |
US10361970B2 (en) | Automated instantiation of wireless virtual private networks | |
CN110166580A (en) | Method, equipment and the system of resource management | |
CN105099950B (en) | A kind of resource allocation methods, message communication method and device | |
CN103744719A (en) | Lock management method, lock management system, lock management system configuration method and lock management system configuration device | |
CN111371578B (en) | Method and device for deploying virtualized network function | |
CN107547674B (en) | Address allocation method and device | |
CN106302861B (en) | Address allocation method and device | |
WO2018161795A1 (en) | Routing priority configuration method, device, and controller | |
CN118400339B (en) | Tenant management method, device, controller and storage medium | |
CN114827781A (en) | Network cooperation method, device, equipment and storage medium | |
CN111769960B (en) | Configuration method and device | |
CN112804367B (en) | Address allocation method and device under dual-stack environment | |
CN107547684B (en) | IPv6 address allocation method and device | |
CN107172229A (en) | The collocation method and device of router | |
US11416299B2 (en) | Method and resource scheduler for enabling a computing unit to map remote memory resources based on optical wavelength | |
CN111294740B (en) | A group communication method, device and equipment | |
CN112565158B (en) | Data access method, device, system, electronic equipment and computer readable medium | |
CN116938805B (en) | Data packet transmission method, device, equipment, storage medium and program product |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |