Network and WWW(网络与万维网)
1. Goals
- Core Issues related to computer networks
- Types of networks and characteristics
- Open System
- Home Internet Connections
- Packet Switching(包交换)
- Protocols(协议)
- Hostnames and IP Addresses (域名与IP地址)
- Domain Name
2.Networking
Goal:
- Communicate(交流)
- Share resources(分享资源)
Method:
- Physical wires or cables(五类线,超五类线,双绞线)
- Wireless(WI-FI,蓝牙,LI-FI)
术语
- Node/Host(节点/主机)
- Data Transfer Rate(数据传输速度):Bits Per Second(用字节换算的话需要除以8)
- 传输速度和距离是计算机网络研究的核心问题(光纤减衰减)
Client/Server Model
1. File Server(文件服务器)
- FTP 协议
- FTP 服务器
- FTP 客户端
2. Web Server(网页服务器)
- 服务器
- 本地客户端——浏览器(IE, chrome, Safari, FireFox)
- HTTP 协议(浏览器默认会加)
3. 点拨服务器
4. 各种各样的应用服务器
Types of Network
1. Local-area Network(LAN,局域网)
- 大小:一般不会超过256个
- 拓扑图:
- Ring topology(环状)
- Star topology(星型)
- Bus topology(类似于计算机的总线,结构简单,可靠性强——一节点坏,不影响其他节点;只能共享,分时段使用):Ethernet(以太网)
2. Wide-area Network(WAN,广域网)
- Gateway(网关):将局域网和其他局域网连接在一起(例如,路由器)
- 广域网内地址分配是允许重复的,但是局域网内不允许
3. Metropolitan-area Network(MAN,城域网)
4. Internet Backbone(骨干网)
- 方式:一般使用环状
- These networks are provided by companies such as CISCO, 华为, AT&T, GTE, and IBM
5. Internet Service Provider(互联网服务提供商)
- 中国进出口负责:中国电信,中国联通
- 常见接入方式:DSL
6. 接入方式
- Phone Modem:使用电话线,打电话时会被占用
- Digital Subscriber Line(DSL):使用电话线的数字通道
- Cable Modem:光纤
三网融合:电视网(机顶盒可当路由器用),计算机网,电话网融合
IP电话:使用网络来打电话;以前使用模拟信号通讯,现在都是数字信号通讯(IP电话)
7. Broadband(带宽)
- 定义:A connection in which transfer speeds are faster than 128K bps
- 上传速度和下载速度不对等(避免占用过多)
Packet Switching(包交换)
- 作用:提高信息交换的可靠性与效率
- 描述:将信息分成若干个片段(包)分开传输
- 由于物理原因,信息传递会有出错的概率–>减少出错所造成的危害,加快传输效率
- 大型域网交换信息的时候,传输的路径不一定一样,在传输速度较慢的时候,发送和接受的顺序不一定相同(视频缓冲,语音/电话)
Open System(开放系统)
发展
- Proprietary System(私人系统):A system that uses technologies kept private by a particufen pei delar commercial vendor
- Interoperability(出现接口)
- Open Systems
传输协议
- 定义方:ISO
- 内容:7层协议(重要!!!)
- 物理层
- 数据层
- 网络层:防火墙所在位置(一般集成在路由器上)
- 传输层
- Session layer(会话层)
- Presentation layer(表示层)
- Application layer(应用层):http
路由器:管理层1、2、3
- 常见的协议:
- Simple Mail Transfer Protoco:邮件传输协议
- File Transfer Protoco:文件上传下载协议
- Hyper Text Transfer Protocol:超文本传输协议
- Telnet:
- Transmission Control Protocol(一般用于传输重要文件):
- 分包
- 将分包发送给接收方
- 要求接收方校验
- User Datagram Protocol(一般用于视频/语音):
- It is an alternative to TCP
- TCP is highly reliable, at the cost of decreased performance, while UDP is less reliable, but generally faster
- Internet Protocol:IP software deals with the routing of packets through the maze of interconnected networks to their final destination
- Multipurpose Internet Mail Extension
- 防火墙
- 是什么:A machine and its software that serve as a special gateway to a network, protecting it from inappropriate access
- 作用方式:Filters the network traffic that comes in, checking the validity of the messages as much as possible and perhaps denying some messages altogether
- 有啥用:Enforces an organization’s access control policy
- 在那里:一般作用于第三层(网络层)
域名与IP地址
1. 域名(Hostname)
- 是什么:A unique identification that specifies a particular computer on the Internet
例如:www.baidu.com
2. IP地址
- 是啥?Network software translates a hostname into its corresponding IP address.是你真正的地址
例如:172.18.157.8
中国需要根据分配的IP(v4)地址向美国付费
- 有什么:
- 网络地址(network address):用于分辨网络
- 域名(host number):与IP地址关联
3.域名系统(Domain Name System)
- 作用:输入域名–>DNS服务器翻译–>前往转译的IP地址
常规DNS服务器一般由网络供应商提供
- 常见的域名(顶级域名):
- .com
- .net
- .org
- .edu
- .int
- .mil
- .gov
- .cn
- 实质:数据库
www与internet
- 互联网:互相连接的局域网,物理上有联系
- 万维网:物理上没有联系,但是网页之间建立了(逻辑上的)联系,互相有联系的网页合起来,最终构成了万维网