Northbound interface command processing method and system

By separating the user side of the northbound service from the service side functions, and using the mapping relationship table and resource isolation mechanism, the problem of node congestion in the northbound interface under high concurrency and high throughput is solved, and higher reliability and resource utilization are achieved.

CN120512482AActive Publication Date: 2025-08-19FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510585496.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-08-19
Estimated Expiration
2045-05-07

AI Technical Summary

Technical Problem

When the prior art faces northbound interfaces with high concurrency and high throughput, it is prone to congestion of a single node, especially in case of equipment failure, affecting the service issuance of the entire node.

Method used

The user side of the northbound service is separated from the service side functions, and dynamically allocate through the mapping relationship table of user services and business services, so as to realize the serial issuance and parallel execution of northbound commands, and use the command parser pool and service execution pipeline to isolate resource processing to ensure orderly execution of commands.

Benefits of technology

It reduces the cost of open maintenance and deployment, improves the reliability and resource utilization of the system, reduces node congestion caused by single user or device failure, and enhances the reliability of network management systems under high concurrency and high throughput.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120512482A_ABST
    Figure CN120512482A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a northbound interface command processing method and system, and the method comprises the steps: receiving a northbound command issued by an upper-layer system through the butt joint of user service and the upper-layer system, analyzing the northbound command, converting the northbound command into a unified northbound message, and sending the unified northbound message to a server; sending the unified northbound message to a business service corresponding to the equipment network element according to a mapping relation table of the equipment network element and the business service; and the unified northbound message is processed through the business service, business data is converted and issued to the equipment network element, and a business process is decomposed and recombined and sent to the equipment network element to be executed. The functions of the user side and the service side of the northbound service are separated, different types of northbound interface services multiplex the same service, the open maintenance cost and the deployment cost are reduced, the network management system can have higher reliability while having high concurrency and high throughput, and the network management system can be widely applied to the field of network management. The node congestion phenomenon caused by a single user or equipment fault can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

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

[0003] As the network scale expands, the number of services and devices increases. The pressure on the northbound interface is also increasing. It needs to support high concurrency and high throughput while also having high reliability and fault tolerance. Common approaches are as follows:

[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, multiple northbound interface nodes can be deployed to improve the system's processing capacity.

[0006] However, simply adding threads or nodes can still lead to congestion in a single node. For example, a single device failure can cause thread exhaustion in a single node, leading to congestion in the entire node and affecting the delivery of services to all devices on that node. The present invention addresses these shortcomings and makes improvements. Summary of the Invention

[0007] In order to overcome the shortcomings of the background technology, the present invention provides a northbound interface command processing method and system, which separates the user side and business side functions of the northbound service, and reuses the same business service for different types of northbound interface services, thereby reducing the open maintenance cost and deployment cost. It can enable the network management system to have higher reliability while achieving high concurrency and high throughput, reduce node congestion caused by single user or equipment failure, and ensure the correctness of the sequence of northbound commands.

[0008] To achieve the above object, the present invention provides the following technical solutions:

[0009] In a first aspect, a method for processing a northbound interface command is provided, the method comprising:

[0010] Connecting with the upper-layer system through user services, it receives northbound commands issued by the upper-layer system, parses the northbound commands and converts them into unified northbound messages. Then, it sends the unified northbound messages to the corresponding business services of the device network elements according to the mapping relationship table between device network elements and business services.

[0011] Through business services, unified northbound messages are processed, business data is converted and sent to device network elements, and business processes are decomposed and reorganized and sent to device network elements for execution.

[0012] Furthermore,

[0013] The method further comprises:

[0014] Maintaining the mapping relationship table through the network element scheduling service, and dynamically allocating the mapping relationship between the device network element and the business service according to the number and resource load of the device network element and the business service;

[0015] The user service obtains the mapping relationship 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] The user session sub-service receives northbound commands from the upper-layer system and places them into the user command queue corresponding to the user session. The command parsing sub-service is then notified for processing.

[0019] The command parsing sub-service parses northbound commands and converts them into unified northbound messages that are independent of the northbound interface protocol. The unified northbound messages are then sent to the command forwarding sub-service.

[0020] The command forwarding sub-service puts the unified northbound message waiting to be forwarded into the command forwarding queue, and sends the unified northbound message to the business service corresponding to the device network element according to the mapping relationship table.

[0021] Furthermore,

[0022] The command parsing sub-service includes a command parser pool, which includes a number of command parsers for parsing commands for each user session;

[0023] When the command parsing sub-service receives the command parsing notification from the user session sub-service, it marks the user session as active and assigns the command parser obtained from the command parser pool to the user session;

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

[0025] When all northbound commands in the user command queue are parsed, the command parsing sub-service determines whether the user session is active, marks the inactive user session 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 dependency between unified northbound messages;

[0028] If there is a dependency, the unified northbound message is forwarded serially;

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

[0030] Further,

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

[0032] Communicates with the user service through the business scheduling sub-service, receives unified northbound messages sent by the user service, decomposes and reorganizes business processes, converts unified northbound messages into business instructions, and sends them to the business execution sub-service;

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

[0034] Further,

[0035] Before the business process is decomposed and reorganized by the business scheduling sub-service, the received unified northbound messages are also verified, sorted and deduplicated by the business scheduling sub-service.

[0036] Further,

[0037] The business instructions include configuration instructions;

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

[0039] When receiving a configuration instruction 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 executes all configuration instructions, the business execution sub-service determines whether it is necessary to release the binding relationship between the configuration execution pipeline and the device network element. After releasing the binding relationship between the configuration execution pipeline and the device network element, the configuration execution pipeline is re-marked as idle.

[0041] Further,

[0042] The business instructions also include query instructions;

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

[0044] When receiving a query instruction 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 instructions, sends the query instructions to the device network element, and returns the query results.

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

[0047] The user module is used to connect to 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 service modules corresponding to 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 device network elements, and decompose and reorganize business processes and send them to device network elements for execution.

[0049] Compared with the prior art, the present invention has the following beneficial effects:

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

[0051] 2. It implements serial issuance and parallel execution of northbound commands, improving command execution efficiency while ensuring correct execution. This enables the network management system to achieve high concurrency and high throughput while also providing higher reliability and reducing node congestion caused by single user or device failures.

[0052] 3. Support multi-instance expansion of services. When physical resources are improved, the number of services can be increased to improve the system's concurrency and throughput.

[0053] 4. Through the command parser pool and business execution pipeline, each northbound connection and device allocation processing resource is isolated, ensuring the orderly execution of northbound commands while improving system resource utilization, reducing the scope of fault impact, and improving northbound system availability.

[0054] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings.

[0055] The present invention will be further described below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0057] Figure 1 This is a general flow chart for northbound interface command processing;

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

[0059] Figure 3 A schematic diagram of a processing flow for user services according to an embodiment of the present invention;

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

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

[0062] Figure 6 A schematic diagram of a processing flow of command execution 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 DESCRIPTION

[0064] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0065] The northbound interface of the network management system generally refers to the interface between the equipment management system (EMS / 0MC) 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 one or more upper-layer systems to call simultaneously. When calling the interface, the upper-layer system sends a command to the northbound interface, which is parsed and processed by the northbound interface module, and then sent to the business module and finally to the network device. Figure 1 shown.

[0066] When issuing northbound commands, the upper-layer system logs in to the NMS and maintains a connection and session with the northbound interface subsystem. After the service is issued, the upper-layer system logs out of the NMS and terminates the connection and session. The northbound interface subsystem must maintain the connection and session, properly handle blockages and interruptions caused by network anomalies, and ensure that northbound commands are responded to correctly and promptly.

[0067] Network services are usually delivered sequentially. 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, service commands are distributed to network devices via management protocols. When a device fails or an abnormality occurs on the management network, the network management system must maintain the device's status, handle the issue correctly without affecting other devices, and promptly return error information to the upper-layer system.

[0069] As networks expand, the number of services and devices increases. Northbound interfaces face increasing pressure, requiring them to support high concurrency and throughput while also maintaining high reliability and fault tolerance. Existing technologies can still cause single-node congestion. Therefore, embodiments of the present invention provide a northbound interface command processing method and system that effectively reduces node congestion caused by single user or device failures.

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

[0071] Connecting with the upper-layer system through user services, it receives northbound commands issued by the upper-layer system, parses the northbound commands and converts them into unified northbound messages. Then, it sends the unified northbound messages to the corresponding business services of the device network elements according to the mapping relationship table between device network elements and business services.

[0072] Through business services, unified northbound messages are processed, business data is converted and sent to device network elements, and business processes are decomposed and reorganized and sent to device 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 a user service, depending on the type of northbound interface protocol being provided. Each user service implements a specific northbound interface protocol type, and the upper-layer system invokes different user services based on the northbound interface protocol type. After receiving northbound commands from the upper-layer system, the user service parses the northbound commands and converts them into unified northbound messages independent of the northbound protocol. The unified northbound messages are then sent to the business service.

[0074] In this embodiment, the business service is responsible for processing unified northbound messages, converting service data, and decomposing and reorganizing service processes. It then sends service data to devices and network elements and executes service processes. Business services support multiple instances, with the number of instances related to the network scale and the number of devices and network elements. A business service is responsible for processing services for a certain number of devices and network elements based on its processing capacity.

[0075] The above technical solution separates the user side and business side functions of the northbound service, sets up user services and business services, implements user side functions through user services, and implements business side functions through business services. Different types of northbound interface services reuse the same business services, reducing open maintenance costs and deployment costs, enabling the network management system to have higher reliability while maintaining high concurrency and high throughput, reducing node congestion caused by single user or equipment failures, and ensuring the correctness of the sequence of northbound commands. The present invention also supports multi-instance expansion of services. After the physical resources are improved, the number of services is increased, which can improve the concurrency and throughput of the system. In the present invention, northbound interface commands are also abbreviated as northbound commands.

[0076] The present invention separates the user-side and business-side functions of northbound services, allowing different types of northbound interface services to reuse the same business services. For example, the northbound interface includes a TL1 interface and a RESTful interface. The two interfaces have different protocols, but both have commands for adding ONUs. Command messages in a unified format can be converted and sent to business services for unified processing, thereby avoiding repeated implementation of business logic for each northbound interface, thereby reducing open maintenance costs and deployment costs.

[0077] Service data conversion involves converting northbound message data into the data format required by the device protocol. Device protocols and northbound interfaces don't correspond one-to-one, so they need to be broken down and reorganized. For example, a northbound command to add an ONU requires multiple operations, including ONU authorization, waiting for successful authorization, and the network administrator adding the ONU.

[0078] Each connection of the northbound interface is issued serially, in a certain order, and the one issued first is executed first. One connection issued 10 northbound commands at the same time. The first 5 commands are for device network element A, and the last 5 commands are for device network element B. The commands of device network element B do not need to wait for the commands of device network element A to be executed before being executed, and can be executed in parallel at the same time. Commands of the same device are executed serially, and commands across devices can be executed in parallel. It can be seen that the above-mentioned northbound interface command processing method provided by the present invention realizes the serial issuance and parallel execution of northbound commands, and improves the efficiency of command execution while ensuring correct execution, so that the network management system has higher reliability while having high concurrency and high throughput, and can reduce node congestion caused by single user or device failure.

[0079] As an optimal technical solution, the method also includes: maintaining the mapping relationship table through the network element scheduling service, and dynamically allocating the mapping relationship between device network elements and business services according to the number and resource load of device network elements and business services; the user service obtains the mapping relationship table from the network element scheduling service.

[0080] In this embodiment, the NE Scheduling Service maintains a mapping table between device NEs and service services, dynamically allocating these mappings based on their number and resource load. User services obtain the mapping table from the NE Scheduling Service and, based on the mapping table, issue unified command messages (i.e., unified northbound messages) to the service services corresponding to the device NEs. When changes occur to device NEs and service services, the NE Scheduling Service updates or recalculates the mappings (i.e., adjusts the mapping table accordingly) and notifies the user services to update the mapping table.

[0081] The above-mentioned user services, business services, and network element scheduling services constitute the northbound system of the embodiment of the present invention, which can well process northbound interface commands to meet actual application requirements.

[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; after receiving the northbound command issued by the upper system through the user session sub-service, it is placed in the user command queue corresponding to the user session, and the command parsing sub-service is notified for processing; the northbound command is parsed by the command parsing sub-service and converted into a unified northbound message unrelated to the northbound interface protocol, and the unified northbound message is sent to the command forwarding sub-service; the unified northbound message waiting to be forwarded is placed in the command forwarding queue through the command forwarding sub-service, and the unified northbound message is sent to the business service corresponding to the device network element according to the mapping relationship table.

[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 maintains a user command queue to cache northbound commands for each user session. Each user session corresponds to a command queue. The User Session subservice creates and destroys command queues based on the northbound user's connection status. Upon receiving a northbound command, it places it in the queue corresponding to the session and notifies the Command Parsing subservice for processing.

[0085] The command parsing subservice is responsible for parsing northbound interface commands (i.e., northbound commands) and converting them into unified northbound messages. It also converts replies to unified northbound messages into replies to northbound interface commands. Unified northbound messages are northbound protocol-independent data structures that encapsulate both command and execution information. Different types of northbound interface commands are converted into a unified message format to facilitate unified processing by business services.

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

[0087] As a preferred technical solution, the command parsing sub-service includes a command parser pool, which includes several command parsers for parsing commands for each user session. When the command parsing sub-service receives a command parsing notification from the user session sub-service, it marks the user session as active and assigns the command parser obtained from the command parser pool to the user session. The assigned command parser takes northbound commands from the user command queue for parsing and sends the parsed unified northbound message to the command forwarding sub-service. When all northbound commands in the user command queue are parsed, the command parsing sub-service determines whether the user session is active, marks an inactive user session 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 sub-service includes a command parser pool, which includes a certain number of command parsers. The command parsers are used to parse commands for each session. When the command parsing sub-service receives a parsing notification from the user session sub-service, it obtains a command parser from the command parser pool, assigns it to the session, and marks the session as active. The assigned command parser retrieves northbound commands from the command queue for parsing and sends the resulting unified northbound message to the command forwarding sub-service. When all northbound commands in the command queue are parsed, the command parsing sub-service determines whether the commands are active based on the 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 between unified northbound messages; if there is a dependency, the unified northbound messages are forwarded serially; if there is no dependency, the unified northbound messages are forwarded in parallel.

[0090] In this embodiment, the command forwarding sub-service also determines the dependency of the unified northbound message. If there is a dependency, it is forwarded serially, that is, it is forwarded after the previous command is executed; if there is no dependency, it is forwarded in parallel and forwarded to the business service at the same time.

[0091] As a preferred technical solution, the business service includes a business scheduling sub-service and a business execution sub-service; the business scheduling sub-service communicates with the user service, receives the unified northbound message sent by the user service and decomposes and reorganizes the business process, converts the unified northbound message into a business instruction and sends it to the business execution sub-service; the business instruction is sent to the device network element for execution through the business execution sub-service, and the execution result is returned.

[0092] In some embodiments, before the business process is decomposed and reorganized by the business scheduling sub-service, the business scheduling sub-service also verifies, sorts, and deduplicates the received unified northbound messages. Verifying, sorting, and deduplicating the received unified northbound messages facilitates subsequent decomposition and reorganization of the business process.

[0093] The service instructions of the embodiment of the present invention include configuration instructions and query instructions. The processing of these two instructions will be described separately below.

[0094] As a preferred technical solution, the business instructions include configuration instructions; the business execution sub-service includes several configuration execution pipelines; when receiving a configuration instruction from a device network element, the business 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; when the configuration execution pipeline executes all configuration instructions, the business execution sub-service determines whether it is necessary to release the binding relationship between the configuration execution pipeline and the device network element, and after releasing the binding relationship between the configuration execution pipeline and the device network element, the configuration execution pipeline is re-marked as idle.

[0095] As a preferred technical solution, the business instruction also includes a query instruction; the business execution sub-service also includes several query execution pipelines; when a query instruction from a device network element is received, the business execution sub-service allocates a query execution pipeline to the device network element according to the 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 service includes 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 verifying, sorting, and deduplicating 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 business execution sub-service is responsible for sending configuration instructions and query instructions to the device network element for execution and returning the execution results. The business execution sub-service includes several configuration execution pipelines and several query execution pipelines. When a configuration instruction from a device network element is received, the business execution sub-service assigns 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 network element. After the configuration execution pipeline has executed all commands, the business execution sub-service determines whether the network element binding relationship needs to be released based on the network element activity algorithm. If so, the configuration execution pipeline that has released the network element binding relationship will be re-marked as idle. The query execution pipeline is not bound to the device network element. One query execution pipeline corresponds to multiple device network elements and is allocated based on the HASH algorithm.

[0099] The present invention specifically relates to the field of network management software for broadband access networks, and proposes the above-mentioned northbound interface command processing method. In an embodiment of the present invention, the command parser is the execution unit of command parsing, which can be a process / thread / coroutine. The command parser assigned to each connection is different. When a problem occurs in the command parsing of this connection, other connections are not affected. The service execution pipeline (i.e., the configuration execution pipeline or the query execution pipeline) is similar. In addition to allocating execution units, each service execution pipeline also allocates queues. Each service execution pipeline only processes the commands of one device network element at the same time, and processes other device network elements after the queue is cleared. It can be seen from this that the present invention isolates the allocation of processing resources for each northbound connection and device network element through the command parser pool and the service execution pipeline, ensuring the orderly execution of northbound commands while improving the utilization of system resources, reducing the scope of fault impact, and improving the northbound system availability.

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

[0101] Figure 2 This is a schematic diagram of the overall process of the northbound interface command processing method according to an embodiment of the present invention. The overall process of the northbound interface command processing method is also the overall processing process of the northbound system. 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 converts the business data and decomposes and reorganizes the business process, and then sends the business data to the device network element 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 a northbound command, the user session sub-service (corresponding to the user session sub-module in the northbound interface command processing system, abbreviated as the user session module in the figure, the same below) places 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 the command parsing module in the figure, the same below) obtains the command parser from the command parsing pool, takes out 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 the command forwarding module in the figure, the same below) sends the unified northbound message to the corresponding business service according to the network element business mapping table.

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

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

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

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

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

[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 cleared.

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

[0115] Step 307: Mark the session as suspended, reclaim the command parser, and return 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 the business scheduling module in the figure, the same below) receives the unified northbound messages sent by the user service, and verifies, sorts, and deduplicates these unified northbound messages.

[0118] Step 402: The business scheduling sub-service decomposes and reassembles the unified northbound message according to 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 the business execution module in the figure, the same below) sends the configuration instructions and query instructions to the device for execution and returns the execution results.

[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 service execution sub-service receives the configuration instruction and query instruction sent by the service 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 the network element.

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

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

[0126] Step 506: Release 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: The query execution pipeline executes the query instruction, sends the query instruction to the device, and returns the query result.

[0129] The embodiment of the present 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 connect to 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 service modules corresponding to the device network elements according to the mapping relationship table between device network elements and service modules;

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

[0132] In the above system, the user module corresponds to the user service that implements the above method, and the business module corresponds to the business service that implements the above method.

[0133] In some embodiments, the above system further includes a network element scheduling module (corresponding to the network element scheduling service for implementing the above method).

[0134] In some embodiments, the user module includes a user session submodule, a command parsing submodule, and a command forwarding submodule, which respectively correspond to the user session subservice, command parsing subservice, and command forwarding subservice that implement the aforementioned method.

[0135] In some embodiments, the service module includes a service scheduling submodule and a service execution submodule, and these two submodules correspond to the service scheduling subservice and the service execution subservice that implement the aforementioned method, respectively.

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

[0137] In the several 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 example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.

[0138] The modules described as separate components may or may not be physically separate, and the components displayed 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 may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, the functional modules in the various embodiments of the present invention may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The integrated modules may be implemented in the form of hardware or software functional modules.

[0139] If the integrated module is implemented in the form of 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, 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. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0140] It should be noted that for the aforementioned embodiments, for ease of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0141] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0142] Parts not involved in the above embodiments are the same as the existing technology or can be implemented by using the existing technology, and will not be further explained here.

[0143] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements 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 comprises: Connecting with the upper-layer system through user services, it receives northbound commands issued by the upper-layer system, parses the northbound commands and converts them into unified northbound messages. Then, it sends the unified northbound messages to the corresponding business services of the device network elements according to the mapping relationship table between device network elements and business services. Through business services, unified northbound messages are processed, business data is converted and sent to device network elements, and business processes are decomposed and reorganized and sent to device network elements for execution.

2. A northbound interface command processing method according to claim 1, characterized in that: The method further comprises: Maintaining the mapping relationship table through the network element scheduling service, and dynamically allocating the mapping relationship between the device network element and the business service according to the number and resource load of the device network element and the business service; The user service obtains the mapping relationship table from the network element scheduling service.

3. A northbound interface command processing method according to claim 1, characterized in that: 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 the user command queue corresponding to the user session. The command parsing sub-service is then notified for processing. The command parsing sub-service parses northbound commands and converts them into unified northbound messages that are independent of the northbound interface protocol. The unified northbound messages are then sent to the command forwarding sub-service. The command forwarding sub-service puts the unified northbound message waiting to be forwarded into the command forwarding queue, and sends the unified northbound message to the business service corresponding to the device network element according to the mapping relationship table.

4. A northbound interface command processing method according to claim 3, characterized in that: The command parsing sub-service includes a command parser pool, which includes a number of command parsers for parsing commands for each user session; When the command parsing sub-service receives the command parsing notification from the user session sub-service, it marks the user session as active and assigns the command parser obtained from the command parser pool to the user session; The assigned command parser takes northbound commands from the user command queue, parses them, and sends the resulting unified northbound message to the command forwarding sub-service. When all northbound commands in the user command queue are parsed, the command parsing sub-service determines whether the user session is active, marks the inactive user session as suspended, and returns the command parser corresponding to the inactive user session to the command parser pool.

5. A northbound interface command processing method according to claim 3, characterized in that: The command forwarding sub-service also determines the dependency between unified northbound messages; If there is a dependency, the unified northbound message is forwarded serially; If there is no dependency, unified northbound messages are forwarded in parallel.

6. A method for processing northbound interface commands according to claim 1, characterized in that: The business service includes a business scheduling sub-service and a business execution sub-service; Communicates with the user service through the business scheduling sub-service, receives unified northbound messages sent by the user service, decomposes and reorganizes business processes, converts unified northbound messages into business instructions, and sends them to the business execution sub-service; The service execution sub-service sends the service instructions to the device network element for execution and returns the execution results.

7. A method for processing northbound interface commands according to claim 6, characterized in that: Before the business process is decomposed and reorganized by the business scheduling sub-service, the received unified northbound messages are also verified, sorted and deduplicated by the business scheduling sub-service.

8. A method for processing northbound interface commands according to claim 6, characterized in that: The business instructions include configuration instructions; The business execution sub-service includes several configuration execution pipelines; When receiving a configuration instruction 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 executes all configuration instructions, the business execution sub-service determines whether it is necessary to release the binding relationship between the configuration execution pipeline and the device network element. After releasing the binding relationship between the configuration execution pipeline and the device network element, the configuration execution pipeline is re-marked as idle.

9. A method for processing northbound interface commands according to claim 8, characterized in that: The business instructions also include query instructions; The business execution sub-service also includes several query execution pipelines; When receiving a query instruction 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 instructions, sends the query instructions to the device network element, and returns the query results.

10. A northbound interface command processing system, characterized in that: The system comprises: The user module is used to connect to 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 service modules corresponding to 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 device network elements, and decompose and reorganize business processes and send them to device network elements for execution.

Citation Information

Patent Citations

  • Method of processing information of northbound interface and device and northbound interface

    CN103095481A

  • Northbound interface distributed management method and device

    CN105634767A

  • High-expandability SDN northbound interface implementation method

    CN113783738A

  • Cooperative cross-domain service construction technology based on ontology semantic model

    CN114998073A