NetworkChuck
Day 04Models

REAL LIFE example!! (TCP/IP and OSI layers)

17m2 chapters80 cues1 card
Day 04YT: 3kfO61MensgSponsor: Boson Software
00:00 / 16:50

Synchronized Transcript

80 cues indexed • Click dialogue or words to jump
NetworkChuck

This is episode four of my free CCNA course and a huge shout out to bozon software the official sponsor of this CCNA course they are the reason this can be made available for free.

NetworkChuck

So I highly encourage you to go check them out they have the absolute best CCNA CCNP labs and practice exams TCP and OSI networking models that define how we connect our computers without these we wouldn't have networking.

NetworkChuck

So in this video we're going to watch it happen we're going to follow a packet as it goes through a network and how it interacts with each layer.

NetworkChuck

Let's do it [Music] okay same scenario as the last video johnny wants some delicious NetworkChuck coffee so he needs to go over the Internet to access NetworkChuck.coffee to order some coffee.

NetworkChuck

Let's watch his packets go across the network and we'll analyze the layers as it goes across the network let's check it out now I'll say it again in reality we're using the TCP IP model which is this.

NetworkChuck

But for reference I'm going to use the OSI model so I'll add in those extra layers the session layer and the presentation layer just going to add those in there stack them up and if you want to follow along which I highly encourage you to do that it's really helpful to.

NetworkChuck

Watch this actually happen use your own computer so I got a link below download this package tracer file that I'm about to walk through go ahead and do it right now I'll wait for you if you pause otherwise here we go go.

NetworkChuck

So using simulation mode we'll watch johnny go all the way across the network to access networkshop.com which is this server right here and order some delicious coffee so let's click on simulation and.

NetworkChuck

Watch this in bullet time because it's it's amazing now as we go through this I want you to notice one thing I have our traffic filtered meaning that I'm I'm only looking at HTTP in HTTPS traffic web traffic things you might use to access a website I'm telling you this.

NetworkChuck

Because you won't see things that we saw in the last video like ARP requests to discover a device's MAC address you won't see a DNS query so johnny can discover the IP address in narc shock.coffee.

NetworkChuck

If you want to see those things you can just go edit the filters right here you can unlock all those goodies so we're going to open up johnny's laptop here we're going to navigate over to his desktop and click on web browser we're going to type in HTTPS colon whack network.

NetworkChuck

Chuck dot coffee and go now nothing happened because we're filtering traffic let me step forward in time and watch things happen there we go so we see here we have our blue message our blue packet that johnny is getting ready to send out in our simulation panel here you can actually.

NetworkChuck

See we have two separate messages why well one is what he's getting ready the other is what he's sending out to the switch let's open up that first one and take a look I'll just select that first message right here you can.

NetworkChuck

See we have our wonderful seven layers of the OSI even though we're actually using tcpip again I'm telling you the networking world always uses the seven layers always so let's analyze this first johnny starts out by using layer 7. What's layer 7 it's our application layer layer what application is he using well we get a message right here.

NetworkChuck

Because we have that layer selected the HTTP client sends an HTTP request to the server what that basically means is that johnny's web browser is attempting to access a website.

NetworkChuck

So simply this is the application layer the protocol we're using here is the HTTP protocol protocol and actually we're using the HTTPS because it's secure and encrypted but this is an example of an application layer protocol that is used by things like hey your web browser you're using that right.

NetworkChuck

Now so johnny types in NetworkChuck.com into his web browser he hits enter and his computer gets to work and so again the application protocol we're using is HTTPS and the computer takes this data and gets it ready to send out.

NetworkChuck

Now at this point point the computer's goal is to get the data all the way down through the layers down to the physical layer so it can go across our Ethernet cable through the Internet to the other server to the NetworkChuck.cof server.

NetworkChuck

But what's happening in all this mess what's going going on let's talk about it now we're gonna skip these two layers for now we will go into more detail later but again typically they're meshed into the application layer anyhow.

NetworkChuck

So it's okay looking back at Packet Tracer we're on to layer four now layer four is our transport layer for now the way I want you to think about it is is how can we transport the data how can we get it there and we really have two main options we can use TCP or UDP.

NetworkChuck

Now I'm not going to cover this super in depth right now but just know that when we use TCP it's more reliable it's when we want to make sure our message actually gets there there we have mechanisms in place to make sure that.

NetworkChuck

If it doesn't get there we can send it again whereas UDP is not as reliable as TCP and it's typically seen as a faster transport method so when it comes to the transport layer these are the two main options we have.

NetworkChuck

And then we have our ports now the destination port here is destination 443 you might recognize this port 443 is reserved for HTTPS traffic you might also be familiar with port 80 which is HTTP traffic again we'll cover more in detail later.

NetworkChuck

But just know that that's what's happening right now so I'll move on down through our layers real quick put our data down here and the transport information we're going to use will slap on as a layer 4 header we'll attach that to our data and inside this header are things like hey we're going to be using TCP and we'll be using port 443.

NetworkChuck

Now what just happened here is important the process of taking our application data and then scooting it on down here and slapping on that layer 4 header.

NetworkChuck

That's called encapsulation this encapsulation process actually happened up here as well the web browser encapsulated whatever johnny wanted to send to the network coffee server which is him saying get me some coffee it's a message saying get me some coffee he encapsulated that into a HTTP header which is our data the way I like to.

NetworkChuck

See this is let's say for example the data is like a message a letter we encapsulate that message into a a HTTP header which is our data when we moved on down to the transport layer we took that data envelope and we put it inside.

NetworkChuck

Another envelope we encapsulated it and this new envelope has our data inside and this is our layer 4 header and that's the way I like to visualize encapsulation we'll keep taking our letters and just putting them inside other other envelopes other letters until we get to the bottom which is our data link and I'll show you oh by the way this message right here.

NetworkChuck

When we have our data encapsulated with a layer 4 header attached we call this message a segment and now we're getting into familiar territory we're at layer 3. Layer 3 again is our network layer and.

NetworkChuck

If you watched our previous video you know that layer 3 we're dealing with iop addresses we're dealing with routers love that stuff so in this layer 3 header we see that we have our source IP address and we have our destination IP address this IP address being johnny's IP address and this IP address being the IP address of the NetworkChuck.coffee server server.

NetworkChuck

So we'll drag our segment down on to layer 3 and we'll encapsulate that segment by adding a layer 3 header and again our layer 3 header is going to contain the IP address information and we're basically telling our router where to send this we're giving our router directions we're saying hey mr router.

NetworkChuck

Here's my source IP this is who the the message is from which is 10.1.1.3 and then the destination IP address which was 23.227.38.65 now let's test your memory you would have learned this from the last video what is this new message we have what is it called what do we call that.

NetworkChuck

If you said packet you're absolutely right a packet has all the layers above it the transport session presentation application all those layers encapsulated with a layer three header telling the router hey.

NetworkChuck

Here's where you send this info and now we're at layer two almost there layer two is our data link layer with data link our layer two we're dealing with MAC addresses we're giving our switch directions to the.

NetworkChuck

Next stop that our information is taking in this case it'll be our router here we have the the MAC address of johnny's laptop and here we have the MAC address of the router so.

NetworkChuck

Now I'll move down our packet into layer two and we'll slap on our layer two header and layer two also have a trailer as well and this will encapsulate it into a message that we call well what do we call it what do we call messages that deal with layer two that deal with MAC addresses and switches.

NetworkChuck

If you set frames you gotta this message is indeed a frame a frame has all these layers encapsulated down and inside these layer two headers we have the directions for the switch telling the switch where to send his message.

NetworkChuck

So in this case we have the source MAC address which is johnny's MAC address and then we have the next stop the destination which is our router and that's pretty much it we've encapsulated all the layers down to a frame and.

NetworkChuck

Now we can send that frame over the physical layer the Ethernet cable so he hits the wire and boom and actually he's up here so he goes from johnny to the switch let's watch it happen in Packet Tracer.

NetworkChuck

If we step forward in time we see that frame go to the switch if we open up that frame we're only seeing layer one and layer two because the switch can't see anything else all these layers right here have been encapsulated down into this frame and.

NetworkChuck

When the switch receives his frame he's got this bulky envelope envelope but he only opens the first envelope and he opens it up and goes oh well it's going to this MAC address which.

NetworkChuck

If I look in my CAM table my MAC address table I can see that MAC address belongs to this port I'm going to send it out this port that's where the router is see right here he looked it up and fast Ethernet 06 is the port that the router belongs to.

NetworkChuck

Let's step forward in time and watch it happen boom it goes out to the router and boom it also does it here if we open up that message the router did indeed receive a frame and he made sure that it was for him it came to his MAC address he will then do the opposite of encapsulation he'll de-encapsulate it which basically means he opens the.

NetworkChuck

Next envelope to see what the next layer says so he takes a peek at layer 3. At this point we're dealing with the packet with the layer 3 header the layer 4 header and the data the router looks at the layer 3 header sees where it needs to go what is the destination IP address looks in his routing table he's like yeah I know where that goes I've got my map I'm a layer 3.

NetworkChuck

Guy and he then proceeds to send it out to the switch switch now something important happens here remember the switch can only deal with layer 2. If you recall from our previous videos the router has to somehow tell the switch how to get to networkcheck.coffee he has to tell him his MAC address otherwise the switch will have no idea where to send.

NetworkChuck

It because he can't see IP addresses so after the router learns the MAC address of NetworkChuck.coffee using ARP he encapsulates his layer 3 header which is the IP address information inside a new layer 2 header and he changed the source and destination MAC address address and he had to change it.

NetworkChuck

Because before the message he received the source MAC address was johnny and the destination was himself now he has to change it to being the source is himself and the destination is NetworkChuck.coffee.

NetworkChuck

So he encapsulates that it's now a layer two frame and he sends it off to the switch we'll step forward in time and pack a tracer here the message arrives at the switch if we open that up here we are again switch eyes we can only.

NetworkChuck

See layer two and layer one the switch looks in his CAM table as MAC address table sees that hey network check dot coffee does indeed live on fast Ethernet zero one one that's where I'm gonna send that sucker.

NetworkChuck

That's where I'm firing the electrical signals and he does that let's watch we step forward in time once more boom the frame goes to NetworkChuck.coffee NetworkChuck.coffee if we open the message up we.

NetworkChuck

Now have all the layers once more and here's what just happened the switch sent this frame to networkcheck.coffee now because the server server that runs networkcheck.coffee was built obeying the guidelines of the tcpip model.

NetworkChuck

When it receives a frame it knows exactly what to do it'll first do exactly what the router did look at the layer 2 header make sure that hey this is actually for me it's my MAC address hey cool he'll take a.

NetworkChuck

Look at the layer 2 header he'll open up that message and go oh yeah this is my MAC address it's to me awesome he'll then de-encapsulate or open up the next message and look at the layer 3 header and go huh.

NetworkChuck

Look it's for me too this is my IP address address awesome he'll then de-encapsulate it once more opening up the layer 4 message and going oh hey we're using TCP oh and awesome I love 443 443 reasoning port 443.

NetworkChuck

And then he sends it up to the next layer and then finally the last layer the application layer opens up that last message and goes oh it's for me HTTPS it's browser information information it's website stuff awesome.

NetworkChuck

So real quick a thousand foot view what johnny had to do is he had to use the entire TCP IP suite encapsulating all this stuff down into a frame frame and then he sends this frame across the physical network across Ethernet cables and such touching each device a switch a router.

NetworkChuck

Another switch and then finally arriving at networkchalk.coffee NetworkChuck.coffee took that frame and then de-encapsulated the entire thing to look inside and see what was meant for the web browser the application information of course in this case the data was a request for his web server johnny's wanting to buy some coffee and johnny's.

NetworkChuck

Like hey I'm trying to get to the homepage of networkcheck.com can you give me the home page so I can shop so the web server reads that request which is inside the data and the whole process starts over again the networkcheck.cof server encapsulates all the information into a frame sends that to the switch the switch sends it to the router the router to the switch the.

NetworkChuck

Switch to johnny and this is what johnny receives all right quiz time I hope you have your copy ready because these questions I chose are kind of difficult one is from the old CCNA and one is from the the old CCNP route exam.

NetworkChuck

So let's see what you got you got let's go question number one which of the following functions are performed by the application layer of the OSI model select three choices.

NetworkChuck

Now if you just started studying networking this could be a difficult question for you but when I encounter a difficult test question I start with the process of elimination.

NetworkChuck

So let's take out things that we know have nothing to do with the application layer which again is layer seven looking at this I think d is probably not it at all managing logical and physical addressing.

NetworkChuck

When I hear that I think MAC addresses layer 2 definitely not layer 7. Another one that you might pick up on is that b is probably not the answer either ensuring error-free data delivery between devices this makes me think transport layer and specifically TCP TCP gives us reliable delivery of our packets.

NetworkChuck

Packets of our data so now we're down to four choices and I'm gonna go ahead and select the right answers and I'll explain why a c and e.

NetworkChuck

Let's see if I'm right boom now here's the tricky part though this is correct for the OSI model so these three three options are absolutely applicable to layer seven the one we didn't select down here the one we didn't eliminate.

NetworkChuck

This is part of the presentation layer which is layer six but as part of the TCP model layer six layer seven and even layer five are all clumped together in the application layer and.

NetworkChuck

If we had talked about the presentation layer in detail you would have known that this is not it but we didn't so it's okay if you didn't get this now c and e we probably could have just guessed that without having even known anything about layer seven managing communications between applications directing data to the correct program programs.

NetworkChuck

Another word for applications a would have been a bit more fuzzy but just from the process of elimination we would have got that one question number two which of the following relies on a three-way handshake in order to provide connection-oriented reliable reliable data transfer between networked computers.

NetworkChuck

Computers select the best answer now again this is a question that has terms you have not learned yet or possibly one of those being the three-way handshake we haven't talked about that yet.

NetworkChuck

But through the process of elimination we can look at these answers and go huh that's probably not that so for example ARP ARP when we talked about routers and switches we learned what ARP does it's how a host on a network can find out what MAC address belongs to a certain IP address.

NetworkChuck

So that's not it we can mark off a DNS we saw what that was in our router video DNS helps us map a friendly name like Netflix.com or NetworkChuck.coffee to an IP address.

NetworkChuck

So that's not it and then down here even though it looks kind of weird rarp it stands for reverse ARP and it's ARP and reverse you got the MAC address.

NetworkChuck

But you want to find the IP address so that's not it now we have two options and we just learned about these didn't we TCP and UDP are two of the main protocols we can select.

NetworkChuck

When we are using the transport layer now out of those two options which of them do you think provide connection oriented oriented reliable data transfer well UDP no it's fast.

NetworkChuck

But it's not reliable reliable TCP yeah it is if we select this answer and see if we're right we are right now if you got that right.

NetworkChuck

That's impressive that's a CCNP level question from the old ccmp route and the route exam I failed that three times three no two times times it was a tough exam well guys.

NetworkChuck

That's about it if you like this video hit that like button if you have any questions or comments or need help with the CCNA comment below or jump into my discord server I got a link below for that as well.

NetworkChuck

If you want to see more stuff like this more courses check out this is it.I o it's a collaboration between myself and david bomble it's pretty cool go check it out link below and that was episode four the OSI model the TCP IP model we saw what happened we saw it happen in real time in the coming videos we're going to explore them a bit more jumping into the upper layers the application.

NetworkChuck

The presentation the session the transport we're going to dive deeper into those layers and yeah that's it I'll catch you guys later later [Music].

NetworkChuck

Foreign.

Keyboard shortcuts

Shortcuts are ignored while you are typing in a search box, note field, or the scratchpad.

Playback

SpaceK
Play or pause
←→
Seek 5 seconds
JL
Seek 10 seconds
C
Toggle in-video captions

Scrubber (when focused)

←→
Seek 5 seconds
Shift←/→
Seek 10 seconds
Page UpPage Down
Seek 30 seconds
HomeEnd
Jump to start or end

Flashcards

Space
Reveal the answer
1234
Grade Again / Hard / Good / Easy

Navigation

←→
Move between study-mode tabs
HomeEnd
First or last study-mode tab
?
Open or close this sheet