Equipment online method and device and electronic equipment

By directly connecting the control components to the routing device in the target network, using WebSocket connection and DHCP relay technology, the device is automatically launched, solving the problem of device dependence on uplink devices and address pool restrictions, and supporting the device automation and launching and launching Cross-device aggregation.

CN119211326AActive Publication Date: 2024-12-27NEW H3C TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing equipment automation launch solution is highly dependent on upstream devices, and the network expansion is limited by the address pool capacity, resulting in the equipment launch process being complex and limited.

Method used

In the target network, the control components are directly connected to the routing device, and the routing device is directly connected to the core device. The core device establishes a WebSocket connection based on local configuration information, obtains online information and generates configuration information, completes the online operation of the device, and uses DHCP to After obtaining the IP address and releasing the Vlan interface, the device is automatically launched without the participation of the three-layer switching device, and does not occupy the IP address of the address pool.

Benefits of technology

It realizes the automation of equipment online, reduces the dependence on upstream devices during the equipment online process, solves the problem of restricted network expansion caused by address pool capacity, and supports the automation of equipment online and cross-device aggregation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211326A_ABST
    Figure CN119211326A_ABST
Patent Text Reader

Abstract

The invention provides an equipment online method and device and electronic equipment. The method comprises the steps that a core device starts to establish WebSocket connection with a control component according to local configuration information, the control component obtains online information of the core device in response to establishment of the WebSocket connection, and then first configuration information is generated according to the online information and issued to the core device, and enabling the core equipment to complete online operation according to the first configuration information. According to the method, full-automatic online of the equipment is realized, participation of three-layer switching equipment is not needed in the online process, and the online equipment does not occupy the IP address of the address pool, so that the dependence on uplink equipment in the online process of the equipment is reduced, and the problem that networking capacity expansion is limited due to the capacity of the address pool is solved.
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, device and electronic device for going online. Background Art

[0002] At present, in the three-layer network, in order to realize the automatic online of equipment, it is necessary to configure the three-layer switching equipment and configure the gateway address of the address pool on the three-layer switching equipment. In addition, each online equipment will occupy an address in the address pool. It can be seen that the current automatic online solution of equipment is highly dependent on the upstream equipment, and the network expansion is limited by the capacity of the address pool. Summary of the invention

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

[0004] According to a first aspect of an embodiment of the present application, a device online method is provided, the method being 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, the method comprising:

[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 a local loopback interface address of the core device;

[0006] Generate first configuration information based on 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, 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 being 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, the method comprising:

[0008] Establishing a WebSocket connection with the control component according to the 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] 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.

[0010] According to a third aspect of an embodiment of the present application, a device online method is provided, the method 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 method comprising:

[0011] 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;

[0012] 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;

[0013] The second Vlan interface is deleted under the control of the control component to release the IP address of the second Vlan interface.

[0014] According to a fourth aspect of an embodiment of the present application, a device online method is provided, the method 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 method comprising:

[0015] 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 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;

[0016] 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 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;

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

[0018] According to a fifth aspect of an embodiment of the present application, a device for online device is provided, the device being 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, the device comprising:

[0019] 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 a local loopback interface address of the core device;

[0020] The core configuration sending module is used to generate the 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, 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.

[0021] According to a sixth aspect of an embodiment of the present application, a device for online connection is provided, the device being 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, the device comprising:

[0022] A core connection module, used 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;

[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 for bringing a device online is provided, the device being applied to a convergence device in a target network, the target network 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, the device comprising:

[0025] The aggregation connection module is used to obtain the IP address in the first address pool allocated by the DHCP server to the second Vlan interface through the DHCP relay after the control component controls the core device to create the first Vlan interface and enables the DHCP relay, and configures the IP address of the first Vlan interface as the gateway address of the first address pool, and establish a WebSocket connection with the control component based on the IP address of the second Vlan interface;

[0026] The aggregation online module is used to complete the online operation 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;

[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 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 device comprising:

[0029] An access connection module, configured to obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to a third VLAN interface after the control component controls the core device to create a first VLAN interface and enables the DHCP relay, and configures the IP address of the first VLAN interface as the gateway address of the first address pool, 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, used for, 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, creating a fourth Vlan interface under the control of the control component, and completing 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 deleting 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, there is provided an electronic device, 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 solution 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 a 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 the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the 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 the embodiment of the present application;

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

[0041] Figure 4 A second flow chart of a method for bringing a device online 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 method for bringing a device online provided in an embodiment of the present application;

[0044] Figure 7 A fifth flow chart of a method for bringing a device online 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] Fig. 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, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some 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. The singular forms of "a", "said" and "the" used in this application and the appended 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 and includes any or all possible combinations of one or more associated listed items.

[0049] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, 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, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".

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

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

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

[0053] L3 switch: the three-layer switching device mentioned in the embodiments of the present 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 the present application;

[0057] ACESS: access device mentioned in the embodiments of the present 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 (ie, Fabric1 and Fabric2), and each Fabric includes a three-layer switching device, a core device, an aggregation device, an access device, and a user terminal.

[0059] In the current device automation on-line solution, the IP address of the virtual LAN Vlan1 interface of the three-layer switching device in each Fabric needs to be configured as the gateway address of the Vlan1 address pool and the DHCP relay needs to be enabled, and the IP address of the Vlan4094 interface of the three-layer switching device needs to be configured as the gateway address of the Vlan4094 address pool. After the device is started with an empty configuration, the device will create a Vlan1 interface, and then obtain the IP address in the Vlan1 address pool assigned by the DHCP server to the Vlan1 interface through the DHCP relay, and then establish a WebSocket connection with the control component. At this time, the control component senses the existence of the device and assigns the IP address of the Vlan4094 address pool to the device. Then the control component uses the IP address as the management address to manage the device, and the device automation on-line is completed.

[0060] The above-mentioned automatic device launch solution relies on a Layer 3 switching device. Each Fabric needs to be configured with a Layer 3 switching device to achieve automatic device launch. For multi-Fabric scenarios, multiple Layer 3 switching devices need to be configured, which has a large limitation. In addition, each device will occupy an IP address in the Vlan1 address pool after automatic launch. If the IP addresses in the Vlan1 address pool are all occupied, the problem of being unable to add devices to the network will arise.

[0061] In view of the above technical problems, the embodiments of the present application provide a method, apparatus and electronic device for bringing a device online. The embodiments of the present application are applied to a target network, and the characteristic of the target network is that the core device in each Fabric is directly connected to the routing device. Specifically, the target network includes a control component, a DHCP server, and a routing device. According to actual business needs, the target network may include one or more Fabrics, and each Fabric 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 A target network is shown, 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 method for bringing a device online, 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 The method for bringing a core device online when the control component is the execution subject is illustrated. 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, the online information of the core device is obtained;

[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 establishes 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, and 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, where the local loopback interface address of the core device can specifically be the IP address of the core device's interface LoopBack0.

[0068] After that, the core device can establish a WebSocket connection with the control component according to the local configuration information. The source IP of the WebSocket connection is the local loopback interface address of the core device, and the destination IP is the IP address of the cloud platform service of the control component. In response to the establishment of the WebSocket connection, the control component can obtain the online information of the core device, which includes but is not limited to the local loopback interface address of the core device. After that, the control component can manage and control the core device through the WebSocket connection.

[0069] In response to the establishment of the WebSocket connection, the control component senses the existence 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 and the IP address of the uplink port of the core device are not in the same network segment, while the IP address of the uplink port of the core device and the IP address of the routing device are in the same network segment.

[0071] Therefore, for the core equipment on-line process, the equipment on-line method provided in the embodiment of the present application is different from the current equipment automatic on-line solution in the following ways:

[0072] First, the difference between static routing and the next hop address of the core device to the control component in the current equipment automation on-line solution 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 equipment automation on-line 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 a convergence 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 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, 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 the 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, and it provides relay services between DHCP clients and servers in different network segments. In the 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, and configures the IP address of the first Vlan interface as the gateway address of the first address pool.

[0079] Specifically, when the aggregation device is automatically online, the aggregation device is first started with an empty configuration, and then the aggregation device creates a Vlan1 interface, which is referred to as the second Vlan interface in the embodiment of the present application, and then obtains an IP address in the first address pool allocated by the DHCP server to the second Vlan interface through the DHCP relay. After that, the aggregation device 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 senses the existence of the aggregation device, generates the second configuration information and sends it to the aggregation device, so that the aggregation device completes 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 of 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 of 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, for the online process of the converged device, the device online method provided in the embodiment of the present application has at least the following differences from the current device automatic online solution:

[0083] First, the static routing is different. In the current equipment automation on-line solution, the next hop address of the aggregation device to the control component is the IP address of the Vlan1 interface on the three-layer 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 equipment 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 equipment automation 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] like Figure 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 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, 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. The interface is referred to as the third Vlan interface in the embodiment of the present application. 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 senses the existence of the access device, and then the control component 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 the embodiment of the present application. The control component generates the 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, for the online process of the access device, the device online method provided in the embodiment of the present application has at least the following differences from the current device automatic online solution:

[0094] First, the difference between static routing and access control components in the current equipment automation on-line solution is the IP address of the VLAN 4094 interface on the Layer 3 switching device. In the embodiment of the present application, the next hop address of the access device to the control component is the IP address of the virtual switching instance interface on the core device, that is, the IP address of the VLAN 4094 interface of 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 and its IP address of the access device. 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 with 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 solutions that the embodiments of the present application realize 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 need to occupy the IP address of the Vlan1 address pool, which reduces the dependence of the equipment online process on the upstream device, 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 going online of the core device when the core device is the execution subject is illustrated, and the method includes the following steps:

[0099] Step 610: Establish a WebSocket connection with the control component according to 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 subject 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 IP address in the first address pool allocated by the DHCP server to the second Vlan interface is obtained through the DHCP relay, and a WebSocket connection is established 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 an access device online when the access device is an execution subject is illustrated, and 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, 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;

[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, 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 a local loopback interface address of the core device;

[0115] The core configuration sending module is used to generate the 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, 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 for online connection, which 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, and the device includes:

[0117] A core connection module, used 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, wherein the device includes:

[0120] The aggregation connection module is used to obtain the IP address in the first address pool allocated by the DHCP server to the second Vlan interface through the DHCP relay after the control component controls the core device to create the first Vlan interface and enables the DHCP relay, and configures the IP address of the first Vlan interface as the gateway address of the first address pool, and establish a WebSocket connection with the control component based on the IP address of the second Vlan interface;

[0121] The aggregation online module is used to complete the online operation 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;

[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, wherein the device includes:

[0124] An access connection module, configured to obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to a third VLAN interface after the control component controls the core device to create a first VLAN interface and enables the DHCP relay, and configures the IP address of the first VLAN interface as the gateway address of the first address pool, 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, used for, 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, creating a fourth Vlan interface under the control of the control component, and completing 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 deleting 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 Fig. 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 a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.

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

[0130] 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: 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, and 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 a local loopback interface address of the core device; Generate first configuration information based on 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, 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 also 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 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, generates second configuration information and sends it 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 also 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 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; 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, and the method includes: Establishing a WebSocket connection with the control component according to the 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, and 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, and 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 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; 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 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 for bringing an equipment online, characterized in that: The device is applied to a control component in a target network, the target network further includes a routing device directly connected to the control component and a core device directly connected to the routing device, and the device includes: 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 a local loopback interface address of the core device; The core configuration sending module is used to generate the 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, 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 for bringing an equipment online, characterized in that: The device is applied to a core device in a target network, the target network further includes a routing device directly connected to the core device and a control component directly connected to the routing device, and the device includes: A core connection module, used 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 for bringing an equipment online, characterized in that: The device is applied to a convergence device in a target network, 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, and the device includes: The aggregation connection module is used to obtain the IP address in the first address pool allocated by the DHCP server to the second Vlan interface through the DHCP relay after the control component controls the core device to create the first Vlan interface and enables the DHCP relay, and configures the IP address of the first Vlan interface as the gateway address of the first address pool, and establish a WebSocket connection with the control component based on the IP address of the second Vlan interface; The aggregation online module is used to complete the online operation 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 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 for bringing an equipment online, characterized in that: The device is applied to an access device in a target network, 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, and the device includes: An access connection module, configured to obtain, through the DHCP relay, an IP address in the first address pool allocated by the DHCP server to a third VLAN interface after the control component controls the core device to create a first VLAN interface and enables the DHCP relay, and configures the IP address of the first VLAN interface as the gateway address of the first address pool, and establish a WebSocket connection with the control component based on the IP address of the third VLAN interface; An access and online module, used for, 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, creating a fourth Vlan interface under the control of the control component, and completing 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 deleting 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 described in 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

  • Message processing method, UP device and CP device

    CN113852588A

  • Route announcement method, route announcement device, equipment and storage medium

    CN114301833A

  • Network management method and device

    CN114884808A