Encapsulation is the process of adding headers, and sometimes trailers, to data so it can be properly addressed, sequenced, and delivered across a network. It is a foundational concept used across many networking protocols, not just Ethernet.
Encapsulation
One thing that we need to add to the message that we're sending out is the MAC address. We need to send it to a specific machine, and so we attach the MAC address to our message. Well, that's called encapsulation.
I have some sort of message that I want to send this other machine right here. So what this computer does is it forms the message, whatever that's going to be. But now what needs to happen is it needs to add the addressing to that message, so that way when it goes out, this computer knows to listen for it and process that message. And so what we do is we add the MAC address. So encapsulation is the extra information it adds for delivery.
Now, let's step away from Ethernet for now, because encapsulation is more of a generic term, and we'll see encapsulation with a lot of different protocols, not just Ethernet. So let's just talk about encapsulation from a higher level here.
First of all, we have the section here that we call the data, or the payload. The data or the payload is going to be what needs to be delivered.
Then the header is going to be the information that's going to exist for delivery, or for being able to do some error checking. There's several things that a header could do, but it's extra information to allow the communication, and it's part of the protocol. It's all defined as part of the protocol.
And then sometimes, not all the time, sometimes we include a trailer, which has a little extra information. For instance, maybe it has some error checking to make sure that nothing has been corrupted during delivery.
Here we see some of the purposes of both the header and the trailer. As I mentioned, if it has a trailer, a lot of times it's for error checking. If it has a header, it could be for addressing, or could be for sequencing. Sometimes we are sending lots of data that has some sort of sequence to it and we need a sequence number to it. Or maybe it's identifying the protocol, so what goes in here identifies what protocol is in the payload.
One thing I'll mention is that sometimes we encapsulate other protocols, which means that we may add a header here and then we may add another header here, and this has different information. In fact, more than likely we have lots of different headers that we add to it. So there are times when we encapsulate something that's already been encapsulated. We're not going to get too in depth into that now. Just know that that's a thing.
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 →