Font Size: a A A

A Simulator's Design And Development Base On UDP

Posted on:2006-09-04Degree:MasterType:Thesis
Country:ChinaCandidate:Z T WangFull Text:PDF
GTID:2178360212482971Subject:Software engineering
Abstract/Summary:PDF Full Text Request
This thesis mainly discussed the design and development of the communication device simulator base on UDP.The simulator is a test sofuware which use to imitate the real device to communication with the CNM. It is apply to the communication device manufacting industry and the software development of network management extensively.A good Simulator not only can economize the cost for the enterprise,but also can solve some test event have no way to test by using a real device actually.But ,when handling a great deal of device erupt simulate,a great deal of thread's create and maintenance consume a lot of system resource of PC.It usually causing the system or network outrun the load and paralyzing.For resolving this problem,this thesis launches the discussion from as follows.1. Detailed introduced the basic principle and requirement of the communication device simulator.In communication protocol's design of data structure and flow, the mechanism of load balance is used.2. Use a interval time to replace the continuous time for communication between CNM and device.3. Appled to the technique of the Complete IO port in the design of the simulator.the Complete IO port is so far the most complicated mode of input and output.But,When an application have to handle a great deal of Socket at the same time,it also provides to make the system performance attain the best possibility.4. The application of Thead pool technical.The applied procedure that carry in the server now almost adopted"the thread pool"technique. This mainly is for the sake of the exaltation system efficiency. The thread pool can use the thead more availably, it provides a worker who be manage by the system with the thread pool for the applied procedure.There will be a thread at least to monitor to put the havings of the thread pool to wait for the operation, be to wait for after operation complete, the thread pool general will be had a worker thread to carry out to correspond of callback function.The usage of the thread pool can avoid wasted great deal of time of thread's establish and destroy and the time of the thread sleep, etc.5. Introduced the solid example of a communication device simulator- The design and the realization of the SGMP( Service Gateway Managment Protocol) Simulator.
Keywords/Search Tags:Simulator, UDP, Threadpool, Load Balance, Complete IO Port, Communication Device
PDF Full Text Request
Related items