Of a packet forwarding gateway design and implementation of the UNIX system
- Author
- YeMing
- Advisor
- MaoYuMing
- School
- University of Electronic Science and Technology
- Major
- Communication and Information System
- Classification
- TP393.05 Network equipment
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 66
- Citations
- 0
Abstract
Internet in China is primarily consisted of four networks at present: ChinaNET, CERNET, ChinaGBN and CSTNET. There is relatively high transmission time delay across such different networks, making it one of the main bottlenecks in the development of the domestic information high way.CERNET users are always affected by the communication bottleneck between CERNET and ChinaNET. Even if the users have access lines for the two networks at the same time, they also have to inconveniently switch the connection between the two networks by hand. The main purpose of this thesis is to realize a packet forwarding gateway server based on TCP/IP in the UNIX environment, which is able to help CERNET users access the Internet transparently. Different from traditional routers, the gateway proposed here focuses on the routing strategies rather than the routing protocol itself. It maximizes the utilization rate of each network access line by forwarding data packets according to the routing strategies of each network respectively.This thesis presents the design and implementation of a multi-functional dynamic packet forwarding gateway in the UNIX environment. The gateway is robust, efficient, secure, and completely transparent to its users. With the help of FreeBSD operating system, it is able to handle data packets faster and accept more users simultaneously. This thesis firstly introduces the bottleneck across networks, followed by the design of the dynamic packet forwarding gateway, as well as the analysis of the User Demand. The gateway software system is divided into four models, with each model’s design and implementation discussed from Chapter 3 through 6 respectively. The functions and performances of the forwarding gateway are tested in chapter 7, where the testing data and results are generated. Chapter 8 is the conclusion of the whole thesis.
Table of contents
Chapter Introduction 10-14
1.1 Background 10-12
1.1.1 across the network, the communication delay 10-11
1.1 .2 gateway and proxy server 11-12
1.2 Research purpose the 12-13
the 1.3 lab network conditions introduced nbsp Finance; 13-14
first choice of two chapters of the overall design of the system architecture and development environment 14-23
2.1 System Requirements Analysis nbsp in; 14-16
2.1.1 current network status and needs 14-15
the 2.1.2 project model and business process analysis the 15-16 the 2.1.3 project objectives
16
2.2 system's modular design nbsp the function of each module; 16-17
2.2.1 Design 16-17
2.2.2 module 17
2.3 software development environment of choice and structures 17-21
2.3.1 choose FreeBSD operating system 18-19 under FreeBSD 2.3.2
network development environment 19-20
the 2.3.3 FreeBSD commonly used server module describes 20-21
2.4 system UNIX software tools 21-22
software 2.4.1 grep 21
2.4.2 sed software use 21-22
2.4.3 awk, the use of the software 22
2.4.4 wget software 22
2.5 hardware development environment of choice 22-23
Chapter routing forwarding module design and implementation of 23-37
3.1 FreeBSD kernel routing table summarizes 23-24
3.1.1 FreeBSD kernel routing table 23-24
3.1.2 using the system command to configure static routes are found; 24
3.2 routing forwarding module Design and Implementation 24-31
3.2.1 IP address addressing network and regional 24-25
3.2.2 to obtain the IP address of the network geographical information sub-module Design and Implementation 25-29
3.2.3 kernel routing table timing detection and update sub-module design to achieve 29
3.2.4 ADSL anti dropped automatically dialing sub Module Design and Implementation 29-31
3.3 route forwarding module existing problems and their solutions 31-34
3.3.1 routing path imbalance and its effect on ADSL non- the symmetric link 31-32
3.3.2 using NAT technology to improve routing forwarding module are found; 32-33
3.3.3 next hop routing failure data forwarding failure problem 33
3.3.4 design interface automatically switches logic to prevent forwarding failed the 33-34
3.4 ADSL Modem Switcher hardware and software sub-module design and realization 34 - 37
3.4.1 Automatic Switcher for the current broadband telecommunications standard tariff design the 34-35
3.4.2 ADSL Modem hardware circuit and its transformation 35-36
3.4.3 on the computer parallel port the ADSL Modem software switch machine automatically control 36-37
Chapter system security and access control module design and realization 37-51 < br /> 4.1 system security requirements and implementations 37
4.2 use packet filtering firewall to ensure system security the general concept nbsp 37-40
the 4.2.1 packet filtering firewall ; 37-39
4.2.2 PF firewall 39-40
4.3 user space to configure forwarding gateway firewall 40-49
4.3.1 to write the static basic pf.conf configuration script the 40-42
4.3.2 write automated user authentication script 42-43
4.3.3 using the CS mode to develop dynamic user authentication sub- module 43-45
4.3.4 use the the BS model developed dynamic user authentication sub-module 45-48
4.3.5 WLAN user access sub-module configuration and development 49-50 48-49
4.4 flow control sub-module in the kernel space the 49-51 4.4.1 the PF firewall design flow control sub-module
< br /> 4.4.2 user authorization levels 50-51
Chapter monitoring and maintenance module design and implementation of 51-57
5.1 system monitoring and maintenance of the overall goal 51
5.2 ADSL line web monitoring program design and implementation to utilize 51-52
5.3 tcpdump day-to-day network monitoring and maintenance 52-53
5.4 MRTG network traffic monitoring and statistics 53-54
5.5 log sending sub-module design and realization 54-55
5.6 TCP connection limit sub-module design 55-57
Chapter peripheral module design and implementation of the 57-63
6.1 the surrounding service module design overall objective 57
6.2 build dual network DNS server 57-59
6.3 Squid proxy server and its authentication sub-module design and realization 59-60
6.4 Squid log management and traffic analysis 60-61
6.5 build SOCKS proxy server 61-63
Chapter VII forwarding gateway test validation and usage reports 63-72
7.1 system the actual nbsp network environment; 63
7.2 system function test obtain IP address information 63-68
7.2.1 Timing tests 63-64
7.2.2 routing updates and packet forwarding test 64-65
7.2.3 user access authentication function test 65-67
7.2.4 forwarding gateway traffic control function test 67
7.2.5 MRTG remote monitoring function test the 67-68
7.3 System Performance Test 68-71
7.3.1 ADSL Modem dropped or power-down tests are found; 68-69
7.3.2 NAT technology improved routing forwarding module performance test 69-70
7.3.3 multi-user system overhead test 70 -71
7.4 system usage reports 71-72
Chapter VIII Conclusion 72-74
Acknowledgements 74-75
reference literature 75-77
research during the study period 77