A northbound interface command processing method and system

CN120512482BActive Publication Date: 2026-06-26FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
Filing Date
2025-05-07
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

[0006]但是,通过简单的增加线程或增加节点,依然会出现单个节点拥塞的情况,例如个别设备故障引起单个节点线程耗尽,从而导致整个节点拥塞的情况,影响该节点所有设备的业务下发

Benefits of technology

[0050]1.将北向服务的用户侧与业务侧功能分离,不同类型的北向接口服务复用相同业务服务,降低开放维护成本和部署成本;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120512482B_ABST
    Figure CN120512482B_ABST
Patent Text Reader

Abstract

The present application relates to the field of communication technology, and more particularly to a kind of northbound interface command processing method and system, method includes: through user service and upper system docking, receive the northbound command issued by upper system, parse northbound command and convert into uniform northbound message, then according to the mapping relationship table of equipment network element and service, uniform northbound message is sent to the service corresponding to equipment network element;Through service, uniform northbound message is processed, the conversion of service data is carried out and is issued to equipment network element, and the decomposition and reorganization of service flow are carried out and are sent to equipment network element and execute.The user side and service side function of northbound service are separated in the present application, different types of northbound interface service reuse same service, reduce the cost of opening maintenance and deployment, can make network management system in high concurrency and high throughput, with higher reliability, can reduce the node congestion phenomenon caused by single user or equipment failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a northbound interface command processing method and system. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] As network scale expands, the number of services and devices increases. The northbound interface faces increasing pressure, requiring support for high concurrency, high throughput, and high reliability and fault tolerance. Common approaches include the following two:

[0004] 1) Multi-threaded parallel processing improves the CPU utilization of the network management server;

[0005] 2) When a single northbound interface node cannot meet the requirements, the system's processing capacity can be improved by deploying multiple northbound interface nodes.

[0006] However, simply adding threads or nodes can still lead to congestion on a single node. For example, a malfunction in an individual device might cause a single node's threads to run out, resulting in congestion across the entire node and affecting service delivery to all devices on that node. To address these shortcomings, this invention provides an improvement. Summary of the Invention

[0007] To overcome the shortcomings of the prior art, this invention provides a northbound interface command processing method and system that separates the user-side and business-side functions of the northbound service. Different types of northbound interface services reuse the same business services, reducing open maintenance and deployment costs. This enables the network management system to have higher reliability while maintaining high concurrency and high throughput, reducing node congestion caused by single user or device failures, and ensuring the correct sequence of northbound commands.

[0008] To achieve the above objectives, the present invention provides the following technical solution:

[0009] Firstly, a method for processing northbound interface commands is provided, the method comprising:

[0010] The user service interfaces with the upper-layer system, receives northbound commands from the upper-layer system, parses the northbound commands and converts them into unified northbound messages, and then sends the unified northbound messages to the corresponding business services of the device network element according to the mapping relationship table between device network elements and business services.

[0011] The unified northbound messages are processed through business services, which transform business data and send it to equipment network elements, as well as decompose and reorganize business processes and send them to equipment network elements for execution.

[0012] Furthermore,

[0013] The method further includes:

[0014] The mapping table is maintained by the network element scheduling service, and the mapping relationship between the network element and the service is dynamically allocated according to the number of network elements and the resource load.

[0015] The user service obtains the mapping table from the network element scheduling service.

[0016] Furthermore,

[0017] The user service includes a user session sub-service, a command parsing sub-service, and a command forwarding sub-service;

[0018] After receiving northbound commands from the upper-layer system through the user session subservice, the commands are placed into the user command queue corresponding to the user session, and the command parsing subservice is notified to process them.

[0019] The command parsing subservice parses northbound commands and converts them into unified northbound messages that are independent of the northbound interface protocol, and then sends the unified northbound messages to the command forwarding subservice.

[0020] The command forwarding subservice places the unified northbound messages waiting to be forwarded into the command forwarding queue, and sends the unified northbound messages to the service corresponding to the device network element according to the mapping table.

[0021] Furthermore,

[0022] The command parsing subservice includes a command parser pool, which contains several command parsers for parsing commands for each user session.

[0023] When the command parsing subservice receives a command parsing notification from the user session subservice, it marks the user session as active and assigns a command parser obtained from the command parser pool to the user session.

[0024] The assigned command parser retrieves northbound commands from the user command queue, parses them, and sends the resulting unified northbound message to the command forwarding sub-service.

[0025] Once all northbound commands in the user command queue have been parsed, the command parsing subservice determines whether the user session is active, marks inactive user sessions as suspended, and returns the command parser corresponding to the inactive user session to the command parser pool.

[0026] Furthermore,

[0027] The command forwarding sub-service also determines the dependencies between unified northbound messages;

[0028] If there are dependencies, then forward unified northbound messages serially;

[0029] If there are no dependencies, unified northbound messages are forwarded in parallel.

[0030] Furthermore,

[0031] The business services include a business scheduling sub-service and a business execution sub-service;

[0032] The business scheduling subservice communicates with the user service, receives unified northbound messages sent by the user service, decomposes and reorganizes the business process, converts the unified northbound messages into business instructions, and sends them to the business execution subservice.

[0033] The business execution sub-service sends business instructions to the device network element for execution and returns the execution result.

[0034] Furthermore,

[0035] Before decomposing and reorganizing the business process through the business scheduling sub-service, the received unified northbound messages are also verified, sorted, and deduplicated through the business scheduling sub-service.

[0036] Furthermore,

[0037] The business instructions include configuration instructions;

[0038] The business execution sub-service includes several configuration execution pipelines;

[0039] When a configuration instruction is received from a device network element, the service execution sub-service allocates an idle configuration execution pipeline to the device network element and binds it to the device network element, so that the configuration execution pipeline only processes the configuration instructions of the bound device network element.

[0040] After the configuration execution pipeline has executed all configuration instructions, the service execution sub-service determines whether it is necessary to unbind the configuration execution pipeline from the device network element. After unbinding the configuration execution pipeline from the device network element, the configuration execution pipeline is remarked as idle.

[0041] Furthermore,

[0042] The business instructions also include query instructions;

[0043] The business execution sub-service also includes several query execution pipelines;

[0044] When a query instruction is received from a device network element, the service execution sub-service allocates a query execution pipeline to the device network element according to the HASH algorithm. One query execution pipeline corresponds to multiple device network elements.

[0045] The query execution pipeline executes the query command, sends the query command to the device network element, and returns the query result.

[0046] Secondly, a northbound interface command processing system is also provided, the system comprising:

[0047] The user module is used to interface with the upper-layer system, receive northbound commands issued by the upper-layer system, parse the northbound commands and convert them into unified northbound messages, and then send the unified northbound messages to the corresponding service modules of the device network elements according to the mapping relationship table between device network elements and service modules.

[0048] The business module is used to process unified northbound messages, convert business data and send it to equipment network elements, and decompose and reorganize business processes and send them to equipment network elements for execution.

[0049] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0050] 1. Separate the user-side and business-side functions of northbound services, and allow different types of northbound interface services to reuse the same business services, thereby reducing open maintenance and deployment costs;

[0051] 2. It realizes the serial issuance and parallel execution of northbound commands, which improves command execution efficiency while ensuring correct execution. This enables the network management system to have higher reliability while maintaining high concurrency and high throughput, and can reduce node congestion caused by the failure of a single user or device.

[0052] 3. Supports multi-instance expansion of services, increasing the number of services and improving the system's concurrency and throughput after physical resources are improved;

[0053] 4. By using a command parser pool and a service execution pipeline, each northbound connection and device is allocated and isolated processing resources. This ensures the orderly execution of northbound commands while improving system resource utilization, reducing the scope of failure impact, and enhancing the availability of the northbound system.

[0054] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures pointed out in the description, claims and drawings.

[0055] The invention will now be further described with reference to the accompanying drawings. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 A schematic diagram illustrating the general process of handling northbound interface commands;

[0058] Figure 2 This is a schematic diagram of the overall process of a northbound interface command processing method according to an embodiment of the present invention;

[0059] Figure 3 This is a schematic diagram of a user service processing flow according to an embodiment of the present invention;

[0060] Figure 4 This is a schematic diagram of the processing flow for northbound command parsing according to an embodiment of the present invention;

[0061] Figure 5 This is a schematic diagram of the processing flow of a business service according to an embodiment of the present invention;

[0062] Figure 6 This is a schematic diagram of the command execution process according to an embodiment of the present invention;

[0063] Figure 7 This is a schematic diagram of the overall structure of a northbound interface command processing system according to an embodiment of the present invention. Detailed Implementation

[0064] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0065] The northbound interface of a network management system generally refers to the interface between the device management system (EMS / OMC) and the operator's upper-layer system (OSS / BSS). The northbound interface needs to support different protocols (such as RESTful, WebService, CORBA, TL1, etc.) for simultaneous calls by one or more upper-layer systems. When calling the interface, the upper-layer system sends commands to the northbound interface, which are then parsed and processed by the northbound interface module before being sent to the service module and finally to the network device. Figure 1 As shown.

[0066] When issuing northbound commands, the upper-layer system logs into the network management system to maintain a connection and session with the northbound interface subsystem. After the service is issued, it logs out of the network management system and terminates the connection and session. The northbound interface subsystem needs to maintain the connection and session, properly handle congestion and interruption caused by network anomalies, and ensure that northbound commands are responded to correctly and in a timely manner.

[0067] Network service delivery is usually sequential; commands delivered first need to be processed first. The northbound interface subsystem needs to ensure the order of command execution and response.

[0068] After being processed by the network management system, business commands are distributed to network devices via management protocols. When a device malfunctions or the management network experiences an anomaly, the network management system must maintain the device's status, handle the situation correctly to avoid affecting other devices, and promptly return error information to the upper-layer system.

[0069] As network scale expands, the number of services and devices increases. The northbound interface faces increasing pressure, requiring support for high concurrency, high throughput, and high reliability and fault tolerance. Even with existing technologies, congestion at individual nodes can still occur. Therefore, this invention provides a northbound interface command processing method and system that can effectively reduce node congestion caused by single user or device failures.

[0070] like Figure 2 As shown, this embodiment of the invention provides a northbound interface command processing method, the method comprising:

[0071] The user service interfaces with the upper-layer system, receives northbound commands from the upper-layer system, parses the northbound commands and converts them into unified northbound messages, and then sends the unified northbound messages to the corresponding business services of the device network element according to the mapping relationship table between device network elements and business services.

[0072] The unified northbound messages are processed through business services, which transform business data and send it to equipment network elements, as well as decompose and reorganize business processes and send them to equipment network elements for execution.

[0073] In this embodiment, the user service is responsible for interfacing with the upper-layer system, implementing the northbound interface protocol, and maintaining sessions with northbound users. There can be one or more instances of the user service, depending on the type of northbound interface protocol required. Each user service implements one type of northbound interface protocol, and the upper-layer system calls different user services based on the northbound interface protocol type. After receiving northbound commands from the upper-layer system, the user service parses the commands, converts them into a unified northbound message independent of the northbound protocol, and sends the unified northbound message to the business service.

[0074] In this embodiment, the service is responsible for processing unified northbound messages, converting service data, and decomposing and reorganizing service processes. It then sends service data to network devices and executes service processes. The service supports multiple instances, with the number of instances depending on the network size and the number of network devices. Each service is responsible for processing the services of a certain number of network devices based on its processing capacity.

[0075] The above technical solution separates the user-side and business-side functions of the northbound service, setting up user services and business services. User-side functions are implemented through the user service, and business-side functions are implemented through the business service. Different types of northbound interface services reuse the same business service, reducing open maintenance and deployment costs. This enables the network management system to achieve higher reliability while maintaining high concurrency and throughput, reducing node congestion caused by single user or device failures, and ensuring the correct sequence of northbound commands. This invention also supports multi-instance expansion of services; increasing the number of services after improving physical resources enhances the system's concurrency and throughput. In this invention, northbound interface commands are also abbreviated as northbound commands.

[0076] This invention separates the user-side and business-side functions of northbound services, enabling different types of northbound interface services to reuse the same business services. For example, the northbound interface has a TL1 interface and a RESTful interface. The two interfaces have different protocols, but both have a command to add ONUs. The command message can be converted into a unified format and sent to the business service for unified processing, thereby avoiding the duplication of business logic for each northbound interface and thus reducing the open maintenance cost and deployment cost.

[0077] Business data conversion refers to converting northbound message data into the data format required by the device protocol. Device protocols and northbound interfaces are not one-to-one, so they need to be decomposed and reassembled. For example, adding an ONU via a northbound command requires multiple operations such as ONU authorization, waiting for successful authorization, and adding the ONU through network management.

[0078] Each northbound interface connection is sent serially, with a specific order; commands sent first are executed first. A connection may simultaneously send 10 northbound commands: the first 5 correspond to network element A, and the last 5 to network element B. Commands from network element B do not need to wait for commands from network element A to complete; they can be executed concurrently. Commands from the same device are executed serially, while commands from different devices can be executed in parallel. Therefore, the northbound interface command processing method provided by this invention achieves serial sending and parallel execution of northbound commands. While ensuring correct execution, it improves command execution efficiency, enabling the network management system to achieve higher reliability while maintaining high concurrency and throughput, and reducing node congestion caused by single user or device failures.

[0079] As a preferred technical solution, the method further includes: maintaining the mapping relationship table through a network element scheduling service, and dynamically allocating the mapping relationship between the network elements and the service based on the number of network elements and the resource load; the user service obtains the mapping relationship table from the network element scheduling service.

[0080] In this embodiment, the network element scheduling service maintains a mapping table between network elements and service providers. Based on the number of network elements and service providers and resource load, the service dynamically allocates these mappings. The user service retrieves the mapping table from the network element scheduling service and, according to the table, sends unified command messages (i.e., unified northbound messages) to the corresponding service providers of the network elements. When network elements and service providers change, the network element scheduling service updates or recalculates the mappings (i.e., adjusts the mapping table accordingly) and notifies the user service to update the mapping table.

[0081] The aforementioned user services, business services, and network element scheduling services constitute the northbound system of this invention, which can effectively process northbound interface commands and thus meet practical application needs.

[0082] As a preferred technical solution, the user service includes a user session sub-service, a command parsing sub-service, and a command forwarding sub-service. The user session sub-service receives northbound commands from the upper-layer system and places them into a user command queue corresponding to the user session, then notifies the command parsing sub-service to process them. The command parsing sub-service parses the northbound commands and converts them into unified northbound messages independent of the northbound interface protocol, then sends the unified northbound messages to the command forwarding sub-service. The command forwarding sub-service places the unified northbound messages waiting to be forwarded into a command forwarding queue and, according to the mapping table, sends the unified northbound messages to the service corresponding to the device network element.

[0083] In this embodiment, the user service includes a user session sub-service, a command parsing sub-service, and a command forwarding sub-service. The above three sub-services will be described in detail below.

[0084] The user session subservice is responsible for handling user login authentication, maintaining sessions with northbound users, and handling session exceptions. The user session subservice has a user command queue to cache northbound commands for each user session; one user session corresponds to one command queue. The user session subservice creates and destroys command queues based on the connection status of northbound users. Upon receiving a northbound command, it places the command into the queue corresponding to the session and notifies the command parsing subservice for processing.

[0085] The command parsing sub-service is responsible for parsing northbound interface commands (i.e., northbound commands) and converting them into unified northbound messages. It also converts the responses to unified northbound messages into responses to northbound interface commands. The unified northbound message is a data structure independent of the northbound protocol, encapsulating the command and execution information of the northbound command. Different types of northbound interface commands are uniformly converted into a single message format for convenient and consistent processing by business services.

[0086] The command forwarding sub-service is responsible for sending the parsed unified northbound messages to the corresponding service. The command forwarding sub-service includes a command forwarding queue and a network element service mapping table (i.e., the aforementioned mapping table). The network element service mapping table records the correspondence between device network elements and service services (i.e., the mapping relationship). All unified northbound messages waiting to be forwarded are placed in the command forwarding queue. The command forwarding sub-service sends the unified northbound messages to the corresponding service of the device network element according to the network element service mapping table.

[0087] As a preferred technical solution, the command parsing subservice includes a command parser pool, which includes several command parsers for parsing commands for each user session. When the command parsing subservice receives a command parsing notification from the user session subservice, it marks the user session as active and assigns a command parser obtained from the command parser pool to the user session. The assigned command parser retrieves northbound commands from the user command queue, parses them, and sends the parsed unified northbound message to the command forwarding subservice. After all northbound commands in the user command queue have been parsed, the command parsing subservice determines whether the user session is active, marks inactive user sessions as suspended, and returns the command parser corresponding to the inactive user session to the command parser pool.

[0088] In this embodiment, the command parsing subservice includes a command parser pool, which contains a certain number of command parsers. These command parsers parse commands for each session. When the command parsing subservice receives a parsing notification from the user session subservice, it retrieves a command parser from the pool, assigns it to the session, and marks the session as active. The assigned command parser retrieves northbound commands from the command queue, parses them, and sends the parsed unified northbound message to the command forwarding subservice. After all northbound commands in the command queue have been parsed, the command parsing subservice determines the activity level of commands based on a session activity algorithm, marks inactive sessions as suspended, and reclaims the command parser, returning it to the command parser pool.

[0089] As a preferred technical solution, the command forwarding sub-service also determines the dependency relationship between unified northbound messages; if there is a dependency relationship, the unified northbound messages are forwarded serially; if there is no dependency relationship, the unified northbound messages are forwarded in parallel.

[0090] In this embodiment, the command forwarding sub-service simultaneously determines the dependencies of the unified northbound messages. If there are dependencies, the messages are forwarded serially, that is, after the previous command is executed, they are forwarded; if there are no dependencies, the messages are forwarded in parallel and simultaneously forwarded to the business service.

[0091] As a preferred technical solution, the service includes a service scheduling sub-service and a service execution sub-service; the service scheduling sub-service communicates with the user service, receives unified northbound messages sent by the user service, decomposes and reorganizes the service process, converts the unified northbound messages into service instructions and sends them to the service execution sub-service; the service execution sub-service sends the service instructions to the device network element for execution and returns the execution result.

[0092] In some embodiments, before decomposing and reorganizing business processes through the business scheduling subservice, the received unified northbound messages are also verified, sorted, and deduplicated through the business scheduling subservice. Verifying, sorting, and deduplicating the received unified northbound messages facilitates better subsequent decomposition and reorganization of business processes.

[0093] The business instructions in this embodiment of the invention include configuration instructions and query instructions. The processing of these two types of instructions will be described in detail below.

[0094] As a preferred technical solution, the service instruction includes a configuration instruction; the service execution sub-service includes several configuration execution pipelines; when a configuration instruction is received from a device network element, the service execution sub-service allocates an idle configuration execution pipeline to the device network element and binds it to the device network element, so that the configuration execution pipeline only processes configuration instructions bound to the device network element; after the configuration execution pipeline has executed all configuration instructions, the service execution sub-service determines whether it is necessary to unbind the configuration execution pipeline from the device network element, and after unbinding the configuration execution pipeline from the device network element, re-marks the configuration execution pipeline as idle.

[0095] As a preferred technical solution, the service instruction further includes a query instruction; the service execution sub-service further includes several query execution pipelines; when a query instruction is received from a device network element, the service execution sub-service allocates a query execution pipeline to the device network element according to a HASH algorithm, and one query execution pipeline corresponds to multiple device network elements; the query execution pipeline executes the query instruction, sends the query instruction to the device network element, and returns the query result.

[0096] In the above technical solution, the business services include a business scheduling sub-service and a business execution sub-service:

[0097] Among them, the business scheduling sub-service is responsible for communicating with the user service, receiving and replying to the unified northbound messages sent by the user service, and performing verification, sorting and deduplication on these unified northbound messages; on the other hand, it is responsible for the decomposition and reorganization of business processes, converting unified northbound messages into configuration instructions and query instructions, and sending them to the business execution sub-service.

[0098] The service execution sub-service is responsible for sending configuration and query commands to network elements for execution and returning the execution results. The service execution sub-service includes several configuration execution pipelines and several query execution pipelines. When a configuration command is received from a network element, the service execution sub-service allocates an idle configuration execution pipeline to that network element and binds it to the network element, ensuring that the pipeline only processes configuration commands from the bound network element. After the configuration execution pipeline has executed all commands, the service execution sub-service determines whether to unbind the network element based on a network element activity algorithm. If so, the service execution pipeline that has been unbound is remarked as idle. Query execution pipelines are not bound to network elements; one query execution pipeline corresponds to multiple network elements, and allocation is based on a hash algorithm.

[0099] This invention specifically relates to the field of broadband access network management software and proposes the aforementioned northbound interface command processing method. In this embodiment, the command parser is the execution unit for command parsing, which can be a process / thread / coroutine. Each connection is assigned a different command parser, and when a command parsing problem occurs in one connection, it does not affect other connections. Similar to the service execution pipeline (i.e., configuration execution pipeline or query execution pipeline), each service execution pipeline, in addition to allocating execution units, also allocates queues. Each service execution pipeline processes only the commands of one device network element at a time; after the queue is cleared, it processes commands for other device network elements. Therefore, this invention, through the command parser pool and service execution pipeline, isolates the processing resources allocated to each northbound connection and device network element, ensuring the orderly execution of northbound commands while improving system resource utilization, reducing the scope of fault impact, and improving the availability of the northbound system.

[0100] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.

[0101] Figure 2 This is a schematic diagram of the overall flow of a northbound interface command processing method according to an embodiment of the present invention. The overall flow of the northbound interface command processing method is also the overall processing flow of the northbound system, as follows: Figure 2 As shown:

[0102] Step 101: After receiving the northbound command from the upper-layer system, the user service converts the northbound command into a unified northbound message and sends it to the business service.

[0103] Step 102: After receiving the unified northbound message, the business service performs business data conversion and business process decomposition and reorganization, and then sends business data to the device network elements and executes the business process.

[0104] The specific steps of step 101 above can be represented by a further process, such as... Figure 3 As shown:

[0105] Step 201: After receiving the northbound command, the user session sub-service (corresponding to the user session sub-module in the northbound interface command processing system, abbreviated as user session module in the figure, the same below) puts the northbound command into the user command queue corresponding to the session and sends a command parsing notification to the command parsing sub-service.

[0106] Step 202: After receiving the notification, the command parsing sub-service (corresponding to the command parsing sub-module in the northbound interface command processing system, abbreviated as command parsing module in the figure, the same below) obtains the command parser from the command parsing pool, retrieves the northbound command from the user command queue corresponding to the session, converts it into a unified northbound message, and sends it to the command forwarding sub-service.

[0107] Step 203: The command forwarding sub-service (corresponding to the command forwarding sub-module in the northbound interface command processing system, abbreviated as command forwarding module in the figure, the same below) sends the unified northbound message to the corresponding service according to the network element service mapping table.

[0108] The specific steps of step 202 above can be represented by a further process, such as... Figure 4 As shown:

[0109] Step 301: The command parsing subservice receives the command parsing notification from the user session subservice and prepares to parse the command.

[0110] Step 302: Attempt to obtain an idle command parser from the command parser pool.

[0111] Step 303: If a command parser is obtained, proceed to step 304; if a command parser is not obtained, proceed to step 302.

[0112] Step 304: Mark the user session as active, assign the command parser to the current session, and the current session will be handled by the corresponding command parser thereafter.

[0113] Step 305: The command parser parses the northbound commands and converts the northbound commands in the user command queue into unified northbound messages until the user command queue is empty.

[0114] Step 306: Determine whether the command is active based on the session activity algorithm, and determine whether the current session is active. If it is determined to be an inactive session, proceed to step 307; if it is determined to be an active session, proceed to step 305 and continue parsing the northbound command.

[0115] Step 307: Mark the session as suspended and reclaim the command parser, returning it to the command parser pool.

[0116] The specific steps of step 102 above can be represented by a further process, such as... Figure 5 As shown:

[0117] Step 401: The business scheduling sub-service (corresponding to the business scheduling sub-module in the northbound interface command processing system, abbreviated as business scheduling module in the figure, the same below) receives the unified northbound message sent by the user service and performs verification, sorting and deduplication on these unified northbound messages.

[0118] Step 402: The business scheduling sub-service decomposes and reorganizes the unified northbound message in accordance with the business process, converts the unified northbound message into configuration instructions and query instructions, and sends them to the business execution sub-service.

[0119] Step 403: The business execution sub-service (corresponding to the business execution sub-module in the northbound interface command processing system, abbreviated as business execution module in the figure, the same below) sends the configuration command and query command to the device for execution and returns the execution result.

[0120] The specific steps of step 403 above can be represented by a further process, such as... Figure 6 As shown:

[0121] Step 501: The business execution sub-service receives the configuration instructions and query instructions sent by the business scheduling sub-service.

[0122] Step 502: Determine the instruction type. If it is a configuration instruction, proceed to step 503; if it is a query instruction, proceed to step 507.

[0123] Step 503: Obtain an idle configuration execution pipeline, bind the configuration execution pipeline to the device network element, and only process the configuration instructions of that network element.

[0124] Step 504: Execute the configuration instructions in the configuration execution pipeline, send the configuration instructions to the device for execution, return the execution result, and complete the execution of all configuration instructions in the pipeline.

[0125] Step 505: Determine whether the network element is active based on the network element activity algorithm. If it is determined to be inactive, proceed to step 506; if it is determined to be an active session, proceed to step 504 and continue parsing northbound commands.

[0126] Step 506: Remove the binding relationship between the configuration execution pipeline and the network element.

[0127] Step 507: Allocate query execution pipelines according to the Hash algorithm.

[0128] Step 508: Execute the query command in the pipeline, send the query command to the device, and return the query result.

[0129] This invention also provides a northbound interface command processing system, such as... Figure 7 As shown, the system includes:

[0130] The user module is used to interface with the upper-layer system, receive northbound commands issued by the upper-layer system, parse the northbound commands and convert them into unified northbound messages, and then send the unified northbound messages to the corresponding business modules of the device network elements according to the mapping relationship table between device network elements and business modules.

[0131] The business module is used to process unified northbound messages, convert business data and send it to equipment network elements, and decompose and reorganize business processes and send them to equipment network elements for execution.

[0132] In the above system, the user module implements the user service of the aforementioned method, and the business module implements the business service of the aforementioned method.

[0133] In some embodiments, the system further includes a network element scheduling module (corresponding to the network element scheduling service that implements the aforementioned method).

[0134] In some embodiments, the user module includes a user session submodule, a command parsing submodule, and a command forwarding submodule. These three submodules respectively implement the user session subservice, command parsing subservice, and command forwarding subservice of the aforementioned method.

[0135] In some embodiments, the business module includes a business scheduling submodule and a business execution submodule, which respectively implement the business scheduling subservice and the business execution subservice of the aforementioned method.

[0136] Regarding the system in the above embodiments, the specific manner in which each unit module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.

[0137] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between systems or modules may be electrical, mechanical, or other forms.

[0138] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional modules in the various embodiments of this invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0139] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0140] It should be noted that, for the sake of simplicity, the foregoing embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0141] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0142] The parts not mentioned in the above embodiments are the same as or can be implemented using existing technologies, and will not be further described here.

[0143] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for processing northbound interface commands, characterized in that, The method includes: The user service interfaces with the upper-layer system, receives northbound commands from the upper-layer system, parses the northbound commands and converts them into unified northbound messages, and then sends the unified northbound messages to the corresponding business services of the device network element according to the mapping relationship table between device network elements and business services. The user service includes a user session sub-service, a command parsing sub-service, and a command forwarding sub-service; The command parsing subservice includes a command parser pool, which contains several command parsers for parsing commands for each user session. When the command parsing subservice receives a command parsing notification from the user session subservice, it marks the user session as active and assigns a command parser obtained from the command parser pool to the user session. The assigned command parser retrieves northbound commands from the user command queue, parses them, and sends the resulting unified northbound message to the command forwarding sub-service. After all northbound commands in the user command queue have been parsed, the command parsing subservice determines whether the user session is active, marks inactive user sessions as suspended, and returns the command parser corresponding to the inactive user session to the command parser pool. The unified northbound messages are processed through business services, business data is transformed and sent to equipment network elements, and business processes are decomposed and reorganized and sent to equipment network elements for execution. The service includes a service scheduling sub-service and a service execution sub-service; the service execution sub-service sends service instructions to the device network element for execution and returns the execution result. The business instructions include configuration instructions; The business execution sub-service includes several configuration execution pipelines; When a configuration instruction is received from a device network element, the service execution sub-service allocates an idle configuration execution pipeline to the device network element and binds it to the device network element, so that the configuration execution pipeline only processes the configuration instructions of the bound device network element. After the configuration execution pipeline has executed all configuration instructions, the service execution sub-service determines whether it is necessary to unbind the configuration execution pipeline from the device network element. After unbinding the configuration execution pipeline from the device network element, the configuration execution pipeline is remarked as idle.

2. The northbound interface command processing method according to claim 1, characterized in that, The method further includes: The mapping table is maintained by the network element scheduling service, and the mapping relationship between the network element and the service is dynamically allocated according to the number of network elements and the resource load. The user service obtains the mapping table from the network element scheduling service.

3. The northbound interface command processing method according to claim 1, characterized in that, After receiving northbound commands from the upper-layer system through the user session subservice, the commands are placed into the user command queue corresponding to the user session, and the command parsing subservice is notified to process them. The command parsing subservice parses northbound commands and converts them into unified northbound messages that are independent of the northbound interface protocol, and then sends the unified northbound messages to the command forwarding subservice. The command forwarding subservice places the unified northbound messages waiting to be forwarded into the command forwarding queue, and sends the unified northbound messages to the service corresponding to the device network element according to the mapping table.

4. The northbound interface command processing method according to claim 3, characterized in that, The command forwarding sub-service also determines the dependencies between unified northbound messages; If there are dependencies, then forward unified northbound messages serially; If there are no dependencies, unified northbound messages are forwarded in parallel.

5. The northbound interface command processing method according to claim 1, characterized in that, The business scheduling subservice communicates with the user service, receives unified northbound messages sent by the user service, decomposes and reorganizes the business processes, converts the unified northbound messages into business instructions, and sends them to the business execution subservice.

6. The northbound interface command processing method according to claim 5, characterized in that, Before decomposing and reorganizing the business process through the business scheduling sub-service, the received unified northbound messages are also verified, sorted, and deduplicated through the business scheduling sub-service.

7. The northbound interface command processing method according to claim 1, characterized in that, The business instructions also include query instructions; The business execution sub-service also includes several query execution pipelines; When a query instruction is received from a device network element, the service execution sub-service allocates a query execution pipeline to the device network element according to the HASH algorithm. One query execution pipeline corresponds to multiple device network elements. The query execution pipeline executes the query command, sends the query command to the device network element, and returns the query result.

8. A northbound interface command processing system, used to implement the northbound interface command processing method according to any one of claims 1-7, characterized in that, The system includes: The user module is used to interface with the upper-layer system, receive northbound commands issued by the upper-layer system, parse the northbound commands and convert them into unified northbound messages, and then send the unified northbound messages to the corresponding service modules of the device network elements according to the mapping relationship table between device network elements and service modules. The business module is used to process unified northbound messages, convert business data and send it to equipment network elements, and decompose and reorganize business processes and send them to equipment network elements for execution.