How lucacarr0/good-fences works
Good-Fences is a Mininet spine–leaf network simulation with a Ryu controller. Its principal workflow is to load and validate topology and tenant YAML, construct the network, install default-drop OpenFlow rules, then answer eligible host ARP requests using tenant-scoped IP/MAC bindings. The README also documents switch reconnection and strict ARP filtering; IP forwarding, dynamic learning, and request rate limiting are explicitly not implemented. Connections reflect the shown calls and documented behavior; configuration and external-switch interactions are supported by source or README evidence.
Main entry points: app.py Controller app · network_models.py Network model · datacenter.py Mininet network · pipeline.py Base pipeline
Components 11
Configuration and model
- Topology config
config/topology.yaml - Tenant config
config/tenants.yaml - Network model
src/network_models.py
Network simulation
- Spine-leaf topology
src/datacenter.py - Mininet network
src/datacenter.py
Ryu controller
- Controller app
src/controller/app.py - Base pipeline
src/controller/pipeline.py - ARP validation and reply
src/controller/arp_proxy.py
Other components
- Operator
- OpenFlow switches
- Tenant hosts
Connections 18
- Operator → Spine-leaf topology: starts simulation
README.md - Topology config → Network model: configures topology
src/network_models.py - Tenant config → Network model: configures tenants
src/network_models.py - Spine-leaf topology → Network model: loads model
src/datacenter.py - Spine-leaf topology → Mininet network: builds network
src/datacenter.py - Mininet network → OpenFlow switches: creates switches
src/datacenter.py - Mininet network → Tenant hosts: creates hosts
src/datacenter.py - Controller app → Network model: loads bindings
src/controller/app.py - Controller app → Base pipeline: installs rules
src/controller/app.py - Base pipeline → Network model: reads host ports
src/controller/pipeline.py - Base pipeline → OpenFlow switches: installs drop and ARP rules
src/controller/pipeline.py - OpenFlow switches → Controller app: reports switch events
src/controller/app.py - Controller app → ARP validation and reply: validates ARP request
src/controller/app.py - ARP validation and reply → Controller app: returns reply frame
src/controller/arp_proxy.py - Controller app → OpenFlow switches: sends reply packet
src/controller/app.py - Tenant hosts → OpenFlow switches: sends ARP request
README.md - Network model → ARP validation and reply: provides tenant bindings
src/controller/app.py - Mininet network → Controller app: connects remote controller
src/datacenter.py