Skip to content

Instantly share code, notes, and snippets.

Run mininet with OpenVSwitch kernel (OVSK)

sudo mn --topo linear,3 --switch ovsk

MPLS and ARP Flow Rules at s1

S1=s1
eval $(sudo ovs-ofctl dump-ports-desc $S1 | sed -n '/^ [0-9]/s/^ *//p' | \
awk -v FS='\\(|\\)' '{print toupper($2) "=" $1}' | sed 's/-/_/')
#include "ns3/lte-helper.h"
#include "ns3/epc-helper.h"
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/internet-module.h"
#include "ns3/mobility-module.h"
#include "ns3/lte-module.h"
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/netanim-module.h"
#include "ns3/mobility-module.h"
#include "ns3/bridge-module.h"