Copyediting. (#93)

This commit is contained in:
Jed Liu
2017-11-13 18:19:29 -05:00
committed by Robert Soule
parent 12fc3ab9ac
commit 7a3fd6bc12
8 changed files with 18 additions and 18 deletions

View File

@@ -74,7 +74,7 @@ switch in Mininet to test its behavior.
The message "P4 is cool" should be received in `h2`'s xterm,
6. In `h11`'s xterm, start iperf client sending for 15 seconds
```bash
h11 iperf -c 10.0.2.22 -t 15 -u
iperf -c 10.0.2.22 -t 15 -u
```
7. At `h2`, the MRI header has no hop info (`count=0`)
8. type `exit` to close each xterm window
@@ -155,7 +155,7 @@ populate `ethernet_t`, `ipv4_t`, `ipv4_option_t`, `mri_t`, and
## Step 3: Run your solution
Follow the instructions from Step 1. This time, when your message
from `h1` is delivered to `h2`, you should see the seqeunce of
from `h1` is delivered to `h2`, you should see the sequence of
switches through which the packet traveled plus the corresponding
queue depths. The expected output will look like the following,
which shows the MRI header, with a `count` of 2, and switch ids

View File

@@ -125,7 +125,7 @@ parser MyParser(packet_in packet,
* - Set meta.parser_metadata.remaining to hdr.mri.count
* - Select on the value of meta.parser_metadata.remaining
* - If the value is equal to 0, accept.
* - Otherwise, transition to parse_swid.
* - Otherwise, transition to parse_swtrace.
*/
transition accept;
}
@@ -203,11 +203,11 @@ control MyEgress(inout headers hdr,
* TODO: add logic to:
- Increment hdr.mri.count by 1
- Add a new swtrace header by calling push_front(1) on hdr.swtraces.
- Set hdr.swtraces[0].swid to the id paremeter
- Set hdr.swtraces[0].swid to the id parameter
- Set hdr.swtraces[0].qdepth to (qdepth_t)standard_metadata.deq_qdepth
- Incremement hdr.ipv4.ihl by 2
- Increment hdr.ipv4.ihl by 2
- Increment hdr.ipv4.totalLen by 8
- Incrememtn hdr.ipv4_option.optionLength by 8
- Increment hdr.ipv4_option.optionLength by 8
*/
}