当前位置:网站首页>交换机和路由器的异同
交换机和路由器的异同
2022-07-07 12:12:00 【sinat_36789271】
1、路由器可以给你的局域网自动分配IP,虚拟拨号,就像一个交通警察,指挥着你的电脑该往哪走,你自己不用操心那么多了。交换机只是用来分配网络数据的。
2、路由器在网络层,路由器根据IP地址寻址转发数据包,路由器可以处理TCP/IP协议,交换机不可以。交换机在数据链路层,交换机根据MAC地址寻址转发数据包。
3、路由器可以把一个IP分配给很多个主机使用,这些主机对外只表现出一个IP。交换机可以把很多主机连起来,这些主机对外各有各的IP。
4、路由器可以提供防火墙,交换机不能提供该功能。集线器、交换机都是做端口扩展的,就是扩大局域网(通常都是以太网)的接入点,也就是能让局域网可以连进来更多的电脑。路由器是用来做网间连接,也就是用来连接不同的网络。
5、举个例子:路由器相当于邮局,把信投递到收件人地址,它的任务就完成了。但是信邮到了你们宿舍楼,而这个地址不是你一个人专享的,所以楼管王大爷还要负责把信给到你手里,他不会关心收件人地址,只看收件人姓名,然后打个内线电话叫你来取信。
如果没有邮局,你没法向世界各地的漂亮妹子们发信,也没法从楼外的漂亮妹子那里收信。但是因为楼管王大爷的存在,你仍然可以通过他与同宿舍楼的好基友书信往来。
所有邮局构成的系统,就是“广域网”,而你的宿舍楼,就是“局域网”,构建局域网是不需要路由器的。
PS:
1、广播过不了路由器
2、MAC地址决定了数据帧的下一跳,而IP地址决定了数据包的终点
3、互联网不转发私有地址
边栏推荐
- postgresql array类型,每一项拼接
- Xshell connection server changes key login to password login
- Attribute keywords aliases, calculated, cardinality, ClientName
- IP address home location query full version
- Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
- 3D Detection: 3D Box和点云 快速可视化
- PC端页面如何调用QQ进行在线聊天?
- 作战图鉴:12大场景详述容器安全建设要求
- 2022-7-6 使用SIGURG来接受外带数据,不知道为什么打印不出来
- Excellent open source system recommendation of ThinkPHP framework
猜你喜欢

Did login metamask

AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?

Redis只能做缓存?太out了!
![供应链供需预估-[时间序列]](/img/2c/82d118cfbcef4498998298dd3844b1.png)
供应链供需预估-[时间序列]

Transferring files between VMware and host

Battle Atlas: 12 scenarios detailing the requirements for container safety construction

docker部署oracle

Leecode3. Longest substring without repeated characters

Realize the IP address home display function and number home query

2022-7-6 使用SIGURG来接受外带数据,不知道为什么打印不出来
随机推荐
Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf
What parameters need to be reconfigured to replace the new radar of ROS robot
Vmware共享主机的有线网络IP地址
What are the principles for distinguishing the security objectives and implementation methods that cloud computing security expansion requires to focus on?
requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
Is the compass stock software reliable? Is it safe to trade stocks?
Excuse me, why is it that there are no consumption messages in redis and they are all piled up in redis? Cerely is used.
高等数学---第八章多元函数微分学1
社会责任·价值共创,中关村网络安全与信息化产业联盟对话网信企业家海泰方圆董事长姜海舟先生
PC端页面如何调用QQ进行在线聊天?
请问,在使用flink sql sink数据到kafka的时候出现执行成功,但是kafka里面没有数
LeetCode简单题分享(20)
How to check the ram and ROM usage of MCU through Keil
Hands on Teaching: XML modeling
为租客提供帮助
c#通过frame 和 page 切换页面
[daily training -- Tencent select 50] 231 Power of 2
2022-7-6 Leetcode 977.有序数组的平方
最长上升子序列模型 AcWing 1012. 友好城市
SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1