当前位置:网站首页>Similarities and differences between switches and routers

Similarities and differences between switches and routers

2022-07-07 14:14:00 sinat_ thirty-six million seven hundred and eighty-nine thousan

1、 Routers can automatically assign to your LAN IP, Virtual dialing , Like a traffic cop , Command where your computer should go , You don't have to worry so much about yourself . Switches are just used to distribute network data .

2、 The router is on the network layer , The router is based on IP Address addressing forwarding packet , The router can handle TCP/IP agreement , Switches can't . The switch is at the data link layer , Switch based on MAC Address addressing forwarding packet .

3、 The router can put a IP Assigned to many hosts , These hosts only show one IP. Switches can connect many hosts , Each of these hosts has its own IP.

4、 Routers can provide firewalls , The switch cannot provide this function . A hub 、 Switches do port expansion , Is to expand the local area network ( It's usually Ethernet ) Access point for , That is to say, LAN can connect more computers . Routers are used for inter network connections , It's used to connect different networks .

5、 for instance : A router is like a post office , Deliver the letter to the addressee's address , It's done . But the letter arrived in your dormitory , And this address is not for you alone , So Mr. Wang of building management is also responsible for giving the letter to you , He doesn't care about the recipient's address , Just look at the recipient's name , Then make an internal call to ask you to pick up the letter .

If there is no post office , You can't send letters to beautiful girls all over the world , I can't get a letter from a beautiful girl outside the building . But because of the existence of Mr. Wang , You can still communicate with your good friends in the dormitory through him .

A system of all post offices , Namely “ Wide area network ”, And your dorm building , Namely “ LAN ”, You don't need a router to build a LAN .

 

PS:

1、 The broadcast cannot pass the router

2、MAC The address determines the next hop of the data frame , and IP The address determines the destination of the packet

3、 The Internet does not forward private addresses

原网站

版权声明
本文为[sinat_ thirty-six million seven hundred and eighty-nine thousan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071212222516.html