YouTube2Text

4.1 Introduction to the Network Layer — Transcript

by JimKurose · 2,548 words · 390 segments · language en · Watch on YouTube

Full transcript

  1. 0:00[Music]
  2. 0:09well having covered the application
  3. 0:11layer and the transport layer which
  4. 0:12really happened at the edge of the
  5. 0:14network we're ready now to dive into the
  6. 0:16network core and to take a look at the
  7. 0:18network layer itself now this is always
  8. 0:21one of the most fun and interesting
  9. 0:23topics to both teach and learn about in
  10. 0:25networking because the network layer is
  11. 0:28implemented in each and every internet
  12. 0:31connected device that's billions and
  13. 0:33billions of hosts and routers and this
  14. 0:35makes it among the most interesting and
  15. 0:37the most challenging to teach really if
  16. 0:39there's any such thing as the glue that
  17. 0:42holds the Internet together it's really
  18. 0:44the network layer so I think you're
  19. 0:45going to enjoy learning about things in
  20. 0:48this chapter now as it turns out we're
  21. 0:50going to break our study of the network
  22. 0:51layer into two parts we're going to
  23. 0:54start with what's called the data plane
  24. 0:56this corresponds to chapter four in our
  25. 0:59book the data plane is about the local /
  26. 1:02router actions primarily forwarding
  27. 1:04moving a Datagram from an input link to
  28. 1:07an output link at a router the second
  29. 1:10part of the network layer that we're
  30. 1:11going to study is known as the control
  31. 1:13plane and the control plane is really
  32. 1:15about the network wide view the
  33. 1:17end-to-end view of getting packets from
  34. 1:20the edge of the network one edge of the
  35. 1:21network to the other edge of the network
  36. 1:23the coordination and the management of
  37. 1:25all of the devices that are in the
  38. 1:27Internet well here's what we're going to
  39. 1:29study in our coverage of the data plane
  40. 1:31we're going to start off by the big
  41. 1:33picture view of the network layer itself
  42. 1:35and then we're going to dive down into a
  43. 1:38router and look at what actually takes
  44. 1:39place inside an Internet router well
  45. 1:42look at the guts of an Internet router
  46. 1:45well then cover the celebrated Internet
  47. 1:47Protocol IP well look at the IP Datagram
  48. 1:49header we'll take a look at IP
  49. 1:51addressing and quite a bit of detail
  50. 1:53we'll take a look at network address
  51. 1:56translation and also a next generation
  52. 1:58of IP known as IP v6 will then look at
  53. 2:03the topic of generalized forwarding
  54. 2:05that's sort of on beyond Datagram
  55. 2:07forwarding that'll be a bit of a prelude
  56. 2:10to what we'll cover in the control plane
  57. 2:12coming up next after this and then
  58. 2:15finally we'll wrap up with a discussion
  59. 2:17of what are known as
  60. 2:18boxes throughout our discussions here
  61. 2:21will cover both principles and practices
  62. 2:23as always so let's get started all right
  63. 2:28well let's begin our study of the
  64. 2:30network layer as we have with other
  65. 2:32layers by taking a services point of
  66. 2:34view why does the network layer exist
  67. 2:37what does it do what services does it
  68. 2:39provide to the transport layer above it
  69. 2:41and since we're jumping into the network
  70. 2:43layer having finished the transport
  71. 2:45layer let's start there
  72. 2:46at the edge of the network at the
  73. 2:49sending host the network layer we'll
  74. 2:50take a transport layer segment from UDP
  75. 2:53or TCP and encapsulate the segment into
  76. 2:56an IP Datagram will study the format of
  77. 2:58the IP Datagram shortly it'll include
  78. 3:01some network wide addressing information
  79. 3:03will cover IP addresses in great detail
  80. 3:06and then passes the data gram on to the
  81. 3:08link layer which will be responsible for
  82. 3:11transmitting the data gram to the next
  83. 3:13hop at the receiving host the network
  84. 3:16layer receives data gram checksum
  85. 3:18information like a checksum extracts the
  86. 3:20payload and the multiplex is a segment
  87. 3:23up to the appropriate upper level
  88. 3:25transport protocol UDP or TCP well
  89. 3:28that's what happens at the edge of the
  90. 3:30network but that's not what's really
  91. 3:32interesting about the network layer the
  92. 3:34real action is in the network core and
  93. 3:36there's a network layer component in
  94. 3:38each and every device in the network
  95. 3:40core well indeed in each and every
  96. 3:43device that's even part of the Internet
  97. 3:45well as we know routers are the
  98. 3:48principal network layer devices within
  99. 3:50the network core and the routers job is
  100. 3:53pretty simple it receives data grams
  101. 3:55from our neighboring host or router on
  102. 3:57an input link and it forwards that data
  103. 4:00gram to the appropriate outgoing link
  104. 4:02well that's a pretty simple statement
  105. 4:05but think about all the questions it
  106. 4:07raises there's a local issue how does
  107. 4:09the router know which is the quote
  108. 4:11unquote appropriate outgoing link for an
  109. 4:14arriving data gram and then there's the
  110. 4:16global issue which is even more
  111. 4:18interesting how do the collective
  112. 4:20forwarding actions of routers how are
  113. 4:22they coordinated to make sure that a
  114. 4:24Datagram follows a good end end path
  115. 4:27from source host to destination host
  116. 4:29through
  117. 4:30some set of the hundreds of millions of
  118. 4:32routers that are in the internet well
  119. 4:34when we're done with a network layer
  120. 4:36you'll know the principles and the
  121. 4:38practices behind the answers to these
  122. 4:40questions and more so let's get going
  123. 4:42this distinction between local versus
  124. 4:45global considerations is a good one for
  125. 4:48us to keep in mind local means a
  126. 4:50decision or an action that's made at an
  127. 4:52individual router where as global means
  128. 4:54sort of end end or network wide and we
  129. 4:58see this distinction very clearly in the
  130. 5:00network layers to key functions the
  131. 5:03first important function is forwarding
  132. 5:06forwarding is the router local action of
  133. 5:09moving packets from over outers input
  134. 5:11port to one of its output ports this
  135. 5:14typically happens at a nanosecond time
  136. 5:16scale and is implemented in hardware the
  137. 5:19second key function is that of routing
  138. 5:21and that's a network-wide activity of
  139. 5:23determining the route that's taken by
  140. 5:25packets from sources to destination host
  141. 5:28routing takes place on a much longer
  142. 5:30time scale typically seconds and we'll
  143. 5:33see that it's often implemented in
  144. 5:34software and a good analogy for this
  145. 5:37difference between forwarding and
  146. 5:39routing is the example of taking a trip
  147. 5:41say by a car you could think of
  148. 5:43forwarding as the process of getting
  149. 5:45through a single interchange say going
  150. 5:48through a roundabout or an intersection
  151. 5:50and routing is the process of planning
  152. 5:53and taking a trip all the way from the
  153. 5:55source city to the destination city
  154. 5:57passing through many intersections so as
  155. 6:02you may have noticed the network layer
  156. 6:03is really so big and complex that it
  157. 6:05doesn't really fit into just a single
  158. 6:08chapter in our textbook as it turns out
  159. 6:11earlier versions had just a single
  160. 6:12chapter on the network layer but it was
  161. 6:14always the largest chapter and with the
  162. 6:17introduction of Software Defined
  163. 6:18Networking which we'll take a look at
  164. 6:20here and then cover in detail later the
  165. 6:23network layer really just got too big to
  166. 6:25fit into one chapter so now our study of
  167. 6:27the network layer is going to be split
  168. 6:29across two chapters and two broad topics
  169. 6:32the first topic is what we'll call the
  170. 6:34data plane this is going to be a focus
  171. 6:37on per router per IP device local phone
  172. 6:42and in the case of the router this is
  173. 6:44really going to be the issue of how is a
  174. 6:46packet moved from an input port to the
  175. 6:48appropriate output port the second piece
  176. 6:52of the network layer is going to be the
  177. 6:53control plane and this is the network
  178. 6:56wide logic that determines the data
  179. 6:58grams path from source to destination
  180. 7:00it's also our network management and
  181. 7:02device configuration management come
  182. 7:04into play we'll study two different
  183. 7:07approaches towards implementing the
  184. 7:09control plane the first is what we might
  185. 7:11call the traditional approach and this
  186. 7:14uses distributed routing algorithms to
  187. 7:16determine paths the second approach for
  188. 7:18implementing the control plane the newer
  189. 7:20approach is what's called
  190. 7:22software-defined networking we'll learn
  191. 7:24about these approaches in its tail a bit
  192. 7:27later but here are a few illustrations
  193. 7:29to help you get a general feel for the
  194. 7:31two different frameworks here's how the
  195. 7:34traditional per router control plane
  196. 7:36approach works inside every router is a
  197. 7:39local forwarding table as shown here a
  198. 7:41router operates by matching bits in a
  199. 7:44Datagram header with a table entry in
  200. 7:46the forwarding table that specifies the
  201. 7:49appropriate output link to which this
  202. 7:51data gram should be forwarded so the
  203. 7:54real question we should be asking
  204. 7:55ourselves is how do these local
  205. 7:58forwarding tables get computed well
  206. 8:01there are a number of ways to do this
  207. 8:02for example they could be entered by
  208. 8:04hand by a network manager into the table
  209. 8:08at a network router and actually that's
  210. 8:10how forwarding tables were initially
  211. 8:12configured way back in the day but with
  212. 8:15hundreds of millions of routers spread
  213. 8:16all around the globe now that's not
  214. 8:18possible and so nowadays of course
  215. 8:20forwarding tables are computed rather
  216. 8:23than hand configured and how they're
  217. 8:26computed is the difference between the
  218. 8:28traditional routing algorithm approach
  219. 8:30and the Software Defined Networking
  220. 8:32approach to the control plane in the
  221. 8:36traditional routing approach Illustrated
  222. 8:38here a distributed routing algorithm
  223. 8:40runs in all of the network routers a
  224. 8:42piece in every network router the
  225. 8:45routing algorithm function in one router
  226. 8:47communicates with the routing algorithm
  227. 8:49functions in other routers to compute
  228. 8:52the values in these forwarding tables
  229. 8:54the second approach to the network
  230. 8:56control plane is known as Software
  231. 8:58Defined Networking or Sdn here a
  232. 9:01physically separate remote controller
  233. 9:03software process computes and
  234. 9:05distributes the forwarding tables to
  235. 9:08used by each and every router under its
  236. 9:10control the remote controllers typically
  237. 9:13implemented in a remote data center or
  238. 9:15set of servers that have high
  239. 9:17reliability and redundancy now the
  240. 9:20router still performs its local data
  241. 9:22plane service forwarding as before and
  242. 9:25says that is received its local
  243. 9:27forwarding table from the Sdn controller
  244. 9:30rather than having computed it itself
  245. 9:33let's wrap up our introduction to the
  246. 9:36network layer by discussing the service
  247. 9:38model for data Graham delivery by the
  248. 9:40network layer from sending host to
  249. 9:42receiving host what are the properties
  250. 9:44of this service and you see a bunch of
  251. 9:47different possible properties listed
  252. 9:49here for an for instance guaranteed
  253. 9:51delivery the network layer might
  254. 9:53guarantee that a packet sent by a source
  255. 9:55host will eventually arrive at the
  256. 9:57destination host that is the network
  257. 10:00layer is responsible for reliable data
  258. 10:02Graham delivery rather than say at the
  259. 10:04transport layer as we've seen there
  260. 10:06might be guaranteed delivery with
  261. 10:08bounded delay so that the service not
  262. 10:10only guarantees delivery of the data
  263. 10:12Graham but says hey I'm going to deliver
  264. 10:14this data Graham with a specified host
  265. 10:17host delay bound for instance less than
  266. 10:1940 milliseconds there are ordering
  267. 10:21considerations while packets be
  268. 10:23delivered to the transport layer in the
  269. 10:25order in which they're sent and when we
  270. 10:27think about flows of packets we might
  271. 10:29ask whether or not a flow might be
  272. 10:31guaranteed a minimum amount of bandwidth
  273. 10:33from source to destination well with all
  274. 10:38of these options you might wonder what
  275. 10:40is the Internet's service model well the
  276. 10:43Internet's network layer service model
  277. 10:46is known as best effort service and as
  278. 10:48you can see from the first line in this
  279. 10:50table under best effort service
  280. 10:52transmitted packets are not even
  281. 10:55guaranteed to be delivered much less to
  282. 10:57be delivered with bounded and and delay
  283. 10:59or was some kind of minimum bandwidth
  284. 11:02guarantee and you might even think of
  285. 11:05best effort service as a euphemism for
  286. 11:07no service at all a network that
  287. 11:09delivered no packets to the destination
  288. 11:11would satisfy the definition of best
  289. 11:13effort service delivery that we see here
  290. 11:15but this best effort service model is
  291. 11:18the Internet's network layer service
  292. 11:20model and it's hard to argue with the
  293. 11:24success that's been achieved with this
  294. 11:26minimalist service model and as you can
  295. 11:30see here in the rest of this table many
  296. 11:32different network architectures have
  297. 11:34been proposed and implemented and even
  298. 11:37deployed a lot of this research happened
  299. 11:39in the 1990s that provide very
  300. 11:41sophisticated quality of service classes
  301. 11:44imagine being able to watch a video and
  302. 11:46never seeing a spinning wheel say when a
  303. 11:49video play out is stalled that was the
  304. 11:51idea for example behind asynchronous
  305. 11:53transfer modes ATM constant bit rate
  306. 11:57service that the end-to-end path would
  307. 11:59behave essentially like a wire and there
  308. 12:02were proposed extensions to the
  309. 12:04Internet's best effort service that
  310. 12:05would have allowed quality of service
  311. 12:07guarantees to be made in the context of
  312. 12:09the Internet these were standardized and
  313. 12:11RFC's and are actually built and
  314. 12:13deployed in routers today but in truth
  315. 12:16they're not really used and you might
  316. 12:18ask yourself why is that
  317. 12:22well let's wrap up our introduction to
  318. 12:25the network layer with a few closing
  319. 12:26thoughts about the Internet's the
  320. 12:29network layer service model best effort
  321. 12:32service and probably the most important
  322. 12:34observation to make is that the
  323. 12:36simplicity of this service model played
  324. 12:39an incredibly important role in the
  325. 12:41widespread deployment and adoption of
  326. 12:43the Internet it's incredibly easy to add
  327. 12:46a new host to add a new network and
  328. 12:49relatively simple to maintain and manage
  329. 12:52an IP network as well this was certainly
  330. 12:55not true of integrated services digital
  331. 12:57networks and ATM networks which were
  332. 13:00competitive competitor network
  333. 13:02technologies at the time secondly the
  334. 13:08provisioning of adequate amounts of
  335. 13:10bandwidth that is that the network has
  336. 13:12enough capacity has allowed the
  337. 13:14performance of today's real-time
  338. 13:16services for instance voice and video to
  339. 13:19work well enough works good enough most
  340. 13:22of the time this didn't used to be the
  341. 13:25case when you couldn't even purchase for
  342. 13:27instance transmission capacities for the
  343. 13:29internet that could carry high quality
  344. 13:31voice and video now you can and now
  345. 13:34there's enough capacity in the network
  346. 13:37so that these applications generally
  347. 13:39under a best-effort service model run
  348. 13:41good enough most of the time
  349. 13:49third and I think this is a bit
  350. 13:51underappreciated is the fact that
  351. 13:53there's a tremendous amount of deployed
  352. 13:56application level distributed
  353. 13:58infrastructure in place to provide a
  354. 14:01service to a customer and that service
  355. 14:04might be provided from lots of different
  356. 14:05locations in the internet just think of
  357. 14:08the example of Netflix that we countered
  358. 14:11in Chapter two in the amount of
  359. 14:13application level infrastructure that's
  360. 14:15provided there to deliver the Netflix
  361. 14:17services to customers this tremendous
  362. 14:21rise in the amount of distributed
  363. 14:23application level infrastructure I think
  364. 14:25has really been critical to the success
  365. 14:28of best-effort service and actually one
  366. 14:31might say that the need for this kind of
  367. 14:33infrastructure arose because of the
  368. 14:36given best effort service model that was
  369. 14:39in place
  370. 14:41and then finally for some types of
  371. 14:43service like email and the web we've
  372. 14:45seen that TCP congestion control can
  373. 14:48back off in the face of congestion and
  374. 14:50that too has played an important role
  375. 14:52you know to summarize I think that we as
  376. 14:55engineers sometimes focus a bit too much
  377. 14:57on the detailed mechanism that we lose
  378. 15:00sight of the big picture questions such
  379. 15:03as the service model and yet the more I
  380. 15:05think about it the more I realized that
  381. 15:07getting the right service model was one
  382. 15:09of the most important decisions made in
  383. 15:11the original design of the Internet
  384. 15:15well a big picture of you doesn't get
  385. 15:18much bigger than that and so next we're
  386. 15:20going to jump from this high-level
  387. 15:22big-picture view down into the details
  388. 15:25of how an individual router works that's
  389. 15:27coming up next
  390. 15:33[Music]

About this transcript

This page contains the full transcript of 4.1 Introduction to the Network Layer by JimKurose, generated from the public captions YouTube serves with the video. The transcript has 2,548 words across 390 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.