hub 和 switch , 可以形成局域网 lan
Router,network layer, 第三层,IP 那一层
第一层,能够传输,
第二层,更好的传输,
过滤无效的信息
传输信息,跨越局域网 Lan, 就需要路由器了, Router
* switch hub, can inspect Ethernet data, to determine where to send things
switch 决定,把数据传输到哪里
* router, can inspect IP data, to determine where to send things
最常见的 Router,就是家用的
for homework, or small office.
this device generally don't have detail routing tables.
家用路由器,是没有路由表的
the purpose of that router,
- take the traffic from 家用的 / 办公室的,
- forward along to the ISP,
提交给 Internet Service Provider
路由器,传输数据
决定跳转
客户端、服务器, 看主要用途,primary purpose
each node is primarily either a server , or a client.
例如, an email server, is an email server.
an email server, is a client of a dns server.
网络端口:
The Data Link Layer 数据链路层:
Ethernet and Mac Address
在这一层,抽象出硬件了
* 通过 Mac 地址,识别机器
CSMA / CD, 检测到碰撞,停止传输
CSMA / CD, 检测出无碰撞,可传输数据
Mac 地址,全局唯一
Mac 地址, Media Access Control Address,
媒体存取控制位址
局域网地址(LAN Address)
mac 地址,分为两部分构成