知识点15:初识网络(internet primer)

There's not just one option called internet. And so something or some things exist in between when we want to connect to the internet.


The first of these things is an IP address.

And so an IP address just looks pretty much like this:

So instead of 4 billion addresses, we're going to have that huge number of addresses, which is 340 billion billion billion billion, so a lot of IP addresses.

But we're bad at dealing with them even though we know about them. So IPv6 has been around for a while. And only in the last couple years have we actually started phasing in these IPv6 addresses to phase out the IPv4 addresses.

But some places do have them. And they look similar to a regular IP address. But they are a lot longer.

So instead of now having four clusters of 8 bytes for your address, we now have eight clusters of 16 bytes. And 8 times 16 is 128.

And we represent these in the less conventional hexadecimal form.

Because having 16-bit numbers means that instead of being a range of 0 to 255, We'd have a range of 0 to 65,535. And so having a bunch of those stuck together would be very difficult to read.And so we usually use hex just out of convenience.

And so a typical IPv6 address might look something like this:

It's certainly a lot longer than the IPv4 address we've seen before. But this would be a valid IPv6 address.

This one is also about IPv6 address.

This one happens to belong to Google. And notice there's a bunch of zeros there.

Sometimes these addresses can get so long. And since we're still pretty early in IPv6, sometimes there can be big chunks of zeros in there that we don't need.

If you're reading this out loud, it's 2001.4860.4860.0.0.0.0.8844. It's kind of a lot, right? So if you see a bunch of zeros, you might sometimes see an IPv6 address like this:

where they omit the zeros and use a double colon instead.

This is OK, though. Because we know that there are supposed to be eight distinct chunks. And so by implication, we see four. So we know that there must be four sets of zeros like this, that fill it in.


So, OK.

We know a little bit more about IP addresses now. But how do we get them?

DHCP server, a Dynamic Host Configuration Protocol server. It's a big mouthful of text.

But really all it does is it assigns you an IP address. Your DHCP server has a list of addresses that it can validly assign. And it gives you one. That's pretty much all there is to it.

Now before DHCP, this task of assigning addresses fell to a system administrator.

So an actual person would have to manually assign your computer and address when you connected to a network.

So DHCP just sort of automates this process of giving you an IP address. But that's how you get it. It's just a program running somewhere between you and the internet that has a bank of IP addresses that it can give out. And when you connect to the network, it gives you one.

So let's revisit this diagram.

Somewhere between you and the internet, there's a DHCP server.


Now, let's talk about DNS.

And you can think about it as if it's just a huge list running from 0.0.0.0 all the way down to 255.255.255.255, which would be the highest possible-- that's the full range from 0s to 255s of all 4 billion-ish IPv4 addresses.

And similarly for IPv6s, we're also going to have a yellow pages that'll be a lot bigger.

what actually DNS is:

So now we know that somewhere between us and the internet there exists a DNS server as well as a DHCP server.


Now, access points, what our access points?

Well, access points you're probably pretty familiar with from actually connecting to the internet.

That's the network that you choose, the home or your work network or what have you.

Every machine having a unique IP address, which we have run out of, because we're over 4 billion devices trying to connect to the internet, what we do is instead assign an IP address to a router. That router or access point just in your home, for example.

And the router's job as to sort of act as a traffic cop, allowing everybody who's connected to that router to use the same IP address to get out.

Does that make sense? So everybody at your home has a private IP address.

They can't connect to the internet, or the internet rather can't speak to them, through that private address. They can only speak to them through the address in the router. And it's the router's job to take information that you're sending the router and direct it to the correct place and for information that's coming into the router for the router to send it to you.

So the routers are really the devices here-- particularly a router in your home, the most common sort of usage case for most people --that has the public IP address.

That's the device that's connected to the internet. And you connect to the router to have information flow through it on your behalf.

So again, somewhere between us and the internet, we have an access point. And that's what we connect to.


We're not the only person probably on our local network trying to use the internet. There's probably several of us trying to get in.

And we're not the only network that exists in the world, right? There are other networks, too, that are trying to connect to the internet.

But the internet is not, again, a separate entity. It's just a set of rules that allow these networks, these small networks, the blue, the purple, and the red network here, to communicate with each other.

So there's no thing they're all connecting to. They're all just connected to each other, right?

And so somewhere on these networks exists the services that we actually want. So maybe in the blue network is where Google lives. And in the purple network is where Facebook lives. And in the red network, well, maybe that's where all those cats are.

And so if we want to get information about cats, we just traverse this chain of networks to get the information we want. And here, I've represented the network as all being able to talk to each other. And we can only talk to the network. But the network can't talk back to us. But that's not true either, right? This is all a two-way street. Information can flow through networks back and forth.

How does it do that?

Well, the internet's really a system of protocols.

And we're going to start talking about what those protocols are in future videos.

The End

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,406评论 6 503
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,732评论 3 393
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,711评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,380评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,432评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,301评论 1 301
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,145评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,008评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,443评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,649评论 3 334
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,795评论 1 347
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,501评论 5 345
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,119评论 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,731评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,865评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,899评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,724评论 2 354

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,495评论 0 23
  • 下两周学校的教学安排是实习,要求我们拍一个有关安阳文化的纪录片。殷墟、红旗渠、文字博物馆、道口烧鸡、粉浆饭.......
    孤独的梵高阅读 668评论 3 7
  • 原本阳光的三种颜色陷入深深的黑暗,我不知道是否有背景,但我相信不论背后势力有多强大他们绝不能一手遮天,删除撤销我们...
    来日方长喔阅读 156评论 0 0
  • 再过1小时50分钟,我就要开始呼吸30岁的空气了。 刚刚结束辗转15个小时的飞行,此时此刻,我正窝在巴厘岛的竹木屋...
    蚂蚁Yee阅读 983评论 10 13