Skip to content

Generate, transmit and receive packets. Analyse logs.

Notifications You must be signed in to change notification settings

Tactile-CPS/transmit-receive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e51f5d · Dec 29, 2024

History

23 Commits
Jul 24, 2024
Dec 19, 2024
Sep 1, 2024
Dec 19, 2024
Dec 19, 2024
Sep 1, 2024
Sep 1, 2024
Dec 19, 2024
Dec 29, 2024
Sep 1, 2024
Dec 19, 2024
Dec 19, 2024
Dec 19, 2024

Repository files navigation

Description

  • Script to generate, transmit, receive, and analyse packet flow

Generate, transmit and receive scripts

  • iperf tool on same host for tx&rx using txrx-same-host.sh

    • Transmits iperf flows
    • Options provided in script
      • VLAN tagging
      • Packet capture on tx and rx
      • Packet captures on the basis of udp destination port to separate pcaps
      • Which are then converted to csv files
    • Iperf cannot currently handle tx and rx on same port
    • Hence, currently we send 2 flows (ST & BE) on port 1 and receive both on port 2.
    • Uses namespaces to work on the same host
  • iperf tool to tx&rx on separate hpsts using txrx-separate-hosts.sh

    • Doesn't need namespaces to work on separate hosts
  • For capture of iperf packets with wireshark/tshark, full header should be present. Hence, for iperf, 76+46=122 bytes is the minimum datarate. Use 128 as minimum by giving iperf payload length as 128-46=82 bytes. 46 bytes include Ethernet, VLAN, IPv4, UDP headers. Also, iperf datarate (-b x) is equivalent to x/x+(fcs+preamble+epiogue=24bytes)

Analysis scripts

  • Reads csv files and calculates latency, jitter, packet loss, out-of-order
  • 'txrx-analysis-rxonly.py'
    • Uses iperf data
    • For latency, uses rx capture's epoch time and iperf's tx time
  • 'txrx-analysis.py'
    • For latency, uses tx and rx capture's epoch time

Notes

  • For utas, datarate = 6.6M, time = 2s using archive-txrx scripts

About

Generate, transmit and receive packets. Analyse logs.

Resources

Stars

Watchers

Forks