moby / libnetwork

networking for containers
Apache License 2.0
2.16k stars 881 forks source link

Creating own network driver with configurable drops #2643

Open kkretsch opened 3 years ago

kkretsch commented 3 years ago

I'm searching any hints how to start creating my own copy of a bridge networking driver with some additional features for communication protocol testing.

I think running these steps would be my way:

  1. create a running copy of some network plugin in my local docker 20.10 instance
  2. add hard coded "bad line quality feature" like dropping 1% of UDP packets
  3. Add configurable options from some external config file for dropping features

Any hints how to start this?