基于88E6095的链路冗余协议开发(一)

本文档介绍了基于88E6095芯片的链路冗余协议开发要点,覆盖BPDU报文收发、端口状态检测、定时器设置等内容,并提供了具体的软件实现方案及关键函数说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

概要

该文档介绍链路冗余协议开发的主要事项,主要包括链路冗余协议需要使用的到相关驱动接口介绍,包括以下部分:
1. BPDU报文收发
2. 端口link状态检测
3. 定时器设置
4. 端口stp状态配置
5. Vlan配置
6. 基于vlan的端口stp状态配置
7. 地址转发表管理
该文档介绍基于88E6095的链路冗余协议实现,用来对开发冗余环协议提供指导。

该文档介绍的软件实现基于运行于STM32的rt-thread系统。

报文收发


功能实现

使用的为RT-thread 系统,当前使用的协议栈不支持BPDU 报文的收发处理,需要从协议层直接收发BPDU 报文.
BPDU 收发的主要修改包括以下几个方面:

1. 配置mv88e6095 芯片的mgmt 功能,转发BPDU 到CPU 端口

2. 配置mv88e6095 芯片的DAS 功能,为BPDU 添加DAS Tag

3. 配置STM32 的报文过滤功能,使能BPDU 的接受

4. 在驱动层处理BPDU 报文,通过mailbox 发送到协议task

5. 在协议task 直接调用驱动层接口发送报文

接口函数

函数名称:

set_mgmt_enable

函数功能:

配置mv88E6095 的mgmt 功能


函数名称:

set_das_enable

函数功能:

配置mv88e6095 的das 功能


函数名称:

bridge_tx_bpdu

函数功能:

发送BPDU 报文


函数名称:

STP_IN_rx_bpdu

函数功能:

协议状态机BPDU 处理接口


Marvell的8口以太网交换芯片88E6085的datasheet文档。 The Marvell® 88E6085 device is a single chip integrated 10-port Fast Ethernet switch. This device supports ‘Best-in-Class’ Quality of Service (QoS) and the highest ‘real-world’ performance. It is uniquely designed for SOHO router and gateway applications. This device contains eight 10BASE-T/100BASE-TX transceivers (PHYs) and two MII ports. The 88E6085 device is designed to work in all environments. True Plug-and-Play is supported with Auto-Crossover, Auto-Negotiation, and Auto-Polarity in the PHYs, along with bridge loop prevention (using Port States). The 88E6085 contains ten independent 802.3 media access controllers (MACs), a high-speed, non-blocking four traffic class QoS switch fabric that uses the unique patented Marvell Dynamic Queue Limit architecture. The QoS architecture switches packets into one of four traffic class queues based upon Port, IEEE 802.1p, IPv4 Type of Service (TOS) or Differentiated Services (Diff-Serv), IPv6 Traffic Class, 802.1Q VLAN ID, DA MAC address or SA MAC address. The devices also contain a high-performance address lookup engine with support for up to 2K active nodes, and a 1 Mbit frame buffer memory. Back-pressure and Pause frame-based flow control schemes are included to support zero packet loss under temporary traffic congestion. The MAC units in the devices comply fully with the applicable sections of IEEE 802.3. The two MII interfaces support a direct connection to Management or Router CPUs with integrated MACs. Both interfaces support MII-PHY mode or MII-MAC mode. These interfaces, along with BPDU handling for IEEE 802.1D Spanning Tree Protocol, 802.1w Rapid Spanning Tree, 802.1s Multiple VLAN Spanning Tree, programmable per-port VLAN configurations, 802.1Q and Port States, support fully managed switches and truly isolated WAN vs. LAN firewall applications. The device supports 64 802.1Q VLAN IDs which can be enabled on a per port basis. Three levels of 802.1Q security is supported with error frame trapping and logging. The 88E6085 supports multiple address databases which allows packet routing without modification of the MAC address. This allows the same MAC address to exist multiple times in the MAC Address database with multiple port mappings, to completely isolate the WAN from the LAN database. The integrated PHYs in the 88E6085 are designed with the Marvell® cutting-edge mixed-signal processing technology for digital implementation of adaptive equalization and clock data recovery. Special power management techniques are used to facilitate low power dissipation and high port count integration. Both the PHY and MAC units in the 88E6085 comply fully with the applicable sections of IEEE 802.3, IEEE 802.3u, and IEEE 802.3x standards
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值