1 00:00:00,000 --> 00:00:01,370 2 00:00:01,370 --> 00:00:02,960 I remember hearing an explanation 3 00:00:02,960 --> 00:00:04,284 of how the internet worked. 4 00:00:04,284 --> 00:00:05,450 It went something like this. 5 00:00:05,450 --> 00:00:07,400 The user, sitting at their computer 6 00:00:07,400 --> 00:00:09,130 with their favorite browser open, 7 00:00:09,130 --> 00:00:12,860 puts in the name of a website, presses Enter, and then boom, 8 00:00:12,860 --> 00:00:13,850 magic happens. 9 00:00:13,850 --> 00:00:17,090 Well, of course, there's a lot of additional detail and things 10 00:00:17,090 --> 00:00:20,430 that are going on to make that, quote unquote, magic happen. 11 00:00:20,430 --> 00:00:23,660 And one way of helping to understand conceptually 12 00:00:23,660 --> 00:00:26,450 the things that are done is do some kind of a model 13 00:00:26,450 --> 00:00:29,030 as a reference point or an idea regarding 14 00:00:29,030 --> 00:00:30,500 how something happens. 15 00:00:30,500 --> 00:00:33,530 And in the world of networking, one of the very popular and old 16 00:00:33,530 --> 00:00:37,340 models is referred to as the open system interconnection 17 00:00:37,340 --> 00:00:39,912 model, or for short, the OSI model. 18 00:00:39,912 --> 00:00:41,870 And here in our infrastructure of this network, 19 00:00:41,870 --> 00:00:42,920 we have some computers. 20 00:00:42,920 --> 00:00:46,220 Let's imagine that this computer right here, Computer 1, 21 00:00:46,220 --> 00:00:50,030 is sitting at the top of this logical stack. 22 00:00:50,030 --> 00:00:51,830 Or we could also say this computer 23 00:00:51,830 --> 00:00:55,190 is at the top of all these layers in this OSI reference 24 00:00:55,190 --> 00:00:55,910 model. 25 00:00:55,910 --> 00:00:58,310 And the seven layers of the OSI reference model 26 00:00:58,310 --> 00:01:02,000 can represent logically some of the processing and events that 27 00:01:02,000 --> 00:01:05,030 happen when the user on that computer and their browser 28 00:01:05,030 --> 00:01:07,550 presses Enter, including all the steps 29 00:01:07,550 --> 00:01:09,950 until the actual signals are sent 30 00:01:09,950 --> 00:01:13,280 on the physical wires, or in the case of a wireless device, 31 00:01:13,280 --> 00:01:14,990 across the wireless network. 32 00:01:14,990 --> 00:01:16,160 And the good news is this. 33 00:01:16,160 --> 00:01:19,270 We can use our story of the tale of two kings, 34 00:01:19,270 --> 00:01:21,440 along with the king's staff, as a way 35 00:01:21,440 --> 00:01:24,320 to understand some of the functionality that might happen 36 00:01:24,320 --> 00:01:26,120 when a computer, like Computer 1, 37 00:01:26,120 --> 00:01:28,989 is communicating with another device on the network. 38 00:01:28,989 --> 00:01:30,530 So for our discussion, let's go ahead 39 00:01:30,530 --> 00:01:35,060 and call Computer 1 King A. And King A is 40 00:01:35,060 --> 00:01:37,340 at the top of the pile here. 41 00:01:37,340 --> 00:01:39,830 And if this computer, playing the role of King A, 42 00:01:39,830 --> 00:01:42,050 needs to access a file server-- 43 00:01:42,050 --> 00:01:43,760 for example, maybe this one right here-- 44 00:01:43,760 --> 00:01:45,830 or a web server out on the internet, 45 00:01:45,830 --> 00:01:48,050 or perhaps it needs to talk to a printer, 46 00:01:48,050 --> 00:01:49,886 if those are all network resources, 47 00:01:49,886 --> 00:01:51,260 it's the application layer that's 48 00:01:51,260 --> 00:01:55,050 providing access, if you will, to those resources. 49 00:01:55,050 --> 00:01:57,770 So just like the scribe provided a writing service 50 00:01:57,770 --> 00:01:59,750 to write something down for King A, 51 00:01:59,750 --> 00:02:02,510 the application layer in this OSI reference model 52 00:02:02,510 --> 00:02:05,450 would make available the printing service or the file 53 00:02:05,450 --> 00:02:07,640 service or the web service, depending 54 00:02:07,640 --> 00:02:10,370 on the type of resource that King A, or this computer, 55 00:02:10,370 --> 00:02:11,452 is trying to go after. 56 00:02:11,452 --> 00:02:13,910 And as part of that service, if there needs to be some type 57 00:02:13,910 --> 00:02:17,420 of encryption or compression or translation, 58 00:02:17,420 --> 00:02:19,310 it's the 007 feature-- 59 00:02:19,310 --> 00:02:21,320 or in the OSI reference model, referred to 60 00:02:21,320 --> 00:02:23,060 as the presentation layer-- 61 00:02:23,060 --> 00:02:25,850 that's going to be logically providing those functions. 62 00:02:25,850 --> 00:02:29,090 And then as we continue to go down this logical model, 63 00:02:29,090 --> 00:02:32,230 the session layer is playing the part of the lawyer. 64 00:02:32,230 --> 00:02:34,820 And then the OSI reference model is the session layer 65 00:02:34,820 --> 00:02:36,740 acting as the lawyer that's managing 66 00:02:36,740 --> 00:02:39,110 the affairs and the communications for the king, 67 00:02:39,110 --> 00:02:41,090 for the application that's being used. 68 00:02:41,090 --> 00:02:42,800 And we can consider these top three 69 00:02:42,800 --> 00:02:44,410 layers of the OSI reference model 70 00:02:44,410 --> 00:02:45,980 sort of like senior management. 71 00:02:45,980 --> 00:02:48,110 So if the session between King A, this computer, 72 00:02:48,110 --> 00:02:50,930 and some other device is agreed to and allowed to happen, 73 00:02:50,930 --> 00:02:54,560 the next logical component is our middle manager, 74 00:02:54,560 --> 00:02:57,770 which in the OSI reference model is the transport layer 75 00:02:57,770 --> 00:02:59,330 of the OSI reference model. 76 00:02:59,330 --> 00:03:02,216 So just like the middle manager in our tale of two kings, 77 00:03:02,216 --> 00:03:03,590 the middle manager is responsible 78 00:03:03,590 --> 00:03:05,870 for reliable or unreliable delivery, 79 00:03:05,870 --> 00:03:08,339 depending on the requirements of the application. 80 00:03:08,339 --> 00:03:10,130 And it could also be responsible for taking 81 00:03:10,130 --> 00:03:12,740 fairly large messages and chunking them up or chopping 82 00:03:12,740 --> 00:03:15,080 them up into smaller pieces and then labeling 83 00:03:15,080 --> 00:03:17,482 those-- for example, 1 of 3 and 2 of 3 and 3 of 3. 84 00:03:17,482 --> 00:03:19,190 And then when the middle manager is done, 85 00:03:19,190 --> 00:03:22,010 it's going to hand its messages down to the mailroom, which 86 00:03:22,010 --> 00:03:24,500 is responsible for addresses-- for example, 87 00:03:24,500 --> 00:03:27,050 the from address and the to address. 88 00:03:27,050 --> 00:03:29,010 And most addresses have a couple of components, 89 00:03:29,010 --> 00:03:32,390 including the street name and the house number. 90 00:03:32,390 --> 00:03:35,240 And then the OSI reference model is the network layer 91 00:03:35,240 --> 00:03:38,240 of the OSI reference model that would be adding these address 92 00:03:38,240 --> 00:03:40,220 labels to each of the messages that are going 93 00:03:40,220 --> 00:03:42,080 to be sent over the network. 94 00:03:42,080 --> 00:03:44,000 And after those network labels are added, 95 00:03:44,000 --> 00:03:47,660 the messages are passed down to be put in the proper envelopes. 96 00:03:47,660 --> 00:03:50,010 Because not every network is the same. 97 00:03:50,010 --> 00:03:52,280 We have ethernet networks. 98 00:03:52,280 --> 00:03:53,420 We have wireless networks. 99 00:03:53,420 --> 00:03:55,430 We have serial networks. 100 00:03:55,430 --> 00:03:58,430 And so depending on the type of medium that we're going over 101 00:03:58,430 --> 00:04:00,020 and the protocols that are in use, 102 00:04:00,020 --> 00:04:02,120 it's layer 2, the data link layer, 103 00:04:02,120 --> 00:04:04,850 that's responsible for putting the data 104 00:04:04,850 --> 00:04:07,910 into the correct envelopes or frames in preparation 105 00:04:07,910 --> 00:04:09,630 to be sent over the network. 106 00:04:09,630 --> 00:04:11,810 And once the envelope stuffing is done at layer 2 107 00:04:11,810 --> 00:04:13,520 at the datalink layer, then the bits 108 00:04:13,520 --> 00:04:15,320 are actually transmitted and sent 109 00:04:15,320 --> 00:04:18,079 across the network at the physical layer, which 110 00:04:18,079 --> 00:04:21,440 in our analogy of the two kings, we use the FedEx truck doing 111 00:04:21,440 --> 00:04:23,044 the actual delivery. 112 00:04:23,044 --> 00:04:25,710 And there's a few questions that often come up regarding the OSI 113 00:04:25,710 --> 00:04:26,376 reference model. 114 00:04:26,376 --> 00:04:28,287 One is do I need to memorize all the layers. 115 00:04:28,287 --> 00:04:29,120 And I would say yes. 116 00:04:29,120 --> 00:04:31,230 It's going to be beneficial to you to do that. 117 00:04:31,230 --> 00:04:32,840 And the second question is, OK, what's 118 00:04:32,840 --> 00:04:34,526 the easy way to remember that. 119 00:04:34,526 --> 00:04:35,900 And a popular option is to create 120 00:04:35,900 --> 00:04:38,960 a phrase that reminds us of the first letters of each 121 00:04:38,960 --> 00:04:39,870 of the layers. 122 00:04:39,870 --> 00:04:45,050 And one of those is please do not throw sausage pizza away. 123 00:04:45,050 --> 00:04:47,570 And just like when you build a brick wall, 124 00:04:47,570 --> 00:04:49,740 those are in the order from the ground up, 125 00:04:49,740 --> 00:04:51,770 from the physical layer at layer 1 126 00:04:51,770 --> 00:04:54,770 all the way through the application layer at layer 7. 127 00:04:54,770 --> 00:04:57,650 So it would serve us to take a few minutes to practice that 128 00:04:57,650 --> 00:04:59,210 and write it down a few times. 129 00:04:59,210 --> 00:05:02,270 It would also be a great idea to jot down next to them 130 00:05:02,270 --> 00:05:05,240 what each of those layers logically can provide for us. 131 00:05:05,240 --> 00:05:07,070 And we can use the story of the two kings 132 00:05:07,070 --> 00:05:09,020 with each of the servants in the kingdoms 133 00:05:09,020 --> 00:05:11,774 to help us remember there are logical functions. 134 00:05:11,774 --> 00:05:13,190 In this Nugget, we've taken a look 135 00:05:13,190 --> 00:05:16,760 at the seven logical layers in the OSI reference model. 136 00:05:16,760 --> 00:05:18,830 I hope this has been informative for you, 137 00:05:18,830 --> 00:05:22,420 and I'd like to thank you for viewing. 138 00:05:22,420 --> 00:05:23,212