TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What does each part of an IP Address represent?

6 pointsby thisismyhnuserabout 9 years ago
What does each component of an IP Address represent? Take &quot;215.54.87.2&quot;. According to https:&#x2F;&#x2F;www.iplocation.net&#x2F; this IP address is located in Columbus, Ohio. (I made up those numbers....it is just some random Jerry.)<p>Does &quot;215.&quot; essentially say the IP address is located in the US, &quot;215.54.&quot; say it is in Ohio and &quot;215.54.87.&quot; say it is a company in Columbus? Further, a single company would own the block of &quot;215.54.87.*&quot;, no? And that company may or may not be an ISP, right?<p>The above is for an IPv4 address...how does the breakdown work for IPv6 addresses?<p>I feel like these are stupid beginner questions but I can&#x27;t seem to find a good tutorial on IP addresses for dummies.

2 comments

detaroabout 9 years ago
The dots are just for human readability, showing the address byte-by-byte, and don&#x27;t have any &quot;meaning&quot; anymore. Geographic structure is also only accidental.<p>Subdivisions nowadays happen nearly everywhere and noted with a a slash and a number after the IP address (e.g. 215.54.87.0&#x2F;24 is the network containing all addresses where the first 24 bits are the same as in 215.54.87.0, 215.54.87.0&#x2F;28 would be all the addresses where the first 28 bits are the same etc).<p>The rules differ a bit between the regions, but if I remember correctly a &#x2F;24 is the smallest that can be officially assigned to an entity and announced in the global routing tables. They are free to slice smaller inside their networks though, and e.g. give a customer a &#x2F;28 or &#x2F;30 to use.<p>I hope that is somewhat understandable, I&#x27;m having a hard time putting it in words...<p>EDIT: IPv6 is same principle (although the notation for the address itself is now different). One important size there is &#x2F;64, which is the subnet size for which automatic address assignment works, and the default size for subnets containing end devices. If you get IPv6 internet, you get at least a &#x2F;64 (although a &#x2F;56 is recommended), so you don&#x27;t need NAT because you have more than enough addresses for everything.
Spoomabout 9 years ago
You used to be able to buy blocks of public addresses from ARIN (and I guess you still can[0] but only under special circumstances[1]) but the IPv4 public assignment table is essentially full. You could buy blocks in class A (i.e you would own X.&lt;all&gt;.&lt;all&gt;.&lt;all&gt;), class B (X.Y.&lt;all&gt;.&lt;all&gt;), or class C (X.Y.Z.&lt;all&gt;).<p>The class assignments themselves are now either a result of an RFP (for special class IP blocks like multicast) or historical significance (basically, who grabbed it when it was available). XKCD had a comic in 2006 mapping the IPv4 assignment table[2].<p>I don&#x27;t know much about IPv6 other than that its address space is so large that you essentially don&#x27;t need to use NAT anymore, so I doubt we&#x27;ll ever deplete it.<p>0. <a href="https:&#x2F;&#x2F;www.arin.net&#x2F;fees&#x2F;fee_schedule.html" rel="nofollow">https:&#x2F;&#x2F;www.arin.net&#x2F;fees&#x2F;fee_schedule.html</a><p>1. <a href="https:&#x2F;&#x2F;www.arin.net&#x2F;resources&#x2F;request&#x2F;ipv4_countdown.html" rel="nofollow">https:&#x2F;&#x2F;www.arin.net&#x2F;resources&#x2F;request&#x2F;ipv4_countdown.html</a><p>2. <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;195&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;195&#x2F;</a>
评论 #11551566 未加载