16
CSE 222A: Computer Communication Networks Alex C. Snoeren Lecture 7: P4 Thanks: George Porter

Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

CSE 222A: Computer Communication NetworksAlex C. Snoeren

Lecture 7:P4

Thanks: George Porter

Page 2: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Lecture 7 Overview

● Project discussion

● “P4” paper discussion

2CSE 222A – Lecture 7: P4

Page 3: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

OpenFlow evolution

CSE 222A – Lecture 7: P4 3

Page 4: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

The role of P4

CSE 222A – Lecture 7: P4 4

Page 5: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Abstract Forwarding Model

CSE 222A – Lecture 7: P4 5

Page 6: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Table Dependency Graph

CSE 222A – Lecture 7: P4 6

Page 7: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

mTag Example

CSE 222A – Lecture 7: Data Center Networks 7

Page 8: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

mTag Example

CSE 222A – Lecture 7: Data Center Networks 8

mTag

up1

up2

down1

down2

Page 9: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

An Example P4 Program

CSE 222A – Lecture 7: P4 9

Page 10: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

High-level Operation

CSE 222A – Lecture 7: P4 10

Page 11: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Header Formats

CSE 222A – Lecture 7: P4 11

Page 12: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Parser Definitions

CSE 222A – Lecture 7: P4 12

Page 13: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Table Specifications

CSE 222A – Lecture 7: P4 13

Page 14: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Finally, an Action

CSE 222A – Lecture 7: P4 14

Page 15: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

Compiled State Transitions

CSE 222A – Lecture 7: P4 15

Page 16: Lecture 7: P4 - cseweb.ucsd.educseweb.ucsd.edu/classes/wi19/cse222A-a/lectures/222A-wi19-l7.pdf · CSE 222A–Lecture 7: P4 13. Finally, an Action CSE 222A–Lecture 7: P4 14. CompiledStateTransitions

For Next Class…

● Actually read FatTree paper (sorry!)

● Submit project groups by tonightu Email me & TA initial idea(s)u Even if you’re unattached; we’ll try to fix up

● Project proposals will be due next Tuesday u Details are on the web.

16CSE 222A – Lecture 7: P4