Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Support pcap with nano-second resolution #238

Open
pstavirs opened this issue Jan 11, 2018 · 2 comments
Open

Support pcap with nano-second resolution #238

pstavirs opened this issue Jan 11, 2018 · 2 comments

Comments

@pstavirs
Copy link
Owner

Currently Ostinato only supports millisecond resolution pcap files.

Pcap file format reference

@pstavirs pstavirs added this to the v1.1 milestone Jan 30, 2020
@pstavirs
Copy link
Owner Author

pstavirs commented Apr 7, 2020

Fix for #83 will resolve this as well - albeit with the caveat that the nano-second resolution is lost

@pstavirs pstavirs closed this as completed Apr 7, 2020
@pstavirs pstavirs modified the milestones: v1.1, v1.2 Dec 21, 2021
@pstavirs
Copy link
Owner Author

pstavirs commented Dec 21, 2021

Reopening to add native support for nanosecond pcap for the following cases -

  • Native support for reading nanosecpcap directly (non via-pdml)
  • Native support for reading nanosecpcap via-pdml (already supported: PDML only supports nanosec)
  • If via-pdml is set, convert non-pcap (e.g. pcapng) directly to PDML - this is happening today unintentionally - make it intentional (PDML needs PCAP file to cross check packet bytes, so direct conversion not possible)
  • When converting non-pcap to pcap, use nsecpcap format
  • Native support for saving to nanosecpcap
  • Capture support in nanosec precision

In all above cases, ensure that timestamps are read/written correctly for accurate replay

@pstavirs pstavirs reopened this Dec 21, 2021
pstavirs added a commit that referenced this issue Jan 19, 2022
In PDML mode, nanosecond support is already present - in fact, only
nanosecond is supported not microseconds.

Updates #238
pstavirs added a commit that referenced this issue Jan 19, 2022
pstavirs added a commit that referenced this issue Jan 19, 2022
pstavirs added a commit that referenced this issue Jan 19, 2022
quint64 has larger range than double so has better accuracy. However,
for calculating packet rate, use floating-point arithmetic since the
packet rate is a double

Updates #238
pstavirs added a commit that referenced this issue Jan 19, 2022
When opening a non-PCAP file, we convert it to intermediate PCAP format.
Use nanosecond pcap format instead of standard microsec pcap format for
higher timestamp resolution.

Updates #238
@pstavirs pstavirs removed this from the v1.2 milestone Sep 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant