资源描述:
《以太网链路聚合的研究与实现》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、杭州电子科技大学硕士学位论文摘要链路聚合通过将几条物理链路聚合在一起,达到增加带宽和提供链路冗余的目的,是数据链路层的一项常用和实用的技术。目前链路聚合的正式标准IEEE802委员会制定的IEEEStandard802.3ad协议,标准中定义了链路聚合技术的目标、聚合子层内各模块的功能和操作的原则,链路聚合控制的内容以及链路聚合控制协议LACP等。本文在对802.3ad标准协议和链路聚合理论分析的基础上,结合实际应用的不同需求,把链路聚合划分为静态链路聚合和动态链路聚合两种聚合模式。在此基础上按照模块化的思想,给出了链路聚合的软件设计,主
2、要包含总体设计和子模块设计。总体设计部分介绍了整体数据结构的设计,链路聚合的子模块划分及其相互关系等。子模块设计部分详细阐述了各个子模块(初始化模块、聚合任务模块、命令处理模块、操作key管理模块、选择逻辑模块、LACP模块、聚合管理模块和驱动模块)的设计和实现,并研究和实现了一些关键算法。比如采取映射表的方法实现了操作key的动态分配算法,与其他方法相比,该算法具有简单快速、管理方便和容易扩展的优点;采用参考端口的方法实现了静态选择逻辑算法和动态选择逻辑算法,该算法同时兼顾了最优性和稳定性。然后对链路聚合系统的功能和性能进行了测试和分析
3、,测试结果表明,所实现的静态链路聚合和动态链路功能正确,不仅提高了系统的带宽,而且增强了系统的可靠性和稳定性。最后对本文的工作做了总结,对系统中不够完善的地方进行了说明,提出了今后的工作方向。关键字:链路聚合,LACP,以太网,状态机I杭州电子科技大学硕士学位论文ABSTRACTLinkaggregationcanbeusedtoincreasebandwidthandprovidelinkredundancybygettingseveralphysicallinkstogether.Itisabroadlyusedandpractica
4、ltechnologyofthedatalinklayer.CurrentlytheformalstandardforlinkaggregationisIEEEStandard802.3adestablishedbyIEEE802Committee,whichdefinesthegoalsoflinkaggregationtechnology,functionalityofeachmoduleinaggregationsub-layerandthecontentsofthelinkAggregationControlandLACP.Int
5、hispaper,tomeetthedifferentneedsofusers,linkaggregationisdividedintotwoaggregationmodels,includingstaticanddynamiclinkaggregationmodebasedon802.3adstandardprotocol.Andonthisbasis,thedesignoflinkaggregationsoftwareisgivenaccordingtomodularizationthought,whichmainlyconsists
6、oftheoveralldesignandsub-moduledesign.Theoveralldesigndescribestheoveralldatastructuredesign,sub-moduledivisionoflinkaggregationandtheirmutualrelations.Inthepartofsub-moduledesign,eachsub-moduledesignandimplementationaredetailed,includinginitializationmodule,LAGGtaskmodul
7、e,commandprocessingmodule,operatekeymanagementmodule,selectlogicmodule,LACPmodule,aggregationmanagementmoduleanddrivermoduleetc.Besides,somekeyalgorithmsoflinkaggregationarestudiedandimplementedinthispaper.Forexample,themethodofmappingtablewasusedtoachievethedynamicalloca
8、tionalgorithmofoperationkey.Comparedwithothermethods,thisalgorithmissimple,fastandeasytobemanage