码迷,mamicode.com
首页 > Web开发 > 详细

[udemy]WebDevelopment_how the internet works

时间:2018-06-21 11:25:25      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:cas   apt   question   ike   hone   another   inf   too   第一步   

Browsing the web

技术分享图片

 

Enter google.com, who is this google.com

This question gets asked all the way down to our ISP(Internet Service Provider), like Verizon For users, you pay so you have internet. 

ISP get the request and send them to DNS(Domain Name Server) server, it‘s like a phone book.

It has the list of all these URLs like google.com and has the address of them 

DNS send off the request back through ISP

web browser like google chrome in this case gets 172.217.7.23

 

技术分享图片

 

we recevie IP address 

anything that‘s connected to the Internet has its own address (each laptop work now has IP address)

this Ip address allows the Internet to work 

once we know the IP address, the browser sends off another request to Google Server

Google Server say, oh np let me give you my HTML, CSS, JS

then  HTML, CSS, JS would be sent to the browser 

技术分享图片

Then browser would show the formal Google page 

 

对于以上三步,

我们是否可以skip第一步

用第二步直接将IP address发送给Google server呢?

技术分享图片

同样可以得到第三步的formal Google page 

 

 

Breaking Google

 

技术分享图片

 

通过 View ->   Developer -> Develper Tools 

 

技术分享图片

界面就变这样了

 

技术分享图片

 

点击左上方的这个带poniter的标志

可以看到网页的各个模块, 可以自行改动模块

技术分享图片

 

这就像我们改动了Google Server先前传过来的 HTML, CSS, JS文件

一旦我们再reques Google Server 

则界面又会复原成Google Server 传来的 HTML, CSS, JS文件所展示的样子(如下图)技术分享图片

 

 The Internet Backbone 

技术分享图片

We have Wifi from router 

Router is connected to modem(If you sign up for Internet, you may have someone come to your house and install it

The modem has the signal towers that transmit signals 

Is connected all the way to the ISP

IPS is connected to Internet backbone 

技术分享图片

 

all the files would go through this submarine cable(physical cable goes the bottom of see floor ) 

 

Traceroute

技术分享图片

 

 

通过traceroute可以查到从自己家的home router出发到google server中间转战了多少个stop

 

Developer Fundamental

how to make websites load faster ?

技术分享图片

location of server 越近越好

how many trips 越少越好

size of files 越小越好

 

What does a developer do ?

技术分享图片

 

[udemy]WebDevelopment_how the internet works

标签:cas   apt   question   ike   hone   another   inf   too   第一步   

原文地址:https://www.cnblogs.com/liuliu5151/p/9206873.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!