Skip to main content

ARP Explained - Address Resolution Protocol

AARP stands for address resolution protocol now this is a protocol that is used to resolve IP addresses to MAC addresses the MAC address is a physical address of a device it's a globally unique number that is assigned to every network interface card whenever a device needs to communicate with another device on a local area network it needs the MAC address for that device and devices use ARP to acquire the MAC address for that device so as an example let's say that computer a wants to communicate with computer B now computer a already knows the IP address for computer B but in order to communicate with computer B it still needs its MAC address now an IP address is used to locate a device on a network and the MAC address is what identifies the actual device so in order to find the MAC address computer a will first look at its internal list called an ARP cache to see if computer B's IP address already has a matching MAC address in fact we can check this ourselves at a Windows command prompt by using the ARP utility and by typing ARP space minus a and as you can see in the output it has no entries at all the ARP cache is empty so now computer a will send out a broadcast message out on the network asking every device which computer has the specific IP address and will ask for their MAC address then the computer that has the matching IP address will then respond back and tell computer a its MAC address then once it receives the MAC address the communication can now take place between the two now once computer a has the MAC address it'll store this information in the ARP cache so now let's do the same commands as before and now you can see that the IP address and matching MAC address have been added to the ARP cache the ARP cache is used to make a network more efficient it stores IP address 2 MAC address associations so that the next time it needs to communicate with a device on the network it doesn't have to broadcast a message out on the entire network it can just look in the ARP cache and there are also two different types of AARP entries dynamic and Static a dynamic entry is created automatically when a device sends out a broadcast message out on the network requesting a MAC address just like in the example we just did dynamic entries are not permanent they are flushed out periodically so that the cache doesn't get filled up with too many entries that are not being used and a static entry is where someone manually enters an IP address 2 MAC address association using the ARP command-line utility so for example let's create a static ARP entry so at a command prompt you would type ARP space minus s and then the IP address followed by the MAC address so now if we look at the ARP cache again we would see our static ARP entry network administrators would use static entries to reduce any unnecessary ARP broadcast traffic on a network for example static entries are ideal if you know that two devices are constantly going to be communicating with each other

Comments

Popular posts from this blog

Port Forwarding Explained

what is port forwarding now maybe you've heard about it but you weren't exactly sure what it was or how it works so basically port forwarding allows computers over the Internet to connect to a specific computer or service within a private network it's basically making your computer accessible over the Internet even though you're behind a router so for example let's say a friend of yours at their home wants to remotely control your computer at your home using a service such as remote desktop connection now remote desktop connection is a service built into Microsoft Windows that enables you to connect to another computer running Microsoft Windows and then once you're connected to the remote computer you can use that computers programs and files just as if you were sitting in front of it so now your friend is ready to connect to your computer so we starts up the remote desktop connection and sends the request to your public IP address with a specific port number no...

32 bit vs 64 bit

computer hardware and software can come in 32 or 64-bit versions the difference between a 32-bit and a 64-bit is the way that it handles memory the bit size refers to the memory that it can address a 32-bit system can reference 2 to the 32nd power bytes of memory which equals to about 4 gigabytes however a 64-bit system can reference 2 to the 64th power bytes of memory which equals to about 16 exabytes which is 4 billion times more memory than a 32-bit now that number is so huge that it's virtually unlimited because we will never need to use that amount of memory so in a computer in order for data or a program to run it needs to be loaded into Ram first so the data is stored on the slower hard drive and from the hard drive it's loaded into the faster Ram and once it's loaded into Ram the CPU can now access the data or run the program now in a 32-bit system since the maximum amount of memory that it can support is 4 gigabytes it may not be enough to hold all the data that th...

TCP vs UDP Comparison

whenever a computer wants to communicate with another computer the communication between those two computers needs to be good and reliable so we can guarantee that the data is received correctly for example when you want to view a webpage or download a file or look at an email you'd expect to view the webpage intact and in order with nothing missing or if you're downloading a file you would want the entire file and not just a part of the file because if data is missing or out of order then it wouldn't be of any benefit to you so this is where TCP comes in TCP stands for transmission control protocol and this is one of the main protocols used in a tcp/ip network and TCP is what is used to guarantee that all the data is received and in order because without TCP then some of the data could be missing or out of order because if you view a web page without TCP your web page could be all messed up the images could be missing or the text could be backwards and out of order or if y...