Disclosure of Invention
In view of the foregoing, it is desirable to provide a network management system communication method, device, storage medium and computer device capable of effectively expanding a system.
A network management system communication method, the method comprising:
judging whether the network management system needs to be configured with a sub-module for business processing according to the business requirements of the network management system;
when the network management system needs to configure the sub-module, the sub-module is simulated into communication equipment;
and establishing communication between the sub-modules, or between the sub-modules and a network manager, or between the sub-modules and communication equipment in the network management system through an SNMP (simple network management protocol) according to the service requirement.
In one embodiment, the determining whether the network management system needs to configure a sub-module for service processing according to the service requirement of the network management system includes:
acquiring the communication service requirement of the network management system and the networking architecture of the network management system;
and judging whether the network management system needs to be configured with a sub-module for service processing according to the communication service requirement and the networking architecture.
In one embodiment, obtaining a networking architecture of a network management system includes:
and acquiring a topological graph of the network management system, and identifying a networking architecture of the network management system according to the topological graph of the network management system.
In one embodiment, the simulating a sub-module in the network management system into a communication device includes:
generating sub-module configuration data according to the service requirement, wherein the configuration data comprises service data, a communication equipment identity identification mark and an SNMP (simple network management protocol);
and sending the sub-module configuration data to the sub-module, and simulating the sub-module into communication equipment.
In one embodiment, the establishing communication between the sub-modules, or between each sub-module and a network manager, or between each sub-module and a communication device in the network management system further includes:
when the sub-module receives the message to be reported, the sub-module sends the message to be reported to the upper sub-module or the network management corresponding to the current sub-module through the SNMP protocol.
In one embodiment, the establishing communication between the sub-modules, or between each sub-module and a network manager, or between each sub-module and a communication device in the network management system further includes:
and when the sub-module receives the message to be reported, processing the message to be reported, and sending a processing result to an upper sub-module or a network manager corresponding to the current sub-module through an SNMP (simple network management protocol).
A network management system communication device, comprising:
the judging module is used for judging whether the network management system needs to be configured with a sub-module for business processing according to the business requirement of the network management system;
the simulation module is used for simulating the sub-module into communication equipment when the network management system needs to configure the sub-module;
and the communication module is used for establishing communication between the sub-modules, or between the sub-modules and the network management, or between the sub-modules and the communication equipment in the network management system according to the service requirement through an SNMP protocol.
In one embodiment, the determining module is specifically configured to obtain a communication service requirement of the network management system and a networking architecture of the network management system, and determine whether the network management system needs to configure a sub-module for service processing according to the communication service requirement and the networking architecture.
A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the communication method, the communication device, the computer equipment and the storage medium of the network management system, whether the network management system needs to be provided with the sub-modules for business processing is judged according to the business requirements of the network management system, when the network management system needs to be provided with the sub-modules, the sub-modules are simulated into the communication equipment, and according to the business requirements, the communication between the sub-modules, or between the sub-modules and the network management, or between the sub-modules and the communication equipment in the network management system is established through an SNMP protocol. In the whole process, the difference between the submodule and the communication equipment is shielded by using an SNMP protocol, and the network management system and the internal communication equipment are expanded in parallel according to the service requirement of the network management system, so that the good capacity expansion capability of the system is realized.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The network management system communication method provided by the application can be applied to the application environment shown in fig. 1. The network management system 102 communicates with the server 104 through a network. The server 104 controls the whole networking and function expansion process of the network management system 102. Specifically, the server 104 determines whether the network management system 102 needs to configure the sub-modules for the service processing according to the service requirement of the network management system 102, when the network management system 102 needs to configure the sub-modules, the sub-modules are simulated as communication devices, and according to the service requirement, communication between the sub-modules, or between the sub-modules and the network management, or between the sub-modules and the communication devices in the network management system is established through an SNMP protocol.
In an embodiment, as shown in fig. 2, a network management system communication method is provided, which is described by taking the application of the method to the network management system in fig. 1 as an example, and includes the following steps:
a communication method of a network management system comprises the following steps:
s200: and judging whether the network management system needs to be configured with a sub-module for service processing according to the service requirement of the network management system.
The network system is a distributed network application system with software and hardware combined and software as main parts, and aims to manage the network and enable the network to run efficiently and normally. The service requirement is a requirement for realizing or achieving a certain function in order to meet the requirement of the current application scenario. The sub-module is used for realizing and expanding the service processing capacity. When a network management system has new service requirements in a current application scene, the network management system may need to perform service expansion, and when the service expansion is needed, a sub-module for service processing needs to be configured.
S400: when the network management system needs to configure the sub-module, the sub-module is simulated into the communication equipment.
In order to meet the current application scenario, the network management system may need to configure a plurality of sub-modules to enrich and expand the functions thereof, and when the network management system needs to configure the sub-modules, the sub-modules are simulated into communication equipment to eliminate the difference between the sub-modules and the communication equipment, thereby reducing the obstacles existing in the expansion process of the whole network management system. In particular, the simulation process can understand the encapsulation process, i.e. encapsulating the interaction data between the sub-module and the external device (including other sub-modules and the communication device), and modifying the interaction data into the data format and protocol used and supported by the communication device. Specifically, the sub-modules are software-like virtual modules, and when the sub-modules are simulated into communication equipment, data such as hardware physical addresses and identification identifiers corresponding to the sub-modules need to be reconfigured, and specifically, responsive data can be configured for each sub-module according to a preset data table. In addition, the communication protocol of the sub-module in the network management system can be modified based on the SNMP protocol, namely, the data output by the sub-module is packaged and packed based on the SNMP protocol. The SNMP protocol consists of a set of network management standards including an application layer protocol, a database model and a set of data objects. The protocol can support a network management system to monitor devices connected to the network for any regulatory concerns. The protocol is part of the internet protocol cluster defined by the internet engineering task force.
In one embodiment, the S400 includes: generating sub-module configuration data according to the service requirement, wherein the configuration data comprises service data, a communication equipment identity identification mark and an SNMP (simple network management protocol); and sending the sub-module configuration data to the sub-module, and simulating the sub-module into communication equipment. The service data is used for configuring and adjusting the service processing function of the sub-module, the communication equipment identity identification mark is used for simulating the sub-module into the identity of the communication equipment in a network management system, specifically, the communication equipment identity identification mark can be the physical address of the communication equipment, and the SNMP protocol is used for enabling the sub-module to communicate based on the protocol in the subsequent data interaction process. Specifically, the network management system obtains a service requirement according to a current application scenario, determines a service function of a sub-module to be configured according to the service requirement, allocates a physical address of communication equipment which is simulated into the communication equipment to each sub-module (the allocation process can be based on a preset allocation list), sends configuration data including service data, the physical address of the communication equipment and an SNMP protocol to each sub-module, and completes self-configuration according to the configuration data after the sub-module receives the configuration data.
S600: and establishing communication between the sub-modules, or between the sub-modules and a network manager, or between the sub-modules and communication equipment in a network management system through an SNMP protocol according to the service requirement.
The network management system realizes the expansion of the functions through the configuration of the sub-modules. Generally speaking, a single sub-module or a certain number of sub-modules can coordinate functions to expand a certain function of the network management system, in the process of realizing the function, data can be interacted between the sub-modules and communication equipment in the network management system, the sub-modules are simulated into the communication equipment in the step S400, the difference between the sub-modules and the communication equipment is shielded, and based on a universal SNMP protocol, data interaction can be smoothly carried out between the sub-modules simulated into the communication equipment, between the sub-modules and the communication equipment and between the sub-modules and the network management system, so that the functions of the network management system are expanded. It is not necessary that there is data defined in the SNMP protocol that supports asynchronous communication, and therefore, asynchronous communication between devices can be established based on the SNMP protocol. In addition, because the network management system realizes the function expansion by adding the sub-modules, new sub-modules are added irregularly along with the requirement of expansion, and asynchronous communication between the communication equipment in the network management system and each sub-module simulated into the communication equipment is required to be established in order to ensure the normal operation of the whole network. In other words, based on the SNMP protocol, asynchronous communication between the communication device in the network management system and each submodule simulated as the communication device is established, so that the newly added submodule and the existing device (including the existing submodule and the communication device) can be ensured to normally realize data interaction in the expansion process of the network management system.
According to the communication method of the network management system, whether the network management system needs to be provided with the sub-modules for business processing is judged according to the business requirements of the network management system, when the network management system needs to be provided with the sub-modules, the sub-modules are simulated into communication equipment, and communication among the sub-modules, or between the sub-modules and the network management system, or between the sub-modules and the communication equipment in the network management system is established through an SNMP protocol according to the business requirements. In the whole process, the difference between the submodule and the communication equipment is shielded by using an SNMP protocol, and the network management system and the internal communication equipment are expanded in parallel according to the service requirement of the network management system, so that the good capacity expansion capability of the system is realized.
As shown in fig. 3, in one embodiment, step S200 further includes:
s220: acquiring communication service requirements of a network management system and a networking architecture of the network management system;
s240: and judging whether the network management system needs to be configured with a sub-module for service processing according to the communication service requirement and the networking architecture.
For different application scenarios, users may put forward different communication service requirements, and in order to meet the current communication service requirements, the functions implemented by the whole network management system need to be adjusted and expanded. And judging whether a submodule for processing the service needs to be configured or not according to the current communication service requirement and a gateway system networking architecture, and configuring the determined submodule into the original network management system when the submodule needs to be configured.
In one embodiment, obtaining a networking architecture of a network management system includes: and acquiring a topological graph of the network management system, and identifying a networking architecture of the network management system according to the topological graph of the network management system.
The networking architecture refers to which components are included in the whole network, and how the connection relationship among the components is. In a conventional networking architecture, a plurality of terminals are connected to a server, and the server is responsible for centralized management and control of each terminal. The networking architecture can be characterized by adopting a topological graph, and the topology is a method for researching the characteristics of geometric figures independent of size and distance. The network topology is a network structure diagram composed of network node devices and communication media. In selecting the topology, the main considerations are: relative ease of installation, ease of reconfiguration, relative ease of maintenance, and the condition of the device affected when the communication medium fails. Based on the topological graph of the network management system, the networking architecture of the whole network management system can be accurately identified, and the number of communication devices included in the whole network management system can be known. The network management system topology map can be obtained based on historical data set by the network management system, for example, the network management system topology map can be obtained from the recorded data of the network management system after the last update.
In one embodiment, after establishing communication between the sub-modules, or between each sub-module and the network management, or between each sub-module and the communication device in the network management system, the method further includes:
when the sub-module receives the message to be reported, the sub-module sends the message to be reported to the upper sub-module or the network management corresponding to the current sub-module through the SNMP protocol.
The message to be reported is a message to be sent to the upper layer equipment. When the sub-module receives the message to be reported, the sub-module sends the message to be reported to the corresponding upper layer sub-module or network management through the SNMP protocol, and the message to be reported is handed over to the corresponding upper layer sub-module or network management for processing.
In one embodiment, after establishing communication between the sub-modules, or between each sub-module and the network management, or between each sub-module and the communication device in the network management system, the method further includes:
and when the sub-module receives the message to be reported, processing the message to be reported, and sending the processing result to an upper sub-module or a network manager corresponding to the current sub-module through an SNMP (simple network management protocol).
When the sub-module receives the message to be reported, the sub-module can also process the message to be reported automatically, and directly send the processing result to the corresponding upper sub-module or network manager, so that the data processing pressure of the upper sub-module or network manager is reduced.
It should be understood that although the various steps in the flowcharts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
As shown in fig. 4, a communication device of a network management system includes:
the judging module 200 is used for judging whether the network management system needs to be configured with a sub-module for business processing according to the business requirement of the network management system;
the simulation module 400 is used for simulating the sub-module into communication equipment when the network management system needs to configure the sub-module;
the communication module 600 is configured to establish communication between the sub-modules, or between each sub-module and a network manager, or between each sub-module and a communication device in a network management system according to a service requirement through an SNMP protocol.
The above-mentioned network management system communication device, according to the business requirement of the network management system, the judging module 200 judges whether the network management system needs to configure the sub-module of the business processing, when the network management system needs to configure the sub-module, the simulation module 400 simulates the sub-module into the communication equipment, the communication module 600 establishes the communication between the sub-modules, or between the sub-modules and the network management, or between the sub-modules and the communication equipment in the network management system according to the business requirement through the SNMP protocol. In the whole process, the difference between the submodule and the communication equipment is shielded by using an SNMP protocol, and the network management system and the internal communication equipment are expanded in parallel according to the service requirement of the network management system, so that the good capacity expansion capability of the system is realized.
In one embodiment, the determining module 200 is further configured to obtain a communication service requirement of the network management system and a networking architecture of the network management system; and judging whether the network management system needs to be configured with a sub-module for service processing according to the communication service requirement and the networking architecture.
In one embodiment, the determining module 200 is further configured to obtain a topology map of the network management system, and identify a networking architecture of the network management system according to the topology map of the network management system.
In one embodiment, the simulation module 400 is further configured to generate sub-module configuration data according to the service requirement, where the configuration data includes service data, an identification identifier of the communication device, and an SNMP protocol; and sending the sub-module configuration data to the sub-module, and simulating the sub-module into communication equipment.
In one embodiment, the method further comprises the following steps:
and the first reporting module is used for sending the message to be reported to the upper layer submodule or the network management corresponding to the current submodule through the SNMP when the submodule receives the message to be reported.
In one embodiment, the method further comprises the following steps:
and the second reporting module is used for processing the message to be reported when the sub-module receives the message to be reported and sending the processing result to the upper sub-module or the network management corresponding to the current sub-module through the SNMP.
For the specific limitation of the communication device of the network management system, reference may be made to the above limitation on the communication method of the network management system, and details are not described herein again. All modules in the network management system communication device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
To further explain the technical solution and effect of the communication method and device of the network management system in detail, an application example will be used in the following, and is described with reference to fig. 5.
As shown in fig. 5, the whole network management system can add a processing sub-module between the device and the network management according to specific service requirements, process the information reported by the device, perform information interaction between the sub-modules, and submit the related service information to the network management, thereby finally realizing the undifferentiated communication and management of the system sub-modules and the device.
Overall, the technical solution of the above network management system communication method and apparatus has the following significant effects: the SNMP protocol is adopted, and the advantages of the existing mature protocol are fully utilized; the large-scale expansion of the information processing system can be realized without increasing the difficulty of system development; the existing system can be modularly transformed, and the system can be decoupled; the asynchronous communication mode between the network management and the sub-module, between the sub-module and between the sub-module and the equipment can be realized by utilizing the SNMP protocol.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as SNMP protocol. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network management system communication method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
judging whether the network management system needs to be configured with a sub-module for business processing according to the business requirements of the network management system;
when the network management system needs to configure the sub-module, the sub-module is simulated into communication equipment;
and establishing communication between the sub-modules, or between the sub-modules and a network manager, or between the sub-modules and communication equipment in a network management system through an SNMP protocol according to the service requirement.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring communication service requirements of a network management system and a networking architecture of the network management system; and judging whether the network management system needs to be configured with a sub-module for service processing according to the communication service requirement and the networking architecture.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and acquiring a topological graph of the network management system, and identifying a networking architecture of the network management system according to the topological graph of the network management system.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
generating sub-module configuration data according to the service requirement, wherein the configuration data comprises service data, a communication equipment identity identification mark and an SNMP (simple network management protocol); and sending the sub-module configuration data to the sub-module, and simulating the sub-module into communication equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the sub-module receives the message to be reported, the sub-module sends the message to be reported to the upper sub-module or the network management corresponding to the current sub-module through the SNMP protocol.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the sub-module receives the message to be reported, processing the message to be reported, and sending the processing result to an upper sub-module or a network manager corresponding to the current sub-module through an SNMP (simple network management protocol).
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
judging whether the network management system needs to be configured with a sub-module for business processing according to the business requirements of the network management system;
when the network management system needs to configure the sub-module, the sub-module is simulated into communication equipment;
and establishing communication between the sub-modules, or between the sub-modules and a network manager, or between the sub-modules and communication equipment in a network management system through an SNMP protocol according to the service requirement.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring communication service requirements of a network management system and a networking architecture of the network management system; and judging whether the network management system needs to be configured with a sub-module for service processing according to the communication service requirement and the networking architecture.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and acquiring a topological graph of the network management system, and identifying a networking architecture of the network management system according to the topological graph of the network management system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
generating sub-module configuration data according to the service requirement, wherein the configuration data comprises service data, a communication equipment identity identification mark and an SNMP (simple network management protocol); and sending the sub-module configuration data to the sub-module, and simulating the sub-module into communication equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the sub-module receives the message to be reported, the sub-module sends the message to be reported to the upper sub-module or the network management corresponding to the current sub-module through the SNMP protocol.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the sub-module receives the message to be reported, processing the message to be reported, and sending the processing result to an upper sub-module or a network manager corresponding to the current sub-module through an SNMP (simple network management protocol).
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.