Design and Implementation of BGP Based on Linux System

Author
XuJinRong
Advisor
LiYun
School
Southwest Jiaotong University
Major
Computer Software and Theory
Classification
TP393.04 Communication protocols, communication protocols
Degree
Master's thesis
Year
2008
Downloads
102
Citations
1

Request the full text

Abstract

The Internet is an interconnected by multiple autonomous systems a network of BGP protocol is an application to study BGP protocol in the network layer reachability information exchange between multiple autonomous systems based on TCP / IP network routing protocols , the development of the Internet of great significance . This article uses the Linux operating system provides TCP / IP protocol stack is designed and implemented a BGP protocol routing software . The routing software mainly consists of two subsystems , a BGP subsystem for running the BGP protocol ; another RMer subsystem for reading and updating the Linux kernel routing kernel information through BGP system send RMER packets . The BGP system BGP neighbor relationship building , BGP routing aggregation BGP route advertisements redistribution , BGP routing , BGP routing property management and BGP finite state machine . The BGP system and RMer of subsystems using the Linux system - based local TCP connection between communication , RMer systems and Linux kernel communication interface into the output control . BGP system and RMer of systems common VTY module to parse and process user input command line . Total system virtual thread management mechanism , a total of six types of thread , READ the type of thread used for read operations , the WRITE type thread used to write the TIMER type of thread is used to handle timeout event the EVENT type thread for processing BGP the state machine event rEADY type represents the ready threads can be scheduled UNUSED type idle thread . In the system design process , the use of powerful networking capabilities of the Linux system , make full use of the modular design method , and to facilitate the extension of BGP functionality and the increase in the new agreement . The BGP routing software testing results show that BGP protocol design based on the Linux TCP / IP protocol stack to achieve the main function of the BGP protocol , to be able to run stable , has a certain value of academic research and commercial value .

Table of contents

Abstract 6-7 Abstract 7-10 Chapter 1 Introduction 10-13 1.1 research background and significance 10-11 1.2 of this paper mainly work 11-12 1.3 papers organizational structure 12-13 Chapter 2 Border Gateway Protocol BGP4 13-28 2.1 BGP basic working principle 14-16 2.2 BGP packet format 16-20 2.2.1 packet header format 16 2.2.2 OPEN message format 16-17 2.2.3 UPDATE message format 17-19 2.2.4 KEEPALIVE message format 19 2.2.5 NOTIFICATION packet format 19-20 2.3 BGP path attribute 20-26 2.3.1 ORIGIN attribute 21 2.3.2 AS_PATH attribute 21-22 2.3.3 NEXT_HOP attributes 22-24 2.3.4 MULTI_EXIT_DISC attributes 24 2.3.5 LOCAL_PREF attributes 24-25 2.3.6 the ATOMIC_AGGREGATE attributes 25-26 2.3.7 AGGREGATOR attributes 26 2.4 BGP decision-making process 26-28 Chapter 3 system module design 28-54 3.1 system architecture 28-31 3.2 CLI module 31-33 a 3.3 the THREAD management mechanism 33-41 3.4 VTY server 41-42 3.5 BGP router communication 42-46 3.6 of BGP and RMER system communication 46-51 3.7 RMER and LINUX kernel communication 51-54 Chapter 4 BGP protocol implementations 54-66 4.1 static routing table management 54-56 4.2 dynamic routing table management 56-58 4.3 RMER and BGP routing updates packets 58-60 4.4 BGP finite state machine 60-66 Chapter 5 BGP protocol test 66-71 5.1 BGP test platform 66-67 5.2 BGP functional test 67-71 Chapter 6 Conclusion and Outlook 71-72 Acknowledgements 72-73 the References 73-76 studying for a degree during the thesis 76

Related dissertations

  1. Research on a Few Issues in the Ad Hoc Network
    YinChangQing ·Fudan University ·2004 ·Doctoral dissertation
  2. The broadcast routing technology research in mobile ad hoc networks
  3. The Study of Connectionless Quality-of-Service Routing
    ZhangTieLei ·Tsinghua University ·2006 ·Master's thesis
  4. \
  5. Research on QoS-based Dynamic Multicast Routing
    DongYuanFang ·Jilin University ·2004 ·Master's thesis
  6. Research and Implementation of I-CDMA , mobile broadband Internet solutions
    DengLin ·Northwestern Polytechnical University ·2003 ·Master's thesis
  7. Water -based wireless sensor network system
    ZhangHuangZhu ·Zhejiang University ·2006 ·Master's thesis
  8. Researches on QoS Multicast Routing Problems
    ZhuXiaoLi ·Shandong Normal University ·2005 ·Master's thesis
  9. The Economic Analysis of Scheduling and Its Applications
    XiuJun ·Beijing Jiaotong University ·2012 ·Master's thesis
  10. Study on the economic and trade relations between China and Venezuela
    JieLiDuo ·Capital University of Economics ·2014 ·Master's thesis
  11. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  12. Research and Design of Embedded Building Security System
    YangChen ·Liaoning Normal University ·2012 ·Master's thesis
  13. The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
  14. The Research of Household Remote Monitoring Based on Embedded Web Server
  15. Research and Design of Intelligent Video Surveillance System Based on ARM
  16. Design of Video Monitoring System Based on the Embedded
  17. The Design of Embedded Network Video Surveillance System Based on ARM9
  18. Design and Application of the Distributed Monitoring System Based on Embedded Web
  19. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  20. Embedded Software Design of AC Field Detection Instrument Based on ARM