SDN session part two – onePK (one Platform Kit) & onePK labs
onePK is a table saw! -per Shelly Cadora
*Insert Tim Allen grunt*
In other words, onePK is a tool … supposedly a powerful one that can help you do a lot.
onePK base service set: Data Path, Policy, Routing, Element, Discovery, Utility, Developer.
Programming examples of what we will be going through later, Python interpreter & scripts.
- Configuring an IP address on an interface
- Pulling system memory and interface stats
Discussed use case of writing an app to monitor for more than 1 in a million packets lost on data center links as a predictor of failure.
Routes injected by onePK show up in ‘show ip route’ as an ‘a’ or application route.
Application information is transient by default so when the application disconnect, the associated ‘a’ routes are removed.
Application information can be transient or persistent.
Data plane control, copy or punt to application and/or inject new or modified packets into the data plane.
Example is a onePK application that punts telnet packets, the application encrypts them and injects them back into the network.
Hands on labs –
Routing for dollars
- Optimizing path selection based on ‘cost’ using a custom application
- Connect routers to an application via onePK, launch application that forces router to punt all telnet packets to the application.
- Application modifies the telnet packets and encrypts them using a potentially custom encryption algorithm.
- Wireshark captures to see telnet un-encrypted when the application isn’t running and encrypted when it is running.
Part 3 after lunch