rmrfus / PyBGP

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 connectivity to multiple peers at the same time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyBGP

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 connectivity to multiple peers at the same time.

Already implemented:

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

Work in progress:

  • BGP Updates

Next steps:

  • Implementing fully functional Route Reflector

Communication with three BGP peers

Sample PyBGP log output

Finite State Machine establishing connectivity by using active TCP connection

Sample PyBGP log output

Finite State Machine establishing connectivity by using 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

About

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 connectivity to multiple peers at the same time.

License:GNU General Public License v3.0


Languages

Language:Python 99.8%Language:Shell 0.2%