whitebox solutions with open source · switch broker interface table manager node/chip manager...

17
Whitebox Solutions with Open Source: ONF-Stratum Name: David Fermor Tiffany Chiang Krishna Kolakaluri Date: Dec 4 th 2018

Upload: others

Post on 06-Aug-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

WhiteboxSolutionswithOpenSource:ONF-Stratum

Name: David Fermor Tiffany Chiang Krishna Kolakaluri

Date: Dec 4th 2018

Page 2: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

DNINETWORKINGROADMAP

ODM

Disaggregated

SDN

Open Solutions

+ +

++….

+

Page 3: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

PLATFORMMANAGERARCHITECTURE

BriefintroductiononthePlatformmanagerarchitectureforStratum

TiffanyChiangKrishnaKolakaluri

Page 4: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

SwitchAgentArchitecturalComponents

Remote or Local Controller(s)

P4 Runtime gNMI gNOI

Switch Broker Interface

TableManager

Node/ChipManager

ChassisManager

ChipAbstractionManagersE.g.ACL,L2,L3,PacketI/O,

Tunnel

PlatformManager

SwitchSDK PlatformAPI

SwitchChipDrivers PlatformDrivers

SwitchChips Peripherals

Stratumsw

itchagen

t

user

kernel

hardware

Shared(HWagnostic)ChipSpecificPlatformSpecificChipandPlatformSpecific

Page 5: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

PlatformManager(Phal)

•  ManagesplatformperipheralssuchasSFP’s,Fans,TemperatureSensors,Powersupplies,etc.o  Phal:AbstractclasswhichdefinesaninterfaceforPlatformHardware

AbstractionLayer(PHAL)o  LeverageOpenNetworkLinuxPlatform(ONLP)APIstoimplement

platformfunctionalities•  CodeContributors:Google(initialcodecontribution),Delta,Inventec,and

ONF

Reference:https://github.com/opennetworkinglab/stratum/blob/master/stratum/docs/phal.md

Page 6: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

PhalFunctions

Page 7: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

PhalComponents

ConfigMonitoringService

Kernel(ONL)

MiscHW

VendorXSwitchInterface

SwitchChip

StratumSwitchAgent

ONLP

ONLPAPIs

gNMIAPIs

ChassisManager

PlatformManager

OnlPhal

ONLPConfigurator

PhalDB

Adapter

ONLPAPIWrapper

SFPDataSource FanDataSource LEDDataSource…

EventHandler

- Phal interface function implementation

-  Provides event notifications of ONLP device changes

-  Handles only SFP present status today

-  Each data source manages one or more system hardware attributes.

-  Responsible for providing system and hardware information

-  Implements the ONLP API calls

Page 8: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

PhalComponents

ConfigMonitoringService

Kernel(ONL)

MiscHW

VendorXSwitchInterface

SwitchChip

StratumSwitchAgent

ONLP

ONLPAPIs

gNMIAPIs

ChassisManager

PlatformManager

OnlPhal

ONLPConfigurator

PhalDB

Adapter

ONLPAPIWrapper

SFPDataSource FanDataSource LEDDataSource…

EventHandler

- A database describing the attributes of the System/HW

-  Defines the outward facing interfaces to the Phal DB

-  A class that inspects the system, creates the Data Sources/Attributes within the Phal DB.

Page 9: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

PhalEventNotificationExample1. OnlPhalinitializesOnlpEventHandlerandregisters

eventcallback.2. ChassisManagersubscribesSFPeventsbycalling

RegisterTransceiverEventWriter()function.3. OnlpEventHandlerperiodicallypollsSFPpresence

statusfromONLPthroughONLP API Wrapper.4. OnlpEventHandlerdetectsanewSFPwasjustplugged

in.5. OnlpEventHandlerinvokesthecallbackfunction

providedbyOnlPhal.6. OnlPhalnotifieseventsubscribersbywritingtheeventto

theeventchannel.7. ChassisManagerhandlestheeventandretrievesSFP

detailinformationbycallingGetFrontPanelPortInfo()function.

ConfigMonitoringService

HW (SFP)

VendorXSwitchInterface

OnlPhal

ONLP

ONLP API Wrapper

ChassisManager

OnlpEventHandler

SFPDataSource

Subscribe SFP Event

Initialize and

register callback

Poll SFP

status

Invoke the

callback

Publish event

SFP Plugged

in

Retrieve SFP Info

Page 10: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

CODESTATUSANDCONTRIBUTIONSPhalInterface RegisterTransceiverEvent, UnregisterTransceiverEvent

GetFrontPanelPortInfo, Phal initialization Implement remaining functions OnlPhal

EventHandler

DataSource

PhalDB

Adapter

ONLP Configurator

ONLP API Wrapper

EventHandler SFP Event Polling and Notification Other event notifications

SFP Data Source

SFP Data Source FAN, LED, PSU, Thermal, etc. Data Sources

Attribute DB and Attributes Add any missing features

Wrapper Class GetSfpBitmap, GetSfpInfo, GetOidInfo, etc. Implement remaining ONLP APIs

Google Code Base Current Implementation Future

Page 11: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

OpportunityforCommunityContribution

•  ImplementDataSourcestoaccessotherONLPdevices:fan,PSU,LED,andthermalsensor

•  CompletePhalDB:theAttributeDatabase•  ImplementAdapter•  ImplementONLPConfigurator•  ImplementremainingAPIsinONLPAPIWrapper•  EnhanceBuildprocess:buildingStratumimagewithONLPlibraryfor

variousplatforms

Page 12: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

CodeContributions

Page 13: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

WHITEBOXINTEGRATIONOurexperienceonintegratingStratumtoDeltaplatforms

Page 14: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

StratumonWhiteboxSwitches

StratumintegrationoverviewwithDeltaWhiteboxswitchAG9064v1:1.  DevelopedsupportforAG9064v1inONLPv2.2.  InstalledONLandbuilttheBarefootSDEandinstalledontheplatform.3.  BuiltStratumbinarywithBarefootintegratedcode.4.  TestedStratumwithONOScontrollerinafabrictopologyusingfabric.p4.

Page 15: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

StratumDemo

Pleasecometoourboothtoseethelivedemo!

Page 16: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

Q&A

Page 17: Whitebox Solutions with Open Source · Switch Broker Interface Table Manager Node/Chip Manager Chassis Manager ... o Leverage Open Network Linux Platform (ONLP) APIs to implement

More product information, please visit www.agemasystems.com To learn more about Delta, please visit www.deltaww.com or scan the QR code

English Traditional Chinese

Simplified Chinese