Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Physical layer packet type differentation #129

Open
alexforencich opened this issue Apr 29, 2023 · 1 comment
Open

Physical layer packet type differentation #129

alexforencich opened this issue Apr 29, 2023 · 1 comment

Comments

@alexforencich
Copy link

For Ethernet, the physical layer only encodes the beginning and end of frames, all of the details about the frame can be determined from looking at data within the frame itself. However, other protocols do not necessarily work like this. For example, PCIe has both transaction layer packets and link layer packets, and they are differentiated by using different start control characters at the physical layer. Additionally, different encodings are used depending on the link speed (gen 1/2 vs gen 3 use totally different methods for framing). Technically, the framing method is not part of the link layer or transaction layer frame and as such it doesn't really make sense to capture this in the pcap, similar to how the preamble and start/terminate control characters are not captured alongside Ethernet frames.

What is the best way to handle this in the pcap format? Perhaps via some sort of per-packet option in the enhanced packet block? Or should the link layer framing information be included in the pcap, perhaps translated to the "lowest common denominator?"

@mcr
Copy link
Collaborator

mcr commented Apr 30, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants