@@ -89,47 +89,47 @@ to hosts. For this step you will need to add your forwarding rules to the
89
89
1 . In your shell, run:
90
90
``` bash
91
91
make run
92
- ```
92
+ ```
93
93
This will:
94
94
* compile ` basic_tunnel.p4 ` , and
95
95
* start a Mininet instance with three switches (` s1 ` , ` s2 ` , ` s3 ` ) configured
96
96
in a triangle, each connected to one host (` h1 ` , ` h2 ` , and ` h3 ` ).
97
97
* The hosts are assigned IPs of ` 10.0.1.1 ` , ` 10.0.2.2 ` , and ` 10.0.3.3 ` .
98
98
99
99
2 . You should now see a Mininet command prompt. Open two terminals for ` h1 ` and
100
- ` h2 ` , respectively:
100
+ ` h2 ` , respectively:
101
101
``` bash
102
102
mininet> xterm h1 h2
103
103
```
104
104
3 . Each host includes a small Python-based messaging client and server. In
105
- ` h2 ` 's xterm, start the server:
106
- ``` bash
105
+ ` h2 ` 's xterm, start the server:
106
+ ``` bash
107
107
./receive.py
108
108
```
109
109
4 . First we will test without tunneling. In ` h1 ` 's xterm, send a message to
110
- ` h2 ` :
110
+ ` h2 ` :
111
111
``` bash
112
112
./send.py 10.0.2.2 " P4 is cool"
113
113
```
114
- The packet should be received at ` h2 ` . If you examine the received packet
114
+ The packet should be received at ` h2 ` . If you examine the received packet
115
115
you should see that is consists of an Ethernet header, an IP header, a TCP
116
116
header, and the message. If you change the destination IP address (e.g. try
117
117
to send to ` 10.0.3.3 ` ) then the message should not be received by ` h2 ` , and
118
118
will instead be received by ` h3 ` .
119
- 5 . Now we test with tunneling. In ` h1 ` 's xterm, send a message to ` h2 ` :
119
+ 5 . Now we test with tunneling. In ` h1 ` 's xterm, send a message to ` h2 ` :
120
120
``` bash
121
121
./send.py 10.0.2.2 " P4 is cool" --dst_id 2
122
122
```
123
123
The packet should be received at ` h2 ` . If you examine the received packet you
124
124
should see that is consists of an Ethernet header, a tunnel header, an IP header,
125
- a TCP header, and the message.
126
- 6 . In ` h1 ` 's xterm, send a message:
125
+ a TCP header, and the message.
126
+ 6 . In ` h1 ` 's xterm, send a message:
127
127
``` bash
128
128
./send.py 10.0.3.3 " P4 is cool" --dst_id 2
129
129
```
130
130
The packet should be received at ` h2 ` , even though that IP address is the address
131
131
of ` h3 ` . This is because the switch is no longer using the IP header for routing
132
- when the ` MyTunnel ` header is in the packet.
132
+ when the ` MyTunnel ` header is in the packet.
133
133
7 . Type ` exit ` or ` Ctrl-D ` to leave each xterm and the Mininet command line.
134
134
135
135
@@ -169,7 +169,7 @@ implementation or forwarding rules.
169
169
170
170
3 . ` basic_tunnel.p4 ` might compile, and the control plane rules might be
171
171
installed, but the switch might not process packets in the desired way. The
172
- ` /tmp/p4s.<switch-name> .log` files contain detailed logs that describing how
172
+ ` logs/sX .log` files contain detailed logs that describing how
173
173
each switch processes each packet. The output is detailed and can help pinpoint
174
174
logic errors in your implementation.
175
175
0 commit comments