A device online method and device and electronic device

By directly connecting control components with core devices and routing devices in the target network, and utilizing WebSocket and DHCP relay technologies, the device can be automatically put online, solving the existing technology's dependence on three-layer switching devices and address pool limitations, and supporting device expansion.

CN119211326BActive Publication Date: 2025-10-10NEW H3C TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411308007.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2025-10-10
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

The existing automatic device onboarding solution relies on Layer 3 switching devices, resulting in network expansion being limited by the address pool capacity, and each device online occupying one address.

Method used

By directly connecting control components to core devices and routing devices in the target network, and utilizing WebSocket connections and DHCP relay technology, configuration information is generated and distributed to enable automatic device on-line, without the need for Layer 3 switching devices and without occupying addresses in the address pool.

Benefits of technology

It achieves automatic device launch, reduces dependence on upstream devices, and solves the problem of limited network expansion caused by address pool capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211326B_ABST
    Figure CN119211326B_ABST
Patent Text Reader

Abstract

The application provides a device online method and device and electronic equipment. The method comprises: a core device initiates a WebSocket connection with a control component according to local configuration information; the control component acquires online information of the core device in response to the establishment of the WebSocket connection; and then generates first configuration information according to the online information and delivers the first configuration information to the core device, so that the core device completes the online operation according to the first configuration information. The method realizes full-automatic online of the device, the online process does not need participation of a three-layer switching device, and the online device does not occupy an IP address of an address pool, thereby reducing dependence of the device online process on an upstream device and solving the problem of limited network expansion capacity caused by the address pool capacity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, apparatus and electronic device for going online. Background Art

[0002] Currently, automated device onboarding in a Layer 3 network requires a Layer 3 switch and a gateway address from an address pool configured on the Layer 3 switch. Furthermore, each device that goes online occupies an address from the address pool. This means that the current automated device onboarding solution relies heavily on upstream devices, and network expansion is limited by the address pool capacity. Summary of the Invention

[0003] In order to overcome the problems existing in the related art, the present application provides a device online method, device and electronic equipment.

[0004] According to a first aspect of an embodiment of the present application, a device online method is provided. The method is applied to a control component in a target network, wherein the target network further includes a routing device directly connected to the control component and a core device directly connected to the routing device. The method includes:

[0005] After the core device establishes a WebSocket connection with the control component according to the local configuration information, obtaining online information of the core device, wherein the local configuration information includes a local loopback interface address of the core device and an IP address of an uplink port of the core device, and the online information includes the local loopback interface address of the core device;

[0006] The first configuration information is generated based on the online information and sent to the core device so that the core device completes the online operation according to the first configuration information, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

[0007] According to a second aspect of an embodiment of the present application, a device online method is provided. The method is applied to a core device in a target network, wherein the target network further includes a routing device directly connected to the core device and a control component directly connected to the routing device. The method includes:

[0008] Establishing a WebSocket connection with the control component according to local configuration information, and sending online information to the control component, wherein the local configuration information includes the local loopback interface address of the core device and the IP address of the uplink port of the core device, and the online information includes the local loopback interface address of the core device;

[0009] complete the online operation according to the first configuration information sent by the control component, wherein the first configuration information comprises a management address of the core device and a next hop address of the core device to the control component, the management address of the core device is a local loopback interface address of the core device, and the next hop address of the core device to the control component is an IP address of the routing device.

[0010] According to a third aspect of the embodiments of the present application, a device online method is provided, which is applied to a convergence device in a target networking, the target networking further comprising a core device directly connected to the convergence device, a routing device directly connected to the core device, and a control component directly connected to the routing device, and the method comprises the following steps of:

[0011] After the control component controls the core device to create a first Vlan interface and enable DHCP relay, and configures an IP address of the first Vlan interface as a gateway address of a first address pool, an IP address in the first address pool allocated to a second Vlan interface by a DHCP server is acquired through the DHCP relay, and a WebSocket connection between the second Vlan interface and the control component is established based on the IP address of the second Vlan interface.

[0012] complete the online operation according to the second configuration information sent by the control component, wherein the second configuration information comprises a management address of the convergence device and a next hop address of the convergence device to the control component, the management address of the convergence device is a local loopback interface address of the convergence device configured by the control component for the convergence device, and the next hop address of the convergence device to the control component is a local loopback interface address of the core device.

[0013] delete the second Vlan interface under the control of the control component, so as to release the IP address of the second Vlan interface.

[0014] According to a fourth aspect of the embodiments of the present application, a device online method is provided, which is applied to an access device in a target networking, the target networking further comprising a convergence device directly connected to the access device, a core device directly connected to the convergence device, a routing device directly connected to the core device, and a control component directly connected to the routing device, and the method comprises the following steps of:

[0015] After the control component controls the core device to create a first Vlan interface and enable DHCP relay, and configures an IP address of the first Vlan interface as a gateway address of a first address pool, an IP address in the first address pool allocated to a third Vlan interface by a DHCP server is acquired through the DHCP relay, and a WebSocket connection between the third Vlan interface and the control component is established based on the IP address of the third Vlan interface.

[0016] After the control component controls the core device to create a virtual switch instance interface and configures an IP address of the virtual switch instance interface as a gateway address of a second address pool, a fourth Vlan interface is created under the control of the control component, and online operation is completed according to third configuration information sent by the control component, wherein the third configuration information includes a management address of the access device and a next hop address of the access device to the control component, the management address of the access device is an IP address in the second address pool allocated by the control component for the fourth Vlan interface, and the next hop address of the access device to the control component is the IP address of the virtual switch instance interface.

[0017] The third Vlan interface is deleted under the control of the control component, so as to release the IP address of the third Vlan interface.

[0018] According to a fifth aspect of the embodiment of the present application, a device online device is provided, the device is applied to a control component in a target network, the target network further includes a routing device directly connected with the control component and a core device directly connected with the routing device, and the device includes:

[0019] An information obtaining module is configured to obtain online information of the core device after the core device establishes a WebSocket connection with the control component according to local configuration information, wherein the local configuration information includes a local loopback interface address of the core device and an IP address of an uplink port of the core device, and the online information includes the local loopback interface address of the core device.

[0020] A core configuration issuing module is configured to generate first configuration information according to the online information and issue the first configuration information to the core device, so that the core device completes online operation according to the first configuration information, wherein the first configuration information includes a management address of the core device and a next hop address of the core device to the control component, the management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

[0021] According to a sixth aspect of the embodiment of the present application, a device online device is provided, the device is applied to a core device in a target network, the target network further includes a routing device directly connected with the core device and a control component directly connected with the routing device, and the device includes:

[0022] A core connection module is configured to establish a WebSocket connection with the control component according to local configuration information and send online information to the control component, wherein the local configuration information includes a local loopback interface address of the core device and an IP address of an uplink port of the core device, and the online information includes the local loopback interface address of the core device.

[0023] The core online module is used to complete the online operation according to the first configuration information sent by the control component, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

[0024] According to a seventh aspect of an embodiment of the present application, a device online apparatus is provided, the device being applied to an aggregation device in a target network, the target network further comprising a core device directly connected to the aggregation device, a routing device directly connected to the core device, and a control component directly connected to the routing device, the device comprising:

[0025] a converged connection module, configured to, after the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configure the IP address of the first VLAN interface as the gateway address of the first address pool, obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the second VLAN interface, and establish a WebSocket connection with the control component based on the IP address of the second VLAN interface;

[0026] A converged online module is configured to complete an online operation according to the second configuration information sent by the control component, wherein the second configuration information includes a management address of the converged device and a next-hop address of the converged device to the control component, the management address of the converged device is the local loopback interface address of the converged device configured by the control component for the converged device, and the next-hop address of the converged device to the control component is the local loopback interface address of the core device;

[0027] The first deletion module is used to delete the second Vlan interface under the control of the control component to release the IP address of the second Vlan interface.

[0028] According to an eighth aspect of an embodiment of the present application, a device online apparatus is provided, the device being applied to an access device in a target network, the target network further comprising an aggregation device directly connected to the access device, a core device directly connected to the aggregation device, a routing device directly connected to the core device, and a control component directly connected to the routing device, the apparatus comprising:

[0029] an access connection module, configured to, after the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configure the IP address of the first VLAN interface as the gateway address of the first address pool, obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the third VLAN interface, and establish a WebSocket connection with the control component based on the IP address of the third VLAN interface;

[0030] An access and online module is used to create a fourth Vlan interface under the control of the control component after the control component controls the core device to create a virtual switching instance interface and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool, and complete the online operation according to the third configuration information sent by the control component, wherein the third configuration information includes the management address of the access device and the next hop address of the access device to the control component, the management address of the access device is the IP address in the second address pool allocated by the control component to the fourth Vlan interface, and the next hop address of the access device to the control component is the IP address of the virtual switching instance interface;

[0031] The second deletion module is used to delete the third Vlan interface under the control of the control component to release the IP address of the third Vlan interface.

[0032] According to the ninth aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the steps of the device online method described above.

[0033] The technical solutions provided by the embodiments of the present application may have the following beneficial effects:

[0034] In an embodiment of the present application, the device online method is applied to the target network, in which the control component is directly connected to the routing device, and the routing device is directly connected to the core device. After the core device is started, a WebSocket connection is first established between the core device and the control component based on the local configuration information. Then, the control component responds to the establishment of the WebSocket connection to obtain the online information of the core device, and then generates the first configuration information based on the online information and sends it to the core device, so that the core device completes the online operation according to the first configuration information.

[0035] It can be seen that this technical solution realizes the automatic online launch of equipment. The online process does not require the participation of three-layer switching equipment, and the online equipment does not occupy the IP address of the address pool, which reduces the dependence of the equipment online process on the upstream equipment and solves the problem of limited network expansion caused by the address pool capacity.

[0036] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0038] Figure 1 This is a schematic diagram of the existing three-layer network;

[0039] Figure 2 A schematic diagram of the target network provided in an embodiment of the present application;

[0040] Figure 3 A first flow chart of a device online method provided in an embodiment of the present application;

[0041] Figure 4 A second flow chart of a device online method provided in an embodiment of the present application;

[0042] Figure 5 A third flow chart of a device online method provided in an embodiment of the present application;

[0043] Figure 6 A fourth flow chart of a device online method provided in an embodiment of the present application;

[0044] Figure 7 A fifth flow chart of a device online method provided in an embodiment of the present application;

[0045] Figure 8 A sixth flow chart of a device online method provided in an embodiment of the present application;

[0046] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0048] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0049] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "when" or "when".

[0050] Figure 1 The following is a schematic diagram of the existing three-layer network. Figure 2 The target networking diagrams provided in the embodiments of the present application first explain the nouns in the two diagrams:

[0051] DHCP: the DHCP server mentioned in the embodiments of this application;

[0052] Router: the routing device mentioned in the embodiments of this application;

[0053] L3 switch: the three-layer switching device mentioned in the embodiments of this application;

[0054] Fabric: A virtual physical connectivity domain that includes SPINE, LEAF, ACESS, and user terminals. All devices in the domain are reachable to each other.

[0055] SPINE: core device mentioned in the embodiments of this application;

[0056] LEAF: the convergence device mentioned in the embodiments of this application;

[0057] ACESS: access device mentioned in the embodiments of this application.

[0058] like Figure 1 The existing three-layer network shown includes a control component, a DHCP server, and a routing device. Figure 1 The illustrated network specifically includes two fabrics (Fabric 1 and Fabric 2), each of which includes a three-layer switching device, a core device, an aggregation device, an access device, and a user terminal.

[0059] In the current automated device onboarding solution, the IP address of the VLAN1 interface of each Layer 3 switching device within the fabric must be configured as the gateway address of the VLAN1 address pool and DHCP relay must be enabled. Furthermore, the IP address of the VLAN4094 interface of the Layer 3 switching device must be configured as the gateway address of the VLAN4094 address pool. After the device starts up with an empty configuration, it creates the VLAN1 interface and obtains an IP address from the VLAN1 address pool assigned to it by the DHCP server through the DHCP relay. It then establishes a WebSocket connection with the control component. The control component then senses the device's presence and assigns it an IP address from the VLAN4094 address pool. The control component then manages the device using this IP address as the management address, completing automated device onboarding.

[0060] The above-mentioned automated device onboarding solution relies on a Layer 3 switching device. Each fabric requires a Layer 3 switching device for automated device onboarding. In multi-fabric scenarios, multiple Layer 3 switching devices are required, which presents significant limitations. Furthermore, each device automatically onboards occupies an IP address in the VLAN 1 address pool. If all IP addresses in the VLAN 1 address pool are occupied, additional devices will become unavailable for networking.

[0061] To address the above technical issues, embodiments of the present application provide a device online method, apparatus, and electronic device. These embodiments are applied to a target network, characterized by direct connection of the core devices within each fabric to the routing devices. Specifically, the target network includes a control component, a DHCP server, and a routing device. Based on actual business needs, the target network may include one or more fabrics, each of which includes a core device directly connected to the routing device, an aggregation device directly connected to the core device, and an access device directly connected to the aggregation device. Figure 2 The diagram shows a target network, which specifically includes two Fabrics (Fabric1 and Fabric2). It should be noted that the embodiment of the present application does not limit the number of Fabrics in the target network. Figure 2 It is only provided as an illustration.

[0062] Next, the embodiments of the present application are described in detail.

[0063] An embodiment of the present application provides a device online method, which is applied to a control component in a target network. The target network also includes a routing device directly connected to the control component and a core device directly connected to the routing device. Figure 3 This section illustrates a method for bringing a core device online when the control component is the execution entity. The method may include the following steps:

[0064] Step 310: After the core device establishes a WebSocket connection with the control component according to the local configuration information, obtain the online information of the core device;

[0065] Step 320: Generate first configuration information according to the online information and send it to the core device, so that the core device completes the online operation according to the first configuration information.

[0066] Specifically, the control component first configures the binding relationship between the DHCP server and the first address pool, namely the Vlan1 address pool, and then the control component notifies the DHCP server to establish the first address pool and the control component to establish the second address pool, namely the Vlan4094 address pool.

[0067] After the core device is started with an empty configuration, the user manually configures the core device. The core device generates local configuration information based on the user configuration operation. The local configuration information specifically includes the local loopback interface address of the core device and the IP address of the uplink port of the core device. The local loopback interface address of the core device can specifically be the IP address of the core device's interface LoopBack0.

[0068] The core device then establishes a WebSocket connection with the control component based on its local configuration information. The source IP address of the WebSocket connection is the core device's local loopback interface address, and the destination IP address is the IP address of the control component's cloud platform service. In response to this WebSocket connection, the control component obtains the core device's online information, including but not limited to the core device's local loopback interface address. The control component then manages and controls the core device through this WebSocket connection.

[0069] In response to the establishment of the WebSocket connection, the control component senses the presence of the core device and generates an automated table entry. The user then configures the name of the core device's uplink port and the IP address of the routing device on the control component. After the user clicks to deploy, the control component generates the first configuration information based on the online information and user configuration operations and sends it to the core device. The first configuration information may include the management address of the core device and the next-hop address of the core device to the control component. The management address of the core device is specifically configured as the local loopback address of the core device, and the next-hop address of the core device to the control component is specifically configured as the IP address of the routing device. The first configuration information may also include the name of the core device's uplink port.

[0070] It is worth mentioning that the local loopback interface address of the core device is not in the same network segment as the IP address of the core device's uplink port, while the IP address of the core device's uplink port is in the same network segment as the IP address of the routing device.

[0071] Therefore, regarding the core device on-line process, the device on-line method provided in the embodiment of the present application differs from the current device automated on-line solution in at least the following ways:

[0072] First, the difference between static routing and the current device automation on-line solution is that the next-hop address of the core device to the control component is the gateway address of the Vlan4094 address pool. In the embodiment of the present application, the next-hop address of the core device to the control component is the IP address of the routing device.

[0073] Second, the control component management methods are different. In the current device automation online solution, the IP address of the virtual switching instance interface on the core device, namely Vsi4094, is used as the management address of the core device. In the embodiment of the present application, the local loopback interface address of the core device, namely the IP address of the core device LoopBack0, is used as the management address of the core device.

[0074] like Figure 2 As shown, the target network of the embodiment of the present application also includes an aggregation device directly connected to the core device. Figure 4 The method for bringing a converged device online when the control component is the execution subject is illustrated. The method may include the following steps:

[0075] Step 410: Control the core device to create a first VLAN interface and enable DHCP relay, and configure the IP address of the first VLAN interface as the gateway address of the first address pool;

[0076] Step 420: After the aggregation device obtains an IP address from the first address pool allocated by the DHCP server to the second VLAN interface through the DHCP relay and establishes a WebSocket connection with the control component based on the IP address of the second VLAN interface, second configuration information is generated and sent to the aggregation device, so that the aggregation device completes the online operation according to the second configuration information.

[0077] Step 430: Control the aggregation device to delete the second VLAN interface to release the IP address of the second VLAN interface.

[0078] In an embodiment of the present application, after the core device is online, the control component selects the core device as the Seed device. The Seed device has two functions: one is to act as a DHCP relay, and the other is to act as a gateway for aggregation devices and access devices. The DHCP relay is a relay forwarder of DHCP messages. It provides relay services between DHCP clients and servers in different network segments. In an embodiment of the present application, the control component controls the core device to create a Vlan1 interface, which is referred to as the first Vlan interface in the embodiment of the present application, and enables the DHCP relay, configuring the IP address of the first Vlan interface as the gateway address of the first address pool.

[0079] Specifically, when the aggregation device automatically goes online, it first starts with an empty configuration. It then creates a VLAN 1 interface, which is referred to as the second VLAN interface in this embodiment of the application. The device then uses the DHCP relay agent to obtain an IP address from the first address pool allocated to the second VLAN interface by the DHCP server. The aggregation device then establishes a WebSocket connection with the control component based on the IP address of the second VLAN interface.

[0080] In response to the establishment of the WebSocket connection, the control component detects the presence of the aggregation device, generates second configuration information, and sends it to the aggregation device, enabling the aggregation device to complete the online operation according to the second configuration information. The second configuration information includes the management address of the aggregation device and the next-hop address from the aggregation device to the control component. The management address of the aggregation device is specifically configured as the local loopback interface address of the aggregation device configured by the control component for the aggregation device, and the next-hop address from the aggregation device to the control component is specifically configured as the local loopback interface address of the core device.

[0081] Finally, the control component controls the aggregation device to delete the second VLAN interface to release the IP address of the second VLAN interface.

[0082] Therefore, regarding the aggregation device on-line process, the device on-line method provided in the embodiment of the present application differs from the current device automatic on-line solution in at least the following ways:

[0083] First, static routing is different. In the current device automation on-line solution, the next-hop address of the aggregation device to the control component is the IP address of the VLAN 1 interface on the Layer 3 switching device. In the embodiment of the present application, the next-hop address of the aggregation device to the control component is the local loopback interface address of the core device, that is, the IP address of the core device LoopBack0.

[0084] Second, the control component management method is different. In the current device automation on-line solution, the IP address of the virtual switching instance interface of the aggregation device, namely Vsi4094, is used as the management address of the aggregation device. In the embodiment of the present application, the local loopback interface address of the aggregation device, namely the IP address of the aggregation device LoopBack0, is used as the management address of the aggregation device.

[0085] Third, whether the IP address in the Vlan1 address pool is occupied. The current device automatic online solution will retain the second Vlan interface and its IP address of the aggregation device. In the embodiment of the present application, after the aggregation device is online, the control component will delete the second Vlan interface on the aggregation device to release the IP address of the second Vlan interface.

[0086] likeFigure 2 As shown, the target network of the embodiment of the present application also includes an access device directly connected to the aggregation device. Figure 5 The method for accessing a device when the control component is the execution subject is illustrated. The method may specifically include the following steps:

[0087] Step 510: After the access device obtains an IP address from the first address pool allocated by the DHCP server to the third VLAN interface through the DHCP relay and establishes a WebSocket connection with the control component based on the IP address of the third VLAN interface, the control core device creates a virtual switching instance interface and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool;

[0088] Step 520: Control the access device to create a fourth VLAN interface, generate third configuration information, and send it to the access device, so that the access device completes the online operation according to the third configuration information.

[0089] Step 530: Control the access device to delete the third VLAN interface to release the IP address of the third VLAN interface.

[0090] When the access device automatically goes online, the access device first starts with an empty configuration, and then the access device creates a Vlan1 interface. In the embodiment of the present application, this interface is referred to as the third Vlan interface. The access device obtains the IP address in the first address pool allocated by the DHCP server to the third Vlan interface through the DHCP relay, and establishes a WebSocket connection with the control component based on the IP address of the third Vlan interface.

[0091] In response to the establishment of the WebSocket connection, the control component detects the presence of the access device. The control component then controls the core device to create a virtual switching instance interface, namely, the Vsi4094 interface, and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool. Finally, the control component controls the access device to create the Vlan4094 interface, which is referred to as the fourth Vlan interface in this embodiment of the application. The control component generates third configuration information and sends it to the access device, so that the access device completes the online operation according to the third configuration information.

[0092] The above-mentioned third configuration information includes the management address of the access device and the next-hop address of the access device to the control component, wherein the management address of the access device is configured as the IP address in the second address pool allocated by the control component to the fourth Vlan interface, and the next-hop address of the access device to the control component is configured as the IP address of the virtual switching instance interface.

[0093] Therefore, regarding the online process of access devices, the device online method provided in the embodiments of the present application differs from the current automated device online solution in at least the following ways:

[0094] First, static routing is different. In the current device automation onboarding solution, the next-hop address from the access device to the control component is the IP address of the VLAN 4094 interface on the Layer 3 switch. In the embodiment of the present application, the next-hop address from the access device to the control component is the IP address of the virtual switch instance interface on the core device, that is, the IP address of the VLAN 4094 interface on the core device.

[0095] Second, whether the IP address in the Vlan1 address pool is occupied. The current device automation online solution will retain the third Vlan interface of the access device and its IP address. In the embodiment of the present application, after the access device is online, the control component will delete the third Vlan interface on the access device to release the IP address of the third Vlan interface.

[0096] It should be noted that in the embodiment of the present application, after the device is online, the control component does not need to statically bind the IP address of the device's Vlan1 interface to the device's MAC address through the DHCP server. In this way, the IP of the same Vlan1 interface can be reused, and there is no need to worry about insufficient Vlan1 addresses resulting in the inability to expand the device.

[0097] It can be seen from the above technical solution that the embodiment of the present application realizes the automatic online launch of equipment. No matter whether it is a core device, an aggregation device or an access device, the online process does not require the participation of a three-layer switching device, and does not require the occupation of the IP address of the Vlan1 address pool. It reduces the dependence of the equipment online process on the upstream device, and solves the problem of limited equipment expansion caused by the address pool capacity, and supports cross-device aggregation of the core equipment uplink port.

[0098] An embodiment of the present application also provides a device online method, which is applied to a core device in a target network. The target network also includes a routing device directly connected to the core device and a control component directly connected to the routing device. Figure 6 The method for bringing a core device online when the core device is the execution subject is illustrated. The method includes the following steps:

[0099] Step 610: Establish a WebSocket connection with the control component based on the local configuration information, and send online information to the control component;

[0100] The local configuration information includes the local loopback interface address of the core device and the IP address of the uplink port of the core device, and the online information includes the local loopback interface address of the core device.

[0101] Step 620: Complete the online operation according to the first configuration information sent by the control component.

[0102] The first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

[0103] An embodiment of the present application also provides a device online method, which is applied to an aggregation device in a target network. The target network also includes a core device directly connected to the aggregation device, a routing device directly connected to the core device, and a control component directly connected to the routing device. Figure 7 The method for bringing a converged device online when the converged device is the execution entity is illustrated. The method includes the following steps:

[0104] Step 710: After the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configures the IP address of the first VLAN interface as the gateway address of the first address pool, the control component obtains, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the second VLAN interface, and establishes a WebSocket connection with the control component based on the IP address of the second VLAN interface.

[0105] Step 720: Complete the online operation according to the second configuration information sent by the control component;

[0106] Among them, the second configuration information includes the management address of the aggregation device and the next hop address of the aggregation device to the control component. The management address of the aggregation device is the local loopback interface address of the aggregation device configured by the control component for the aggregation device, and the next hop address of the aggregation device to the control component is the local loopback interface address of the core device.

[0107] Step 730: Delete the second Vlan interface under the control of the control component to release the IP address of the second Vlan interface.

[0108] An embodiment of the present application also provides a device online method, which is applied to an access device in a target network. The target network also includes an aggregation device directly connected to the access device, a core device directly connected to the aggregation device, a routing device directly connected to the core device, and a control component directly connected to the routing device. Figure 8 The method for accessing a device online when the access device is the execution subject is illustrated. The method includes the following steps:

[0109] Step 810: After the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configures the IP address of the first VLAN interface as the gateway address of the first address pool, the core device obtains an IP address in the first address pool allocated by the DHCP server to the third VLAN interface through the DHCP relay, and establishes a WebSocket connection with the control component based on the IP address of the third VLAN interface.

[0110] Step 820: After the control component controls the core device to create a virtual switching instance interface and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool, a fourth VLAN interface is created under the control of the control component, and the online operation is completed according to the third configuration information sent by the control component.

[0111] Among them, the third configuration information includes the management address of the access device and the next-hop address of the access device to the control component. The management address of the access device is the IP address in the second address pool allocated by the control component to the fourth Vlan interface, and the next-hop address of the access device to the control component is the IP address of the virtual switching instance interface.

[0112] Step 830: Delete the third VLAN interface under the control of the control component to release the IP address of the third VLAN interface.

[0113] Based on the same inventive concept, the present application also provides a device online device, which is applied to a control component in a target network, wherein the target network also includes a routing device directly connected to the control component and a core device directly connected to the routing device, and the device includes:

[0114] An information acquisition module, configured to acquire online information of the core device after the core device establishes a WebSocket connection with the control component according to local configuration information, wherein the local configuration information includes a local loopback interface address of the core device and an IP address of an uplink port of the core device, and the online information includes the local loopback interface address of the core device;

[0115] The core configuration sending module is used to generate the first configuration information based on the online information and send it to the core device, so that the core device can complete the online operation according to the first configuration information, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

[0116] Based on the same inventive concept, the present application provides a device online device, which is applied to a core device in a target network. The target network also includes a routing device directly connected to the core device and a control component directly connected to the routing device. The device includes:

[0117] A core connection module, configured to establish a WebSocket connection with the control component according to local configuration information, and send online information to the control component, wherein the local configuration information includes the local loopback interface address of the core device and the IP address of the uplink port of the core device, and the online information includes the local loopback interface address of the core device;

[0118] The core online module is used to complete the online operation according to the first configuration information sent by the control component, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

[0119] The present application also provides a device online device, which is applied to a convergence device in a target network, wherein the target network further includes a core device directly connected to the convergence device, a routing device directly connected to the core device, and a control component directly connected to the routing device. The device includes:

[0120] a converged connection module, configured to, after the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configure the IP address of the first VLAN interface as the gateway address of the first address pool, obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the second VLAN interface, and establish a WebSocket connection with the control component based on the IP address of the second VLAN interface;

[0121] A converged online module is configured to complete an online operation according to the second configuration information sent by the control component, wherein the second configuration information includes a management address of the converged device and a next-hop address of the converged device to the control component, the management address of the converged device is the local loopback interface address of the converged device configured by the control component for the converged device, and the next-hop address of the converged device to the control component is the local loopback interface address of the core device;

[0122] The first deletion module is used to delete the second Vlan interface under the control of the control component to release the IP address of the second Vlan interface.

[0123] The present application also provides a device online device, which is applied to an access device in a target network, wherein the target network further includes an aggregation device directly connected to the access device, a core device directly connected to the aggregation device, a routing device directly connected to the core device, and a control component directly connected to the routing device. The device includes:

[0124] an access connection module, configured to, after the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configure the IP address of the first VLAN interface as the gateway address of the first address pool, obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the third VLAN interface, and establish a WebSocket connection with the control component based on the IP address of the third VLAN interface;

[0125] An access and online module is used to create a fourth Vlan interface under the control of the control component after the control component controls the core device to create a virtual switching instance interface and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool, and complete the online operation according to the third configuration information sent by the control component, wherein the third configuration information includes the management address of the access device and the next hop address of the access device to the control component, the management address of the access device is the IP address in the second address pool allocated by the control component to the fourth Vlan interface, and the next hop address of the access device to the control component is the IP address of the virtual switching instance interface;

[0126] The second deletion module is used to delete the third Vlan interface under the control of the control component to release the IP address of the third Vlan interface.

[0127] The present application also provides an electronic device, such as Figure 9 As shown, it includes a processor 910 and a machine-readable storage medium 920, and the machine-readable storage medium 920 stores machine-executable instructions that can be executed by the processor 910. The processor 910 is prompted by the machine-executable instructions to implement the steps of any of the above-mentioned device online methods.

[0128] The machine-readable storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Alternatively, the machine-readable storage medium may be at least one storage device located remote from the processor.

[0129] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0130] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle 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: The method is applied to a control component in a target network, wherein the target network further includes a routing device directly connected to the control component and a core device directly connected to the routing device. The method includes: After the core device establishes a WebSocket connection with the control component according to the local configuration information, obtaining online information of the core device, wherein the local configuration information includes a local loopback interface address of the core device and an IP address of an uplink port of the core device, and the online information includes the local loopback interface address of the core device; The first configuration information is generated based on the online information and sent to the core device so that the core device completes the online operation according to the first configuration information, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

2. The method according to claim 1, characterized in that The target network further includes a convergence device directly connected to the core device, and the method further includes: Control the core device to create a first Vlan interface and enable DHCP relay, and configure the IP address of the first Vlan interface as the gateway address of the first address pool; After the aggregation device obtains an IP address in the first address pool allocated by the DHCP server to the second VLAN interface through the DHCP relay, and establishes a WebSocket connection with the control component based on the IP address of the second VLAN interface, second configuration information is generated and sent to the aggregation device, so that the aggregation device completes the online operation according to the second configuration information, wherein the second configuration information includes the management address of the aggregation device and the next hop address of the aggregation device to the control component, the management address of the aggregation device is the local loopback interface address of the aggregation device configured by the control component for the aggregation device, and the next hop address of the aggregation device to the control component is the local loopback interface address of the core device; Control the aggregation device to delete the second VLAN interface to release the IP address of the second VLAN interface.

3. The method according to claim 2, characterized in that The target network further includes an access device directly connected to the aggregation device, and the method further includes: After the access device obtains an IP address in the first address pool allocated by the DHCP server to the third VLAN interface through the DHCP relay and establishes a WebSocket connection with the control component based on the IP address of the third VLAN interface, the control core device creates a virtual switching instance interface and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool; Control the access device to create a fourth Vlan interface, generate third configuration information and send it to the access device, so that the access device completes the online operation according to the third configuration information, wherein the third configuration information includes the management address of the access device and the next hop address of the access device to the control component, the management address of the access device is an IP address in the second address pool allocated by the control component to the fourth Vlan interface, and the next hop address of the access device to the control component is the IP address of the virtual switching instance interface; Control the access device to delete the third Vlan interface to release the IP address of the third Vlan interface.

4. A device online method, characterized in that: The method is applied to a core device in a target network, wherein the target network further includes a routing device directly connected to the core device and a control component directly connected to the routing device. The method includes: Establishing a WebSocket connection with the control component according to local configuration information, and sending online information to the control component, wherein the local configuration information includes the local loopback interface address of the core device and the IP address of the uplink port of the core device, and the online information includes the local loopback interface address of the core device; The online operation is completed according to the first configuration information sent by the control component, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component, the management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

5. A device online method, characterized in that: The method is applied to a convergence device in a target network, wherein the target network further includes a core device directly connected to the convergence device, a routing device directly connected to the core device, and a control component directly connected to the routing device. The method includes: After the control component controls the core device to create a first Vlan interface and enable the DHCP relay, and configures the IP address of the first Vlan interface as the gateway address of the first address pool, obtains the IP address in the first address pool allocated by the DHCP server to the second Vlan interface through the DHCP relay, and establishes a WebSocket connection with the control component based on the IP address of the second Vlan interface; The online operation is completed according to the second configuration information sent by the control component, wherein the second configuration information includes the management address of the aggregation device and the next hop address of the aggregation device to the control component, the management address of the aggregation device is the local loopback interface address of the aggregation device configured by the control component for the aggregation device, and the next hop address of the aggregation device to the control component is the local loopback interface address of the core device; The second Vlan interface is deleted under the control of the control component to release the IP address of the second Vlan interface.

6. A device online method, characterized in that: The method is applied to an access device in a target network, wherein the target network further includes an aggregation device directly connected to the access device, a core device directly connected to the aggregation device, a routing device directly connected to the core device, and a control component directly connected to the routing device. The method includes: After the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configures the IP address of the first VLAN interface as the gateway address of the first address pool, the control component obtains, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the third VLAN interface, and establishes a WebSocket connection with the control component based on the IP address of the third VLAN interface; After the control component controls the core device to create a virtual switching instance interface and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool, a fourth Vlan interface is created under the control of the control component, and an online operation is completed according to the third configuration information sent by the control component, wherein the third configuration information includes a management address of the access device and a next-hop address of the access device to the control component, the management address of the access device is an IP address in the second address pool allocated by the control component to the fourth Vlan interface, and the next-hop address of the access device to the control component is the IP address of the virtual switching instance interface; The third Vlan interface is deleted under the control of the control component to release the IP address of the third Vlan interface.

7. A device online device, characterized in that: The device is applied to a control component in a target network, the target network further comprising a routing device directly connected to the control component and a core device directly connected to the routing device, and the device comprises: An information acquisition module, configured to acquire online information of the core device after the core device establishes a WebSocket connection with the control component according to local configuration information, wherein the local configuration information includes a local loopback interface address of the core device and an IP address of an uplink port of the core device, and the online information includes the local loopback interface address of the core device; The core configuration sending module is used to generate the first configuration information based on the online information and send it to the core device, so that the core device can complete the online operation according to the first configuration information, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

8. A device online, characterized in that: The apparatus is applied to a core device in a target network, the target network further comprising a routing device directly connected to the core device and a control component directly connected to the routing device, and the apparatus comprises: A core connection module, configured to establish a WebSocket connection with the control component according to local configuration information, and send online information to the control component, wherein the local configuration information includes the local loopback interface address of the core device and the IP address of the uplink port of the core device, and the online information includes the local loopback interface address of the core device; The core online module is used to complete the online operation according to the first configuration information sent by the control component, wherein the first configuration information includes the management address of the core device and the next hop address of the core device to the control component. The management address of the core device is the local loopback interface address of the core device, and the next hop address of the core device to the control component is the IP address of the routing device.

9. A device online, characterized in that: The apparatus is applied to a convergence device in a target network, wherein the target network further includes a core device directly connected to the convergence device, a routing device directly connected to the core device, and a control component directly connected to the routing device. The apparatus includes: a converged connection module, configured to, after the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configure the IP address of the first VLAN interface as the gateway address of the first address pool, obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the second VLAN interface, and establish a WebSocket connection with the control component based on the IP address of the second VLAN interface; A converged online module is configured to complete an online operation according to the second configuration information sent by the control component, wherein the second configuration information includes a management address of the converged device and a next-hop address of the converged device to the control component, the management address of the converged device is the local loopback interface address of the converged device configured by the control component for the converged device, and the next-hop address of the converged device to the control component is the local loopback interface address of the core device; The first deletion module is used to delete the second Vlan interface under the control of the control component to release the IP address of the second Vlan interface.

10. A device online, characterized in that: The apparatus is applied to an access device in a target network, wherein the target network further includes an aggregation device directly connected to the access device, a core device directly connected to the aggregation device, a routing device directly connected to the core device, and a control component directly connected to the routing device. The apparatus includes: an access connection module, configured to, after the control component controls the core device to create a first VLAN interface and enable the DHCP relay, and configure the IP address of the first VLAN interface as the gateway address of the first address pool, obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to the third VLAN interface, and establish a WebSocket connection with the control component based on the IP address of the third VLAN interface; An access and online module is used to create a fourth Vlan interface under the control of the control component after the control component controls the core device to create a virtual switching instance interface and configures the IP address of the virtual switching instance interface as the gateway address of the second address pool, and complete the online operation according to the third configuration information sent by the control component, wherein the third configuration information includes the management address of the access device and the next hop address of the access device to the control component, the management address of the access device is the IP address in the second address pool allocated by the control component to the fourth Vlan interface, and the next hop address of the access device to the control component is the IP address of the virtual switching instance interface; The second deletion module is used to delete the third Vlan interface under the control of the control component to release the IP address of the third Vlan interface.

11. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Message forwarding method and apparatus

    CN109495369A

  • Network equipment management method and device, network management equipment and medium

    CN112887968A