CN101217415A - A method of polling devices in the repeater - Google Patents

A method of polling devices in the repeater Download PDF

Info

Publication number
CN101217415A
CN101217415A CNA2008100650911A CN200810065091A CN101217415A CN 101217415 A CN101217415 A CN 101217415A CN A2008100650911 A CNA2008100650911 A CN A2008100650911A CN 200810065091 A CN200810065091 A CN 200810065091A CN 101217415 A CN101217415 A CN 101217415A
Authority
CN
China
Prior art keywords
polling
packet
poll
data
equipment
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
CNA2008100650911A
Other languages
Chinese (zh)
Other versions
CN101217415B (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.)
Shenzhen Guoren Wireless Communication Co Ltd
Original Assignee
Shenzhen Guoren Communication 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 Guoren Communication Co Ltd filed Critical Shenzhen Guoren Communication Co Ltd
Priority to CN2008100650911A priority Critical patent/CN101217415B/en
Publication of CN101217415A publication Critical patent/CN101217415A/en
Application granted granted Critical
Publication of CN101217415B publication Critical patent/CN101217415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for polling repeater equipment, comprising the following steps: A. a network management system obtains a polling equipment set and obtains data packages of the equipment polling sequentially; B. the data package of the equipment set to be polled is stored into an alignment and arranged according to the present communicating way; C. the thread program is started to send the data package of the alignment, and a main thread program analyzes the received data package and renews data into data base and records the renewing time; D. the unreturned equipment set is obtained from the data base and the data package with the unreturned equipment set is sent. The polling method of the invention efficiently reduces the polling data amount, lightening the pressure of the network management system and the data base in polling, reduces polling period and improves polling efficiency.

Description

The method of poll repeater equipment
[technical field]
The present invention relates to network management system polling technique field, relate in particular to the method for poll repeater equipment.
[background technology]
The repeater is an indispensable part in mobile communication system.The application of repeater not only can enlarge the network coverage, makes the covering of dominant base obtain extending, and can also increase the traffic load of idle base station, and the telephone traffic of sharing busy base station plays the effect of optimizing network.Along with the type of repeater equipment and quantity in continuous growth, the capacity of network management system management equipment constantly increases, the live load of webmaster is also more and more heavier; On the other hand, mobile operator wishes in time to know repeater failure condition, fault location reason, so that carry out telemanagement in real time, effectively, and reduces maintenance cost, optimizes and safeguard flow process.
(application number: 200710052331.X) a kind of network management and monitoring system is realized the method for multi-task polling to Chinese patent " a kind of network management and monitoring system is realized the method for multi-task polling ", mainly comprise step: (1) user sets up separately polling tasks at monitor terminal, and is delivered to monitoring server by communication link; (2) monitoring server comprises poll Management Unit and protocol processes assembly, monitoring server is unified abstract in issuing query statement for each polling device, query statement is converted to the monitor terminal that the vlan query protocol VLAN frame that meets corresponding polling device type is handed down to polling device after the protocol processes assembly is handled; (3) issue the protocol frame of the communication server on the monitor terminal for polling device, the communication server is transmitted to the protocol processes assembly with protocol frame, after the protocol processes assembly is resolved protocol frame, Query Result is sent to the poll Management Unit with unified format, after the poll Management Unit receives the poll result with unified format, the result is saved in database server with poll, and the poll result is returned clients poll interface display poll result.
The weak point of said method is:
1, in the said method, all retransmits detection, recheck again after waiting intact one time of all device pollings, check whether all device pollings all return,, then carry out poll one time at all devices that does not return if do not have at each equipment.Wherein detect at the repeating transmission of each equipment, because each time of waiting for can not be very long, the data packet number that can return is few, causes a lot of polls instructions to need to retransmit, and causes during the poll burden of network management system and database very heavy.
2, when having judged whether return information, said method utilizes a polling dispatching formation, query statement and a large amount of field data that all polling tasks of this queue record send, by scheduling queue transmitting time, transmission number of times, repeating transmission condition etc. are compared, mate according to sending out a principle of receiving earlier earlier.If when having a plurality of terminals that equipment is carried out poll like this, needing the calculated data bag is the response of equipment at that webmaster terminal polling, works as multi-task parallel like this, and has under the situation of repeating transmission, the burden of communication server and data server will be very heavy, and operational efficiency is low.
3, said method does not adjust at the order of different communication modes polling data bags, makes that the poll spended time is long.Current repeater equipment receives packet by the modem communication, for the identical principal and subordinate repeater of telephone number, and a shared modem.Under the communication modes of note, because the limited quantity of the speed of modem response note, phonecard storage note and the factors such as processing mode of repeater equipment hardware monitoring program, the speed that causes present repeater equipment to handle the note data bag rests on the per second level.Because the master-slave equipment of same phone number, and the situation of main equipment band several slave units does not occupy the minority, therefore, if the polling data bag is not adjusted in proper order, generally can only adopting is separated by sent the method for next packet in several seconds again, had largely prolonged the total time of poll.On the other hand, short message mode can't utilize the advantage of SGIP Short Message Service Gateway to send note (ability of the note of Short Message Service Gateway processing at present reaches 5 of each seconds) down, if by this speed sending data bag, device processes does not come to cause the congested or note of note to lose.Under the communication modes of GPRS, speed only is subjected to network bandwidth limitations because webmaster is given out a contract for a project, packet sends to equipment with very fast speed, if the identical packet of telephone number sends together, modem response energy force-summing device bottom supervisory control system disposal ability also can be tested.Under the communication modes of dialing, because dialling and hang up, modem needs certain hour, if the polling data bag is not adjusted in proper order, even the packet modem identical to telephone number also can only dial respectively and hang up, set up the communication connection like this and taken the plenty of time, make the poll cost longer time.
In sum, said method exists that system burden is overweight, poll efficient is lower and shortcoming such as the time is long.
[summary of the invention]
The method that the purpose of this invention is to provide a kind of poll repeater equipment is to reach the purpose of mitigation system burden, raising operational efficiency.
To achieve the above object of the invention, the present invention proposes following technical scheme:
A kind of method of poll repeater equipment, this method may further comprise the steps:
A, network management system are obtained the polling device set, obtain the device polling packet successively;
B, the packet of cluster tool that will poll store in the formation, arrange according to current communication modes;
C, startup thread send the packet in the described formation, and main thread is resolved the packet that receives, and Data Update is arrived database, and writes down update time;
D, obtain the cluster tool of not returning, send the packet of the described cluster tool of not returning from database.
Wherein, network management system is that polling order is packed according to the parameter that preestablishes the needs inquiry or the querying command of appointment in the described steps A.
Wherein, described steps A further may further comprise the steps:
A1, judge the polling data bag that whether stores corresponding device in the memory variable;
If A2 does not have, the polling order packing according to poll parameter or appointment increases this polling data bag in the memory variable;
If A3 has, then continue to judge whether this polling data bag is effective, if packet is effective, packet is joined in the formation of polling data bag; If packet cancels,, repair the polling data bag in original memory variable by the poll parameter of customization or the polling order packing of appointment.
Preferably, alignment processes specifically comprises described in the step B:
If communication modes is note or GPRS mode, make that then the packet of same phone number is spaced apart, the middle packet of arranging other telephone numbers;
If communication modes is a dial mode, then make the packet of same phone number continue to arrange.
Wherein, described step D further comprises:
Whether the polling request object of D1, network management system is according to update time of device polling parameter in time started of polling request and concluding time and the database and gather quantity and come the judgment device poll to return fully;
D2, if not, then continue to add poll retransmitter collection, repeat one again and take turns device polling, retransmit up to poll that number of times arrives or polling procedure is terminated.
As can be seen from the above technical solutions, adopting customization poll parameter or specifying certain bar data query bag is the method for polling order, need not all parameters of each polling device.And under the situation that the equipment query packet does not change, packet is stored in the internal memory,, need not to repack so that directly use during poll once more.In addition, put into a formation after the packet of polling device to pack all, formation arranged according to communication modes, make need not when sending the same phone number packet in the middle of the stand-by period.This polling method has flexibly effectively reduced the data volume of poll, and the pressure when having alleviated network management system and database poll has reduced the cycle of poll, and has improved the efficient of polling operation.
[description of drawings]
Fig. 1 is the flow chart of the inventive method;
Fig. 2 is for obtaining the flow chart of polling data packet procedures in the inventive method;
Fig. 3 is the flow chart of poll retransmission process in the inventive method.
[embodiment]
Below in conjunction with specific embodiment technical solution of the present invention is described in detail.
Basic fundamental of the present invention design is, the data query bag when reducing poll when obtaining polling data only sends the packet of the key parameter that can reflect repeater equipment during transmission; The device polling packet all is kept in the memory variable, and poll during packet does not change need not to repack; With needing the disposable packing of packet of the equipment of poll to finish, put into data packet queue, data packet queue is reset the hairdo that has sent at interval several seconds for the identical packet of telephone number when having avoided sending packet according to communication modes.Thereby effectively reduced the data volume of poll, reduced the cycle of poll, and improved the efficient of polling operation.
The invention provides a kind of method of poll repeater equipment, as shown in Figure 1, this method mainly may further comprise the steps:
Step S101, network management system are obtained the polling device set, obtain the device polling packet successively: obtaining the device polling packet is exactly the process of network management system with the polling order packing, after the packing it is stored in the internal memory.It is that polling order is packed that webmaster has been got well certain querying command according to the parameter of the needs inquiry that customization is good in advance or appointment, and packet is stored in the internal memory, during to next poll, if packet was directly taken when need not to change.
Memory variable is actually a list object, and each object record device id, mark and the packet tabulation of whether cancelling, packet tabulation comprise the tabulation of all packets that an equipment comprises, and an equipment has a plurality of polling data bags.
The memory variable of storage packet is to need to safeguard.When user's modification some properties affect of equipment during to the change of polling data bag, for example: repeater numbering, device numbering, device type, parameter enable attribute, the customization of poll parameter, need corresponding device whether the calcellation mark is changed to is.Generally speaking, these device attributes are not frequent variations.
Data query bag when the present invention reduces poll when obtaining polling data only sends the packet of the key parameter that can reflect repeater equipment during transmission; The device polling packet all is kept in the memory variable, and poll during packet does not change need not to repack.
Step S102, the packet of cluster tool that will poll store in the formation, arrange according to current communication modes: store in the formation after the disposable packing of packet of equipment collection that will poll finishes, arrange queue sequence according to current communication modes, if dial mode, the packet that telephone number is identical is arranged together; If note or GRPS mode send, to arrange according to telephone number, repeater numbering and device numbering information, the packet of the master-slave equipment that telephone number is identical is on purpose separated arrangement.
The present invention will need the disposable packing of packet of the equipment of poll to finish, and put into data packet queue, according to communication modes data packet queue is reset, the hairdo that has sent at interval several seconds for the identical packet of telephone number when having avoided sending packet.
Step S103, startup thread send the packet in the described formation, main thread is resolved the packet that receives, Data Update is arrived database, and record update time: enable and send thread and send packet in the formation of polling data bag specially, the centre need not send at interval, can utilize the communication resource as far as possible.Resolve the packet that receives in this while main thread, and new parameter value and update time are updated in the database.
Step S104, obtain the cluster tool of not returning, send the packet of the described cluster tool of not returning from database.
Just check once when in the present invention, finishing one time at whole polling device collection poll.The benefit of doing like this is, need not painstakingly all to spend when poll finishes each equipment a period of time wait packet returns, but the equipment below the direct poll behind the intact equipment of poll once just can be resolved the packet that returns in this time at whole polling device collection poll.Concentrate the equipment of last poll for equipment, add a pending data such as time delay and return, reexamine this moment the data of all devices at last and return situation, obtain the data set that does not return, the equipment collection that does not return is retransmitted according to the repeating transmission number of times of setting.The inventive method is given and the more sufficient response time of equipment, and the packet that returns is more, and need not the unnecessary stand-by period of network management system cost, and polling cycle shortens, and the poll return rate improves, the pressure when having alleviated network management system and database poll.
For step S101, according to dissimilar communications protocol, can get well certain querying command according to the parameter of pre-set needs inquiry or appointment is that polling order is packed:
If the packet of communications protocol can the independent assortment parameter, the parameter that need inquire about when then the user can customize poll;
If communications protocol is several the querying commands of fixing, then according to the querying command type, which bar querying command is system specified in advance is polling order.
For step S101, described packing process specifically comprises: according to device id, in memory variable, search corresponding objects, if data exist and are effective, directly this packet is added formation, otherwise, in memory variable, upgrade this polling data bag according to the polling order packing of poll parameter or appointment.
At length, as shown in Figure 2, step S101 may further comprise the steps:
Step S201, judge the polling data bag that whether stores corresponding device in the memory variable.
If step S202 does not have, the polling order packing according to poll parameter or appointment increases this polling data bag in the memory variable.
If step S203 has, then continue to judge whether this polling data bag is effective.
When system user carries out device attribute, for example repeater numbering, device numbering or device type are when resetting, when the polling order that has influence on equipment need change, to the affected abandoned tender note of the corresponding polling order of internal memory variable list.
If step S204 packet is effective, packet is joined in the formation of polling data bag.
If step S205 packet cancels,, repair the polling data bag in original memory variable by the poll parameter of customization or the polling order packing of appointment.
For step S102, according to the different communication modes of current network management system, the packet in the formation is rearranged mode can following two kinds:
Note or GPRS mode make that the packet of same phone number is spaced apart, the middle packet of arranging other telephone numbers;
Dial mode, the packet of same phone number continue to arrange.
For step S104, as shown in Figure 3, this step further may further comprise the steps:
Step S301, if retransmission mechanism arranged, by the polling request object of network management system according to update time of device polling parameter in time started of poll instruction and concluding time and the database with gather quantity and come the judgment device poll whether to return fully.If be to be in certain polling tasks to start and finish in this time period update time, think that then the state of this equipment is to return in this polling tasks.
If step S302 returns fully, then this equipment need not add poll retransmitter collection.
If step S303 does not return fully, then continue to add poll retransmitter collection, obtain the set of poll retransmitter, repeat one again and take turns device polling.
Step S304, repetition above-mentioned steps are terminated up to poll repeating transmission number of times arrival or poll.
Whichever webmaster starting terminal polling tasks, what poll was paid close attention to is the current state of equipment.The equipment return data is updated in the database server after resolving immediately, and the time of record renewal.As long as be to be in certain polling tasks to start and finish in this time period this update time, think that then the state of this equipment is to return in this polling tasks.Further, if the parameter in the packet that returns has alarm parameter, then this equipment state is alarm otherwise is normal.Therefore in the present invention, do not need to calculate the packet that returns is the response of equipment at which webmaster terminal polling loaded down with trivial detailsly, work as multi-task parallel like this, and have under the situation of repeating transmission, if identical equipment collection is arranged, processing method of the present invention can be avoided a large amount of repeating transmission, just can reduce the packet of poll greatly, alleviate the burden of communication server and database server, improve the efficient of poll operation.Through overtesting, utilization the inventive method required time of polling device can shorten to more than 1 hour from original tens hours, raises the efficiency operational efficiency greatly.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (5)

1. the method for a poll repeater equipment is characterized in that, this method may further comprise the steps:
A, network management system are obtained the polling device set, obtain the device polling packet successively;
B, the packet of cluster tool that will poll store in the formation, arrange according to current communication modes;
C, startup thread send the packet in the described formation, and main thread is resolved the packet that receives, and Data Update is arrived database, and writes down update time;
D, obtain the cluster tool of not returning, send the packet of the described cluster tool of not returning from database.
2. the method for poll repeater equipment according to claim 1 is characterized in that, network management system is that polling order is packed according to the parameter that preestablishes the needs inquiry or the querying command of appointment in the described steps A.
3. the method for poll repeater equipment according to claim 1 is characterized in that, described steps A further may further comprise the steps:
A1, judge the polling data bag that whether stores corresponding device in the memory variable;
If A2 does not have, the polling order packing according to poll parameter or appointment increases this polling data bag in the memory variable;
If A3 has, then continue to judge whether this polling data bag is effective, if packet is effective, packet is joined in the formation of polling data bag; If packet cancels,, repair the polling data bag in original memory variable by the poll parameter of customization or the polling order packing of appointment.
4. the method for poll repeater equipment according to claim 1 is characterized in that, alignment processes specifically comprises described in the step B:
If communication modes is note or GPRS mode, make that then the packet of same phone number is spaced apart, the middle packet of arranging other telephone numbers;
If communication modes is a dial mode, then make the packet of same phone number continue to arrange.
5. according to the method for each described poll repeater equipment in the claim 1~4, it is characterized in that described step D further comprises:
Whether the polling request object of D1, network management system is according to update time of device polling parameter in time started of polling request and concluding time and the database and gather quantity and come the judgment device poll to return fully;
D2, if not, then continue to add poll retransmitter collection, repeat one again and take turns device polling, retransmit up to poll that number of times arrives or polling procedure is terminated.
CN2008100650911A 2008-01-18 2008-01-18 A method of polling devices in the repeater Active CN101217415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100650911A CN101217415B (en) 2008-01-18 2008-01-18 A method of polling devices in the repeater

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100650911A CN101217415B (en) 2008-01-18 2008-01-18 A method of polling devices in the repeater

Publications (2)

Publication Number Publication Date
CN101217415A true CN101217415A (en) 2008-07-09
CN101217415B CN101217415B (en) 2010-12-22

Family

ID=39623780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100650911A Active CN101217415B (en) 2008-01-18 2008-01-18 A method of polling devices in the repeater

Country Status (1)

Country Link
CN (1) CN101217415B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207917A (en) * 2011-06-03 2011-10-05 珠海万力达电气股份有限公司 Multi-node serial communication scanning method
CN107888637A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 Pull the method, apparatus and system of message
CN111459981A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Query task processing method, device, server and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1230737C (en) * 2002-09-23 2005-12-07 华为技术有限公司 Device data polling dispatching method
CN100471128C (en) * 2005-12-30 2009-03-18 华为技术有限公司 Method and device for realizing equipment state polling
CN100477602C (en) * 2007-05-31 2009-04-08 武汉虹信通信技术有限责任公司 A method for realizing the multi-task polling in the network management monitoring system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207917A (en) * 2011-06-03 2011-10-05 珠海万力达电气股份有限公司 Multi-node serial communication scanning method
CN102207917B (en) * 2011-06-03 2013-09-11 珠海万力达电气股份有限公司 Multi-node serial communication scanning method
CN107888637A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 Pull the method, apparatus and system of message
CN111459981A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Query task processing method, device, server and system
CN111459981B (en) * 2019-01-18 2023-06-09 阿里巴巴集团控股有限公司 Query task processing method, device, server and system

Also Published As

Publication number Publication date
CN101217415B (en) 2010-12-22

Similar Documents

Publication Publication Date Title
CN102510409B (en) Method and system for quickly and remotely updating program of mobile terminal by using wireless network
CN102394925B (en) Communication method and device for remote monitoring diagnosis center and area regulation center
CN101179790B (en) Serial port communication method between mobile terminal processor
EP2913970B1 (en) Policy control method and device for terminal peripherals
CN100471135C (en) Device, system and method for realizing business distribution and synchronization
CN102456052B (en) Method for data synchronization between embedded device and database
CN101207522B (en) Method and apparatus for implementation of collocation task scheduling
CN101101699A (en) Method and apparatus for data collection and transmission
CN102857956A (en) Master-slave communication method and device
CN101567861B (en) Data synchronization method and application system between heterogeneous application systems
CN103001809A (en) Service node state monitoring method for cloud storage system
KR20210146892A (en) Internet of Things data transmission method and system
CN111371827A (en) Data transmission method, device and computer readable storage medium
CN102946376A (en) Method for implementing asynchronous communication
CN109587023A (en) A kind of LoRa ad hoc network method and system
CN104378451A (en) Network communication route selecting method, device and system
CN101217415B (en) A method of polling devices in the repeater
CN101873235A (en) Detection method of equipment network link, network management system and network system
CN102437921A (en) Memory method and network device of configuration information
US20150296009A1 (en) Method and M2M gateway for managing data of terminal peripheral
CN101729530B (en) Data synchronization method and data synchronization system
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN101888343B (en) Service data transmission method and system
CN113905104B (en) Communication method and protocol conversion system for elevator intelligent networking
CN105592485A (en) Method for collecting and processing messages in real time based on SNMP

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
ASS Succession or assignment of patent right

Owner name: SHENZHEN GUOREN COMMUNICATION CO., LTD.

Free format text: FORMER OWNER: GUOREN COMMUNICATION CO LTD., SHENZHEN

Effective date: 20150805

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150805

Address after: 518000 Guangdong city of Shenzhen province Nanshan District high tech park of science and technology in three Chinese central road building A building room 13F1303

Patentee after: Shenzhen compatriots limited company that communicates by letter

Address before: 518057 building of three people's road, middle science and technology, Nanshan District science and Technology Park, Shenzhen, Guangdong

Patentee before: Guoren Communication Co., Ltd., Shenzhen

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191009

Address after: Room 1403, building a, Guoren building, No. 5, Keji Zhongsan Road, gaoxinyuan Middle District, Maling community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Guoren Wireless Communication Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District high tech park of science and technology in three Chinese central road building A building room 13F1303

Patentee before: Shenzhen compatriots limited company that communicates by letter