diff --git a/P4D2_2017_Fall/exercises/load_balance/README.md b/P4D2_2017_Fall/exercises/load_balance/README.md index 4a69c28..1baff5c 100644 --- a/P4D2_2017_Fall/exercises/load_balance/README.md +++ b/P4D2_2017_Fall/exercises/load_balance/README.md @@ -4,9 +4,9 @@ In this exercise, you will implement a form of load balancing based on a single version of Equal-Cost Multipath Forwarding. The switch you will implement will use two tables to forward packets to one of two destination hosts at random. The first table will use a hash function -(applied to a 5-tuple consisting of the source and destination -Ethernet addresses, source and destination IP addresses, and IP -protocol) to select one of two hosts. The second table will use the +(applied to a 5-tuple consisting of the source and destination +IP addresses, IP protocol, and source and destination TCP ports) +to select one of two hosts. The second table will use the computed hash value to forward the packet to the selected host. > **Spoiler alert:** There is a reference solution in the `solution` diff --git a/P4D2_2017_Fall/exercises/mri/README.md b/P4D2_2017_Fall/exercises/mri/README.md index a3a70d5..0d9849f 100644 --- a/P4D2_2017_Fall/exercises/mri/README.md +++ b/P4D2_2017_Fall/exercises/mri/README.md @@ -38,7 +38,7 @@ switch in Mininet to test its behavior. * start a Mininet instance with three switches (`s1`, `s2`, `s3`) configured in a triangle. There are 5 hosts. `h1` and `h11` are connected to `s1`. `h2` and `h22` are connected to `s2` and `h3` is connected to `s3`. - * The hosts are assigned IPs of `10.0.1.10`, `10.0.2.10`, etc + * The hosts are assigned IPs of `10.0.1.1`, `10.0.2.2`, etc (`10.0..`). * The control plane programs the P4 tables in each switch based on `sx-commands.txt` @@ -193,10 +193,13 @@ got a packet | |###[ SwitchTrace ]### | | swid = 1 | | qdepth = 17 +###[ UDP ]### + sport = 1234 + dport = 4321 + len = 18 + chksum = 0x1c7b ###[ Raw ]### - load = '\x04\xd2' -###[ Padding ]### - load = '\x10\xe1\x00\x12\x1c{P4 is cool' + load = 'P4 is cool' ```