CN104468195A - Northbound-interface-based subsystem independent hot rebooting method and device - Google Patents

Northbound-interface-based subsystem independent hot rebooting method and device Download PDF

Info

Publication number
CN104468195A
CN104468195A CN201410637290.0A CN201410637290A CN104468195A CN 104468195 A CN104468195 A CN 104468195A CN 201410637290 A CN201410637290 A CN 201410637290A CN 104468195 A CN104468195 A CN 104468195A
Authority
CN
China
Prior art keywords
protocol service
service subsystem
subsystem
webmaster
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410637290.0A
Other languages
Chinese (zh)
Other versions
CN104468195B (en
Inventor
沈莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan NEC Fiber Optic Communications Industry Co Ltd
Original Assignee
Wuhan NEC Fiber Optic Communications Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan NEC Fiber Optic Communications Industry Co Ltd filed Critical Wuhan NEC Fiber Optic Communications Industry Co Ltd
Priority to CN201410637290.0A priority Critical patent/CN104468195B/en
Publication of CN104468195A publication Critical patent/CN104468195A/en
Application granted granted Critical
Publication of CN104468195B publication Critical patent/CN104468195B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a northbound-interface-based subsystem independent hot rebooting method and device. The method comprises the steps that each protocol service subsystem loads a network administration interface and registers a message notification, and different protocol service subsystems run independently; data communication is carried out on each protocol service subsystem and a network administrator through the network administration interface provided by a network administration interface layer; a starting module calls starting parameters of the protocol service subsystems, and the protocol service subsystems are restarted. The network administration interfaces are administrated in a unified mode, then, the functions of the protocol service subsystems are independently extracted, and each protocol service subsystem can be independently started or stopped; during starting or stopping, independent resource administration modules are called, and resources being used or needing to be used are administrated in a unified mode. The restarting process of the single protocol service subsystems in a northbound interface system is more efficient, stable and easy to manage and maintain, and loads of the network administration system are lowered.

Description

The independent hot restart method and apparatus of a kind of subsystem based on northbound interface
Technical field
The present invention relates to the northbound interface field of different agreement service, particularly relate to the independent hot restart method and apparatus of a kind of subsystem based on northbound interface.
Background technology
along with the development of telecommunication service, increasing operator or producer need to access different upper strata webmasters simultaneously, to meet their different aspects managerial demand.Such as, the united net management of the webmaster access Liao Genggao management organization of some management unit, but due to managerial demand, this management unit have developed again a set of upper strata webmaster being applicable to oneself.These two network management communication agreements are different, but need to provide northbound interface service simultaneously.In this case, most communication network management needs the northbound interface service of installing different agreement, and user cost increases, and administers and maintains and becomes more loaded down with trivial details.Multiple northbound interface service access, also creates heavier load to network management system itself simultaneously.Support in the system of different agreement northbound interface service simultaneously, north interface system is overall as a service, if the service of certain interface protocol has occurred that problem needs restart, then can affect the normal operation of other other interfaces, the management of other upper strata webmasters will certainly be affected, after again starting, also need all upper strata webmasters again to carry out connecting and initial work, increase the workload of attendant, too increase the possibility that sorts of systems is made mistakes.
Summary of the invention
The present invention is directed to the defect that prior art exists, there is provided a kind of subsystem based on northbound interface independent hot restart method and apparatus, the north interface system that can simultaneously provide different agreement to serve, independent as required hot restart is carried out to each protocol service subsystem, make process that in north interface system, single protocol service subsystem is restarted more efficient, stablize, be easy to administer and maintain, reduce the load of network management system.
The technical solution adopted for the present invention to solve the technical problems is:
The independent hot restart method of subsystem based on northbound interface, the method comprises the following steps, and each protocol service subsystem loads network management interface and registration message notice respectively, different protocol service subsystem isolated operations; The network management interface that each protocol service subsystem is provided by network management interface layer and webmaster carry out data communication; Start the start-up parameter that module calls each protocol service subsystem, individual protocol service subsystem is restarted.
By technique scheme, described each protocol service subsystem loads network management interface and registration message notice, comprising: protocol service subsystem reads the information in configuration file, obtains IP and the port numbers of webmaster, is connected with webmaster; Obtain the access interface of webmaster, connect webmaster message sink passage, the inquiry of data is carried out to webmaster and issues operation.
By technique scheme, the access interface of described acquisition webmaster, comprising: the inquiry of the management of acquisition network management configuration, performance management, alarm management and configuration interface.
By technique scheme, start the start-up parameter that module calls each protocol service subsystem, protocol service subsystem is restarted, comprise: the data transaction that network management interface is loaded into self by each protocol service subsystem respectively realizes in module, loads the used resource of this northbound interface protocol service subsystem simultaneously; Upper strata webmaster sends the order of restarting protocol service subsystem, protocol service subsystem checks whether performing of task when receiving reset command, if had, start timing, and specify this task at the appointed time in complete, complete at the appointed time if do not have, then force to terminate this task; Destroy the resource needing the protocol service subsystem of restarting, close this protocol service subsystem; Restart this protocol service subsystem, and reload the resource of this protocol service subsystem.
By technique scheme, described pressure terminates this task, comprising: the message that protocol service subsystem does not complete to upper strata webmaster transmission task, or sends overtime abnormal prompt directly to upper strata webmaster.
By technique scheme, destroy the resource needing the protocol service subsystem of restarting, comprise release connection, close stream.
The present invention also provides a kind of subsystem based on northbound interface independent hot restart device, and this device comprises protocol service subsystem module, starts module, network management interface layer; The different protocol service subsystem that protocol service subsystem module is provided by different agreement forms, and protocol service subsystem loads network management interface and registration message notice, isolated operation; Network management interface layer is used for providing interface for each protocol service subsystem and webmaster carry out data communication; Starting module for calling the start-up parameter needing the protocol service subsystem started, each protocol service subsystem being started and restarts.
By technique scheme, described protocol service subsystem comprises Communication processing module, resource management module, data model translation module, Service Processing Module; Communication processing module, connects for protocol service subsystem and upper strata webmaster, Connection Release and data communication; Resource management module, for managing the resource of protocol service subsystem; Data type conversion module, for the data that the upper strata webmaster received by protocol service subsystem is sent, be converted to the type of data structure of this webmaster, and the message data that the data returned by this webmaster or this webmaster initiatively send, be converted to the type of data structure with upper strata webmaster communication; Service Processing Module, for the treatment of miscellaneous service logic in protocol service subsystem, and calls network management interface according to service logic from network management interface layer, sends to data type conversion module to process the data returned.
By technique scheme, the resource of described resource management module to protocol service subsystem manages, and comprises the loading of resource, distribution and destruction.
By technique scheme, the resource of described protocol service subsystem comprises thread pool, profile information.
The beneficial effect that the present invention produces is:
1, support that different protocol interfaces works simultaneously simultaneously, reduce costs, decrease the complexity that north interface system is safeguarded.
2, after different protocol service subsystems starts jointly, all work alone, reduce and interfere with each other between the upper strata webmaster of access, also reduce the possibility of northbound interface and upper strata webmaster appearance mistake simultaneously.
3, the resource of each protocol service subsystem is unified in resource management module manages, add the stability of system.
4, the independent warm start of single northbound interface protocol service subsystem is supported, while the independent warm start of certain protocol service subsystem, other upper strata webmasters all normally work, and without the need to doing any process, have ensured that operator or producer are to the requirement of service management greatly.
5, add unified network management interface layer, shield the difference of diversity of protocol versions to network management data requirement, realize interface duplex, to the difficulty of development requires and workload when reducing newly-increased protocol version, add the extensibility of system.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the structured flowchart of apparatus of the present invention embodiment;
Fig. 2 is the flow chart of the inventive method embodiment;
Fig. 3 is the northbound interface service system schematic diagram of prior art webmaster;
Fig. 4 is the northbound interface service system schematic diagram of webmaster of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In the independent hot restart device of a kind of subsystem based on northbound interface of the embodiment of the present invention, as shown in Figure 1, this device comprises protocol service subsystem module, starts module, network management interface layer; The different protocol service subsystem that protocol service subsystem module is provided by different agreement forms, and protocol service subsystem loads network management interface and registration message notice, isolated operation; Network management interface layer is used for providing interface for each protocol service subsystem and webmaster carry out data communication; Starting module for calling the start-up parameter needing the protocol service subsystem started, each protocol service subsystem being started and restarts.
Described protocol service subsystem comprises Communication processing module, resource management module, data model translation module, Service Processing Module; Communication processing module, connects for protocol service subsystem and upper strata webmaster, Connection Release and data communication; Resource management module, for managing the resource of protocol service subsystem; Data type conversion module, for the data that the upper strata webmaster received by protocol service subsystem is sent, be converted to the type of data structure of this webmaster, and the message data that the data returned by this webmaster or this webmaster initiatively send, be converted to the type of data structure with upper strata webmaster communication; Service Processing Module, for the treatment of miscellaneous service logic in protocol service subsystem, and calls network management interface according to service logic from network management interface layer, sends to data type conversion module to process the data returned.
The resource of described resource management module to protocol service subsystem manages, and comprises the loading of resource, distribution and destruction.
The resource of described protocol service subsystem comprises thread pool, profile information.
Northbound interface: refer to the interface that webmaster producer is supplied to other producers or operator and carries out accessing and managing.Hot restart: restarted service by software, farthest avoids causing damage to the software and hardware of system.
Protocol service layer, comprises the communication interface upwards providing each agreement, passes downwardly through the interface loading network management interface layer and obtain, calls the data acquisition information of webmaster or issue configuration information.In addition, protocol service layer goes back the message informing (comprising alarm event and resource Notification of Changes etc.) of wait-receiving mode webmaster, is distributed to and the upper strata webmaster be connected separately.Protocol service layer also manages the resource of the northbound interface protocol service subsystem of each agreement, is convenient to control the resource of system when start/stop/warm start, farthest reduces the possibility of system fault.In addition, the main business logic processing work of this module is carried out in data model translation module and Service Processing Module process.Network interface layer is connected by carrying out communication with webmaster, obtains webmaster opening to the interface of north orientation system, and each protocol service subsystem be supplied in north interface system uses, and processes the distribution of various types of messages.
As shown in Figure 2, the inventive method embodiment comprises the following steps.
Step S010: the service starting northbound interface.
Step S020: the information obtaining webmaster from the configuration file of system, as IP address, port numbers, the user of connection
The information such as name password, the agreement provided by webmaster is connected with webmaster.
Step S030: obtain the interface that webmaster is supplied to north orientation system, comprise configuration management, performance management, alarm management
Query interface and configuration distributing interface.Interface singleton pattern is loaded in north interface system, reduces reusing network management system resource.
Step S040: set up and be connected with the long of the message channel of webmaster, receive the various types of messages that webmaster is sent, comprise alarm
Event, resource modification information etc.Open the protocol service subsystem information that thread wait-receiving mode needs dispatch messages.
Step S050: read configuration file, calls each northbound interface protocol service subsystem needing to start by starting module
The starting command of system, starts these protocol service subsystems.Each protocol service subsystem opens oneself Communications service respectively, waits for the connection of upper strata webmaster; The resource that initialization simultaneously needs separately, such as thread pool, profile information etc.; Then by network management interface layer obtain network management interface, be loaded in respective protocol service subsystem, by Service Processing Module according to business need call at any time; This protocol service subsystem information is registered to network management interface layer, the distribution waited for the arrival of news.After startup module is called, each protocol service subsystem all works alone, and does not interfere with each other.
When upper strata webmaster send service request time, Service Processing Module when carrying out business logic processing, by calling data modular converter, by the request msg of upper strata webmaster, be converted to the data structure of webmaster, be sent in webmaster by the network management interface loaded, wait for the response of webmaster.Webmaster passes through query count, data are returned to Service Processing Module, and Service Processing Module is calling data modular converter again, and the data returned by webmaster carry out the conversion of data structure, be converted to the data structure that upper strata webmaster needs, then transfer to communication interface module to return to upper strata webmaster.
After webmaster sends a message to network management interface layer by message channel, carried out the distribution of message by it.Receive each protocol service service of subsystem processing module of message, calling data model conversion module, message data is converted to the data structure that upper strata webmaster needs, sends to upper strata webmaster by respective communication interface module.
As can be seen here, all inquiries, issue, the operation such as message informing all completes in this protocol service subsystem, can not cause the interference to other protocol service subsystem.
Step S060: when upper strata webmaster is restarted certain northbound interface protocol service subsystem as required, sends reset command to its communication interface connected.
Step S070: the northbound interface protocol service subsystem receiving reset command, first inquires about performing at present of task, whether has performing of task in check system.If not performing of task, then directly carry out step S100.If there is performing of task, then perform step S080.
Step S080: read the information in configuration file, obtains task waiting time length.Opening timing device, waits for that not completing of task continues to perform.If task completes in the stand-by period of regulation, then perform step S100.If task does not complete in the stand-by period of regulation, perform step S090.
S090: force the task of terminating not complete, to the message that upper strata webmaster transmission task does not complete, or dishes out time-out extremely directly to upper strata webmaster.The service logic how processed by this protocol service subsystem determines.
S100: the resource of destroying this protocol service subsystem, such as release connection, closedown stream etc.
S110: terminate this protocol service subsystem and be connected with the communication of upper strata webmaster, or transmission service closedown informs upper strata webmaster.Then the basic Communications service of this protocol service subsystem is terminated.
S120: the starting command again calling this subsystem, opens the Communications service of oneself, initialization resource, and load network management interface, log-on message, to work such as network management interface layers, refers to step S050.
S130: the needs of different according to agreement from business, can send service initiate notification to the known upper strata webmaster needing connection.
S140: connection or the request of data of waiting for upper strata webmaster.
Because network management communication agreement is different, but when needing to provide northbound interface to serve simultaneously, prior art as shown in Figure 3, communication network management needs the northbound interface service of installing different agreement, the present invention as shown in Figure 4, by first will to network management interface unified management, then by each protocol service subsystem function independent draws, each protocol service subsystem can independently start/stop, when start/stop, call independent resource management module, unified is using it or is needing the resource used to manage.In the separate actuating units of system, each protocol service subsystem starts by the start unit calling each protocol service subsystem simultaneously, provides service simultaneously.When needs are restarted certain protocol service subsystem, the order of restarting is sent to this system, call resource management module by protocol service subsystem to discharge resource, nullify at network management interface layer, and then stop the service of this protocol service subsystem, finally restart this protocol service subsystem, complete the independent warm start of protocol service subsystem thus.
Should be understood that, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.

Claims (10)

1. based on the independent hot restart method of subsystem of northbound interface, it is characterized in that, the method comprises the following steps, and each protocol service subsystem loads network management interface and registration message notice respectively, different protocol service subsystem isolated operations; The network management interface that each protocol service subsystem is provided by network management interface layer and webmaster carry out data communication; Start the start-up parameter that module calls each protocol service subsystem, individual protocol service subsystem is restarted.
2. the independent hot restart method of the subsystem based on northbound interface according to claim 1, it is characterized in that, described each protocol service subsystem loads network management interface and registration message notice, comprise: protocol service subsystem reads the information in configuration file, obtain IP and the port numbers of webmaster, be connected with webmaster; Obtain the access interface of webmaster, connect webmaster message sink passage, the inquiry of data is carried out to webmaster and issues operation.
3. the independent hot restart method of the subsystem based on northbound interface according to claim 2, is characterized in that, the access interface of described acquisition webmaster, comprising: the inquiry of the management of acquisition network management configuration, performance management, alarm management and configuration interface.
4. the independent hot restart of the subsystem based on the northbound interface method according to claim 1 or 2 or 3, it is characterized in that, start the start-up parameter that module calls each protocol service subsystem, protocol service subsystem is restarted, comprise: the data transaction that network management interface is loaded into self by each protocol service subsystem respectively realizes in module, loads the used resource of this northbound interface protocol service subsystem simultaneously; Upper strata webmaster sends the order of restarting protocol service subsystem, protocol service subsystem checks whether performing of task when receiving reset command, if had, start timing, and specify this task at the appointed time in complete, complete at the appointed time if do not have, then force to terminate this task; Destroy the resource needing the protocol service subsystem of restarting, close this protocol service subsystem; Restart this protocol service subsystem, and reload the resource of this protocol service subsystem.
5. the independent hot restart method of the subsystem based on northbound interface according to claim 4, it is characterized in that, described pressure terminates this task, comprising: the message that protocol service subsystem does not complete to upper strata webmaster transmission task, or sends overtime abnormal prompt directly to upper strata webmaster.
6. the independent hot restart method of the subsystem based on northbound interface according to claim 4, is characterized in that, destroys the resource needing the protocol service subsystem of restarting, and comprises release connection, closes stream.
7. based on the independent hot restart device of subsystem of northbound interface, it is characterized in that, this device comprises protocol service subsystem module, starts module, network management interface layer; The different protocol service subsystem that protocol service subsystem module is provided by different agreement forms, and protocol service subsystem loads network management interface and registration message notice, isolated operation; Network management interface layer is used for providing interface for each protocol service subsystem and webmaster carry out data communication; Starting module for calling the start-up parameter needing the protocol service subsystem started, each protocol service subsystem being started and restarts.
8. the independent hot restart device of the subsystem based on northbound interface according to claim 7, is characterized in that, described protocol service subsystem comprises Communication processing module, resource management module, data model translation module, Service Processing Module;
Communication processing module, connects for protocol service subsystem and upper strata webmaster, Connection Release and data communication;
Resource management module, for managing the resource of protocol service subsystem;
Data type conversion module, for the data that the upper strata webmaster received by protocol service subsystem is sent, be converted to the type of data structure of this webmaster, and the message data that the data returned by this webmaster or this webmaster initiatively send, be converted to the type of data structure with upper strata webmaster communication;
Service Processing Module, for the treatment of miscellaneous service logic in protocol service subsystem, and calls network management interface according to service logic from network management interface layer, sends to data type conversion module to process the data returned.
9. the independent hot restart device of the subsystem based on northbound interface according to claim 8, is characterized in that, the resource of described resource management module to protocol service subsystem manages, and comprises the loading of resource, distribution and destruction.
10. the independent hot restart device of the subsystem based on northbound interface according to claim 8, is characterized in that, the resource of described protocol service subsystem comprises thread pool, profile information.
CN201410637290.0A 2014-11-12 2014-11-12 A kind of independent hot restart method and apparatus of subsystem based on northbound interface Expired - Fee Related CN104468195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410637290.0A CN104468195B (en) 2014-11-12 2014-11-12 A kind of independent hot restart method and apparatus of subsystem based on northbound interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410637290.0A CN104468195B (en) 2014-11-12 2014-11-12 A kind of independent hot restart method and apparatus of subsystem based on northbound interface

Publications (2)

Publication Number Publication Date
CN104468195A true CN104468195A (en) 2015-03-25
CN104468195B CN104468195B (en) 2018-08-07

Family

ID=52913606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410637290.0A Expired - Fee Related CN104468195B (en) 2014-11-12 2014-11-12 A kind of independent hot restart method and apparatus of subsystem based on northbound interface

Country Status (1)

Country Link
CN (1) CN104468195B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399774A (en) * 2008-10-24 2009-04-01 华为技术有限公司 Processing method and system for packet data
US20140010110A1 (en) * 2012-07-06 2014-01-09 Hangzhou H3C Technologies Co., Ltd. Preventing loss of virtual machine network profiles

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399774A (en) * 2008-10-24 2009-04-01 华为技术有限公司 Processing method and system for packet data
US20140010110A1 (en) * 2012-07-06 2014-01-09 Hangzhou H3C Technologies Co., Ltd. Preventing loss of virtual machine network profiles

Also Published As

Publication number Publication date
CN104468195B (en) 2018-08-07

Similar Documents

Publication Publication Date Title
WO2018113514A1 (en) Cdn management system, method and apparatus
CN110113185A (en) Method, system, storage medium and the device of a kind of rapid deployment alliance chain
CN101616031B (en) Method for setting single-plate parameters of advanced telecommunication computing structure
CN105677380B (en) Method and device for board-by-board upgrading of double master control isolations
US10810095B2 (en) Assigning network device subnets to perform network activities using network device information
CN105553741A (en) Automatic deployment method for application system based on cloud computing
CN107528891B (en) Websocket-based automatic clustering method and system
WO2017215502A1 (en) Cloud-desktop disaster recovery method, client, server, cloud-desktop disaster recovery system, and storage medium
CN102624919A (en) Distributed service integrated system for service-oriented architecture and application method thereof
WO2010000142A1 (en) Distributed network management system and maintenance management method thereof
WO2010148914A1 (en) Method and apparatus for creating dial-up service
CN104038390A (en) Linux server cluster unified peripheral event monitoring method based on netlink
CN103138985A (en) Method and system of process of service host computer of supporting network
CN113824723A (en) End-to-end system solution applied to audio and video data transmission
CN106126283B (en) A kind of method, apparatus and system of product allocation
CN112073555A (en) Method for configuring IP address, electronic device and computer readable storage medium
TWI498037B (en) Service information managing method and service information managing system
CN115001990A (en) Cross-region openstack cluster management method and system based on declarative API
WO2021077940A1 (en) Virtualization method and apparatus
CN113312059A (en) Service processing system and method and cloud native system
CN101944033A (en) Device and method for dynamically supporting multiple protocols in embedded system
CN106534307B (en) Cloud environment elastic load equalization methods based on load balancing dynamic configuration plug-in unit
CN113032139A (en) Request processing method and device, computer readable storage medium and electronic equipment
CN112948008A (en) Ironic based physical bare computer management method
CN102819455B (en) A kind of method process being managed in application layer and management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 430074 Guandong Technology Industrial Park, East Lake New Technology Development Zone, Wuhan, Hubei

Applicant after: Wuhan leading technology Co., Ltd.

Address before: 430074 Wuhan City, Wuhan, Hubei, Wuchang, Guan Shan Road

Applicant before: Wuhan NEC Fiber Optic Communications Industry Co., Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180807

Termination date: 20191112