Updates README.md of load_balance and mri (#79)
This commit is contained in:
parent
6c82b6fbe7
commit
65a4334734
@ -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
|
a single version of Equal-Cost Multipath Forwarding. The switch you
|
||||||
will implement will use two tables to forward packets to one of two
|
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
|
destination hosts at random. The first table will use a hash function
|
||||||
(applied to a 5-tuple consisting of the source and destination
|
(applied to a 5-tuple consisting of the source and destination
|
||||||
Ethernet addresses, source and destination IP addresses, and IP
|
IP addresses, IP protocol, and source and destination TCP ports)
|
||||||
protocol) to select one of two hosts. The second table will use the
|
to select one of two hosts. The second table will use the
|
||||||
computed hash value to forward the packet to the selected host.
|
computed hash value to forward the packet to the selected host.
|
||||||
|
|
||||||
> **Spoiler alert:** There is a reference solution in the `solution`
|
> **Spoiler alert:** There is a reference solution in the `solution`
|
||||||
|
@ -38,7 +38,7 @@ switch in Mininet to test its behavior.
|
|||||||
* start a Mininet instance with three switches (`s1`, `s2`, `s3`) configured
|
* 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`.
|
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`.
|
`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.<Switchid>.<hostID>`).
|
(`10.0.<Switchid>.<hostID>`).
|
||||||
* The control plane programs the P4 tables in each switch based on
|
* The control plane programs the P4 tables in each switch based on
|
||||||
`sx-commands.txt`
|
`sx-commands.txt`
|
||||||
@ -193,10 +193,13 @@ got a packet
|
|||||||
| |###[ SwitchTrace ]###
|
| |###[ SwitchTrace ]###
|
||||||
| | swid = 1
|
| | swid = 1
|
||||||
| | qdepth = 17
|
| | qdepth = 17
|
||||||
|
###[ UDP ]###
|
||||||
|
sport = 1234
|
||||||
|
dport = 4321
|
||||||
|
len = 18
|
||||||
|
chksum = 0x1c7b
|
||||||
###[ Raw ]###
|
###[ Raw ]###
|
||||||
load = '\x04\xd2'
|
load = 'P4 is cool'
|
||||||
###[ Padding ]###
|
|
||||||
load = '\x10\xe1\x00\x12\x1c{P4 is cool'
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user