CN112752282A - Network element management system data reporting method and system - Google Patents

Network element management system data reporting method and system Download PDF

Info

Publication number
CN112752282A
CN112752282A CN202011460105.7A CN202011460105A CN112752282A CN 112752282 A CN112752282 A CN 112752282A CN 202011460105 A CN202011460105 A CN 202011460105A CN 112752282 A CN112752282 A CN 112752282A
Authority
CN
China
Prior art keywords
data
reported
northbound
platform
data template
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.)
Granted
Application number
CN202011460105.7A
Other languages
Chinese (zh)
Other versions
CN112752282B (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.)
Wuhan Hongxin Technology Development Co Ltd
Original Assignee
Wuhan Hongxin Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Hongxin Technology Development Co Ltd filed Critical Wuhan Hongxin Technology Development Co Ltd
Priority to CN202011460105.7A priority Critical patent/CN112752282B/en
Publication of CN112752282A publication Critical patent/CN112752282A/en
Application granted granted Critical
Publication of CN112752282B publication Critical patent/CN112752282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a system for reporting network element management system data, wherein the method comprises the following steps: collecting data to be reported of a network element management system, and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported; matching the data to be reported with the insertion parameters in the data template frame, taking the insertion position of the matched insertion parameters as the insertion position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported; and reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform. The invention not only improves the real-time property of data reporting, but also has variable content and length of the data template and stronger flexibility, can directly insert any data to be reported into the data template, avoids reconfiguring the template or restarting a background server, and reduces the maintenance cost of a network element management system.

Description

Network element management system data reporting method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for reporting data in a network element management system.
Background
With the rapid development of mobile communication, the types of network element devices in a communication network are more and more, and the management of the network element devices by users is more and more refined. The requirement for the network element management system is increasing, and besides the requirement that the network element management system can manage various network element devices, the network element management system needs to report important real-time data to a plurality of northbound platforms at the same time, so that a user can perform fine classified management on the network element devices through different northbound platforms.
Because the developers of each northbound platform are different, the format requirements of the data reported by the network element management system are different. With the increasing number of north-bound platforms, the network element management system needs to invest a large amount of development resources to perform customized development.
At present, part of network element management systems unify data formats by making templates. However, the template established by the method has fixed content and poor flexibility, the template needs to be configured at a background server, and the background server needs to be restarted, so that the maintenance cost is high. Frequent upgrading and restarting of the network element management system easily causes data loss, which causes instability and poor safety of the network element management system.
Disclosure of Invention
The invention provides a method and a system for reporting data of a network element management system, which are used for solving the defects of poor flexibility, high maintenance cost, poor stability and poor safety because the configuration and the restart are required at a background server side when the data of the network element management system is reported in the prior art, reducing the maintenance cost and reporting the data in real time while ensuring the stability and the safety of the network element management system.
The invention provides a network element management system data reporting method, which comprises the following steps:
collecting data to be reported of a network element management system, and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported;
matching the data to be reported with the insertion parameters in the data template frame, taking the insertion position of the matched insertion parameters as the insertion position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported;
and reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
According to the data reporting method of the network element management system provided by the present invention, the searching for the data template frame containing the IP address from the database according to the IP address of the northbound platform to which the data to be reported is to be reported also includes:
generating a frame header of the data template frame according to the IP address and the port number of the northbound platform configured by a user;
generating a data template according to the content of the data template configured by a user and the length of the data template;
and generating the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user.
According to the method for reporting data of a network element management system provided by the present invention, the generating of the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user comprises:
generating a byte stream of the number and the insertion position of the insertion parameter according to the preset position and the occupied byte of the number of the insertion parameter in the insertion parameter information and the preset position and the occupied byte of the insertion position of the insertion parameter in the insertion parameter information;
and taking the byte stream as the insertion parameter information.
According to the method for reporting data of a network element management system provided by the present invention, the matching of the data to be reported and the insertion parameters in the data template frame, and the taking of the insertion position of the matched insertion parameters as the insertion position of the data to be reported, comprises:
acquiring the number and the inserting position of each inserting parameter from the inserting parameter information;
matching the number of the data to be reported with the number of each insertion parameter;
and taking the insertion position corresponding to the number of the matched insertion parameter as the insertion position of the data to be reported.
According to the data reporting method of the network element management system provided by the invention, the reporting of the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform comprises the following steps:
sending the frame header of the data template frame and the data template inserted into the data to be reported to a data reporting server, so that the data reporting server can analyze the frame header, acquire the IP address and the port number of the northbound platform, and report the data template inserted into the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
According to the data reporting method of the network element management system provided by the invention, the data template inserted with the data to be reported is received by the data reporting server through a pre-established receiving thread, is positioned in the sending queue corresponding to the northbound platform and is reported to the northbound platform through the pre-established sending thread corresponding to the northbound platform; the sending threads correspond to the northbound platforms one to one, and the sending queues correspond to the northbound platforms one to one.
The invention also provides a system for reporting the data of the network element management system, which comprises:
the searching module is used for acquiring data to be reported of a network element management system and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported;
the inserting module is used for matching the data to be reported with the inserting parameters in the data template frame, taking the inserting position of the matched inserting parameters as the inserting position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the inserting position of the data to be reported;
and the reporting module is used for reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
The system for reporting data of a network element management system according to the present invention further comprises a generating module, specifically configured to:
generating a frame header of the data template frame according to the IP address and the port number of the northbound platform configured by a user;
generating a data template according to the data template content and the data template length configured by a user;
and generating the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor implements any one of the steps of the network element management system data reporting method when executing the computer program.
The present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the above network element management system data reporting methods.
According to the data reporting method and system of the network element management system, the data template frame containing the IP address can be automatically found according to the IP address of the northbound platform to which the data to be reported is to be reported, the data to be reported is matched with the insertion parameters in the data template frame, the data to be reported is inserted into the data template according to the insertion position of the insertion parameters, and the data template into which the data to be reported is inserted can be distributively reported to each northbound platform according to the IP address and the port number of each northbound platform.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for reporting data in a network element management system according to the present invention;
fig. 2 is a schematic structural diagram of a network element management system, a data reporting server and a northbound platform in the method for reporting data of a network element management system according to the present invention;
fig. 3 is a schematic structural diagram of a data template frame in the method for reporting data in a network element management system according to the present invention;
fig. 4 is a second schematic flow chart of the method for reporting data of the network element management system according to the present invention;
fig. 5 is a third schematic flow chart of a data reporting method of a network element management system according to the present invention;
fig. 6 is a schematic structural diagram of a data reporting system of a network element management system provided in the present invention;
fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes a data reporting method of a network element management system according to the present invention with reference to fig. 1, including: step 101, collecting data to be reported of a network element management system, and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported;
the data to be reported may be an alarm number, an alarm name, an alarm time, and the like of the network element management system, and this embodiment is not limited to the type of the data to be reported. As shown in fig. 2, the network element management system includes a network management front end, a database, and a network management server. The front end of the network management can provide a user operation interface, so that a user can conveniently input data; the database is used for storing data; the network management server can provide background logic processing. The network management front end, the database and the network management server are set up on a server cluster of the network element management system.
The network management server side of the network element management system can collect the data to be reported in real time. When any data to be reported is collected, the network management server can search the data template frame containing the IP address in the database according to the IP address of the northbound platform to be reported of the data to be reported. The data base stores a plurality of data template frames, and each data template frame stores the IP address of any northbound platform.
102, matching the data to be reported with the insertion parameters in the data template frame, taking the insertion position of the matched insertion parameters as the insertion position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported;
the data template frame stores not only the number of the insertion parameter, but also the insertion position of the insertion parameter. Each insertion parameter corresponds to a number and an insertion location. After the data template frame is found, the number of the data to be reported and the number of the parameters inserted in the data template frame can be matched one by one. And according to the number of the matched insertion parameter, the insertion position of the insertion parameter can be found in the data template frame, and then the insertion position of the data to be reported is obtained. And inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported to form complete data to be reported. The content in the data template can be pre-constructed according to actual requirements.
In the prior art, data to be reported is directly filled in a preset position in a template, and when the length or the content of the data to be reported changes, the template needs to be reconfigured, so that the flexibility is poor. The content and length of the data template in the data template frame of this embodiment are variable, and the data to be reported are inserted into the data template one by one according to the number of the data to be reported, so that the complete data to be reported can be obtained. Not only can the template be prevented from being reconfigured or the background server side can be restarted, and the maintenance cost of the system is reduced; and a flexible data template can be formulated according to actual requirements, so that the method has high flexibility.
And 103, reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
The IP (Internet Protocol) address is a uniform address format provided by the IP Protocol, and allocates a logical address to each network and each host on the Internet, so as to mask the difference of physical addresses. And each data template frame stores the IP address and the port number of the northbound platform. Therefore, according to the IP address and the port number of the northbound platform in the data template frame, the data template inserted with the data to be reported can be reported to the corresponding northbound platform. The network element management system may directly report the data template into which the data to be reported is inserted to the corresponding northbound platform, or the network element management system may report the data template to the corresponding northbound platform through another server. The reporting method is not specifically limited in this embodiment. According to the IP address and the port number, the data template inserted with the data to be reported can be reported to each northbound platform in a distributed mode.
According to the embodiment, the data template frame containing the IP address can be automatically found according to the IP address of the northbound platform to which the data to be reported is to be reported, the data to be reported is matched with the insertion parameters in the data template frame, the data to be reported is inserted into the data template according to the insertion positions of the insertion parameters, and the data template into which the data to be reported is inserted can be distributively reported to each northbound platform according to the IP address and the port number of each northbound platform.
On the basis of the foregoing embodiment, in this embodiment, the searching, according to the IP address of the northbound platform to which the data to be reported is to be reported, for the data template frame including the IP address from the database further includes: generating a frame header of the data template frame according to the IP address and the port number of the northbound platform configured by a user; generating a data template according to the content of the data template configured by a user and the length of the data template; and generating the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user.
Specifically, the user can configure the content and length of the data template, the number and insertion position of the insertion parameter, the IP address and port number of each northbound platform, and the like according to an operation interface presented by the front end of the network manager in the network element management system. According to these configurations, a data template frame can be generated.
The data template frame comprises a frame head, a data template and insertion parameter information. As shown in fig. 3, the header part stores the IP address and the port number of any northbound platform, and the number of bytes occupied by the header can be adjusted according to actual requirements. For example, the header occupies 12 bytes in length, wherein the IP address occupies 8 bytes and the port number occupies 4 bytes. The data template portion consists of the content of the user-configured data template and the length of the data template. Generally, the content of the data template configured by the user is a character string in a fixed format and a variable character string, and the content of the data template configured by the user can be converted into a byte stream. The length of the content of the data template is then calculated, which may be placed in front of or behind the content of the data template. The user can configure the content of the data template according to actual requirements. The number of bytes occupied by the length of the data template can be set according to actual requirements, for example, 8 bytes. The insertion parameter information stores the number, and insertion position of insertion parameters to be inserted into the contents of the data template. The number and number of the insertion parameters and the bytes occupied by the insertion positions can also be set according to actual requirements, for example, the number of the insertion parameters occupies 2 bytes, the number occupies 1 byte, and the insertion positions occupy 8 bytes.
As shown in fig. 4, according to the IP address and port number of the northbound platform configured by the user, a frame header may be generated and stored in the header of the data template frame; generating a data template according to the content of the data template configured by a user and the length of the data template, and storing the data template in the middle part of a data template frame; according to the number and the inserting position of the inserting parameter configured by the user, the inserting parameter information can be generated and stored at the tail part of the data template frame. The network management server can write the generated data template frame into the database in a byte stream mode and cache the data template frame at the network management server.
In this embodiment, a user can flexibly customize the data template through an operation interface at the front end of the network manager. After the north platform IP address, the port number and the data template are configured on the front-end interface, the system can be put into use, the configuration and the restart of a background server are avoided, the stability and the safety of the network element management system are guaranteed, and the maintenance cost of the system is reduced.
On the basis of the foregoing embodiment, in this embodiment, the generating insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user includes: generating a byte stream of the number and the insertion position of the insertion parameter according to the preset position and the occupied byte of the number of the insertion parameter in the insertion parameter information and the preset position and the occupied byte of the insertion position of the insertion parameter in the insertion parameter information; and taking the byte stream as the insertion parameter information.
Specifically, according to the number and the insertion position of each insertion parameter, the byte stream of the number and the insertion position of the insertion parameter can be generated according to the preset position and the occupied byte in the insertion parameter information. The position of the number of each insertion parameter is before the insertion position, for example, the insertion parameters are an alarm number and an alarm name, and the numbers of the alarm number and the alarm name are set to be 01 and 02 respectively. Wherein, the insertion position of the alarm number is the 5 th byte of the content of the data template, and the insertion position of the alarm name is the 9 th byte of the content of the data template, then the byte stream generated by the alarm number and the alarm name is 201000000050200000009. Where 2 denotes the number of insertion parameters, 01 denotes the number of alarm numbers, 00000005 denotes the insertion locations of alarm numbers, 02 denotes the number of alarm names, and 00000009 denotes the insertion locations of alarm names.
On the basis of the foregoing embodiment, in this embodiment, the matching the data to be reported with the insertion parameter in the data template frame, and taking the insertion position of the matched insertion parameter as the insertion position of the data to be reported includes: acquiring the number and the inserting position of each inserting parameter from the inserting parameter information; matching the number of the data to be reported with the number of each insertion parameter; and taking the insertion position corresponding to the number of the matched insertion parameter as the insertion position of the data to be reported.
Specifically, the number of each insertion parameter in the data template frame may be obtained according to the byte occupied by the number of each insertion parameter and the preset position. After the network management server collects the data to be reported, the serial number of each data to be reported can be matched with the serial number of the insertion parameter one by one. The number of each insertion parameter is placed before the insertion position, and the insertion position corresponding to the number of the insertion parameter can be obtained according to the number of the insertion parameter, the position where the number of the insertion parameter is located and the byte occupied by the insertion position of the insertion parameter.
On the basis of the foregoing embodiments, in this embodiment, reporting, to the northbound platform, the data template into which the data to be reported is inserted according to the IP address and the port number of the northbound platform includes: sending the frame header of the data template frame and the data template inserted into the data to be reported to a data reporting server, so that the data reporting server can analyze the frame header, acquire the IP address and the port number of the northbound platform, and report the data template inserted into the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
Specifically, after the network management server collects the data to be reported, the data to be reported can be inserted into the data template of the data template frame to form complete data to be reported. And then sending the frame header of the data template frame to a data reporting server. And after the data reporting server receives the frame header, analyzing the frame header to acquire the IP address and the port number of the northbound platform. And then, the data template inserted with the data to be reported is sent to a northbound platform corresponding to the IP address and the port number.
In this embodiment, the data reporting server is separated from the network management server and is set up on different servers. Any northbound platform can only access the data reporting server and cannot directly access the network element management system. By the method, a plurality of northbound platforms can be prevented from directly accessing the network management server, the possibility of server attack can be effectively reduced, the network security is improved, and the guarantee is provided for the long-term safe and stable operation of the system.
On the basis of the above embodiment, in this embodiment, the data template into which the data to be reported is inserted is received by the data reporting server through a pre-established receiving thread, is located in the sending queue corresponding to the northbound platform, and reports to the northbound platform through a pre-established sending thread corresponding to the northbound platform; the sending threads correspond to the northbound platforms one to one, and the sending queues correspond to the northbound platforms one to one.
Specifically, the data reporting server may create a receiving thread for receiving a frame header sent by the network management server and a data template into which data to be reported is inserted, and parse the frame header to extract an IP address and a port number of the northbound platform. And creating an independent sending thread according to the IP address and the port number of each northbound platform. Each sending thread corresponds to the IP address and the port number of each northbound platform one by one, and each sending thread corresponds to one sending queue and one timer. As shown in fig. 5, after the sending thread is created, the data reporting server places the data templates into which the data to be reported is inserted into the sending queues, and periodically sends the data templates into which the data to be reported is inserted in each sending queue to the northbound platform, triggered by the timer. By the mode, the receiving and the sending of the data can be separated, the data sending efficiency is improved, and the single thread blockage is avoided.
In addition, after the northbound platform receives the data template inserted with the data to be reported sent by the data reporting server, the northbound platform can return the received original frame of the data template inserted with the data to be reported to the data reporting server to confirm that the reported data is successfully sent. And traversing all the data in the sending queue after the sending thread receives the confirmation data sent by the northbound platform. And comparing the data returned by the northbound platform with the data of the sending queue one by one, finding the data returned by the northbound platform in the sending queue, and deleting the data from the sending queue to ensure that the timer can not send the data returned by the northbound platform after being triggered in the next period.
The embodiment can send the data templates inserted with the data to be reported to a plurality of northbound platforms in parallel through a plurality of sending threads, thereby realizing real-time multipoint data reporting, effectively reducing the possibility of sending queuing and greatly improving the data reporting efficiency. And each sending thread corresponds to an independent sending queue, and when the north platform fails to send data, the north platform can resend the data in the sending queue, so that the integrity of the reported data is guaranteed to the maximum extent.
The following describes the data reporting system of the network element management system provided by the present invention, and the data reporting system of the network element management system described below and the data reporting method of the network element management system described above can be referred to correspondingly.
As shown in fig. 6, this embodiment provides a system for reporting data of an element management system, which includes a searching module 601, an inserting module 602, and a reporting module 603; wherein:
the searching module 601 is configured to collect data to be reported of a network element management system, and search a data template frame including an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported;
the data to be reported may be an alarm number, an alarm name, an alarm time, and the like of the network element management system, and this embodiment is not limited to the type of the data to be reported. As shown in fig. 2, the network element management system includes a network management front end, a database, and a network management server. The front end of the network management can provide a user operation interface, so that a user can conveniently input data; the database is used for storing data; the network management server can provide background logic processing. The network management front end, the database and the network management server are set up on a server cluster of the network element management system.
The network management server side of the network element management system can collect the data to be reported in real time. When any data to be reported is collected, the network management server can search the data template frame containing the IP address in the database according to the IP address of the northbound platform to be reported of the data to be reported. The data base stores a plurality of data template frames, and each data template frame stores the IP address of any northbound platform.
The inserting module 602 is configured to match the data to be reported with the inserting parameters in the data template frame, use an inserting position of the matched inserting parameter as an inserting position of the data to be reported, and insert the data to be reported into the data template of the data template frame according to the inserting position of the data to be reported;
the data template frame stores not only the number of the insertion parameter, but also the insertion position of the insertion parameter. Each insertion parameter corresponds to a number and an insertion location. After the data template frame is found, the number of the data to be reported and the number of the insertion parameter in the data template frame can be matched one by one. And according to the number of the matched insertion parameter, the insertion position of the insertion parameter can be found in the data template frame, and then the insertion position of the data to be reported is obtained. And inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported to form complete data to be reported. The content in the data template can be pre-constructed according to actual requirements.
In the prior art, data to be reported is directly filled in a preset position in a template, and when the length or the content of the data to be reported changes, the template needs to be reconfigured, so that the flexibility is poor. The content and length of the data template in the data template frame of this embodiment are variable, and the data to be reported are inserted into the data template one by one according to the number of the data to be reported, so that the complete data to be reported can be obtained. Not only can the template be prevented from being reconfigured or the background server side can be restarted, and the maintenance cost of the system is reduced; and a flexible data template can be formulated according to actual requirements, so that the method has high flexibility.
The reporting module 603 is configured to report the data template into which the data to be reported is inserted to the northbound platform according to the IP address and the port number of the northbound platform.
The IP address is a uniform address format provided by the IP protocol, and a logical address is allocated to each network and each host on the internet, so as to mask the difference of physical addresses. And each data template frame stores the IP address and the port number of the northbound platform. Therefore, according to the IP address and the port number of the northbound platform in the data template frame, the data template into which the data to be reported is inserted can be reported to the corresponding northbound platform. The network element management system may directly report the data template into which the data to be reported is inserted to the corresponding northbound platform, or the network element management system may report the data template to the corresponding northbound platform through another server. The reporting method is not specifically limited in this embodiment. According to the IP address and the port number, the data template inserted with the data to be reported can be reported to each northbound platform in a distributed mode.
According to the embodiment, the data template frame containing the IP address can be automatically found according to the IP address of the northbound platform to which the data to be reported is to be reported, the data to be reported is matched with the insertion parameters in the data template frame, the data to be reported is inserted into the data template according to the insertion positions of the insertion parameters, and the data template into which the data to be reported is inserted can be distributively reported to each northbound platform according to the IP address and the port number of each northbound platform.
On the basis of the foregoing embodiment, the present embodiment further includes a generating module specifically configured to: generating a frame header of the data template frame according to the IP address and the port number of the northbound platform configured by a user; generating a data template according to the content of the data template configured by a user and the length of the data template; and generating the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user.
On the basis of the foregoing embodiment, the generating module in this embodiment is further configured to generate a byte stream of the number of the insertion parameter and the insertion position according to the preset position and the occupied byte of the number of the insertion parameter in the insertion parameter information and the preset position and the occupied byte of the insertion position of the insertion parameter in the insertion parameter information; and taking the byte stream as the insertion parameter information.
On the basis of the above embodiments, the insertion module in this embodiment is specifically configured to: acquiring the number and the inserting position of each inserting parameter from the inserting parameter information; matching the number of the data to be reported with the number of each insertion parameter; and taking the insertion position corresponding to the number of the matched insertion parameter as the insertion position of the data to be reported.
On the basis of the above embodiments, the reporting module in this embodiment acts on: sending the frame header of the data template frame and the data template inserted into the data to be reported to a data reporting server, so that the data reporting server can analyze the frame header, acquire the IP address and the port number of the northbound platform, and report the data template inserted into the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
On the basis of the above embodiment, in this embodiment, the data template into which the data to be reported is inserted is received by the data reporting server through a pre-established receiving thread, is located in the sending queue corresponding to the northbound platform, and reports to the northbound platform through a pre-established sending thread corresponding to the northbound platform; the sending threads correspond to the northbound platforms one to one, and the sending queues correspond to the northbound platforms one to one.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)701, a communication Interface (Communications Interface)702, a memory (memory)703 and a communication bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 complete communication with each other through the communication bus 704. The processor 701 may call a logic instruction in the memory 703 to execute a method for reporting data of the element management system, where the method includes: collecting data to be reported of a network element management system, and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported; matching the data to be reported with the insertion parameters in the data template frame, taking the insertion position of the matched insertion parameters as the insertion position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported; and reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the network element management system data reporting method provided by the above methods, where the method includes: collecting data to be reported of a network element management system, and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported; matching the data to be reported with the insertion parameters in the data template frame, taking the insertion position of the matched insertion parameters as the insertion position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported; and reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
In another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the network element management system data reporting methods provided in the foregoing embodiments, and the method includes: collecting data to be reported of a network element management system, and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported; matching the data to be reported with the insertion parameters in the data template frame, taking the insertion position of the matched insertion parameters as the insertion position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported; and reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
The above-described system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A network element management system data reporting method is characterized by comprising the following steps:
collecting data to be reported of a network element management system, and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported;
matching the data to be reported with the insertion parameters in the data template frame, taking the insertion position of the matched insertion parameters as the insertion position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the insertion position of the data to be reported;
and reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
2. The method as claimed in claim 1, wherein the step of searching a database for a data template frame including the IP address according to the IP address of the northbound platform to which the data to be reported is to be reported further comprises:
generating a frame header of the data template frame according to the IP address and the port number of the northbound platform configured by a user;
generating a data template according to the content of the data template configured by a user and the length of the data template;
and generating the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user.
3. The method for reporting data in an element management system according to claim 2, wherein the generating of the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user comprises:
generating a byte stream of the number and the insertion position of the insertion parameter according to the preset position and the occupied byte of the number of the insertion parameter in the insertion parameter information and the preset position and the occupied byte of the insertion position of the insertion parameter in the insertion parameter information;
and taking the byte stream as the insertion parameter information.
4. The method as claimed in claim 3, wherein the matching the data to be reported with the insertion parameters in the data template frame, and using the insertion position of the matched insertion parameters as the insertion position of the data to be reported comprises:
acquiring the number and the inserting position of each inserting parameter from the inserting parameter information;
matching the number of the data to be reported with the number of each insertion parameter;
and taking the insertion position corresponding to the number of the matched insertion parameter as the insertion position of the data to be reported.
5. The method as claimed in any one of claims 1 to 4, wherein reporting the data template into which the data to be reported is inserted to the northbound platform according to the IP address and the port number of the northbound platform comprises:
sending the frame header of the data template frame and the data template inserted into the data to be reported to a data reporting server, so that the data reporting server can analyze the frame header, acquire the IP address and the port number of the northbound platform, and report the data template inserted into the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
6. The method according to claim 5, wherein the data template into which the data to be reported is inserted is received by the data reporting server via a pre-established receiving thread, is located in the sending queue corresponding to the northbound platform, and is reported to the northbound platform via a pre-established sending thread corresponding to the northbound platform; the sending threads correspond to the northbound platforms one to one, and the sending queues correspond to the northbound platforms one to one.
7. A network element management system data reporting system is characterized by comprising:
the searching module is used for acquiring data to be reported of a network element management system and searching a data template frame containing an IP address from a database according to the IP address of a northbound platform to which the data to be reported is to be reported;
the inserting module is used for matching the data to be reported with the inserting parameters in the data template frame, taking the inserting position of the matched inserting parameters as the inserting position of the data to be reported, and inserting the data to be reported into the data template of the data template frame according to the inserting position of the data to be reported;
and the reporting module is used for reporting the data template inserted with the data to be reported to the northbound platform according to the IP address and the port number of the northbound platform.
8. The system for reporting data in an element management system according to claim 7, further comprising a generating module, specifically configured to:
generating a frame header of the data template frame according to the IP address and the port number of the northbound platform configured by a user;
generating a data template according to the data template content and the data template length configured by a user;
and generating the insertion parameter information of the data template frame according to the number and the insertion position of the insertion parameter configured by the user.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method for reporting data in the element management system according to any one of claims 1 to 6.
10. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements the steps of the method for reporting data in the element management system according to any one of claims 1 to 6.
CN202011460105.7A 2020-12-11 2020-12-11 Network element management system data reporting method and system Active CN112752282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011460105.7A CN112752282B (en) 2020-12-11 2020-12-11 Network element management system data reporting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011460105.7A CN112752282B (en) 2020-12-11 2020-12-11 Network element management system data reporting method and system

Publications (2)

Publication Number Publication Date
CN112752282A true CN112752282A (en) 2021-05-04
CN112752282B CN112752282B (en) 2022-07-19

Family

ID=75649168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011460105.7A Active CN112752282B (en) 2020-12-11 2020-12-11 Network element management system data reporting method and system

Country Status (1)

Country Link
CN (1) CN112752282B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7389381B1 (en) * 2006-04-05 2008-06-17 Co Ramon S Branching memory-bus module with multiple downlink ports to standard fully-buffered memory modules
WO2011014668A2 (en) * 2009-07-30 2011-02-03 Zinan Chen Independent carrier ethernet interconnection platform
CN102118276A (en) * 2009-12-31 2011-07-06 北京亿阳信通软件研究院有限公司 Method and device for providing performance alarm services
CN102281152A (en) * 2011-06-08 2011-12-14 烽火通信科技股份有限公司 Distributed communication system, implementation method, marshalling and unmarshalling method of remote API (Application Program Interface)
CN107370745A (en) * 2017-08-03 2017-11-21 北京市天元网络技术股份有限公司 One kind collection adaptation method and device
CN108243045A (en) * 2016-12-27 2018-07-03 大唐移动通信设备有限公司 A kind of north orientation webmaster management method of rule-based engine and webmaster managing device
CN109039731A (en) * 2018-07-25 2018-12-18 武汉虹信通信技术有限责任公司 A kind of alarm of network management northbound interface is from adaptation method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7389381B1 (en) * 2006-04-05 2008-06-17 Co Ramon S Branching memory-bus module with multiple downlink ports to standard fully-buffered memory modules
US20080222367A1 (en) * 2006-04-05 2008-09-11 Ramon Co Branching Memory-Bus Module with Multiple Downlink Ports to Standard Fully-Buffered Memory Modules
WO2011014668A2 (en) * 2009-07-30 2011-02-03 Zinan Chen Independent carrier ethernet interconnection platform
CN102118276A (en) * 2009-12-31 2011-07-06 北京亿阳信通软件研究院有限公司 Method and device for providing performance alarm services
CN102281152A (en) * 2011-06-08 2011-12-14 烽火通信科技股份有限公司 Distributed communication system, implementation method, marshalling and unmarshalling method of remote API (Application Program Interface)
CN108243045A (en) * 2016-12-27 2018-07-03 大唐移动通信设备有限公司 A kind of north orientation webmaster management method of rule-based engine and webmaster managing device
CN107370745A (en) * 2017-08-03 2017-11-21 北京市天元网络技术股份有限公司 One kind collection adaptation method and device
CN109039731A (en) * 2018-07-25 2018-12-18 武汉虹信通信技术有限责任公司 A kind of alarm of network management northbound interface is from adaptation method

Also Published As

Publication number Publication date
CN112752282B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN108768791B (en) Information acquisition configuration management system and method
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
WO2019134226A1 (en) Log collection method, device, terminal apparatus, and storage medium
CN107508722B (en) Service monitoring method and device
CN109547511B (en) WEB message real-time pushing method, server, client and system
CN109815214B (en) Database access method, system, device and storage medium
CN111555963A (en) Message pushing method and device, electronic equipment and storage medium
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN111538563A (en) Event analysis method and device for Kubernetes
WO2016082696A1 (en) Ua recognition method and device
CN113553310B (en) Data acquisition method and device, storage medium and electronic equipment
CN111045721A (en) Method, device and storage medium for dynamically modifying Nginx configuration parameters
EP2871578A1 (en) Method for managing tree structure, information processing system, and program
CN111984505B (en) Fortune dimension data acquisition device and acquisition method
CN110333916B (en) Request message processing method, device, computer system and readable storage medium
CN108399095B (en) Method, system, device and storage medium for supporting dynamic management of timed tasks
CN109783330B (en) Log processing method, log display method, and related device and system
CN112752282B (en) Network element management system data reporting method and system
CN112187509A (en) Multi-architecture cloud platform execution log management method, system, terminal and storage medium
CN114745455A (en) Network interface message data processing method, device, equipment and medium
CN114328152A (en) Log recording method, device, equipment and medium
CN110083583B (en) Streaming event processing method and device
CN109101399B (en) Monitoring method and device for host
CN110083626B (en) Streaming event sequence matching method and device
CN116521652B (en) Method, system and medium for realizing migration of distributed heterogeneous database based on DataX

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