Giter Club home page Giter Club logo

csb7929 / pybgp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ccie18643/pybgp

0.0 0.0 0.0 15.68 MB

PyBGP is Python / Asyncio based BGP implementation. At this time it fully supports Finite State Machine and its able to open and maintain connectivity to BGP peer in either passive or active mode. Connection collision detection is already implemented so it's able to drop less desired connection if two of them form simultaneously. Can support connec

License: GNU General Public License v3.0

Shell 0.20% Python 99.80%

pybgp's Introduction

PyBGP

An attempt to write the BGP router


PyBGP is Python / Asyncio-based BGP implementation. It fully supports the Finite State Machine and can open and maintain connectivity to BGP peers in either passive or active mode. Connection collision detection is already implemented, so it can drop the less desired connection if two form simultaneously. It can support connectivity to multiple peers at the same time.


Features

Already implemented:

  • Finite State Machine - running as a coroutine
  • Event system with message queuing
  • TX/RX Network IO - running as a coroutine
  • Timers - connect_retry, hold, keepalive
  • Support for parsing and creating BGP messages
  • Passive and Active connectivity with a collision detection mechanism
  • Ability to maintain simultaneous connectivity with multiple peers

Work in progress:

  • BGP Updates

Next steps:

  • Implementing fully functional Route Reflector

Examples

Communication with three BGP peers

Sample PyBGP log output

Finite State Machine establishing connectivity by using an active TCP connection

Sample PyBGP log output

Finite State Machine establishing connectivity by using a passive TCP connection

Sample PyBGP log output

Finite State Machine choosing passive over active connection due to peer's higher BGP ID

Sample PyBGP log output

pybgp's People

Contributors

ccie18643 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.