CN112241315A - Network resource reporting method and system based on classification serial numbers - Google Patents

Network resource reporting method and system based on classification serial numbers Download PDF

Info

Publication number
CN112241315A
CN112241315A CN201910641343.9A CN201910641343A CN112241315A CN 112241315 A CN112241315 A CN 112241315A CN 201910641343 A CN201910641343 A CN 201910641343A CN 112241315 A CN112241315 A CN 112241315A
Authority
CN
China
Prior art keywords
message
queue
serial number
classification
processing
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.)
Pending
Application number
CN201910641343.9A
Other languages
Chinese (zh)
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201910641343.9A priority Critical patent/CN112241315A/en
Publication of CN112241315A publication Critical patent/CN112241315A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network resource reporting method and a system based on a classification serial number, which relate to the technical field of communication network management.A message classifier is arranged, messages with the same processing flow are classified into one class, and differential processing flows such as blocking, database access and the like are executed, so that the integrity of data acquired from an EMS is ensured, and the total time consumption is reduced; the invention realizes the capability of supporting various standards, providing service for various NMS simultaneously and supporting the expansion of new standards by setting the northbound standards of various types to respectively correspond to the message classifiers; when the northbound interface resource report needs to support a new standard, only a new message manager needs to be added, and the existing message manager does not need to be changed.

Description

Network resource reporting method and system based on classification serial numbers
Technical Field
The invention relates to the technical field of communication network management, in particular to a network resource reporting method and system based on classification serial numbers.
Background
Operators tend to be increasingly intensive in Management modes of communication networks, and higher requirements are provided for sensing timeliness and integrity of EMS (Element Management System) resource changes of various manufacturers. The NMS (Network Management System) actively acquires EMS resource data through an EMS northbound interface and receives EMS resource change information in real time to realize the synchronization with EMS Management resources. The reporting of the resource change message of the EMS northbound interface faces the following trend:
1. the standards that the northbound interface needs to support at the same time continue to increase. With the development of communication middleware technology, the types of northbound interfaces based on such a technical framework are increased dramatically. Except for the international industry standard, each operator mostly puts forward respective enterprise standards; in addition, the manufacturer northbound interface also needs to meet the customization requirements of each project.
2. The time delay and data integrity requirements of the operator on the message are continuously improved. The management and control integration is one of the main characteristics of a 5G communication network, and the time delay of messages distributed to the third level of a group, a province and a city by an operator has strict indexes; the completeness requirement of each operator on message data is improved, the differentiation of message contents is obvious, the message contents are increased day by day, and the proportion of personalized customized contents is increased.
Therefore, a technical solution for realizing network resource reporting that is adaptive to multiple standards, has low message delay, and ensures data integrity is needed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a network resource reporting method and system based on a classification serial number, which support various standards and realize low time delay, integrity and concurrence of message processing.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: the invention provides a network resource reporting method based on classification serial numbers, which comprises the following steps:
defining a message manager for each type of northbound standard supported by the northbound interface;
after receiving EMS resource change information, the northbound interface respectively delivers the EMS resource change information to each message manager for processing;
each message manager sets a classification serial number for the delivered message, classifies the message, and processes the message immediately or adds the message into a task queue corresponding to the message according to the classification result;
and each message manager respectively delivers the processed messages to the adapted message queues according to the sequence of the classified serial numbers.
On the basis of the above scheme, after receiving the EMS resource change message, the northbound interface respectively delivers the EMS resource change message to each message manager for processing, which specifically comprises the following steps:
setting a message manager retriever, and inquiring which message managers subscribe the received EMS resource change message through the message manager retriever;
and delivering the EMS resource change message to a message manager subscribed to the message.
On the basis of the scheme, each message manager sets a classification serial number for the delivered message, classifies the message, and processes the message immediately or adds the message into a task queue corresponding to the message according to a classification result, and the method specifically comprises the following steps:
each message manager sets a classification serial number for the delivered message, and the classification serial number is unique under the message manager;
the message managers classify the messages into three categories which need blocking processing, access to the database, no blocking processing and no database operation;
the message needing blocking processing is processed immediately in the current flow;
putting a message needing to access the database into an independent task queue to be processed for processing;
messages that do not require access to the database and do not require blocking processing are placed in another separate pending task queue for processing.
On the basis of the scheme, the method specifically comprises the following steps of putting a message which does not need to access a database and does not need to be blocked to be processed into another independent task queue to be processed:
putting the messages which do not need to access the database and do not need to be blocked into another independent task queue to be processed;
setting a thread pool, adding the to-be-processed message obtained from the to-be-processed task queue into the thread pool, and performing message format conversion on the to-be-processed message in the thread pool in a concurrent mode.
On the basis of the scheme, the message manager respectively delivers the processed messages to the adapted message queues according to the sequence of the classified serial numbers, and the method specifically comprises the following steps:
the message manager obtains the classification serial number of the current message which is matched and is to be delivered, and compares the classification serial number with the classification serial number of the latest message in the matched message queue:
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are not adjacent, setting the current message to continue waiting for the next delivery period;
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are adjacent, delivering the current message to the adapted message queue;
if the classification serial number of the current message is smaller than that of the message closest to the queue, recording a detailed log, and inserting the current message into the corresponding position of the matched message queue according to the size of the classification serial number.
The invention also provides a network resource reporting system based on the classification serial number, which comprises a northbound interface and a message manager, wherein each type of northbound standard supported by the northbound interface corresponds to one message manager respectively;
the northbound interface is to: after receiving EMS resource change information, respectively delivering the EMS resource change information to each message manager for processing;
the message manager is to: setting a classification serial number for the delivered message, classifying the message, and performing immediate processing or processing by adding the message into a task queue corresponding to the message according to a classification result; and respectively delivering the processed messages to the adapted message queues according to the sequence of the classified serial numbers.
On the basis of the above scheme, the system further comprises a message manager retriever, and the message manager retriever is configured to: inquiring which message managers subscribe EMS resource change messages received by a northbound interface;
and the northbound interface respectively delivers the received EMS resource change information to each message manager for processing according to the query result of the message manager retriever.
On the basis of the scheme, the message manager sets classification serial numbers for the delivered messages, classifies the messages, and processes the messages immediately or adds the messages into task queues corresponding to the messages according to classification results, and specifically comprises the following steps:
each message manager sets a classification serial number for the delivered message, and the classification serial number is unique under the message manager;
the message managers classify the messages into three categories which need blocking processing, access to the database, no blocking processing and no database operation;
the message needing blocking processing is processed immediately in the current flow;
putting a message needing to access the database into an independent task queue to be processed for processing;
messages that do not require access to the database and do not require blocking processing are placed in another separate pending task queue for processing.
On the basis of the above scheme, the message manager places a message, which does not need to access the database and does not need to be blocked, into another separate task queue to be processed for processing, and specifically includes the following steps:
putting the messages which do not need to access the database and do not need to be blocked into another independent task queue to be processed;
setting a thread pool, adding the to-be-processed message obtained from the to-be-processed task queue into the thread pool, and performing message format conversion on the to-be-processed message in the thread pool in a concurrent mode.
On the basis of the above scheme, the message manager delivers the processed messages to the adapted message queues respectively according to the sequence of the classified serial numbers, and specifically includes the following steps:
the message manager obtains the classification serial number of the current message which is matched and is to be delivered, and compares the classification serial number with the classification serial number of the latest message in the matched message queue:
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are not adjacent, setting the current message to continue waiting for the next delivery period;
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are adjacent, delivering the current message to the adapted message queue;
if the classification serial number of the current message is smaller than that of the message closest to the queue, recording a detailed log, and inserting the current message into the corresponding position of the matched message queue according to the size of the classification serial number.
Compared with the prior art, the invention has the advantages that:
the invention classifies the messages with the same processing flow into one type by setting the message classifier, executes the differentiation processing flow of blocking, accessing the database and the like, ensures the integrity of data acquired from the EMS, and reduces the total time consumption; the invention realizes the capability of supporting various standards, providing service for various NMS simultaneously and supporting the expansion of new standards by setting the northbound standards of various types to respectively correspond to the message classifiers; when the northbound interface resource report needs to support a new standard, only a new message manager needs to be added, and the existing message manager does not need to be changed.
Drawings
Fig. 1 is a flow chart of a network resource reporting method based on a classification serial number according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating the operation of sorting incoming delivered messages according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an embodiment of guaranteeing message delivery timing based on a classification serial number.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The embodiment of the invention provides a network resource reporting method based on a classification serial number, which comprises the following steps:
defining a message manager for each type of northbound standard supported by the northbound interface;
after receiving the EMS resource change message, the northbound interface respectively delivers the EMS resource change message to each message manager for processing;
each message manager sets a classification serial number for the delivered message, classifies the message, and processes the message immediately or adds the message into a task queue corresponding to the message according to the classification result;
and the message manager respectively delivers the processed messages to the adapted message queues according to the sequence of the classified serial numbers.
Preferably, after receiving the EMS resource change message, the northbound interface delivers the EMS resource change message to each message manager for processing, which specifically includes the following steps:
setting a message manager retriever, and inquiring which message managers subscribe the received EM S resource change message through the message manager retriever;
and delivering the EMS resource change message to a message manager subscribed to the message.
Preferably, each message manager sets a classification serial number for the delivered message, classifies the message, and performs processing on the message as it is or adds the message into a task queue corresponding to the message according to a classification result, which specifically includes the following steps:
each message manager sets a classification serial number for the delivered message, and the classification serial number is unique under the message manager;
the message managers classify the messages into three categories which need blocking processing, access to the database, no blocking processing and no database operation;
the message needing blocking processing is processed immediately in the current flow;
putting a message needing to access the database into an independent task queue to be processed for processing;
messages that do not require access to the database and do not require blocking processing are placed in another separate pending task queue for processing.
Preferably, for a message which does not need to access the database and does not need to block processing, the message is put into another separate task queue to be processed, and the method specifically comprises the following steps:
putting the messages which do not need to access the database and do not need to be blocked into another independent task queue to be processed;
setting a thread pool, adding the to-be-processed message obtained from the to-be-processed task queue into the thread pool, and performing message format conversion on the to-be-processed message in the thread pool in a concurrent mode.
Preferably, the message manager delivers the processed messages to the adapted message queue according to the sequence of the sorted serial numbers, specifically including the following steps:
the message manager obtains the classification serial number of the current message which is matched and is to be delivered, and compares the classification serial number with the classification serial number of the latest message in the matched message queue:
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are not adjacent, setting the current message to continue waiting for the next delivery period;
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are adjacent, delivering the current message to the adapted message queue;
if the classification serial number of the current message is smaller than that of the message closest to the queue, recording a detailed log, and inserting the current message into the corresponding position of the matched message queue according to the size of the classification serial number.
Referring to fig. 1, the following describes specific implementation steps of this embodiment with reference to the drawings of the specification.
Step 1, a north interface defines a message manager for each supported north standard;
step 2, after receiving the resource change message from the EMS, the northbound interface delivers the message to each message manager subscribing the message in turn; which message managers the message is subscribed to is maintained by the message manager retriever.
Taking three types of standards such as Common Object Request Broker Architecture (CORBA), multiple-Technology O technologies Systems Interface (MTOSI), and RESTConf, which are supported by the northbound Interface, the northbound Interface defines three message managers to handle message adaptation of the three types of standards respectively. And the northbound interface receives the original message of the EMS for resource change, searches the message managers subscribing the message in the message manager retriever, and delivers the original message to the three message managers if the three message managers subscribe the message.
The following steps 3 to 5 are all the operation flows in a certain message manager, and the operation flows of all the message managers are consistent.
Step 3, the message manager distributes a classification serial number for the delivered message, and the classification serial number is unique under the message manager;
and 4, classifying the delivered messages by a message classifier in the message manager. As shown in fig. 2, the evaluation criteria for the classification are:
(1) whether blocking processing is required;
the original message requiring the blocking process has the highest priority, is processed immediately in the current flow, is not classified into other categories, and is not set up into a task queue. The processing of such messages usually depends on the current snapshot data of the EMS, and needs to interact with the EMS many times to obtain a complete message, and the main thread is blocked in the processing process.
(2) Whether access to the database is required;
the original message that needs to access the database would be placed in a separate task queue. When the message manager processes the messages, the connection of the message manager to the database is kept, and time consumption and instability caused by frequently executing opening/closing of the database connection are avoided.
(3) Whether the data can be placed in the back end for concurrent processing;
raw messages that do not require blocking processing, nor manipulation of the database, are placed in a separate task queue. The message manager sets a thread pool, takes the original message from the task queue, and processes the adaptation of the message in a concurrent manner.
And 5, uniformly delivering the messages processed in the step 4 to the adapted message queue by the message manager. Each message manager has only one adapted message queue.
As shown in fig. 3, because EMS primitive messages are processed concurrently in the message manager, it is necessary to ensure that the order of message delivery into the adapted message queue is consistent with the timing of the primitive messages. The guaranteed time sequence is realized by the classification serial number. The message manager obtains the classification serial number of the message which is matched and is to be delivered, and compares the classification serial number with the classification serial number of the latest message in the matched message queue, and the classification serial number is divided into the following three conditions:
(1) the classification serial number of the current message is larger than that of the message closest to the queue, and the classification serial numbers of the current message and the queue are not adjacent. This indicates that there are still messages that are older than the current message that do not complete the adaptation, so the current message needs to continue waiting until the next delivery cycle.
(2) The classification serial number of the current message is larger than that of the message which is the latest in the queue, and the classification serial numbers of the current message and the queue are adjacent. This indicates that the original message before the current message has been adapted and delivered to the queue, so that the current message can be delivered to the queue.
(3) The classification flow number of the current message is less than the classification flow number of the most recent message in the queue. When the condition is abnormal, a detailed log needs to be recorded, and the current message is inserted into the corresponding position of the queue according to the size of the classification serial number.
After the message manager delivers the processed messages to the adapted message queue uniformly, the messages in the adapted message queue are delivered to the NMS in sequence.
The embodiment of the invention also provides a network resource reporting system based on the classification serial number, which comprises a northbound interface and a message manager, wherein each type of northbound standard supported by the northbound interface corresponds to one message manager respectively;
the northbound interface is to: after receiving EMS resource change information, respectively delivering the EMS resource change information to each message manager for processing;
the message manager is to: setting a classification serial number for the delivered message, classifying the message, and performing immediate processing or processing by adding the message into a task queue corresponding to the message according to a classification result; and respectively delivering the processed messages to the adapted message queues according to the sequence of the classified serial numbers.
Preferably, the system further comprises a message manager retriever for: inquiring which message managers subscribe EMS resource change messages received by a northbound interface;
and the northbound interface respectively delivers the received EMS resource change information to each message manager for processing according to the query result of the message manager retriever.
Preferably, the message manager sets a classification serial number for the delivered message, classifies the message, and performs processing on the message as it is or adds the message into a task queue corresponding to the message according to a classification result, and specifically includes the following steps:
each message manager sets a classification serial number for the delivered message, and the classification serial number is unique under the message manager;
the message managers classify the messages into three categories which need blocking processing, access to the database, no blocking processing and no database operation;
the message needing blocking processing is processed immediately in the current flow;
putting a message needing to access the database into an independent task queue to be processed for processing;
messages that do not require access to the database and do not require blocking processing are placed in another separate pending task queue for processing.
Preferably, the message manager puts the message which does not need to access the database and does not need to block processing into another separate task queue to be processed, and specifically includes the following steps:
putting the messages which do not need to access the database and do not need to be blocked into another independent task queue to be processed;
setting a thread pool, adding the to-be-processed message obtained from the to-be-processed task queue into the thread pool, and performing message format conversion on the to-be-processed message in the thread pool in a concurrent mode.
Preferably, the message manager delivers the processed messages to the adapted message queue according to the sequence of the classification serial numbers, specifically including the following steps:
the message manager obtains the classification serial number of the current message which is matched and is to be delivered, and compares the classification serial number with the classification serial number of the latest message in the matched message queue:
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are not adjacent, setting the current message to continue waiting for the next delivery period;
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are adjacent, delivering the current message to the adapted message queue;
if the classification serial number of the current message is smaller than that of the message closest to the queue, recording a detailed log, and inserting the current message into the corresponding position of the matched message queue according to the size of the classification serial number.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements all or part of the method steps of the network resource reporting method based on the classification serial number.
The present invention realizes all or part of the processes in the network resource reporting method based on the classification serial number, and can also be completed by instructing related hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments can be realized. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor implements all or part of the method steps in the network resource reporting method based on the classification serial number when executing the computer program.
The processor may be a Central Processing Unit (CP U), or may be other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer device and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, server, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A network resource reporting method based on classification serial numbers is characterized by comprising the following steps:
defining a message manager for each type of northbound standard supported by the northbound interface;
after receiving EMS resource change information, the northbound interface respectively delivers the EMS resource change information to each message manager for processing;
each message manager sets a classification serial number for the delivered message, classifies the message, and processes the message immediately or adds the message into a task queue corresponding to the message according to the classification result;
and each message manager respectively delivers the processed messages to the adapted message queues according to the sequence of the classified serial numbers.
2. The method as claimed in claim 1, wherein the northbound interface receives the EMS resource change message and then delivers the EMS resource change message to each message manager for processing, comprising the steps of:
setting a message manager retriever, and inquiring which message managers subscribe the received EMS resource change message through the message manager retriever;
and delivering the EMS resource change message to a message manager subscribed to the message.
3. The method of claim 1, wherein each message manager sets a classification serial number for incoming messages, classifies the messages, and performs on-the-fly processing or processing in a task queue corresponding to the type of message according to a classification result, comprising the steps of:
each message manager sets a classification serial number for the delivered message, and the classification serial number is unique under the message manager;
the message managers classify the messages into three categories which need blocking processing, access to the database, no blocking processing and no database operation;
the message needing blocking processing is processed immediately in the current flow;
putting a message needing to access the database into an independent task queue to be processed for processing;
messages that do not require access to the database and do not require blocking processing are placed in another separate pending task queue for processing.
4. The method of claim 3, wherein messages that do not require access to the database and do not require blocking processing are placed in another separate queue of pending tasks for processing, comprising the steps of:
putting the messages which do not need to access the database and do not need to be blocked into another independent task queue to be processed;
setting a thread pool, adding the to-be-processed message obtained from the to-be-processed task queue into the thread pool, and performing message format conversion on the to-be-processed message in the thread pool in a concurrent mode.
5. The method of claim 1, wherein the message manager delivers the processed messages to the adapted message queue according to the order of the sorted serial numbers, respectively, comprising the steps of:
the message manager obtains the classification serial number of the current message which is matched and is to be delivered, and compares the classification serial number with the classification serial number of the latest message in the matched message queue:
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are not adjacent, setting the current message to continue waiting for the next delivery period;
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are adjacent, delivering the current message to the adapted message queue;
if the classification serial number of the current message is smaller than that of the message closest to the queue, recording a detailed log, and inserting the current message into the corresponding position of the matched message queue according to the size of the classification serial number.
6. A network resource reporting system based on classification serial numbers is characterized by comprising a northbound interface and a message manager, wherein each type of northbound standard supported by the northbound interface corresponds to one message manager respectively;
the northbound interface is to: after receiving EMS resource change information, respectively delivering the EMS resource change information to each message manager for processing;
the message manager is to: setting a classification serial number for the delivered message, classifying the message, and performing immediate processing or processing by adding the message into a task queue corresponding to the message according to a classification result; and respectively delivering the processed messages to the adapted message queues according to the sequence of the classified serial numbers.
7. The system of claim 6, wherein the system further comprises a message manager retriever to: inquiring which message managers subscribe EMS resource change messages received by a northbound interface;
and the northbound interface respectively delivers the received EMS resource change information to each message manager for processing according to the query result of the message manager retriever.
8. The system of claim 6, wherein the message manager sets a classification serial number for the incoming message, classifies the message, and performs on-the-fly processing or processing in a task queue corresponding to the message according to the classification result, specifically comprising the steps of:
each message manager sets a classification serial number for the delivered message, and the classification serial number is unique under the message manager;
the message managers classify the messages into three categories which need blocking processing, access to the database, no blocking processing and no database operation;
the message needing blocking processing is processed immediately in the current flow;
putting a message needing to access the database into an independent task queue to be processed for processing;
messages that do not require access to the database and do not require blocking processing are placed in another separate pending task queue for processing.
9. The system of claim 8, wherein the message manager places messages that do not require access to the database and do not require blocking processing into another separate queue of pending tasks for processing, comprising the steps of:
putting the messages which do not need to access the database and do not need to be blocked into another independent task queue to be processed;
setting a thread pool, adding the to-be-processed message obtained from the to-be-processed task queue into the thread pool, and performing message format conversion on the to-be-processed message in the thread pool in a concurrent mode.
10. The system of claim 6, wherein the message manager delivers the processed messages to the adapted message queue according to the sequence of the sorted serial numbers, comprising the steps of:
the message manager obtains the classification serial number of the current message which is matched and is to be delivered, and compares the classification serial number with the classification serial number of the latest message in the matched message queue:
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are not adjacent, setting the current message to continue waiting for the next delivery period;
if the classification serial number of the current message is larger than that of the message closest to the queue and the classification serial numbers of the current message and the queue are adjacent, delivering the current message to the adapted message queue;
if the classification serial number of the current message is smaller than that of the message closest to the queue, recording a detailed log, and inserting the current message into the corresponding position of the matched message queue according to the size of the classification serial number.
CN201910641343.9A 2019-07-16 2019-07-16 Network resource reporting method and system based on classification serial numbers Pending CN112241315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910641343.9A CN112241315A (en) 2019-07-16 2019-07-16 Network resource reporting method and system based on classification serial numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910641343.9A CN112241315A (en) 2019-07-16 2019-07-16 Network resource reporting method and system based on classification serial numbers

Publications (1)

Publication Number Publication Date
CN112241315A true CN112241315A (en) 2021-01-19

Family

ID=74167114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910641343.9A Pending CN112241315A (en) 2019-07-16 2019-07-16 Network resource reporting method and system based on classification serial numbers

Country Status (1)

Country Link
CN (1) CN112241315A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070276914A1 (en) * 2006-05-10 2007-11-29 Oracle International Corporation Method of using a plurality of subscriber types in managing a message queue of a database management system
CN101183316A (en) * 2007-11-28 2008-05-21 北京中星微电子有限公司 Tasks delayed time processing method and system in real-time operating system
CN104407922A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Asynchronous batch-processing dispatching method and system
US20160004565A1 (en) * 2014-07-01 2016-01-07 Tuul, Inc. System and Method for Implementing Workflow Management Using Messaging
CN105991316A (en) * 2015-02-03 2016-10-05 中国移动通信集团辽宁有限公司 Real-time management method and apparatus of transmission network resource data
CN108984325A (en) * 2018-07-20 2018-12-11 北京北信源信息安全技术有限公司 Message queue consuming method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070276914A1 (en) * 2006-05-10 2007-11-29 Oracle International Corporation Method of using a plurality of subscriber types in managing a message queue of a database management system
CN101183316A (en) * 2007-11-28 2008-05-21 北京中星微电子有限公司 Tasks delayed time processing method and system in real-time operating system
US20160004565A1 (en) * 2014-07-01 2016-01-07 Tuul, Inc. System and Method for Implementing Workflow Management Using Messaging
CN104407922A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Asynchronous batch-processing dispatching method and system
CN105991316A (en) * 2015-02-03 2016-10-05 中国移动通信集团辽宁有限公司 Real-time management method and apparatus of transmission network resource data
CN108984325A (en) * 2018-07-20 2018-12-11 北京北信源信息安全技术有限公司 Message queue consuming method and device

Similar Documents

Publication Publication Date Title
CN108196961B (en) Asynchronous message processing method, terminal, system and storage medium
CN111953579B (en) Message generation method, system, terminal and storage medium
CN111818112B (en) Kafka system-based message sending method and device
CN110750341A (en) Task scheduling method, device, system, terminal equipment and storage medium
CN107835203B (en) Message packet delivery method, device, storage medium and terminal
CN107968881A (en) End-point device broadcast processing method and processing device, terminal device and storage medium
CN111343089B (en) Method and system for solving flooding problem caused by MAC address HASH conflict
CN116366565A (en) Speed limiting mode switching method and device, electronic equipment and storage medium
US20200004612A1 (en) Method of Generating Broadcast Queue, Storage Medium, and Terminal
CN112241315A (en) Network resource reporting method and system based on classification serial numbers
CN109005465B (en) Bullet screen message distribution method, device, equipment and storage medium
CN111475315A (en) Server and subscription notification push control and execution method
CN114979058B (en) CAN multi-mailbox multiplexing processing method and system
CN112019689A (en) Incoming call show service processing system and method
CN110620811B (en) ONU management method and system under vOLT cluster architecture
CN112423162B (en) Configuration synchronization method and system under distributed architecture
CN114897532A (en) Operation log processing method, system, device, equipment and storage medium
CN113220869A (en) Text processing device and method for bank peripheral system
CN113901076A (en) Data synchronization method, device, server and storage medium
CN112667631A (en) Method, device and equipment for automatically editing service field and storage medium
CN111339422A (en) Recommendation system task management platform, recommendation method and system
CN115953282B (en) Video task processing method and device
CN111427633A (en) Automobile sound equipment state machine and management method thereof
CN109889590B (en) Message processing method, device, client and computer readable medium
CN117354373A (en) Asynchronous notification method and system based on notification parameter modularized assembly

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210119