TechKnowSurge
CompTIA Network+ 1.7 Cisco CCNA 1.6 Cisco CCST Networking 2.2 CompTIA Network+ 2.1 Cisco CCNA 3.1 Cisco CCST Networking 4.4 Cisco CyberOps Associate 4.8
VideoNetworkFree

What is IP Addressing

IP addresses are logical identifiers assigned to network devices that enable traffic to be routed between sources and destinations across interconnected networks. This content covers address structure, packet headers, hierarchical addressing, and the organizations responsible for IP address allocation.

Complete this video to capture a CTF flag worth 1 point.

About this video

An IP address is a numerical label assigned to every device participating in a network, serving as the mechanism by which traffic is directed from one point to another. These addresses are written in dotted-decimal notation, divided into four sections called octets, each representing eight binary bits and holding a value between 0 and 255. The underlying binary representation is what computers actually process, but the decimal format is the standard used in practice. IPv4's 32-bit structure yields approximately 4.3 billion possible address combinations, a pool that has proven insufficient given the scale of modern internet usage and has driven the transition toward IPv6. When a device sends data across a network, that data is broken into packets. Each packet consists of a payload, which is the actual content being transferred, and a header, a structured block of bits that contains routing instructions including both the destination IP address and the source IP address. Routers along the path read the header and forward the packet toward its destination, and the source address ensures that response traffic can find its way back to the originating device. The standard IPv4 header is 20 bytes, representing 160 bits dedicated solely to delivery logistics. IP addressing is described as hierarchical because the address space is divided into progressively smaller ranges rather than assigned randomly. This structure makes routing predictable and scalable, allowing routers to direct traffic efficiently based on address blocks rather than tracking every individual device. The hierarchy also defines how addresses are administered: the Internet Assigned Numbers Authority oversees the global address space, distributes large blocks to regional internet registries, which in turn allocate ranges to internet service providers, who then assign addresses to their customers. This layered governance ensures both orderly distribution and efficient routing across the global network.

What you'll learn

What's covered

IP Addresses

Aligned to

CompTIA Network+
1.7 Given a scenario, use appropriate IPv4 network addressing.
2.1 Explain characteristics of routing technologies.
Cisco CCNA
1.6 Configure and verify IPv4 addressing and subnetting.
3.1 Interpret the components of routing table.
Cisco CCST Networking
2.2 Identify IPv4 addresses and subnet formats.
4.4 Explain basic routing concepts.
Cisco CyberOps Associate
4.8 Interpret the fields in protocol headers as related to intrusion analysis.

Key terms

IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Internet Protocol
IP
The principal communications protocol for routing packets across network boundaries.
Packet
A unit of data formatted for transmission over a network, containing a header, payload, and sometimes a trailer.
Payload
The actual data content of a packet or message, excluding headers and metadata.
Router
A network device that forwards data packets between networks based on IP addresses.
Octet
One of the four 8-bit sections of an IPv4 address, each separated by a dot in dotted decimal notation and representing a decimal value from 0 to 255. For example, in 192.168.1.1, the four octets are 192, 168, 1, and 1.
Packet Header
The portion of a packet prepended to the payload that contains routing information, including source and destination IP addresses.

Transcript

An IP address is just that: it's a type of address. It's an address for the different devices that are out on these networks. What it does is allow traffic to be routed to and from your device to get to other devices and other resources that are out there. So as an example, if you go to a website, what you're doing is accessing that website, and that traffic is getting routed to that website via an IP address. It finds that website, and then for that traffic to get back to you, it needs to know your IP address. So IP addresses are used out there in order to locate the different resources that are out there on these different networks.

Here's an example of that, where this computer right here has an IP address of 10.41.42.35. Let's say it wants to access some sort of information that's on this computer, this laptop right here. Well, this has an IP address as well. So traffic is actually going to be routed across the internet, or whatever networks there are, to this final destination. You have to know what the IP address is of that final destination. And then, based off of whatever information you're requesting, that traffic will get routed back via the IP address for your computer, or whatever device that you're using to access that information.

Parts of an IP address

IP addresses are usually displayed in decimal format. So as we can see, 192 is just a simple base 10 decimal format, what we're used to working with. However, binary is on the back end of this. Each one of these numbers has a range from 0 to 255, because there's eight bits for each one of these sections. You'll notice that there are four sections, or what we call octets. Each one of these is called an octet, and those octets are separated by a period or a dot. Usually what we'd do is say that this IP address is 192.168.0.42 - 42, one of my favorite numbers here.

If we were to take a look on the back end of this, it would be binary on the back end. These are computers, right? So these are the four octets and placeholders for the different numbers. Notice that there are 32 bits total and they're broken into eight bits, or we call that a byte. So it's eight bits, or a byte, or really, as I mentioned before, we call them an octet. So when we're talking about IP addresses we call them octets. For our eight zeros, which would be 0, to 1 one one one 1 one one one, which would be 255. So there are 256 values for each one of these. Since there's 32 bits total, you can take 2 to the 32nd power and you've got over 4 billion possibilities with that - almost 4.3 billion different possibilities, combinations with that.

So your address ranges with IP version 4 - and this is an IP version 4 address, by the way - the address range with an IP version 4 is really quite large. However, because of how we utilize them, we are running out of them and we need to switch to IP version 6.

How IP addresses work

This right here is a mapping of a network. We call this a topology. This shows the topology of a network, or how the network is laid out. On here we have end devices such as computers and possibly a server. We have things like switches here. These are routers right here. So we have different devices, different physical devices. Then we have the internet. The internet is a bunch of different networks all connected together, so often we represent the internet as being a cloud. So this is a network and how a network is all laid out.

If we want to send a message from one device to another, then what would happen is this would be broken down into a small message that would be sent across the network. In the case of IP addresses and IP addressing, we call this a packet. So this is a packet right here, and it's what's going to be sent from one device to the other. If we were to take a look at this packet, really what it is is a string of ones and zeros that are sent along. In fact, it's a lot of ones and zeros. Even for a small packet, it's still a lot of ones and zeros that are sent across here.

Now, this packet needs to be able to be routed through these different networks to the end location, and it needs additional information to do that. So if this is the packet, or the information that needs to be sent, what it will do is add some ones and zeros to the front of this to give it instructions on how to deliver it. We call that the header. So a header goes onto the front of this packet so it can be delivered to the final destination. Now, keep in mind that the ones and zeros here, you would probably have a lot more that you're sending across there, and likewise the header gets quite a bit bigger than this also. But this is just representative of how that information goes into the header of a packet in order to make it to its final destination.

Inside the packet

Here is another way of looking at that header. This is an example of a packet. This whole thing that you see right here is a packet, or at least representative of the packet. Really, if we were to dig down deep into this, we'd see a bunch of ones and zeros, and it would just be a string of ones and zeros that are heading across this network. However, for this purpose, this is a visual way of representing this packet.

There's a section of this called the payload. The payload is what we're trying to deliver to the other side. So maybe this is a web page. Maybe there's been a request for a web page and now we need to deliver that web page to the other side. This is that information that's being transferred to the other side, or it's the payload. It can be anywhere from zero to one over a thousand bytes long.

Then what we need to do is have that information on how it's going to get routed, or where it's going, so it can be routed, so it can be delivered to the other side. That's this header part right here. This header has 20 bytes. So if we were to calculate that out, 20 bytes, times a byte is 8 bits, so it'd be 20 times 8, which would be 160. So we have 160 little bits just to tell that packet where to go. Quite a few bits just to tell it where to go. And it could even be bigger than that if there are some options on there.

If we wanted to dig even deeper, this is another way of looking at just the header part of that. So this is showing you how the bits would be laid out here. I go much more in depth into this in another class, so I'm not going to get real in depth into this, but if you are interested in seeing what a header looks like and what some of the information in this header is, this is one way of representing that.

So what we have across here is each one of these is showing a bit. You can see 1, 2, 3, 4, 5, 6, 7, 8, so there is eight bits. This shows a byte then. So all across here is four bytes. And then this is byte 0 through three, so that's the first four bytes. We see that there's a version, an IHL, DSCP, an ECN, the total length. So we've got different information explaining what's going to be inside this header and what's going to be inside this packet.

One of the things that I am showing you this for is because we see in here there's this source IP address and destination IP address. The destination IP address, so it knows how to get to its final destination, where it's going to be routed to. And then the source IP address needs to be in there so that way the information can come back to you. So if you're making a request for a web page, it's going to go to that destination IP address, and when it gets there, that machine is going to put that information that you've requested in the payload and then send it back to you, and it will use that source IP address in order to know where it's going to be sent back to. So that is what you would find inside the header.

So in the case of our packet right here that has some sort of header that's attached to it, once it gets to this router, it's going to be routed to whatever is going to be the best route to get to its final destination. It gets to this second router right here and gets routed again. It gets to this third router and then gets routed to its final destination. What happens within your network operates a little differently, and we're not going to go real in depth into that, but this just shows you where it uses that IP information on these routers to get routed to the proper destination.

Hierarchical addressing

One thing that makes IP addressing so functional is the fact that it's a hierarchical addressing scheme. So what does that mean? Well, the alternative is something like MAC addresses, where things get shipped all around the world and it's really random. How do you find something when things are all over the place? Versus hierarchical, which has some sort of structure to it. It has top levels and then it gets broken down further and further.

So what does that look like? Well, here at the top represents everything. This is what we call a quad zero right here. It's representing everything, and that gets broken down into smaller sections. You can see that it's really wide here, it branches out way beyond this. But as you can see, this can get broken down into smaller sections, which can get broken down into even smaller sections, which can get broken down into even smaller sections. So somebody is in charge of this top level, and then it could be sectioned out into where certain people are in charge of the lower side of this, or a subset of this, and then that can be handed out to maybe an internet service provider, so they're in charge of another section of this, and then that ISP can hand out addresses to your specific company.

So it's a way to organize not just being able to hand out these IP addresses and have an organized way of handing out these IP addresses, but also organized from a routing perspective. So that way we know where in the world this 12.0.0.0 is supposed to be routed to, because there's a hierarchy to this addressing scheme.

Who governs the addressing scheme

So who's in charge of this addressing scheme? Well, there are actually many organizations. There's a top level organization, the Internet Assigned Numbers Authority, that is in charge of the overall scoping, and then hands out certain address ranges to these individual organizations that control these big sections of the planet here. And then from there, those organizations will hand it out to different internet service providers, and the internet service providers will hand out these IP addresses to certain clients. So that is how things are broken down, because there needs to be some governance around this.

There are also different types of addresses, whether it be unicast, multicast or broadcast addresses.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →