SDN-P4原版完整课件.pptx
《SDN-P4原版完整课件.pptx》由会员分享,可在线阅读,更多相关《SDN-P4原版完整课件.pptx(38页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、P4:Programming Protocol-Independent Packet ProcessorsP.Bosshart,D.Daly,G.Gibb,M.Izzard,N.McKeown,J.Rexford,C.Schlesinger,D.Talayco,A.Vahdat,G.Varghese,D.WalkerSIGCOMM CCR,2014Presented by Ye Tian for Course CS05112OverviewMotivationAbstract Forwarding ModelA Programming LanguageAn ExampleReviewMotiv
2、ationOver the past five years,OpenFlow has grown increasingly more complicatedThe proliferation of new header fields shows no signs of stopping.MotivationRather than repeatedly extending the OpenFlow specification,we argue that future switches should support flexible mechanisms for parsing packets a
3、nd matching header fields,allowing controller applications to leverage these capabilities through a common,open interface(i.e.,a new“OpenFlow 2.0”API).Such a general,extensible approach would be simpler,more elegant,and more future-proof than todays OpenFlow 1.x standard.MotivationP4:a higher-level
4、language for Programming Protocol-independent Packet ProcessorsConfigure a switch,telling it how packets are to be processedPopulate the forwarding tables in fixed function switchesThree goalsReconfigurableRedefine the packet parsing and processing in the field.Protocol independentthe controller sho
5、uld be able to specify a packet parser for extracting header fields with particular names and types anda collection of typed match+action tables that process these headerTarget independentCompiler should take the switchs capabilities into account when turning a target-independent description(written
6、 in P4)into a target-dependent programOverviewMotivationAbstract Forwarding ModelA Programming LanguageAn ExampleReviewAbstract Forwarding ModelA programming parserAllow new headers to be definedMultiple stages of match+actionIn series,parallel,or combination of bothCompare with OpenFlowFixed parser
7、Fixed series of actionsAbstract Forwarding ModelTwo types of operations:Configure operations program the parser,set the order of match+action stages,and specify the header fields processed by each stage.Static,offline wayPopulate operations add(and remove)entries to the match+action tables that were
8、 specified during configuration.Runtime Abstract Forwarding ModelArriving packets are first handled by the parser.Recognize and extract fields from the headerThe extracted header fields are then passed to the match+action tables.Ingress match+action table:determines the egress port(s)and determines
9、the queue into which the packet is placed.The packet may be forwarded,replicated,dropped,or trigger flow control.Egress match+action table:performs per-instance modifications to the packet headerAbstract Forwarding ModelPackets can carry additional information between stages,called metadata,which is
10、 treated identically to packet header fields.Example:inport,timestamp,etcQueueing:an action maps a packet to a queueOverviewMotivationAbstract Forwarding ModelA Programming LanguageAn ExampleReviewA Programming LanguageDependencies between the fieldsDetermine which table can be executed in parallelT
11、able Dependency Graphs(TDG)TDG nodes map directly to match+action tables,and a dependency analysis identifies where each table may reside in the pipeline.an example table dependency graph for an L2/L3 switch.A Programming LanguageTwo-step compilationAt the highest level,programmers express packet pr
12、ocessing programs using an imperative language representing the control flow(P4);Below this,a compiler translates the P4 representation to TDGs to facilitate dependency analysis and then maps the TDG to a specific switch target.OverviewMotivationAbstract Forwarding ModelA Programming LanguageAn Exam
13、pleReviewAn ExampleConsider an example L2 network deployment with top-of-rack(ToR)switches at the edge connected by a two-tier core.mTag:a combination of PortLand and MPLS.The routes through the core are encoded by a 32-bit tag composed of four single-byte fields.Each core switch need only examine o
14、ne byte of the tag and switch on that information.The tag is added by the first edge switch.P4 ConceptsA P4 program contains the following key componentsHeaders:describes the sequence and structure of a series of fields.Parsers:specify how to identify headers and valid header sequences within packet
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SDN P4 原版 完整 课件
限制150内