Equipment online method and device and related equipment
By selecting a top-level device as the online relay device within the campus network and configuring a VLAN gateway and DHCP relay, the reliance on high-cost L3 management switches in the automated deployment of the campus was resolved, enabling automated online deployment and simplified configuration of branch campuses, and reducing project costs.
Patent Information
- Application Number
- CN202411388957.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-09-30
AI Technical Summary
Existing technologies rely on high-cost L3 management switches for automated deployment in campuses. In cases where L3 switches cannot be deployed in branch campuses, this leads to difficulties in automated deployment and limited project promotion, especially when ECMP and complex Vxlan and BGP configurations are required.
By selecting a top-level device as the online relay device within the campus network and configuring a VLAN gateway and DHCP relay, the automated online connection of other devices can be achieved, reducing the reliance on L3 management switches.
It reduced project implementation costs, enabled automated deployment across multiple park branches, simplified the configuration process, and reduced the impact of external device loops.
Smart Images

Figure CN119299500A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network management technology, and in particular to a method and apparatus for bringing a device online, and related equipment. Background Art
[0002] At present, the automation start of the campus needs to rely on L3 (three-layer) management switches, and the DHCP (Dynamic Host Configuration Protocol) relay configured on the device is used to enable the devices in the campus to obtain IP addresses and establish connections with the controller. However, as the campus supports more and more scenarios, such as single machine, stacking, MLAG (Multi-Chassis Link Aggregation, cross-device link aggregation group), etc., the requirements for L3 management switches are getting higher and higher, especially the requirement to support ECMP (Equal Cost Multi-path), which generally requires Leaf or higher devices to support, and the price of such devices is relatively high, which is difficult to meet in some projects, bringing great restrictions to the automatic online deployment.
[0003] However, the actual environment of some other branch campuses does not meet the conditions for deploying L3 switches. For example, the export routers, firewalls or core switches have been deployed at the export, and it is impossible to configure the Vlan1 and Vlan4094 gateways for device management on them, and configure the Vlan1 DHCP relay. In addition, the device management gateway is in the external device, requiring the connection interface trunk vlan 1 and Vlan 4094, and the second layer to the external device, and the complex configuration of STP (Spanning Tree Protocol). At this time, only semi-automation can be used, and complex Vxlan (Virtual Extensible Local Area Network) and BGP (Border Gateway Protocol) configurations need to be manually configured between spine-leaf, resulting in certain difficulties and limitations in project promotion. Summary of the invention
[0004] The present application provides a device online method, apparatus and related equipment.
[0005] In a first aspect, the present application provides a device online method, which is applied to a controller, and the method includes:
[0006] After establishing a layer 3 connection with a target device in the network, determining whether the target device can be used as an online relay device for other devices in the network to go online;
[0007] When it is determined that the target device can be used as an online relay device for other devices in the network to go online, managing the target device;
[0008] The online relay configuration is sent to the target device, so that the target device performs online operations for other devices in the network based on the online relay function.
[0009] Optionally, after establishing a layer 3 connection with a target device in the network, the step of determining whether the target device can be used as an online relay device for other devices in the network to go online includes:
[0010] After establishing a Websocket connection with the target device in the network, based on the device type information of the target device, determine whether the target device can be used as a relay device for other devices in the network to go online. If it is determined that the target device is the top-level device of the network, it is determined that the target device can be used as an online relay device for other devices in the network to go online.
[0011] Optionally, the step of sending the online relay configuration to the target device includes:
[0012] A first VLAN gateway configuration, a DHCP relay configuration, and a second VLAN gateway configuration are issued to the target device, wherein the first VLAN is a VLAN that is allowed by default in the network, and the second VLAN is a management VLAN of the network.
[0013] Optionally, the target device is a Spine device or a Leaf device.
[0014] In a second aspect, the present application provides a device for online connection of a device, which is applied to a controller, and the device includes:
[0015] A judgment unit, after establishing a layer 3 connection with a target device in the network, the judgment unit is used to judge whether the target device can be used as an online relay device for other devices in the network to go online;
[0016] a management unit, which is used to manage the target device when the determination unit determines that the target device can be used as an online relay device for other devices in the network to go online;
[0017] The sending unit is used to send the online relay configuration to the target device, so that the target device can perform the online of other devices in the network based on the online relay function.
[0018] Optionally, after establishing a layer 3 connection with a target device in the network, when determining whether the target device can be used as an online relay device for other devices in the network to go online, the determining unit is specifically configured to:
[0019] After establishing a Websocket connection with the target device in the network, based on the device type information of the target device, determine whether the target device can be used as a relay device for other devices in the network to go online. If it is determined that the target device is the top-level device of the network, it is determined that the target device can be used as an online relay device for other devices in the network to go online.
[0020] Optionally, when sending the online relay configuration to the target device, the sending unit is specifically used to:
[0021] A first VLAN gateway configuration, a DHCP relay configuration, and a second VLAN gateway configuration are issued to the target device, wherein the first VLAN is a VLAN that is allowed by default in the network, and the second VLAN is a management VLAN of the network.
[0022] Optionally, the target device is a Spine device or a Leaf device.
[0023] In a third aspect, an embodiment of the present application provides a device for online connection, the device for online connection comprising:
[0024] A memory for storing program instructions;
[0025] The processor is used to call the program instructions stored in the memory, and execute the steps of the method as described in any one of the first aspects above according to the obtained program instructions.
[0026] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method described in any one of the first aspects above.
[0027] In summary, the device online method provided in the embodiment of the present application is applied to a controller, and the method includes: after establishing a three-layer connection with a target device in a network, determining whether the target device can be used as an online relay device for other devices in the network to go online; when it is determined that the target device can be used as an online relay device for other devices in the network to go online, managing the target device; and sending an online relay configuration to the target device so that the target device executes the online operation of other devices in the network based on the online relay function.
[0028] By adopting the device online method provided in the embodiment of the present application, the dependence of automatic online on the L3 management switch is eliminated, which greatly reduces the project implementation cost; it solves the problem that in the branch scenario of multiple campuses, due to the remote deployment of control, the branch can no longer deploy the L3 management switch, and thus cannot achieve automatic online, so that the branch can also be deployed more simply and quickly, and the automatic deployment of all scenarios is realized; the STP domain is restricted to the campus equipment, reducing the impact of the external equipment loop. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments of the present application or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.
[0030] Figure 1 A detailed flow chart of a device online method provided in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of the structure of a device online device provided in an embodiment of the present application;
[0032] Figure 3 A schematic diagram of the hardware architecture of another device online device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, rather than limiting the present application. The singular forms of "a", "said" and "the" used in the present application and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.
[0034] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination".
[0035] Currently, in the campus network, the principles for automatic device onboarding and management are as follows:
[0036] On the L3 management switch, first configure the gateway of the default Layer 2 connected VLAN (for example, VLAN 1) and the VLAN1 DHCP relay. Configure the gateway of the campus management network management VLAN (for example, VLAN 4094), and trunk VLAN 1 and VLAN 4094 on the L3 interface. Enable the STP protocol and configure STP ignore underlay VLAN.
[0037] The DHCP Server configuration option specifies the Websocket microservice address of the SDN controller.
[0038] The automated launch process of campus equipment is as follows:
[0039] 1. After the device is powered on, it executes the DHCP process of Vlan1, relays to the DHCP Server through the L3 management switch to obtain the Vlan1 address (IP address), and obtains the Websocket microservice address of the SDN controller based on the DHCP option field.
[0040] 2. The device actively initiates a connection to the Websocket microservice and establishes a Websocket channel with the SDN controller;
[0041] 3. The Websocket microservice reports the NE online event to the control component;
[0042] 4. The campus's SDN controller activates the network element and automatically sends basic configurations to the device through the Websocket channel, completing the automatic onboarding and management of the device.
[0043] However, in actual deployment, in addition to considering the cost of the L3 management switch, in branch offices in multi-campus scenarios, there are other devices (such as routers, firewalls, core switches, etc.) at the exit. Customers do not agree to configure DHCP relay services on such high-speed forwarding core devices, and require intercommunication with devices in the campus through Layer 2 ports, which requires STP configuration, so that external devices are added to the STP domain of the campus, which will have certain risks. Therefore, in some scenarios, semi-automatic online is generally used, and spine / leaf are manually online, which requires complex VXLAN-related configuration.
[0044] In order to solve the above technical problems, an embodiment of the present application proposes a technical solution based on a device in the campus network as a device online relay device, which realizes the automatic online of other devices in the campus network through the online relay device.
[0045] For example, see Figure 1As shown, it is a detailed flow chart of a device online method provided in an embodiment of the present application. The method is applied to a controller, and the method includes the following steps:
[0046] Step 100: After establishing a layer 3 connection with a target device in the network, determine whether the target device can be used as an online relay device for other devices in the network to go online.
[0047] In the embodiment of the present application, after establishing a layer 3 connection with a target device in the network, when determining whether the target device can be used as an online relay device for other devices in the network to go online, a preferred implementation method is:
[0048] After establishing a Websocket connection with the target device in the network, based on the device type information of the target device, determine whether the target device can be used as a relay device for other devices in the network to go online. If it is determined that the target device is the top-level device of the network, it is determined that the target device can be used as an online relay device for other devices in the network to go online.
[0049] In actual applications, the administrator selects a device (target device) and manually configures the device, specifically, configures the IP address of the device, and informs the device of the IP address of the controller through the command line, so that the device establishes a three-layer connection with the controller based on its own IP address and the IP address of the controller.
[0050] It should be noted that the IP address configured for the target device is an IP address in the address pool configured for the network in the DHCP server, and the IP address of the controller can be the IP address of the Websocket microservice of the controller.
[0051] In the embodiment of the present application, the target device is a Spine device, or a Leaf device.
[0052] That is to say, the campus network architecture can be an N-layer network architecture. For example, if the campus network architecture is a 2-layer network architecture, the top-level device is a Leaf device, and if the campus network architecture is a 3-layer network architecture, the top-level device is a Spine device.
[0053] In the embodiment of the present application, only the top-level device in the campus network can be used as a relay device for other devices in the network to go online.
[0054] Step 110: When it is determined that the target device can be used as an online relay device for other devices in the network to go online, the target device is managed.
[0055] In actual applications, after the controller establishes a three-layer network connection with the target device, the controller can discover the target device in the network topology of the network. When it is determined that the target device meets the conditions of being a relay device for other devices in the network to go online, the target device is managed.
[0056] Specifically, the controller is pre-configured with basic configurations of various types of devices. Managing target devices means obtaining the corresponding basic configuration based on the device type of the target device (such as Spine / Leaf device), and sending the basic configuration to the target device to enable the controller to manage the target device.
[0057] Step 120: Sending an online relay configuration to the target device, so that the target device can perform online operations for other devices in the network based on the online relay function.
[0058] After managing the target device, the controller sends the online relay configuration to the target device.
[0059] Specifically, in the embodiment of the present application, when sending the online relay configuration to the target device, a preferred implementation method is:
[0060] A first VLAN gateway configuration, a DHCP relay configuration, and a second VLAN gateway configuration are issued to the target device, wherein the first VLAN is a VLAN that is allowed by default in the network, and the second VLAN is a management VLAN of the network.
[0061] In combination with the above description, the first VLAN is Vlan 1, the second VLAN is Vlan 4094, the target device is configured as the gateway of Vlan 1, the target device is configured as a DHCP relay (relay), and the target device is configured as the gateway (management gateway) of Vlan 4094.
[0062] When other network devices in the campus network need to go online, the target device obtains the IP address corresponding to Vlan1 from the DHCP server. When obtaining the IP address, the specified option field of the DHCP response message also carries the IP address of the controller (the IP address of the controller's Websocket microservice). In this way, after other network devices are assigned IP addresses and obtain the IP address of the controller, they establish a three-layer network connection with the controller. The controller activates other network devices to be online and automatically sends basic configurations to the devices to be online through the Websocket channel, completing the automatic online management of the devices.
[0063] Based on the same inventive concept as the above-mentioned embodiment of the invention, for example, refer to Figure 2FIG. 1 is a schematic diagram of a structure of a device online device provided in an embodiment of the present application. The device is applied to a controller, and the device includes:
[0064] The judging unit 20 is used to judge whether the target device can be used as an online relay device for other devices in the network to go online after establishing a layer 3 connection with the target device in the network;
[0065] A management unit 21, when the determination unit determines that the target device can be used as an online relay device for other devices in the network to go online, the management unit is used to manage the target device;
[0066] The sending unit 22 is used to send the online relay configuration to the target device, so that the target device can perform online operations for other devices in the network based on the online relay function.
[0067] Optionally, after establishing a layer 3 connection with a target device in the network, when determining whether the target device can be used as an online relay device for other devices in the network to go online, the determining unit 20 is specifically configured to:
[0068] After establishing a Websocket connection with the target device in the network, based on the device type information of the target device, determine whether the target device can be used as a relay device for other devices in the network to go online. If it is determined that the target device is the top-level device of the network, it is determined that the target device can be used as an online relay device for other devices in the network to go online.
[0069] Optionally, when sending the online relay configuration to the target device, the sending unit 22 is specifically used to:
[0070] A first VLAN gateway configuration, a DHCP relay configuration, and a second VLAN gateway configuration are issued to the target device, wherein the first VLAN is a VLAN that is allowed by default in the network, and the second VLAN is a management VLAN of the network.
[0071] Optionally, the target device is a Spine device or a Leaf device.
[0072] The above units may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain unit is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0073] Furthermore, the device online device provided in the embodiment of the present application, from the hardware level, the hardware architecture diagram of the device online device can be seen in Figure 3 As shown, the device online device may include: a memory 30 and a processor 31,
[0074] The memory 30 is used to store program instructions; the processor 31 calls the program instructions stored in the memory 30 and executes the above method embodiment according to the obtained program instructions. The specific implementation method and technical effect are similar and will not be repeated here.
[0075] Optionally, the present application also provides a controller, comprising at least one processing element (or chip) for executing the above method embodiment.
[0076] Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the above method embodiments.
[0077] Here, the machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0078] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0079] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0080] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0081] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0082] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0084] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A device online method, characterized in that: Applied to a controller, the method comprises: After establishing a layer 3 connection with a target device in the network, determining whether the target device can be used as an online relay device for other devices in the network to go online; When it is determined that the target device can be used as an online relay device for other devices in the network to go online, managing the target device; The online relay configuration is sent to the target device, so that the target device performs online operations for other devices in the network based on the online relay function.
2. The method according to claim 1, characterized in that After establishing a layer 3 connection with a target device in the network, the step of determining whether the target device can be used as an online relay device for other devices in the network to go online includes: After establishing a Websocket connection with the target device in the network, based on the device type information of the target device, determine whether the target device can be used as a relay device for other devices in the network to go online. If it is determined that the target device is the top-level device of the network, it is determined that the target device can be used as an online relay device for other devices in the network to go online.
3. The method according to claim 1 or 2, characterized in that The step of sending the online relay configuration to the target device includes: A first VLAN gateway configuration, a DHCP relay configuration, and a second VLAN gateway configuration are issued to the target device, wherein the first VLAN is a VLAN that is allowed by default in the network, and the second VLAN is a management VLAN of the network.
4. The method according to claim 2, characterized in that The target device is a Spine device or a Leaf device.
5. A device for bringing an equipment online, characterized in that: Applied to a controller, the device comprises: A judgment unit, after establishing a layer 3 connection with a target device in the network, the judgment unit is used to judge whether the target device can be used as an online relay device for other devices in the network to go online; a management unit, which is used to manage the target device when the determination unit determines that the target device can be used as an online relay device for other devices in the network to go online; The sending unit is used to send the online relay configuration to the target device, so that the target device can perform the online of other devices in the network based on the online relay function.
6. The device according to claim 5, characterized in that After establishing a layer 3 connection with a target device in the network, when determining whether the target device can be used as an online relay device for other devices in the network to go online, the determining unit is specifically configured to: After establishing a Websocket connection with the target device in the network, based on the device type information of the target device, determine whether the target device can be used as a relay device for other devices in the network to go online. If it is determined that the target device is the top-level device of the network, it is determined that the target device can be used as an online relay device for other devices in the network to go online.
7. The device according to claim 5 or 6, characterized in that When sending the online relay configuration to the target device, the sending unit is specifically used for: A first VLAN gateway configuration, a DHCP relay configuration, and a second VLAN gateway configuration are issued to the target device, wherein the first VLAN is a VLAN that is allowed by default in the network, and the second VLAN is a management VLAN of the network.
8. The device according to claim 6, characterized in that The target device is a Spine device or a Leaf device.
9. A device for bringing an equipment online, characterized in that: The equipment online device comprises: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps of the method according to any one of claims 1 to 4 according to the obtained program instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the computer to execute the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Dynamic host configuration protocol (DHCP) packet forwarding method and apparatus
CN107094110A
Network management method and device
CN114884808A
Equipment zero-configuration online method and device, equipment and storage medium
CN116016179A
Local area network switch configuration method and device
CN116389241A
BGP neighbor establishing method and device
CN116436843A