6.1 Introduction to the Link Layer — Transcript
Full transcript
- 0:00[Music]
- 0:10well welcome to the link layer
- 0:12we're now down at the lowest layer of
- 0:14the protocol stack that we're going to
- 0:15cover
- 0:16in this class and we're going to see a
- 0:18number of topics that we've encountered
- 0:20already
- 0:20such as reliable data transfer and flow
- 0:23control
- 0:24of course now between directly connected
- 0:26nodes
- 0:27but we've studied these topics before so
- 0:29we've got a good feeling for them and we
- 0:30won't need to cover them in depth here
- 0:32but we're also going to cover a lot of
- 0:34new and interesting topics
- 0:36such as the multiple access problem
- 0:39local area networks
- 0:40addressing now with the link layer and
- 0:42data center networks
- 0:44of course we're going to cover the
- 0:45instantiation the principles that we
- 0:48learn
- 0:48in practice protocols such as ethernet
- 0:51that we've heard about
- 0:52the address resolution protocol arp and
- 0:54multi-protocol label switching
- 0:56mpls so there's a lot for us to cover i
- 0:59think you're going to find it
- 1:00interesting so let's get going
- 1:02well let's start off our study of the
- 1:04link layer by laying out our goals
- 1:06of course as always we're going to want
- 1:08to look at both principles and practice
- 1:10so let's start with principles well
- 1:12we've already studied
- 1:13error detection we looked at the
- 1:15internet checksum earlier in the
- 1:17transport layer
- 1:18in the link layer we're going to study
- 1:20much more powerful
- 1:21error detection and correction
- 1:23techniques as well
- 1:25the heart of the principles that we're
- 1:26going to take a look at coming up next
- 1:28is the multiple access problem how do
- 1:30multiple nodes
- 1:32share a common communication channel
- 1:34this to me is another
- 1:36top 10 problem in networking and i think
- 1:38you're going to find that really
- 1:39interesting
- 1:40and of course we want to look at the
- 1:41issue of addressing now in the context
- 1:43of the link layer
- 1:44in terms of practice we're going to look
- 1:46at some link layer protocols including
- 1:48ethernet
- 1:49virtual local area networks
- 1:51multi-protocol label switching and then
- 1:53finally data center networking as well
- 1:56so that's what we're going to be
- 1:57covering roughly in that order
- 1:59so let's get started well let's start
- 2:02off by defining some link layer
- 2:04terminology depicted over here in the
- 2:06diagram on the right
- 2:08well of course we see the hosts and the
- 2:10routers that we've seen throughout this
- 2:11course and we'll refer to them simply as
- 2:14nodes here in the context of the link
- 2:16layer the role of the link layers to
- 2:18serve as a communication channel
- 2:20directly connecting to physically
- 2:23adjacent nodes
- 2:24and we'll want to parse that statement
- 2:26quite carefully and discuss what we mean
- 2:28by directly connecting and
- 2:30physically adjacent two nodes might be
- 2:33directly connected by a physical wire or
- 2:35by a wireless link with one host
- 2:37on each end that's simple or by a local
- 2:40area network
- 2:41the critical thing to remember here is
- 2:43that the link layer connects
- 2:45two nodes without any intervening
- 2:48layer three that's to say network layer
- 2:51router well maybe you just got a
- 2:53flashback when i said
- 2:54no intervening layer 3 router you may
- 2:57recall when we were studying
- 2:59subnets network layer addressing and
- 3:01interfaces
- 3:02back in section 4.3 let's flash back to
- 3:05this slide here from section 4.3
- 3:08we ask then how are interfaces connected
- 3:11well we're going top down we're in
- 3:12chapter 4
- 3:14the network layer and we said well we'll
- 3:15learn about that later in chapter six
- 3:17well
- 3:18here we are in chapter six and now we
- 3:20can be more precise
- 3:22now we can say that interfaces as shown
- 3:25here
- 3:26the diagram are connected by the link
- 3:28layer
- 3:29and that link layer can be a physically
- 3:31connected wire
- 3:32or wireless link but it can also be
- 3:35a link layer with interconnected link
- 3:37layer switches
- 3:38which we'll refer to as a local area
- 3:40network or a lan
- 3:42or the link layer can consist of
- 3:44wireless access points and
- 3:46nodes as we'll see in chapter 7. but the
- 3:49key thing here is that there are no
- 3:51layer 3 that is network layer routers
- 3:53between two nodes
- 3:54that are connected at the link layer the
- 3:57link layer consists of links and
- 3:58switching possibly
- 4:00that will switch layer 2 frames but a
- 4:02link layer has no
- 4:04layer 3 routers well let's return now to
- 4:08our link layer vocabulary where the last
- 4:10important definition is that of a frame
- 4:12which is the layer 2 packet or protocol
- 4:14data unit for the link layer
- 4:16frame will typically encapsulate an ip
- 4:19datagram
- 4:20as its payload in an internet setting
- 4:23well we can summarize by saying that the
- 4:25link layer
- 4:26has the responsibility of transferring a
- 4:28datagram from one node to a physically
- 4:30adjacent node
- 4:32over a link and we should realize that
- 4:34pretty much every word in that statement
- 4:36is important
- 4:38now let's put the link layer into the
- 4:40larger end-to-end
- 4:41context if we're to follow an ip
- 4:43datagram from its initial source to its
- 4:46final destination
- 4:47we could see that along the way it could
- 4:49be transferred
- 4:50by different link protocols over
- 4:52different links on its source to
- 4:54destination journey
- 4:56for example wi-fi on the first link
- 4:58ethernet on the second link
- 4:59and so on and different link layer
- 5:02technologies provide different services
- 5:04and have different characteristics
- 5:06how noisy is the link does the link
- 5:08provide link layer
- 5:09error control or error detection and
- 5:11correction if we take a traveler analogy
- 5:14and say consider a trip from princeton
- 5:16to lausanne and switzerland
- 5:18we're going to take a car to get from
- 5:19princeton to the jfk airport take a
- 5:21plane
- 5:22from the jfk airport to geneva and then
- 5:24take a train from geneva to lausanne
- 5:27in this analogy the tourist would be the
- 5:29datagram who travels from source to
- 5:30destination
- 5:32an individual segment on the end-to-end
- 5:35trip
- 5:36the transport segment would be a
- 5:37communication link each with different
- 5:39services
- 5:40hopefully with reliable transfer and the
- 5:43transportation mode is the link layer
- 5:45protocol here
- 5:48let's next talk about the services that
- 5:50are to be implemented by the link layer
- 5:52like any layer the link layer implements
- 5:54an encapsulation services
- 5:56the case of the link layer link layer is
- 5:58going to take a network layer datagram
- 6:01at its own fields in a header wrapped
- 6:03around the network layer datagram as
- 6:05payload then pass the link layer frame
- 6:08as we'll call it
- 6:09down to the physical layer for bit level
- 6:11transmission across the physical media
- 6:13we're going to encounter a new service
- 6:15at the link layer that we've not seen
- 6:17before
- 6:17media access when multiple nodes need to
- 6:21share the same communication channel
- 6:23their access to that channel needs to be
- 6:26regulated it needs to be coordinated
- 6:28of course there's a protocol for that
- 6:30those protocols are known
- 6:32as multiple access protocols also media
- 6:35access protocols or macs so mac
- 6:38protocols not like
- 6:39mac computers and lastly we'll see that
- 6:42at the link layer there's going to need
- 6:44to be a new addressing scheme as well
- 6:46sort of the bane of our existence as
- 6:49networking students
- 6:50we'll see that the link layer many link
- 6:52layers implement a 48-bit
- 6:54mac layer addressing scheme which is
- 6:57distinct from the 32-bit or 128-bit
- 7:00ip addressing scheme that we've studied
- 7:02earlier mac addresses will
- 7:05only be used in the context of an
- 7:07individual link they won't be used
- 7:09network
- 7:10wide as in the case of the ip addresses
- 7:12that we've studied
- 7:14another service that can be provided by
- 7:16the link layer is reliable delivery of
- 7:18frames between adjacent nodes
- 7:20from a principal standpoint we already
- 7:22know how to do this
- 7:23acts knacks error detection bits timeout
- 7:27and retransmit
- 7:28these are precisely the mechanisms that
- 7:30are used at the link layer
- 7:31now these techniques are seldom used on
- 7:34low bit error links but they
- 7:36are used in wireless links in a number
- 7:38of cases
- 7:40because wireless links are subject to
- 7:42noise and interference and have high bid
- 7:44error rates
- 7:44and you might ask yourself well gee some
- 7:47links provide error control
- 7:49others don't provide error control we do
- 7:51have error control
- 7:52end to end why is it that we've got this
- 7:55sort of mix of
- 7:56local as well as end to end error
- 7:58control
- 8:00some of the other link layer services
- 8:02that are offered by link layer protocols
- 8:04include flow control
- 8:06which we've learned is about speed
- 8:07matching between the sending and
- 8:09receiving sides of a link here
- 8:11making sure that the link layer sender
- 8:13doesn't overflow the link layer buffers
- 8:15on the receiving side
- 8:16there's error detection where more
- 8:18powerful error detection and correction
- 8:21codes
- 8:21more powerful than the internet checksum
- 8:23are used to detect and in some cases
- 8:25correct
- 8:26bit level errors in a frame we're going
- 8:28to study error detection and correction
- 8:30techniques in the following section
- 8:32if errors are detected some link layer
- 8:34protocols like bluetooth and 4g
- 8:36lte cellular links use an acknack
- 8:39re-transmission protocol
- 8:41like we studied in chapter 3 to recover
- 8:43from frame loss
- 8:44and lastly we should note that some
- 8:47links allow for data to be transferred
- 8:49simultaneously in both directions
- 8:51these are called full duplex links while
- 8:54for other links data cannot be
- 8:55transmitted and received at the same
- 8:57time
- 8:58these are called half duplex links
- 9:02so each networked host has a link layer
- 9:05the implementation of a host link layer
- 9:07is particularly interesting because it's
- 9:09here
- 9:10where we're going to see the split
- 9:11between hardware and software
- 9:13part of the link layer is implemented in
- 9:15hardware on chip
- 9:16or in a network interface card which
- 9:18attaches to the host
- 9:20system bus the upper layer parts of the
- 9:22link layer
- 9:23demultiplexing up handling interrupts
- 9:25for example
- 9:26are handled in software in the host's
- 9:28operating system
- 9:30so as we see in the figure here the link
- 9:32layers is where we see the split between
- 9:34network functionality
- 9:36implemented primarily in hardware and
- 9:38the rest implemented in software
- 9:40the lower parts of the link layer and
- 9:42the physical layer are implemented in
- 9:44hardware
- 9:44the upper parts of the link layer and
- 9:46the higher layers of the protocol stack
- 9:48are implemented in software typically
- 9:52and lastly here we can follow the data
- 9:54on the sending side the interface is
- 9:56going to encapsulate the ip datagram
- 9:59in a link layer frame adding error
- 10:01detection correction bits
- 10:03link layers sending and receiving
- 10:05addressing information
- 10:06perhaps fields for sequence numbers and
- 10:08acknowledgments flow control
- 10:10and more all of these are the fields
- 10:12that will allow the link layer to
- 10:14implement its service
- 10:15it then passes the frame to the physical
- 10:17layer for bit level transmission
- 10:19on the receiving side the link layer
- 10:21receives the frame from the physical
- 10:23layer
- 10:24performs error checking flow control and
- 10:26other services
- 10:27then finally removes the payload
- 10:29typically an ip datagram
- 10:31and passes the datagram up to the
- 10:33network layer
- 10:35well that wraps up our introduction to
- 10:37the link layer we've seen that there's
- 10:39some ground
- 10:40we've already covered flow control
- 10:42reliable data transfer
- 10:44addressing bit level error detection
- 10:46with some new takes on these topics
- 10:48but we've also seen that there are a
- 10:50number of new interesting principles
- 10:52and protocols that we'll want to take a
- 10:54look at so let's get started
- 11:12you
About this transcript
This page contains the full transcript of 6.1 Introduction to the Link Layer by JimKurose, generated from the public captions YouTube serves with the video. The transcript has 1,854 words across 337 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.