Wireshark reveals OSI model layers within a captured network packet, showing how HTTP, TCP, IP, and Ethernet headers each contribute distinct information at their respective layers. Layer 1 data is absent from captures because NICs discard the preamble before processing begins.
Wireshark OSI Layers
Let's take another look at Wireshark and see those different layers, the different OSI model layers within Wireshark.
I have Wireshark open and I already captured some data going between this demo laptop and my Pi. I've got Apache running on the Pi and it's serving out websites, and so it made this request. Just notice here at the top, this is the handshake that happens, that TCP makes before we make the request. And then we see this first HTTP traffic going across back and forth. It's a get command, so it's asking for this website. So this is the one I'm going to use as the example. This is the packet, and down here below, these are the different layers.
So let's first of all take a look at the hypertext transfer protocol. This is layer 7 on here, or layer 5 through 7. I can open this up and take a look at some of the details of this. It's going to ask for things like, this is the actual request it's asking for, is for 10.1.0.3. So there it is, that's the layer 7 at work there.
Then we go down to layer 4, that's added to there, and I said it adds a port to it, so we see the port number here. In fact, actually the destination port is the one we're looking at. So this is web traffic, so it's port 80.
Also I mentioned the sequence number, so we see the sequence number right here. I also mentioned that the sequence number can look a lot different; we'll explain that in another lesson. But we're just taking a look at this sequence number, that's a relative sequence number. It's kind of interesting how Wireshark displays it, it's a cool feature of Wireshark.
So then we also have an acknowledgement number that's happened, and I've also mentioned that in one of my prior lessons. So there's some of the data that we find on the TCP, the layer 4. As I mentioned before, I think the TCP layer is really cool. There's a lot of cool stuff that happens in it. The other layers are pretty cool too, but some of them are kind of boring. The TCP has a lot of cool stuff in it.
So now we get to the internet protocol. This is IP version 4, this is our layer three. We see that the big key here is just the source and destination address. No surprises there. So that's what we see there. I'm going to close that.
Then we've got our Ethernet, so I'm going to open up the Ethernet, and that's the MAC address. It's communicating Ethernet here, so we see the source and destination MAC addresses there. So that makes sense right there. And then I can close that out.
Now the one thing that we are missing here is that layer one. The layer one for Ethernet is that preamble, the little ones and zeros that get sent over, so that way one NIC can wake up the other side and say, hey, I'm starting to talk, please listen to me. So that doesn't get captured in here, probably because the NICs just take that in, it wakes up and then it discards it right away and then starts processing the rest of the frame.
So at the top here, it looks like it could be a layer one, but technically this isn't really the layer one. We could represent it as being the layer one, but when we look through it, it's actually just some detail, some summary information about this whole Ethernet frame. Just to prove the point here, I can click on the top here and it highlights all of the frame details. So it's just a highlight of all of the frame details, so you can ignore that for the most part right there. We are more concerned with these other layers, layers two, three, four and seven, or five through seven.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →