TCP/IP 传输控制协议/因特网协议

来源: goingunder 2019-06-20 18:17:11 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (1909 bytes)

TCP/IP是Transmission Control Protocol/Internet Protocol的简写,译名为传输控制协议/因特网协议,是Internet最基本的协议。

因特网两台机器是用tcp/ip协议交谈(如下图).如果文学城的服务器要发一个“我”字给你,首先要把文字转为“01”用TCP/IP包装标明你的地址,你才能收到,当你收到,你的机器通过TCP/IP解码成“我”。

你要在文学城这个网站读取信息,文学城要知道你的IP地址才能把信息发给你. 就好比某人要给你发一封信,他要知道你的地址或邮箱号,你才能收到. 当然他不需要具体知道在那,邮电局知道.

如同不同的一家人必须有不同的地址(否则邮电局就不能正确地投放信), 因特网理论来说,任何一台机器都有一个IP.

如果你注意到ip(IPv4)是35.190.55.229这样的格式,意味着只有4,294,967,296 (2^32) addressess in total. 也就是说有天ip会用光. 那怎么办呢? 

原来一个ip对应一个机器,我们可以对应一个小的intranet. 好比以前一个门牌号码对应一家人,现在对应一个小区. 但你在小区内还是得有相应的地址才信,否则信还是送不到. 

一般如果你不用VPN,网管可以通过你的IP知道你的大概地址。ip to location: https://www.iplocation.net/

好比邮电局肯定知道你的小区的地址。不一定知道你房间的位置,但你的小区管理人一定知道。也就是你的intranet的网管一定知道你的机器或手机是谁的。

文学城:
Host Name  : www.wenxuecity.com
IP Address : 35.190.55.229
Location   : United States

所有跟帖: 

又出来一个专家。。。我们得先问一句您这是哪年代的专家。。。 -borisg- 给 borisg 发送悄悄话 borisg 的博客首页 (0 bytes) () 06/20/2019 postreply 18:21:01

就是这么回事 -MoonRiverMe- 给 MoonRiverMe 发送悄悄话 (0 bytes) () 06/20/2019 postreply 18:24:41

I tried to use richard feynman method to explain the theory. :) -goingunder- 给 goingunder 发送悄悄话 (0 bytes) () 06/20/2019 postreply 18:27:04

often time outside company can remote into my computer at work a -MoonRiverMe- 给 MoonRiverMe 发送悄悄话 (0 bytes) () 06/20/2019 postreply 18:41:59

as long as I provide them my IP -MoonRiverMe- 给 MoonRiverMe 发送悄悄话 (0 bytes) () 06/20/2019 postreply 18:43:17

我觉得就是这样。不然信息怎么传递呢。 -maple2017- 给 maple2017 发送悄悄话 maple2017 的博客首页 (0 bytes) () 06/20/2019 postreply 18:33:10

对方如果用VPN,你能得到对方真实的地址吗? -南侠- 给 南侠 发送悄悄话 南侠 的博客首页 (0 bytes) () 06/20/2019 postreply 18:43:21

可以通过VPN的管理员查到. -goingunder- 给 goingunder 发送悄悄话 (0 bytes) () 06/20/2019 postreply 18:52:06

比方我用VPN上文学城,文学城能知道我从哪儿登录的吗? -南侠- 给 南侠 发送悄悄话 南侠 的博客首页 (0 bytes) () 06/20/2019 postreply 19:02:01

问了一个搞IT的,人说,翻墙,你看到的是他出来借助的地址,你并无法知道他实际地址的,只是有些大家都知道的VPN,你从那里来就说明 -柴郡猫- 给 柴郡猫 发送悄悄话 (0 bytes) () 06/20/2019 postreply 19:12:06

想起来了,那个Amigo假专家说Http/IP和TCP/IP只是不同的combination的问题,驴唇不对马嘴 -老农民说两句- 给 老农民说两句 发送悄悄话 老农民说两句 的博客首页 (296 bytes) () 06/20/2019 postreply 19:51:53

他们 -lovNordstrom- 给 lovNordstrom 发送悄悄话 (74 bytes) () 06/20/2019 postreply 20:02:30

很可能都用中文,比如帧。我在美国学的网络,看了还得查查是什么意思 -老农民说两句- 给 老农民说两句 发送悄悄话 老农民说两句 的博客首页 (66 bytes) () 06/20/2019 postreply 20:11:29

帧,数据包。说明他用的是翻译成中文的资料。 -lovNordstrom- 给 lovNordstrom 发送悄悄话 (87 bytes) () 06/20/2019 postreply 20:17:20

对,帧这些词他用的中文。在美国的人要用中文写出来不容易。我还在想, -lovNordstrom- 给 lovNordstrom 发送悄悄话 (102 bytes) () 06/20/2019 postreply 20:31:43

不知孔子学院关了人都撤回去没有? -自然- 给 自然 发送悄悄话 (0 bytes) () 06/20/2019 postreply 21:09:16

lol -lovNordstrom- 给 lovNordstrom 发送悄悄话 (0 bytes) () 06/20/2019 postreply 21:43:22

http是关于网页的协议, TCP/IP是网络协议, 虽然都是协议,却是不一样的. -goingunder- 给 goingunder 发送悄悄话 (0 bytes) () 06/21/2019 postreply 04:10:32

请您先登陆,再发跟帖!