当前位置:网站首页>The difference between layer 3 switch and router
The difference between layer 3 switch and router
2022-07-06 14:13:00 【Chen Shenshen】
Although they all have routing function , But the main function of the three-layer switch is still data exchange , Its routing function is usually relatively simple , Because it is mainly faced with a simple LAN connection , Routing paths are far less complex than routers , Its main purpose in LAN is to provide fast data exchange function , Meet the application characteristics of frequent data exchange in LAN .
The main function of the router is the routing function , Its routing function is more reflected in the interconnection between different types of Networks , Such as the connection between LAN and wan 、 Connection between networks with different protocols, etc , Therefore, routers are mainly used between different types of networks . Its main function is routing and forwarding , Solving the connection of various complex routing path networks is its ultimate goal , So the routing function of router is usually very powerful , It is not only suitable for LAN with the same protocol , It is more suitable for LAN and WAN with different protocols . Its advantage is to choose the best route 、 Load sharing 、 Link backup and routing information exchange with other networks and other router functions . To connect to all kinds of networks , There are many types of router interfaces , And layer 3 switch is only the same type of LAN interface , It's simple .
Technically speaking , There are obvious differences between router and layer 3 switch in packet switching operation . Routers are usually implemented by software routing engines based on microprocessors , The layer-3 switch performs packet switching through hardware . The layer 3 switch routes the first data stream , It will produce a MAC Address and IP A map of addresses (MLS), When the same data stream passes again , It will pass through layer 2 directly according to this table instead of routing again , Thus, the network delay caused by router routing is eliminated , It improves the efficiency of packet forwarding . meanwhile , The routing lookup of layer 3 switch is for data flow , It uses caching technology , It's easy to use ASIC Technology to implement , therefore , Can greatly save costs , And realize fast forwarding . The router's forwarding adopts the longest matching method , The implementation is complex , Software is usually used to implement , Low forwarding efficiency .
Because of this , In terms of overall performance , The performance of layer 3 switch is much better than that of router , It is very suitable for LAN with frequent data exchange ; The router is very powerful , But its packet forwarding efficiency is far lower than that of layer 3 switch , It is more suitable for the interconnection of different types of networks with less frequent data exchange , Such as the interconnection of LAN and Internet . If the router , Especially high-end routers are used in LAN , To a considerable extent, it is a waste ( In terms of its powerful routing function ), And it can not well meet the requirements of LAN communication performance , Affect the normal communication between subnets
in summary , Multi subnet connection in LAN , It's better to use three-layer switch , Especially in the environment of frequent data exchange between different subnets . On the one hand, it can ensure the communication performance requirements between subnets , On the other hand, it saves the investment of buying another switch . Of course , If the communication between subnets is not very frequent , There's nothing wrong with using routers , It can also achieve the purpose of safe isolation and mutual communication of subnetworks . The details should be determined according to the actual needs .
The biggest difference between layer 3 switching and routing is : Routing support nat transformation , The third tier does not support . It is reflected in the actual project : The route is directly connected to the optical fiber to access the Internet , However, connecting the optical fiber to the layer 3 device can't access the Internet . Each port on the third floor has a dedicated mac Address , There are special ones ASIC The integrated circuit .
边栏推荐
- 小程序web抓包-fiddler
- XSS unexpected event
- 内网渗透之内网信息收集(四)
- 【头歌educoder数据表中数据的插入、修改和删除】
- Strengthen basic learning records
- 【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...
- 7-4 hash table search (PTA program design)
- 7-9 制作门牌号3.0(PTA程序设计)
- How to understand the difference between technical thinking and business thinking in Bi?
- 7-8 7104 Joseph problem (PTA program design)
猜你喜欢

Canvas foundation 1 - draw a straight line (easy to understand)

Low income from doing we media? 90% of people make mistakes in these three points

外网打点(信息收集)

Strengthen basic learning records

1143_ SiCp learning notes_ Tree recursion

Attach the simplified sample database to the SQLSERVER database instance

记一次,修改密码逻辑漏洞实战

小程序web抓包-fiddler

Network layer - simple ARP disconnection

HackMyvm靶機系列(3)-visions
随机推荐
Mixlab unbounded community white paper officially released
内网渗透之内网信息收集(一)
Matlab opens M file garbled solution
Record an API interface SQL injection practice
2. First knowledge of C language (2)
Intranet information collection of Intranet penetration (I)
XSS unexpected event
扑克牌游戏程序——人机对抗
Web vulnerability - File Inclusion Vulnerability of file operation
Package bedding of components
搭建域环境(win)
记一次猫舍由外到内的渗透撞库操作提取-flag
Hackmyvm target series (5) -warez
记一次edu,SQL注入实战
7-6 local minimum of matrix (PTA program design)
7-14 error ticket (PTA program design)
Hackmyvm target series (1) -webmaster
TypeScript快速入门
WEB漏洞-文件操作之文件包含漏洞
[experiment index of educator database]