Analysis and Implementation of RIP Protocol in Distribuited Switching System on Multi-Threaded Mechanism
- Author
- WangGuanBin
- Advisor
- PengDaiYuan
- School
- Southwest Jiaotong University
- Major
- Communication and Information System
- Classification
- TP393.04 Communication protocols, communication protocols
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 53
- Citations
- 0
Abstract
As a simple and practical routing protocol, RIP protocol is widely used in small and medium-sized networks because of lower bandwidth consumption, ease of management and maintenance. Currently, RIP routing protocol has been analyzed and supported by many network equipment providers based on VxWorks system. However the memory and other resources are shared between all the tasks in VxWorks system, causing the threat of safety and reliability of the data easily. Meanwhile, as charge system, VxWorks system increases the cost of the equipment suppliers and network operators. Supporting for independent of memory and sharing memory between threads, Linux system has high reliability. More importantly, Linux is open source and free, so it becomes the development trend to implement RIP routing protocol on the Linux system. Meanwhile, in order to improve the reliability, implementation of the RIP protocol in distributed switching system is imperative.This article has been carried out basing on a pre-research project of some communication company which is about "analysis and implementation of rip protocol based on multi-threaded mechanism". The author participated in the entire process of the project development, from the overall design, writing detailed design documents, writing code of some modules, testing the system to writing predictable report. Through the project study and development, the author has deeply researched on the RIP protocol, and then completed the design, implementation, testing and analysis combining with distributed switching system and multi-threading mechanism. Comparing with current scheme of implementation about RIP protocol, this article explains clearly the benefits to carry out RIP protocol on the multi-threaded mechanism in Linux system. Then According to distributed switching system, this article brings forward a kind of scheme of implementing RIP protocol in distributed switching system.Firstly, RIP protocol is analyzed based on RFC1058and RFC2453. And then the protocol algorithm, message format, and operation mechanism are introduced. Secondly, supporting for distributed switching system, this article provides the functional requirement and establishes the overall design and module partition. Meanwhile, Combined with the multithreading technology, it gives the multithread scheme and its operation mechanism. Then divided into two modules,the RIP protocol is analyzed in detail through Flow chart form, and gived the dynamic interactive information. Finally, the article carries out a theoretical analysis of the functions and performance of this designed system, and then tests and verifies them in the actual environment. The analysis of test results show that the multi-threaded design of RIP protocol in distributed switching system based on C language can be effective and reliable to dynamically learn routing and deal with external events in high-end distributed switches.
Table of contents
Summary 6-7
ABSTRACT 7-11
Chapter 1 Introduction 11-16
1.1 Background and Significance 11 - 13
1.1.1 RIP protocol background 11-12
1.1.2 distributed Switch background 12
1.1.3 multi-threaded and distributed in the RIP significance of the agreement domestic and foreign research status quo 1.2 12-13
13-14
1.3 Introduction papers and chapters arrangements 14-16
1.3 .1 paper Introduction 14-15
1.3.2 thesis chapters arranged 15-16
Chapter 2 RIP routing protocol analysis 16-26 <br / > 2.1 RIP routing protocol Profile 16-17
2.2 distance vector algorithm 17-18
2.3 RIP protocol packet format 18-21
2.3 .1 UDP packet format 18-19
2.3.2 RIP packet format 19-21
2.4 RIP protocol operation mechanism 21-25 <br / > 2.4.1 to prevent routing loops 21-22
2.4.2 RIP timers 22-23
2.4.3 packet processing and analysis 23-24
2.4.4 RIP routing table 24
2.4.5 routing term describes 24-25
2.5 Summary 25-26
Chapter 3, based on the overall design of multi-threading mechanism in a distributed system RIP routing protocol 26-37
3.1 distributed switch and multithreading introduced 26-29
3.1. a distributed switch introduces 26-27
3.1.2 multithreading technology introduced 27-29
3.2 RIP routing protocol needs analysis 29-31 <br / > 3.2.1 functional Requirements 29-30
3.2.2 non- functional requirements 30-31
3.3 RIP routing protocol overall design 31-36 <br / > 3.3.1 RIP routing protocol external module analyzes 31-32
3.3.2 RIP routing protocol module design 32-34
3.3.3 RIP routing protocol threads divided 34
3.3.4 RIP protocol designed to run 34-36
3.4 Summary 36-37
Chapter 4, based on multi -threading mechanism for distributed systems detailed design and implementation of the RIP routing protocol 37-64
4.1 system event processing module analysis and implementation 37-54
4.1.1 system initialization sub-module 37-38
4.1.2 packet transmission module analysis and implementation 38-43
4.1.3 release database processing module analysis and Implementation 43-45
4.1 .4 active routing module analysis and implementation 45-47
4.1.5 Interface message analysis and Implementation 47-52
4.1.6 HA module analysis and implementation 52-54
4.1.7 configuration command processing module analysis and implementation 54
4.2 routing maintenance module analysis and implementation 54-60
4.2.1 routing table Maintenance initialization module 55
4.2.2 packet receiver module analysis and implementation 55-59
4.2.3 routing maintenance module analysis and implementation 59-60 <br / > 4.2.4 response System analysis and Implementation of event processing module 60
4.3 main data structure 60-63
4.3.1 main thread of the main data structure 60 -61
4.3.2 RIP packets associated data structure 61-62
4.3.3 routing related data structures 62-63
4.4 resource conflicts protection 63
design and implementation nbsp 4.5 RIP command line module ; 63
4.6 Summary 63-64
Chapter 5, system testing and analysis 64-78
5.1 functional Test 64-73
5.1.1 test environment 64
5.1.2 preparations 64-65
5.1.3 test Results and Analysis 65-73
5.2 stress test 73-76
5.2.1 test environment 73
5.2 .2 test results and analysis 73-76
5.3 test Summary 76-77
5.4 summary 77-78
Conclusion and Outlook 78-79
Thanks 79-80
References published during 80-83
pursue a degree thesis 83