Giter Site home page Giter Site logo

bgpemu's Introduction

bgpemu

standard-readme compliant

bgpemu是一个BGP网络仿真工具

目录

安装

文档

编译

安装Golang

git clone [email protected]:V3rgilius/bgpemu.git
make build 

使用

bgpemu的使用包括以下几个部分

示例

在完成集群的配置,并且编译完成后,可以按以下步骤搭建示例中的仿真网络,并部署场景。

创建拓扑

bgpemu topo create examples/kaz/kaz.yaml

进入网络中的某一容器的shell

kubectl exec -it -n bgp r4134 -- sh

启动BGP路由器

bgpemu lab deploy examples/kaz/scene.yaml

scene.yaml中的配置需按实际情况修改,如rpki的配置

添加商业关系路由策略

bgpemu lab policies deploy examples/kaz/policies.yaml

监控BGP报文接收情况

bgpemu data start bgp

启动BGP攻击

bgpemu lab routes deploy examples/kaz/atk_routes.yaml

获取BGP报文数据

报文的转储间隔是30秒,应当至少在这一间隔时间后执行如下命令

bgpemu data dump bgp 

获得的数据在当前目录的mrts/

重置实验

bgpemu lab deploy examples/kaz/reset_scene.yaml

如果未获取数据可改为examples/kaz/reset_scene_nodata.yaml

重置后进行RPKI防护实验

bgpemu lab deploy examples/kaz/scene.yaml
bgpemu lab policies deploy examples/kaz/policies.yaml
bgpemu data start bgp
bgpemu lab deploy examples/kaz/atk_scene_rpki.yaml
# bgpemu data start bgp 后等待30s或更长
bgpemu data dump bgp 

Thanks

本项目主要基于KNEmeshnet-cni的工作

License

bgpemu's People

Contributors

v3rgilius avatar

Stargazers

 avatar

Watchers

 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.