计算机网络(5)
从Ethernet再开始。
以太网:不可靠,无连接
- connectionless
- unreliable
- Ethernet的MAC协议:采用二进制指数退避算法的CSMA/CD
Ethernet 帧结构
- Preamble 前导码 8B
- 目的MAC地址、源MAC地址(各6B)
- Type 类型 (2B)
- Data (46-1500B)
- CRC(4B)
802.3Ethernet标准
- 许多不同的Ethernet标准
switch(交换机)
- 链路层设备
- selectively
- transparent
- plug-and-play(即插即用)
- self-learning(自学习)
- 多端口间同时传输
switch table(交换表)
switch vs. router
- 两者均为存储-转发设备
- router:网路曾设备(检测网络层分组首部)
- switch:链路层设备(检测链路层帧的首部)
- 两者均使用转发表
- router:利用路由算法 / 依据IP地址
- switch:自学习、泛洪构建转发表 / 依据MAC地址
。 | hub | switch | bridge | router |
---|---|---|---|---|
层次 | 1 | 2 | 2 | 3 |
流量隔离 | no | yes | yes | yes |
广播域隔离 | no | no | no | yes |
plug-and-play | yes | yes | yes | no |
优化路由 | no | no | no | yes |
Cut through | yes | yes | yes | no |