OSI Model Layers 3 and 4

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
9 hours 49 minutes
Difficulty
Beginner
CEU/CPE
10
Video Transcription
00:05
as we continue our journey of the OSI reference model were up to layer three, the network layer
00:11
At this layer we have IP addressing
00:13
I p address scene is a huge part of networking.
00:17
As a matter of fact, in our entire next chapter, Chapter two is going to cover I p address sing and all the little ins and outs.
00:25
For now, we're going to think of I P addresses like a mailing address.
00:29
If I want to locate you from anywhere in the world, then I can use your mailing address.
00:34
It's very similar with the I P address. Ng
00:37
I P addresses are at Layer three
00:40
routers that use I P addresses to determine where traffic goes earlier three devices as well.
00:46
I don't want to give you a spoiler from a later discussion, but layer three speeches are also layer three,
00:52
so I p routers and layer three switches makeup layer three.
00:57
I also want to add that any protocols beginning with the letter I accept IMAP Mail Protocol or layer three
01:03
i p I C M P I G R P i G M P, I. P sec and on and on and on our layer three.
01:11
This is not a personal challenge for someone to go out and find the I Protocol that operates at Layer five just for our purposes. The protocols that start with the i R. Here at the network layer
01:23
now get
01:25
with my P there is logical addressing.
01:27
You talked about Mac address scene and how it is physical, its burden to the network card and because of the fact that it's bound to the network card. If you take your laptop home, your Mac address won't change.
01:38
But the logical address is going to reference your system based on wherever you are in the planet, because it's a full and complete address that changes based on your location.
01:49
So logical addressing is going to be really important,
01:53
and that's what it does.
01:55
We've got I p Version four i p p. Four, which is what most of us are currently on, and i p v six, which is coming soon.
02:05
Granted, we've heard it's coming soon for the last 15 years, but I'm sure that eventually it's coming soon.
02:10
Some tools that we use to examine our I p configurations R i p con fig and I F conflict, which stands for Interface Con Fig in UNIX and Linux environment.
02:22
There are some other tools we can use, but those are the big ones right now.
02:28
Ping icmp Internet control messaging protocol is the protocol behind Ping and echoing utilities.
02:36
The way these echoing utilities work is a message is sent out and there's a reply back.
02:40
So it's kind of like when you throw a rock at a wall because there's a wall there. The rock bounces back. That's what Ping does.
02:47
Ping is often used to test basic physical connectivity.
02:53
If I paying you, I don't have to worry about if the cable's broken or if the connectors are bad. We've got basic connectivity.
03:00
Ping is a really, really useful tool, but it's also one that is incredibly exploited.
03:05
It's not Ping so much as it is the ICMP protocol.
03:08
It's not paying so much as it is the ICMP protocol
03:13
that's also used for a tool called Tracer, which is within Windows. UNIX has the same tool trace route with Lennox and UNIX systems.
03:22
The job those two tools do is it chases, hops through routers, for instance. I'm going to ping a local computer, one of my network. If I can reach it, great,
03:31
then I'm going to ping a remote computer, which means one on the other side of a router.
03:36
If I can't reach that remote host, I might use trace route so I can see the message. Leaves from me, goes to Router one goes to Router two. Then all of a sudden it doesn't look like it's going to pass Router three.
03:46
That gives me an idea that Router three is the problem.
03:51
So it's good when making sure that all your paths throughout the routes are up and working as they should be.
03:58
Now we're going to come back and talk some more about other Layer three protocols, but let's go ahead and move on to layer four. For now,
04:04
Layer four is kind of like the pony express of all the layers. This is all about end to end transport of data all the way through.
04:13
There are two protocols, particularly that work at later, for for us
04:15
they are TCP and UDP.
04:18
It's important to understand the difference between these two because they're very different protocols.
04:25
TCP is connection oriented,
04:27
reliable but also slow, whereas UDP is connection lists unreliable, but it's fast.
04:34
So when we talk about TCP versus UDP, these are the alternatives
04:40
on the upper layer protocols, and by that I mean application layer protocols and the other protocols and services up at that layer. They will piggyback on either TCP or UDP
04:50
to give you an example. Let's say I'm an administrative assistant and Bob gets a call.
04:56
I pick up the phone, page him and say, Bob, you have a call on line one? Well, I did my job.
05:01
It's quick and easy. I have no idea if Bob got the message, but I don't care because it's lunchtime and I've got things to do.
05:08
That's UDP.
05:09
The message is out there. I've done my part,
05:12
whereas with TCP
05:14
TCP uses a process called handshaking.
05:16
The first step of the handshake is a send packet for synchronize
05:20
basically says that I'm going to send you something.
05:24
Syntax says, Okay, I got what you sent, and then AC, we're good.
05:29
So it's that back forth syn ack ack.
05:32
Now that is obviously going to take more time to have that handshake, but we get reliable delivery that is referred to as a three way handshake.
05:41
This isn't something that you and I would use.
05:43
This would be something that a software developer would build into an application.
05:47
So if they're building a network application, they can choose to use either TCP or UDP.
05:55
UDP is going to give them speed,
05:57
but the stuff that UDP doesn't do would then have to be built into the program through other ways.
06:01
So what that means is, if I choose the speed of UDP, I'm going to have to do more coding as a developer,
06:09
whereas if instead I take advantage of what's there with TCP that saves me some work.
06:15
So it really depends on whether it's speed or reliability that I want.
06:19
UDP is used for things like media streaming, VoIP, Internet relay chat, things that have to be in near real time.
06:28
That's UDP.
06:30
I will also mention ports when we talk about port Numbers were referring to numbers associated with the upper layer protocols.
06:36
For instance, we'll talk about how I p Traffic or I P address ng helps find your systems network,
06:43
and then once we're on your network, we use AARP. Define your Mac address, and that's great.
06:47
But once the data gets to your system and your computer, how does your system know what to do with that data?
06:53
How does your system say, Oh, this is traffic from my Web server. This is male, or is this that or the other?
07:00
The answer to that is in the hunter of a data segment is a little numeric stamp.
07:04
Certain numbers are relegated to certain types of software.
07:08
For instance, there's traffic with a destination port of Port 80. Your system knows that that's Web traffic.
07:15
We'll talk a lot more about ports in just a bit, but again, this is just to give you an idea.
07:20
So there's your handshake,
07:24
the UDP. There's no handshake again. TCP has the three way handshake. That's very important.
07:30
That's the Syn Syn ack ack,
07:33
though its lower it guarantees delivery
07:35
and then, of course, handshakes. Having been so important at one point in time, 2020 is killed. The need for that now so TCP may be out of business
Up Next