OpenFlow/OpenFlow Tutorial 2
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[labs.beatcraft.com]]~
[[OpenFlow]]~
#contents
* OpenFlow/OpenFlow Tutorial 2 [#p2c36d62]
>
To use Wireshark, compare the performance of types of the...
~
[[http://www.openflow.org/wk/index.php/OpenFlow_Tutorial#...
** Displaying OpenFlow Pcket [#k303590d]
>
To use Wireshark, which includes OpenFlow analytical plug...
>
$ sudo wireshark
>
To boot Wireshark, capture the packets at loopback interf...
To imput ?of? a string at Filter, it recognizes only Open...
~
While Wireshark monitors the packets, boot the controller...
>
$ controller ptcp:
>
To look at the capture window of Wireshark, see how the c...
#ref(openflow01.png,,60%)~
~
The messages and their details are shown below.~
>
|Hello|switch → controller|Show the version of Open...
|Hello|controller → switch|Show the version of Open...
|Feature Request|controller → switch|Request feature|
|Set Config|controller → switch|Controller shows ho...
|Features Reply|switch → controller|Switch replies ...
>
In mininet environment, all packets are handled via local...
~
While learning switch is effective, send a ping, and chec...
>
of && (of.type != 3) && (of.type != 2)
>
At this moment, table flow is empty.~
Try to check it in shell, in stead of mininet command.~
>
$ dpctl dump-flows tcp:127.0.0.1:6634
stats_reply (xid=0x7a3fc29b): flags=none type=1(flow)
>
Send a ping by mininet prompt.~
>
mininet> h1 ping -c1 h2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_req=1 ttl=64 time=4.43 ms
--- 10.0.0.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time ...
rtt min/avg/max/mdev = 4.431/4.431/4.431/0.000 ms
>
In the capture window of Wireshark show new messages. (Se...
#ref(openflow-ping02.png,,60%)~
The contents of the messages are shown below.~
|Packet In|Switch → Controller|Receiving packets (S...
|Packet Out|Controller → Switch|Sending packets|
|Flow Mod|Controller → Switch|Add a flow to the flo...
~
To check the flow table, the entries shown below are adde...
>
$ dpctl dump-flows tcp:127.0.0.1:6634
stats_reply (xid=0x342f8af7): flags=none type=1(flow)
cookie=0, duration_sec=18s, duration_nsec=654000000s, ...
cookie=0, duration_sec=18s, duration_nsec=655000000s, ...
cookie=0, duration_sec=13s, duration_nsec=650000000s, ...
cookie=0, duration_sec=18s, duration_nsec=656000000s, ...
cookie=0, duration_sec=13s, duration_nsec=653000000s, ...
>
This is a case that OpenFlow is set and used in Passive m...
In Passive modem, a flow interacts with each packet.~
** Deferences in the performance of types of switches [#s...
>
To boot the mininet environment with mn commands, the swi...
~
The switch of the mininet environment, which has been use...
>
$ sudo mn --topo single,3 --mac --switch ovsk --controll...
mininet> iperf
*** Iperf: testing TCP bandwidth between h1 and h3
*** Results: ['514 Mbits/sec', '517 Mbits/sec']
>
In average, it reaches 300 ~ 500 Mbps throughputs.~
~
This time, the mininet boots with a switch, which works i...
>
$ sudo mn --topo single,3 --mac --switch user --controll...
mininet> iperf
*** Iperf: testing TCP bandwidth between h1 and h3
*** Results: ['88.9 Mbits/sec', '89.2 Mbits/sec']
>
In this implementation, packets need to move from user-sp...
* Revision History [#ef6112fa]
>
- 2013/08/28 This article is initially uploaded.
End:
[[labs.beatcraft.com]]~
[[OpenFlow]]~
#contents
* OpenFlow/OpenFlow Tutorial 2 [#p2c36d62]
>
To use Wireshark, compare the performance of types of the...
~
[[http://www.openflow.org/wk/index.php/OpenFlow_Tutorial#...
** Displaying OpenFlow Pcket [#k303590d]
>
To use Wireshark, which includes OpenFlow analytical plug...
>
$ sudo wireshark
>
To boot Wireshark, capture the packets at loopback interf...
To imput ?of? a string at Filter, it recognizes only Open...
~
While Wireshark monitors the packets, boot the controller...
>
$ controller ptcp:
>
To look at the capture window of Wireshark, see how the c...
#ref(openflow01.png,,60%)~
~
The messages and their details are shown below.~
>
|Hello|switch → controller|Show the version of Open...
|Hello|controller → switch|Show the version of Open...
|Feature Request|controller → switch|Request feature|
|Set Config|controller → switch|Controller shows ho...
|Features Reply|switch → controller|Switch replies ...
>
In mininet environment, all packets are handled via local...
~
While learning switch is effective, send a ping, and chec...
>
of && (of.type != 3) && (of.type != 2)
>
At this moment, table flow is empty.~
Try to check it in shell, in stead of mininet command.~
>
$ dpctl dump-flows tcp:127.0.0.1:6634
stats_reply (xid=0x7a3fc29b): flags=none type=1(flow)
>
Send a ping by mininet prompt.~
>
mininet> h1 ping -c1 h2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_req=1 ttl=64 time=4.43 ms
--- 10.0.0.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time ...
rtt min/avg/max/mdev = 4.431/4.431/4.431/0.000 ms
>
In the capture window of Wireshark show new messages. (Se...
#ref(openflow-ping02.png,,60%)~
The contents of the messages are shown below.~
|Packet In|Switch → Controller|Receiving packets (S...
|Packet Out|Controller → Switch|Sending packets|
|Flow Mod|Controller → Switch|Add a flow to the flo...
~
To check the flow table, the entries shown below are adde...
>
$ dpctl dump-flows tcp:127.0.0.1:6634
stats_reply (xid=0x342f8af7): flags=none type=1(flow)
cookie=0, duration_sec=18s, duration_nsec=654000000s, ...
cookie=0, duration_sec=18s, duration_nsec=655000000s, ...
cookie=0, duration_sec=13s, duration_nsec=650000000s, ...
cookie=0, duration_sec=18s, duration_nsec=656000000s, ...
cookie=0, duration_sec=13s, duration_nsec=653000000s, ...
>
This is a case that OpenFlow is set and used in Passive m...
In Passive modem, a flow interacts with each packet.~
** Deferences in the performance of types of switches [#s...
>
To boot the mininet environment with mn commands, the swi...
~
The switch of the mininet environment, which has been use...
>
$ sudo mn --topo single,3 --mac --switch ovsk --controll...
mininet> iperf
*** Iperf: testing TCP bandwidth between h1 and h3
*** Results: ['514 Mbits/sec', '517 Mbits/sec']
>
In average, it reaches 300 ~ 500 Mbps throughputs.~
~
This time, the mininet boots with a switch, which works i...
>
$ sudo mn --topo single,3 --mac --switch user --controll...
mininet> iperf
*** Iperf: testing TCP bandwidth between h1 and h3
*** Results: ['88.9 Mbits/sec', '89.2 Mbits/sec']
>
In this implementation, packets need to move from user-sp...
* Revision History [#ef6112fa]
>
- 2013/08/28 This article is initially uploaded.
Page: