Workshop on Software Defined Networks Spring 2014
Groups group idgroup membersex1 last sub.project nameproject sel. date 1Liza Mash, Kostya Berestizhevsky, Idan Shaby Firewall רועי לוי, רועי כהן, חוסאם אבו מערוף firewall4.5 3 שי פינסקר, בועז חמו, מוריה אהרון Or Keret, Ofir Shohet, Gal Bitensky Nir Avnon, Chen Shoval, Roi Klien Ori Lentzitzky, Guy Engel ירדן מרטון, בן שרפי Elad levi, Hanan Rofe Haim Roy Moyal, Liraz Segal5.5.14Load Balancer5.5 10Michal Shagam, Dekel ?8.5.14
OpenFlow Switch Specification Flow-Table entry: Possible Actions: – Forward packet to a given port (or ports) – Encapsulate packet and forward to controller – Drop packet Packet Header Action Statistics
OpenFlow Switch Specification The header fields matched in OpenFlow switch (Type0): Support for normal traffic is achieved by: – A 4 th action; forward packet through normal pipeline – Dedicated VLANs
OpenFlow1.3 Specification A pipeline of forwarding tables: – Aggregated Action Set – Internal metadata – optional group classification
OpenFlow1.3 Specification Extended match header fields:
OpenFlow1.3 Specification Extended match header fields:
OpenFlow1.3 Specification Counters:
OpenFlow1.3 Specification Each packet carries an Action set. – Empty at the start – Updated while packet is processed – Executed at the end. Each Forwarding table entry is associated with an Instruction Set – Predefined (updated by controller) – Executed when entry is matched – Influences packet processing course and updates its action set. More actions: – Update TTL – Tag push – Tag pop – Set field – QoS
OpenFlow1.3 Groups Groups can be applied on a packet while processed Groups are defined in the group table Group ID Bucket Group ID Instruction Out port
OpenFlow1.3 and RYU
PROJECTS
Router User input: – Routers addresses – Subnets assignments MAC: A * Port:1 VLAN: *.* Port:2 VLAN: * MAC: B * Port:1 VLAN: 3 MAC: D MAC: C MAC: E
Router Network input: – Links MAC: A * Port:1 VLAN: *.* Port:2 VLAN: * MAC: B * Port:1 VLAN: 3 MAC: D MAC: C MAC: E Port:3 VLAN: 4 Port:2 VLAN: 4
Router Objective: – Shortest path routes MAC: A * Port:1 VLAN: *.* Port:2 VLAN: * MAC: B * Port:1 VLAN: 3 MAC: D MAC: C MAC: E Port:3 VLAN: 4 Port:2 VLAN: 4
Load balancer Split clients to servers ActionEndStart Server r Server r Server r Drop ……………….. Source IP Address replicas Internet …
Load balancer Avoid rule expansion ActionEndStart Server A Server B ActionPattern Server A [00111***] Server A [*1******] Server A [10******] Server A 125. [ ].*.* Server A 125. [000111**].*.* Server A 125. [001000**].*.* Server A 125.[ ].*.* Server A 125.[ ] Server B 125.[ ]. 255.* Server A 125.[ ]. *.* Server B 125.[001*****].*.* Server B *.* Server B [00******].* Server B [010*****].* Server B [011000**].* Server B [0010****] Server B [ ] Server B [ ]
Load balancer Add/remove servers when needed Source IP Address replicas Internet …
Firewall Manage sessions Internet Intranet DMZ ActionConstraints Allow Allow + Log
Firewall Consider rule expansion ActionEndStart Server A Server B ActionPattern Server A [00111***] Server A [*1******] Server A [10******] Server A 125. [ ].*.* Server A 125. [000111**].*.* Server A 125. [001000**].*.* Server A 125.[ ].*.* Server A 125.[ ] Server B 125.[ ]. 255.* Server A 125.[ ]. *.* Server B 125.[001*****].*.* Server B *.* Server B [00******].* Server B [010*****].* Server B [011000**].* Server B [0010****] Server B [ ] Server B [ ]
Firewall Manage sessions Features: – Actions are Allow, Allow+Log, Block, Block+Log – Statefull – Consistency models (per flow/packet) – FIN detection Internet Intranet DMZ
Multicast Traffic
Input – Routers – Links – User location and request – Link and server cost Objective – Route streams (optimally) – Assign servers (optimally)
Distributed controller
Controller state is saved in distributed storage. Handling an event is a transaction. Prevent dead-locks and live-locks. Use a simple application as an example. Based on paper “Towards an Elastic Distributed SDN Controller” by Dixit et. al. appeared in HotSDN2013.
Hierarchical controller controller Sub SDN controller
Hierarchical controller controller Sub SDN controller
Fault tolerant SDN Without the controller, an OpenFlow switch forwards packets according to: – Static configuration – Links status – Packet header – Input port We want to ensure that if the network is physically connected then any packet will reach its destination (eventually). We prefer one instance of the packet at all time (without broadcast).
Fault tolerant SDN Non Fault tolerant solutions: – Source and destination based rules – Port based rules Our approach: – Use packet header for storing state Algorithms: – Module (Naïve) – DFS – BFS (very complicated)
Module Algorithm
DFS Algorithm