Font Size: a A A

Research And Realization Of Message Queue Middleware Based On Socket

Posted on:2008-06-02Degree:MasterType:Thesis
Country:ChinaCandidate:W ZhaoFull Text:PDF
GTID:2178360215991327Subject:Management Science and Engineering
Abstract/Summary:PDF Full Text Request
With the development of the computer network and the rapid popularization ofthe distributed application, making applications shift from the Client/Server Model tothe Client/Middleware Server/Database Server Model called the three-tiers models,has become the users' urgent demands and a mainstream tendency. TheMessage-Oriented Middleware (MOM), mainly deployed on the Client and theMiddleware Server in the three-tiers models is a software which depends on highlyeffective reliable message transmission mechanism to communicate data irrelevant tothe platform. At present, the Message Oriented Middleware is one of the fastestdeveloping middleware types in the middleware category.Basing on theoretical analysis and technical research about the correlationtechnology of the Message Oriented Middleware, the paper designs a simple practicalMessage Queue Middleware (MQM). It plays an important role in providing thereliable message transmission between the application procedures and supporting theTCP/IP protocol. We also realize the message queue's position irrelevant and thetransparency of the users' correspondence by means of it. The Message Queue Middleware system is composed of the applicationprocedure programming interface, the queue management, the message detector, thediary management, the safety management, the system management and the messagetransmission agent (MTA) module. After proposing the self-definition transmissionprotocol located above the transmission level, this paper introduces the design andrealization of three main modules in detail: the queue management module, themessage transmission agent (MTA) module and the application programminginterface module.According to the hidden danger in the traditional MQM for the informationsecurity, the MQM proposed a set of strategies including message encryption, thedigital signature, the queue operates jurisdiction; It proposes the effectivemulti-routes thread separation strategy which may enable the upper applicationprocedure to achieve the smallest resources expenses and the succinct realization;Three kinds of message trigger strategies including each message trigger,multi-messages trigger and the specific priority message trigger, may effectivelyactivate the dormant application procedure; Block control strategy which uses Signalparameter and queue's upper limit for control and block, can coordinate the speedbetween Server and Client, and guarantee the system's stability. The special defeattransmits thread mechanism enables the ordinary transmission thread continue todispatch other normal connections to transmit message, without affecting wholeworking efficiency of the system. The network communication of the MQM is based on the Socket technology.Hence, this paper studies thoroughly the Socket communication principle andtechnology. Via the test, we achieve five parameters' superior establishments, whichhave the greatest influence to the Socket transmit performance, namely socketnumber, transmission delay time, transmission block size, socket receive buffer andsocket send buffer. Through the parameters' superior establishments, we can optimizethe system transmission performance.
Keywords/Search Tags:MQM, distributed application, socket technology, information security, message trigger
PDF Full Text Request
Related items