CN101420330A - Collecting method and device for performance data of mail proxy gateway - Google Patents

Collecting method and device for performance data of mail proxy gateway Download PDF

Info

Publication number
CN101420330A
CN101420330A CNA2008102394784A CN200810239478A CN101420330A CN 101420330 A CN101420330 A CN 101420330A CN A2008102394784 A CNA2008102394784 A CN A2008102394784A CN 200810239478 A CN200810239478 A CN 200810239478A CN 101420330 A CN101420330 A CN 101420330A
Authority
CN
China
Prior art keywords
cef
performance data
webmaster
snmp
acquisition tasks
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
CNA2008102394784A
Other languages
Chinese (zh)
Other versions
CN101420330B (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.)
LITONGWUXIAN SCIENCE AND TECHNOLOGY Co Ltd BEIJING
Original Assignee
LITONGWUXIAN SCIENCE AND TECHNOLOGY Co Ltd BEIJING
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 LITONGWUXIAN SCIENCE AND TECHNOLOGY Co Ltd BEIJING filed Critical LITONGWUXIAN SCIENCE AND TECHNOLOGY Co Ltd BEIJING
Priority to CN2008102394784A priority Critical patent/CN101420330B/en
Publication of CN101420330A publication Critical patent/CN101420330A/en
Application granted granted Critical
Publication of CN101420330B publication Critical patent/CN101420330B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the present invention provides a method of collecting performance data of cooperation Email forwarder (CEF) by a mobile phone mail service network management. The method comprises the steps of rowing up the collection tasks of the collected CEF performance data in task queues; starting a thread which controls the network management to monitor the port through a fixed simple network management protocol (SNMP), and collecting corresponding performance data of each collection task in the task queues in sequence. The embodiment of the present invention also provides a device of collecting performance data of cooperation Email forwarder (CEF). The device comprises a task queue generation unit for rowing up the collection tasks of the collected CEF performance data in task queues; a collection unit for monitoring the port through a fixed simple network management protocol (SNMP) according to the control of a pre-started thread and collecting corresponding performance data of each collection task in the task queues in sequence. According to the embodiment of the present invention, cost of SNMP port monitoring and needed thread can be reduced.

Description

The acquisition method of performance data of mail proxy gateway and device
Technical field
The present invention relates to moving communicating field, particularly relate to acquisition method and the relevant apparatus of a kind of mobile phone mailbox service webmaster performance data of mail proxy gateway.
Background technology
At present, the network management system of mobile phone mailbox service (for example PushEmail) is to all mail proxy gateway (CEF, Corporation Email Forwarder) performance data collection is deferred to SNMP (SimpleNetwork Management Protocol, Simple Network Management Protocol) agreement and is carried out.According to the regulation of snmp protocol, webmaster adopts webmaster/SNMP agency's mode to the management of CEF.At each CEF, webmaster generally can send SET and GET and ask the corresponding SNMP agency to this CEF, wherein the SET request is used for webmaster notice CEF: this webmaster is prepared from this CEF reading of data, then, the SNMP agency of CEF correspondence returns the SET response to webmaster, represent that this CEF can provide corresponding data to webmaster, the SNMP agency prepares the required data of webmaster according to the content in the SET request simultaneously, and be packaged into PDU (Protocol Data Unit, the protocol Data Unit) data of snmp protocol regulation.Then, webmaster sends the GET request to the SNMP of CEF agency, and after the SNMP agency of this CEF received this GET request, the PDU data that above-mentioned encapsulation is finished sent to webmaster (also can be called to webmaster and return the GET response), finish the data acquisition task of this CEF.
Because SET request and GET response are asynchronous modes, the collection of described SNMP performance data at each CEF, webmaster all can be set up a SNMP listening port separately, be used for the corresponding and GET response of SET of the SNMP agency transmission of asynchronous monitoring CEF, and for each CEF, the capital generates the PDU data separately, and send to webmaster respectively, by the time the SNMP of this CEF agency has returned the GET response to webmaster, after promptly sending the PDU data that webmaster goes for, will distribute to the SNMP listening port of this CEF and nullify.
This shows, in the above-mentioned prior art, all to set up independently SNMP listening port respectively to each CEF, after finishing, the data acquisition task of this CEF just this listening port is nullified, and the monitoring of each SNMP port all needs newly to start a thread, set up and nullify just very frequent like this for thread, and all will carry out independently the SNMP listening port respectively for the monitoring of each CEF and set up and nullify, cause the waste of resource.In addition, CEF for same version, the SNMP of CEF agency is the same to the data structure of the PDU data that webmaster sends, and can't be multiplexing for the shared resource of PDU data of the different CEF of same version, has also caused the frequent expense and the waste of storehouse resource.
Summary of the invention
In view of this, the purpose of the embodiment of the invention is to provide a kind of method and apparatus of gathering mail proxy gateway CEF performance data, so that reduce the expense of SNMP listening port and required thread.
For achieving the above object, the embodiment of the invention provides a kind of mobile phone mailbox service webmaster to gather the method for performance data of mail proxy gateway, and this method comprises:
The acquisition tasks of gathering the CEF performance data is lined up task queue;
Start a thread, described thread control webmaster is by a fixing Simple Network Management Protocol SNMP listening port, and the CEF of the acquisition tasks of each from task queue correspondence gathers corresponding performance data successively.
Like this, only need utilize a thread and a fixed port just can make webmaster collect the performance data of the CEF of all acquisition tasks correspondences, both saved the quantity of required thread, the quantity of simultaneously also less required SNMP listening port has been saved resource.
In the technique scheme, thread control webmaster is gathered corresponding performance data from the CEF of each acquisition tasks correspondence and is comprised:
Described thread control webmaster sends the GET request that is used to ask collecting performance data by described fixing SNMP listening port to the CEF of acquisition tasks correspondence;
Described webmaster receives the protocol Data Unit PDU data that comprise this CEF performance data that CEF sends by described fixing SNMP listening port.
In the technique scheme, described thread control webmaster is gathered corresponding performance data from the CEF of each acquisition tasks correspondence and can also be comprised: at described webmaster before the CEF of acquisition tasks correspondence sends the GET request, described webmaster is asked to the SET that this CEF sends expression preparation for acquiring performance data by described fixing SNMP listening port, and described webmaster receives the SET response that the expression of returning to webmaster allows the webmaster collecting performance data by described fixing SNMP listening port from CEF.
CEF is further sent before the GET request of collecting performance data at webmaster, prepare the performance data that the webmaster desire is gathered in advance, improve the success rate of image data.
In the technique scheme, among the CEF of the acquisition tasks correspondence in task queue, the CEF that version is identical can utilize the resource with a PDU of transmission data, and the PDU data that will comprise CEF performance data separately respectively send to webmaster.Like this, can save the needed PDU resource overhead of different CEF transmission performance datas of identical version.
In the technique scheme, described method also comprises: the acquisition tasks for the webmaster failure, then this acquisition tasks is re-applied in the described task queue, and wait until retry.
In the technique scheme, described method also comprises: whether the time of implementation of judging described process surpasses predetermined acquisition time, if then stop described process.Can satisfy like this in the practical application collecting the requirement of time.
The embodiment of the invention also provides a kind of device of gathering mail proxy gateway CEF performance data, and this device comprises:
The task queue generation unit is used for the acquisition tasks of gathering the CEF performance data is lined up task queue;
Collecting unit is used for the control according to a thread that starts in advance, and by a fixing Simple Network Management Protocol SNMP listening port, the CEF of the acquisition tasks of each from task queue correspondence gathers corresponding performance data successively.
Description of drawings
Fig. 1 is that the mobile phone mailbox service webmaster that the embodiment of the invention one provides is gathered the flow chart of the method for CEF performance data;
Fig. 2 is that the embodiment of the invention one center line process control webmaster is gathered the specific implementation flow chart of corresponding performance data from CEF;
Fig. 3 is the embodiment of the invention one center line process control webmaster is gathered corresponding performance data from CEF an another kind of specific implementation flow chart;
Fig. 4 is that the mobile phone mailbox service webmaster that the embodiment of the invention two provides is gathered the flow chart of the method for CEF performance data;
Fig. 5 is the schematic representation of apparatus of the collection mail proxy gateway CEF performance data that provides of the embodiment of the invention three.
Embodiment
The embodiment of the invention provides a kind of mobile phone mailbox service webmaster to gather the method and the device of CEF performance data, can reduce the SNMP listening port of webmaster and the expense that thread is founded.
Describe the embodiment of the invention in detail below in conjunction with accompanying drawing.
Embodiment one
The embodiment of the invention one provides a kind of mobile phone mailbox service webmaster to gather the method for CEF performance data, and as shown in Figure 1, this method comprises:
Step S1: the acquisition tasks that will gather the CEF performance data is lined up task queue;
Wherein, described each acquisition tasks can comprise the information encapsulation of corresponding CEF.
Step S2: start a thread, this thread control webmaster is by setting up a fixing SNMP listening port, and the CEF of the acquisition tasks of each from task queue correspondence gathers corresponding performance data successively.
Wherein, only need to start a thread in the embodiment of the invention and just can finish all acquisition tasks, specifically, because all are gathered the acquisition tasks of CEF performance data and have lined up formation, therefore only need to start a thread, just can from task queue, take out an acquisition tasks successively, and utilize fixing SNMP port, from the CEF collecting performance data of this acquisition tasks correspondence.With reference to Fig. 2, above-mentioned thread control webmaster is by fixing SNMP listening port, and the CEF of the acquisition tasks of each from the task queue correspondence detailed process of gathering corresponding performance data can comprise the steps: successively
Step S201: thread control webmaster sends the GET request by fixing SNMP listening port to the CEF of acquisition tasks correspondence, and this GET request effect in embodiments of the present invention is: webmaster is gathered its performance data to this CEF request.The form of this GET request is deferred to reference format in the snmp protocol.
Step S202: the CEF of this acquisition tasks correspondence will comprise the CEF performance data and be packaged into the PDU data, and send to webmaster after receiving above-mentioned GET request;
Wherein PDU is a data unit in the snmp protocol.
Step S203: webmaster receives above-mentioned PDU data by the SNMP listening port of said fixing.
This shows that webmaster can use same fixing SNMP listening port for the collection of each CEF performance data.
In addition, in the said process, webmaster is after each CEF sends the GET request, corresponding C EF just sends to webmaster with performance data separately, learn that from CEF webmaster request collecting performance data to sending the performance data, does not stay the too many time to CEF, therefore may occur, CEF in time is not ready to performance data and just outwards sends, the failure that causes image data to send.Therefore for the CEF of some version, for example version number is the CEF more than 2.15, before the CEF of acquisition tasks correspondence sends the GET request, can also carry out following steps at webmaster, please in conjunction with Fig. 3:
Step S2001: webmaster at first sends the SET request of preparation for acquiring performance data to the CEF of acquisition tasks correspondence by the SNMP listening port of said fixing, this CEF returns the SET response that expression allows the webmaster collecting performance data to webmaster, and prepares the performance data that webmaster need be gathered in advance;
Wherein, the effect of above-mentioned SET request is to prenotice CEF: webmaster is prepared from this CEF collecting performance data, CEF just can prepare the performance data that the webmaster desire is gathered, and then improve the success rate of data acquisition before webmaster further send the GET request of collecting performance data in advance like this.
Situation for the CEF that comprises a plurality of versions in the task queue, can be before webmaster be gathered the CEF performance data of current acquisition tasks, judge at first whether the version of this CEF supports at first execution in step S2001, if support, execution in step S2001 at first then, promptly at webmaster before the CEF of acquisition tasks correspondence sends the GET request, at first send the SET request to this CEF; If do not support, then directly begin execution in step S201.
Need to prove, the CEF information that encapsulates in each acquisition tasks in the above-mentioned task queue can comprise the SNMP reference address of this CEF, and above-mentioned webmaster carries out information interaction by the fixing SNMP port CEF corresponding with each acquisition tasks and can be undertaken by the SNMP reference address of above-mentioned CEF.
In addition, generally, after the CEF performance data of the intact acquisition tasks of webmaster collection, just will be used for sending the shared resource of PDU data that comprises this CEF performance data discharges, then during the CEF performance data of another acquisition tasks of webmaster in the acquisition tasks formation, still need to apply for again resource, and the resource of utilizing new application encapsulates the performance data of CEF, obtain the PDU data, and send.The resource overhead of the PDU data when reducing the acquisition tasks of webmaster in carrying out task queue, can preferably take following scheme, because the data structure of the PDU that the CEF of identical version is used is identical, so can allow the CEF of identical version when sending the PDU data comprise performance data separately to webmaster, use common resource, concrete realization can for: for the version of all CEF in the task queue on resource separately application set up the PDU of a static state, like this, when sending performance data for the different CEF of identical version, can be respectively give separately data to this static PDU, the different CEF that saved identical version send the resource overhead of the needed PDU of performance datas.
In the such scheme, its acquisition tasks can be reapposed in the task formation by the CEF of webmaster success collecting performance data, wait until retry for failing.For the embodiment of the invention, the webmaster situation that success gathers the performance data of CEF of failing comprises: CEF to webmaster successfully do not send the SET response, CEF successfully sends the PDU data that comprise its performance data to webmaster.
Embodiment two
In actual applications, usually webmaster can undyingly not carry out the collection of CEF performance data, but regularly gather a period of time, therefore the embodiment of the invention two provides a kind of mobile phone mailbox service webmaster to gather the method for CEF performance data, this method is compared with embodiment one, and acquisition time has been carried out further restriction, and Fig. 4 has shown the method flow diagram of the mobile phone mailbox service webmaster collection CEF performance data that the embodiment of the invention two provides, as shown in Figure 3, this method comprises:
Step S1: the acquisition tasks that will gather the CEF performance data is lined up task queue;
Step S2: start a thread, this thread control webmaster is by setting up a fixing SNMP listening port, and the CEF of the acquisition tasks of each from task queue correspondence gathers corresponding performance data successively.
Corresponding steps among the implementation of step S1 in the present embodiment and step S2 and the embodiment 1 is similar.
In execution in step S2, executed in parallel step S3: start-up time monitoring process, whether surpass predetermined acquisition time, if then stop the above-mentioned thread that is used for gathering the CEF performance data if being used for monitoring the above-mentioned thread execution time that is used for gathering the CEF performance data.
Wherein, the time monitoring process among the step S3 be with step S2 in the thread parallel that is used to gather the CEF performance data set up.In actual applications, normally regular execution a period of time of the execution of collecting performance data just stops, the effect of above-mentioned time monitoring process is the control acquisition time, whether i.e. monitoring is used for gathering the thread execution time of CEF performance data above predetermined acquisition time, if, then stop being used for gathering the thread of CEF performance data, stop the collection action of webmaster.
Embodiment three
The embodiment of the invention three provides a kind of device 100 of gathering mail proxy gateway CEF performance data, and as shown in Figure 5, this device comprises:
Task queue generation unit 101 is used for the acquisition tasks of gathering the CEF performance data is lined up task queue;
Collecting unit 102 is used for the control according to a thread that starts in advance, and by a fixing Simple Network Management Protocol SNMP listening port, the CEF of the acquisition tasks of each from task queue correspondence gathers corresponding performance data successively.
Wherein, described collecting unit 102 can send the GET request to the CEF of acquisition tasks correspondence by fixing SNMP listening port, and collecting unit receives the PDU data that comprise performance data that CEF sends by the SNMP listening port of said fixing then.
In addition, described collecting unit 102 can also at first send the SET request of preparation for acquiring performance data to CEF send the GET request to CEF before, received the SET response that expression that CEF returns allows the webmaster collecting performance data then.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (7)

1, a kind of mobile phone mailbox service webmaster is gathered the method for mail proxy gateway CEF performance data, comprising:
The acquisition tasks of gathering the CEF performance data is lined up task queue;
Start a thread, described thread control webmaster is by a fixing Simple Network Management Protocol SNMP listening port, and the CEF of each acquisition tasks correspondence from task queue gathers corresponding performance data.
2, method according to claim 1 is characterized in that, described thread control webmaster is gathered corresponding performance data from the CEF of each acquisition tasks correspondence and comprised:
Described thread control webmaster sends the GET request that is used to ask collecting performance data by described fixing SNMP listening port to the CEF of acquisition tasks correspondence;
Described webmaster receives the protocol Data Unit PDU data that comprise this CEF performance data that CEF sends by described fixing SNMP listening port.
3, method according to claim 2, it is characterized in that, described thread control webmaster is gathered corresponding performance data from the CEF of each acquisition tasks correspondence and also comprised: before the CEF of acquisition tasks correspondence sent the GET request, described webmaster was asked to the SET that this CEF sends expression preparation for acquiring performance data by described fixing SNMP listening port at described webmaster;
Described webmaster receives the SET response that the expression of returning to webmaster allows the webmaster collecting performance data by described fixing SNMP listening port from CEF.
4, according to claim 2 or 3 described methods, it is characterized in that, among the CEF of the acquisition tasks correspondence in task queue, the CEF that version is identical utilizes the resource with a PDU of transmission data, and the PDU data that will comprise CEF performance data separately respectively send to webmaster.
5, method according to claim 1 is characterized in that, described method also comprises: the acquisition tasks for failure then is re-applied to this acquisition tasks in the described task queue.
6, method according to claim 1 is characterized in that, described method also comprises: whether the time of implementation of judging described process surpasses predetermined acquisition time, if then stop described process.
7, a kind of device of gathering mail proxy gateway CEF performance data, this device comprises:
The task queue generation unit is used for the acquisition tasks of gathering the CEF performance data is lined up task queue;
Collecting unit is used for the control according to a thread that starts in advance, and by a fixing Simple Network Management Protocol SNMP listening port, the CEF of the acquisition tasks of each from task queue correspondence gathers corresponding performance data successively.
CN2008102394784A 2008-12-11 2008-12-11 Collecting method and device for performance data of mail proxy gateway Expired - Fee Related CN101420330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102394784A CN101420330B (en) 2008-12-11 2008-12-11 Collecting method and device for performance data of mail proxy gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102394784A CN101420330B (en) 2008-12-11 2008-12-11 Collecting method and device for performance data of mail proxy gateway

Publications (2)

Publication Number Publication Date
CN101420330A true CN101420330A (en) 2009-04-29
CN101420330B CN101420330B (en) 2011-04-27

Family

ID=40630951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102394784A Expired - Fee Related CN101420330B (en) 2008-12-11 2008-12-11 Collecting method and device for performance data of mail proxy gateway

Country Status (1)

Country Link
CN (1) CN101420330B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012031439A1 (en) * 2010-09-10 2012-03-15 中兴通讯股份有限公司 Method and device for collecting performance data of network management system
CN102035664B (en) * 2009-09-27 2014-03-19 中兴通讯股份有限公司 Data parallel acquisition and merging method and system for simple network management protocol equipment
CN105574037A (en) * 2014-10-16 2016-05-11 腾讯科技(深圳)有限公司 Information processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035664B (en) * 2009-09-27 2014-03-19 中兴通讯股份有限公司 Data parallel acquisition and merging method and system for simple network management protocol equipment
WO2012031439A1 (en) * 2010-09-10 2012-03-15 中兴通讯股份有限公司 Method and device for collecting performance data of network management system
CN105574037A (en) * 2014-10-16 2016-05-11 腾讯科技(深圳)有限公司 Information processing method and device
CN105574037B (en) * 2014-10-16 2019-01-29 腾讯科技(深圳)有限公司 A kind of information processing method and device

Also Published As

Publication number Publication date
CN101420330B (en) 2011-04-27

Similar Documents

Publication Publication Date Title
CN101345652B (en) Data acquisition method and data acquisition equipment
US7657260B2 (en) Method of providing data redundancy for home location register
EP2796996A1 (en) Cloud infrastructure based management system and method for performing maintenance and deployment for application system
CN101741912A (en) Method, network apparatus and distributed network system for processing computation task
CN102945169A (en) Native APP fused Web APP development system based on Android
CN102932408A (en) Management method and platform of server cluster
CN102158346A (en) Information acquisition system and method based on cloud computing
CN103856337A (en) Resource occupation rate acquiring method, providing method, system and server thereof
CN111092921A (en) Data acquisition method, device and storage medium
CN105554099A (en) Method and device for balancing load of acquisition servers
CN101420330B (en) Collecting method and device for performance data of mail proxy gateway
CN109818977B (en) Access server communication optimization method, access server and communication system
EP2480013A1 (en) Method and system for realizing application of machine-to-machine/man terminal based on groups
CN102148702B (en) Method for managing network by utilizing network configuration protocol
CN114153559A (en) Cloud platform log acquisition method, device, equipment and readable storage medium
CN101707622A (en) Method for realizing remote data monitoring
CN112261125B (en) Centralized unit cloud deployment method, device and system
CN105607606A (en) Data acquisition device and data acquisition method based on double-mainboard framework
CN106571943A (en) Distributed-type configuration cluster capacity-expanding method and device
CN102820992A (en) Processing method and device of data packets
CN105912371A (en) Method for automatically deploying operation systems on basis of CS mode
CN101888379A (en) Multi-proxy server dynamic linking method of network television and network television system
CN104184602A (en) Incremental data synchronization method, network element management system and network management system
CN103795810A (en) Data distribution system and method and central server of data distribution system
CN111314408B (en) Local edge calculation and Internet of things management method based on communication layer multi-data item caching task

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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: 20110427

Termination date: 20141211

EXPY Termination of patent right or utility model