CN107438011B - Method and device for determining configuration information, network manager and system - Google Patents

Method and device for determining configuration information, network manager and system Download PDF

Info

Publication number
CN107438011B
CN107438011B CN201610362360.5A CN201610362360A CN107438011B CN 107438011 B CN107438011 B CN 107438011B CN 201610362360 A CN201610362360 A CN 201610362360A CN 107438011 B CN107438011 B CN 107438011B
Authority
CN
China
Prior art keywords
board
configuration information
port
network element
information
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
CN201610362360.5A
Other languages
Chinese (zh)
Other versions
CN107438011A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610362360.5A priority Critical patent/CN107438011B/en
Publication of CN107438011A publication Critical patent/CN107438011A/en
Application granted granted Critical
Publication of CN107438011B publication Critical patent/CN107438011B/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/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method, a device, a network manager and a system for determining configuration information; wherein, the method comprises the following steps: receiving a board changing completion instruction for indicating that a first single board on network element equipment is switched to a second single board; determining configuration information of a second single board according to configuration information of network element equipment backed up by a network manager in advance and first neighbor information of each port of the first single board; the invention solves the problem of low recovery efficiency of the configuration information during the switching of the single boards in the prior art.

Description

Method and device for determining configuration information, network manager and system
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, a network manager, and a system for determining configuration information.
Background
With the rapid development of communication technology, a network element in a communication network often has board upgrade or expansion operation of a board of the network element, such as: increasing the number of ports of the board, increasing the speed of the ports of the board, increasing the functions realized by the board, etc., requires replacing the board with the configuration at present. There are roughly two types of single plate replacement methods in the related art, and for the first method, the following steps are included:
step 1, manually backing up network element data for rollback use after the plate replacement fails.
And 2, manually transferring the related services on the single board to other single boards or manually deleting and cleaning.
And 3, manually removing the related basic configuration of the single board on the original single board by a method for issuing the associated removal through network management pulling. So as to avoid the abnormal data of the new single board due to the related configuration of the original single board.
And 4, manually pulling the equipment.
And step 5, the network manager performs the plug-in operation of the new single board to generate the relevant basic configuration of the new single board. And then plugging and unplugging the equipment manually.
And 6, manually migrating the service which is migrated back or reconfiguring the deleted configuration.
For the second method, specifically: and directly restoring to the corresponding port number of the replaced single board according to the corresponding port number of the single board before replacement. If the number of the ports of the single board before replacement is larger than that of the ports after replacement, only the relevant configuration of the ports existing after replacement is recovered, and the port configuration which does not exist after replacement of the single board is discarded.
It should be noted that, for the first method, a large number of configuration operations need to be performed manually, which is inefficient, and once an abnormality occurs in the manual operation process, a large number of manual operations are also needed for rollback; for the second method, although the probability of error is reduced, it cannot be guaranteed that the related configurations of the single boards can be normally recovered in all scenes, the ports are fixed in one-to-one correspondence when the configurations are recovered, and the data recovery is not flexible enough.
In view of the above technical problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a network manager and a system for determining configuration information, which are used for at least solving the problem of low recovery efficiency of the configuration information during single board switching in the related technology.
According to an embodiment of the present invention, there is provided a method for determining configuration information, including: receiving a board changing completion instruction for indicating that a first single board on network element equipment is switched to a second single board; and determining the configuration information of the second single board according to the configuration information of the network element equipment backed up by the network manager in advance and the first neighbor information of each port of the first single board.
Optionally, before determining the configuration information of the second board according to the configuration information of the network element device backed up by the network manager in advance and the first neighbor information of each port of the first board, the method further includes: detecting whether the connection state of the second single board is normal; and determining the configuration information of the second single board according to the configuration information of the network element equipment pre-backed up by the network manager and the first neighbor information of each port of the first single board under the condition that the connection state of the second single board is normal.
Optionally, determining the configuration information of the second board according to the configuration information of the network element device backed up by the network manager in advance and the first neighbor information of each port of the first board includes: matching first neighbor information of each port of a first single board with second neighbor information of each port of a second single board to obtain a matching result; generating a corresponding relation between each port of the first single board and each port of the second single board according to the matching result; and determining the configuration information of the second single board according to the corresponding relation and the configuration information of the network element equipment.
Optionally, the correspondence includes: and under the condition that the matching result is that the first neighbor information of the first designated port of the first single board is consistent with the second neighbor information of the second designated port of the second single board, the first designated port corresponds to the second designated port.
Optionally, determining the configuration information of the second board according to the correspondence and the configuration information of the network element device includes: and setting the configuration information of the first designated port in the configuration information of the network element equipment as the configuration information of the second designated port.
Optionally, before matching the first neighbor information with the second neighbor information of each port of the second board to obtain a matching result, the method further includes: judging whether all cable connections corresponding to the second single board are normal or not; and under the condition of normal connection, matching the first neighbor information with second neighbor information of each port of the second single board to obtain a matching result.
Optionally, after determining the configuration information of the second board according to the configuration information of the network element device backed up by the network manager in advance and the first neighbor information of each port of the first board, the method further includes: sending the determined configuration information of the second single board to the network element equipment; and/or storing the determined configuration information of the second single board in a database of the network manager.
Optionally, before receiving a board change completion instruction for instructing the network element device to switch the first board to the second board, the method further includes: receiving a switching instruction for indicating to switch the first single board to the second single board; and backing up the configuration information of the network element equipment and the neighbor information of each port of the first single board.
Optionally, after backing up the configuration information of the network element device and the neighbor information of each port of the first board, the method further includes: after receiving a first instruction for indicating that a first single board on a network manager is pulled out, deleting configuration information of the first single board on the network manager; and sending a second instruction for indicating to pull out the first single board and/or deleting the configuration information of the first single board on the network element equipment to the network element equipment.
Optionally, the configuration information of the network element device includes: configuring information of each port corresponding to each single board in the network element equipment; the first neighbor information includes: the network element equipment comprises local terminal port information, opposite terminal MAC address information and version information of opposite terminal network element equipment.
According to another embodiment of the present invention, there is provided a configuration information determining apparatus including: a first receiving module, configured to receive a board change completion instruction for instructing a network element device to switch a first board to a second board; and the determining module is used for determining the configuration information of the second single board according to the configuration information of the network element equipment backed up by the network manager in advance and the first neighbor information of each port of the first single board.
Optionally, the apparatus further comprises: the detection module is used for detecting whether the connection state of the second single board is normal or not; and determining the configuration information of the second single board according to the configuration information of the network element equipment pre-backed up by the network manager and the first neighbor information of each port of the first single board under the condition that the connection state of the second single board is normal.
Optionally, the determining module includes: the matching unit is used for matching first neighbor information of each port of the first single board with second neighbor information of each port of the second single board to obtain a matching result; a generating unit, configured to generate, according to a matching result, a corresponding relationship between each port of the first board and each port of the second board; and a determining unit, configured to determine the configuration information of the second board according to the corresponding relationship and the configuration information of the network element device.
Optionally, the correspondence includes: and under the condition that the matching result is that the first neighbor information of the first designated port of the first single board is consistent with the second neighbor information of the second designated port of the second single board, the first designated port corresponds to the second designated port.
Optionally, the determining unit is further configured to set configuration information of the first specified port in the configuration information of the network element device as configuration information of the second specified port.
Optionally, the apparatus further comprises: the judging module is used for judging whether all cable connections corresponding to the second single board are normal or not; and under the condition of normal connection, matching the first neighbor information with second neighbor information of each port of the second single board to obtain a matching result.
Optionally, the apparatus further comprises: a first sending module, configured to send the determined configuration information of the second board to the network element device; and/or the storage module is used for storing the determined configuration information of the second single board in a database of the network manager.
Optionally, the apparatus further comprises: a second receiving module, configured to receive a switching instruction for instructing to switch the first board to the second board; and the backup module is used for backing up the configuration information of the network element equipment and the neighbor information of each port of the first single board.
Optionally, the apparatus further comprises: the deleting module is used for deleting the configuration information of the first single board on the network manager after receiving a first instruction for indicating that the first single board on the network manager is pulled out; a second sending module, configured to send, to the network element device, a second instruction for instructing to pull out the first board and/or delete the configuration information of the first board on the network element device.
Optionally, the configuration information of the network element device includes: configuring information of each port corresponding to each single board in the network element equipment; the first neighbor information includes: the network element equipment comprises local terminal port information, opposite terminal MAC address information and version information of opposite terminal network element equipment.
According to another embodiment of the present invention, there is provided a network management system, including the above-mentioned device for determining configuration information.
According to another embodiment of the present invention, a system is provided, which includes the above network manager and network element device.
According to still another embodiment of the present invention, there is also provided a storage medium. The storage medium is configured to store program code for performing the steps of: receiving a board changing completion instruction for indicating that a first single board on network element equipment is switched to a second single board; and determining the configuration information of the second single board according to the configuration information of the network element equipment backed up by the network manager in advance and the first neighbor information of each port of the first single board.
According to the invention, because the network management system backups the configuration information of the network element equipment and the first neighbor information of each port of the first single board in advance, after a board replacement completion instruction that the network element equipment is replaced from the first single board to the second single board is received, the configuration information of the second single board can be determined according to the configuration information of the network element equipment backed up in advance and the first neighbor information of each port of the first single board, and the process of determining the configuration information of the second single board is not manually completed, so that the configuration information of the second single board is automatically determined, the time for recovering the configuration information is saved, and the problem of low efficiency of recovering the configuration information during the switching of the single boards in the related technology can be solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal according to a method for determining configuration information according to an embodiment of the present invention;
FIG. 2 is a block diagram of a network architecture provided in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a method of determining configuration information according to an embodiment of the present invention;
fig. 4 is a schematic main flow chart of a configuration information determination method provided according to a limited embodiment of the present invention;
fig. 5 is a schematic flowchart of a specific method for determining configuration information according to a limited embodiment of the present invention;
fig. 6 is a first block diagram of the configuration information determining apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of the configuration information determining apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a configuration information determining apparatus according to a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of the present invention running on a computer terminal, fig. 1 is a block diagram of a hardware structure of a computer terminal of a method for determining configuration information according to an embodiment of the present invention. As shown in fig. 1, the computer terminal 10 may include one or more (only one shown) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the method for determining configuration information in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The embodiment of the present application may operate on the network architecture shown in fig. 2, as shown in fig. 2, the network architecture includes: the network management system comprises network element equipment and a network manager, wherein the network manager and the network element equipment can interact with each other.
In this embodiment, a method for determining configuration information running on the computer terminal or the network architecture is provided, and fig. 3 is a flowchart of the method for determining configuration information according to the embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, receiving a board change completion instruction for indicating that a first single board on network element equipment is switched to a second single board;
step S304, determining the configuration information of the second board according to the configuration information of the network element device backed up by the network manager in advance and the first neighbor information of each port of the first board.
Through the above steps, since the network manager backups the configuration information of the network element device and the first neighbor information of each port of the first board in advance, after receiving the board change completion instruction that the network element device is changed from the first board to the second board, the configuration information of the second board can be determined according to the configuration information of the network element device backed up in advance and the first neighbor information of each port of the first board, and the process of determining the configuration information of the second board is not manually completed, thereby automatically determining the configuration information of the second board, saving the time for recovering the configuration information, and solving the problem of low efficiency of recovering the configuration information when the boards are switched in the related art.
It should be noted that, the configuration information of the network element device may include configuration information of each port corresponding to each board in the network element device, but is not limited thereto; the first neighbor information may include: the local port information, the peer MAC address information, and the version information of the peer network element device, but not limited thereto.
In an embodiment of the present invention, the step S304 may be represented as: matching first neighbor information of each port of a first single board with second neighbor information of each port of a second single board to obtain a matching result; generating a corresponding relation between each port of the first single board and each port of the second single board according to the matching result; and determining the configuration information of the second single board according to the corresponding relation and the configuration information of the network element equipment.
It should be noted that the correspondence relationship may include: and under the condition that the matching result is that the first neighbor information of the first designated port of the first single board is consistent with the second neighbor information of the second designated port of the second single board, the first designated port corresponds to the second designated port.
It should be noted that, the determining the configuration information of the second board according to the corresponding relationship and the configuration information of the network element device may be represented as: and setting the configuration information of the first designated port in the configuration information of the network element equipment as the configuration information of the second designated port.
The first neighbor information and the second neighbor information are compared to generate a corresponding relationship between each port of the first board and each port of the second board, so that the corresponding relationship between each port of the first board and each port of the second board is not fixed any more, and further, the configuration information of the second board is more flexible when determined.
For example, the number of the ports is 8, and the ports are numbered as 1, 2, 3, 4, 5, 6, 7 and 8; the number of the ports of the first single board is 4, and the ports are numbered as 1, 2, 5 and 7 respectively; the number of the ports of the second single board is 4, and the numbers of the ports are 1, 2, 3 and 4; in the related art, the corresponding relationship between the general ports is fixed, that is, the port 1 used by the first board corresponds to the port 1 used by the second board, and the port 2 used by the first board corresponds to the port 2 used by the second board, that is, the configuration information of the port 1 and the port 2 used by the second board is directly the configuration information of the port 1 and the port 2 used by the first board, and for the port 5 and the port 7 used by the first board, because the second board is not used, the configuration information corresponding to the port 5 and the port 7 is directly deleted, and the configuration information of the port 3 and the port 4 used by the second board uses a default value; the method in this embodiment focuses on comparing the neighbor information of the port 1, the port 2, the port 5, and the port 7 used by the first board with the neighbor information of the port 1, the port 2, the port 3, and the port 4 used by the second board, if the neighbor information of the port 1 used by the first board is consistent with the neighbor information of the port 3 used by the second board, the configuration information of the port 3 used by the second board is the neighbor information of the port 1 used by the first board, if the neighbor information of the port 2 used by the first board is consistent with the neighbor information of the port 1 used by the second board, the configuration information of the port 1 used by the second board is the neighbor information of the port 2 used by the first board, if the neighbor information of the port 5 used by the first board is consistent with the neighbor information of the port 2 used by the second board, the configuration information of the port 2 used by the second board is the neighbor information of the port 5 used by the first board, if the neighbor information of the port 7 used by the first board is consistent with the neighbor information of the port 4 used by the second board, the configuration information of the port 4 used by the second board is the neighbor information of the port 7 used by the first board. This example is intended to illustrate the present embodiment and is not intended to be limiting.
It should be noted that, if there is a port that does not correspond to the port used by the first board in the port corresponding to the second board, the port that does not correspond uses a default value to generate the configuration information of the port. For example, in the above example, the neighbor information of the port 4 used by the second board is different from the neighbor information of the port 1, the port 2, the port 5, and the port 7 used by the first board, and then the configuration information of the port 4 used by the second board is generated by a default value.
In an embodiment of the present invention, before matching the first neighbor information with the second neighbor information of each port of the second board to obtain a matching result, the method may further include: judging whether all cable connections corresponding to the second single board are normal or not; and under the condition of normal connection, matching the first neighbor information with second neighbor information of each port of the second single board to obtain a matching result.
It should be noted that, the above determining whether all cable connections corresponding to the second board are normal may be performed by detecting whether all neighbors of each port of the second board are connected normally, specifically, by detecting whether the number of neighbors and the names of the neighbors of the second board are consistent with the number of neighbors and the names of the neighbors backed up in advance, if so, it is considered that all the neighbors are connected normally, but the present invention is not limited thereto.
In an embodiment of the present invention, before the step S304, the method may further include: detecting whether the connection state of the second single board is normal; and determining the configuration information of the second single board according to the configuration information of the network element equipment pre-backed up by the network manager and the first neighbor information of each port of the first single board under the condition that the connection state of the second single board is normal. That is, before determining the configuration information of the second board, it is necessary to query whether the second board is normally on-line.
In an embodiment of the present invention, after the step S304, the method may further include: sending the determined configuration information of the second single board to the network element equipment; and/or storing the determined configuration information of the second single board in a database of the network manager. By the steps, the consistency of the network element equipment and the network management data can be ensured.
In an embodiment of the present invention, before the step S302, the method may further include: receiving a switching instruction for indicating to switch the first single board to the second single board; and backing up the configuration information of the network element equipment and the neighbor information of each port of the first single board. By backing up the configuration information of the network element equipment, any step in the process of the board changing operation has a problem, the backed-up data can be used for recovering the original data, and the operation risk is greatly reduced.
It should be noted that, after backing up the configuration information of the network element device and the neighbor information of each port of the first board, the method may further include: after receiving a first instruction for indicating that a first single board on a network manager is pulled out, deleting configuration information of the first single board on the network manager; and sending a second instruction for indicating to pull out the first single board and/or deleting the configuration information of the first single board on the network element equipment to the network element equipment. This step prevents the configuration information of the first board from affecting the data of the second board after the second board is inserted.
It should be noted that the first board on the network management is a logical board of the first board on the network element device, and the first board on the network element device is an actual board.
The main body of executing the above steps may be the mobile terminal, the computer terminal, etc. shown in fig. 1, or may be the network manager in the network architecture shown in fig. 2, but is not limited thereto.
For a better understanding of the present invention, the present invention is further explained below with reference to preferred examples.
The preferred embodiment of the invention provides a method for intelligently recovering single board switching configuration to replace the single board switching process in the prior art. Starting the single board switching function for the single board to be switched, at this time, the network manager will make a full backup for the network element configuration information and make a backup for the neighbor information. After the backup work is finished, the network manager automatically switches the original single board into the replaced single board. At this time, the equipment performs the plate replacing operation and connects the corresponding cables. The network manager will query the state and neighbor information of the single board at regular time. When the single board is in a normal state, the original single board port is matched with the new single board port through the neighbor information, and after the matching is completed, the network manager automatically generates the configuration related to the new single board and downloads the issuing equipment.
Fig. 4 is a schematic main flow chart of a method for determining configuration information according to a limited embodiment of the present invention, as shown in fig. 4, which mainly includes the following steps:
step S401, starting a single board switching function;
step S402, network element data backup and single board connection neighbor information backup;
step S403, deleting data of the original board (corresponding to the first board), and inserting a new board (corresponding to the second board);
step S404, calculating new single board configuration information according to the new and old single board information (equivalent to the step S304);
step S405, the new single board configuration information is sent to the device.
Fig. 5 is a schematic specific flowchart of a method for determining configuration information according to a limited embodiment of the present invention, as shown in fig. 5, the method mainly includes:
the user selects the single board to be switched on the network manager, clicks the single board switching function, then selects the switched single board, clicks the confirmation, and starts the single board switching function.
After the switching function of the board is turned on, the network manager first performs data backup on the network element that needs to be switched, backups the network element information, backups the network element data on the network manager, and backups the LLDP neighbor information on the switched board (in the preferred embodiment, the LLDP neighbor query function is taken as an example, the method for acquiring the port neighbor information is not limited to using the LLDP neighbor query function).
After the network element information backup is completed, the network manager will execute the operation of pulling out the original single board and issue a board pulling command to the device for deleting the related configuration of the original single board. And then the network manager inserts the switched single board into the corresponding slot position, and prompts a user to switch the physical board to the equipment after the board insertion is successful.
The user inserts the switched board on the device (corresponding to step S302 in the above embodiment), and connects the corresponding cable. After determining whether to insert a click in a new single board interface on the network manager, the network manager periodically inquires whether the single board state on the equipment is normal or not by using a heartbeat message between the network manager and the equipment.
When the single board is in a normal state, the network manager will periodically query the LLDP neighbor information of each port of the single board according to the previous query period. When the neighbor information backed up before can be found, all cable connections are confirmed to be normal. If all neighbor information cannot be queried after 5 minutes, the user will be prompted to check the cable connection.
The LLDP neighbor information includes information such as a home port, an opposite MAC address, and an opposite device version. Comparing the LLDP neighbor information of each port of the original single board to the LLDP neighbor information of each port of the current single board, wherein the ports with the same neighbor information are considered as the ports corresponding to the single board before and after replacement. The single board configuration calculating unit of the network management calculates the configuration information of each port after the single board replacement according to the information of the single board before and after the replacement and the corresponding information of the ports before and after the replacement of the single board, and generates the unused port of the single board according to a default value (which is equivalent to step S304 in the above embodiment).
After the new single board data is generated, the user is prompted that the new single board data is calculated, the user clicks the issuing function, and the network manager issues the new single board data to the equipment through the downloading function.
And after the configuration is issued, the network manager enters the warehouse, and the board changing process is finished.
Compared with the prior art, the method of the preferred embodiment of the invention has the following advantages: the steps of manual operation are simplified, and the efficiency of veneer switching is improved. By using the method, only the switching of the off-line pipes needs to be manually clicked, and then the boards are manually changed when the board changing prompt appears, without other operations; the original configuration in use on the single board can be completely recovered. The situation that no configuration is lost before and after switching is achieved; after successful delivery, the network management database is accessed, so that the consistency of the equipment and the network management data can be ensured. And the network element data is backed up before the operation is started, the backup data can be used when any step is abnormal in the operation process, and the original data can be restored through the downloading function, so that the operation risk is greatly reduced.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a device for determining configuration information is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a configuration information determining apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes:
a first receiving module 62, configured to receive a board change completion instruction for instructing a network element device to switch a first board to a second board;
a determining module 64, connected to the first receiving module 62, configured to determine the configuration information of the second board according to the configuration information of the network element device backed up by the network manager in advance and the first neighbor information of each port of the first board.
Through the above device, since the network manager has backed up the configuration information of the network element device and the first neighbor information of each port of the first board in advance, and then the first receiving module 62 receives the board change completion instruction that the network element device has been changed from the first board to the second board, the determining module 64 may determine the configuration information of the second board according to the configuration information of the network element device backed up in advance and the first neighbor information of each port of the first board, and the process of determining the configuration information of the second board is not manually completed, thereby implementing automatic determination of the configuration information of the second board, further saving the time for recovering the configuration information, and solving the problem of low efficiency of recovering the configuration information when the boards are switched in the related art.
It should be noted that, the configuration information of the network element device may include configuration information of each port corresponding to each board in the network element device, but is not limited thereto; the first neighbor information may include: the local port information, the peer MAC address information, and the version information of the peer network element device, but not limited thereto.
In an embodiment of the present invention, the determining module 64 may include: the matching unit is used for matching first neighbor information of each port of the first single board with second neighbor information of each port of the second single board to obtain a matching result; a generating unit, configured to generate, according to a matching result, a corresponding relationship between each port of the first board and each port of the second board; and a determining unit, configured to determine the configuration information of the second board according to the corresponding relationship and the configuration information of the network element device.
It should be noted that the correspondence relationship may include: and under the condition that the matching result is that the first neighbor information of the first designated port of the first single board is consistent with the second neighbor information of the second designated port of the second single board, the first designated port corresponds to the second designated port.
It should be noted that, the determining unit may be further configured to set the configuration information of the first specified port in the configuration information of the network element device as the configuration information of the second specified port.
The unit generates a corresponding relationship between each port of the first board and each port of the second board by comparing the first neighbor information with the second neighbor information, so that the corresponding relationship between each port of the first board and each port of the second board is not fixed any more, and further, the unit has more flexibility in determining the configuration information of the second board.
It should be noted that, if there is a port that does not correspond to the port used by the first board in the port corresponding to the second board, the determining unit is further configured to determine the configuration information of the port by using a default value.
Fig. 7 is a block diagram of a configuration information determining apparatus according to an embodiment of the present invention, and as shown in fig. 7, the apparatus may further include: a judging module 72, connected to the determining module 64, for judging whether all cable connections corresponding to the second board are normal; and under the condition of normal connection, matching the first neighbor information with second neighbor information of each port of the second single board to obtain a matching result.
It should be noted that, the above-mentioned determining module 72 determines whether all cable connections corresponding to the second board are normal or not, and may detect whether all neighbors of each port of the second board are normal or not, specifically, by detecting whether the number of neighbors of the second board and the names of the neighbors are consistent with the number of neighbors and the names of the neighbors backed up in advance, if so, it is considered that all the neighbors are normal in connection, but is not limited thereto.
In an embodiment of the present invention, the apparatus may further include: a detection module, connected to the determination module 64, for detecting whether the connection state of the second board is normal; and determining the configuration information of the second single board according to the configuration information of the network element equipment pre-backed up by the network manager and the first neighbor information of each port of the first single board under the condition that the connection state of the second single board is normal.
In an embodiment of the present invention, the apparatus may further include: a first sending module, connected to the determining module 64, configured to send the determined configuration information of the second board to the network element device; and/or a storage module, connected to the determining module 64, configured to store the determined configuration information of the second board in a database of the network manager. The consistency of the network element equipment and the network management data can be ensured.
In an embodiment of the present invention, the apparatus may further include: a second receiving module, configured to receive a switching instruction for instructing to switch the first board to the second board; and a backup module, connected to the second receiving module and the first receiving module 64, for backing up the configuration information of the network element device and the neighbor information of each port of the first board. The configuration information of the network element equipment is backed up through the backup module, so that any step in the process of the board changing operation has a problem, the backed-up data can be used for recovering the original data, and the operation risk is greatly reduced.
It should be noted that the above apparatus may further include: the deleting module is used for deleting the configuration information of the first single board on the network manager after receiving a first instruction for indicating that the first single board on the network manager is pulled out; a second sending module, configured to send, to the network element device, a second instruction for instructing to pull out the first board and/or delete the configuration information of the first board on the network element device.
The above-mentioned device may be located in a computer terminal, a mobile terminal, etc. shown in fig. 1, or may be located in a network manager of a network architecture shown in fig. 2, but is not limited thereto.
For a better understanding of the present invention, the present invention is further explained below with reference to preferred examples.
The device for determining configuration information provided by the preferred embodiment of the invention comprises the following units:
single board switch command processing unit (equivalent to the second receiving module in the above embodiment)
And the single board switching unit is responsible for starting the single board switching function and issuing a single board switching command to each unit.
Network element data backup unit (equivalent to the backup module in the above embodiment)
After receiving the single board switching processing command, backing up the relevant configuration information of the network element and backing up the neighbor information of the single board of the network element. And responding to the single board switching command processing unit, completing the network element data backup, and simultaneously informing the single board switching unit to carry out single board switching operation.
Single board switching processing unit (equivalent to the deleting module and the second sending module in the above embodiment)
The network management firstly pulls out the original single board, and related data of the single board on the network management is deleted; and issuing a single board pulling-out command to the equipment, and deleting the related configuration of the single board on the equipment. And the network manager inserts a new single board and issues an insert board command to the equipment, and the inserted single boards are all stored in a default configuration.
At this time, the user is prompted to perform manual plate changing operation. And simultaneously, the single board state and the neighbor information are inquired at regular time.
When the single board state is normal online, the neighbor number and the neighbor name of the neighbor and the neighbor backed up before are consistent, the single board configuration calculation unit is informed to perform new single board configuration calculation.
Single board configuration calculating unit (equivalent to the determining module 64 in the above embodiment)
Generating a new and old port corresponding relation according to the port information corresponding to the backup neighbor and the newly inquired port information, and converting the old single board related data into new single board related data by using the previously backed up network element data according to the port corresponding relation.
And after the new single board configuration is generated, informing the single board configuration issuing unit to issue the configuration information to the equipment.
Veneer configuration issuing unit (equivalent to the first sending module and/or the storage module in the above embodiment)
After the new veneer configuration data is generated, the relevant information of the veneer is issued to the equipment, after the equipment response is successful, the network manager puts the newly generated data into a warehouse for one time, the original data is covered, and finally the response veneer switching is completed.
Specifically, fig. 8 is a schematic structural diagram of an apparatus for determining configuration information according to a preferred embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a board switching command processing unit 82 (equivalent to the second receiving module in the foregoing embodiment), a network element data backup unit 84 (equivalent to the backup module in the foregoing embodiment), a board switching processing unit 86 (equivalent to the deleting module and the second sending module in the foregoing embodiment), a board configuration calculating unit 88 (equivalent to the determining module 64 in the foregoing embodiment), and a board configuration issuing unit 810 (equivalent to the first sending module and/or the storage module in the foregoing embodiment).
The single board switching command processing unit 82 is responsible for starting the whole single board switching function and issuing a command to the network element data backup unit.
The network element data backup unit 84 is responsible for backing up network element data on the network manager, backing up neighbor information of each port of the single board of the network element, and issuing a command to the single board switching processing unit after the backup is completed.
The board switching processing unit 86 is responsible for unplugging the original board and deleting the original board data. And the network manager inserts a new single board and prompts a user to replace the physical single board, and after the single board is replaced and the neighbor connection is normal, port replacement information of the new and old single boards is generated according to the neighbor information. And issues commands to the single board configuration computing unit.
The board configuration calculating unit 88 uses the backup network element data to generate the configuration data of the new board according to the replaced board name and the corresponding relationship between the replaced front and rear ports. And after the calculation is finished, sending a command to the single board configuration sending unit.
The single board configuration issuing unit 810 is responsible for issuing the calculated data on the network manager to the device, and after the issuing returns successfully, the network manager enters the device and ends the single board switching process.
The working steps of the units are as follows:
the board switching function is started, the board switching state is maintained, and the network element data backup unit 84 is notified to perform network element data backup.
And performing data backup on the network element, performing backup on neighbor information of the network management, and notifying the single board switching processing unit 86 after the backup is completed.
The single board switching firstly pulls out the original single board on the network management, at this time, the original single board data of the network management is cleared, and the equipment board pulling command is issued, and meanwhile, the relevant data of the original single board of the equipment is cleared.
And (5) after the plate pulling operation is successful. The network manager will automatically insert new single board data and prompt the user to perform manual board changing operation, and at the same time, the network manager will start to query the single board state and neighbor information of the device at regular time.
After the network manager inquires that the new single board is normally on line, the newly searched neighbor information is consistent with the neighbor information backed up by the original single board and only the corresponding port is different, the network manager informs the single board configuration calculating unit 88 to calculate the new single board data.
The board configuration calculating unit 88 compares the port and neighbor information of the original board with the port and neighbor information of the new board, and generates a replacement table of the port of the original board and the port of the new board according to the comparison data.
And the network manager generates new veneer related data according to the backup data before and after the switching and the corresponding port replacement tables before and after the switching. After the new board data is generated, the board configuration issuing unit 810 is notified.
The single board configuration issuing unit 810 issues the data on the network manager to the device by downloading after receiving the new single board data, and the network manager performs the warehousing operation after the issuing is successful, and ends the single board switching process.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
In this embodiment, a network manager is further provided, which includes the determination apparatus for configuration information shown in fig. 6 or fig. 7
In this embodiment, a system is further provided, which includes the network element device and the network manager.
It should be noted that, for the explanation of the above-mentioned determining apparatus of configuration information, details are not described here.
Example 4
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the above-mentioned storage medium may be configured to store program codes for executing the steps of the method in embodiment 1.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (18)

1. A method for determining configuration information, comprising:
receiving a board changing completion instruction for indicating that a first single board on network element equipment is switched to a second single board;
determining configuration information of the second single board according to configuration information of the network element device and first neighbor information of each port of the first single board, which are backed up in advance by a network manager, wherein the configuration information of the network element device comprises configuration information of each port corresponding to each single board in the network element device, and the first neighbor information comprises local port information, opposite MAC address information and version information of opposite network element device;
wherein the determining the configuration information of the second board according to the configuration information of the network element device pre-backed up by the network management and the first neighbor information of each port of the first board comprises:
matching the first neighbor information of each port of the first single board with the second neighbor information of each port of the second single board to obtain a matching result;
generating a corresponding relation between each port of the first single board and each port of the second single board according to the matching result;
determining the configuration information of the second single board according to the corresponding relationship and the configuration information of the network element equipment;
wherein the corresponding relationship comprises:
and if the matching result is that the first neighbor information of the first designated port of the first board is consistent with the second neighbor information of the second designated port of the second board, the first designated port corresponds to the second designated port.
2. The method according to claim 1, wherein before determining the configuration information of the second board according to the configuration information of the network element device that is backed up by a network manager in advance and the first neighbor information of each port of the first board, the method further comprises:
detecting whether the connection state of the second single board is normal; and determining the configuration information of the second single board according to the configuration information of the network element device pre-backed up by the network manager and the first neighbor information of each port of the first single board under the condition that the connection state of the second single board is normal.
3. The method of claim 1, wherein determining the configuration information of the second board according to the correspondence and the configuration information of the network element device comprises:
and setting the configuration information of the first designated port in the configuration information of the network element equipment as the configuration information of the second designated port.
4. The method according to claim 1, wherein before matching the first neighbor information with the second neighbor information of each port of the second board to obtain a matching result, the method further comprises:
judging whether all cable connections corresponding to the second single board are normal or not; and matching the first neighbor information with second neighbor information of each port of the second single board under the condition of normal connection to obtain a matching result.
5. The method according to claim 1, wherein after determining the configuration information of the second board according to the configuration information of the network element device that is backed up by a network manager in advance and the first neighbor information of each port of the first board, the method further comprises:
sending the determined configuration information of the second single board to the network element equipment; and/or
And storing the determined configuration information of the second single board in a database of the network manager.
6. The method according to claim 1, wherein before receiving a board switching completion instruction for instructing a first board on a network element device to switch to a second board, the method further comprises:
receiving a switching instruction for instructing to switch the first single board to the second single board;
and backing up the configuration information of the network element equipment and the neighbor information of each port of the first single board.
7. The method according to claim 6, wherein after backing up the configuration information of the network element device and the neighbor information of each port of the first board, the method further comprises:
after receiving a first instruction for indicating that the first single board on the network manager is pulled out, deleting the configuration information of the first single board on the network manager;
and sending a second instruction for instructing to pull out the first single board and/or delete the configuration information of the first single board on the network element equipment to the network element equipment.
8. The method according to any of claims 1 to 7, wherein the configuration information of the network element device comprises: configuration information of each port corresponding to each single board in the network element equipment; the first neighbor information includes: the network element equipment comprises local terminal port information, opposite terminal MAC address information and version information of opposite terminal network element equipment.
9. An apparatus for determining configuration information, comprising:
a first receiving module, configured to receive a board change completion instruction for instructing a network element device to switch a first board to a second board;
a determining module, configured to determine configuration information of the second board according to configuration information of the network element device and first neighbor information of each port of the first board, where the configuration information of the network element device includes configuration information of each port corresponding to each board in the network element device, and the first neighbor information includes local port information, opposite MAC address information, and version information of the opposite network element device;
wherein the determining module comprises:
a matching unit, configured to match the first neighbor information of each port of the first board with second neighbor information of each port of the second board, so as to obtain a matching result;
a generating unit, configured to generate, according to a matching result, a correspondence between each port of the first board and each port of the second board;
a determining unit, configured to determine configuration information of the second board according to the corresponding relationship and the configuration information of the network element device;
wherein the corresponding relationship comprises: and if the matching result is that the first neighbor information of the first designated port of the first board is consistent with the second neighbor information of the second designated port of the second board, the first designated port corresponds to the second designated port.
10. The apparatus of claim 9, further comprising:
the detection module is used for detecting whether the connection state of the second single board is normal or not; and determining the configuration information of the second single board according to the configuration information of the network element device pre-backed up by the network manager and the first neighbor information of each port of the first single board under the condition that the connection state of the second single board is normal.
11. The apparatus of claim 9, wherein the determining unit is further configured to set the configuration information of the first specified port in the configuration information of the network element device as the configuration information of the second specified port.
12. The apparatus of claim 9, further comprising:
the judging module is used for judging whether all cable connections corresponding to the second single board are normal or not; and matching the first neighbor information with second neighbor information of each port of the second single board under the condition of normal connection to obtain a matching result.
13. The apparatus of claim 9, further comprising:
a first sending module, configured to send the determined configuration information of the second board to the network element device; and/or
And the storage module is used for storing the determined configuration information of the second single board in a database of the network manager.
14. The apparatus of claim 9, further comprising:
a second receiving module, configured to receive a switching instruction for instructing to switch the first board to the second board;
a backup module, configured to backup the configuration information of the network element device and the neighbor information of each port of the first board.
15. The apparatus of claim 14, further comprising:
a deleting module, configured to delete the configuration information of the first board on the network manager after receiving a first instruction for indicating that the first board on the network manager has been pulled out;
a second sending module, configured to send, to the network element device, a second instruction for instructing to pull out the first board and/or delete the configuration information of the first board on the network element device.
16. The apparatus according to any of claims 9 to 15, wherein the configuration information of the network element device comprises: configuration information of each port corresponding to each single board in the network element equipment; the first neighbor information includes: the network element equipment comprises local terminal port information, opposite terminal MAC address information and version information of opposite terminal network element equipment.
17. A network management system, comprising the apparatus of any one of claims 9 to 16.
18. A system comprising the network management system and the network element device of claim 17.
CN201610362360.5A 2016-05-26 2016-05-26 Method and device for determining configuration information, network manager and system Active CN107438011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610362360.5A CN107438011B (en) 2016-05-26 2016-05-26 Method and device for determining configuration information, network manager and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610362360.5A CN107438011B (en) 2016-05-26 2016-05-26 Method and device for determining configuration information, network manager and system

Publications (2)

Publication Number Publication Date
CN107438011A CN107438011A (en) 2017-12-05
CN107438011B true CN107438011B (en) 2022-03-18

Family

ID=60454514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610362360.5A Active CN107438011B (en) 2016-05-26 2016-05-26 Method and device for determining configuration information, network manager and system

Country Status (1)

Country Link
CN (1) CN107438011B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691386A (en) * 2020-05-19 2021-11-23 中兴通讯股份有限公司 Resource configuration method, network device, electronic device and computer readable medium
CN114268536B (en) * 2020-09-16 2024-01-05 中盈优创资讯科技有限公司 Method and device for describing equipment port in full-automatic standard telecommunication network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459499A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Method for substituting single board and single board
CN101908970A (en) * 2009-06-08 2010-12-08 华为技术有限公司 Network element replacing method and equipment
CN103812680A (en) * 2012-11-14 2014-05-21 中兴通讯股份有限公司 System and method for achieving single plate switching

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4532421B2 (en) * 2006-02-27 2010-08-25 アラクサラネットワークス株式会社 Network relay device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459499A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Method for substituting single board and single board
CN101908970A (en) * 2009-06-08 2010-12-08 华为技术有限公司 Network element replacing method and equipment
CN103812680A (en) * 2012-11-14 2014-05-21 中兴通讯股份有限公司 System and method for achieving single plate switching

Also Published As

Publication number Publication date
CN107438011A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN108023773B (en) Method for realizing zero configuration online of network equipment and configuration server
CN100525206C (en) Realizing method and system for automatic restoring equipment fault
CN100450015C (en) Method for updating and recovering terminal device data in device management
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN104486125A (en) Backup method and device of configuration files
CN110442427B (en) Virtual machine snapshot management method, device, equipment and storage medium
CN103713925A (en) Method and device for avoiding service interruption of storage array in upgrading process
CN104618136A (en) Configuration management method and device for blade server
CN107438011B (en) Method and device for determining configuration information, network manager and system
CN105357057A (en) Center-free monitoring management node off-site redundancy method
CN111901142A (en) Firmware silent upgrading method and device for embedded equipment cluster
US20170318483A1 (en) Self-recovery method and device after disconnection of base station
CN108874410B (en) Patch management method and device
CN107623705B (en) Storage mode upgrading method, device and system based on video cloud storage system
CN110958287B (en) Operation object data synchronization method, device and system
CN111209012A (en) Linux system-oriented software agent end automatic deployment method
CN111984287A (en) Equipment upgrading method and system
CN110688252A (en) Data recovery method, data backup device and storage medium
CN110597672A (en) Method and device for main/standby switching of ATCA switching system
CN111211921A (en) Remote upgrading method and system for module unit and computer readable storage medium
CN114598604B (en) Monitoring method, monitoring device and terminal for virtual network function instance information
CN109542841A (en) The method and terminal device of data snapshot are created in cluster
CN114356357A (en) Mirror image file processing method and device and electronic equipment
CN111324488B (en) Program backup processing method and device
CN108848187B (en) Method, device and equipment for establishing communication connection and readable storage medium

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