当前位置:网站首页>NetWorker Knowledge Corner|Easy to get an offer [Networker Interview Questions] What is the difference between a Layer 3 switch and a router?
NetWorker Knowledge Corner|Easy to get an offer [Networker Interview Questions] What is the difference between a Layer 3 switch and a router?
2022-07-29 23:04:00 【ie-lab network laboratory ccie certification home】
【Interview Questions for Network Engineers】What is the difference between a Layer 3 switch and a router?
1. Different main functions
Layer 3 switch is a switch with some basic routing functions, and its main function is still data exchange.It has both data exchange and routing forwarding functions, but its main function is data exchange;
The router has only one main function of routing forwarding.
2. The applicable environment is different
The routing function of the Layer 3 switch is relatively simple, and it mainly faces simple LAN connections.
The main purpose of its use in the local area network is to provide fast data exchange function, to meet the application characteristics of frequent data exchange in the local area network.
A router is designed to meet different types of network connections. Its routing function is more reflected in the interconnection between different types of networks. Its main function is routing and forwarding.
It is not only suitable for LANs with the same protocol, but also for LANs and WANs with different protocols.
3. Different performance
From a technical point of view, routers and Layer 3 switches have obvious differences in packet switching operations.
The router generally exchanges data packets based on CPU, and the three-layer switch exchanges data packets through hardware forwarding;
After the Layer 3 switch routes the first data flow, it will generate a mapping table between MAC addresses and IP addresses (hardware forwarding table).When the same data flow passes through again, it will pass directly from the second layer according to the hardware forwarding table instead of calculating the forwarding path through the CPU again, which improves the efficiency of data packet forwarding and realizes fast forwarding.
The forwarding of the router uses the CPU to calculate and forward the route. All data packets need to be calculated and forwarded by the CPU, so the forwarding efficiency is lower than that of the switch. Now the router also has a hardware forwarding table, but the first one to passThe data packets still need to be calculated by the CPU.
边栏推荐
猜你喜欢
随机推荐
【面试:并发篇34:Unsafe】
真offer收割机 第二弹~大厂如何考察候选人?(附答案详解)
互联网基石:TCP/IP四层模型,由浅入深直击原理!
NC4 判断链表中是否有环
WY16 不要二
leetcode 890. Find and Replace Pattern(查找和替换pattern)
JVM 上数据处理语言的竞争:Kotlin, Scala 和 SPL
Win7x64中使用PowerDesigner连接Oralce数据库报“[Oracle][ODBC][Ora]ORA-12154:TNS:无法解析指定的连接标识符”错误解决方法
新手如何写专利?
【面试:并发篇30:多线程:happen-before】
【LeetCode-SQL每日一练】——2. 第二高的薪水
【luogu P8354】多边形(容斥)(NTT优化DP)
二、HikariCP源码分析之获取连接流程二
《MySQL DBA封神打怪之路》专栏学习大纲
lambda表达式
rtsp-simple-server + srs搭建流媒体服务器
杨辉三角的各种输出:
趣味隐写术与密码术(现代密码学教程)
PyCharm使用教程(详细版 - 图文结合)
【板栗糖GIS】DOS—如何在目录文件中批量建立子文件夹