CN110995502B - Network configuration management method, device, switching equipment and readable storage medium - Google Patents

Network configuration management method, device, switching equipment and readable storage medium Download PDF

Info

Publication number
CN110995502B
CN110995502B CN201911307703.8A CN201911307703A CN110995502B CN 110995502 B CN110995502 B CN 110995502B CN 201911307703 A CN201911307703 A CN 201911307703A CN 110995502 B CN110995502 B CN 110995502B
Authority
CN
China
Prior art keywords
switching device
switching
configuration information
network
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911307703.8A
Other languages
Chinese (zh)
Other versions
CN110995502A (en
Inventor
殷锦华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911307703.8A priority Critical patent/CN110995502B/en
Publication of CN110995502A publication Critical patent/CN110995502A/en
Application granted granted Critical
Publication of CN110995502B publication Critical patent/CN110995502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Abstract

The application provides a network configuration management method, a network configuration management device, a switching device and a readable storage medium. The method comprises the following steps: after the first switching equipment is determined to be root bridge equipment in a plurality of switching equipment of the network system, sending network management messages to other switching equipment in the plurality of switching equipment; receiving configuration information of second switching equipment sent by each second switching equipment in the network system according to the network management message; and generating a configuration table entry corresponding to each second switching device according to the configuration information of each second switching device, wherein the configuration information in the configuration table entry is synchronous with the configuration information of the corresponding second switching device. In the scheme, a management server does not need to be deployed independently, so that the IP address resources for network configuration management are saved, and the problem that the IP address resources are more scarce is solved.

Description

Network configuration management method, device, switching equipment and readable storage medium
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a network configuration management method, an apparatus, a switching device, and a readable storage medium.
Background
With the development of networks, more and more devices are accessed in the networks, and the number of required switching devices is increased. At present, in order to manage each switching device, a network management server is usually deployed separately, and the network management server needs to communicate with each switching device to manage and control each switching device. With the widespread use of server virtualization, in the process of dynamic migration of a virtual server, if the virtual server needs to be migrated to another two-layer domain, the address of the network management server itself needs to be changed. In the migration process, the running states such as a Transmission Control Protocol (TCP) connection and the like are usually interrupted, which means that the service carried by the server is interrupted, thereby affecting the normal processing of the service. In addition, as more and more devices are accessed in the network, IP (Internet Protocol) address resources are more scarce, and the network management server occupies the IP address resources.
Disclosure of Invention
The application provides a network configuration management method, a network configuration management device, a switching device and a readable storage medium, which can solve the problem that IP address resources are more scarce in a network configuration management process.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a network configuration management method, which is applied to a first switch device, where the first switch device is any switch device in a network system including multiple switch devices, and the method includes:
after the first switching device is determined to be a root bridge device in a plurality of switching devices of the network system, sending a network management message to other switching devices in the plurality of switching devices;
receiving configuration information of each second switching device in the network system, which is sent by each second switching device according to the network management message, wherein the second switching device is one switching device except the first switching device in the plurality of switching devices;
and generating a configuration table entry corresponding to each second switching device according to the configuration information of each second switching device, wherein the configuration information in the configuration table entry is synchronous with the configuration information of the corresponding second switching device.
In the above embodiment, one of the slave switching devices is directly selected as the root bridge device, and the configuration information of the other switching devices is centrally managed, so that a management server does not need to be separately deployed, and thus the IP address resources for network configuration management are saved, and the problem that the IP address resources are more scarce is solved.
With reference to the first aspect, in some optional embodiments, the method further comprises:
changing the configuration information in the target configuration table item based on the received change operation instruction;
and sending the changed target configuration information to second exchange equipment corresponding to the target configuration table entry.
In the above embodiment, the administrator may directly modify the configuration information of the other switching devices stored in the root bridge, and the root bridge synchronizes the modified configuration information to the corresponding switching devices, thereby modifying the configuration information of the other switching devices.
With reference to the first aspect, in some optional implementations, before sending the network management packet to other switching devices in the plurality of switching devices, the method further includes:
acquiring the priority of each switching device in the network system;
and when the priority of the first switching equipment is determined to be the highest priority in the priorities of the switching equipment in the network system, determining the first switching equipment as the root bridge equipment.
In the foregoing embodiment, by using the attribute of the priority of the switching device itself, the switching device with the highest priority is used as the root bridge device, which is beneficial to quickly determine the root bridge device from a plurality of switching devices.
With reference to the first aspect, in some optional implementations, the obtaining the priority of each switching device in the network system includes:
determining a topological structure of the network system through a multilink transparent interconnection protocol;
and acquiring the priority of each switching device in the topological structure through the transparent interconnection protocol of the multilink.
In the above embodiment, the transparent interconnection protocol of multilink can be used to collect the topology and priority of the switching devices in the network system, so as to determine the root bridge device by using the priority.
With reference to the first aspect, in some optional implementations, the receiving, by each second switching device in the network system, the configuration information of the second switching device sent according to the network management packet includes:
and receiving configuration information sent by each second switching device after the network management message is verified, wherein the configuration information comprises at least one of an IP address and an MAC address of the second switching device.
In the foregoing embodiment, the second switching device is favorable for improving the security of configuration management by authenticating the network management packet.
With reference to the first aspect, in some optional implementations, the network management packet includes an SNMP packet carrying a special identifier, where the SNMP packet includes an IP header based on a two-layer network encapsulation format.
In a second aspect, an embodiment of the present application further provides a network configuration management apparatus, which is applied to a first switching device, where the first switching device is any switching device in a network system including a plurality of switching devices, and the apparatus includes:
a sending unit, configured to send a network management packet to another switching device in the multiple switching devices after the first switching device is determined to be a root bridge device in the multiple switching devices of the network system;
a receiving unit, configured to receive configuration information of each second switching device in the network system, where the configuration information is sent by the second switching device according to the network management packet;
and the configuration generating unit is configured to generate a configuration table entry corresponding to each second switching device according to the configuration information of each second switching device, where the configuration information in the configuration table entry is synchronized with the configuration information of the corresponding second switching device.
In combination with the second aspect, in some optional embodiments, the apparatus further comprises:
the configuration changing unit is used for changing the configuration information in the target configuration table item based on the received changing operation instruction;
and the configuration synchronization unit is used for sending the changed target configuration information to the second switching equipment corresponding to the target configuration table entry.
With reference to the second aspect, in some optional embodiments, the apparatus further includes an obtaining unit and a root bridge determining unit, where before sending the network management packet to another switching device in the multiple switching devices, the obtaining unit is configured to obtain a priority of each switching device in the network system;
the root bridge determining unit is configured to determine the first switching device as the root bridge device when determining that the priority of the first switching device is the highest priority among the priorities of the switching devices in the network system.
With reference to the second aspect, in some optional embodiments, the obtaining unit is further configured to:
determining a topological structure of the network system through a multilink transparent interconnection protocol;
and acquiring the priority of each switching device in the topological structure through the transparent interconnection protocol of the multilink.
With reference to the second aspect, in some optional embodiments, the receiving unit is further configured to:
and receiving configuration information sent by each second switching device after the network management message is verified, wherein the configuration information comprises at least one of an IP address and an MAC address of the second switching device.
In a third aspect, an embodiment of the present application further provides a switching device, where the switching device includes a memory and a processor that are coupled to each other, and a computer program is stored in the memory, and when the computer program is executed by the processor, the switching device is caused to perform the foregoing method.
In a fourth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below. It is appreciated that the following drawings depict only certain embodiments of the application and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a schematic topology diagram of a network system according to an embodiment of the present application.
Fig. 2 is a block diagram of a server according to an embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a network configuration management method according to an embodiment of the present application.
Fig. 4 is a functional block diagram of a network configuration management apparatus according to an embodiment of the present application.
Icon: 10-a network system; 20-a first switching device; 21-a processing module; 22-a storage module; 23-a communication module; 30-a second switching device; 100-network configuration management means; 110-a transmitting unit; 120-a receiving unit; 130-configuration generation unit.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that the terms "first," "second," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying any relative importance.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, a Network system 10 provided in this embodiment of the present application may include multiple switching devices, and may be applied to a Virtual Local Area Network (VLAN) Network or a Virtual eXtensible Local Area Network (VXLAN) Network. Communication connection can be established among a plurality of switching devices through a network so as to carry out data interaction. The switching device may be a switch, and may also perform data interaction with other devices through a network, for transmission and forwarding of data. Other devices include, but are not limited to, servers, personal computers, smart phones, and like electronic devices. The number of the switching devices may be set according to actual situations, and is not particularly limited herein.
In this embodiment, one of the plurality of switching devices may serve as a root bridge device. The root bridge device can collect the configuration information of other exchange devices, and an administrator can manage and control the configuration information of the root bridge device or other exchange devices through the root bridge device. The root bridge device may be a core device in a large two-layer network, and may be configured to implement two-layer switching and three-layer routing, and the other switching devices may be in communication connection with the root bridge device through the two-layer network.
For example, in fig. 1, the network system 10 may include a switching device a, a switching device B, a switching device C, a switching device D, and a switching device E. The switching device a is a root bridge device, and may be referred to as a first switching device 20. The switching devices B, C, D, and E are switching devices controlled by the switching device a, and may be referred to as a second switching device 30. Understandably, the switching device a may collect configuration information of the switching device B, the switching device C, the switching device D, and the switching device E, and an administrator may manage and control the configurations of the switching device B, the switching device C, the switching device D, and the switching device E through the switching device a.
Referring to fig. 2, an embodiment of the present application further provides a switching device, which may be the first switching device 20, and may include a storage module 22 and a processing module 21 coupled to each other, where the storage module 22 stores a computer program, and when the computer program is executed by the processing module 21, the switching device may perform or implement the steps of the network configuration management method described below.
It is to be understood that the configuration shown in fig. 2 is only a schematic configuration of a switching device, and that the switching device may further include more components than those shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
For example, the switching device may also include other modules. The switching device may also include a communication module 23, for example. The processing module 21, the storage module 22 and the communication module 23 are electrically connected directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
Referring to fig. 3, an embodiment of the present application further provides a network configuration management method, which can be applied to the first switch device 20. The first switching device 20 may be any switching device in the network system 10, and may be configured to perform or implement the steps of the method. The network configuration management method may include steps S210 to S230.
Step S210, after the first switching device 20 is determined as a root bridge device in the plurality of switching devices of the network system 10, sends a network management packet to other switching devices in the plurality of switching devices.
In this embodiment, when one of the switching devices in the network system 10 is determined as the root bridge device, it indicates that the root bridge device has the function and the right to manage other switching devices. In addition, other switching devices may record identity information of the storage root bridge device. The identity information may be, but is not limited to, an IP address, a MAC address, etc. of the first switching device 20.
When the first switching device 20 is a root bridge device, the first switching device 20 may send a network management packet to other switching devices in the network. The network management messages may be used to collect configuration information for other switching devices. After receiving the network management packet, the other switching devices may automatically send their own configuration information to the first switching device 20.
The Network Management packet may be an SNMP (Simple Network Management protocol) packet. In addition, the SNMP message may include an IP header based on a two-layer network encapsulation format. The SNMP message carries a special identifier, which indicates that the SNMP message is different from a general SNMP message.
It should be understood that the IP header of a general SNMP message is usually in a three-layer network encapsulation format, and the IP header of the SNMP message in the embodiment of the present application is in a two-layer network encapsulation format, so as to adapt to the network configuration management method provided in the embodiment of the present application. In addition, the special identifier can be set by self-definition according to actual conditions, for example, the special identifier can be numbers, characters and the like, and is used for identifying the modified SNMP message.
The two-layer network can realize communication only by MAC addressing, and the three-layer network can realize communication of cross-network segments by IP routing. For example, the IP header may be modified to 802.3LLC (Logical Link Control) SNAP ethernet frame format, which is a format based on two-layer network encapsulation. The encapsulation method of the 802.3LLC SNAP format is well known to those skilled in the art, and is not described herein again.
Prior to step S210, the method may further include the step of determining a root bridge device from among the switching devices of the network system 10. For example, prior to step S210, the method may further comprise: acquiring the priority of each switching device in the network system 10; when determining that the priority of the first switching device 20 is the highest priority among the priorities of the switching devices in the network system 10, determining the first switching device 20 as the root bridge device.
In this embodiment, the priority of the switch device is an attribute of the switch device itself, and may be an attribute set before the switch device leaves a factory, or an attribute set by an administrator according to an actual situation. Each switching device in the network system 10 may obtain the priority of another switching device, and then compare the priority with the priority of the switching device to determine the switching device corresponding to the highest priority. And the switching equipment corresponding to the highest priority is the root bridge equipment.
The priority may be obtained by: each switching device may advertise its own priority and interface information for communication connection to the switching devices in the network system 10, or each switching device may send a probe message of topology discovery to other switching devices, where the probe message may be used to collect interface information, priority, and the like of other switching devices. After receiving the detection packet, the other switching devices may respond to the switching device that sent the detection packet with its own interface information, priority, and the like, thereby achieving the purpose of topology discovery of the network system 10.
As an optional implementation manner, the manner of obtaining the priority of the switching device may be: determining a topology structure of the network system 10 by a Transparent Interconnection of Lots of Links (TRILL) protocol; and acquiring the priority of each switching device in the topological structure through the transparent interconnection protocol of the multilink.
In this embodiment, the TRILL protocol may be run between the switching devices, and interface information, priority, and the like of other switching devices are collected by using the TRILL protocol, thereby achieving the purpose of network topology discovery. Based on this, each switching device (including the first switching device 20) can quickly collect the priority of other devices, thereby facilitating determination of the root bridge device by priority. That is, the switching device with the highest priority is the root bridge device.
After the root bridge device is determined, the exchange device in the whole network can store the identity information of the exchange device serving as the root bridge device, so that identity authentication can be conveniently carried out on subsequent management control operation of the root bridge device, and management operation of non-root bridge devices on other exchange devices is avoided.
It should be noted that the TRILL protocol cannot collect configuration information such as MAC addresses and IP addresses of other switching devices. The working principle of the TRILL protocol is well known to those skilled in the art and will not be described in further detail here.
Step S220, receiving configuration information of each second switching device 30 in the network system 10, which is sent by each second switching device 30 according to the network management packet, where the second switching device 30 is one switching device of the multiple switching devices except the first switching device 20.
In this embodiment, after receiving the network management packet of the first switching device 20, the other switching devices may respond to the network management packet. For example, the other switching devices may transmit their own configuration information to the first switching device 20. The second switch device 30 may be understood as a switch device other than the first switch device 20 in the plurality of switch devices in the network system 10, or a switch device responding to the network management message, and the number of the switch devices may be determined according to actual situations. For example, the number of the second switching devices 30 may be one or more. The configuration information includes, but is not limited to, the IP address, MAC address, etc. of the second switching device 30 itself.
In this embodiment, after receiving the network management packet, the second switching device 30 may verify the network management packet, so as to improve the security of configuration management. For example, step S220 may include: receiving configuration information sent by each second switching device 30 after passing the verification of the network management packet, where the configuration information includes at least one of an IP address and an MAC address of the second switching device 30.
Understandably, after determining the first switching device 20 as the root bridge device, each second switching device 30 may store the identity information of the first switching device 20, which may include the MAC address, IP address, etc. of the first switching device 20. Generally, the network management message sent by the first switching device 20 may carry identity information (for example, a MAC address or an IP address of the first switching device 20, etc.) of the first switching device 20. After receiving the network management packet, the second switching device 30 may extract the identity information of the first switching device 20, compare the identity information with the identity information of the switching device that is pre-stored as a root bridge device, and if the identity information is the same as the identity information of the switching device, the authentication is passed; if the two are different, the authentication is not passed.
For example, if the second switching device 30 determines that the source MAC address in the network management message is the same as the MAC address of the root bridge device stored in the second switching device 30, the authentication is passed; if the source MAC address in the network management message is different from the MAC address of the root bridge device stored in the second switching device 30, the authentication is not passed.
After the authentication is passed, the second switching device 30 may send its own configuration information to the first switching device 20. If the authentication is not passed, the second switch device 30 does not need to send its configuration information to the first switch device 20. Based on this, the security of the second switching device 30 responding to the network management packet can be improved.
Step S230, generating a configuration table entry corresponding to each second switching device 30 according to the configuration information of each second switching device 30, where the configuration information in the configuration table entry is synchronized with the configuration information of the corresponding second switching device 30.
The configuration information of each second switching device 30 may form a configuration table entry in the first switching device 20. The plurality of configuration entries may form a database of configuration information stored in the first switching device 20. Each configuration table entry in the database is synchronously associated with the configuration information of the corresponding switching device. Understandably, after the configuration information in the configuration table entry is synchronized with the configuration information of the corresponding second switching device 30, when the configuration information in the configuration table entry in the database is modified, the first switching device 20 may send the modified configuration information to the corresponding second switching device 30, so as to achieve the purpose of synchronizing the configuration information.
Based on the design, one switching device is directly selected as the root bridge device, and the configuration information of other switching devices is managed in a centralized manner, so that a management server does not need to be deployed independently, the IP address resources for network configuration management are saved, and the problem that the IP address resources are more scarce is solved. In addition, the network attack is usually based on IP, and after the management server is not needed, the IP address of the management server does not need to be allocated, which is beneficial to reducing the probability of the network system 10 being attacked and improving the security level of the network system 10.
As an optional implementation, the method may further include: changing the configuration information in the target configuration table item based on the received change operation instruction; and sending the changed target configuration information to the second switching device 30 corresponding to the target configuration table entry.
Understandably, when the administrator needs to modify the configuration information in the second switching device 30, the configuration information thereof may be modified directly in the configuration table entry of the corresponding second switching device 30 stored in the first switching device 20. For example, by sending a corresponding operation instruction to the first switching device 20, the first switching device 20 modifies the corresponding configuration information according to the operation instruction, and then sends the modified configuration information to the corresponding second switching device 30. The configuration information corresponds to the second switching devices 30 one to one, and different configuration information corresponds to different switching devices, so that the modified configuration information can be accurately sent to the corresponding switching devices.
For example, in fig. 1, it is assumed that an administrator needs to modify the configuration information of the switch device B in the database of the first switch device 20, after the modification of the configuration information of the switch device B is completed, the first switch device 20 may determine, based on a MAC address (or other identity information) corresponding to the modified configuration information, that the switch device corresponding to the configuration information is the switch device B, and then send the modified configuration information to the switch device B, so that the switch device B uses the modified configuration information as new configuration information to update its own configuration information.
In the above embodiment, the administrator may directly modify the configuration information of the other switching devices stored in the root bridge, and the root bridge synchronizes the modified configuration information to the corresponding switching devices, so as to modify the configuration information of the other switching devices, and implement management control of the other switching devices without a management server.
To facilitate understanding of a specific implementation flow of the network configuration management method, an implementation flow of the network configuration management method will be described below by way of example based on the network system 10 shown in fig. 1, as follows:
assuming that the switching device a is a core device of a large two-layer network, the priority of the switching device a is usually the highest priority in the network system 10, and other switching devices are communicatively connected to the switching device a through the two-layer network.
In the first step, each switching device can interact through a TRILL protocol, each switching device can mutually collect interface information, priority and other two-layer information of other switching devices, and the purpose of topology discovery is achieved after collection is completed.
And secondly, assuming that the switching device with the highest priority is determined to be the switching device a (the first switching device 20) from the collected two-layer information, the switching device a is the root bridge device, and the other switching devices in the network default to the switching device a as the identity of network management. At this time, the switching device a specifies a device as the manager identity. In the subsequent process of sending the SNMP message, if the source MAC address of the SNMP message is the MAC address of the root bridge device, the other switching devices respond, and do not respond to the source MAC address of the illegal identity (for example, the source MAC address of the SNMP message is not the MAC address of the root bridge device).
Third, after determining that the switching device a is the root bridge device, the switching device a may actively send an SNMP message to other switching devices (the switching devices B, C, D, E, and the like are other switching devices, and at this time, the second switching device 30) in the network system 10 to collect configuration information of the other switching devices. Wherein, the sent SNMP message is a modified SNMP message. The transformation mode is as follows: the IP header of SNMP message which supports three-layer network transmission is reformed into 802.3LLC SNAP format to support two-layer network transmission. The source MAC address of the SNMP message is the MAC address of the switching equipment A, and the destination MAC address of the SNMP message is the MAC address of the switching equipment needing to be managed. And setting a new value for the SNMP message to mark and identify the modified SNMP message so that other switching equipment can identify the modified SNMP message.
Fourthly, after receiving the SNMP message of the switching equipment A, the other switching equipment can analyze the source MAC address of the SNMP message from the SNMP message. And validity verification is performed on the source MAC address. The verification method comprises the following steps: comparing the source MAC address of the SNMP message with the MAC address of the pre-stored root bridge, if the source MAC address and the MAC address are the same, passing the authentication, and sending the configuration information of other switching equipment to the switching equipment A; if the two are different, the authentication is not passed without responding to the SNMP message.
Fifthly, the switching equipment A forms configuration table items one by one on the basis of the collected configuration information of other switching equipment, one switching equipment corresponds to one configuration table item, so that a database for inputting the configuration table items of other switching equipment can be formed locally, the configuration information in the configuration table items is synchronous with the configuration information of the corresponding switching equipment, and at the moment, the establishment of network configuration management is completed.
When the administrator needs to modify the configuration information of the switching device a or other switching devices, the administrator can directly operate on the switching device a, and thus, the configuration information modification of the corresponding switching device can be realized.
Referring to fig. 4, an embodiment of the present application further provides a network configuration management apparatus 100, which can be incorporated into the first switch device 20, and includes at least one software function module, which can be stored in the storage module 22 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the first switch device 20, and is used to execute or implement each step in the network configuration management method. The network configuration management apparatus 100 may include a sending unit 110, a receiving unit 120, and a configuration generating unit 130.
A sending unit 110, configured to send a network management packet to another switching device in the multiple switching devices after the first switching device 20 is determined as a root bridge device in the multiple switching devices.
A receiving unit 120, configured to receive configuration information of each second switching device 30 in the network system 10, where the configuration information is sent by the second switching device 30 according to the network management packet.
A configuration generating unit 130, configured to generate a configuration table entry corresponding to each second switching device 30 according to the configuration information of each second switching device 30, where the configuration information in the configuration table entry is synchronized with the configuration information of the corresponding second switching device 30.
Optionally, the network configuration management apparatus 100 further includes: the configuration changing unit is used for changing the configuration information in the target configuration table item based on the received changing operation instruction; and a configuration synchronization unit, configured to send the changed target configuration information to the second switching device 30 corresponding to the target configuration table entry.
Optionally, the network configuration management apparatus 100 may further include an obtaining unit and a root bridge determining unit. Before sending the network management packet to other switching devices in the plurality of switching devices, the obtaining unit is configured to obtain the priority of each switching device in the network system 10; the root bridge determining unit is configured to determine the first switching device 20 as the root bridge device when determining that the priority of the first switching device 20 is the highest priority among the priorities of the switching devices in the network system 10.
Optionally, the obtaining unit is further configured to: determining a topology structure of the network system 10 through a transparent interconnection protocol of multilink; and acquiring the priority of each switching device in the topological structure through the transparent interconnection protocol of the multilink.
Optionally, the receiving unit 120 is further configured to: receiving configuration information sent by each second switching device 30 after passing the verification of the network management packet, where the configuration information includes at least one of an IP address and an MAC address of the second switching device 30.
In the switching device, the processing module 21 may be an integrated circuit chip having signal processing capability. The processing module 21 may be a general-purpose processor. For example, the Processor may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Network Processor (NP), or the like; and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, or discrete hardware components, which may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present Application.
The memory module 22 may be, but is not limited to, a random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, and the like. In this embodiment, the storage module 22 may be used to store configuration information of the switching device. Of course, the storage module 22 may also be used for storing a program, and the processing module 21 executes the program after receiving the execution instruction.
The communication module 23 is configured to establish a communication connection between the first switching device 20 and a server or other switching devices through a network, and to transmit and receive data through the network.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the switching device and the network configuration management apparatus 100 described above may refer to the corresponding processes of each step in the foregoing method, and are not described in detail herein.
The embodiment of the application also provides a computer readable storage medium. The readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to execute the network configuration management method as described in the above embodiments.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by hardware, or by software plus a necessary general hardware platform, and based on such understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.
In summary, the present application provides a network configuration management method, an apparatus, a switching device, and a readable storage medium. The method comprises the following steps: after the first switching equipment is determined to be root bridge equipment in a plurality of switching equipment of the network system, sending network management messages to other switching equipment in the plurality of switching equipment; receiving configuration information of second switching equipment sent by each second switching equipment in the network system according to the network management message; and generating a configuration table entry corresponding to each second switching device according to the configuration information of each second switching device, wherein the configuration information in the configuration table entry is synchronous with the configuration information of the corresponding second switching device. In the scheme, one switching device is directly selected as the root bridge device, and the configuration information of other switching devices is managed in a centralized manner, so that a management server does not need to be deployed independently, the IP address resources for network configuration management are saved, and the problem that the IP address resources are more scarce is solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. The apparatus, system, and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A network configuration management method applied to a first switching device, where the first switching device is any switching device in a network system including a plurality of switching devices, the method comprising:
after the first switching device is determined to be a root bridge device in a plurality of switching devices of the network system, sending a network management message to other switching devices in the plurality of switching devices, wherein the network management message comprises an SNMP message carrying a special identifier, and the SNMP message comprises an IP header based on a two-layer network encapsulation format;
receiving configuration information of each second switching device in the network system, which is sent by each second switching device according to the network management message, wherein the second switching device is one switching device except the first switching device in the plurality of switching devices;
and generating a configuration table entry corresponding to each second switching device according to the configuration information of each second switching device, wherein the configuration information in the configuration table entry is synchronous with the configuration information of the corresponding second switching device.
2. The method of claim 1, further comprising:
changing the configuration information in the target configuration table item based on the received change operation instruction;
and sending the changed target configuration information to second switching equipment corresponding to the target configuration table item.
3. The method of claim 1, wherein prior to sending network management messages to other switching devices of the plurality of switching devices, the method further comprises:
acquiring the priority of each switching device in the network system;
and when the priority of the first switching equipment is determined to be the highest priority in the priorities of the switching equipment in the network system, determining the first switching equipment as the root bridge equipment.
4. The method of claim 3, wherein obtaining the priority of each switching device in the network system comprises:
determining a topological structure of the network system through a multilink transparent interconnection protocol;
and acquiring the priority of each switching device in the topological structure through the transparent interconnection protocol of the multilink.
5. The method according to claim 1, wherein receiving the configuration information of each second switch device in the network system, which is sent by the second switch device according to the network management packet, comprises:
and receiving configuration information sent by each second switching device after the network management message is verified, wherein the configuration information comprises at least one of an IP address and an MAC address of the second switching device.
6. A network configuration management apparatus, applied to a first switching device, where the first switching device is any switching device in a network system including multiple switching devices, the apparatus comprising:
a sending unit, configured to send a network management packet to other switching devices in the multiple switching devices after the first switching device is determined to be a root bridge device in the multiple switching devices of the network system, where the network management packet includes an SNMP packet carrying a special identifier, and the SNMP packet includes an IP header based on a two-layer network encapsulation format;
a receiving unit, configured to receive configuration information of each second switching device in the network system, where the configuration information is sent by each second switching device according to the network management packet, and the second switching device is one of the multiple switching devices except the first switching device;
and the configuration generating unit is configured to generate a configuration table entry corresponding to each second switching device according to the configuration information of each second switching device, where the configuration information in the configuration table entry is synchronized with the configuration information of the corresponding second switching device.
7. The apparatus of claim 6, further comprising:
the configuration changing unit is used for changing the configuration information in the target configuration table item based on the received changing operation instruction;
and the configuration synchronization unit is used for sending the changed target configuration information to the second switching equipment corresponding to the target configuration table entry.
8. The apparatus according to claim 6, further comprising an obtaining unit and a root bridge determining unit, wherein the obtaining unit is configured to obtain the priority of each switching device in the network system before sending the network management packet to other switching devices in the plurality of switching devices;
the root bridge determining unit is configured to determine the first switching device as the root bridge device when determining that the priority of the first switching device is the highest priority among the priorities of the switching devices in the network system.
9. The apparatus of claim 8, wherein the obtaining unit is further configured to:
determining a topological structure of the network system through a multilink transparent interconnection protocol;
and acquiring the priority of each switching device in the topological structure through the transparent interconnection protocol of the multilink.
10. The apparatus of claim 6, wherein the receiving unit is further configured to:
and receiving configuration information sent by each second switching device after the network management message is verified, wherein the configuration information comprises at least one of an IP address and an MAC address of the second switching device.
11. A switching device, characterized in that the switching device comprises a memory, a processor, coupled to each other, in which memory a computer program is stored which, when executed by the processor, causes the switching device to carry out the method according to any one of claims 1-5.
12. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method according to any one of claims 1-5.
CN201911307703.8A 2019-12-18 2019-12-18 Network configuration management method, device, switching equipment and readable storage medium Active CN110995502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911307703.8A CN110995502B (en) 2019-12-18 2019-12-18 Network configuration management method, device, switching equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911307703.8A CN110995502B (en) 2019-12-18 2019-12-18 Network configuration management method, device, switching equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110995502A CN110995502A (en) 2020-04-10
CN110995502B true CN110995502B (en) 2022-06-21

Family

ID=70095404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911307703.8A Active CN110995502B (en) 2019-12-18 2019-12-18 Network configuration management method, device, switching equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110995502B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580542B (en) * 2022-12-06 2023-03-03 苏州浪潮智能科技有限公司 Information exchange method and related device of multi-Ethernet switch

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283783A (en) * 2014-10-11 2015-01-14 杭州华三通信技术有限公司 Gateway equipment message transmitting method and device in plug and play network
WO2017215383A1 (en) * 2016-06-13 2017-12-21 中兴通讯股份有限公司 Network element configuration method and device, and network element management method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208572A1 (en) * 2001-08-31 2003-11-06 Shah Rajesh R. Mechanism for reporting topology changes to clients in a cluster
CN101599865A (en) * 2009-07-03 2009-12-09 武汉烽火网络有限责任公司 A kind of management method of the cluster network based on unique public network IP address
CN101729262B (en) * 2009-11-03 2012-12-12 福建星网锐捷网络有限公司 Configuration method of non-webmaster type switchboard and non-webmaster type switchboard
CN102377835B (en) * 2010-08-20 2014-04-16 杭州华三通信技术有限公司 Communication method and device for network element group network
CN102946351B (en) * 2012-10-23 2016-06-08 杭州华三通信技术有限公司 A kind of data transmission method and system
CN103095495B (en) * 2013-01-06 2016-05-25 华为技术有限公司 Network beginning collocation method and device, system
CN108512751B (en) * 2017-02-28 2021-02-23 华为技术有限公司 Port state processing method and network equipment
CN107332695A (en) * 2017-06-15 2017-11-07 迈普通信技术股份有限公司 A kind of method and device for disposing double layer network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283783A (en) * 2014-10-11 2015-01-14 杭州华三通信技术有限公司 Gateway equipment message transmitting method and device in plug and play network
WO2017215383A1 (en) * 2016-06-13 2017-12-21 中兴通讯股份有限公司 Network element configuration method and device, and network element management method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Managing access and usage controls in SNMP;E.Barka,F.Sallabi;《2012 Computing,communications and Applications Conference》;20120221;全文 *
交换式以太网链路层拓扑结构自动发现算法研究;皮晓明;《中国优秀硕士学位论文数据库》;20170517;全文 *

Also Published As

Publication number Publication date
CN110995502A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN109802985B (en) Data transmission method, device, equipment and readable storage medium
EP3291499B1 (en) Method and apparatus for network service capacity expansion
EP3223472B1 (en) Service migration method, apparatus and system for data center
CN112887119A (en) Fault root cause determination method and device and computer storage medium
EP2866393B1 (en) Method and apparatus for determining virtual machine drifting
EP3905598B1 (en) Message processing method and apparatus, control plane device, and computer storage medium
CN109981493B (en) Method and device for configuring virtual machine network
US20220200844A1 (en) Data processing method and apparatus, and computer storage medium
EP3787232A1 (en) Network configuration method, device, and system
US20170264587A1 (en) Method for Synchronizing Virtual Machine Location Information Between Data Center Gateways, Gateway, and System
CN102316043B (en) Port virtualization method, switch and communication system
EP3316555B1 (en) Mac address synchronization method, device and system
CN114143283B (en) Tunnel self-adaptive configuration method and device, central terminal equipment and communication system
CN110063045B (en) Message processing method and device in cloud computing system
CN107645402A (en) A kind of route management method and device
CN110995502B (en) Network configuration management method, device, switching equipment and readable storage medium
CN107911495B (en) MAC address synchronization method and VTEP
CN110795209B (en) Control method and device
US10050932B2 (en) Method, user node and remote access server for releasing address
CN111327509B (en) Information updating method and device
CN116095145B (en) Data control method and system of VPC cluster
WO2020029928A1 (en) Method for establishing bgp session and sending interface address and alias, and network device
CN114401324B (en) Message forwarding method, network equipment and system
CN112532506B (en) Hybrid networking method, device, server and computer-readable storage medium
CN107454021B (en) Communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant