【计算机网络】【硬件】交换机芯片介绍

以太网交换机

以太网交换机(也称为交换集线器,桥接集线器,以及IEEE的MAC桥接[1])是网络硬件,它通过使用数据包交换来接收数据并将其转发到目标设备来连接计算机网络上的设备。

以太网交换机有选择地将数据包从一个 LAN 端口转发到另一个端口。不同端口上的比特率可能不同。与集线器和网桥一样,交换机可以互连以形成更大的网络。交换机的转发决策仅基于第 2 层信息。交换机不会修改收到的数据包。(相比之下,路由器的转发决策基于第 3 层或网络层信息,并且还会修改收到的数据包。

发往不同端口的数据包可以由交换机同时转发,因此与单个共享 LAN 相比,交换机可以将总体比特率提高很多倍。但是,发往同一端口的数据包必须由交换机缓冲。因此,交换机由交换结构、缓冲器和转发控制机制组成。

switch chip

交换机芯片就是以太网交换机的“心脏”,以AR8327这款交换机芯片为例:

在这里插入图片描述

它一共有7个port,其中Port1~Port5是接了PHY芯片的,这些Port一般是只接终端设备(也就是会通过网线连接到PC或其他上网设备)。
而Port0和Port6就比较灵活,它们既可以接PHY,也可以接MAC,这两个Port就是CPU port

AP路由

AR8327的一种常见的应用如下,此解决方案是完整的端到端 802.AP RJ-45 到空中路由器 802.11n 无线网络处理解决方案。
在这里插入图片描述

  • Port0~5 通过网线接外部设备,其中Port5(上图PHY4)作为WAN口连接到modem,用于拨号上网。
  • Port0 作为CPU Port连接到WASP(wifi SOC)
  • 无线设备可以通wifi连接上网

所有交换芯片都有一个特殊的端口,称为 switchX-cpu,这是交换芯片的 CPU 端口,用于将流量从交换芯片转发到 CPU,这样的端口是管理流量和路由功能所必需的 . 默认情况下,交换芯片会确保这个特殊的 CPU 端口不拥塞,并在超过链路容量时发出暂停帧以确保端口不会过饱和,此功能称为CPU流量控制。 如果没有此功能,对路由或管理目的至关重要的数据包可能会被丢弃。

VLAN

switch支持划分VLAN,如下是一种vlan应用:
在这里插入图片描述

在这里插入图片描述

  • 同一VLAN之间 可以直接互相发送帧,但不能发送到 WAN 口
  • CPU可以发送帧到所有的Port
  • LAN Port必须通过CPU port才能发送到WAN
  • WAN Port也必须通过CPU Port才能发送到LAN

端口交换

交换芯片可以使用其交换逻辑处理数据包,而不需要软件参与。相当于bypass掉CPU Port。

在这里插入图片描述
其中一个端口接收的数据包总是首先通过交换机逻辑。 交换机逻辑决定数据包应该去哪些端口(最常见的这个决定是基于数据包的目标 MAC 地址做出的,但可能会根据数据包和配置涉及其他标准)。 在大多数情况下,软件看不到数据包(只有统计数据会显示数据包已通过),这是因为数据包已经被交换芯片处理,并且从未到达 CPU Port。

参考

  • 6
    点赞
  • 71
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
 RTL8370N-VB: Single-chip 8-port gigabit non-blocking switch architecture  Embedded 8-port 10/100/1000Base-T PHY  Each port supports full duplex 10/100/1000M connectivity (half duplex only supported in 10/100M mode)  Full-duplex and half-duplex operation with IEEE 802.3x flow control and backpressure  Supports 9216-byte jumbo packet length forwarding at wire speed  Supports Realtek Cable Test (RTCT) function  Supports 96-entry ACL Rules  Search keys support physical port, Layer2, Layer3, and Layer4 information  Actions support mirror, redirect, dropping, priority adjustment, traffic policing, CVLAN decision, and SVLAN assignment  Supports 5 types of user defined ACL rule format for 64 ACL rules  Optional per-port enable/disable of ACL function  Optional setting of per-port action to take when ACL mismatch  Supports IEEE 802.1Q VLAN  Supports 4K VLANs and 32 Extra Enhanced VLANs  Supports Un-tag definition in each VLAN  Supports VLAN policing and VLAN forwarding decision  Supports Port-based, Tag-based, and Protocol-based VLAN  Up to 4 Protocol-based VLAN entries  Supports per-port and per-VLAN egress VLAN tagging and un-tagging  Supports IVL, SVL, and IVL/SVL  Supports 4096-entry MAC address table with 4-way hash algorithm  Up to 4096 L2/L3 Filtering Database  Supports Spanning Tree port behavior configuration  IEEE 802.1w Rapid Spanning Tree  IEEE 802.1s Multiple Spanning Tree with up to 16 Spanning Tree instances  Supports IEEE 802.1x Access Control Protocol  Port-Based Access Control  MAC-Based Access Control  Guest VLAN  Supports Quality of Service (QoS)  Supports per port Input Bandwidth Control  Traffic classification based on IEEE 802.1p/Q priority definition, physical Port, IP DSCP field, ACL definition, VLAN based priority, MAC based priority, and SVLAN based priority  Eight Priority Queues per port  Per queue flow control  Min-Max Scheduling  Strict Priority and Weighted Fair Queue (WFQ) to provide minimum bandwidth  One leaky bucket to constrain the average packet rate of each queue  Supports rate limiting (64 shared meters, with 8kpbs granulation)  Supports RFC MIB Counter  MIB-II (RFC 1213)  Ethernet-Like MIB (RFC 3635)  Interface Group MIB (RFC 2863)  RMON (RFC 2819)  Bridge MIB (RFC 1493)  Bridge MIB Extension (RFC 2674)  Supports Stacking VLAN and Port Isolation with 8 Enhanced Filtering Databases  Supports IEEE 802.1ad Stacking VLAN  Supports 64 SVLANs  Supports 32 L2/IPv4 Multicast mappings to SVLAN  Supports 4 IEEE 802.3ad Link aggregation port groups  Supports OAM and EEE LLDP (Energy Efficient Ethernet Link Layer Discovery Protocol  Supports Loop Detection  Security Filtering  Disable learning for each port  Disable learning-table aging for each port  Drop unknown DA for each port  Broadcast/Multicast/Unknown DA storm control protects system from attack by hackers  Supports Realtek Green Ethernet features  Link-On Cable Length Power Saving  Link-Down Power Saving  Each port supports 3 parallel LED or scan LED or serial shift LED outputs  Supports I 2 C-like Slave interface or Slave MII Management interface to access configuration register  Supports 16K-byte EEPROM space for configuration  Integrated 8051 microprocessor  Supports SPI Flash Interface  25MHz crystal input  RTL8370N-VB: LQFP 128-pin E-PAD package

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值