diff --git a/README.md b/README.md index b3d528abe7ae69370572e56b4a31770abeb25fcf..880cbf726bfe57fec1a4b83b9e6cd36c86d83918 100644 --- a/README.md +++ b/README.md @@ -131,3 +131,13 @@ The simulation used in the thesis was ```dpdkOneNode.cc``` sudo ./waf --run "dpdkOneNode --runTime=30 --pcap --routeTable" ``` +4. For running FdNetDev and TapBridge used in the thesis use the following commands + +```sh +sudo ./waf --run "emuFdSwitchTopo --runTime=10 --int0=eth0 --int0=eth1" +``` +OR +```sh +sudo ./waf --run "tapSwitch --pcap --runTime=10" +``` +* The configuration of the environment is explained in the files /ns-3.33/scratch/emuFdOneNode.cc and /ns-3.33/scratch/tapSwitch.cc respectively. \ No newline at end of file diff --git a/ns-3.33/scratch/tapBridge.cc b/ns-3.33/scratch/tapSwitch.cc similarity index 97% rename from ns-3.33/scratch/tapBridge.cc rename to ns-3.33/scratch/tapSwitch.cc index b53958dbe21c4ddb2e53319669c43afdaa8272f7..2688ccd2d879d1bb09bfbee6172c2a7e931c7bd2 100644 --- a/ns-3.33/scratch/tapBridge.cc +++ b/ns-3.33/scratch/tapSwitch.cc @@ -75,7 +75,7 @@ sudo ifconfig tap1 up // // 1) Ping one of the raspberry pis through the simulated switch topology // -// To run simulation: ./waf --run tapSwitch +// To run simulation: ./waf --run "tapSwitch --pcap --runTime=10" // On raspberry Pis: ping 10.1.1.X // #include <iostream> @@ -92,11 +92,11 @@ sudo ifconfig tap1 up using namespace ns3; -NS_LOG_COMPONENT_DEFINE ("TapBridge"); +NS_LOG_COMPONENT_DEFINE ("TapSwitch"); int main (int argc, char *argv[]) { - LogComponentEnable ("TapBridge", LOG_INFO); + LogComponentEnable ("TapSwitch", LOG_INFO); std::string mode = "UseBridge"; std::string tapName01 = "tap0";