The Design and Implementation of testing tools for Linux performance assessment
- Author
- TangXiaoHua
- Advisor
- JiangChunHua
- School
- University of Electronic Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 187
- Citations
- 0
Abstract
As a subproject of the remote service support system , we have developed this test tools and its role is to test the Linux operating system has a good performance as a communication server platform , to provide a reference for us to develop a communications server to select Linux or FreeBSD as a server platform . FreeBSD because of its good network performance , scalability , robustness than the Linux excellent , and as a communications server platform of choice . However , taking into account the ease of maintenance , remote service support system website and user database server using the Linux operating system . FreeBSD as a communication server platform performance has a good guarantee , but with two different operating systems to increase the difficulty of software development and maintenance . So , we have designed a set of testing tools to test network performance in Linux . Network communications server is usually faced with a series of questions : whether to support a sufficient number of users , and whether it can delay limit is small enough , in heavy load situations to maintain stable operation . To solve these problems , it must be able to generate a sufficient load to test , unfortunately, relying solely on the hardware is difficult to meet the requirements , this method requires the use of software to simulate the load situation in the real environment . In this paper, the basic theory , first introduced the basics of network protocols and socket programming , and several network servers internal architecture compared to the same time sniffing the principle . On this basis , we designed this set of testing tools , client - server model to simulate the communication server and client interaction remote service support system , at the same time using a network sniffer to record user data packets into the server and leave the server of the time , and the remaining delay analysis completed by the offline analyzer . The design approach of the set of test tools can be used in a similar performance analysis system .
Table of contents
Abstract 4-5
ABSTRACT 5-8
Introduction 8-10
1.1 background knowledge <br / > 1.2 subject sources and papers contributed 8
1.3 papers organizational structure 8-10
second chapter the basic theory and technology 10-31
the 2.1 network basics 10-20
2.1.1 TCP / IP protocol introduced 10-14
2.1.2 BSD network socket interface 14-17
2.1.3 INET socket layer 17
2.1.4 establish the BSD socket 17-18
2.1.5 INET BSD socket Bind address 18
2.1.6 INET BSD socket connection is established 18-19
2.1.7 listener INET BSD socket 19 < br /> 2.1.8 accept the connection request 19-20
2.2 SOCKET programming 20-23
2.2.1 the the Socket principle 20
2.2. 2 Socket system calls 20-23
2.2.3 client - server model socket implementation framework 23
2.3 I / O model 23-25 ??<br / > 2.4 several server architecture 25-29
2.4.1 multi-process 25-27
2.4.2 multithreading 27-28
2.4 .3 single-process event-driven 2.5 SNIFFER works 28-29
29-30
2.6 design of select 30-31
third the chapter for LINUX performance assessment testing tools the 31-38
3.1 remote service support system Introduction 31-32
3.2 test tools, the overall design 32-33 < br /> 3.3 application layer communication protocol 33-38
3.3.1 common message format 34-35
3.3.2 news 35-37 <br / > 3.3.3 session 37-38
the fourth chapter LPESERVER design program 38-54
4.1 Overview 38
4.2 core data structure and state Figure 38-43
4.2.1 connection control block (NCB) 38-39
4.2.2 server-side session (S_SESSION) structure 39-42 < br /> 4.2.3 the Session Control Table (scblist) 42-43
4.3 For New connection handling 43
4.4 for session communication operation 43 -52
4.4.1 handled on S_JOINWAITING state the 44-46
4.4.2 S_SJOINACK state processing 46
the 4.4.3 on S_RJOINACK state handling nbsp of S_DATA_RECVING state; 46-47
4.4.4 processing a 47-49
4.4.5 of S_DATA_SENDING state, handling 49-52
4.4.6 on S_TERMINATE state processing 52
4.5 overall process 52-54
Chapter Network load generator (LPECLIENT), design 54-67
the 5.1 network load generator program design 54-55
5.2 client important data structure 55-58
5.2.1 client session control block (C_SESSION) 55-57
5.2.2 connection_list 57-58
5.2.3 active_list 58
5.3 client session created 58-60
5.4 client and server to establish 60-62
5.5 between the client and the server control information and data exchange 62-66
5.6 LPECLIENT overall, process the 66-67
Chapter VI the design of the network delay analysis section 67-85
6.1 Design Overview 67-68
6.2 LPESNIFFER design part 68-78
6.2.1 output file formats: 69-70
6.2.2 pkt_info structure 70-71
6.2.3 seg_head structure the the 71-73
6.2.4 structure tcp_stream and substream 73-75
6.2.5 main function process 75-78
6.3 offline analysis program (LPEANALYZER) design part the 78-85
6.3.1 important data structures 78-81
6.3.2 main function processes 81-85 <br / Chapter 7 summarizes 85-86
Reference 86-88
Acknowledgements the
biographical 88-89 89
Related dissertations
- China system reform of monetary policy analysis based on the perspective of interest rate rules
- The Construction of Tourist Culture in A Web
- The Applied Research of Electronic Integrated Marketing Communication on Festival and Special Event
- Drivers of Sustainable Growth of International New Ventures
- Research on the Shareholding Control Mechanism of Corporation in the Network View
- Venture Capital Firms’Network and Investment Efficiency of Listed Companies
- M&A Synergistic Research Based on Network Perspective
- Study on the Problems and Countersmeasures of the Agricultural Informatization Construction in China
- Applied Research of the Oligopoly Game Model in Insurance Market
- Comparative study on Sino US network copyright protection system
- The electronic version of newspapers and periodicals
- Cross-Straits Communication in Network Media Environment
- Negative word-of-mouth spread of network and the strategy of enterprises
- A Investigation on the Influence of Network on Print News Source
- Communication Analysis of Korea Drama’s Popularity in China
- Research of Surface Roughness Network Data Collector System Based on ARM
- Research and Implementation of Networked Data Acquisition System Based on Cortex-M3
- Design and Development of Networked Measurement and Control System
- Unified Modeling and Timing Analysis of Networked Control System
- Analysis for Distributed Control of Dynamical Networks