Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 850 Bytes

File metadata and controls

24 lines (22 loc) · 850 Bytes

Packet replayer

How to capture a trace

  1. Launch boards
  2. Start the NTP server:
    $ /etc/init.d/ntp start
  3. Optionally, free the core server port (example with port 12345):
    lsof -i tcp:12345 | grep LISTEN | awk '{print $2}' | xargs kill
  4. Capture batches with:
    $ python3 replayer.py capture <SERVER_PORT> --trace-dir <TRACE_DIRECTORY>

How to replay a trace

  1. Read the trace README.me file and copy its config.json file into the core server directory
  2. Launch the core server
  3. Run the trace emulator:
    $ python3 replayer.py replay <SERVER_PORT> --trace-dir <TRACE_DIRECTORY> --num-timeslots <NUMBER_OF_TIMESLOTS_IN_TRACE_DIR>