首页 > 其他分享 >连网技术与网络管理2023-04-22

连网技术与网络管理2023-04-22

时间:2023-04-24 18:34:44浏览次数:44  
标签:layer network 22 连网 frame VLAN MAC switch 04

vlan是data link layer中比较重要的一个协议?

VLAN (Virtual Local Area Network) is a logical grouping of devices on a network based on their functions, project teams, or applications. It enables network administrators to partition a physical LAN into multiple logical networks, each with its own broadcast domain.

At the data link layer, VLANs are implemented by adding a VLAN tag to each Ethernet frame as it passes through the network. This tag identifies which VLAN the frame belongs to and helps to keep the frames from different VLANs separate. VLAN tags are added and removed by network switches as they forward the frames between different VLANs.

Layer 3 switches, also known as multilayer switches, combine the functions of a traditional layer 2 switch with those of a layer 3 router. In addition to switching frames based on their MAC addresses at layer 2, they can also perform routing based on their IP addresses at layer 3. This allows layer 3 switches to provide inter-VLAN routing, which enables communication between VLANs that are connected to the same switch.

Layer 3 switches can also support other advanced features, such as Quality of Service (QoS), access control lists (ACLs), and multicast routing, which make them suitable for use in large enterprise networks.

 

When a switch receives a frame, it checks the destination MAC address of the frame and looks up the MAC address in its MAC address table to determine the outgoing interface for the frame. If the MAC address is not found in the table, the switch will flood the frame out all interfaces except for the interface it was received on. This is because the switch doesn't know which interface is connected to the destination device and needs to send the frame to all interfaces in the same VLAN.

When the destination device receives the frame, it sends an acknowledgement back to the source device, allowing the switch to learn the MAC address of the destination device and update its MAC address table accordingly. If the switch already knows the MAC address of the destination device, it forwards the frame directly to the appropriate interface without flooding.

Overall, the switch forwards frames within the same VLAN and filters frames between different VLANs based on the configured VLAN membership and VLAN interfaces. This helps to reduce unnecessary traffic and optimize network performance.

 

There are three types of forwarding methods used by switches:

  1. Store-and-Forward存储转发: In this method, the switch stores the entire incoming frame in its buffer and checks for errors before forwarding it to the outgoing port. If the frame contains errors, it is discarded. This method provides the highest level of error checking and is therefore the slowest method of forwarding frames.

  2. Cut-Through快速转发: In this method, the switch forwards the frame as soon as it has read the destination MAC address. This method provides lower latency but provides no error checking and can potentially forward corrupted frames.

  3. Fragment-Free碎片隔离(分段过滤): This method is similar to cut-through, but the switch reads the first 64 bytes of the frame to check for collisions before forwarding. This provides a compromise between speed and error checking, as it only checks for errors in the first 64 bytes of the frame where most collisions occur.

 

网络层次模型

In a hierarchical network design, there are typically three layers of network, which are the core, distribution, and access layers.

  1. Access Layer: This layer is the first layer that connects end-user devices to the network. It is responsible for providing access to the network and controlling the flow of traffic between end devices and the network. The access layer is also where VLANs are usually implemented to group devices into logical networks.

  2. Distribution Layer: This layer is responsible for routing and filtering traffic between different access layer switches and also connects them to the core layer. The distribution layer typically implements policies for network traffic, such as Quality of Service (QoS) policies, access control lists (ACLs), and policy-based routing (PBR).

  3. Core Layer: This layer is the backbone of the network and is responsible for the high-speed and reliable transport of data between different distribution layer switches. The core layer does not perform any packet manipulation or filtering and is designed for maximum uptime and high-speed data transport. Redundancy and load-balancing are typically implemented at the core layer to ensure network availability and performance.

 

 

 

 

 

 

标签:layer,network,22,连网,frame,VLAN,MAC,switch,04
From: https://www.cnblogs.com/chucklu/p/17350480.html

相关文章

  • 61 openEuler 22.03-LTS 搭建MySQL数据库服务器-管理数据库用户
    61openEuler22.03-LTS搭建MySQL数据库服务器-管理数据库用户61.1创建用户可以使用CREATEUSER语句来创建一个或多个用户,并设置相应的口令。CREATEUSER'username'@'hostname'IDENTIFIEDBY'password';其中:username:用户名。hostname:主机名,即用户连接数据库时所在的主......
  • 【DP】LeetCode 221. 最大正方形
    题目链接221.最大正方形思路分析动态规划题目的时候只需要考虑最后一个阶段,因为所有的阶段转化都是相同的,考虑最后一个阶段容易发现规律在数组的动态规划问题中,一般dp[i]都是表示以nums以前i个元素组成(即nums[i-1])的状态;dp[i][j]分别表示以nums1前i个元素(即nu......
  • LeetCode 周赛 342(2023/04/23)容斥原理、计数排序、滑动窗口、子数组 GCB
    本文已收录到AndroidFamily,技术和职场问题,请关注公众号[彭旭锐]提问。大家好,我是小彭。前天刚举办2023年力扣杯个人SOLO赛,昨天周赛就出了一场Easy-Easy-Medium-Medium的水场,不得不说LeetCode是懂礼数的......
  • 洛谷P2241 统计方形 ,棋盘问题升级板,给出格子坐标中矩形以及正方形的计算方法
    在做这道题之前我们先了解一下棋盘问题棋盘问题(qq.com)......
  • ubuntu16.04个性化配置
    前言记录一下个人配置,方便后续参考正文配置用户sudo免密权限只建议在个人测试环境这么配置,否则最好root还是需要用密码确认一下sudosuecho"你的用户名ALL=(ALL:ALL)NOPASSWD:ALL">>/etc/sudoersroot用户下,指令自动补全sudosuaptupdateaptinstall......
  • 储物柜语音方案设计,NV040C的应用
    智能储物柜又称之为自动存包柜、电子寄存柜、电子储物柜等,在我们日常生活中可以帮助购物者或娱乐休闲的人们保证财产的安全。智能储物柜已广泛应用于超市、百货店、学校、图书馆、娱乐场所、工厂、机关、医院、电影城、游泳馆、海滨浴场、地铁站、火车站、机场等一切公共场所。而......
  • 【2023-04-23】人可重生
    23:00要热爱读书,它会使你生活轻松;它会友爱地帮助你了解纷繁复杂的思想、情感和事件;它会教导你尊重别人和你自己;它以热爱世界、热爱人类的情感来鼓舞智慧和心灵。                                    ......
  • [2022编思1062]找出最少动作数
    [2022编思1062]找出最少动作数题面有一个栈,这个栈有\(m\)个状态,每个状态记为\(S_i\)每个状态里面有\(n\)种数字,数字\(i\)有\(a_i\)个。考虑从全空,依次经历\(S_1...S_m\),让操作数最小化。sov是一个神奇的区间DP。考虑对于某个区间\(S_i...S_j\),从开始塞进去不用动的数字有\(......
  • 4.22团队
    已实现:1,用户信息的注册与人脸数据的录入2,可实现通过人脸信息的打卡签到。3,保存人脸数据未来目标:1,活体检测(目前无法准确识别真人与照片)2,会议管理相关功能。3,优化app的界面。       ......
  • Prime k-tuple UVA - 1404
        一个步骤: 在[a,b]中标记S的倍数 #include<iostream>#include<cstring>#include<algorithm>#include<vector>usingnamespacestd;constintN=1e5+20;constintQ=2e9+2;#defineintlonglongboolvis[Q];intb[N],pm[N],tot=0;......