diff --git a/sim/Dockerfile b/sim/Dockerfile index 52d02bb..18ccff0 100644 --- a/sim/Dockerfile +++ b/sim/Dockerfile @@ -38,7 +38,7 @@ RUN cd /wait-for-it-quic && go build . FROM ubuntu:24.04 RUN apt-get update && \ - apt-get install -y net-tools iptables libgsl-dev libxml2 libsqlite3-0 && \ + apt-get install -y net-tools iptables libgsl-dev libxml2 libsqlite3-0 tcpdump && \ apt-get clean WORKDIR /ns3 diff --git a/sim/run.sh b/sim/run.sh index 9be56e6..ab50fe7 100644 --- a/sim/run.sh +++ b/sim/run.sh @@ -22,6 +22,8 @@ fi echo "Using scenario:" $SCENARIO +tcpdump -i eth0 -U -w "/logs/trace_node_left.pcap" & +tcpdump -i eth1 -U -w "/logs/trace_node_right.pcap" & eval ./scratch/"$SCENARIO &" PID=`jobs -p` diff --git a/sim/scenarios/helper/quic-point-to-point-helper.cc b/sim/scenarios/helper/quic-point-to-point-helper.cc index ed9bb5e..b04e063 100644 --- a/sim/scenarios/helper/quic-point-to-point-helper.cc +++ b/sim/scenarios/helper/quic-point-to-point-helper.cc @@ -16,10 +16,6 @@ void QuicPointToPointHelper::SetQueueSize(StringValue size) { NetDeviceContainer QuicPointToPointHelper::Install(Ptr a, Ptr b) { NetDeviceContainer devices = PointToPointHelper::Install(a, b); - // capture a pcap of all packets - EnablePcap("/logs/trace_node_left.pcap", devices.Get(0), false, true); - EnablePcap("/logs/trace_node_right.pcap", devices.Get(1), false, true); - TrafficControlHelper tch; tch.SetRootQueueDisc("ns3::PfifoFastQueueDisc", "MaxSize", queue_size_); tch.Install(devices);