Openflow Flow Tables
Consider the 4-router network shown below, where packet forwarding is controlled by flow tables (e.g., configured via OpenFlow in an SDN controller), rather than by a forwarding table computed by a routing algorithm. The addresses of networks attached to each of the router is also shown. The interfaces at each of the routers are also as indicated.
Suppose we want the following forwarding behavior of packets to be implemented:
- Packets coming from the source network attached to s4 and destined to the network attached to s1 should be forwarded along the path: s4 -> s3 -> s1. Assume that at s1 that only TCP traffic is allowed to enter the network.
Question List
1. For router s1, what should the value of the 'IP Src' be? Pick either a specific address (including CIDR), any, or none
2. For router s1, what should the value of the 'IP Dst' be? Pick either a specific address (including CIDR), any, or none
3. For router s1, what should the value of the 'Src Port' be? Pick either a specific port, or any
4. For router s1, what should the value of the 'Dst Port' be? Pick either a specific port, or any
5. For router s1, what should the value of the 'IP Proto' be? Pick either TCP, UDP, or any
6. For router s1, what should the action of the rule be? Some examples include forward, allow, deny, etc
7. For router s1, what interface should the packets be forwarded to?
8. For router s3, what should the value of the 'IP Src' be? Pick either a specific address (including CIDR), any, or none
9. For router s3, what should the value of the 'IP Dst' be? Pick either a specific address (including CIDR), any, or none
10. For router s3, what should the value of the 'Src Port' be? Pick either a specific port, or any
11. For router s3, what should the value of the 'Dst Port' be? Pick either a specific port, or any
12. For router s3, what should the value of the 'IP Proto' be? Pick either TCP, UDP, or any
13. For router s3, what should the action of the rule be? Some examples include forward, allow, deny, etc
14. For router s3, what interface should the packets be forwarded to?
15. For router s4, what should the value of the 'IP Src' be? Pick either a specific address (including CIDR), any, or none
16. For router s4, what should the value of the 'IP Dst' be? Pick either a specific address (including CIDR), any, or none
17. For router s4, what should the value of the 'Src Port' be? Pick either a specific port, or any
18. For router s4, what should the value of the 'Dst Port' be? Pick either a specific port, or any
19. For router s4, what should the value of the 'IP Proto' be? Pick either TCP, UDP, or any
20. For router s4, what should the action of the rule be? Some examples include forward, allow, deny, etc
21. For router s4, what interface should the packets be forwarded to?
Solution
(Q1-Q7) Rule 1. | IP_Src=128.122/16, IP_Dst=128.119/16, Src_Port=Any, Dst_Port=Any, IP_Protocol=TCP, Action=Forward(1) |
(Q8-Q14) Rule 2. | IP_Src=128.122/16, IP_Dst=128.119/16, Src_Port=Any, Dst_Port=Any, IP_Protocol=Any, Action=Forward(3) |
(Q15-Q21) Rule 3. | IP_Src=128.122/16, IP_Dst=128.119/16, Src_Port=Any, Dst_Port=Any, IP_Protocol=Any, Action=Forward(3) |
That's incorrect
That's correct
The answer was: 128.122/16
The answer was: 128.119/16
The answer was: Any
The answer was: Any
The answer was: TCP
The answer was: Forward
The answer was: 1
The answer was: 128.122/16
The answer was: 128.119/16
The answer was: Any
The answer was: Any
The answer was: Any
The answer was: Forward
The answer was: 3
The answer was: 128.122/16
The answer was: 128.119/16
The answer was: Any
The answer was: Any
The answer was: Any
The answer was: Forward
The answer was: 3