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