Networking Basics
Transcript
You know, I still find it incredible that with a touch of a button on my phone, I can send a message to the other side of this planet and I can do it in a matter of milliseconds. To me, that's mindblowing. And I could explain every step along the way and what happens. But I still find it amazing that we are capable of doing that and it's all at our fingertips. And that's exactly what this video is going to go over is what networking looks like. We're going to take a look at networking and the basics around networking that allows us to communicate across this planet with a touch of a button. And we're going to do it in very simplistic terms so we really understand it. We're going to stair step our way into this information so we get this great grasp around basic networking. I've broken this video down into four parts. The first part is just going to be some background
information so we get a grasp of what we're trying to accomplish and some ways that we accomplish that. Then we're going to get into the local communication or we're going to call it the local area network. So we're going to talk about local area network and we're specifically going to be talking about Ethernet and what Ethernet looks like. Then we're going to get into wide area network and what the big picture looks like, how we communicate across wide areas. Then we'll get into the internet and talk about what the internet looks like and how we can communicate across this planet. So, by the end of this video, you're going to be able to explain exactly how computers communicate both locally and also across this planet. I want to dedicate this video to Aaron. Aaron was the first Technosurge donor and I appreciate both his financial support and his words of encouragement. So, thank you Aaron. This one's for you.
We're going to start out with some background information. This is going to be just so we have an understanding of what we're trying to accomplish. We're going to start out by going over a scenario so we have something we can actually apply this to some sort of real world scenario. Then we're going to get into network services, network protocols, and network ports. So we understand what data is flowing back and forth. Later on, we'll apply that to how we send that data and how we communicate that data. But for now, let's just get into what that data looks like that we are sending back and forth. One of the things that's helpful when we're learning new information is to be able to tie information together with realworld application. So, let's come up with a little scenario that we're going to use for this module. So we can start tying this information and learning the
information in with some sort of context and application to it. Our scenario is that we're starting a business, a DJ business, and we're going to call it Techno DJ. Our plan is is to play at the big venues all around town. And so we need to showcase our work. We already purchased the domain techniquej.com and we plan on using it to start showcasing our work. We need to start getting some momentum towards our DJ business. We need to get people excited about our music. So, we want our end users to be able to play our music. Our marketing idea is to create our own app. It's an app that the end user will install on their computer so they can start streaming our songs and get interested in our music. Since these are clients that we're going to eventually sell to, let's just call this the client. We have an old machine that's sitting around. It's just a desktop machine and it doesn't it's not serving much purpose right now. And so what
we're going to do is we're going to turn that into our server at least initially. So essentially we have to create two programs. One of them is an app that's on the client machine and a service that will be installed on the server so that way it can start streaming music from the server to the client. And in the end, the more people that know about our music and love our music, the more chances that we'll get to play in the big venues around town. That's our scenario. So now, let's start building a network that helps support our scenario. Network services are critical to what we do nowadays on computers. Without them, most of the functionality that we use on computers wouldn't really work. And so let's take a look at network services, what they are and how they're implemented. Now, we've created an app for our business. This app allows an end user to see a list of all the songs that we have on our server
and also be able to stream that music. So, we need to set up a service now on our server in order to help facilitate that. That's going to be our network service. First, let's take a look at just what a service is. and a service specifically in the scope of what does it look like on Windows. On your Windows machine, well, any machine really, when you start it up, there's a lot of different programs that get launched. So, we're going to represent these are all of our programs that come up giving instructions to the computer on how it's going to operate. The thing is is when you launch the computer, there are many programs that get launched when you launch the computer. And then when you log into the computer, there are more programs that get launched. And then when you actually launch a program, then there are more programs that get launched. So they get launched at different times and they also get launched under different user settings. For instance,
if you launch a program, it gets launched as you as the user, whatever you're logged in as. If there are programs that get started up when you log into the computer, often those are associated with your user account as well. However, this is problematic because there are some things that we want to launch and have up and running that number one aren't tied to our user. It's tied to a different user on the machine or the system on the machine. And number two, we want some of these programs to be up and running before we ever log into the machine. And so we want services that run while we're not logged in. So that's what services allows us to do. Services allows us to create from these programs, create a service on the machine that is up and running all the time. So let's see what this looks like on an actual machine. What I'm going to do is I'm going to open up the Windows menu right here and type in services and hit enter. And that's going to pop
up my service console here. And what I see here is a list of a bunch of different programs that have been set up as a service. So these are programs that you don't have to launch will get launched automatically. Maybe it's because of some sort of trigger. Maybe they're automatically launched when you turn on the machine. Uh there's this startup type type right here. So many of these could be manually and have to be triggered by something or some of these are automatic that get started when the machine launches while others are uh set up automatically but have a delay. So they're not started right away. So these are the programs right here. It gives a description. We see that many of these are running already uh which and I've not launched them but they are running. And we see what account is actually has launched this. So many of these are local services. Some of them
are local systems. Many of these we can even see in here network services. So these are probably some sort of service that's it's providing some sort of service on the network. So we see now all of these different programs that are launched on this machine. Now Linux and Unix systems do have something similar. They just call it something different. They call it a demon. And those are the programs that are launched as services on a Linux or Unix machine. So then the question is, well, what is a network service? Well, it's the same thing. It's just one of those services that's running on the machine, but it's providing services to the network. And so what it allows it this machine to do is that if there's requests that are being made of it, be able to respond to it without having somebody having to log onto this machine and start up that service. Now let's just take a look at an example here. Let's first of all take a look at DHCP. I'm
going to do a brief explanation of what DHCP is so we have some understanding about it. But what it is is that your machine when it connects into the network needs an IP address for it to have really any kind of functionality. So when it first connects into a network, typically what it does is it requests and says, "Hey, can I get an IP address?" And it gets a response and says, "Okay, here's an IP address." And it's the DHCP services that allow that to happen. So let's take a look at what DHCP looks like. I'm back on my Windows machine and I have the services console already open and I'm going to scroll down to where I can find the DHCP client. So this is the client side. So this is on this machine when the machine starts up. This is the program that makes the first request and says, "Hey, can I get an IP address?" and then gets a response from another machine that is going to be a DHCP server and say, "Okay, here's an IP address." So,
if I were to go on a Windows machine that's actually supplying the IP addresses, I would see a DHCP server on the other side of this. So, the DHCP server is the network service. That's what's set up to provide IP addresses for these clients. So the network service is that service that's providing some sort of services to the end client. In this case, it's the service that's providing IP addresses for the end client. But let's take a look at another example. Let's take a look at web when you're browsing the web because it looks quite a bit different when you're on the internet. When you use some sort of browser, perhaps it's it's Chrome or Firefox or Safari or whatever you're using to browse the internet. What does that look like? Now, what I could do is I could scroll through this services console to try to look for Chrome, but I'm not going to find it within the services tabs here. Instead, I'm going to open up Chrome and
it's going to launch an app. And what I'm going to do is plug in what am I going to connect to? So, maybe we want to connect to uh technosurge.com. And we I hit enter right there. So, what's happening right here? Well, this is the client right here. This is an app that I've launched and then I've made a connection to my website right here. And now the question is is okay. Well, what is on the other side of that? Well, on the other side of that is some sort of service that's running on that other machine providing those network services. Now, an a couple examples that it could be on the other side. It could be something like Apache. I might have installed Apache as a service on the other side and that's up and running providing that network service that that those web pages and delivering those web pages or maybe it's IIS. IIS is a Windows version or a Microsoft version of delivering websites to end users. So in this example right here,
we have that app that we launch on the computer and then it's contacting some sort of service that's running either Apache or maybe it's running IIS or there are a lot of other different types of services out there that could be delivering the uh these web pages and these websites. When there's two machines talking back and forth, they could be very different platforms. What I mean by that is one could be a Windows machine and the other would be a Linux machine. Or it could be
a Apple talking to a Unix machine or it could be my phone that's trying to access some sort of other platform. There's a lot of different combinations of different devices trying to communicate together. So, how do we have a common set of rules? Well, that's where a protocol comes into play. So, in this lesson, let's go over what a protocol is. In our example right here, we have a service that's running on our server that's hosting out our website. But people could be connecting to it with all sorts of apps. They could be connecting to it from Chrome. They could be connecting from Firefox or Safari or Microsoft Edge or any one of these browsers. They could be connecting into our site and also different platforms. it might be on their tablet or their mobile phone or some sort of laptop or desktop. We don't really know what that scenario is. So, we need a common language back and forth between these devices. So, what a protocol is is it's a
set of rules for communication. So, whoever makes the apps over here, whoever makes the devices over here can still communicate with these services and these devices over here. So let's take a look at that app that we're creating that's going to be able to play the songs for our business. What's going to happen is this apps needs to make a request first. I would like a list of the songs that are available and it's going to make that request of this service. That service then will reply with all the songs that are available so it can be shown on our app. But what's actually flowing back and forth between these devices is just a bunch of ones and zeros. So what needs to be determined with these protocols is how are these going to communicate? What is the order of communication? What is the format of the messages? As just an example is maybe the client first of
all needs to say hello to the server and then the server is going to reply back with a hello and then it the app will request a list of songs and then those songs will be delivered. But are they going to be delivered all at once or are they going to be delivered individually? So that's going to be determined by the protocol. What is the set of rules that we're setting up for this communication to happen? So one thing that's important is the order of communication. What happens so we can establish communication between these devices? And another critical piece then is going to be the message format. What order is the data going to show up in? Because for each one of these songs, we probably have extra information like we want to know the name. We probably want to know the album it's on, the artist that it maybe there's some sort of graphics, uh, album cover graphics or song graphics, maybe there's lyrics involved. We're going to want to
send a bunch of data over so that the user has this positive experience. And what it's going to look like when it gets sent over is it's just going to be a string of data. It's not going to show up in a fancy format as it gets communicated across the line. It might present it this way to the end user, but it's going to be just a string of data. And what happens if we don't have a protocol that defines all this is that we could have information in the wrong order. And if it gets sent over in the wrong order, now suddenly they think the name of the song is top hits and the album is Surge because the two were flip-flopped. And we can even take it one step further is what they're what's being sent across isn't really even the string of data. It's just the string of ones and zeros which then gets rolled up into the string of data which then gets rolled up into some sort of format that the end user is going to see. Now when it comes to
protocols there's two things that I want to make clear. Number one is I wouldn't be reinventing my own protocol to make this communication happen. That is if I was creating an app and a service for it to communicate back and forth I wouldn't have to create a new protocol to do this. there are already protocols out there that we would be using to make this all happen. I wouldn't have to program all of that. It would just be part of the program. So, uh, next of all, I want to stress that there's also all of this this stuff that's happening back and forth. There's actually lots of protocols that are at work. There's layers of protocols that are work to make this all happen. So, we'll get more into that in in the future, but just understand the protocols are that is that what allows that communication to happen and sets up the rules for that communication. A big part of how computers communicate is through network ports. So, in this lesson,
let's take a look at what network ports are and how we use them. There's probably several things that we want to do for our business, technodej.com. For one, we want a website. So, we're going to set up a service that's going to deliver a website. Also, we want to have that list of songs to be able to communicate to our app so that the app can go and request a list of songs. Also, the streaming of music looks very different. So, we probably are going to have a different program that's going to be set up for streaming music. So, we have a lot of different types of requests that are coming into the server. For instance, one for our web page. We have one from our app that's trying to connect to our server. We also probably set up a separate service for streaming because that streaming traffic looks very different from these other types of traffic that we have over here. There are other type of
connections that we might have set up too like remoting into this server would be a different type of connections. So what happens is there there's a lot of different services that this server could be offering and how does it keep track of these different requests and what service they're requesting it from. That's where ports come into play. Ports allow traffic that's coming into the server to be able to know what service it's going to be sent to. For instance, with our web traffic, that's commonly assigned to port 80 or 443. 443 for secured traffic, port 80 for insecure traffic. And so everything actually is going to 443. But uh so when a user makes a connection requesting for port 80, it's going to be sent to that web services and respond to that. Or maybe the app that we're creating, perhaps we assign port 81 to it. Maybe that streaming service, we've assign port 82 to it. So each one of these services is going to be assigned a port.
So that way when traffic comes into this server, it understands what service it's associated with. There are port ranges here. So let's talk about port number groups. So a range from 0 to 1,023 is what we call the well-known ports. These ports are the ones that are really already spoken for. So we typically don't use those for other services that we would create. It would just be for the services that are already created like web traffic. And then there's these registered ports 1,00 to 49,000 range right here. And those are supposed to be ones that you actually register. So if you're going to use it, you could you should register it. Although a lot of times we will use ports in that range and not register it. And then there's these dynamic private or ephemeral ports which we won't get into the details of all of these port assignments. Just know that there's these certain
ranges. Here are some of those well-known ports and the services that are associated with those ports. So once again, we mentioned port 80 is associated with HTTP traffic or that's that web traffic and 443. So this is the secure method of HTTP. So those would be associated with those web services. And so when traffic comes in to port 80 or 443, it's usually for web pages and websites. Now that we understand what is the bits that are being sent back and forth, let's discuss
exactly how they're sent on this local area network locally from one device to the next. So, one of the aspects we need to think about when we're transferring these bits is how are we physically going to transfer those bits. That's where the network media, the network interface, and the hub come into play. But there's other technologies that are at work as well. For instance, we need to know a little bit about the MAC address and how we send data to a specific machine. We'll also talk about encapsulation. We'll talk about the Ethernet frame, collisions, and broadcast. We'll talk about how these all play into that local area network. So, let's jump into this local area network or the LAN. The reason why we'd want to start connecting our phones, our computers, and other devices all together is so we can get network services for things like communicating amongst all of these
devices. But how do we communicate amongst these devices? In this lesson, let's start exploring the ways that we connect devices together. Somehow we need to connect these devices together so we can communicate. And the way we do that is known as the network media. What the actual data is being transferred across. We pretty much have three options. We could run a cable between these two. Usually we use copper cable to do that, but there are other conductors that we could use as well. Or we could send radio signals back and forth between these two devices. Or we could use photons. We can actually shine light from one to the other so we can pass information. For instance, I could use this flashlight to send a message to you. I could turn it on and off in some sort of pattern to send
a message. I could use something like Morse code. Now Morse code uses dots and dashes. So a dot would just be a quick flash of the light versus a dash would be a extended presence of that light. I could hold it open for a little bit longer. So a dot and a dash. And so then I could send you letters when which you can translate into words and then that's a way of communicating back and forth. Now when it comes to your computer, your computer speaks in ones and zeros. So that's pretty simple. I could turn the light off for a zero and I could flash the light on for a one and I could get as fast as I could flash that I could send you some sort of signal. So that is a way I could send a signal through light. I could do the same thing with a cable. If I've got a copper cable running between two devices, all I need to do is turn it off, no electrons flowing across it,
and that represents a zero. I could turn it on, and that could represent a one. And it wouldn't really matter what voltage it is. 5, 10, 12, 24, 110. It really doesn't matter what the voltage is. Just one. Just turning it on with a voltage would represent a one, and turning it off would represent a zero. Now, sending radio waves is a little more complicated than that, but it still can be done. We can send radio waves, and we can manipulate those waves to
represent ones and zeros. So now we've got our three different methods with our copper method or our conductor where we send electrons. We could send photons or we could send radio signals. Each one of these methods has its pros and cons in which we're not going to get into in this video, but we at least have a basis now of how we can send messages between two devices. Whether we're communicating across light or some sort of radio waves or sending electrons down a
copper wire, we're going to need something that translates from that computer signal into a signal that goes across that media. That's what your network interface card does. Let's take a look at your network interface card. Computers operate off of ones and zeros. And for the most part, that's how we communicate as well. This signal, these series of ones and zeros need to be transferred from one device to another device. But how do we do that? Some of these medias don't talk ones and zeros. For instance, radio waves is a waveform. So what we need to do is we need to convert these ones and zeros into a wave form, send it across the air, and convert it back into ones and zeros. That's what your network interface card does. That's the part of the computer that does that translation. And even though we can send ones and zeros across electrical signals or across light, there still is this component that needs to be
added to and translated even when we're sending across those type of medias. So no matter what, you need some sort of network interface card or nick that does that translation. This is a motherboard of a computer right here. And at one point in time, if I wanted it to connect into a network, I would have to slide a card into one of these slots to give it that functionality. That's why it's called a network interface card. Nowadays, a lot of times that's built into the motherboard or built into the system. So, for instance, this one right here has an Ethernet port right here that we could connect into. And the components for that nick is still built into that motherboard. However, we still call it a nick or network interface card. So, this laptop has a network interface right here that's built into the motherboard. So, this is another example. This is for the Ethernet, the copper cable to come in and make connection to this computer. However,
another thing that we see right here is a card right here. So, this is actually still a card and this one is for the wireless. So the on this one, and this is fairly common amongst laptops, is that there's still network interface cards for the wireless component. And now what we need to do to connect these two devices is take our Ethernet cord and plug it into this network interface right here. And then we plug the other side into the other board. Now, typically when you're connecting computer to computer, you need actually a special cable. That's not always the case when you're connecting equipment, but computer to computer, a lot of times that is the case. Now, there is times that we communicate through light just by sending a signal in the open. This is an example of it. This is a remote. And if you if I hold down a button, you can actually see the light flashing. It's not something I can see like this because it's infrared. It's below a signal
level that our eyes can actually pick up. But the camera can pick it up, which is why we see it right there. And so, this is an example of communicating, sending a signal across light. However, typically with computers, we need a much faster and much more direct and much less out in the open form of communication. So, what we do is we channel that light through a fiber optics. Fiber optics would be a smaller cable than an Ethernet cable and much more fragile. You need to
worry about bending it. And inside that is a small fiber. In fact, you probably can't even see this, but this is a fiber that is sends light through it. Now, this one's a plastic fiber because it's not actually from a fiber optics cable, but if it were from a fiber optics cable, it would be glass and you could break it because it's actually glass. It only bends so far. Now, those fiber optics cable would then plug into the computer into the network interface card. And the network interface card would have that light that would send the signal down that media. Our network interface card is our interface to the network and we can plug in to the rest of network with us. But what does it look like on our computer? Let's take a look at our network interface card on our computer. on a Windows machine. If I go to the Windows button and type in network connections and hit enter, it'll pop up with this network connections
here. And so I can see here all of the different interfaces that I have. So I have a Bluetooth one. I have two Ethernets on this laptop here. And then I have a Wi-Fi. And so let's take a look at the one that's actually live. So I'm going to take a look at this one. I'm just going to double click to open this up. And then I can see some details with it. So on here it says whether it has access to the internet or not. And it does have connectivity from an IP version 4 standpoint. And it says that it's enabled, how long it's been up. It tells the speed. And if I click details, I actually get more information. One of the things I have on here is the physical address. We also call this the burnedin address or a MAC address. So this is a MAC address right here. And that is the address that it has on this Ethernet connection. Uh it also has an IP version 4. And we're going to get more into a MAC address, an IP address, but for now I just wanted
you to see that we actually have a interface, a software interface on our computer here. So here's an example of an 8 port hub. Now, full disclosure, technically this is actually a switch. And there is a difference between a switch and a hub, but go with me on this because this really looks just like what a hub would look like. And what I would do is I'd take my Ethernet cable and I plug it into here until I hear a click. And there I know now it's seated. Now I connect all my devices using this hub. Now throughout this module, we're going to be mainly talking about an Ethernet hub. There are different types of hubs that are out there, but Ethernet is the one that we're going to talk about. Now, I'm going to put a disclaimer out there. We don't really use Ethernet hubs all that often anymore. There's a few use case scenarios where we might want to install a hub, but for the most part,
we use the switches for everything that we want to do. And there's reasoning behind that. However, I'm going to use an example of a hub for the main purpose is that it's going to describe the technology of Ethernet. Hubs are what we had when it was originally created. So, we can better understand Ethernet and computer communication by first understanding what a hub is. So, let's say one device wants to talk to another device on this network. What happens is it sends a signal
across its Ethernet cable. It comes into the hub on whatever port it's on. Let's just say this is port one. And then what this hub will do is it'll broadcast it out all other ports. Just like that. And then this computer along with the other computers will receive that message. So that's how a hub operates. Whatever comes into a hub, it will then broadcast out all other ports on that hub.
When we start communicating with more than one device, we're going to need to address the device that we want to speak to, we need some sort of addressing. And a MAC address is one of those addressings that we can use. So, let's talk about a MAC address and what it is. If one machine on this network is talking to another machine, we see with the hub that all other devices get that message, which has some security concerns, and we'll address that at a later time. But for now, let's just say that this computer needs to be able to address this computer. And then all other computers need to know that they need to ignore the message. So how do we do that? What we can do is we can have a MAC address on every single machine. So that way when this message gets sent out, we will tag it with what MAC address we're going for. So we're going to tag it with this MAC address right here. And then when all of these other devices see that message come in,
they're going to ignore it except for this one will process that message because it's destined for the MAC address that is this computer. MAC addresses are 48 bits long. 48 ones and zeros all lined up like that. However, that's really hard to read and relay that information. So instead, we use hexadesimal. So this is the equivalent in hexadesimal form. Of course, that also is a fairly long stretch of characters there. So what we do is we translate that into something like this where we put colons in between every two characters. And so what we have is 48 bits. However, it broke breaks down into 12 hexadesimal numbers right there. Uh you'll also see sometimes we have dashes in between. It doesn't really matter what kind of separates it out because it's just so we can read it better. It's not so the computer can read it. That's just the way the computer is displaying it. So then the next question
is is where do these MAC addresses come from? Do we assign them to these computers? And the answer is no. It's what's called a burnedin address. So each one of these devices has a network interface card. That's how it can connect all together. So whatever the manufacturer was of that network interface card and many times that's different than the actual device manufacturer. It's a different company that it manufactures those nicks. So whoever manufactured those
nicks burned in an address. So, it comes with an address already pre-assigned to it. Now, with all these lessons, there's a lot more that we can talk about, but that's going to be the basis for what we're going to talk about in the future. So, that is MAC addresses. Now, there are several different technologies that use MAC addresses. One of them being the Ethernet protocol, but there are other protocols. Some of them do use the MAC address while others use other types
of addressing. So just realize that this isn't just a given. However, it's going to be enough. We covered enough really for us to set up the rest of this module and discuss the rest of this module. One thing that we need to add to the message that we're sending out is the MAC address. We need to send it to a specific machine and so we attach the MAC address to our message. Well, that's called encapsulation. So in this lesson, let's take a look at what encapsulation means and what it is. I have some sort of message that I want to send this other machine right here. So what this computer does is it forms the message on whatever that's going to be. But now what needs to happen is it needs to add the addressing to that message. So that way when it goes out, this computer knows to listen for it and process that message. And so what we do is we add the MAC address. So
encapsulation is the extra information it adds for delivery. Now let's step away from Ethernet for now because encapsulation is more of a generic term and we'll see encapsulation with a lot of different protocols not just Ethernet. And so let's just talk about encapsulation from a higher level here. So first of all we have the section here that we call the data or the payload. So the data or the payload is going to be what needs to be delivered. Then the header is going to be the information that's going to exist for delivery or for being able to do some error checking or there's several things that a header could do, but it's extra information to allow the communication and it's part of the protocol. It's all defined part of the protocol. And then sometimes, not all the time, sometimes we include a trailer which has a little extra information. For instance, maybe it has some error checking to make sure that nothing has been corrupted during delivery.
So here we see some of the purposes of both the header and the trailer. As I mentioned, if it has a trailer, a lot of times it's for error checking. If it has a header, it could be for addressing or could be for sequencing. Sometimes we are sending lots of data that has some sort of sequence to it and we need a sequence number to it. Or maybe it's identifying the protocol. So what goes in here identifies what protocol is in the payload. Now one thing I'll mention is that sometimes we encapsulate other protocols which means that we may add a header here and then we may add another header here and this has different information. In fact more than likely we have lots of different headers that we add to it. So there are times when we encapsulate something that's already been encapsulated and we're not going to get too ind depth into that now. us know that that's a thing.
One of the most common protocols there is is Ethernet. And this is an Ethernet cable. In fact, I'm willing to bet that you have Ethernet running somewhere in your home. So, let's take a look at Ethernet. And more specifically, let's take a look at the frames of Ethernet and how it transfers the payload back and forth between devices. Here's an Ethernet network. In the middle of the Ethernet network, we have a hub. And then each of the devices have a nick card on them.
That is an Ethernet nick card, network interface card, and has a burnedin MAC address to it. So, this is what Ethernet is. And what's being sent back and forth, the messages that are being sent back and forth is called a frame. When it comes to encapsulation, we add a header and possibly a trailer to add extra information on how to deliver the data or the payload. So, what does encapsulation look like specifically when we're talking about Ethernet? Well,
we have that payload here. We do add a header to it and we add a trailer in this case. So, the header for Ethernet starts out with the MAC address. So that way when it sends this message, whatever device is receiving it is going to take a look at that destination MAC address and says does this belong to me? If not, I'm going to get rid of it. If it does belong, if it is the MAC address that of the machine that's receiving it, then it'll say, oh, I'm going to process the rest of this. We also have the source MAC address. So this is where so that the device knows who is this coming from. So, whoever sends this out is going to put their MAC address in the source. Then we have this type field right here. The type field just essentially identifies what type of Ethernet frame this is. What is the payload going to be? What is the size of all of this? What is uh is
there's essentially there's two different types that can be found in here. But you can just think of it as identifying the size or the type of this this whole Ethernet frame here. And then we've got this frame check sequence at the end. And this is just a double check to make sure that everything is accurate. And it will once the receiving device receives this, it will use this to verify that nothing's been changed or corrupted along the way. If we were to put actual bits to it, we know that the MAC addresses are 48 bits. So these are each 48 bits. The type field is just 16 bits. The payload could be anywhere from 368 to 12,000 bits. And then the frame check sequence here at the end is 32 bits. And what is an Ethernet frame? Well, the this whole thing is the Ethernet frame. The payload, the header, the trailer. That's what we call the the Ethernet frame.
We've all been in that place where we've started to talk and at the same time somebody else has started to talk and usually what happens we just say oh yeah you go ahead first you know one of you will let the other person talk. Well the same thing happens with computers. We call it a collision when two computers try to talk at the same time. So let's talk about a collision and what we do when there is a collision. Now here's our network and in the middle we still have our hub. What happens with a hub is every time somebody talks and it comes in on a port it broadcast gets broadcasted out all other ports. So it's quite conceivable that some other device could talk at the same time causing a collision. So Ethernet is just built on the fact that there are going to be collisions and we expect it to happen all the time. Ethernet uses something called carrier sense multiple access collision detect or CSM CD.

Ask anything
We've read this whole study set, so questions about it get the best answers.