What Is Layer 2, Layer 3, and Layer 4 Network Switch?
来源:互联网 发布:淘宝卖家互刷安全吗 编辑:程序博客网 时间:2024/05/24 16:15
With the rapid development of computer networks over the last decade, high-end switching has become one of the most important functions of a network for moving data efficiently and quickly from one place to another. For years, the average network has been dominated by the Layer 2 switch. Now as network complexity increases and applications demand greater functions from the network, Layer 3 and layer 4 network switches are coming out of the data center and high level enterprise settings. This post will introduce them respectively.
A network switch (also called switching hub, bridging hub, officially MAC bridge) is a computer networking device that connects devices together on a computer network by using packet switching to receive, process, and forward data to the destination device.
A network switch is a multiport network bridge that uses hardware addresses to process and forward data at the data link layer (layer 2) of the OSI model. Some switches can also process data at the network layer (layer 3) by additionally incorporating routing functionality that most commonly uses IP addresses to perform packet forwarding; such switches are commonly known as layer-3 switches or multilayer switches.
Layer 2 network switches operate using the data link (MAC) layer addresses. Link-layer, hardware, or MAC-layer addresses identify individual devices. Most hardware devices are permanently assigned this number during the manufacturing process.
The main function of a Layer 2 is to help the traffic from devices within a LAN reach each other. A Layer 2 switch does this by keeping a table of all the MAC addresses it has learned and what physical port they can be found on. The MAC address is something that operates within Layer 2 of the OSI model (what defines how networks operate). Traffic being switched by MAC address is isolated within the LAN those devices are using. When you need traffic to cross between LANs (or VLANs) is when we need a Layer 3 device.
Layer 3 ntwork switches use network or IP addresses that identify locations on the network. A location can be a LAN workstation, a location in a computer’s memory, or even a different packet of data traveling through a network.
The most common Layer 3 device used in a network is the router. A router is able to look into the Layer 3 portion of traffic passing through it (the source and destination IP addresses) to decide how it should pass that traffic along. Since a router holds information about multiple networks (LAN WAN VLAN) it is also able to pass traffic along between these networks. This is routing. The Layer 3 switch functionally exists somewhere between being a Layer 2 switch and being a Gateway Router. It can be best described by what more it does compared to a Layer 2 switch and what less it does compared to a Gateway Router.
Layer 4 of the OSI Model coordinates communications between systems. Layer 4 switches are capable of identifying which application protocols (HTTP, SNTP, FTP, and so forth) are included with each packet, and they use this information to hand off the packet to the appropriate higher-layer software. A layer 4 network switch enables policy based switching mechanisms that limits different traffic types and prioritizes packets based on their base application importance. A layer 4 switch is among the types of multilayer switches, and is an enhancement to the layer 3 switch that uses hardware based switching techniques.
Layer 4 switches also provide an effective wire-speed security shield for your network because any company- or industry-specific protocols can be confined to only authorized switched ports or users. This security feature is often reinforced with traffic filtering and forwarding features.
As the layers increase in switches, so does the CPU power and processing time (latency) of the switch. The trade-off for more control and capabilities in a higher layer switch is less speed and increased power consumption. Lower layer switches are faster and use less processing power. Therefore, choosing a switch that matches your network needs creates maximum networking efficiency.
- What Is Layer 2, Layer 3, and Layer 4 Network Switch?
- 4-The Network Layer
- layer
- layer
- layer
- layer
- layer
- layer
- layer
- Web Application Architectures: Simple 2 Layer, Standard 3 Layer and Distributed 3 Layer
- [Network]Network Layer
- The PCI Layer and Network Interface Cards
- NeL Network Layer 1
- [Network]Application Layer
- [Network]Transport Layer
- [Network]Link Layer
- Multi-Layer Neural Network
- Network Layer - Congestion Control
- pc 与移动设备的判断
- 阿里云:有了它,人人都能做视频剪辑师
- 【bzoj 3379】交作业(区间DP)
- 文章标题
- 业余草谈SessionFactory中的Session和HttpSession的区别
- What Is Layer 2, Layer 3, and Layer 4 Network Switch?
- RCaller 无法返回复杂数据的研究以及解决方案
- vue.js2.0关于computed、methods、watch、created的区别
- 近似计算
- String类型null和“”的用法
- java二叉树的遍历,递归与非递归方法
- 【Java】内部类综述
- 多态的执行究竟是父类的还是子类的?
- C#学习笔记_5.C#变量&常量