YouTube2Text

Hub, Bridge, Switch, Router - Network Devices - Networking Fundamentals - Lesson 1b — Transcript

by Practical Networking · 2,724 words · 480 segments · language en · Watch on YouTube

Full transcript

  1. 0:00hello welcome to the second part of our
  2. 0:02lesson on network devices
  3. 0:04this is the first lesson from the first
  4. 0:06module of my new course on networking
  5. 0:07fundamentals
  6. 0:09the purpose of this module is to teach
  7. 0:11you how data flows through the internet
  8. 0:13in part one of this lesson we discussed
  9. 0:15the concepts of a host
  10. 0:16an ip address and a network if you
  11. 0:18haven't watched that video go ahead and
  12. 0:20pause this video right now and watch the
  13. 0:21first video
  14. 0:22there'll be a link in the description in
  15. 0:24this video we're simply going to
  16. 0:25continue right where we left off
  17. 0:28now the main idea we want to teach in
  18. 0:29this video are these last two devices
  19. 0:32switches and routers but we can't really
  20. 0:34understand those
  21. 0:35until we understand where we've come
  22. 0:36from so we have to start there
  23. 0:39in the last video we unpacked the idea
  24. 0:41of a network we identified that a
  25. 0:43network is created anytime you connect
  26. 0:45two computers to each other using a wire
  27. 0:48one thing to understand about sending
  28. 0:49data across a wire is that it decays as
  29. 0:51it travels greater and greater distances
  30. 0:54if the two computers you're connecting
  31. 0:55are in the same room then you don't
  32. 0:57really have to worry about it
  33. 0:58the decay will still occur but the
  34. 1:00signal will still get through and
  35. 1:01therefore
  36. 1:02connectivity between these hosts is
  37. 1:03still attained if
  38. 1:05however these hosts span greater
  39. 1:07distances maybe
  40. 1:08you're connecting two computers on
  41. 1:09opposite sides of a building or even in
  42. 1:12two different buildings
  43. 1:13then you might have a problem if the
  44. 1:15signal decays before it gets the other
  45. 1:17side
  46. 1:17then these two hosts cannot share data
  47. 1:21in those cases what you need is a
  48. 1:22repeater a repeater
  49. 1:24is a device whose sole purpose is to
  50. 1:26regenerate signals
  51. 1:27anything that comes in on one end simply
  52. 1:29gets regenerated out the other side
  53. 1:32this allows you to connect devices
  54. 1:33together which span greater distances
  55. 1:39so far we've been talking about
  56. 1:40networking from the perspective of
  57. 1:42connecting one host
  58. 1:43directly to another host well if you add
  59. 1:46a third host
  60. 1:47you now have to connect that host to all
  61. 1:49the other hosts which you've already
  62. 1:50established and if you add a fourth host
  63. 1:53you now have to connect this fourth host
  64. 1:55to all the hosts that already exist
  65. 1:57and again if you add a fifth host you
  66. 1:59now have to connect this fifth host
  67. 2:01to every host that has already been
  68. 2:02connected as you can see
  69. 2:04connecting host directly to each other
  70. 2:06simply doesn't scale
  71. 2:08instead we created devices which we
  72. 2:10could put at the center of every network
  73. 2:11and connect all the hosts to those
  74. 2:13devices
  75. 2:14and these devices would then handle
  76. 2:16funneling communication between these
  77. 2:17different hosts
  78. 2:19the benefit to these types of devices is
  79. 2:21that if a sixth host gets spun up
  80. 2:23it's very easy to simply connect it once
  81. 2:25to that device and now it has
  82. 2:26connectivity to every host that has
  83. 2:28already existed
  84. 2:29that's what all of these are and the
  85. 2:32first of these types of device that
  86. 2:33we're going to discuss
  87. 2:34is known as a hub a hub
  88. 2:37is nothing more than a multi-port
  89. 2:39repeater
  90. 2:41earlier we discussed repeaters and we
  91. 2:42said all they do is regenerate signals
  92. 2:45hubs do the same thing except they do it
  93. 2:46across multiple ports
  94. 2:48for example if these two hosts over here
  95. 2:51need to communicate
  96. 2:52one of them sends a packet to the other
  97. 2:54it'll hit the hub and the hub will
  98. 2:55simply duplicate that packet and send it
  99. 2:57out all remaining ports
  100. 2:59that allow what this guy sends to arrive
  101. 3:02over here
  102. 3:03this fixes the scale problem hub is the
  103. 3:06first device that allows us to connect
  104. 3:08multiple devices in the center and now
  105. 3:10all of them have connectivity to each
  106. 3:11other
  107. 3:12but as you can probably see the problem
  108. 3:15with the hub is that everybody receives
  109. 3:17everybody else's data
  110. 3:18these two hosts over here which are
  111. 3:20uninvolved in the communication between
  112. 3:21these two hosts
  113. 3:22are receiving a copy of everything they
  114. 3:24send
  115. 3:26which brings us to bridges here
  116. 3:30we have two sets of hosts all
  117. 3:31interconnected using a hub
  118. 3:33and a bridge is meant to sit in between
  119. 3:36hub-connected hosts
  120. 3:38bridges by definition only have two
  121. 3:40ports one port facing one set of
  122. 3:42hub-connected devices and another port
  123. 3:44facing the other set of hub connected
  124. 3:46devices
  125. 3:47bridges will also then learn which hosts
  126. 3:49are on which
  127. 3:50side of the bridge this would allow the
  128. 3:52bridge to contain communication
  129. 3:54to only the side that is necessary for
  130. 3:57example
  131. 3:58if these hosts again need to speak to
  132. 4:00each other
  133. 4:01when they send data to each other
  134. 4:03through that hub the hub is of course
  135. 4:05going to simply regenerate that signal
  136. 4:07at all ports
  137. 4:08and notice that the bridge can be
  138. 4:10getting a copy of that packet
  139. 4:12but the bridge knows that the other
  140. 4:14green host is on this side of the bridge
  141. 4:16and therefore the bridge isn't going to
  142. 4:18bring that packet to the other side
  143. 4:21the bridge is the first type of device
  144. 4:23that helps contain packets only to their
  145. 4:25relative networks
  146. 4:27on the other side if these hosts need to
  147. 4:29speak to each other
  148. 4:30they can also send packets to each other
  149. 4:32through their hub and once again the
  150. 4:34bridge will not let those packets bleed
  151. 4:36into the other side because it knows
  152. 4:38the yellow devices exist on the right
  153. 4:40hub
  154. 4:43and of course if this device needs to
  155. 4:44send something to this device
  156. 4:46the bridge is going to know that that
  157. 4:47traffic is going to have to cross the
  158. 4:49bridge
  159. 4:50and the bridge will allow that packet to
  160. 4:51traverse to the other side
  161. 4:58the main takeaway is understanding that
  162. 5:00bridges can learn which hosts are
  163. 5:02connected
  164. 5:02on either side of the two ports of the
  165. 5:04bridge now this
  166. 5:06finally brings us to switches switches
  167. 5:09are sort of like a combination
  168. 5:11of hubs and bridges they are like hubs
  169. 5:14in the sense that many devices can
  170. 5:16connect to the switch
  171. 5:18and they are like bridges in the sense
  172. 5:19that they can learn which hosts are
  173. 5:21connected to each port
  174. 5:24the main difference is that they're
  175. 5:26doing it on a per port basis
  176. 5:28which means if these two hosts want to
  177. 5:30speak to each other
  178. 5:31the switch will know that the only ports
  179. 5:33that need to receive this traffic
  180. 5:34are the two that are connected to those
  181. 5:36green hosts and will keep that
  182. 5:37communication contained to just
  183. 5:39those ports moreover if these two hosts
  184. 5:43want to speak to each other
  185. 5:44the switch will again make sure that
  186. 5:45that communication only flows between
  187. 5:48the relative ports
  188. 5:49so this is how a switch is like a
  189. 5:51combination of a hub and a bridge
  190. 5:55the formal definition of a switch that
  191. 5:57we want to use is that a switch is a
  192. 5:59device
  193. 6:00which facilitates communication within a
  194. 6:03network
  195. 6:05earlier we defined a network as a
  196. 6:08logical grouping of hosts which require
  197. 6:10similar connectivity which means
  198. 6:13all of these devices over here all
  199. 6:15belong to the same
  200. 6:16network moreover networks
  201. 6:19all share the same ip address space
  202. 6:22which means this network owns all the ip
  203. 6:25addresses which start with
  204. 6:27192.168.1.anything
  205. 6:29and this host's identity is the ip
  206. 6:31address 192.168.1
  207. 6:33dot and this host would be 192.168.1.66
  208. 6:39and this set of devices could very
  209. 6:41easily represent
  210. 6:42all the different hosts on your home
  211. 6:44wi-fi network
  212. 6:45maybe this device is your printer and
  213. 6:48this device is your laptop
  214. 6:49and this device is your mobile phone and
  215. 6:51so on
  216. 6:52or maybe this network and these devices
  217. 6:54represent all the pcs that might exist
  218. 6:56within a particular classroom
  219. 6:58of the school network or maybe even
  220. 7:01further all these devices represent
  221. 7:03hosts that exist in the sales team
  222. 7:05of the london office of the acme
  223. 7:07corporation
  224. 7:08one way or another since all these
  225. 7:10devices are connected with a switch
  226. 7:12they all belong to the same network now
  227. 7:16let's go back to that example of the
  228. 7:18school network
  229. 7:20we said that the school likely has many
  230. 7:22different classrooms
  231. 7:23and each of those classrooms belong to
  232. 7:24their own network
  233. 7:26which means this would be a more
  234. 7:28accurate representation of the school
  235. 7:30network we would have classroom two
  236. 7:32owning that ipspace and classroom three
  237. 7:34owning that ipspace
  238. 7:36now the reason you might want to
  239. 7:38separate these two sets of devices into
  240. 7:40their own network is because they might
  241. 7:42have different connectivity requirements
  242. 7:44for example maybe these computers over
  243. 7:47here
  244. 7:47all belong to the biology classroom and
  245. 7:50all they need is simple internet
  246. 7:51connectivity
  247. 7:52but maybe these computers over here
  248. 7:54belong to the computer science classroom
  249. 7:56and they not only need internet
  250. 7:58connectivity but also access to various
  251. 8:00cloud resources
  252. 8:01to do their studies well since these
  253. 8:03computers have different connectivity
  254. 8:05requirements than
  255. 8:06these computers it's a good idea to
  256. 8:08separate those out into separate
  257. 8:10networks
  258. 8:11now in both cases we can still use
  259. 8:13switches to facilitate
  260. 8:15all the communication within the
  261. 8:16networks meaning
  262. 8:18this switch can handle all the
  263. 8:19communication between these three
  264. 8:22hosts and this switch can handle all the
  265. 8:24communication
  266. 8:25between these three hosts
  267. 8:28but what happens if this host down here
  268. 8:31wants to speak
  269. 8:32to this host on a different network
  270. 8:35well if a switch can only facilitate
  271. 8:37communication within
  272. 8:38a network we would need another type of
  273. 8:41device to handle the communication
  274. 8:43between networks and that device would
  275. 8:46be
  276. 8:47a router a router is a device whose
  277. 8:50primary purpose is to facilitate
  278. 8:52communication
  279. 8:53between networks at the very least
  280. 8:57you're going to need that router to
  281. 8:58connect you with the ultimate network of
  282. 9:00networks
  283. 9:01known as the internet so let's unpack
  284. 9:04this further
  285. 9:05routers provide traffic control points
  286. 9:08between
  287. 9:09networks let's say we wanted to limit
  288. 9:12the traffic that could go from this pc
  289. 9:14to this pc
  290. 9:15well since these two pcs aren't separate
  291. 9:17networks all that traffic
  292. 9:19has to flow through the router creating
  293. 9:21a great place
  294. 9:22to add security policies or traffic
  295. 9:24filtering or even redirecting that
  296. 9:26traffic elsewhere entirely
  297. 9:28since routers sit on the boundary
  298. 9:30between networks
  299. 9:32they provide a logical location to apply
  300. 9:34security policies
  301. 9:36this type of security filtering isn't
  302. 9:38traditionally available on switches
  303. 9:40these days there are modern switches
  304. 9:42that can do such filtering
  305. 9:43but it is generally accepted that the
  306. 9:45devices sitting on the same network
  307. 9:46don't typically need filtering for
  308. 9:48traffic traveling within the network
  309. 9:50if you had devices that needed different
  310. 9:52types of connectivity you'd want to
  311. 9:54place them in different networks
  312. 9:55the network boundary is what is meant to
  313. 9:57be the logical separation of devices
  314. 10:00the way routers work is that they learn
  315. 10:03which networks that they are
  316. 10:05attached to meaning this router is going
  317. 10:07to learn that on this interface it's
  318. 10:09connected to the 172 16.20 network
  319. 10:12and on this interface it's connected to
  320. 10:14the 172 1630 network
  321. 10:16and out here is the direction to go to
  322. 10:18the internet
  323. 10:20the knowledge of each of these different
  324. 10:22networks is known as a route
  325. 10:24and all these routes are stored in what
  326. 10:26the router calls a routing
  327. 10:27table a routing table is therefore
  328. 10:30all the networks that a router knows
  329. 10:32about and the router is going to use
  330. 10:34this routing table in order to funnel
  331. 10:36traffic
  332. 10:36out the appropriate interface now
  333. 10:40when we say a router learns which
  334. 10:42networks they are attached to
  335. 10:44what we mean is that a router has an ip
  336. 10:46address
  337. 10:47in every network that they're attached
  338. 10:49to for example
  339. 10:51when this router is attached to this
  340. 10:53network it is given
  341. 10:54an ip address in that network this
  342. 10:56interface's identity
  343. 10:57is the ip address 172.16.20.1
  344. 11:02and this interface's identity is the ip
  345. 11:04address 172
  346. 11:0616.30.254
  347. 11:09this ip address is going to serve as
  348. 11:11what's known as a gateway
  349. 11:13a gateway is a host's way out of their
  350. 11:16local network
  351. 11:17for example this host over here has the
  352. 11:20ip address 172
  353. 11:2216.20.33 but if that host
  354. 11:25wants to speak to something on a
  355. 11:27different network it knows it's going to
  356. 11:29have to go
  357. 11:30through a router and the ip address for
  358. 11:32that router is stored as that host's
  359. 11:34default gateway
  360. 11:36notice this host has a default gateway
  361. 11:38of 172.16.20.1
  362. 11:41that's this interface ip address of that
  363. 11:43router
  364. 11:46now if we go a step higher than that
  365. 11:48routers are actually what create
  366. 11:50the hierarchy in networks and ip
  367. 11:52addresses that we discussed in the prior
  368. 11:54sections of this lesson for example the
  369. 11:57new york office of the acme corporation
  370. 12:00that had all the different teams that
  371. 12:01each had their own ip networks
  372. 12:04well each of those networks are
  373. 12:05connected to different routers
  374. 12:07and each of those routers are then
  375. 12:08connected to another router
  376. 12:10and if a host in the sales team wants to
  377. 12:12speak to a host on the marketing team
  378. 12:14it's going to use its gateway which is
  379. 12:16its closest router ip address
  380. 12:17which is then going to send the packet
  381. 12:19to the next router to the next router
  382. 12:21and then finally to the host on the
  383. 12:22marketing team
  384. 12:24the tokyo office of the acme corporation
  385. 12:26is likely going to have a similar setup
  386. 12:28and both of these routers are then
  387. 12:30likely going to connect to the internet
  388. 12:33the internet is nothing more than a
  389. 12:34bunch of different routers itself
  390. 12:37meaning if a host on the marketing team
  391. 12:39wants to speak to a host on the
  392. 12:40engineering team in tokyo
  393. 12:42that host will send the data to the
  394. 12:44router which will send the data to the
  395. 12:46next router
  396. 12:46which will send it through all the
  397. 12:48routers on the internet which will
  398. 12:49finally send it to the tokyo router and
  399. 12:51finally to the engineering team
  400. 12:54that is how data is going to flow across
  401. 12:56the internet
  402. 12:57and that is the role that routers play
  403. 12:59in making that possible
  404. 13:01now the last idea i want to leave you
  405. 13:03with actually involves pulling back the
  406. 13:05definition of switches as well
  407. 13:08there's something important you have to
  408. 13:09understand about what we've defined as
  409. 13:11routers and switches
  410. 13:13route ding is the process of moving data
  411. 13:16between
  412. 13:16networks a router as we have described
  413. 13:20it
  414. 13:20is simply a device whose primary purpose
  415. 13:22is to perform
  416. 13:23routing in the same way switching
  417. 13:27is the process of moving data within
  418. 13:30networks
  419. 13:31and a switch as we have described it is
  420. 13:33a device whose primary purpose
  421. 13:35is switching the reason i bring that up
  422. 13:38is there are many other types of network
  423. 13:40devices that exist out there
  424. 13:42access points firewalls load balancers
  425. 13:44layer 3 switches proxies
  426. 13:46and there's even devices that only exist
  427. 13:48in the cloud like virtual switches and
  428. 13:50virtual routers
  429. 13:51one way or another all these devices are
  430. 13:54going to perform
  431. 13:55routing or switching or both so later on
  432. 13:58in this module when we describe
  433. 14:00what a router does or what a switch does
  434. 14:03what we are actually describing is what
  435. 14:05any device does that implements routing
  436. 14:07or any device does that implement
  437. 14:09switching
  438. 14:11and with that we close our lesson on
  439. 14:13network devices
  440. 14:15in part one of this lesson we unpacked
  441. 14:17hosts
  442. 14:18ip addresses and networks and in part
  443. 14:21two
  444. 14:21we continued that discussion by
  445. 14:23illustrating repeaters
  446. 14:24hubs bridges switches and routers
  447. 14:29in the next lesson we're going to give
  448. 14:31you a practical perspective on the osi
  449. 14:33model
  450. 14:34this will lay the foundation to
  451. 14:36understand what all of these devices do
  452. 14:38to enable data flowing through the
  453. 14:40internet
  454. 14:41but that wraps up this lesson your main
  455. 14:43takeaways are on the slide right now
  456. 14:45i hope you enjoyed this lesson i want to
  457. 14:47thank you for watching
  458. 14:48and we'll see you in the next one
  459. 14:52hey youtube i hope you enjoyed that free
  460. 14:53lesson for my new course on networking
  461. 14:55fundamentals
  462. 14:56i'll be releasing the entire first
  463. 14:57module for free here on youtube
  464. 15:00i want this course to be the ultimate
  465. 15:01networking fundamentals course and since
  466. 15:03i'm still scoping out the outline you
  467. 15:04could have a say in what topics will be
  468. 15:06covered
  469. 15:07let me know in the comments below what
  470. 15:08subjects you want included in this
  471. 15:09course
  472. 15:10otherwise remember to like and subscribe
  473. 15:12and of course if you learned something
  474. 15:14from this video the best way to thank me
  475. 15:15is to share this video
  476. 15:17it's a small act of gratitude but one i
  477. 15:19appreciate greatly
  478. 15:20i hope you enjoyed this lesson i want to
  479. 15:22thank you for watching and we'll see you
  480. 15:24in the next one

About this transcript

This page contains the full transcript of Hub, Bridge, Switch, Router - Network Devices - Networking Fundamentals - Lesson 1b by Practical Networking, generated from the public captions YouTube serves with the video. The transcript has 2,724 words across 480 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 choose a caption track available on the video.

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, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.