Skip to content

Physical layer packet type differentation #129

@alexforencich

Description

@alexforencich

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?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions