First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Ethernet Frame II - outgoing frames don't show padding

  • retag add tags

An ethernet frame (packet 45 and 600) I have recorded in a packet is of length 42 bytes. How can this frame of length 42 bytes be recorded in the packet trace without padding? If you look at frame 2 it has padding like many others. Why does it not have padding like packet 2 to increase its length field to 64.

Cant upload a picture or download as I do not have enough points.

https://drive.google.com/file/d/1Mi9p...

AG111's avatar
1
AG111
asked 2021-03-16 17:03:13 +0000
JeffMorriss's avatar
6.4k
JeffMorriss
updated 2021-03-17 17:44:10 +0000
edit flag offensive 0 remove flag close merge delete

Comments

You can post the capture on a public share, e.g. Google Drive, DropBox etc. and then put a link to it back here.

Why did you delete your previous question?

grahamb's avatar grahamb (2021-03-16 17:05:18 +0000) edit

Sorry accident I was experimenting with the stuff on here as I am new

AG111's avatar AG111 (2021-03-16 17:21:39 +0000) edit
AG111's avatar AG111 (2021-03-16 17:24:06 +0000) edit

Your file share is set to private, so it can't be opened ;-)

SYN-bit's avatar SYN-bit (2021-03-16 18:39:49 +0000) edit

Thanks for that try this one https://drive.google.com/file/d/1Mi9p...

AG111's avatar AG111 (2021-03-16 18:53:27 +0000) edit
add a comment see more comments

1 Answer

0

The padding of Ethernet frames is done on the NIC of the system. The capturing of packets is done somewhere in the kernel of the OS. So all outgoing frames from the system on which you are capturing will pass the capture process (npcap/libpcap) before they reach the NIC where they are padded to 64 bytes.

This also happens with checksums when you have checksum offloading enabled, then all outgoing frames will have a bad checksum at the IP/TCP/UDP layer, as they are captured before the NIC can calculate and populate the checksum fields.

SYN-bit's avatar
18.5k
SYN-bit
answered 2021-03-16 18:39:14 +0000
edit flag offensive 0 remove flag delete link

Comments

https://drive.google.com/file/d/1Mi9p...

Try this and see if this works

AG111's avatar AG111 (2021-03-16 18:54:11 +0000) edit

But if that was the case it would be that none of them would have any padding. However it seems that only a select number of ones have padding. And the one with the lowest length has no padding.

AG111's avatar AG111 (2021-03-16 19:13:36 +0000) edit

But if that was the case it would be that none of them would have any padding.

No, it wouldn't. It would be that packets sent by the machine running tcpdump/Wireshark/whatever sniffer you're using would have no padding. Packets received by that machine would have padding.

Guy Harris's avatar Guy Harris (2021-03-16 20:45:32 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer