Summary of the invention
For prior art Problems existing, now provide a kind of NMS and method, it is possible to increase the efficiency of data transmission.
A kind of NMS, is applied to server with the process of multiple network element devices transmission data, and described NMS includes:
Acquisition module, is connected with network element device each described respectively, in order to obtain the temporal information that described server needs respectively with network element device transmission data each described;
Grouping module, is connected with described acquisition module, in order to multiple described network element devices to be grouped according to described temporal information;
Distribution module, is connected with described grouping module, in order to according to often organizing the execution time of network element device correspondence thread described in each group of the time distribution that described network element device transmission data need;
Perform module, be connected with described distribution module, perform described thread according to the described execution time.
Preferably, when described grouping module is grouped, making the time sum often organizing described network element device transmission data needs less than or equal to a preset value, described distribution module makes often to organize described thread corresponding to described network element device and performs the time equal to described preset value.
Preferably, described acquisition module regularly obtains the temporal information that described server needs respectively to network element device transmission data each described.
Preferably, described acquisition module includes:
Predistribution unit, gives each described network element device in order to predistribution initialization thread.
Preferably, described acquisition module also includes:
Record unit, is connected with described predistribution unit, records the temporal information that each described network element device transmission data need when being used to perform described initialization thread.
A kind of network management, including:
Step S1, obtains a server and transmits, with each network element device, the temporal information that data need respectively;
Multiple described network element devices are grouped by step S2 according to described temporal information;
Step S3, according to often organizing the execution time of network element device correspondence thread described in each group of the time distribution that described network element device transmission data need;
Step S4, performs described thread according to the described execution time.
Preferably, also include after described step S4:
Step S5, after a Preset Time, obtains the temporal information that described server needs respectively to network element device transmission data each described.
Preferably, described step S2 specifically includes:
According to described temporal information, multiple described network element devices are grouped, wherein, often organize time sum that described network element device transmission data need less than or equal to a preset value, and to make the execution time often organizing described thread corresponding to described network element device in described step S3 be described preset value.
Preferably, described step S1 specifically includes:
Predistribution initialization thread gives each described network element device.
Preferably, described step S1 specifically includes:
Step S12, records the temporal information that each described network element device transmission data need in time performing described initialization thread.
Technique scheme provides the benefit that:
The time that technique scheme can be transmitted data according to network element device and need is grouped, and the execution time of the thread of every group NEs equipment distribution is corresponding with the time that this group NEs equipment transmission data needs, utilize the time of each thread fully, thread deadlock can not only be avoided, and improve data transmission efficiency.
Detailed description of the invention
It should be noted that when not conflicting, following technical proposals, can be mutually combined between technical characteristic.
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described:
The present embodiment provides a kind of NMS, as it is shown in figure 1, be applied in the process that server 12 transmits data with multiple network element devices 11, as in figure 2 it is shown, NMS includes:
Acquisition module 1, is connected with each network element device 11 respectively, transmits, in order to obtain server 12, the temporal information that data need respectively with each network element device 11;
Grouping module 2, is connected with acquisition module 1, in order to multiple network element devices 11 to be grouped according to temporal information;
Distribution module 3, is connected with grouping module 2, and the time needed in order to transmit data according to every group NEs equipment 11 distributes the execution time of the corresponding thread of each group NEs equipment 11;
Perform module 4, be connected with distribution module 3, in order to perform thread according to the time of execution.
In this enforcement, when network element device 11 is more, by each network element device 11 is grouped according to its data transmission period, and the execution time respectively organizing the thread of correspondence is close or identical with the time of its data transmission, after ensureing that a thread is finished, next thread can be performed smoothly, it is not necessary to the longer waiting time, it is prevented that while thread deadlock, also improve the efficiency of data transmission.
In one preferred embodiment of the present invention, when grouping module 2 is grouped, making every group NEs equipment 11 transmit the time sum of data needs less than or equal to a preset value, distribution module 3 makes the thread of every group NEs equipment 11 correspondence perform the time equal to preset value.
In the present embodiment, as long as every group NEs equipment 11 transmits the time sum of data needs less than this preset value, in the execution time that thus can ensure that a thread, data end of transmission between network element device 11 and server 12 that this thread is corresponding, but when every group NEs equipment 11 transmits the time sum of data needs less than a preset value, can there is the wait that thread performs, so as preferred embodiment, the time sum that every group NEs equipment 11 transmits data and needs is equal to preset value, it is possible to that avoids next thread performs wait.
The time sum that the every group NEs equipment 11 of the present embodiment now transmits data to be needed is illustrated equal to preset value, first thread is distributed, make the thread can a corresponding network element device 11, when transmitting data first, record each network element device 11 and transmit the time that information needs, it is temporal information, for instance, the total time that each network element device 11 transmits information and needs is 120 minutes.
Afterwards, it is grouped according to the time that each network element device 11 needs, can so that the data transmission period sum of the network element device often organized can be equal by being grouped, such as, multiple network element devices 11 can be divided into 20 groups, the data transmission period sum of the network element device 11 so often organized is 6 minutes, namely the execution time of the follow-up thread giving the network element device 11 often organized distribution is equally 6 minutes, within herein 6 minutes, it is above-mentioned preset value, thus can ensure that in 6 minutes, data end of transmission between network element device and server that this thread is corresponding, and next thread is without the more waiting time, improve the utilization rate of data transmission.Being set it should be noted that packet situation in the present embodiment can transmit the factors such as total time that information needs according to each network element device 11, as long as enabling to, the data transmission period sum of network element device 11 often organized is identical both may be used.
In one preferred embodiment of the present invention, acquisition module 1 regularly obtains server 12 and transmits, to each network element device 11, the temporal information that data need respectively.
In one preferred embodiment of the present invention, acquisition module 1 includes:
Predistribution unit, gives each network element device 11 in order to predistribution initialization thread.
In the present embodiment, owing to its data transmission period cannot be known when server 12 carried out data transmission with each network element device 11 first time, so can predistribution one initialization thread when server 12 carried out data transmission with network element device 11 first time, the execution time of this initialization thread is likely to differ more with actual data transmission period, but can thus know the data transmission period of this network element device 11 reality, reference is carried out, so that network element device 11 to be grouped when being easy to subsequent data transmission.
In one preferred embodiment of the present invention, acquisition module 1 also includes:
Record unit, is connected with predistribution unit, records each network element device 11 and transmit the temporal information that data need when being used to perform initialization thread.
In the present embodiment, after performing initialization thread, record unit can get the data transmission period that each network element device 11 needs, for subsequent reference.
The present embodiment is supplied to a kind of network management, as it is shown on figure 3, include:
Step S1, obtains a server and transmits, with each network element device, the temporal information that data need respectively;
Multiple network element devices are grouped by step S2 according to temporal information;
Step S3, the time needed according to every group NEs equipment transmission data distributes the execution time of each group NEs equipment correspondence thread;
Step S4, performs thread according to the time of execution.
In one preferred embodiment of the present invention, also include after step S4:
Step S5, after a Preset Time, obtains server and transmits, to each network element device, the temporal information that data need respectively.
In one preferred embodiment of the present invention, step S2 specifically includes:
According to temporal information, multiple network element devices being grouped, wherein, the time sum that every group NEs equipment transmission data needs is less than or equal to a preset value, and to make execution time of thread that every group NEs equipment is corresponding in step S3 be preset value.
In one preferred embodiment of the present invention, step S1 specifically includes:
Predistribution initialization thread gives each network element device.
In one preferred embodiment of the present invention, step S1 specifically includes:
Step S12, records the temporal information that each network element device transmission data need in time performing initialization thread.
nullNow the situation of the time sum that every group NEs equipment transmission data in above-described embodiment needs is illustrated,Such as,First thread is distributed,Make the thread can corresponding a number of network element device,When transmitting data first,Record the time that each network element device transmission information needs,It is temporal information,Afterwards,It is grouped according to the time that each network element device needs,Can so that the data transmission period sum of the network element device often organized can be equal by being grouped,Give the network element device distribution thread often organized afterwards,The execution time of every thread is the same,In the execution time that thus can ensure that a thread,Data end of transmission between network element device and server that this thread is corresponding,And next thread is without the more waiting time,Improve the utilization rate of data transmission,Hereafter can at set intervals the data transmission period of network element device once be obtained,Re-start packet again,The data transmission period needed due to network element device is likely in dynamic change,So the regular acquisition carrying out temporal information,It is easy to adjust in time packet,Ensure the efficiency of data transmission.
To sum up, the time that technique scheme can be transmitted data according to network element device and need is grouped, and the execution time of the thread of every group NEs equipment distribution is corresponding with the time that this group NEs equipment transmission data needs, utilize the time of each thread fully, thread deadlock can not only be avoided, and improve data transmission efficiency.
By illustrating and accompanying drawing, give the exemplary embodiments of the ad hoc structure of detailed description of the invention, based on present invention spirit, also can do other conversion.Although foregoing invention proposes existing preferred embodiment, but, these contents are not intended as limitation.
For a person skilled in the art, after reading described above, various changes and modifications will be apparent to undoubtedly.Therefore, appending claims should regard whole variations and modifications of the true intention containing the present invention and scope as.In Claims scope, the scope of any and all equivalence and content, be all considered as still belonging to the intent and scope of the invention.