The OSI Model: Part 4 - Transport Layer
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
35 hours 25 minutes
Difficulty
Advanced
Video Transcription
00:01
>> We now find ourselves at layer
00:01
4 of the OSI reference model,
00:01
and that is the transport layer.
00:01
The transport layer is going to be
00:01
responsible for end to end delivery,
00:01
and it's going to determine whether or not we have
00:01
reliable or unreliable delivery.
00:01
We're going to look at each of those elements.
00:01
But the phrase I really want you to have for layer 4
00:01
is end-to-end data transport services.
00:01
This ultimately is what establishes
00:01
the connection between the computer systems,
00:01
and all upper layer protocols
00:01
are going to piggyback on a layer 4 protocol.
00:01
Here, we get that connection of, hey,
00:01
let's communicate, I'm ready to communicate as well.
00:01
We have to have that means
00:01
of determining that a communication is
00:01
going to happen and that's
00:01
what transport layer protocols do.
00:01
I always think of this again as
00:01
the pony express layer of the OSI model.
00:01
Upper layer protocols and services piggyback
00:01
on one of the layer 4 protocols.
00:01
Now, SSL and TLS that
00:01
we talked about in the cryptography domain,
00:01
those work between layers 4-7.
00:01
Now, I've seen them placed at layer 4,
00:01
but I really think the better answer is to say
00:01
they work from layers 4-7.
00:01
Those could be, but the main protocols at
00:01
layer 4 are TCP and UDP.
00:01
Let's look at TCP first.
00:01
Connection oriented, guaranteed delivery,
00:01
reliable, those are
00:01
phrases you're going to associate with TCP.
00:01
Let me give you an example.
00:01
Let's say I'm an administrative assistant
00:01
and I get a phone call for Janita.
00:01
I can pick up the phone and say,
00:01
"Janita, you have a call on line 1."
00:01
I can hang it up and I can go to lunch.
00:01
I did my job right out threw the message out there.
00:01
Hope you get it, but I'm going,
00:01
I did that for speed.
00:01
Now an alternative to that is I
00:01
can dial Janita's extension.
00:01
Say, "Hey, can you take a call?"
00:01
Janita comes back and says,
00:01
''Yes, I'd be happy to take the call.''
00:01
I say, "Okay, here's your call."
00:01
She says, "Thank you for sending me the call."
00:01
I say, "Okay, I'm going to send you another call."
00:01
Now. I make sure that she gets the message.
00:01
But there's a lot of back and forth, so that's slower.
00:01
Just like always, we trade speed for guaranteed delivery,
00:01
better security, more reliability.
00:01
TCP guaranteed delivery uses a process called
00:01
handshaking.. Handshaking with TCP
00:01
is known as a three-way handshake.
00:01
The very first communication that says, ''Hey,
00:01
let's talk'' is to synchronize.
00:01
The client, sends the server a
00:01
send message SYN for synchronize,
00:01
that basically says, "Hey, I want to communicate."
00:01
The server comes back and says SYN-ACK,
00:01
I acknowledge you want to communicate,
00:01
that's fine with me.
00:01
Then the client sends back
00:01
an ACK that said here we are communicating.
00:01
That handshake process takes time,
00:01
but it makes sure that we're configured to send and
00:01
receive and it makes sure that what I
00:01
sent you is what's received.
00:01
TCP uses
00:01
a three-way handshaking process to guarantee delivery.
00:01
I'll just let you appreciate that cartoon,
00:01
no narration needed.
00:01
Now UDP, on the other hand,
00:01
connectionless, unreliable, no handshaking.
00:01
With UDP, just transmit the data, hope you get it.
00:01
I don't know if you did.
00:01
Don't care, it's time for lunch.
00:01
It's designed to be fast, quick.
00:01
Now you may be asking yourself,
00:01
how do I determine whether I want to use TCP or UDP?
00:01
The answer is you don't determine that.
00:01
But if I were a developer writing a network application,
00:01
I've got to decide do we want to use TCP or UDP.
00:01
The majority of times our developer wants to use
00:01
TCP because it incorporates
00:01
the function that I wouldn't
00:01
necessarily need for communication.
00:01
If I choose instead to use UDP,
00:01
I'm going to have to add additional functionality
00:01
into my application.
00:01
But I may do that when speed is essential.
00:01
Anytime you're looking at real-time transfer,
00:01
UDP is generally going to be preferable.
00:01
When you think about media streaming especially,
00:01
UDP is more desirable.
00:01
If you've ever set somewhere and you're watching a movie,
00:01
and then it goes to buffering, then you know,
00:01
UDP where we get as best performance as
00:01
possible as opposed to
00:01
a slower transfer of data, that's what we want.
00:01
Now, lifetime chat, gaming,
00:01
anything that has to be
00:01
real time or what we sometimes call
00:01
near real-time that's probably going to use UDP.
00:01
Just to mention, most people have heard
00:01
of FTP, file transfer protocol.
00:01
Its job is to transfer files
00:01
from an FTP server to a client.
00:01
TCP is reliable, has guaranteed delivery,
00:01
though it's a little bit slow,
00:01
that's because FTP piggybacks on TCP.
00:01
Now FTP has a cousin that's still transfers files,
00:01
but it's designed for larger files and has to be fast.
00:01
That's called TFTP,
00:01
trivial file transfer protocol and
00:01
TFTP piggybacks on UDP.
00:01
I'm going to give you the best joke ever.
00:01
What's the best thing about a UDP joke?
00:01
I don't care if you get it or not [LAUGHTER].
00:01
Wiping the tears from my eyes.
00:01
That's a great joke folks,
00:01
and that is your value added reason to choose Cybrary.
00:01
Where else are you going to get comedy gold like this?
00:01
Nowhere. That wraps up the transport layer,
00:01
layer 4 of the OSI model.
00:01
We talked about TCP versus UDP.
00:01
We talked about TCP being reliable,
00:01
giving guaranteed delivery, whereas
00:01
UDP is unreliable, but it's fast.
Up Next
Instructed By
Similar Content