Research and Realization of Message Queue Middleware Based on Socket
- Author
- ZhaoZuo
- Advisor
- XuZuoXiao
- School
- Inner Mongolia University
- Major
- Management Science and Engineering
- Classification
- TP274.2 Data collection and processing systems
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 374
- Citations
- 6
Abstract
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.
Table of contents
Abstract 4-6
ABSTRACT 6-9
directory 9-11
chart catalog 11-12
The first chapter outlines 12-16
1.1 topics sources and background 12
1.2 Definition of message middleware 12-13
1.3 messaging middleware research status 13-14
1.4 messaging middleware future development 14-15
1.5 Summary 15-16
Chapter Message Queuing Middleware 16-20
2.1 Message Queuing middleware defined 16-17
2.2 Message Queuing Middleware Features 17
2.3 Message Queuing Middleware functional analysis 17-19
2.3.1 MQM client service function analysis 17-19
2.3.2 MQM client functional analysis 19
2.4 Summary 19-20
Chapter overall system design and architecture 20-26
3.1 overall design 20-21
3.2 server architecture and modular division 21-24
3.3 client architecture and module division 24-25
3.4 Summary 25-26
Chapter key technical analysis 26-34
4.1 security technology 26-29
4.2 multithreading technology 29-30
4.3 trigger mechanism 30-31
4.4 Congestion Control 31-32
4.5 Failure processing strategy 32
4.6 Chapter Summary 32-34
Chapter SOCKET communications 34-42
5.1 Socket Communication Theory 34-36
5.2 Windows Socket Communications 36-41
5.2.1 Server API function 37-39
5.2.2 client API function 39
5.2.3 Data API functions 39-40
5.2.4 Disconnect 40-41
5.3 Chapter Summary 41-42
Chapter VI message queue middleware implementation 42-54
6.1 custom transport protocol 42-46
6.1.1 custom transport protocol overall framework 42-44
6.1.2 custom transport protocol message model 44-46
6.2 system module 46-53
6.2.1 Queue Manager module 46-49
6.2.2 MTA module 49-52
6.2.3 Application Programming Interface 52-53
6.3 Chapter Summary 53-54
Chapter VII of the performance test 54-62
7.1 test design ideas 54-55
7.2 Test Procedure 55
7.3 Test Data Analysis 55-60
7.3.1 Number of test sockets 55-56
7.3.2 Propagation Delay Test 56-57
7.3.3 Receive Buffer Test 57
7.3.4 Transmit Buffer Test 57-58
7.3.5 transport block size test 58-60
7.4 test results 60
7.5 Chapter Summary 60-62
Chapter VIII Conclusion 62-64
Thanks 64-66
References 66-67
Related dissertations
- Research on the Information Security Management of Commercial Bank Branches
- Study of Information Security Risks Control in IT Outsourcing about a Insurance Company
- Study on Information Security Risk Management System of Our Banks
- Research of the Information Security Management Strategy in A Company
- ISO27001Information Security Management System Diagnosis and Analysis for Boshi Company
- Design and Implementation of Secure Industrial Ethernet Based on Cortex-A8
- Design and Implementation of Secure E-commerce Website
- Research on Usage Control Model in Dynamic Openly Systems
- Research on Technique of Capture and Reconstruction Audio and Video Traffic
- The Research and Application of Party School Network Security System Based on Classified Protection
- Research on APT Network Attacks and Defense Strategies
- Risk Analysis and Evaluation of Network Security in Stock Information Systems
- Research of Deception and Anti-Attack Methods in Dynamic Target Defense
- Oil sales enterprise logistics information network security research
- Design and Implementation of Network Security Detection System
- The Design and Implementation of Shandong Haihua Group Network Information Security System
- Research and Design of Network Information Security System for Local Taxation Bureau
- Research on Security Protocol Formal Verification Tools Automatically AVISPA
- The Design and Implementation of CA Safe Authentication System Core Functions in E-government
- Design and Implementation of a Enterprise Search Platform