To learn more: https://www.AutomationDirect.com/communications?utm_source=WM_1oAAVdq0&utm_medium=VideoTeamDescription
(VID-OT-0056)
Explore the ins and outs of IP Addressing with AutomationDirect.
Online Support Page: https://community.automationdirect.com/s/contactsupport?utm_source=WM_1oAAVdq0&utm_medium=VideoTeamDescription
*Please check our website for our most up-to-date product pricing and availability.
AutomationDirect.com presents What is an IP Address? Pets have names. Houses have addresses. Banks have routing numbers. 1970’s truckers had CB handles. In order to receive communications, everything needs to have some designator that allows messages to be directed its way. In Ethernet-based electronic networks, that designator is an IP address. Every device on a network must have an IP address, and each address in the network has to be unique. An IPv4 IP address is a 32-bit binary number that by convention is broken into 4 8-bit “octets.” Usually, we see this displayed in a decimal format, which gives us the familiar grouping of 4 numbers, each between 0 and 255. There is also IPv6 Ethernet addressing, which uses 128 bits – allowing for a truly staggering number of networking configurations. IPv4 is by far the more common scheme for PLC and control networks and is what we’ll concentrate on here. Here’s a typical IPv4 IP Address for a smaller network: 192.168.1.32. This is the way we humans like to look at it, but let’s go back to the way a digital device is going to look at it. These 32 bits hold 2 primary chunks of information that together identify a specific device. The left group of bits is the Network ID, and the right is the Host ID. It identifies the specific device within that network. The number of bits in each section is the crucial third piece of information here, and we’ll come back to that but for right now let's say that in our example, the network identification comprises the first 24 bits, leaving the rightmost 8 bits to identify the host. With 8 bits, we can represent any number from 0 to 255, which gives us a subnet address range of 256 unique device addresses. However, in the possible address range of any subnet, 2 addresses are reserved. The lowest address in the range is the Network Address and cannot be assigned to a host. The highest address in the range is the Broadcast Address used to send data to all network destinations and likewise cannot be assigned to a host. This gives us 254 possible addresses in an 8-bit Host ID. All the hosts in the network will share the same Network ID (24 bits in our example) but each will have a unique Host ID. But what if we need our network to handle more than 254 hosts? We mentioned earlier that there’s a third variable, which is the number of bits allocated to each part of the IP address. We may have an IP address in which the Network ID is 16 bits, leaving 16 bits for the Host ID. Instead of 256 minus highest and lowest for 254 total possible addresses, now we are looking at 65536 addresses – but again, the highest and lowest of those can’t be assigned to hosts, so 65534 possible addresses. But all IP addresses look the same to a router or device that is trying to decipher to which network and which ID it should route a particular message. How does it decide how many bits are intended to be in the Network ID and how many in the Host ID? This third crucial element of network addressing we mentioned is called a subnet mask. Like the IP address itself, it is a 32-bit binary number and it acts as a logical AND mask to separate the 2 components of the IP address. Starting from the most significant bit, on the far left side of the subnet mask, all the bits that are to be included in the Network ID are assigned a 1, and the others a 0. So in our first example with the 8-bit Host ID, (192.168.1.32) our subnet mask will look like this: If we logically AND that with the IP address, we get: We’ve masked out the Host ID, leaving just the Network ID for the router to start with. So, looking at the binary mask in our familiar group of 4 8-bit numbers in decimal format, we get 255.255.255.0. For smaller networks, this is the most common subnet mask that we’ll see. Often, you’ll see an address that is notated as the IP address 192.168.1.32, with the subnet mask labeled separately in the same format. There is also a simpler notation that network-savvy people might use, which is called Classless Inter-Domain Routing notation or Slash notation. It consists of the IP address in the standard format with the number of Network ID bits appended onto the end after a slash. So the IP Address contains all the information a router needs to deliver data, but the router needs a key to decipher the information, and that is the subnet mask. With these elements, we can successfully route messages to the correct devices. To learn more industry fundamentals, check out our What Is series of videos by clicking here. Click here to subscribe to our YouTube channel.
Voted #1 mid-sized employer in Atlanta
Check out our
job openings