Automatic configuration method and device for equipment

Through the automatic configuration method in network management equipment, obtaining equipment interconnection information and updating into the network topology diagram, the problem of low equipment configuration efficiency is solved, and automated configuration is realized, saving human resources and time.

CN114520765BActive Publication Date: 2025-01-28RUIJIE NETWORKS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210037957.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2025-01-28
Estimated Expiration
2042-01-13

AI Technical Summary

Technical Problem

In the prior art, equipment configuration is inefficient, resulting in waste of human resources and time-consuming.

Method used

Through the automatic configuration method in the network management equipment, obtain the interconnection information of the selected device and update it to the network topology diagram, determine the port connection of each network device, and automatically configure the device according to the equipment configuration information.

Benefits of technology

The automated configuration of the device is realized, saving human resources, reducing the configuration time, and improving the configuration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114520765B_ABST
    Figure CN114520765B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic configuration method and device for equipment, the method comprising: updating the interconnection information of selected equipment acquired into the network topology diagram of the selected network, the selected equipment connection information including the interconnection information of the ports of at least two equipments; determining whether each port of each network equipment in the network topology diagram is connected to the ports of two equipments; if it is determined that the first port of the first network equipment in each network equipment is connected to the ports of two equipments, then sending the equipment configuration information of the first equipment first updated into the network topology diagram among the two equipments connected by the first port to the second equipment later updated into the network topology diagram, so that the second equipment is configured according to the equipment configuration information of the first equipment. The scheme can greatly save human resources, reduce time consumption, and improve configuration efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an automatic configuration method and device for equipment. Background Art

[0002] With the rapid development and increasing complexity of network technology, especially the rise of mobile Internet, the automated operation and maintenance of network equipment has become the focus of network construction.

[0003] In a certain network, network devices and terminals are connected through ports. If a network device or terminal fails and needs to be replaced or migrated, the connection relationship will change. At this time, the newly connected terminal or network device needs to be configured, and the connected port also needs to be configured to ensure that the entire network can communicate normally.

[0004] Under the above-mentioned device configuration method, a network administrator is usually required to intervene to configure the newly connected terminal or network device and the access port. This device configuration method greatly wastes human resources, is time-consuming, and has low configuration efficiency. Summary of the invention

[0005] The embodiment of the present invention provides a method and apparatus for automatically configuring a device, so as to solve the problems existing in the prior art of greatly wasting human resources, taking a long time and having low configuration efficiency.

[0006] According to an embodiment of the present invention, there is provided a method for automatic configuration of a device, which is applied to a network management device included in a selected network, wherein the network management device is communicatively connected with each network device included in the selected network, and the method comprises:

[0007] Updating the obtained selected device interconnection information into the network topology map of the selected network, wherein the selected device connection information includes interconnection information of ports of at least two devices;

[0008] Determine whether each port of each network device in the network topology diagram is connected to ports of two devices;

[0009] If it is determined that the first port of the first network device among the network devices is connected to the ports of two devices, the device configuration information of the first device of the two devices connected to the first port that is first updated to the network topology map is sent to the second device that is later updated to the network topology map, so that the second device is configured according to the device configuration information of the first device.

[0010] Optionally, if each access device in each network device is connected to at least one terminal, the method further includes:

[0011] Determine whether the first device in the network topology diagram is connected to at least one terminal;

[0012] If it is determined that the first device in the network topology diagram is connected to at least one terminal, determining whether each port in the network topology diagram where the at least one terminal is connected to the first device is connected to ports of two devices;

[0013] If it is determined that the second port connected to the first device by the first terminal among the at least one terminal in the network topology diagram is simultaneously connected to the third port of the first device and the fourth port of the second device, the port configuration information of the third port is sent to the second device so that the second device configures the fourth port according to the port configuration information.

[0014] Optionally, also include:

[0015] Deleting the interconnection information between the first port of the first network device and the first device in the network topology diagram;

[0016] And delete the interconnection information between the second port of the first terminal and the third port of the first device in the network topology diagram.

[0017] Optionally, also include:

[0018] After receiving a wide area network management protocol CWMP keep-alive message sent by a second network device in each network device, obtaining device interconnection information of each uplink port of the second network device carried in the CWMP keep-alive message to obtain the selected device interconnection information; or,

[0019] After receiving a Simple Network Management Protocol (SNMP) Trap message sent by a third network device among the network devices, obtaining device interconnection information of each downlink port of the third network device carried in the SNMP Trap message to obtain interconnection information of the selected device; or,

[0020] A neighbor table of a fourth network device among the network devices is obtained to obtain interconnection information of the selected device.

[0021] According to an embodiment of the present invention, there is also provided an automatic configuration device for a device, which is applied to a network management device included in a selected network, wherein the network management device is communicatively connected with each network device included in the selected network, and the device comprises:

[0022] An updating module, configured to update the acquired interconnection information of the selected devices into the network topology map of the selected network, wherein the selected device connection information includes interconnection information of ports of at least two devices;

[0023] A first determination module is used to determine whether each port of each network device in the network topology diagram is connected to ports of two devices;

[0024] The first sending module is used to send the device configuration information of the first device first updated to the network topology map to the second device later updated to the network topology map if it is determined that the first port of the first network device among the network devices is connected to the ports of two devices, so that the second device is configured according to the device configuration information of the first device.

[0025] Optionally, if each access device in each network device is connected to at least one terminal, the apparatus further includes:

[0026] A second determination module is used to determine whether the first device in the network topology diagram is connected to at least one terminal; if it is determined that the first device in the network topology diagram is connected to at least one terminal, determine whether each port connecting the at least one terminal in the network topology diagram to the first device is connected to ports of two devices;

[0027] A second sending module is used to send the port configuration information of the third port to the second device if it is determined that the second port connected to the first device by the first terminal among the at least one terminal in the network topology diagram is simultaneously connected to the third port of the first device and the fourth port of the second device, so that the second device configures the fourth port according to the port configuration information.

[0028] Optionally, also include:

[0029] The deletion module is used to delete the interconnection information between the first port of the first network device and the first device in the network topology diagram; and to delete the interconnection information between the second port of the first terminal and the third port of the first device in the network topology diagram.

[0030] Optionally, an acquisition module is also included, which is used to:

[0031] After receiving a wide area network management protocol CWMP keep-alive message sent by a second network device in each network device, obtaining device interconnection information of each uplink port of the second network device carried in the CWMP keep-alive message to obtain the selected device interconnection information; or,

[0032] After receiving a Simple Network Management Protocol (SNMP) Trap message sent by a third network device among the network devices, obtaining device interconnection information of each downlink port of the third network device carried in the SNMP Trap message to obtain interconnection information of the selected device; or,

[0033] A neighbor table of a fourth network device among the network devices is obtained to obtain interconnection information of the selected device.

[0034] According to an embodiment of the present invention, there is also provided an electronic device, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0035] Memory, used to store computer programs;

[0036] The processor is used to implement the above method steps when executing the program stored in the memory.

[0037] According to an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method steps when executed by a processor.

[0038] The beneficial effects of the present invention are as follows:

[0039] The embodiment of the present invention provides a method and apparatus for automatic configuration of equipment, which updates the obtained interconnection information of selected equipment to the network topology map of the selected network, wherein the selected equipment connection information includes the interconnection information of the ports of at least two equipments; determines whether each port of each network equipment in the network topology map is connected to the ports of two equipments; if it is determined that the first port of the first network equipment in each network equipment is connected to the ports of two equipments, then sends the equipment configuration information of the first equipment first updated to the network topology map among the two equipments connected by the first port to the second equipment later updated to the network topology map, so that the second equipment is configured according to the equipment configuration information of the first equipment. In this scheme, after obtaining the interconnection information of the selected equipment, the network topology map of the selected network can be updated first, and then the equipment can be configured based on the network topology map of the selected network. The whole process can be completed without human participation. Compared with the existing method, it can greatly save human resources, reduce time consumption, and improve configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flowchart of an automatic configuration method for a device in an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of the structure of an automatic configuration device of a device in an embodiment of the present invention;

[0042] Figure 3 This is a schematic diagram of the structure of an electronic device shown in this application. DETAILED DESCRIPTION

[0043] In view of the problems in the prior art of greatly wasting human resources, taking a long time and having low configuration efficiency, an embodiment of the present invention provides an automatic configuration method for a device, which is applied to a network management device included in a selected network, and the network management device is communicatively connected with each network device included in the selected network.

[0044] The selected network can be, but is not limited to, a minimalist optical network. As the focus of the network center shifts to business, the management and maintenance of a large number of access / aggregation switches has become a burden for network administrators. Therefore, we began to learn from operators and proposed a flat network construction plan, namely a minimalist optical network, as the market changes. From the network implementation level, the biggest change brought by minimalist optical is that the original [weak-current box access switch pulls the network cable to the indoor] has changed to [pulling the optical fiber from the machine room (building / floor switch) to the indoor switch, and then leading out the indoor network cable], referred to as light into the room. After light enters the room, the number of indoor switches will increase significantly, usually 3 to 6 times the number of traditional weak-current room access switches. Taking 1,000 indoor information points as an example, if a 24-port switch is installed in the weak-current room, 40 units are required; if an 8-port Aurora switch is installed indoors, 125 units are required, a significant increase in number. As the number of indoor Aurora switches continues to increase, the probability of equipment failure increases. When a device fails, the administrator needs to replace the old device with a new one and then configure the new device, which greatly wastes human resources, takes a long time, and has low configuration efficiency.

[0045] Based on the above problems, a device automatic configuration method is proposed. The process of this method is as follows: Figure 1 As shown, the execution steps are as follows:

[0046] S11: updating the obtained interconnection information of the selected device into the network topology map of the selected network.

[0047] The selected device connection information includes interconnection information of ports of at least two devices.

[0048] Based on the communication connection between each network device and the network management device in the selected network, the methods for obtaining the interconnection information of the selected devices may include the following three methods:

[0049] In the first method, after receiving a CPEWAN Management Protocol (CWMP) keep-alive message sent by a second network device among the network devices, device interconnection information of each uplink port of the second network device carried in the CWMP keep-alive message is obtained to obtain the interconnection information of the selected device.

[0050] Each network device in the selected network will periodically send a CWMP keep-alive message to the network management device. The keep-alive message contains the device interconnection information of the device's uplink port, which may specifically be the media access control (Simple Network Management Protocol, MAC) address and port of the connected device.

[0051] The second method is to receive a Simple Network Management Protocol (SNMP) trap message sent by a third network device among the network devices, obtain the device interconnection information of each downlink port of the third network device carried in the SNMP Trap message, and obtain the selected device interconnection information.

[0052] SNMP is a standard protocol designed specifically for managing network devices such as servers, workstations, routers, switches, etc. on Internet Protocol (IP) networks. It is an application layer protocol. After a network device discovers a MAC address learned from a downlink port, it will send an SNMP Trap message to the network management device. The SNMP Trap message carries the learned MAC address, which may include the terminal's MAC address and port.

[0053] The third method is to obtain a neighbor table of a fourth network device among the network devices to obtain interconnection information of the selected device.

[0054] Network devices can, but are not limited to, broadcast their own MAC addresses and ports through the Link Layer Discovery Protocol (LLDP) to facilitate the discovery of their neighbors and establish a neighbor table. Network management equipment can periodically obtain the neighbor table of each network device to update its own network topology.

[0055] It should be noted that the second network device, the third network device, the fourth network device and the first network device may be the same as or different from each other.

[0056] S12: Determine whether each port of each network device in the network topology diagram is connected to ports of two devices.

[0057] Since the network topology diagram is updated in S11, there may be a situation where one port of a network device is connected to the ports of two devices. This may be caused by replacing a device due to a failure. Therefore, it needs to be checked.

[0058] S13: If it is determined that the first port of the first network device among the network devices is connected to the ports of two devices, the device configuration information of the first device that is first updated to the network topology map among the two devices connected to the first port is sent to the second device that is later updated to the network topology map, so that the second device is configured according to the device configuration information of the first device.

[0059] If it is determined that the first port of the first network device in each network device is connected to the ports of two devices, it can be determined that the first device that was updated first to the network topology map among the two devices connected to the first port is replaced by the second device that was updated later to the network topology map. Since the network management device will save the device configuration information of each device in the network topology map, the device configuration information of the first device can be sent to the second device at this time, and the second device is configured according to the device configuration information of the first device, thereby realizing automatic configuration of the replaced device.

[0060] In this solution, after obtaining the interconnection information of the selected device, the network topology of the selected network can be updated first, and then the device can be configured based on the network topology of the selected network. The entire process can be completed without human participation. Compared with the existing method, it can greatly save human resources, reduce time consumption, and improve configuration efficiency.

[0061] Optionally, if each access device in each network device is connected to at least one terminal, the method further includes:

[0062] Determine whether the first device in the network topology diagram is connected to at least one terminal;

[0063] If it is determined that the first device in the network topology diagram is connected to at least one terminal, determining whether each port connected to the first device by at least one terminal in the network topology diagram is connected to ports of two devices;

[0064] If it is determined that the second port connected to the first device by the first terminal in the at least one terminal in the network topology diagram is simultaneously connected to the third port of the first device and the fourth port of the second device, the port configuration information of the third port is sent to the second device so that the second device configures the fourth port according to the port configuration information.

[0065] After the second device replaces the first device, if the second device is an access device in the selected network, the access device will generally be connected to multiple terminals, such as printers, projectors, cameras, etc. After the second device replaces the first device, the network cable of the second device may be blindly plugged, such as the terminal is connected to the Gi 0 / 1 port of the device before the replacement, and the terminal is connected to the Gi 0 / 2 port of the device after the replacement, resulting in the terminal not matching the port service after accessing the second device, ultimately affecting the normal use of the terminal.

[0066] At this time, it is necessary to further determine whether the first device in the network topology is connected to at least one terminal. If it is determined that the first device in the network topology is connected to at least one terminal, it is determined whether the ports connected to the first device in the network topology are connected to the ports of two devices. If it is determined that the second port connected to the first device in the first terminal of at least one terminal in the network topology is connected to the third port of the first device and the fourth port of the second device at the same time, it means that the first terminal has migrated from the third port to the fourth port. At this time, the port configuration information of the third port can be sent to the second device, so that the second device configures the fourth port according to the port configuration information. In this way, the port where the connected terminal has migrated can be automatically configured.

[0067] Optionally, the above method includes:

[0068] Deleting the interconnection information between the first port of the first network device and the first device in the network topology diagram;

[0069] And delete the interconnection information between the second port of the first terminal and the third port of the first device in the network topology diagram.

[0070] After completing the configuration of the above-mentioned replaced device and the configuration of the port where the terminal migrates, the interconnection information between the first port of the first network device and the first device, and the interconnection information between the second port of the first terminal and the third port of the first device, which are first updated to the network topology diagram, are useless information and can be directly deleted to ensure the accuracy of the network topology diagram.

[0071] The following example illustrates the automatic configuration method of the above device. Assume that before replacement, two terminals are connected to the network device SF-A, where terminal 1 is connected to the Gi0 / 1 port and terminal 2 is connected to the Gi0 / 3 port.

[0072] The configuration of port 1 of SF-A is as follows:

[0073]

[0074] Port 3 of SF-A is configured as follows:

[0075]

[0076] SF-A notifies the MAC addresses and ports of Terminal 1 and Terminal 2 to the network management device through SNMP Trap messages:

[0077] Announcement event 1:

[0078] 1. Terminal MAC address: 00:0e:c6:dd:de:ba

[0079] 2. Port: Gi0 / 1

[0080] 3. Action: Learning

[0081] Announcement event 2:

[0082] 1. Terminal MAC address: 00:0e:c6:dd:de:b6

[0083] 2. Port: Gi0 / 3

[0084] 3. Action: Learning

[0085] The network management device will update the port interconnection relationship between SF-A and terminal 1 and terminal 2 into the network topology diagram.

[0086] If SF-A fails and is replaced by SF-B, terminal 1 is connected to the Gi0 / 4 port of SF-B, and terminal 2 is connected to the Gi0 / 6 port of SF-B. SF-B notifies the MAC addresses and ports of terminal 1 and terminal 2 to the network management device through SNMP Trap messages:

[0087] Announcement event 1:

[0088] 1. Terminal MAC address: 00:0e:c6:dd:de:ba

[0089] 2. Port: Gi0 / 4

[0090] 3. Action: Learning

[0091] Announcement event 2:

[0092] 1. Terminal MAC address: 00:0e:c6:dd:de:b6

[0093] 2. Port: Gi0 / 6

[0094] 3. Action: Learning

[0095] The network management device will update the port interconnection relationship between SF-B and terminal 1 and terminal 2 into the network topology diagram.

[0096] After troubleshooting, it was found that terminal 1 migrated from Gi0 / 1 to Gi0 / 4, and terminal 2 migrated from Gi0 / 3 to Gi0 / 6. Therefore, it was necessary to send the configuration information of Gi0 / 1 to Gi0 / 4, and the configuration information of Gi0 / 3 to Gi0 / 6. After SF-B adjusted the port configuration, it was as follows:

[0097]

[0098] The configuration of Gi0 / 1 and Gi0 / 3 of SF-B remains unchanged. When there are terminals connected later, if they are old terminals, the configuration migration is performed according to the above rules; if they are new terminals, the configuration remains unchanged and the original port configuration is retained.

[0099] Based on the same inventive concept, an embodiment of the present invention provides an automatic configuration device for a device, which is applied to a network management device included in a selected network, and the network management device is communicatively connected with each network device included in the selected network. The structure of the device is as follows Figure 2 As shown, including:

[0100] An updating module 21, configured to update the obtained interconnection information of the selected device into the network topology diagram of the selected network, wherein the selected device connection information includes interconnection information of ports of at least two devices;

[0101] A first determination module 22, used to determine whether each port of each network device in the network topology diagram is connected to ports of two devices;

[0102] The first sending module 23 is used to send the device configuration information of the first device that is first updated to the network topology map among the two devices connected to the first port to the second device that is later updated to the network topology map if it is determined that the first port of the first network device among the network devices is connected to the ports of two devices, so that the second device is configured according to the device configuration information of the first device.

[0103] In this solution, after obtaining the interconnection information of the selected device, the network topology of the selected network can be updated first, and then the device can be configured based on the network topology of the selected network. The entire process can be completed without human participation. Compared with the existing method, it can greatly save human resources, reduce time consumption, and improve configuration efficiency.

[0104] Optionally, if each access device in each network device is connected to at least one terminal, the apparatus further includes:

[0105] A second determination module is used to determine whether the first device in the network topology diagram is connected to at least one terminal; if it is determined that the first device in the network topology diagram is connected to at least one terminal, then determine whether each port connected to the first device by at least one terminal in the network topology diagram is connected to ports of two devices;

[0106] The second sending module is used to send the port configuration information of the third port to the second device if it is determined that the second port connected to the first device by the first terminal in the network topology diagram is simultaneously connected to the third port of the first device and the fourth port of the second device, so that the second device configures the fourth port according to the port configuration information.

[0107] Optionally, also include:

[0108] The deletion module is used to delete the interconnection information between the first port of the first network device and the first device in the network topology diagram; and to delete the interconnection information between the second port of the first terminal and the third port of the first device in the network topology diagram.

[0109] Optionally, an acquisition module is also included, which is used to:

[0110] After receiving the CWMP keep-alive message sent by the second network device in each network device, the device interconnection information of each uplink port of the second network device carried in the CWMP keep-alive message is obtained to obtain the interconnection information of the selected device; or,

[0111] After receiving the SNMP Trap message sent by the third network device among the network devices, the device interconnection information of each downlink port of the third network device carried in the SNMP Trap message is obtained to obtain the interconnection information of the selected device; or,

[0112] A neighbor table of a fourth network device among the network devices is obtained to obtain interconnection information of the selected device.

[0113] The present application also provides an electronic device. Figure 3 As shown, it includes a processor 310 , a communication interface 320 , a memory 330 and a communication bus 340 , wherein the processor 310 , the communication interface 320 , and the memory 330 communicate with each other via the communication bus 340 .

[0114] Memory 330, for storing computer programs;

[0115] The processor 310 is used to implement the automatic configuration method of the device described in any of the above embodiments when executing the program stored in the memory 330.

[0116] The communication interface 320 is used for communication between the above electronic device and other devices.

[0117] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0118] 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.

[0119] In this solution, after obtaining the interconnection information of the selected device, the network topology of the selected network can be updated first, and then the device can be configured based on the network topology of the selected network. The entire process can be completed without human participation. Compared with the existing method, it can greatly save human resources, reduce time consumption, and improve configuration efficiency.

[0120] Accordingly, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the automatic configuration method of the device described in any of the above embodiments.

[0121] In this solution, after obtaining the interconnection information of the selected device, the network topology of the selected network can be updated first, and then the device can be configured based on the network topology of the selected network. The entire process can be completed without human participation. Compared with the existing method, it can greatly save human resources, reduce time consumption, and improve configuration efficiency.

[0122] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0123] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0124] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0125] Although the optional embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the optional embodiments and all changes and modifications that fall within the scope of the present invention.

[0126] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for automatic configuration of a device, applied to a network management device included in a selected network, wherein the network management device is communicatively connected with each network device included in the selected network, characterized in that: The method comprises: Updating the obtained selected device interconnection information into the network topology map of the selected network, wherein the selected device connection information includes interconnection information of ports of at least two devices; Determine whether each port of each network device in the network topology diagram is connected to ports of two devices; If it is determined that the first port of the first network device among the network devices is connected to the ports of two devices, the device configuration information of the first device of the two devices connected to the first port that is first updated to the network topology map is sent to the second device that is later updated to the network topology map, so that the second device is configured according to the device configuration information of the first device; wherein the first device is an access device that connects the first network device to the opposite device, and the second device is an access device that replaces the first device.

2. The method according to claim 1, characterized in that If each access device in each network device is connected to at least one terminal, the method further includes: Determine whether the first device in the network topology diagram is connected to at least one terminal; If it is determined that the first device in the network topology diagram is connected to at least one terminal, determining whether each port in the network topology diagram where the at least one terminal is connected to the first device is connected to ports of two devices; If it is determined that the second port connected to the first device by the first terminal among the at least one terminal in the network topology diagram is simultaneously connected to the third port of the first device and the fourth port of the second device, the port configuration information of the third port is sent to the second device so that the second device configures the fourth port according to the port configuration information.

3. The method according to claim 2, characterized in that Also includes: Deleting the interconnection information between the first port of the first network device and the first device in the network topology diagram; And delete the interconnection information between the second port of the first terminal and the third port of the first device in the network topology diagram.

4. The method according to any one of claims 1 to 3, characterized in that: Also includes: After receiving a wide area network management protocol CWMP keep-alive message sent by a second network device in each network device, obtaining device interconnection information of each uplink port of the second network device carried in the CWMP keep-alive message to obtain the selected device interconnection information; or, After receiving a Simple Network Management Protocol (SNMP) Trap message sent by a third network device among the network devices, obtaining device interconnection information of each downlink port of the third network device carried in the SNMP Trap message to obtain interconnection information of the selected device; or, A neighbor table of a fourth network device among the network devices is obtained to obtain interconnection information of the selected device.

5. An automatic configuration device for a device, applied to a network management device included in a selected network, wherein the network management device is communicatively connected with each network device included in the selected network, characterized in that: The device comprises: An updating module, configured to update the acquired interconnection information of the selected devices into the network topology map of the selected network, wherein the selected device connection information includes interconnection information of ports of at least two devices; A first determination module is used to determine whether each port of each network device in the network topology diagram is connected to ports of two devices; A first sending module is used for sending the device configuration information of the first device first updated to the network topology map to the second device later updated to the network topology map if it is determined that the first port of the first network device among the network devices is connected to the ports of two devices, so that the second device is configured according to the device configuration information of the first device; wherein the first device is an access device for connecting the first network device to the opposite device, and the second device is an access device that replaces the first device.

6. The device according to claim 5, characterized in that If each access device in each network device is connected to at least one terminal, the apparatus further includes: A second determination module is used to determine whether the first device in the network topology diagram is connected to at least one terminal; if it is determined that the first device in the network topology diagram is connected to at least one terminal, determine whether each port connecting the at least one terminal in the network topology diagram to the first device is connected to ports of two devices; A second sending module is used to send the port configuration information of the third port to the second device if it is determined that the second port connected to the first device by the first terminal among the at least one terminal in the network topology diagram is simultaneously connected to the third port of the first device and the fourth port of the second device, so that the second device configures the fourth port according to the port configuration information.

7. The device according to claim 6, characterized in that Also includes: A deleting module, used for deleting the interconnection information between the first port of the first network device and the first device in the network topology diagram; And delete the interconnection information between the second port of the first terminal and the third port of the first device in the network topology diagram.

8. The device according to any one of claims 5 to 7, characterized in that: Also includes acquisition modules for: After receiving a wide area network management protocol CWMP keep-alive message sent by a second network device in each network device, obtaining device interconnection information of each uplink port of the second network device carried in the CWMP keep-alive message to obtain the selected device interconnection information; or, After receiving a Simple Network Management Protocol (SNMP) Trap message sent by a third network device among the network devices, obtaining device interconnection information of each downlink port of the third network device carried in the SNMP Trap message to obtain interconnection information of the selected device; or, A neighbor table of a fourth network device among the network devices is obtained to obtain interconnection information of the selected device.

9. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 4 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Port configuration method, device and storage medium for network device

    CN109039788A

  • Network topology construction method and device thereof and network change processing method and device thereof

    CN113194004A