CN202309741U - System capable of keeping front-end processor be operated in high-speed and stable manner - Google Patents

System capable of keeping front-end processor be operated in high-speed and stable manner Download PDF

Info

Publication number
CN202309741U
CN202309741U CN 201120428753 CN201120428753U CN202309741U CN 202309741 U CN202309741 U CN 202309741U CN 201120428753 CN201120428753 CN 201120428753 CN 201120428753 U CN201120428753 U CN 201120428753U CN 202309741 U CN202309741 U CN 202309741U
Authority
CN
China
Prior art keywords
host process
data processing
monitored
unit
monitoring
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.)
Expired - Fee Related
Application number
CN 201120428753
Other languages
Chinese (zh)
Inventor
曾小明
郑善辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN TECHRISE ELECTRONICS CO Ltd
Original Assignee
SHENZHEN TECHRISE ELECTRONICS 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 SHENZHEN TECHRISE ELECTRONICS CO Ltd filed Critical SHENZHEN TECHRISE ELECTRONICS CO Ltd
Priority to CN 201120428753 priority Critical patent/CN202309741U/en
Application granted granted Critical
Publication of CN202309741U publication Critical patent/CN202309741U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The utility model is suitable for the field of communication of an electric power system, and provides a system capable of keeping a front-end processor be operated in a high-speed and stable manner. The system comprises a port monitoring unit, a data processing unit, a first restart unit and a second restart unit. The port monitoring unit is used for calling a host process to monitor a communication port which is negotiated with a meter rending terminal and is used for a communication protocol. The data processing unit is connected with the port monitoring unit and is used for buffer-storing data processing requests to a memory pool applied in advance when high concurrent data processing requests are monitored, and for calling data processing requests buffer-stored in a thread processing memory pool corresponding to a thread pool. The first restart unit is used for controlling an auxiliary process to monitor the host process and restarting the host process if the host process is monitored to be seemingly-dead or disappear. The second restart unit is used for controlling the host process to monitor the auxiliary process and restarting the auxiliary process if the auxiliary process is monitored to be seemingly-dead or disappear. The memory pool and the thread pool are adopted for processing the processing requests of the meter rending terminal, and the host process and the auxiliary process guide to each other, such that the stability of a front-end processor is improved.

Description

A kind of front end processor keeps the system of high speed stable operation
Technical field
The utility model belongs to the communication of power system field, relates in particular to the system that a kind of front end processor keeps high speed stable operation.
Background technology
At present, in electric power management system, the data handling system of moving on the front end processor is most of for operating in the individual process under the WIMDOWS platform; Only support single agreement with communicating by letter of meter reading terminal; Allow the meter reading terminal limited amount of access, when four or five thousand meter reading terminals of concurrent access, reached the limit that it can insert meter reading terminal; In this scope, phenomenons such as a large amount of frame losings, meter reading terminal are difficult to insert, transmitting-receiving is unbalanced can appear.If this data handling system continuous service regular hour; Seemingly-dead, ossified or procedure termination can appear in process; Cause the phenomenon of communication termination, loss of data; Make the uncontrollable collection in worksite of front end processor terminal gather the user power utilization data, and then cause whole electric power management system paralysis, the poor stability of conduit electric power management system, disaster tolerance ability reduce.
The utility model content
The purpose of the utility model embodiment is to provide a kind of front end processor to keep the system of high speed stable operation, is intended to solve because the problem of prior art poor stability, the reduction of disaster tolerance ability.
The utility model embodiment is achieved in that a kind of front end processor keeps the system of high speed stable operation, and said system comprises:
Be used for calling host process pair and collection and copy the port monitoring unit that COM1 that the communication protocol of consulting at the terminal uses is monitored;
Be connected with said port monitoring unit, be used for when listening to high concurrent data processing request; Said data processing request is cached in the memory pool of application in advance the data processing unit of data in buffer processing request in the said memory pool of thread process of correspondence in the invokes thread pond;
Be used for the monitoring request that receives according to from preset port, the auxilliary process of control is monitored host process, and said monitoring request is copied main website from collection, and said host process is seemingly-dead or when disappearing when monitoring, and restarts first of said host process and restarts the unit; And
Be used to control said host process said auxilliary process is monitored, said auxilliary process is seemingly-dead or when disappearing when monitoring, and restarts second of said auxilliary process and restarts the unit.
Further, said host process and said auxilliary process adopt the mode of shared drive to communicate.
Further, said communication protocol is state's fidonetFido " power load management system transfer of data stipulations ", broadcasting and TV stipulations or IEC62056 stipulations.
Further, to destroy the terminal be concentrator or intelligent electric energy meter to said collection.
Further, said port monitoring unit comprises being used for adopting and accomplishes port mode or EPOLL mode and call host process pair and collection and copy the monitoring subelement that COM1 that the communication protocol of terminal negotiation uses is monitored.
In the utility model embodiment, call host process pair and copy the COM1 that uses in the communication protocol of consulting at the terminal with collection and monitor, when listening to high concurrent data processing request; Said data processing request is cached in the memory pool of application in advance, data in buffer processing request in the said memory pool of thread process of correspondence in the invokes thread pond is according to the monitoring request that receives from preset port; The auxilliary process of control is monitored host process, and said monitoring request is copied main website from collection, and is seemingly-dead or when disappearing when monitoring said host process; Restart said host process; Control said host process said auxilliary process is monitored, said auxilliary process is seemingly-dead or when disappearing when monitoring, and restarts said auxilliary process; Thereby through adopting memory pool, thread pool technical finesse to collect the high concurrent data processing request of destroying the terminal; Improve the data-handling capacity of front end processor, made that the data handling system on the front end processor is more stable, improved the stability and the disaster tolerance ability of front end processor.
Description of drawings
Fig. 1 is the structure chart that the front end processor that provides of the utility model embodiment one keeps the system of high speed stable operation.
Embodiment
For the purpose, technical scheme and the advantage that make the utility model is clearer,, the utility model is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the utility model, and be not used in qualification the utility model.
Be described in detail below in conjunction with the concrete realization of specific embodiment the utility model:
Embodiment one:
The front end processor that Fig. 1 shows the utility model embodiment one to be provided keeps the structure of the system of high speed stable operation, for the ease of explanation, only shows the part relevant with the utility model embodiment, comprising:
Be used for calling host process pair and collection and copy the port monitoring unit 11 that COM1 that the communication protocol of consulting at the terminal uses is monitored.
Because collection is destroyed the terminal maybe be by different manufacturers production, the communication protocol of its support is also different, therefore; For improving front end processor and collecting the communication capacity of destroying the terminal, in the utility model embodiment, the system in the front end processor can support multiple electric power communication protocol; For example; State's fidonetFido " power load management system transfer of data stipulations ", Guangdong Power Grid company electric energy metrical telemetry data transmission communication protocol (broadcasting and TV stipulations) or IEC62056 stipulations in the practical implementation process, are monitored through calling the COM1 that uses in host process pair and the multiple communication protocol; Copy losing of the data of sending at the terminal thereby prevent to collect, improve the compatibility of the communication data of front end processor.
In the practical implementation process, this port monitoring unit 11 comprises being used for adopting to be accomplished port mode or EPOLL mode and calls host process pair and collection and copy the monitoring subelement 111 that COM1 that the communication protocol of terminal negotiation uses is monitored.
In the utility model embodiment because that the collection that front end processor inserts is destroyed the terminal is more, therefore require front end processor can support several thousand connect in addition up to ten thousand connect; In the utility model embodiment,, cause communication to stop for fear of seemingly-dead, the ossified or procedure termination of process occurring; Loss of data, the appearance that finally causes whole electric power management system to paralyse, therefore; Preferably; When front end processor operates in WINDOWS platform following time, adopt and accomplish the port mode and pair copy the COM1 that uses in the communication protocol of terminal negotiation and monitor, when front end processor operates in LINUX platform following time with collection; The COM1 that adopts EPOLL mode pair and collection to copy the terminal negotiation is monitored; When adopting completion port mode or EPOLL mode when COM1 listens to request of data, add request of data to create in advance thread pool, the control thread pool is handled and is received request of data.
Because collection is destroyed the terminal maybe be by different manufacturers production, the communication protocol of support is also different, therefore; For improving front end processor and collecting the communication capacity of destroying the terminal, in the utility model embodiment, the system in the front end processor can support multiple electric power communication protocol; For example; State's fidonetFido " power load management system transfer of data stipulations ", Guangdong Power Grid company electric energy metrical telemetry data transmission communication protocol (broadcasting and TV stipulations) or IEC62056 stipulations in the practical implementation process, are monitored through calling the COM1 that uses in host process pair and the multiple communication protocol; Copy losing of the data of sending at the terminal thereby prevent to collect, improve the compatibility of the communication data of front end processor.
Be connected with said port monitoring unit, be used for when listening to high concurrent data processing request; Said data processing request is cached in the memory pool of application in advance the data processing unit 12 of data in buffer processing request in the said memory pool of thread process of correspondence in the invokes thread pond.
Because frequent application memory block can cause the loss on the efficient, very the person can cause the generation of memory fragmentation, thereby influences the efficient (all programs all possibly be affected) of system.In the utility model embodiment, owing to need handle the data processing request that ten hundreds of collection is destroyed terminal (for example, concentrator or intelligent electric meter) in the electric power management system; Therefore, in order to prevent losing of request msg, improve the concurrent processing ability of system; In the utility model practical implementation process; When listening to high concurrent data processing request, said data processing request is cached in the memory pool of application in advance, thereby can solves high concurrent processing request preferably; Get up the request msg frame buffer, not lost frames and data.Wherein, the high concurrent disposal ability that is meant system to its data flow, the i.e. maximum number of point-to-point connection; When the linking number of handling reached this maximum number, it was concurrent to confirm as height, and this number can be confirmed according to the varying environment that this method is used; In the utility model embodiment; Number can be thought high concurrent greater than 1000, also can be just confirmed as in 10000 o'clock high concurrent, at this not in order to restriction the utility model.
In the utility model embodiment; After adopting memory pool concurrent data processing request carried out buffer memory with height effectively; In can the invokes thread pond in the corresponding said memory pool of thread process data in buffer handle request, thereby improve the treatment effeciency of data processing request.
Be used for the monitoring request that receives according to from preset port, the auxilliary process of control is monitored host process, and said monitoring request is copied main website from collection, and said host process is seemingly-dead or when disappearing when monitoring, and restarts first of said host process and restarts unit 13.
Front end processor is mainly used in the control command of data acquisition, the parsing of transfer of data stipulations, data processing and reception and processing electric power management system etc.; For example; Each collection is copied the data that the terminal sends over resolve, gather, basis is packed with the communication protocol of main website and is sent to main website after the preliminary treatment.
In the utility model embodiment; Create in advance and start a host process; Host process starts a subprocess after starting automatically, promptly auxilliary process; Host process is used to handle collection and copies data processing affairs such as the access at terminal, data parsing, data forwarding; Auxilliary process is used to handle from main website or has the control request that the remote control terminal of corresponding authority sends over, and for example, carries out that front end processor central processing unit (CPU) is kept watch on, internal memory uses and keeps watch on, the port operational factor is set, restarts control command such as host process.Particularly, the different port of the front end processor that main website or remote control terminal can be through visiting same IP address come with front end processor in main and auxiliary process communicate, check the state of host process through the process status table of scanning host process.Preferably, auxilliary process is through obtaining the operation information of host process with the mode of host process shared drive, for example, CPU usage, memory usage etc., thus realize the supervision of host process.In the practical implementation process, collection is destroyed the terminal and directly can be intelligent electric meter, preferably can be concentrator, thereby can utilize the hardware in the existing electric power management system preferably.Seemingly-dead to host process when auxilliary process monitoring, for example, process is in the Pending state for a long time, can not get into the Running state, or host process restarts host process when disappearing.
Be used to control said host process said auxilliary process is monitored, said auxilliary process is seemingly-dead or when disappearing when monitoring, and restarts second of said auxilliary process and restarts unit 14.
In the utility model embodiment, when host process was monitored, host process was also monitored auxilliary running state of a process.To monitor auxilliary process seemingly-dead when host process, and for example, process is in the Pending state for a long time, can not get into the Running state, or host process restarts auxilliary process when disappearing.Preferably, host process is through obtaining the operation information of auxilliary process with the mode of auxilliary process shared drive, for example, CPU usage, memory usage etc., thus realize the supervision of auxilliary process.
In the utility model embodiment, collect the high concurrent data processing request of destroying the terminal through adopting memory pool, thread pool technical finesse, improved the data-handling capacity and the stability of front end processor; In addition; Front-end processor system is made up of major-minor two processes, and host process is responsible for handling that collection copies that final link is gone into, data parsing, data forwarding etc., the request of auxilliary process processing remote control (such as CPU keep watch on, internal memory uses and keeps watch on, the port operational factor is set, restarts host process etc.); Simultaneously; The message communicating mechanism mutual monitoring of major-minor process through shared drive, guard, seemingly-dead or process disappears then that the opposing party restarts the other side as a side, forms a stable front end processor; Advance to improve the stability of front end processor, and improved the disaster tolerance ability of front end processor.
In the utility model embodiment, collect the high concurrent data processing request of destroying the terminal through adopting memory pool, thread pool technical finesse, improved the data-handling capacity and the stability of front end processor; With advancing; Front-end processor system is made up of major-minor two processes, the message communicating mechanism mutual monitoring of major-minor process through shared drive, guards, and seemingly-dead or process disappears then that the opposing party restarts the other side as a side; Form a stable front end processor; Copy terminal mass data request in order to handle from collection, front end processor is different according to the platform of operation, adopts different data processing methods; For example EPOLL technology, accomplish port technique etc.; Thereby improved the data concurrent processing ability of host process, prevented that a large amount of frame losings, meter reading terminal are difficult to insert, receive and dispatch the appearance of phenomenon such as unbalanced, have further improved the stability and the disaster tolerance ability of front end processor.
The above is merely the preferred embodiment of the utility model; Not in order to restriction the utility model; Any modification of being done within all spirit and principles at the utility model, be equal to replacement and improvement etc., all should be included within the protection range of the utility model.

Claims (5)

1. a front end processor keeps the system of high speed stable operation, it is characterized in that said system comprises:
Be used for calling host process pair and collection and copy the port monitoring unit that COM1 that the communication protocol of consulting at the terminal uses is monitored;
Be connected with said port monitoring unit, be used for when listening to high concurrent data processing request; Said data processing request is cached in the memory pool of application in advance the data processing unit of data in buffer processing request in the said memory pool of thread process of correspondence in the invokes thread pond;
Be used for the monitoring request that receives according to from preset port, the auxilliary process of control is monitored host process, and said monitoring request is copied main website from collection, and said host process is seemingly-dead or when disappearing when monitoring, and restarts first of said host process and restarts the unit; And
Be used to control said host process said auxilliary process is monitored, said auxilliary process is seemingly-dead or when disappearing when monitoring, and restarts second of said auxilliary process and restarts the unit.
2. the system of claim 1 is characterized in that, said host process and said auxilliary process adopt the mode of shared drive to communicate.
3. the system of claim 1 is characterized in that, said communication protocol is state's fidonetFido " power load management system transfer of data stipulations ", broadcasting and TV stipulations or IEC62056 stipulations.
4. the system of claim 1 is characterized in that, it is concentrator or intelligent electric energy meter that said collection is destroyed the terminal.
5. the system of claim 1 is characterized in that, said port monitoring unit comprises:
Be used for adopting and accomplish port mode or EPOLL mode and call host process pair and collection and copy the monitoring subelement that COM1 that the communication protocol of terminal negotiation uses is monitored.
CN 201120428753 2011-11-01 2011-11-01 System capable of keeping front-end processor be operated in high-speed and stable manner Expired - Fee Related CN202309741U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201120428753 CN202309741U (en) 2011-11-01 2011-11-01 System capable of keeping front-end processor be operated in high-speed and stable manner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201120428753 CN202309741U (en) 2011-11-01 2011-11-01 System capable of keeping front-end processor be operated in high-speed and stable manner

Publications (1)

Publication Number Publication Date
CN202309741U true CN202309741U (en) 2012-07-04

Family

ID=46378550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201120428753 Expired - Fee Related CN202309741U (en) 2011-11-01 2011-11-01 System capable of keeping front-end processor be operated in high-speed and stable manner

Country Status (1)

Country Link
CN (1) CN202309741U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915252A (en) * 2015-06-15 2015-09-16 上海斐讯数据通信技术有限公司 Process port management device and method
CN105549962A (en) * 2015-12-08 2016-05-04 浪潮电子信息产业股份有限公司 Scheme for startup and operation of LINUX system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915252A (en) * 2015-06-15 2015-09-16 上海斐讯数据通信技术有限公司 Process port management device and method
CN104915252B (en) * 2015-06-15 2018-04-06 上海斐讯数据通信技术有限公司 A kind of process port management means and method
CN105549962A (en) * 2015-12-08 2016-05-04 浪潮电子信息产业股份有限公司 Scheme for startup and operation of LINUX system
CN105549962B (en) * 2015-12-08 2019-08-02 浪潮电子信息产业股份有限公司 A method of start applied to LINUX system and runs

Similar Documents

Publication Publication Date Title
CN102387040A (en) Method and system for keeping high-speed stable running of front-end processor
CN104243481B (en) A kind of method and system of power information acquisition advance data processing
CN105721295B (en) A kind of gateway that cloud server is communicated with PLC PPI
CN202421859U (en) Safe real-time remote smart multimedia home system
CN103326951B (en) bandwidth control method and device for electric power communication network
CN108053630A (en) A kind of cross-safety zone wireless data access system and method
CN103313303A (en) Wireless access point, wireless work station and work method of wireless access point and wireless work station
CN109547162B (en) Data communication method based on two sets of one-way boundaries
CN102546612A (en) Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode
CN202309741U (en) System capable of keeping front-end processor be operated in high-speed and stable manner
CN105049162A (en) Public network information high-efficiency transmission method based on Epoll model
CN205283611U (en) End and server end news information will be moved and synchronous device will be carried out
CN106935007B (en) Method for managing uplink connection of mobile network meter
CN102360473A (en) Data sharing method for land-saving power dispatching automation systems
CN103442028A (en) Mobile application data pushing method based on XMPP
CN204925773U (en) Cluster communication monitored control system of switch board
CN102752374A (en) System and method for storing and accessing power utilization efficacy data
CN102480375A (en) Method for processing log information
CN105049477A (en) Method and device for maintaining long connection
CN204652428U (en) A kind of distributed data base management system (DDBMS)
CN107171440B (en) System for collecting electrical data of switch cabinet by intelligent transformer terminal and collecting method thereof
CN103683496B (en) A kind of power equipment protocol variation of plug and play and device
CN202906948U (en) Communication apparatus based on modbus_RTU bus
CN101800955A (en) Method and device for receiving cell broadcast service information in discontinuous reception manner
CN101860556A (en) Heartbeat technology for keeping safe and stable online

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20151101

EXPY Termination of patent right or utility model